Skip to content
Permalink
Browse files

I'm probably not going to keep up with doing commit messages.

  • Loading branch information...
thisnameissoclever committed Oct 8, 2018
1 parent 08e965e commit 8c5ad4cb81eed05c8274646e63ae18cc67a7c708
Showing with 151 additions and 149 deletions.
  1. 0 { → ES5}/AJAXReferenceControls.js
  2. 0 { → ES5}/ActionSecurity.js
  3. 0 { → ES5}/AjaxCompleter.js
  4. 0 { → ES5}/AjaxEmailClientCompleter.js
  5. 0 { → ES5}/AjaxOtherCompleter.js
  6. 0 { → ES5}/AjaxReferenceChoice.js
  7. 0 { → ES5}/AjaxReferenceCompleter.js
  8. 0 { → ES5}/AjaxTableCompleter.js
  9. 0 { → ES5}/AttachmentUploader.js
  10. 0 { → ES5}/AutoComplete.js
  11. 0 { → ES5}/Catalog.js
  12. 0 { → ES5}/Class.js
  13. 0 { → ES5}/CookieJar.js
  14. 0 { → ES5}/CurrencyFormat.js
  15. 0 { → ES5}/CustomEventManager.js
  16. 0 { → ES5}/DerivedFields.js
  17. 0 { → ES5}/Elements.js
  18. 0 { → ES5}/GWT.js
  19. 0 { → ES5}/GlideAdministrationMenu.js
  20. 0 { → ES5}/GlideAggregate.js
  21. 0 { → ES5}/GlideAjax.js
  22. 0 { → ES5}/GlideBox.js
  23. 0 { → ES5}/GlideClientCache.js
  24. 0 { → ES5}/GlideContextMenu.js
  25. 0 { → ES5}/GlideDate.js
  26. 0 { → ES5}/GlideDateTime.js
  27. 0 { → ES5}/GlideDecoration.js
  28. 0 { → ES5}/GlideDialogForm.js
  29. 0 { → ES5}/GlideDialogWindow.js
  30. 0 { → ES5}/GlideDraggable.js
  31. 0 { → ES5}/GlideDuration.js
  32. 0 { → ES5}/GlideEncodedQuery.js
  33. 0 { → ES5}/GlideEventHandler.js
  34. 0 { → ES5}/GlideFilter.js
  35. 0 { → ES5}/GlideForm.js
  36. 0 { → ES5}/GlideList.js
  37. 0 { → ES5}/GlideList2.js
  38. 0 { → ES5}/GlideListAggregates.js
  39. 0 { → ES5}/GlideListRecord.js
  40. 0 { → ES5}/GlideMenu.js
  41. 0 { → ES5}/GlidePane.js
  42. 0 { → ES5}/GlidePaneForm.js
  43. 0 { → ES5}/GlideRecord.js
  44. 0 { → ES5}/GlideSession.js
  45. 0 { → ES5}/GlideSortSpec.js
  46. 0 { → ES5}/GlideSystem.js
  47. 0 { → ES5}/GlideTabs2.js
  48. 0 { → ES5}/GlideURL.js
  49. 0 { → ES5}/GlideUser.js
  50. 0 { → ES5}/GlideViewManager.js
  51. 0 { → ES5}/GlideWindow.js
  52. 0 { → ES5}/MultipleUpdate.js
  53. 0 { → ES5}/NameMapEntry.js
  54. 0 { → ES5}/PartialPage.js
  55. 0 { → ES5}/Select.js
  56. 0 { → ES5}/ServiceCatalogForm.js
  57. 0 { → ES5}/SlushBucket_class.js
  58. 0 { → ES5}/StackManagement.js
  59. 0 { → ES5}/StopWatch.js
  60. 0 { → ES5}/String Class Extensions.js
  61. 0 { → ES5}/Table.js
  62. 0 { → ES5}/TableExtension.js
  63. 0 { → ES5}/TemplateRecord.js
  64. 0 { → ES5}/User.js
  65. 0 { → ES5}/ac.js
  66. 0 { → ES5}/ac_derived_field_support.js
  67. 0 { → ES5}/calendar.js
  68. 0 { → ES5}/condition.js
  69. 0 { → ES5}/context_actions.js
  70. 0 { → ES5}/depends.js
  71. 0 { → ES5}/email_activity.js
  72. 0 { → ES5}/formatting.js
  73. 0 { → ES5}/functions.js
  74. 0 { → ES5}/functions_reference.js
  75. 0 { → ES5}/g_form.js
  76. 0 { → ES5}/list_filter.js
  77. 0 { → ES5}/onchange.js
  78. 0 { → ES5}/popupdivs.js
  79. 0 { → ES5}/popups.js
  80. 0 { → ES5}/rico_effect.js
  81. 0 { → ES5}/scrollable.js
  82. 0 { → ES5}/slushbucket.js
  83. +146 −146 { → ES5}/sn_ws.js
  84. 0 { → ES5}/spell.js
  85. 0 { → ES5}/sys_report_condition.js
  86. 0 { → ES5}/utils.js
  87. +5 −3 README.md
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,147 +1,147 @@
var sn_ws = {
/**
* Instantiates an empty RESTMessageV2 object.
When using an object instantiated without an argument, you must manually specify an HTTP method and endpoint.
WITH an argument;
Instantiates a RESTMessageV2 object using information from a REST message record.
You must have a REST message record defined before you can use this constructor (with an argument)
* @param {string} [name] - The name of the extant REST message defined in the system
* @param {string} [methodName] - The name of the method to use (e.g. "Default GET")
* @constructor
*/
'RESTMessageV2' : function(name, methodName) {
/**
* Send the REST message to the endpoint.
*/
this.execute = function() {};
/**
* Send the REST message to the endpoint asynchronously. The instance does not wait for a response from the web service provider when making asynchronous calls.
*/
this.executeAsync = function() {};
/**
* Get the URL of the endpoint for the REST message.
*/
this.getEndpoint = function() {};
/**
* Get the content of the REST message body.
* @returns {string} the REST message body as a string.
*/
this.getRequestBody = function() {};
/**
*
* @param {string} headerName
* @returns {string} the value of the specified header
*/
this.getRequestHeader = function(headerName) {};
/**
* @returns {Object} An Object that maps the name of each header to the associated value.
*/
this.getRequestHeaders = function() {};
/**
*
* @param {string} tableName
* @param {string} recordSysId
* @param {string} fileName
* @param {string} encryptionContext
*/
this.saveResponseBodyAsAttachment = function(tableName, recordSysId, fileName, encryptionContext) {};
/**
*
* @param {string} type
* @param {string} profileId
*/
this.setAuthenticationProfile = function(type, profileId) {};
/**
*
* @param {string} userName
* @param {string} pass
*/
this.setBasicAuth = function(userName, pass) {};
/**
*
* @param {string} correlator
*/
this.setEccCorrelator = function(correlator) {};
/**
*
* @param {string} name - The parameter name (e.g. "skip_sensor").
* @param {string} value - Tha parameter value (e.g. "true").
*/
this.setEccParameter = function(name, value) {};
/**
*
* @param {string} endpoint
*/
this.setEndpoint = function(endpoint) {};
/**
*
* @param {string} method
*/
this.setHttpMethod = function(method) {};
/**
*
* @param {string} timeoutMs
*/
this.setHttpTimeout = function(timeoutMs) {};
/**
*
* @param {string} level
*/
this.setLogLevel = function(level) {};
/**
*
* @param {string} midServerName
*/
this.setMIDServer = function(midServerName) {};
/**
*
* @param {string} profileName
*/
this.setMutualAuth = function(profileName) {};
/**
*
* @param {string} name
* @param {string} value
*/
this.setQueryParameter = function(name, value) {};
/**
*
* @param {string} body
*/
this.setRequestBody = function(body) {};
/**
*
* @param {string} attachmentSysId
*/
this.setRequestBodyFromAttachment = function(attachmentSysId) {};
/**
*
* @param {Object} stream
*/
this.setRequestBodyFromStream = function(stream) {};
/**
*
* @param {string} name
* @param {string} value
*/
this.setRequestHeader = function(name, value) {};
/**
*
* @param {string} requestorContext
* @param {string} requestorId
*/
this.setRequestorProfile = function(requestorContext, requestorId) {};
/**
*
* @param {string} name
* @param {string} value
*/
this.setStringParameter = function(name, value) {};
/**
*
* @param {string} name
* @param {string} value
*/
this.setStringParameterNoEscape = function(name, value) {};
}
var sn_ws = {
/**
* Instantiates an empty RESTMessageV2 object.
When using an object instantiated without an argument, you must manually specify an HTTP method and endpoint.
WITH an argument;
Instantiates a RESTMessageV2 object using information from a REST message record.
You must have a REST message record defined before you can use this constructor (with an argument)
* @param {string} [name] - The name of the extant REST message defined in the system
* @param {string} [methodName] - The name of the method to use (e.g. "Default GET")
* @constructor
*/
'RESTMessageV2' : function(name, methodName) {
/**
* Send the REST message to the endpoint.
*/
this.execute = function() {};
/**
* Send the REST message to the endpoint asynchronously. The instance does not wait for a response from the web service provider when making asynchronous calls.
*/
this.executeAsync = function() {};
/**
* Get the URL of the endpoint for the REST message.
*/
this.getEndpoint = function() {};
/**
* Get the content of the REST message body.
* @returns {string} the REST message body as a string.
*/
this.getRequestBody = function() {};
/**
*
* @param {string} headerName
* @returns {string} the value of the specified header
*/
this.getRequestHeader = function(headerName) {};
/**
* @returns {Object} An Object that maps the name of each header to the associated value.
*/
this.getRequestHeaders = function() {};
/**
*
* @param {string} tableName
* @param {string} recordSysId
* @param {string} fileName
* @param {string} encryptionContext
*/
this.saveResponseBodyAsAttachment = function(tableName, recordSysId, fileName, encryptionContext) {};
/**
*
* @param {string} type
* @param {string} profileId
*/
this.setAuthenticationProfile = function(type, profileId) {};
/**
*
* @param {string} userName
* @param {string} pass
*/
this.setBasicAuth = function(userName, pass) {};
/**
*
* @param {string} correlator
*/
this.setEccCorrelator = function(correlator) {};
/**
*
* @param {string} name - The parameter name (e.g. "skip_sensor").
* @param {string} value - Tha parameter value (e.g. "true").
*/
this.setEccParameter = function(name, value) {};
/**
*
* @param {string} endpoint
*/
this.setEndpoint = function(endpoint) {};
/**
*
* @param {string} method
*/
this.setHttpMethod = function(method) {};
/**
*
* @param {string} timeoutMs
*/
this.setHttpTimeout = function(timeoutMs) {};
/**
*
* @param {string} level
*/
this.setLogLevel = function(level) {};
/**
*
* @param {string} midServerName
*/
this.setMIDServer = function(midServerName) {};
/**
*
* @param {string} profileName
*/
this.setMutualAuth = function(profileName) {};
/**
*
* @param {string} name
* @param {string} value
*/
this.setQueryParameter = function(name, value) {};
/**
*
* @param {string} body
*/
this.setRequestBody = function(body) {};
/**
*
* @param {string} attachmentSysId
*/
this.setRequestBodyFromAttachment = function(attachmentSysId) {};
/**
*
* @param {Object} stream
*/
this.setRequestBodyFromStream = function(stream) {};
/**
*
* @param {string} name
* @param {string} value
*/
this.setRequestHeader = function(name, value) {};
/**
*
* @param {string} requestorContext
* @param {string} requestorId
*/
this.setRequestorProfile = function(requestorContext, requestorId) {};
/**
*
* @param {string} name
* @param {string} value
*/
this.setStringParameter = function(name, value) {};
/**
*
* @param {string} name
* @param {string} value
*/
this.setStringParameterNoEscape = function(name, value) {};
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,9 +1,11 @@
# sn-js-lib
ServiceNow JavaScript API Libraries
http://lib.snc.guru/
Set your library location to either ES5 or ES6 depending on your IDE and preferences.
The ES5 version is more complete, but some IDEs (such as VS Code) are not able to parse the ES5 libs. We're working on improving the completeness of the ES6 libs.

Hi! I'm Tim Woodruff, of SN Pro Tips; author of Learning ServiceNow and The ServiceNow Development Handbook. This ServiceNow JavaScript API library was adapted from something that Garrett Griffin put together in 2014. I found the libraries so massively useful, that I decided to build upon, add to, and update them throughout the last several years (with permission from Garrett) in order to make developing ServiceNow-centric code in my local IDE a lot easier. While I've done a lot of work on this over the last few years, most of the credit must surely go to Garrett for his hard work in starting this out.
Thanks, Garrett!
More info: http://lib.snc.guru/

Hi! I'm Tim Woodruff, of SN Pro Tips; author of Learning ServiceNow and The ServiceNow Development Handbook. This ServiceNow JavaScript API library was adapted from something that Garrett Griffin put together in 2014. I found the libraries so massively useful, that I decided to build upon, add to, and update them throughout the last several years (with permission from Garrett) in order to make developing ServiceNow-centric code in my local IDE a lot easier. While I've done a lot of work on this over the last few years, much of the credit must surely go to Garrett for his hard work in starting this out.

My Twitter (@TheTimWoodruff): https://twitter.com/TheTimWoodruff
Garrett's Twitter (@SNC_GarrettNow): https://twitter.com/SNC_GarrettNow

0 comments on commit 8c5ad4c

Please sign in to comment.
You can’t perform that action at this time.