connectwise-rest 1.1.0 → 1.3.0
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/.eslintignore +0 -1
- package/LICENSE.md +7 -7
- package/README.md +3 -3
- package/dist/Manage/SystemAPI.js +1 -1
- package/dist/Manage/SystemAPI.js.map +1 -1
- package/dist/Manage.d.ts +13 -0
- package/dist/Manage.d.ts.map +1 -1
- package/dist/Manage.js +24 -0
- package/dist/Manage.js.map +1 -1
- package/dist/ManageAPI.d.ts +1 -1
- package/dist/ManageAPI.d.ts.map +1 -1
- package/dist/utils/ReportInterpolate.d.ts +7 -0
- package/dist/utils/ReportInterpolate.d.ts.map +1 -0
- package/dist/utils/ReportInterpolate.js +29 -0
- package/dist/utils/ReportInterpolate.js.map +1 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +7 -5
- package/src/Manage/SystemAPI.ts +1 -1
- package/src/Manage.ts +34 -1
- package/src/ManageAPI.ts +1 -1
- package/src/utils/ReportInterpolate.ts +30 -0
- package/src/utils/index.ts +2 -1
- package/swagger-errors.md +3 -0
- package/test/test-automate.js +120 -0
- package/test/{test.js → test-manage.js} +7 -118
- package/dist/connectwise-rest.d.ts +0 -108638
- package/dist/tsdoc-metadata.json +0 -11
- package/test/ts-test-utils.ts +0 -27
package/dist/tsdoc-metadata.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.19.5"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
package/test/ts-test-utils.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export type PromiseArray<T> = Array<Promise<T>>
|
|
2
|
-
|
|
3
|
-
export function isPromise(input: unknown): input is Promise<unknown> {
|
|
4
|
-
return (
|
|
5
|
-
!!input &&
|
|
6
|
-
(typeof input === 'object' || typeof input === 'function') &&
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
typeof input.then === 'function'
|
|
10
|
-
)
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function isPromiseType(input: unknown): input is Promise<unknown> {
|
|
14
|
-
return isPromise(input)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function isArrayOfPromises(input: unknown): input is PromiseArray<unknown> {
|
|
18
|
-
if (Array.isArray(input)) {
|
|
19
|
-
if (Array.length === 0) {
|
|
20
|
-
return true
|
|
21
|
-
}
|
|
22
|
-
if (isPromise(input.pop)) {
|
|
23
|
-
return true
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return false
|
|
27
|
-
}
|