@sonisoft/now-sdk-ext-core 1.0.0-alpha.30
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/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/auth/AuthenticationHandlerFactory.d.ts +4 -0
- package/dist/auth/AuthenticationHandlerFactory.js +7 -0
- package/dist/auth/AuthenticationHandlerFactory.js.map +1 -0
- package/dist/auth/IAuthenticationHandler.d.ts +11 -0
- package/dist/auth/IAuthenticationHandler.js +2 -0
- package/dist/auth/IAuthenticationHandler.js.map +1 -0
- package/dist/auth/NowSDKAuthenticationHandler.d.ts +18 -0
- package/dist/auth/NowSDKAuthenticationHandler.js +54 -0
- package/dist/auth/NowSDKAuthenticationHandler.js.map +1 -0
- package/dist/comm/http/CookieStore.d.ts +8 -0
- package/dist/comm/http/CookieStore.js +21 -0
- package/dist/comm/http/CookieStore.js.map +1 -0
- package/dist/comm/http/CookieStoreFactory.d.ts +5 -0
- package/dist/comm/http/CookieStoreFactory.js +11 -0
- package/dist/comm/http/CookieStoreFactory.js.map +1 -0
- package/dist/comm/http/HTTPRequest.d.ts +7 -0
- package/dist/comm/http/HTTPRequest.js +4 -0
- package/dist/comm/http/HTTPRequest.js.map +1 -0
- package/dist/comm/http/HttpResponse.d.ts +20 -0
- package/dist/comm/http/HttpResponse.js +10 -0
- package/dist/comm/http/HttpResponse.js.map +1 -0
- package/dist/comm/http/ICookieStore.d.ts +5 -0
- package/dist/comm/http/ICookieStore.js +2 -0
- package/dist/comm/http/ICookieStore.js.map +1 -0
- package/dist/comm/http/IHttpResponse.d.ts +4 -0
- package/dist/comm/http/IHttpResponse.js +2 -0
- package/dist/comm/http/IHttpResponse.js.map +1 -0
- package/dist/comm/http/IRequestHandler.d.ts +11 -0
- package/dist/comm/http/IRequestHandler.js +2 -0
- package/dist/comm/http/IRequestHandler.js.map +1 -0
- package/dist/comm/http/IUserSession.d.ts +8 -0
- package/dist/comm/http/IUserSession.js +2 -0
- package/dist/comm/http/IUserSession.js.map +1 -0
- package/dist/comm/http/RequestHandler.d.ts +36 -0
- package/dist/comm/http/RequestHandler.js +195 -0
- package/dist/comm/http/RequestHandler.js.map +1 -0
- package/dist/comm/http/RequestHandlerFactory.d.ts +6 -0
- package/dist/comm/http/RequestHandlerFactory.js +7 -0
- package/dist/comm/http/RequestHandlerFactory.js.map +1 -0
- package/dist/comm/http/ServiceNowProcessorRequest.d.ts +9 -0
- package/dist/comm/http/ServiceNowProcessorRequest.js +61 -0
- package/dist/comm/http/ServiceNowProcessorRequest.js.map +1 -0
- package/dist/comm/http/ServiceNowRequest.d.ts +21 -0
- package/dist/comm/http/ServiceNowRequest.js +75 -0
- package/dist/comm/http/ServiceNowRequest.js.map +1 -0
- package/dist/comm/http/TableAPIRequest.d.ts +14 -0
- package/dist/comm/http/TableAPIRequest.js +46 -0
- package/dist/comm/http/TableAPIRequest.js.map +1 -0
- package/dist/comm/http/UserSession.d.ts +11 -0
- package/dist/comm/http/UserSession.js +24 -0
- package/dist/comm/http/UserSession.js.map +1 -0
- package/dist/comm/ws/ATFMessageHandler.d.ts +4 -0
- package/dist/comm/ws/ATFMessageHandler.js +5 -0
- package/dist/comm/ws/ATFMessageHandler.js.map +1 -0
- package/dist/constants/Extension.d.ts +1 -0
- package/dist/constants/Extension.js +2 -0
- package/dist/constants/Extension.js.map +1 -0
- package/dist/constants/Files.d.ts +3 -0
- package/dist/constants/Files.js +4 -0
- package/dist/constants/Files.js.map +1 -0
- package/dist/constants/ServiceNow.d.ts +2 -0
- package/dist/constants/ServiceNow.js +3 -0
- package/dist/constants/ServiceNow.js.map +1 -0
- package/dist/encryption/decrypt.d.ts +1 -0
- package/dist/encryption/decrypt.js +10 -0
- package/dist/encryption/decrypt.js.map +1 -0
- package/dist/encryption/encrypt.d.ts +1 -0
- package/dist/encryption/encrypt.js +13 -0
- package/dist/encryption/encrypt.js.map +1 -0
- package/dist/exception/FileException.d.ts +6 -0
- package/dist/exception/FileException.js +15 -0
- package/dist/exception/FileException.js.map +1 -0
- package/dist/exception/FileExistsException.d.ts +2 -0
- package/dist/exception/FileExistsException.js +3 -0
- package/dist/exception/FileExistsException.js.map +1 -0
- package/dist/exception/InvalidParameterException.d.ts +5 -0
- package/dist/exception/InvalidParameterException.js +12 -0
- package/dist/exception/InvalidParameterException.js.map +1 -0
- package/dist/exception/PathException.d.ts +2 -0
- package/dist/exception/PathException.js +3 -0
- package/dist/exception/PathException.js.map +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -0
- package/dist/model/types.d.ts +10 -0
- package/dist/model/types.js +2 -0
- package/dist/model/types.js.map +1 -0
- package/dist/now/sdk/auth/CredentialStore.d.ts +2 -0
- package/dist/now/sdk/auth/CredentialStore.js +3 -0
- package/dist/now/sdk/auth/CredentialStore.js.map +1 -0
- package/dist/now/sdk/auth/CredentialWrapper.d.ts +31 -0
- package/dist/now/sdk/auth/CredentialWrapper.js +89 -0
- package/dist/now/sdk/auth/CredentialWrapper.js.map +1 -0
- package/dist/sn/BackgroundScriptExecutor.d.ts +44 -0
- package/dist/sn/BackgroundScriptExecutor.js +187 -0
- package/dist/sn/BackgroundScriptExecutor.js.map +1 -0
- package/dist/sn/IServiceNowInstance.d.ts +7 -0
- package/dist/sn/IServiceNowInstance.js +2 -0
- package/dist/sn/IServiceNowInstance.js.map +1 -0
- package/dist/sn/SNRequestBase.d.ts +13 -0
- package/dist/sn/SNRequestBase.js +24 -0
- package/dist/sn/SNRequestBase.js.map +1 -0
- package/dist/sn/ServiceNowInstance.d.ts +21 -0
- package/dist/sn/ServiceNowInstance.js +43 -0
- package/dist/sn/ServiceNowInstance.js.map +1 -0
- package/dist/sn/factory/ISNFactory.d.ts +0 -0
- package/dist/sn/factory/ISNFactory.js +1 -0
- package/dist/sn/factory/ISNFactory.js.map +1 -0
- package/dist/sn/factory/SNFactoryBase.d.ts +0 -0
- package/dist/sn/factory/SNFactoryBase.js +1 -0
- package/dist/sn/factory/SNFactoryBase.js.map +1 -0
- package/dist/sn/user/UserRequest.d.ts +7 -0
- package/dist/sn/user/UserRequest.js +32 -0
- package/dist/sn/user/UserRequest.js.map +1 -0
- package/dist/sn/user/factory/UserFactory.d.ts +2 -0
- package/dist/sn/user/factory/UserFactory.js +3 -0
- package/dist/sn/user/factory/UserFactory.js.map +1 -0
- package/dist/sn/user/model/IUser.d.ts +135 -0
- package/dist/sn/user/model/IUser.js +2 -0
- package/dist/sn/user/model/IUser.js.map +1 -0
- package/dist/sn/user/model/User.d.ts +202 -0
- package/dist/sn/user/model/User.js +465 -0
- package/dist/sn/user/model/User.js.map +1 -0
- package/dist/util/AppUtil.d.ts +3 -0
- package/dist/util/AppUtil.js +6 -0
- package/dist/util/AppUtil.js.map +1 -0
- package/dist/util/Logger.d.ts +21 -0
- package/dist/util/Logger.js +84 -0
- package/dist/util/Logger.js.map +1 -0
- package/dist/util/NowStringUtil.d.ts +3 -0
- package/dist/util/NowStringUtil.js +6 -0
- package/dist/util/NowStringUtil.js.map +1 -0
- package/dist/util/utils.d.ts +5 -0
- package/dist/util/utils.js +8 -0
- package/dist/util/utils.js.map +1 -0
- package/package.json +139 -0
package/package.json
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sonisoft/now-sdk-ext-core",
|
|
3
|
+
"version": "1.0.0-alpha.30",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "",
|
|
8
|
+
"url": ""
|
|
9
|
+
},
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build-index-export": "npx ctix build --config ./.ctirc",
|
|
14
|
+
"prepublish": "npm version prerelease",
|
|
15
|
+
"publish-registry": "npm publish",
|
|
16
|
+
"push": "npm run build && npm run pre-publish && npm run publish-registry",
|
|
17
|
+
"alpha": "npm version premajor --preid alpha",
|
|
18
|
+
"beta": " npm version premajor --preid beta",
|
|
19
|
+
"buildts": "tsc -p ./ && tsc-alias",
|
|
20
|
+
"build": "npm run clean && npm run build-index-export && npm run buildts",
|
|
21
|
+
"clean": "rimraf dist && rimraf tsconfig.tsbuildinfo",
|
|
22
|
+
"copy-static-assets": "ts-node copyStaticAssets.ts",
|
|
23
|
+
"debug": "npm run build && npm run watch-debug",
|
|
24
|
+
"lint": "tsc --noEmit && eslint ./src",
|
|
25
|
+
"start": "npm run serve",
|
|
26
|
+
"semantic-release": "semantic-release",
|
|
27
|
+
"test": "node --experimental-vm-modules node_modules/.bin/jest --forceExit --coverage --collectCoverage --coverageDirectory=\"./coverage\" --ci --reporters=default --reporters=jest-junit --watchAll=false",
|
|
28
|
+
"watch-debug": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run serve-debug\"",
|
|
29
|
+
"watch-test": "npm run test -- --watchAll",
|
|
30
|
+
"watch-ts": "tsc -w",
|
|
31
|
+
"watch": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run watch-node\""
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "restricted"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"main": "./dist/index.js",
|
|
40
|
+
"types": "./dist/index.d.ts",
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@servicenow/glide": "^26.0.1",
|
|
43
|
+
"@servicenow/sdk": "2.0.1",
|
|
44
|
+
"@servicenow/sdk-build": "2.0.1",
|
|
45
|
+
"@servicenow/sdk-build-core": "2.0.1",
|
|
46
|
+
"@servicenow/sdk-cli": "2.0.1",
|
|
47
|
+
"@servicenow/sdk-cli-core": "2.0.1",
|
|
48
|
+
"@servicenow/sdk-core": "2.0.1",
|
|
49
|
+
"@servicenow/sdk-project": "2.0.1",
|
|
50
|
+
"@ts-morph/common": "^0.24.0",
|
|
51
|
+
"@types/mock-fs": "^4.13.4",
|
|
52
|
+
"@types/node-gzip": "^1.1.3",
|
|
53
|
+
"async": "3.2.5",
|
|
54
|
+
"axios": "^1.7.2",
|
|
55
|
+
"bcrypt-nodejs": "0.0.3",
|
|
56
|
+
"bluebird": "3.7.2",
|
|
57
|
+
"body-parser": "1.20.2",
|
|
58
|
+
"cometd": "^8.0.4",
|
|
59
|
+
"cometd-nodejs-client": "^2.0.0",
|
|
60
|
+
"compression": "1.7.4",
|
|
61
|
+
"crypto": "^1.0.1",
|
|
62
|
+
"crypto-js": "4.2.0",
|
|
63
|
+
"dotenv": "16.4.5",
|
|
64
|
+
"errorhandler": "1.5.1",
|
|
65
|
+
"fast-xml-parser": "^4.4.1",
|
|
66
|
+
"fs-extra": "*",
|
|
67
|
+
"get-installed-path": "^4.0.8",
|
|
68
|
+
"jsdom": "^24.1.1",
|
|
69
|
+
"json5": "^2.2.3",
|
|
70
|
+
"lodash": "^4.17.21",
|
|
71
|
+
"lusca": "1.7.0",
|
|
72
|
+
"node-fetch": "^3.3.2",
|
|
73
|
+
"node-gzip": "1.1.2",
|
|
74
|
+
"qs": "^6.12.2",
|
|
75
|
+
"ts-morph": "^23.0.0",
|
|
76
|
+
"typed-config": "^1.0.0",
|
|
77
|
+
"winston": "3.14.2",
|
|
78
|
+
"ws": "^8.18.0",
|
|
79
|
+
"xml2js": "^0.6.2",
|
|
80
|
+
"zod": "^3.23.8"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@eslint/js": "^9.10.0",
|
|
84
|
+
"@semantic-release/git": "^10.0.1",
|
|
85
|
+
"@semantic-release/gitlab": "^13.2.1",
|
|
86
|
+
"@semantic-release/npm": "^12.0.1",
|
|
87
|
+
"@types/async": "3.2.24",
|
|
88
|
+
"@types/bcrypt-nodejs": "0.0.31",
|
|
89
|
+
"@types/bluebird": "3.5.42",
|
|
90
|
+
"@types/body-parser": "1.19.5",
|
|
91
|
+
"@types/chai": "4.3.17",
|
|
92
|
+
"@types/compression": "1.7.5",
|
|
93
|
+
"@types/crypto-js": "^4.2.2",
|
|
94
|
+
"@types/errorhandler": "1.5.3",
|
|
95
|
+
"@types/eslint": "9.6.0",
|
|
96
|
+
"@types/eslint__js": "^8.42.3",
|
|
97
|
+
"@types/fs-extra": "^11.0.4",
|
|
98
|
+
"@types/jest": "^29.5.12",
|
|
99
|
+
"@types/jquery": "3.5.30",
|
|
100
|
+
"@types/lodash": "^4.17.7",
|
|
101
|
+
"@types/lusca": "1.7.5",
|
|
102
|
+
"@types/node": "^22.3",
|
|
103
|
+
"@types/request": "2.48.12",
|
|
104
|
+
"@types/request-promise": "4.1.51",
|
|
105
|
+
"@types/shelljs": "0.8.15",
|
|
106
|
+
"@types/supertest": "6.0.2",
|
|
107
|
+
"@types/uuid": "^10.0.0",
|
|
108
|
+
"@types/winston": "2.4.4",
|
|
109
|
+
"@types/ws": "^8.5.12",
|
|
110
|
+
"chai": "5.1.1",
|
|
111
|
+
"concurrently": "8.2.2",
|
|
112
|
+
"create-ts-index": "^1.14.0",
|
|
113
|
+
"ctix": "^2.6.4",
|
|
114
|
+
"diff": "^5.1.0",
|
|
115
|
+
"eslint": "^8.57.0",
|
|
116
|
+
"glob": "^11.0.0",
|
|
117
|
+
"globals": "^15.9.0",
|
|
118
|
+
"jest": "^29.7.0",
|
|
119
|
+
"jest-junit": "^16.0.0",
|
|
120
|
+
"mock-fs": "^5.2.0",
|
|
121
|
+
"nodemon": "^3.1.4",
|
|
122
|
+
"prettier": "^3.3.3",
|
|
123
|
+
"rimraf": "^6.0.0",
|
|
124
|
+
"semantic-release": "^24.1.0",
|
|
125
|
+
"shelljs": "0.8.5",
|
|
126
|
+
"supertest": "7.0.0",
|
|
127
|
+
"ts-jest": "^29.2.4",
|
|
128
|
+
"ts-jest-mocker": "^1.0.0",
|
|
129
|
+
"ts-node": "^10.9.2",
|
|
130
|
+
"tsc-alias": "^1.8.10",
|
|
131
|
+
"tsconfig-paths": "^4.2.0",
|
|
132
|
+
"typescript": "^5.5.4",
|
|
133
|
+
"typescript-eslint": "^8.5.0",
|
|
134
|
+
"typescript-transform-paths": "^3.5.0"
|
|
135
|
+
},
|
|
136
|
+
"engines": {
|
|
137
|
+
"node": ">=14.0.0"
|
|
138
|
+
}
|
|
139
|
+
}
|