@servicenow/sdk 1.0.6 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -68
- package/bin/debug.js +1 -1
- package/bin/index.js +2 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +31279 -0
- package/dist/global/index.d.ts +1 -0
- package/package.json +53 -40
- package/src/core/index.ts +10 -0
- package/dist/auth/index.d.ts +0 -11
- package/dist/auth/index.js +0 -206
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/keychain/index.d.ts +0 -12
- package/dist/auth/keychain/index.js +0 -44
- package/dist/auth/keychain/index.js.map +0 -1
- package/dist/command/auth/commands/clear.d.ts +0 -6
- package/dist/command/auth/commands/clear.js +0 -30
- package/dist/command/auth/commands/clear.js.map +0 -1
- package/dist/command/auth/commands/list.d.ts +0 -6
- package/dist/command/auth/commands/list.js +0 -30
- package/dist/command/auth/commands/list.js.map +0 -1
- package/dist/command/auth/commands/save.d.ts +0 -10
- package/dist/command/auth/commands/save.js +0 -96
- package/dist/command/auth/commands/save.js.map +0 -1
- package/dist/command/auth/commands/setDefault.d.ts +0 -6
- package/dist/command/auth/commands/setDefault.js +0 -30
- package/dist/command/auth/commands/setDefault.js.map +0 -1
- package/dist/command/auth/commands/validate.d.ts +0 -6
- package/dist/command/auth/commands/validate.js +0 -43
- package/dist/command/auth/commands/validate.js.map +0 -1
- package/dist/command/auth/index.d.ts +0 -2
- package/dist/command/auth/index.js +0 -35
- package/dist/command/auth/index.js.map +0 -1
- package/dist/command/build/index.d.ts +0 -11
- package/dist/command/build/index.js +0 -102
- package/dist/command/build/index.js.map +0 -1
- package/dist/command/clean/index.d.ts +0 -6
- package/dist/command/clean/index.js +0 -34
- package/dist/command/clean/index.js.map +0 -1
- package/dist/command/compile/index.d.ts +0 -7
- package/dist/command/compile/index.js +0 -42
- package/dist/command/compile/index.js.map +0 -1
- package/dist/command/convert/index.d.ts +0 -12
- package/dist/command/convert/index.js +0 -77
- package/dist/command/convert/index.js.map +0 -1
- package/dist/command/create/index.d.ts +0 -15
- package/dist/command/create/index.js +0 -92
- package/dist/command/create/index.js.map +0 -1
- package/dist/command/deploy/index.d.ts +0 -12
- package/dist/command/deploy/index.js +0 -80
- package/dist/command/deploy/index.js.map +0 -1
- package/dist/command/fetch/index.d.ts +0 -12
- package/dist/command/fetch/index.js +0 -78
- package/dist/command/fetch/index.js.map +0 -1
- package/dist/command/generate-modules/index.d.ts +0 -7
- package/dist/command/generate-modules/index.js +0 -46
- package/dist/command/generate-modules/index.js.map +0 -1
- package/dist/command/pack/index.d.ts +0 -6
- package/dist/command/pack/index.js +0 -40
- package/dist/command/pack/index.js.map +0 -1
- package/dist/command/package-dependencies/index.d.ts +0 -8
- package/dist/command/package-dependencies/index.js +0 -52
- package/dist/command/package-dependencies/index.js.map +0 -1
- package/dist/command/test/index.d.ts +0 -3
- package/dist/command/test/index.js +0 -52
- package/dist/command/test/index.js.map +0 -1
- package/dist/command/transform/index.d.ts +0 -3
- package/dist/command/transform/index.js +0 -63
- package/dist/command/transform/index.js.map +0 -1
- package/dist/epilogue/index.d.ts +0 -1
- package/dist/epilogue/index.js +0 -9
- package/dist/epilogue/index.js.map +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -55
- package/dist/index.js.map +0 -1
- package/dist/usage/index.d.ts +0 -1
- package/dist/usage/index.js +0 -16
- package/dist/usage/index.js.map +0 -1
- package/dist/util.d.ts +0 -1
- package/dist/util.js +0 -25
- package/dist/util.js.map +0 -1
- package/src/auth/index.ts +0 -238
- package/src/auth/keychain/index.ts +0 -23
- package/src/command/auth/commands/clear.ts +0 -21
- package/src/command/auth/commands/list.ts +0 -21
- package/src/command/auth/commands/save.ts +0 -100
- package/src/command/auth/commands/setDefault.ts +0 -21
- package/src/command/auth/commands/validate.ts +0 -35
- package/src/command/auth/index.ts +0 -24
- package/src/command/build/index.ts +0 -100
- package/src/command/clean/index.ts +0 -22
- package/src/command/compile/index.ts +0 -31
- package/src/command/convert/index.ts +0 -76
- package/src/command/create/index.ts +0 -97
- package/src/command/deploy/index.ts +0 -84
- package/src/command/fetch/index.ts +0 -78
- package/src/command/generate-modules/index.ts +0 -36
- package/src/command/pack/index.ts +0 -27
- package/src/command/package-dependencies/index.ts +0 -43
- package/src/command/test/index.ts +0 -40
- package/src/command/transform/index.ts +0 -45
- package/src/epilogue/index.ts +0 -5
- package/src/index.ts +0 -50
- package/src/usage/index.ts +0 -13
- package/src/util.ts +0 -21
package/README.md
CHANGED
|
@@ -1,86 +1,34 @@
|
|
|
1
1
|
# ServiceNow SDK
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The ServiceNow software development kit (SDK) provides the core libraries and tools for authoring applications with application metadata written in code using the ServiceNow Fluent language, as well as server-side JavaScript modules and third-party libraries. The SDK aims to transform the ServiceNow development experience by providing a source-driven model with modern, industry-standard development paradigms.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Prerequisites
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
For more information see the [SDK Overview documentation](https://docs.servicenow.com/bundle/washingtondc-api-reference/page/script/sdk/concept/servicenow-sdk.html) or the [CLI Overview](https://docs.servicenow.com/bundle/washingtondc-api-reference/page/script/sdk/reference/servicenow-sdk-cli-commands.html)
|
|
7
|
+
- Node.js `v18.16.1`
|
|
8
|
+
- npm `v8.19.3`
|
|
10
9
|
|
|
11
10
|
## Installation
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Before you begin
|
|
16
|
-
|
|
17
|
-
Your system must meet the following requirements to use npm to install the SDK:
|
|
18
|
-
* Node.js v16.16.0 or later
|
|
19
|
-
* npm v8.11.0 or later
|
|
20
|
-
|
|
21
|
-
To install or upgrade Node.js or npm, see the [installation instructions](https://docs.npmjs.com/cli/v8/configuring-npm/install) on the npm website.
|
|
22
|
-
|
|
23
|
-
### Procedure
|
|
24
|
-
|
|
25
|
-
1. Open a command-line tool on your system.
|
|
26
|
-
2. Verify that your system meets the requirements.
|
|
27
|
-
a. Enter `node –v` to check if you have Node.js installed and which version.
|
|
28
|
-
b. Enter `npm –v` to check if you have npm installed and which version.
|
|
29
|
-
3. Enter the following command to install the SDK:
|
|
30
|
-
```bash
|
|
12
|
+
```sh
|
|
31
13
|
npm install --global @servicenow/sdk
|
|
32
14
|
```
|
|
33
15
|
|
|
34
|
-
##
|
|
35
|
-
|
|
36
|
-
### Authentication
|
|
37
|
-
|
|
38
|
-
Authenticate with a ServiceNow instance using a user account with an `admin` role.
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
now-sdk auth save default
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
View credentials saved in the device keychain or credential manager on your system.
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
now-sdk auth list
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Creating an app
|
|
51
|
-
|
|
52
|
-
Create a new scoped application, optionally including a sample table.
|
|
53
|
-
|
|
54
|
-
**Note**: Replace `{vendorprefix}` with your organization's unique scope prefix.
|
|
55
|
-
```bash
|
|
56
|
-
now-sdk create sdk_demo x_{vendorprefix}_demo --sampleTable
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Building code changes
|
|
16
|
+
## Upgrading
|
|
60
17
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
now-sdk build
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Deploying app updates
|
|
68
|
-
|
|
69
|
-
Deploy an application to an instance. Before using the deploy command, you must use the build command to generate a deployable package.
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
now-sdk deploy
|
|
18
|
+
```sh
|
|
19
|
+
now-sdk upgrade
|
|
73
20
|
```
|
|
74
21
|
|
|
75
|
-
|
|
22
|
+
## Documentation
|
|
76
23
|
|
|
77
|
-
|
|
24
|
+
- [Using the ServiceNow SDK CLI](https://docs.servicenow.com/bundle/xanadu-application-development/page/build/servicenow-sdk/reference/servicenow-sdk-cli-commands.html)
|
|
25
|
+
- [Overview of the ServiceNow Fluent Language](https://docs.servicenow.com/bundle/xanadu-application-development/page/build/servicenow-sdk/concept/servicenow-fluent.html)
|
|
26
|
+
- [Installing the Fluent VS Code Extension](https://docs.servicenow.com/bundle/xanadu-application-development/page/build/servicenow-sdk/task/install-fluent-language-extension-vs-code.html)
|
|
78
27
|
|
|
79
|
-
|
|
80
|
-
now-sdk fetch
|
|
81
|
-
```
|
|
28
|
+
## Release Notes
|
|
82
29
|
|
|
83
|
-
|
|
30
|
+
View the release notes on the [ServiceNow documentation site](https://docs.servicenow.com/bundle/xanadu-release-notes/page/release-notes/now-platform-app-engine/servicenow-sdk-rn.html).
|
|
84
31
|
|
|
85
|
-
|
|
32
|
+
## Known Issues
|
|
86
33
|
|
|
34
|
+
View the list of known issues on the [ServiceNow support site](https://support.servicenow.com/problem_list.do?sysparm_query=u_product_initial_taxonomy=a859dddac3773510f9691f0fb00131ba^stateNOT%20IN23,3).
|
package/bin/debug.js
CHANGED
package/bin/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@servicenow/sdk-api';
|