@castleio/sdk 2.1.1 → 2.2.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/CHANGELOG.md +17 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/package.json +19 -19
- package/dist/src/Castle.d.ts +17 -5
- package/dist/src/Castle.js +64 -6
- package/dist/src/Castle.js.map +1 -1
- package/dist/src/api/services/api-approve-device.service.d.ts +2 -2
- package/dist/src/api/services/api-approve-device.service.js.map +1 -1
- package/dist/src/api/services/api-archive-list-item.service.d.ts +5 -0
- package/dist/src/api/services/api-archive-list-item.service.js +26 -0
- package/dist/src/api/services/api-archive-list-item.service.js.map +1 -0
- package/dist/src/api/services/api-authenticate.service.d.ts +1 -1
- package/dist/src/api/services/api-create-list-item.service.d.ts +5 -0
- package/dist/src/api/services/api-create-list-item.service.js +26 -0
- package/dist/src/api/services/api-create-list-item.service.js.map +1 -0
- package/dist/src/api/services/api-create-list.service.d.ts +5 -0
- package/dist/src/api/services/api-create-list.service.js +26 -0
- package/dist/src/api/services/api-create-list.service.js.map +1 -0
- package/dist/src/api/services/api-delete-list.service.d.ts +5 -0
- package/dist/src/api/services/api-delete-list.service.js +26 -0
- package/dist/src/api/services/api-delete-list.service.js.map +1 -0
- package/dist/src/api/services/api-fetch-all-lists.service.d.ts +4 -0
- package/dist/src/api/services/api-fetch-all-lists.service.js +26 -0
- package/dist/src/api/services/api-fetch-all-lists.service.js.map +1 -0
- package/dist/src/api/services/api-fetch-list-item.service.d.ts +5 -0
- package/dist/src/api/services/api-fetch-list-item.service.js +26 -0
- package/dist/src/api/services/api-fetch-list-item.service.js.map +1 -0
- package/dist/src/api/services/api-fetch-list.service.d.ts +5 -0
- package/dist/src/api/services/api-fetch-list.service.js +26 -0
- package/dist/src/api/services/api-fetch-list.service.js.map +1 -0
- package/dist/src/api/services/api-filter.service.d.ts +1 -1
- package/dist/src/api/services/api-get-device.service.d.ts +2 -2
- package/dist/src/api/services/api-get-device.service.js.map +1 -1
- package/dist/src/api/services/api-get-devices-for-user.service.d.ts +2 -2
- package/dist/src/api/services/api-get-devices-for-user.service.js.map +1 -1
- package/dist/src/api/services/api-log.service.d.ts +1 -1
- package/dist/src/api/services/api-report-device.service.d.ts +2 -2
- package/dist/src/api/services/api-report-device.service.js.map +1 -1
- package/dist/src/api/services/api-risk.service.d.ts +2 -1
- package/dist/src/api/services/api-risk.service.js +3 -3
- package/dist/src/api/services/api-risk.service.js.map +1 -1
- package/dist/src/api/services/api-search-list-items.service.d.ts +5 -0
- package/dist/src/api/services/api-search-list-items.service.js +26 -0
- package/dist/src/api/services/api-search-list-items.service.js.map +1 -0
- package/dist/src/api/services/api-search-lists.service.d.ts +5 -0
- package/dist/src/api/services/api-search-lists.service.js +26 -0
- package/dist/src/api/services/api-search-lists.service.js.map +1 -0
- package/dist/src/api/services/api-track.service.d.ts +1 -1
- package/dist/src/api/services/api-unarchive-list-item.service.d.ts +5 -0
- package/dist/src/api/services/api-unarchive-list-item.service.js +26 -0
- package/dist/src/api/services/api-unarchive-list-item.service.js.map +1 -0
- package/dist/src/api/services/api-update-list-item.service.d.ts +5 -0
- package/dist/src/api/services/api-update-list-item.service.js +26 -0
- package/dist/src/api/services/api-update-list-item.service.js.map +1 -0
- package/dist/src/api/services/api-update-list.service.d.ts +5 -0
- package/dist/src/api/services/api-update-list.service.js +26 -0
- package/dist/src/api/services/api-update-list.service.js.map +1 -0
- package/dist/src/api/services/index.d.ts +12 -0
- package/dist/src/api/services/index.js +12 -0
- package/dist/src/api/services/index.js.map +1 -1
- package/dist/src/client-id/services/client-id-extract.service.d.ts +1 -1
- package/dist/src/client-id/services/client-id-extract.service.js +1 -1
- package/dist/src/client-id/services/client-id-extract.service.js.map +1 -1
- package/dist/src/command/services/command-approve-device.service.d.ts +2 -2
- package/dist/src/command/services/command-approve-device.service.js.map +1 -1
- package/dist/src/command/services/command-archive-list-item.service.d.ts +16 -0
- package/dist/src/command/services/command-archive-list-item.service.js +12 -0
- package/dist/src/command/services/command-archive-list-item.service.js.map +1 -0
- package/dist/src/command/services/command-create-list-item.service.d.ts +16 -0
- package/dist/src/command/services/command-create-list-item.service.js +12 -0
- package/dist/src/command/services/command-create-list-item.service.js.map +1 -0
- package/dist/src/command/services/command-create-list.service.d.ts +16 -0
- package/dist/src/command/services/command-create-list.service.js +10 -0
- package/dist/src/command/services/command-create-list.service.js.map +1 -0
- package/dist/src/command/services/command-delete-list.service.d.ts +16 -0
- package/dist/src/command/services/command-delete-list.service.js +12 -0
- package/dist/src/command/services/command-delete-list.service.js.map +1 -0
- package/dist/src/command/services/command-fetch-all-lists.service.d.ts +15 -0
- package/dist/src/command/services/command-fetch-all-lists.service.js +10 -0
- package/dist/src/command/services/command-fetch-all-lists.service.js.map +1 -0
- package/dist/src/command/services/command-fetch-list-item.service.d.ts +16 -0
- package/dist/src/command/services/command-fetch-list-item.service.js +12 -0
- package/dist/src/command/services/command-fetch-list-item.service.js.map +1 -0
- package/dist/src/command/services/command-fetch-list.service.d.ts +16 -0
- package/dist/src/command/services/command-fetch-list.service.js +12 -0
- package/dist/src/command/services/command-fetch-list.service.js.map +1 -0
- package/dist/src/command/services/command-generate.service.d.ts +2 -2
- package/dist/src/command/services/command-generate.service.js.map +1 -1
- package/dist/src/command/services/command-get-device.service.d.ts +2 -2
- package/dist/src/command/services/command-get-device.service.js.map +1 -1
- package/dist/src/command/services/command-get-devices-for-user.service.d.ts +2 -2
- package/dist/src/command/services/command-get-devices-for-user.service.js +2 -2
- package/dist/src/command/services/command-get-devices-for-user.service.js.map +1 -1
- package/dist/src/command/services/command-report-device.service.d.ts +2 -2
- package/dist/src/command/services/command-report-device.service.js.map +1 -1
- package/dist/src/command/services/command-search-list-items.service.d.ts +16 -0
- package/dist/src/command/services/command-search-list-items.service.js +12 -0
- package/dist/src/command/services/command-search-list-items.service.js.map +1 -0
- package/dist/src/command/services/command-search-lists.service.d.ts +16 -0
- package/dist/src/command/services/command-search-lists.service.js +10 -0
- package/dist/src/command/services/command-search-lists.service.js.map +1 -0
- package/dist/src/command/services/command-unarchive-list-item.service.d.ts +16 -0
- package/dist/src/command/services/command-unarchive-list-item.service.js +12 -0
- package/dist/src/command/services/command-unarchive-list-item.service.js.map +1 -0
- package/dist/src/command/services/command-update-list-item.service.d.ts +16 -0
- package/dist/src/command/services/command-update-list-item.service.js +12 -0
- package/dist/src/command/services/command-update-list-item.service.js.map +1 -0
- package/dist/src/command/services/command-update-list.service.d.ts +16 -0
- package/dist/src/command/services/command-update-list.service.js +12 -0
- package/dist/src/command/services/command-update-list.service.js.map +1 -0
- package/dist/src/command/services/index.d.ts +12 -0
- package/dist/src/command/services/index.js +12 -0
- package/dist/src/command/services/index.js.map +1 -1
- package/dist/src/context/services/context-get-default.service.d.ts +4 -1
- package/dist/src/context/services/context-get-default.service.js.map +1 -1
- package/dist/src/context/services/context-prepare.service.d.ts +4 -1
- package/dist/src/context/services/context-prepare.service.js.map +1 -1
- package/dist/src/headers/services/headers-get-cookie.service.d.ts +1 -1
- package/dist/src/headers/services/headers-get-cookie.service.js +1 -1
- package/dist/src/headers/services/headers-get-cookie.service.js.map +1 -1
- package/dist/src/models/{verdict.d.ts → action.d.ts} +1 -1
- package/dist/src/models/action.js +10 -0
- package/dist/src/models/action.js.map +1 -0
- package/dist/src/models/authenticate-result.d.ts +2 -2
- package/dist/src/models/events.d.ts +17 -0
- package/dist/src/models/events.js +23 -0
- package/dist/src/models/events.js.map +1 -0
- package/dist/src/models/index.d.ts +4 -1
- package/dist/src/models/index.js +4 -1
- package/dist/src/models/index.js.map +1 -1
- package/dist/src/models/list-item.d.ts +15 -0
- package/dist/src/models/list-item.js +3 -0
- package/dist/src/models/list-item.js.map +1 -0
- package/dist/src/models/list.d.ts +11 -0
- package/dist/src/models/list.js +3 -0
- package/dist/src/models/list.js.map +1 -0
- package/dist/src/payload/models/address_payload.d.ts +8 -0
- package/dist/src/payload/models/address_payload.js +3 -0
- package/dist/src/payload/models/address_payload.js.map +1 -0
- package/dist/src/payload/models/device_payload.d.ts +7 -0
- package/dist/src/payload/models/device_payload.js +3 -0
- package/dist/src/payload/models/device_payload.js.map +1 -0
- package/dist/src/payload/models/filter_payload.d.ts +6 -2
- package/dist/src/payload/models/index.d.ts +4 -0
- package/dist/src/payload/models/index.js +4 -0
- package/dist/src/payload/models/index.js.map +1 -1
- package/dist/src/payload/models/list-payload.d.ts +26 -0
- package/dist/src/payload/models/list-payload.js +3 -0
- package/dist/src/payload/models/list-payload.js.map +1 -0
- package/dist/src/payload/models/list_item_payload.d.ts +31 -0
- package/dist/src/payload/models/list_item_payload.js +3 -0
- package/dist/src/payload/models/list_item_payload.js.map +1 -0
- package/dist/src/payload/models/log_payload.d.ts +2 -3
- package/dist/src/payload/models/risk_payload.d.ts +11 -2
- package/package.json +19 -19
- package/dist/src/models/verdict.js +0 -10
- package/dist/src/models/verdict.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.2.1
|
|
4
|
+
|
|
5
|
+
- [#157](https://github.com/castle/castle-node/pull/157)
|
|
6
|
+
* exposed more data types publicly
|
|
7
|
+
|
|
8
|
+
## 2.2.0
|
|
9
|
+
|
|
10
|
+
- [#155](https://github.com/castle/castle-node/pull/155)
|
|
11
|
+
- [#152](https://github.com/castle/castle-node/pull/152)
|
|
12
|
+
- [#151](https://github.com/castle/castle-node/pull/151)
|
|
13
|
+
- [#150](https://github.com/castle/castle-node/pull/150)
|
|
14
|
+
* added more typings, consts and added List API
|
|
15
|
+
|
|
16
|
+
- [#154](https://github.com/castle/castle-node/pull/154)
|
|
17
|
+
- [#153](https://github.com/castle/castle-node/pull/153)
|
|
18
|
+
* dependencies bumps, removed express.js dependency
|
|
19
|
+
|
|
3
20
|
## 2.1.1
|
|
4
21
|
|
|
5
22
|
- [#146](https://github.com/castle/castle-node/pull/146)
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { Castle } from './src/Castle';
|
|
2
2
|
export { ConfigurationProperties as CastleConfiguration } from './src/configuration';
|
|
3
3
|
export * from './src/constants';
|
|
4
|
+
export * from './src/models';
|
|
4
5
|
export * from './src/errors';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
6
|
+
export * from './src/failover/failover.module';
|
|
7
|
+
export * from './src/payload/payload.module';
|
|
7
8
|
export { ContextPrepareService } from './src/context/context.module';
|
package/dist/index.js
CHANGED
|
@@ -14,15 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ContextPrepareService = exports.
|
|
17
|
+
exports.ContextPrepareService = exports.Castle = void 0;
|
|
18
18
|
var Castle_1 = require("./src/Castle");
|
|
19
19
|
Object.defineProperty(exports, "Castle", { enumerable: true, get: function () { return Castle_1.Castle; } });
|
|
20
20
|
__exportStar(require("./src/constants"), exports);
|
|
21
|
+
__exportStar(require("./src/models"), exports);
|
|
21
22
|
__exportStar(require("./src/errors"), exports);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var payload_module_1 = require("./src/payload/payload.module");
|
|
25
|
-
Object.defineProperty(exports, "PayloadPrepareService", { enumerable: true, get: function () { return payload_module_1.PayloadPrepareService; } });
|
|
23
|
+
__exportStar(require("./src/failover/failover.module"), exports);
|
|
24
|
+
__exportStar(require("./src/payload/payload.module"), exports);
|
|
26
25
|
var context_module_1 = require("./src/context/context.module");
|
|
27
26
|
Object.defineProperty(exports, "ContextPrepareService", { enumerable: true, get: function () { return context_module_1.ContextPrepareService; } });
|
|
28
27
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAA7B,gGAAA,MAAM,OAAA;AAEf,kDAAgC;AAChC,+CAA6B;AAC7B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAA7B,gGAAA,MAAM,OAAA;AAEf,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,iEAA+C;AAC/C,+DAA6C;AAC7C,+DAAqE;AAA5D,uHAAA,qBAAqB,OAAA"}
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/package",
|
|
3
3
|
"name": "@castleio/sdk",
|
|
4
4
|
"description": "Castle SDK for Node",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.2.1",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"repository": "git@github.com:castle/castle-node.git",
|
|
8
8
|
"author": {
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"clean": "rimraf dist",
|
|
17
17
|
"build": "tsc",
|
|
18
18
|
"start": "tsc -w",
|
|
19
|
-
"test": "jest
|
|
19
|
+
"test": "jest",
|
|
20
20
|
"lint-fix": "eslint --fix --quiet '{src,test}/**/*.{js,ts,tsx}' '*.{js,ts,tsx}'",
|
|
21
21
|
"lint-verify": "eslint '{src,test}/**/*.{js,ts,tsx}' '*.{js,ts,tsx}'",
|
|
22
|
-
"prepush": "yarn build && yarn lint-fix
|
|
22
|
+
"prepush": "yarn build && yarn lint-fix",
|
|
23
23
|
"prepublishOnly": "yarn build"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
@@ -32,43 +32,43 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/fetch-mock": "7.3.5",
|
|
35
|
-
"@types/jest": "29.
|
|
35
|
+
"@types/jest": "29.5.1",
|
|
36
36
|
"@types/lodash.get": "4.4.7",
|
|
37
37
|
"@types/lodash.isempty": "4.4.7",
|
|
38
38
|
"@types/lodash.merge": "4.6.7",
|
|
39
39
|
"@types/lodash.pickby": "4.6.7",
|
|
40
40
|
"@types/lodash.reduce": "4.6.7",
|
|
41
|
-
"@types/node": "18.
|
|
42
|
-
"@types/node-fetch": "2.6.
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
44
|
-
"@typescript-eslint/parser": "5.
|
|
45
|
-
"eslint": "8.
|
|
46
|
-
"eslint-config-prettier": "8.
|
|
41
|
+
"@types/node": "18.16.3",
|
|
42
|
+
"@types/node-fetch": "2.6.3",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "5.59.2",
|
|
44
|
+
"@typescript-eslint/parser": "5.59.2",
|
|
45
|
+
"eslint": "8.40.0",
|
|
46
|
+
"eslint-config-prettier": "8.8.0",
|
|
47
47
|
"eslint-plugin-import": "2.27.5",
|
|
48
48
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
49
49
|
"eslint-plugin-prettier": "4.2.1",
|
|
50
|
+
"express": "4.18.2",
|
|
50
51
|
"fetch-mock": "9.11.0",
|
|
51
52
|
"husky": "8.0.3",
|
|
52
|
-
"jest": "29.
|
|
53
|
+
"jest": "29.5.0",
|
|
53
54
|
"mockdate": "3.0.5",
|
|
54
|
-
"prettier": "2.8.
|
|
55
|
-
"rimraf": "
|
|
55
|
+
"prettier": "2.8.8",
|
|
56
|
+
"rimraf": "5.0.0",
|
|
56
57
|
"source-map-support": "0.5.21",
|
|
57
|
-
"timeout-signal": "
|
|
58
|
-
"ts-jest": "29.0
|
|
58
|
+
"timeout-signal": "2.0.0",
|
|
59
|
+
"ts-jest": "29.1.0",
|
|
59
60
|
"ts-node": "10.9.1",
|
|
60
|
-
"typescript": "
|
|
61
|
+
"typescript": "5.0.4"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
64
|
"abort-controller": "^3.0.0",
|
|
64
|
-
"express": "^4.18.2",
|
|
65
65
|
"lodash.get": "^4.4.2",
|
|
66
66
|
"lodash.isempty": "^4.4.0",
|
|
67
67
|
"lodash.merge": "^4.6.2",
|
|
68
68
|
"lodash.pickby": "^4.6.0",
|
|
69
69
|
"lodash.reduce": "^4.6.0",
|
|
70
70
|
"node-fetch": "< 3",
|
|
71
|
-
"pino": "^8.
|
|
72
|
-
"pino-pretty": "^
|
|
71
|
+
"pino": "^8.12.1",
|
|
72
|
+
"pino-pretty": "^10.0.0"
|
|
73
73
|
}
|
|
74
74
|
}
|
package/dist/src/Castle.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AuthenticateResult } from './models';
|
|
2
|
-
import type { Payload, LogPayload, FilterPayload, RiskPayload } from './payload/payload.module';
|
|
2
|
+
import type { Payload, LogPayload, FilterPayload, RiskPayload, DevicePayload, UserDevicePayload, CreateListItemPayload, CreateListPayload, UpdateListItemPayload, UpdateListPayload, ListItemPayload, ListPayload, SearchListItemsPayload, SearchListsPayload } from './payload/payload.module';
|
|
3
3
|
import { Configuration, ConfigurationProperties } from './configuration';
|
|
4
4
|
export declare class Castle {
|
|
5
5
|
configuration: Configuration;
|
|
@@ -9,9 +9,21 @@ export declare class Castle {
|
|
|
9
9
|
filter(params: FilterPayload): Promise<object>;
|
|
10
10
|
log(params: LogPayload): Promise<void>;
|
|
11
11
|
track(params: Payload): Promise<void>;
|
|
12
|
-
getDevice({ device_token }:
|
|
13
|
-
getDevicesForUser({
|
|
14
|
-
approveDevice({ device_token }:
|
|
15
|
-
reportDevice({ device_token }:
|
|
12
|
+
getDevice({ device_token }: DevicePayload): Promise<any>;
|
|
13
|
+
getDevicesForUser({ id, cid }: UserDevicePayload): Promise<any>;
|
|
14
|
+
approveDevice({ device_token }: DevicePayload): Promise<any>;
|
|
15
|
+
reportDevice({ device_token }: DevicePayload): Promise<any>;
|
|
16
|
+
createListItem(params: CreateListItemPayload): Promise<any>;
|
|
17
|
+
createList(params: CreateListPayload): Promise<any>;
|
|
18
|
+
updateListItem(params: UpdateListItemPayload): Promise<any>;
|
|
19
|
+
updateList(params: UpdateListPayload): Promise<any>;
|
|
20
|
+
archiveListItem(params: ListItemPayload): Promise<any>;
|
|
21
|
+
unarchiveListItem(params: ListItemPayload): Promise<any>;
|
|
22
|
+
deleteList(params: ListPayload): Promise<any>;
|
|
23
|
+
fetchListItem(params: ListItemPayload): Promise<any>;
|
|
24
|
+
fetchList(params: ListPayload): Promise<any>;
|
|
25
|
+
fetchAllLists(): Promise<any>;
|
|
26
|
+
searchListItems(params: SearchListItemsPayload): Promise<any>;
|
|
27
|
+
searchLists(params: SearchListsPayload): Promise<any>;
|
|
16
28
|
private generateDoNotTrackResponse;
|
|
17
29
|
}
|
package/dist/src/Castle.js
CHANGED
|
@@ -29,19 +29,17 @@ class Castle {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
risk(params) {
|
|
32
|
-
var _a;
|
|
33
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
33
|
if (this.configuration.doNotTrack) {
|
|
35
|
-
return this.generateDoNotTrackResponse(
|
|
34
|
+
return this.generateDoNotTrackResponse(params.user.id);
|
|
36
35
|
}
|
|
37
36
|
return api_module_1.APIRiskService.call(params, this.configuration);
|
|
38
37
|
});
|
|
39
38
|
}
|
|
40
39
|
filter(params) {
|
|
41
|
-
var _a;
|
|
42
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
41
|
if (this.configuration.doNotTrack) {
|
|
44
|
-
return this.generateDoNotTrackResponse(
|
|
42
|
+
return this.generateDoNotTrackResponse(params.matching_user_id);
|
|
45
43
|
}
|
|
46
44
|
return api_module_1.APIFilterService.call(params, this.configuration);
|
|
47
45
|
});
|
|
@@ -70,9 +68,9 @@ class Castle {
|
|
|
70
68
|
return api_module_1.APIGetDeviceService.call({ device_token }, this.configuration);
|
|
71
69
|
});
|
|
72
70
|
}
|
|
73
|
-
getDevicesForUser({
|
|
71
|
+
getDevicesForUser({ id, cid }) {
|
|
74
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
return api_module_1.APIGetDevicesForUserService.call({
|
|
73
|
+
return api_module_1.APIGetDevicesForUserService.call({ id, cid }, this.configuration);
|
|
76
74
|
});
|
|
77
75
|
}
|
|
78
76
|
approveDevice({ device_token }) {
|
|
@@ -85,6 +83,66 @@ class Castle {
|
|
|
85
83
|
return api_module_1.APIReportDeviceService.call({ device_token }, this.configuration);
|
|
86
84
|
});
|
|
87
85
|
}
|
|
86
|
+
createListItem(params) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
return api_module_1.APICreateListItemService.call(params, this.configuration);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
createList(params) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
return api_module_1.APICreateListService.call(params, this.configuration);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
updateListItem(params) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
return api_module_1.APIUpdateListItemService.call(params, this.configuration);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
updateList(params) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
return api_module_1.APIUpdateListService.call(params, this.configuration);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
archiveListItem(params) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
return api_module_1.APIArchiveListItemService.call(params, this.configuration);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
unarchiveListItem(params) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
return api_module_1.APIUnarchiveListItemService.call(params, this.configuration);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
deleteList(params) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return api_module_1.APIDeleteListService.call(params, this.configuration);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
fetchListItem(params) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
return api_module_1.APIFetchListItemService.call(params, this.configuration);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
fetchList(params) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
return api_module_1.APIFetchListService.call(params, this.configuration);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
fetchAllLists() {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
return api_module_1.APIFetchAllListsService.call(this.configuration);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
searchListItems(params) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
return api_module_1.APISearchListItemsService.call(params, this.configuration);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
searchLists(params) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
return api_module_1.APISearchListsService.call(params, this.configuration);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
88
146
|
generateDoNotTrackResponse(userId) {
|
|
89
147
|
return {
|
|
90
148
|
policy: {
|
package/dist/src/Castle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Castle.js","sourceRoot":"","sources":["../../src/Castle.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"Castle.js","sourceRoot":"","sources":["../../src/Castle.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iDAsB0B;AAC1B,gEAA8D;AAiB9D,mDAAyE;AAEzE,MAAa,MAAM;IAGjB,YAAY,gBAAyC;QACnD,IAAI,CAAC,aAAa,GAAG,IAAI,6BAAa,CAAC,gBAAgB,CAAC,CAAC;IAC3D,CAAC;IAEY,YAAY,CAAC,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@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Configuration } from '../../configuration';
|
|
2
|
-
import {
|
|
2
|
+
import type { DevicePayload } from '../../payload/payload.module';
|
|
3
3
|
export declare const APIApproveDeviceService: {
|
|
4
|
-
call: (options:
|
|
4
|
+
call: (options: DevicePayload, configuration: Configuration) => Promise<any>;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-approve-device.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-approve-device.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAA2E;AAE3E,+CAA2C;AAC3C,wEAA+C;AAElC,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,CACJ,
|
|
1
|
+
{"version":3,"file":"api-approve-device.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-approve-device.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAA2E;AAE3E,+CAA2C;AAC3C,wEAA+C;AAElC,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,CACJ,OAAsB,EACtB,aAA4B,EACd,EAAE;QAChB,MAAM,UAAU,GAAG,IAAI,0BAAe,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,4CAA2B,CAAC,IAAI,CAC9C,UAAU,EACV,OAAO,EACP,aAAa,CACd,CAAC;QAEF,OAAO,wBAAU,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.APIArchiveListItemService = void 0;
|
|
16
|
+
const command_module_1 = require("../../command/command.module");
|
|
17
|
+
const api_service_1 = require("./api.service");
|
|
18
|
+
const abort_controller_1 = __importDefault(require("abort-controller"));
|
|
19
|
+
exports.APIArchiveListItemService = {
|
|
20
|
+
call: (options, configuration) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
const controller = new abort_controller_1.default();
|
|
22
|
+
const command = command_module_1.CommandArchiveListItemService.call(controller, options, configuration);
|
|
23
|
+
return api_service_1.APIService.call(controller, command, configuration);
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=api-archive-list-item.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-archive-list-item.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-archive-list-item.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAA6E;AAC7E,+CAA2C;AAC3C,wEAA+C;AAGlC,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,CACJ,OAAwB,EACxB,aAA4B,EACd,EAAE;QAChB,MAAM,UAAU,GAAG,IAAI,0BAAe,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,8CAA6B,CAAC,IAAI,CAChD,UAAU,EACV,OAAO,EACP,aAAa,CACd,CAAC;QAEF,OAAO,wBAAU,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Configuration } from '../../configuration';
|
|
2
2
|
import { AuthenticateResult } from '../../models';
|
|
3
|
-
import { Payload } from '../../payload/payload.module';
|
|
3
|
+
import type { Payload } from '../../payload/payload.module';
|
|
4
4
|
export declare const APIAuthenticateService: {
|
|
5
5
|
call: (options: Payload, configuration: Configuration) => Promise<AuthenticateResult>;
|
|
6
6
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.APICreateListItemService = void 0;
|
|
16
|
+
const command_module_1 = require("../../command/command.module");
|
|
17
|
+
const api_service_1 = require("./api.service");
|
|
18
|
+
const abort_controller_1 = __importDefault(require("abort-controller"));
|
|
19
|
+
exports.APICreateListItemService = {
|
|
20
|
+
call: (options, configuration) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
const controller = new abort_controller_1.default();
|
|
22
|
+
const command = command_module_1.CommandCreateListItemService.call(controller, options, configuration);
|
|
23
|
+
return api_service_1.APIService.call(controller, command, configuration);
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=api-create-list-item.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-create-list-item.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-create-list-item.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAA4E;AAC5E,+CAA2C;AAC3C,wEAA+C;AAGlC,QAAA,wBAAwB,GAAG;IACtC,IAAI,EAAE,CACJ,OAA8B,EAC9B,aAA4B,EACd,EAAE;QAChB,MAAM,UAAU,GAAG,IAAI,0BAAe,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,6CAA4B,CAAC,IAAI,CAC/C,UAAU,EACV,OAAO,EACP,aAAa,CACd,CAAC;QAEF,OAAO,wBAAU,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.APICreateListService = void 0;
|
|
16
|
+
const command_module_1 = require("../../command/command.module");
|
|
17
|
+
const api_service_1 = require("./api.service");
|
|
18
|
+
const abort_controller_1 = __importDefault(require("abort-controller"));
|
|
19
|
+
exports.APICreateListService = {
|
|
20
|
+
call: (options, configuration) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
const controller = new abort_controller_1.default();
|
|
22
|
+
const command = command_module_1.CommandCreateListService.call(controller, options, configuration);
|
|
23
|
+
return api_service_1.APIService.call(controller, command, configuration);
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=api-create-list.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-create-list.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-create-list.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAAwE;AACxE,+CAA2C;AAC3C,wEAA+C;AAGlC,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,CACJ,OAA0B,EAC1B,aAA4B,EACd,EAAE;QAChB,MAAM,UAAU,GAAG,IAAI,0BAAe,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,yCAAwB,CAAC,IAAI,CAC3C,UAAU,EACV,OAAO,EACP,aAAa,CACd,CAAC;QAEF,OAAO,wBAAU,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.APIDeleteListService = void 0;
|
|
16
|
+
const command_module_1 = require("../../command/command.module");
|
|
17
|
+
const api_service_1 = require("./api.service");
|
|
18
|
+
const abort_controller_1 = __importDefault(require("abort-controller"));
|
|
19
|
+
exports.APIDeleteListService = {
|
|
20
|
+
call: (options, configuration) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
const controller = new abort_controller_1.default();
|
|
22
|
+
const command = command_module_1.CommandDeleteListService.call(controller, options, configuration);
|
|
23
|
+
return api_service_1.APIService.call(controller, command, configuration);
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=api-delete-list.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-delete-list.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-delete-list.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAAwE;AACxE,+CAA2C;AAC3C,wEAA+C;AAGlC,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,CACJ,OAAoB,EACpB,aAA4B,EACd,EAAE;QAChB,MAAM,UAAU,GAAG,IAAI,0BAAe,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,yCAAwB,CAAC,IAAI,CAC3C,UAAU,EACV,OAAO,EACP,aAAa,CACd,CAAC;QAEF,OAAO,wBAAU,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.APIFetchAllListsService = void 0;
|
|
16
|
+
const command_module_1 = require("../../command/command.module");
|
|
17
|
+
const api_service_1 = require("./api.service");
|
|
18
|
+
const abort_controller_1 = __importDefault(require("abort-controller"));
|
|
19
|
+
exports.APIFetchAllListsService = {
|
|
20
|
+
call: (configuration) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
const controller = new abort_controller_1.default();
|
|
22
|
+
const command = command_module_1.CommandFetchAllListsService.call(controller, configuration);
|
|
23
|
+
return api_service_1.APIService.call(controller, command, configuration);
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=api-fetch-all-lists.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-fetch-all-lists.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-fetch-all-lists.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAA2E;AAC3E,+CAA2C;AAC3C,wEAA+C;AAElC,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,CAAO,aAA4B,EAAgB,EAAE;QACzD,MAAM,UAAU,GAAG,IAAI,0BAAe,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,4CAA2B,CAAC,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;QAE5E,OAAO,wBAAU,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.APIFetchListItemService = void 0;
|
|
16
|
+
const command_module_1 = require("../../command/command.module");
|
|
17
|
+
const api_service_1 = require("./api.service");
|
|
18
|
+
const abort_controller_1 = __importDefault(require("abort-controller"));
|
|
19
|
+
exports.APIFetchListItemService = {
|
|
20
|
+
call: (options, configuration) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
const controller = new abort_controller_1.default();
|
|
22
|
+
const command = command_module_1.CommandFetchListItemService.call(controller, options, configuration);
|
|
23
|
+
return api_service_1.APIService.call(controller, command, configuration);
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=api-fetch-list-item.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-fetch-list-item.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-fetch-list-item.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAA2E;AAC3E,+CAA2C;AAC3C,wEAA+C;AAGlC,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,CACJ,OAAwB,EACxB,aAA4B,EACd,EAAE;QAChB,MAAM,UAAU,GAAG,IAAI,0BAAe,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,4CAA2B,CAAC,IAAI,CAC9C,UAAU,EACV,OAAO,EACP,aAAa,CACd,CAAC;QAEF,OAAO,wBAAU,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.APIFetchListService = void 0;
|
|
16
|
+
const command_module_1 = require("../../command/command.module");
|
|
17
|
+
const api_service_1 = require("./api.service");
|
|
18
|
+
const abort_controller_1 = __importDefault(require("abort-controller"));
|
|
19
|
+
exports.APIFetchListService = {
|
|
20
|
+
call: (options, configuration) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
const controller = new abort_controller_1.default();
|
|
22
|
+
const command = command_module_1.CommandFetchListService.call(controller, options, configuration);
|
|
23
|
+
return api_service_1.APIService.call(controller, command, configuration);
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=api-fetch-list.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-fetch-list.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-fetch-list.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAAuE;AACvE,+CAA2C;AAC3C,wEAA+C;AAGlC,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,CACJ,OAAoB,EACpB,aAA4B,EACd,EAAE;QAChB,MAAM,UAAU,GAAG,IAAI,0BAAe,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,wCAAuB,CAAC,IAAI,CAC1C,UAAU,EACV,OAAO,EACP,aAAa,CACd,CAAC;QAEF,OAAO,wBAAU,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC,CAAA;CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Configuration } from '../../configuration';
|
|
2
|
-
import { FilterPayload } from '../../payload/payload.module';
|
|
2
|
+
import type { FilterPayload } from '../../payload/payload.module';
|
|
3
3
|
export declare const APIFilterService: {
|
|
4
4
|
call: (options: FilterPayload, configuration: Configuration) => Promise<object>;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Configuration } from '../../configuration';
|
|
2
|
-
import {
|
|
2
|
+
import type { DevicePayload } from '../../payload/payload.module';
|
|
3
3
|
export declare const APIGetDeviceService: {
|
|
4
|
-
call: (options:
|
|
4
|
+
call: (options: DevicePayload, configuration: Configuration) => Promise<any>;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-get-device.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-get-device.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAAuE;AAEvE,+CAA2C;AAC3C,wEAA+C;AAElC,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,CACJ,
|
|
1
|
+
{"version":3,"file":"api-get-device.service.js","sourceRoot":"","sources":["../../../../src/api/services/api-get-device.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iEAAuE;AAEvE,+CAA2C;AAC3C,wEAA+C;AAElC,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,CACJ,OAAsB,EACtB,aAA4B,EACd,EAAE;QAChB,MAAM,UAAU,GAAG,IAAI,0BAAe,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,wCAAuB,CAAC,IAAI,CAC1C,UAAU,EACV,OAAO,EACP,aAAa,CACd,CAAC;QAEF,OAAO,wBAAU,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC7D,CAAC,CAAA;CACF,CAAC"}
|