@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.
Files changed (159) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/index.d.ts +3 -2
  3. package/dist/index.js +4 -5
  4. package/dist/index.js.map +1 -1
  5. package/dist/package.json +19 -19
  6. package/dist/src/Castle.d.ts +17 -5
  7. package/dist/src/Castle.js +64 -6
  8. package/dist/src/Castle.js.map +1 -1
  9. package/dist/src/api/services/api-approve-device.service.d.ts +2 -2
  10. package/dist/src/api/services/api-approve-device.service.js.map +1 -1
  11. package/dist/src/api/services/api-archive-list-item.service.d.ts +5 -0
  12. package/dist/src/api/services/api-archive-list-item.service.js +26 -0
  13. package/dist/src/api/services/api-archive-list-item.service.js.map +1 -0
  14. package/dist/src/api/services/api-authenticate.service.d.ts +1 -1
  15. package/dist/src/api/services/api-create-list-item.service.d.ts +5 -0
  16. package/dist/src/api/services/api-create-list-item.service.js +26 -0
  17. package/dist/src/api/services/api-create-list-item.service.js.map +1 -0
  18. package/dist/src/api/services/api-create-list.service.d.ts +5 -0
  19. package/dist/src/api/services/api-create-list.service.js +26 -0
  20. package/dist/src/api/services/api-create-list.service.js.map +1 -0
  21. package/dist/src/api/services/api-delete-list.service.d.ts +5 -0
  22. package/dist/src/api/services/api-delete-list.service.js +26 -0
  23. package/dist/src/api/services/api-delete-list.service.js.map +1 -0
  24. package/dist/src/api/services/api-fetch-all-lists.service.d.ts +4 -0
  25. package/dist/src/api/services/api-fetch-all-lists.service.js +26 -0
  26. package/dist/src/api/services/api-fetch-all-lists.service.js.map +1 -0
  27. package/dist/src/api/services/api-fetch-list-item.service.d.ts +5 -0
  28. package/dist/src/api/services/api-fetch-list-item.service.js +26 -0
  29. package/dist/src/api/services/api-fetch-list-item.service.js.map +1 -0
  30. package/dist/src/api/services/api-fetch-list.service.d.ts +5 -0
  31. package/dist/src/api/services/api-fetch-list.service.js +26 -0
  32. package/dist/src/api/services/api-fetch-list.service.js.map +1 -0
  33. package/dist/src/api/services/api-filter.service.d.ts +1 -1
  34. package/dist/src/api/services/api-get-device.service.d.ts +2 -2
  35. package/dist/src/api/services/api-get-device.service.js.map +1 -1
  36. package/dist/src/api/services/api-get-devices-for-user.service.d.ts +2 -2
  37. package/dist/src/api/services/api-get-devices-for-user.service.js.map +1 -1
  38. package/dist/src/api/services/api-log.service.d.ts +1 -1
  39. package/dist/src/api/services/api-report-device.service.d.ts +2 -2
  40. package/dist/src/api/services/api-report-device.service.js.map +1 -1
  41. package/dist/src/api/services/api-risk.service.d.ts +2 -1
  42. package/dist/src/api/services/api-risk.service.js +3 -3
  43. package/dist/src/api/services/api-risk.service.js.map +1 -1
  44. package/dist/src/api/services/api-search-list-items.service.d.ts +5 -0
  45. package/dist/src/api/services/api-search-list-items.service.js +26 -0
  46. package/dist/src/api/services/api-search-list-items.service.js.map +1 -0
  47. package/dist/src/api/services/api-search-lists.service.d.ts +5 -0
  48. package/dist/src/api/services/api-search-lists.service.js +26 -0
  49. package/dist/src/api/services/api-search-lists.service.js.map +1 -0
  50. package/dist/src/api/services/api-track.service.d.ts +1 -1
  51. package/dist/src/api/services/api-unarchive-list-item.service.d.ts +5 -0
  52. package/dist/src/api/services/api-unarchive-list-item.service.js +26 -0
  53. package/dist/src/api/services/api-unarchive-list-item.service.js.map +1 -0
  54. package/dist/src/api/services/api-update-list-item.service.d.ts +5 -0
  55. package/dist/src/api/services/api-update-list-item.service.js +26 -0
  56. package/dist/src/api/services/api-update-list-item.service.js.map +1 -0
  57. package/dist/src/api/services/api-update-list.service.d.ts +5 -0
  58. package/dist/src/api/services/api-update-list.service.js +26 -0
  59. package/dist/src/api/services/api-update-list.service.js.map +1 -0
  60. package/dist/src/api/services/index.d.ts +12 -0
  61. package/dist/src/api/services/index.js +12 -0
  62. package/dist/src/api/services/index.js.map +1 -1
  63. package/dist/src/client-id/services/client-id-extract.service.d.ts +1 -1
  64. package/dist/src/client-id/services/client-id-extract.service.js +1 -1
  65. package/dist/src/client-id/services/client-id-extract.service.js.map +1 -1
  66. package/dist/src/command/services/command-approve-device.service.d.ts +2 -2
  67. package/dist/src/command/services/command-approve-device.service.js.map +1 -1
  68. package/dist/src/command/services/command-archive-list-item.service.d.ts +16 -0
  69. package/dist/src/command/services/command-archive-list-item.service.js +12 -0
  70. package/dist/src/command/services/command-archive-list-item.service.js.map +1 -0
  71. package/dist/src/command/services/command-create-list-item.service.d.ts +16 -0
  72. package/dist/src/command/services/command-create-list-item.service.js +12 -0
  73. package/dist/src/command/services/command-create-list-item.service.js.map +1 -0
  74. package/dist/src/command/services/command-create-list.service.d.ts +16 -0
  75. package/dist/src/command/services/command-create-list.service.js +10 -0
  76. package/dist/src/command/services/command-create-list.service.js.map +1 -0
  77. package/dist/src/command/services/command-delete-list.service.d.ts +16 -0
  78. package/dist/src/command/services/command-delete-list.service.js +12 -0
  79. package/dist/src/command/services/command-delete-list.service.js.map +1 -0
  80. package/dist/src/command/services/command-fetch-all-lists.service.d.ts +15 -0
  81. package/dist/src/command/services/command-fetch-all-lists.service.js +10 -0
  82. package/dist/src/command/services/command-fetch-all-lists.service.js.map +1 -0
  83. package/dist/src/command/services/command-fetch-list-item.service.d.ts +16 -0
  84. package/dist/src/command/services/command-fetch-list-item.service.js +12 -0
  85. package/dist/src/command/services/command-fetch-list-item.service.js.map +1 -0
  86. package/dist/src/command/services/command-fetch-list.service.d.ts +16 -0
  87. package/dist/src/command/services/command-fetch-list.service.js +12 -0
  88. package/dist/src/command/services/command-fetch-list.service.js.map +1 -0
  89. package/dist/src/command/services/command-generate.service.d.ts +2 -2
  90. package/dist/src/command/services/command-generate.service.js.map +1 -1
  91. package/dist/src/command/services/command-get-device.service.d.ts +2 -2
  92. package/dist/src/command/services/command-get-device.service.js.map +1 -1
  93. package/dist/src/command/services/command-get-devices-for-user.service.d.ts +2 -2
  94. package/dist/src/command/services/command-get-devices-for-user.service.js +2 -2
  95. package/dist/src/command/services/command-get-devices-for-user.service.js.map +1 -1
  96. package/dist/src/command/services/command-report-device.service.d.ts +2 -2
  97. package/dist/src/command/services/command-report-device.service.js.map +1 -1
  98. package/dist/src/command/services/command-search-list-items.service.d.ts +16 -0
  99. package/dist/src/command/services/command-search-list-items.service.js +12 -0
  100. package/dist/src/command/services/command-search-list-items.service.js.map +1 -0
  101. package/dist/src/command/services/command-search-lists.service.d.ts +16 -0
  102. package/dist/src/command/services/command-search-lists.service.js +10 -0
  103. package/dist/src/command/services/command-search-lists.service.js.map +1 -0
  104. package/dist/src/command/services/command-unarchive-list-item.service.d.ts +16 -0
  105. package/dist/src/command/services/command-unarchive-list-item.service.js +12 -0
  106. package/dist/src/command/services/command-unarchive-list-item.service.js.map +1 -0
  107. package/dist/src/command/services/command-update-list-item.service.d.ts +16 -0
  108. package/dist/src/command/services/command-update-list-item.service.js +12 -0
  109. package/dist/src/command/services/command-update-list-item.service.js.map +1 -0
  110. package/dist/src/command/services/command-update-list.service.d.ts +16 -0
  111. package/dist/src/command/services/command-update-list.service.js +12 -0
  112. package/dist/src/command/services/command-update-list.service.js.map +1 -0
  113. package/dist/src/command/services/index.d.ts +12 -0
  114. package/dist/src/command/services/index.js +12 -0
  115. package/dist/src/command/services/index.js.map +1 -1
  116. package/dist/src/context/services/context-get-default.service.d.ts +4 -1
  117. package/dist/src/context/services/context-get-default.service.js.map +1 -1
  118. package/dist/src/context/services/context-prepare.service.d.ts +4 -1
  119. package/dist/src/context/services/context-prepare.service.js.map +1 -1
  120. package/dist/src/headers/services/headers-get-cookie.service.d.ts +1 -1
  121. package/dist/src/headers/services/headers-get-cookie.service.js +1 -1
  122. package/dist/src/headers/services/headers-get-cookie.service.js.map +1 -1
  123. package/dist/src/models/{verdict.d.ts → action.d.ts} +1 -1
  124. package/dist/src/models/action.js +10 -0
  125. package/dist/src/models/action.js.map +1 -0
  126. package/dist/src/models/authenticate-result.d.ts +2 -2
  127. package/dist/src/models/events.d.ts +17 -0
  128. package/dist/src/models/events.js +23 -0
  129. package/dist/src/models/events.js.map +1 -0
  130. package/dist/src/models/index.d.ts +4 -1
  131. package/dist/src/models/index.js +4 -1
  132. package/dist/src/models/index.js.map +1 -1
  133. package/dist/src/models/list-item.d.ts +15 -0
  134. package/dist/src/models/list-item.js +3 -0
  135. package/dist/src/models/list-item.js.map +1 -0
  136. package/dist/src/models/list.d.ts +11 -0
  137. package/dist/src/models/list.js +3 -0
  138. package/dist/src/models/list.js.map +1 -0
  139. package/dist/src/payload/models/address_payload.d.ts +8 -0
  140. package/dist/src/payload/models/address_payload.js +3 -0
  141. package/dist/src/payload/models/address_payload.js.map +1 -0
  142. package/dist/src/payload/models/device_payload.d.ts +7 -0
  143. package/dist/src/payload/models/device_payload.js +3 -0
  144. package/dist/src/payload/models/device_payload.js.map +1 -0
  145. package/dist/src/payload/models/filter_payload.d.ts +6 -2
  146. package/dist/src/payload/models/index.d.ts +4 -0
  147. package/dist/src/payload/models/index.js +4 -0
  148. package/dist/src/payload/models/index.js.map +1 -1
  149. package/dist/src/payload/models/list-payload.d.ts +26 -0
  150. package/dist/src/payload/models/list-payload.js +3 -0
  151. package/dist/src/payload/models/list-payload.js.map +1 -0
  152. package/dist/src/payload/models/list_item_payload.d.ts +31 -0
  153. package/dist/src/payload/models/list_item_payload.js +3 -0
  154. package/dist/src/payload/models/list_item_payload.js.map +1 -0
  155. package/dist/src/payload/models/log_payload.d.ts +2 -3
  156. package/dist/src/payload/models/risk_payload.d.ts +11 -2
  157. package/package.json +19 -19
  158. package/dist/src/models/verdict.js +0 -10
  159. 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 { FailoverStrategy } from './src/failover/failover.module';
6
- export { PayloadPrepareService } from './src/payload/payload.module';
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.PayloadPrepareService = exports.FailoverStrategy = exports.Castle = void 0;
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
- var failover_module_1 = require("./src/failover/failover.module");
23
- Object.defineProperty(exports, "FailoverStrategy", { enumerable: true, get: function () { return failover_module_1.FailoverStrategy; } });
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,kEAAkE;AAAzD,mHAAA,gBAAgB,OAAA;AACzB,+DAAqE;AAA5D,uHAAA,qBAAqB,OAAA;AAC9B,+DAAqE;AAA5D,uHAAA,qBAAqB,OAAA"}
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.1.1",
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 --runInBand",
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 && yarn prettier-verify",
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.2.6",
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.11.18",
42
- "@types/node-fetch": "2.6.2",
43
- "@typescript-eslint/eslint-plugin": "5.49.0",
44
- "@typescript-eslint/parser": "5.49.0",
45
- "eslint": "8.32.0",
46
- "eslint-config-prettier": "8.6.0",
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.3.1",
53
+ "jest": "29.5.0",
53
54
  "mockdate": "3.0.5",
54
- "prettier": "2.8.3",
55
- "rimraf": "4.1.2",
55
+ "prettier": "2.8.8",
56
+ "rimraf": "5.0.0",
56
57
  "source-map-support": "0.5.21",
57
- "timeout-signal": "1.1.0",
58
- "ts-jest": "29.0.5",
58
+ "timeout-signal": "2.0.0",
59
+ "ts-jest": "29.1.0",
59
60
  "ts-node": "10.9.1",
60
- "typescript": "4.9.4"
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.8.0",
72
- "pino-pretty": "^9.1.1"
71
+ "pino": "^8.12.1",
72
+ "pino-pretty": "^10.0.0"
73
73
  }
74
74
  }
@@ -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 }: Payload): Promise<any>;
13
- getDevicesForUser({ user_id }: Payload): Promise<any>;
14
- approveDevice({ device_token }: Payload): Promise<any>;
15
- reportDevice({ device_token }: Payload): Promise<any>;
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
  }
@@ -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((_a = params.user) === null || _a === void 0 ? void 0 : _a.id);
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((_a = params.user) === null || _a === void 0 ? void 0 : _a.id);
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({ user_id }) {
71
+ getDevicesForUser({ id, cid }) {
74
72
  return __awaiter(this, void 0, void 0, function* () {
75
- return api_module_1.APIGetDevicesForUserService.call({ user_id }, this.configuration);
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: {
@@ -1 +1 @@
1
- {"version":3,"file":"Castle.js","sourceRoot":"","sources":["../../src/Castle.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iDAU0B;AAC1B,gEAA8D;AAO9D,mDAAyE;AAEzE,MAAa,MAAM;IAGjB,Y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M;YACf,QAAQ,EAAE,IAAI;YACd,eAAe,EAAE,cAAc;SAChC,CAAC;IACJ,CAAC;CACF;AApID,wBAoIC"}
@@ -1,5 +1,5 @@
1
1
  import { Configuration } from '../../configuration';
2
- import { Payload } from '../../payload/payload.module';
2
+ import type { DevicePayload } from '../../payload/payload.module';
3
3
  export declare const APIApproveDeviceService: {
4
- call: (options: Payload, configuration: Configuration) => Promise<any>;
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,OAAgB,EAChB,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"}
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,5 @@
1
+ import { Configuration } from '../../configuration';
2
+ import type { ListItemPayload } from '../../payload/models';
3
+ export declare const APIArchiveListItemService: {
4
+ call: (options: ListItemPayload, configuration: Configuration) => Promise<any>;
5
+ };
@@ -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,5 @@
1
+ import { Configuration } from '../../configuration';
2
+ import type { CreateListItemPayload } from '../../payload/models';
3
+ export declare const APICreateListItemService: {
4
+ call: (options: CreateListItemPayload, configuration: Configuration) => Promise<any>;
5
+ };
@@ -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,5 @@
1
+ import { Configuration } from '../../configuration';
2
+ import type { CreateListPayload } from '../../payload/models';
3
+ export declare const APICreateListService: {
4
+ call: (options: CreateListPayload, configuration: Configuration) => Promise<any>;
5
+ };
@@ -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,5 @@
1
+ import { Configuration } from '../../configuration';
2
+ import type { ListPayload } from '../../payload/models';
3
+ export declare const APIDeleteListService: {
4
+ call: (options: ListPayload, configuration: Configuration) => Promise<any>;
5
+ };
@@ -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,4 @@
1
+ import { Configuration } from '../../configuration';
2
+ export declare const APIFetchAllListsService: {
3
+ call: (configuration: Configuration) => Promise<any>;
4
+ };
@@ -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,5 @@
1
+ import { Configuration } from '../../configuration';
2
+ import type { ListItemPayload } from '../../payload/models';
3
+ export declare const APIFetchListItemService: {
4
+ call: (options: ListItemPayload, configuration: Configuration) => Promise<any>;
5
+ };
@@ -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,5 @@
1
+ import { Configuration } from '../../configuration';
2
+ import type { ListPayload } from '../../payload/models';
3
+ export declare const APIFetchListService: {
4
+ call: (options: ListPayload, configuration: Configuration) => Promise<any>;
5
+ };
@@ -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 { Payload } from '../../payload/payload.module';
2
+ import type { DevicePayload } from '../../payload/payload.module';
3
3
  export declare const APIGetDeviceService: {
4
- call: (options: Payload, configuration: Configuration) => Promise<any>;
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,OAAgB,EAChB,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
+ {"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"}