@chrt-inc/typescript-sdk 1.887.0 → 1.891.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.
Files changed (196) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.d.ts +1 -0
  3. package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.js +5 -1
  4. package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.ts +3 -0
  5. package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +30 -0
  6. package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.js +125 -0
  7. package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.d.ts +12 -0
  8. package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.js +5 -0
  9. package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactClientCreate1.d.ts +1 -1
  10. package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.d.ts +53 -0
  12. package/dist/cjs/api/resources/shipping/resources/cargos/client/Client.js +200 -0
  13. package/dist/cjs/api/resources/shipping/resources/cargos/client/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/shipping/resources/cargos/client/index.js +15 -0
  15. package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.d.ts +18 -0
  16. package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.js +5 -0
  17. package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.d.ts +16 -0
  18. package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.js +5 -0
  19. package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.d.ts +16 -0
  20. package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.js +5 -0
  21. package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/index.d.ts +3 -0
  22. package/dist/cjs/api/resources/shipping/resources/cargos/client/requests/index.js +2 -0
  23. package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -0
  24. package/dist/cjs/api/resources/shipping/resources/index.js +1 -0
  25. package/dist/cjs/api/resources/trackingIntegrations/client/Client.d.ts +3 -0
  26. package/dist/cjs/api/resources/trackingIntegrations/client/Client.js +7 -2
  27. package/dist/cjs/api/resources/trackingIntegrations/resources/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/trackingIntegrations/resources/index.js +2 -1
  29. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/client/Client.d.ts +29 -0
  30. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/client/Client.js +27 -0
  31. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/client/index.d.ts +1 -0
  32. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/client/index.js +2 -0
  33. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/index.js +18 -0
  35. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.ts +93 -0
  36. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.js +328 -0
  37. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/index.d.ts +2 -0
  38. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/index.js +17 -0
  39. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/AssetsListV1Request.d.ts +21 -0
  40. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/AssetsListV1Request.js +5 -0
  41. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientUpdate1.d.ts +14 -0
  42. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientUpdate1.js +5 -0
  43. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/index.js +2 -0
  45. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/index.d.ts +1 -0
  46. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/index.js +17 -0
  47. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/index.d.ts +6 -0
  48. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/index.js +45 -0
  49. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.d.ts +51 -0
  50. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.js +135 -0
  51. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/index.d.ts +2 -0
  52. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/index.js +17 -0
  53. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.d.ts +14 -0
  54. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.js +5 -0
  55. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/index.d.ts +1 -0
  56. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/index.js +2 -0
  57. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/index.d.ts +1 -0
  58. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/index.js +17 -0
  59. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.d.ts +62 -0
  60. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.js +197 -0
  61. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.d.ts +2 -0
  62. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.js +17 -0
  63. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.d.ts +21 -0
  64. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.js +5 -0
  65. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.d.ts +1 -0
  66. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.js +2 -0
  67. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.js +17 -0
  69. package/dist/cjs/api/types/Contact1.d.ts +1 -1
  70. package/dist/cjs/api/types/ReelablesAsset1.d.ts +22 -0
  71. package/dist/cjs/api/types/ReelablesAsset1.js +5 -0
  72. package/dist/cjs/api/types/ReelablesAssetListRes.d.ts +8 -0
  73. package/dist/cjs/api/types/ReelablesAssetListRes.js +5 -0
  74. package/dist/cjs/api/types/ReelablesAssetSortByEnum.d.ts +8 -0
  75. package/dist/cjs/api/types/ReelablesAssetSortByEnum.js +10 -0
  76. package/dist/cjs/api/types/ReelablesAssetSyncRes.d.ts +8 -0
  77. package/dist/cjs/api/types/ReelablesAssetSyncRes.js +5 -0
  78. package/dist/cjs/api/types/ReelablesDataPoint1.d.ts +12 -0
  79. package/dist/cjs/api/types/ReelablesDataPoint1.js +5 -0
  80. package/dist/cjs/api/types/ReelablesDataPointMetadata1.d.ts +6 -0
  81. package/dist/cjs/api/types/ReelablesDataPointMetadata1.js +5 -0
  82. package/dist/cjs/api/types/ReelablesLabel1.d.ts +9 -0
  83. package/dist/cjs/api/types/ReelablesLabel1.js +5 -0
  84. package/dist/cjs/api/types/ReelablesTimeseriesRes.d.ts +7 -0
  85. package/dist/cjs/api/types/ReelablesTimeseriesRes.js +5 -0
  86. package/dist/cjs/api/types/ReelablesWorkspace1.d.ts +13 -0
  87. package/dist/cjs/api/types/ReelablesWorkspace1.js +5 -0
  88. package/dist/cjs/api/types/ReelablesWorkspaceListRes.d.ts +8 -0
  89. package/dist/cjs/api/types/ReelablesWorkspaceListRes.js +5 -0
  90. package/dist/cjs/api/types/ReelablesWorkspaceSortByEnum.d.ts +4 -0
  91. package/dist/cjs/api/types/ReelablesWorkspaceSortByEnum.js +5 -0
  92. package/dist/cjs/api/types/ReelablesWorkspaceSyncRes.d.ts +9 -0
  93. package/dist/cjs/api/types/ReelablesWorkspaceSyncRes.js +5 -0
  94. package/dist/cjs/api/types/index.d.ts +12 -0
  95. package/dist/cjs/api/types/index.js +12 -0
  96. package/dist/cjs/version.d.ts +1 -1
  97. package/dist/cjs/version.js +1 -1
  98. package/dist/esm/Client.mjs +2 -2
  99. package/dist/esm/api/resources/orgs/resources/accounts/client/Client.d.mts +1 -0
  100. package/dist/esm/api/resources/orgs/resources/accounts/client/Client.mjs +5 -1
  101. package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.mts +3 -0
  102. package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +30 -0
  103. package/dist/esm/api/resources/orgs/resources/contacts/client/Client.mjs +125 -0
  104. package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.d.mts +12 -0
  105. package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactAccountAddReq.mjs +4 -0
  106. package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactClientCreate1.d.mts +1 -1
  107. package/dist/esm/api/resources/orgs/resources/contacts/client/requests/index.d.mts +1 -0
  108. package/dist/esm/api/resources/shipping/resources/cargos/client/Client.d.mts +53 -0
  109. package/dist/esm/api/resources/shipping/resources/cargos/client/Client.mjs +200 -0
  110. package/dist/esm/api/resources/shipping/resources/cargos/client/index.d.mts +1 -0
  111. package/dist/esm/api/resources/shipping/resources/cargos/client/index.mjs +1 -1
  112. package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.d.mts +18 -0
  113. package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAddToOrderReq.mjs +4 -0
  114. package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.d.mts +16 -0
  115. package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoAssociateWithTaskReq.mjs +4 -0
  116. package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.d.mts +16 -0
  117. package/dist/esm/api/resources/shipping/resources/cargos/client/requests/CargoUnassociateWithTaskReq.mjs +4 -0
  118. package/dist/esm/api/resources/shipping/resources/cargos/client/requests/index.d.mts +3 -0
  119. package/dist/esm/api/resources/shipping/resources/cargos/client/requests/index.mjs +1 -0
  120. package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -0
  121. package/dist/esm/api/resources/shipping/resources/index.mjs +1 -0
  122. package/dist/esm/api/resources/trackingIntegrations/client/Client.d.mts +3 -0
  123. package/dist/esm/api/resources/trackingIntegrations/client/Client.mjs +5 -0
  124. package/dist/esm/api/resources/trackingIntegrations/resources/index.d.mts +1 -0
  125. package/dist/esm/api/resources/trackingIntegrations/resources/index.mjs +1 -0
  126. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/client/Client.d.mts +29 -0
  127. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/client/Client.mjs +23 -0
  128. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/client/index.d.mts +1 -0
  129. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/client/index.mjs +1 -0
  130. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/index.d.mts +2 -0
  131. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/index.mjs +2 -0
  132. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.mts +93 -0
  133. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.mjs +291 -0
  134. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/index.d.mts +2 -0
  135. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/index.mjs +1 -0
  136. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/AssetsListV1Request.d.mts +21 -0
  137. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/AssetsListV1Request.mjs +4 -0
  138. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientUpdate1.d.mts +14 -0
  139. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/ReelablesAssetClientUpdate1.mjs +4 -0
  140. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/index.d.mts +2 -0
  141. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/requests/index.mjs +1 -0
  142. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/index.d.mts +1 -0
  143. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/index.mjs +1 -0
  144. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/index.d.mts +6 -0
  145. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/index.mjs +6 -0
  146. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.d.mts +51 -0
  147. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/Client.mjs +98 -0
  148. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/index.d.mts +2 -0
  149. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/index.mjs +1 -0
  150. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.d.mts +14 -0
  151. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/TimeseriesDataPointsV1Request.mjs +4 -0
  152. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/index.d.mts +1 -0
  153. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/client/requests/index.mjs +1 -0
  154. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/index.d.mts +1 -0
  155. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/timeseries/index.mjs +1 -0
  156. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.d.mts +62 -0
  157. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/Client.mjs +160 -0
  158. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.d.mts +2 -0
  159. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/index.mjs +1 -0
  160. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.d.mts +21 -0
  161. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/WorkspacesListV1Request.mjs +4 -0
  162. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.d.mts +1 -0
  163. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/client/requests/index.mjs +1 -0
  164. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.d.mts +1 -0
  165. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/workspaces/index.mjs +1 -0
  166. package/dist/esm/api/types/Contact1.d.mts +1 -1
  167. package/dist/esm/api/types/ReelablesAsset1.d.mts +22 -0
  168. package/dist/esm/api/types/ReelablesAsset1.mjs +4 -0
  169. package/dist/esm/api/types/ReelablesAssetListRes.d.mts +8 -0
  170. package/dist/esm/api/types/ReelablesAssetListRes.mjs +4 -0
  171. package/dist/esm/api/types/ReelablesAssetSortByEnum.d.mts +8 -0
  172. package/dist/esm/api/types/ReelablesAssetSortByEnum.mjs +7 -0
  173. package/dist/esm/api/types/ReelablesAssetSyncRes.d.mts +8 -0
  174. package/dist/esm/api/types/ReelablesAssetSyncRes.mjs +4 -0
  175. package/dist/esm/api/types/ReelablesDataPoint1.d.mts +12 -0
  176. package/dist/esm/api/types/ReelablesDataPoint1.mjs +4 -0
  177. package/dist/esm/api/types/ReelablesDataPointMetadata1.d.mts +6 -0
  178. package/dist/esm/api/types/ReelablesDataPointMetadata1.mjs +4 -0
  179. package/dist/esm/api/types/ReelablesLabel1.d.mts +9 -0
  180. package/dist/esm/api/types/ReelablesLabel1.mjs +4 -0
  181. package/dist/esm/api/types/ReelablesTimeseriesRes.d.mts +7 -0
  182. package/dist/esm/api/types/ReelablesTimeseriesRes.mjs +4 -0
  183. package/dist/esm/api/types/ReelablesWorkspace1.d.mts +13 -0
  184. package/dist/esm/api/types/ReelablesWorkspace1.mjs +4 -0
  185. package/dist/esm/api/types/ReelablesWorkspaceListRes.d.mts +8 -0
  186. package/dist/esm/api/types/ReelablesWorkspaceListRes.mjs +4 -0
  187. package/dist/esm/api/types/ReelablesWorkspaceSortByEnum.d.mts +4 -0
  188. package/dist/esm/api/types/ReelablesWorkspaceSortByEnum.mjs +4 -0
  189. package/dist/esm/api/types/ReelablesWorkspaceSyncRes.d.mts +9 -0
  190. package/dist/esm/api/types/ReelablesWorkspaceSyncRes.mjs +4 -0
  191. package/dist/esm/api/types/index.d.mts +12 -0
  192. package/dist/esm/api/types/index.mjs +12 -0
  193. package/dist/esm/version.d.mts +1 -1
  194. package/dist/esm/version.mjs +1 -1
  195. package/package.json +1 -1
  196. package/reference.md +888 -64
@@ -0,0 +1,160 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../../../errors/index.mjs";
18
+ export class Workspaces {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Lists cached Reelables workspaces for the caller's organization. | authz: min_org_role=operator | () -> (ReelablesWorkspaceListRes)
24
+ *
25
+ * @param {Chrt.trackingIntegrations.reelables.WorkspacesListV1Request} request
26
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.trackingIntegrations.reelables.workspaces.listV1({
32
+ * sort_by: "name",
33
+ * sort_order: "asc",
34
+ * page: 1,
35
+ * page_size: 1
36
+ * })
37
+ */
38
+ listV1(request = {}, requestOptions) {
39
+ return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
40
+ }
41
+ __listV1() {
42
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
43
+ var _a, _b, _c, _d, _e, _f;
44
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize } = request;
45
+ const _queryParams = {};
46
+ if (sortBy !== undefined) {
47
+ _queryParams["sort_by"] = sortBy;
48
+ }
49
+ if (sortOrder !== undefined) {
50
+ _queryParams["sort_order"] = sortOrder;
51
+ }
52
+ if (page !== undefined) {
53
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
54
+ }
55
+ if (pageSize !== undefined) {
56
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
57
+ }
58
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
59
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
60
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "tracking_integrations/reelables/workspaces/list/v1"),
61
+ method: "GET",
62
+ headers: _headers,
63
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
64
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
65
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
66
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
67
+ });
68
+ if (_response.ok) {
69
+ return { data: _response.body, rawResponse: _response.rawResponse };
70
+ }
71
+ if (_response.error.reason === "status-code") {
72
+ switch (_response.error.statusCode) {
73
+ case 422:
74
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
75
+ default:
76
+ throw new errors.ChrtError({
77
+ statusCode: _response.error.statusCode,
78
+ body: _response.error.body,
79
+ rawResponse: _response.rawResponse,
80
+ });
81
+ }
82
+ }
83
+ switch (_response.error.reason) {
84
+ case "non-json":
85
+ throw new errors.ChrtError({
86
+ statusCode: _response.error.statusCode,
87
+ body: _response.error.rawBody,
88
+ rawResponse: _response.rawResponse,
89
+ });
90
+ case "timeout":
91
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking_integrations/reelables/workspaces/list/v1.");
92
+ case "unknown":
93
+ throw new errors.ChrtError({
94
+ message: _response.error.errorMessage,
95
+ rawResponse: _response.rawResponse,
96
+ });
97
+ }
98
+ });
99
+ }
100
+ /**
101
+ * Synchronizes Reelables workspaces available to the caller's organization without deleting missing workspaces. | authz: min_org_role=operator | () -> (ReelablesWorkspaceSyncRes)
102
+ *
103
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
104
+ *
105
+ * @example
106
+ * await client.trackingIntegrations.reelables.workspaces.syncV1()
107
+ */
108
+ syncV1(requestOptions) {
109
+ return core.HttpResponsePromise.fromPromise(this.__syncV1(requestOptions));
110
+ }
111
+ __syncV1(requestOptions) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ var _a, _b, _c, _d;
114
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
115
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
116
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking_integrations/reelables/workspaces/sync/v1"),
117
+ method: "POST",
118
+ headers: _headers,
119
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
120
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
121
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
122
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
123
+ });
124
+ if (_response.ok) {
125
+ return { data: _response.body, rawResponse: _response.rawResponse };
126
+ }
127
+ if (_response.error.reason === "status-code") {
128
+ throw new errors.ChrtError({
129
+ statusCode: _response.error.statusCode,
130
+ body: _response.error.body,
131
+ rawResponse: _response.rawResponse,
132
+ });
133
+ }
134
+ switch (_response.error.reason) {
135
+ case "non-json":
136
+ throw new errors.ChrtError({
137
+ statusCode: _response.error.statusCode,
138
+ body: _response.error.rawBody,
139
+ rawResponse: _response.rawResponse,
140
+ });
141
+ case "timeout":
142
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking_integrations/reelables/workspaces/sync/v1.");
143
+ case "unknown":
144
+ throw new errors.ChrtError({
145
+ message: _response.error.errorMessage,
146
+ rawResponse: _response.rawResponse,
147
+ });
148
+ }
149
+ });
150
+ }
151
+ _getAuthorizationHeader() {
152
+ return __awaiter(this, void 0, void 0, function* () {
153
+ const bearer = yield core.Supplier.get(this._options.token);
154
+ if (bearer != null) {
155
+ return `Bearer ${bearer}`;
156
+ }
157
+ return undefined;
158
+ });
159
+ }
160
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * sort_by: "name",
9
+ * sort_order: "asc",
10
+ * page: 1,
11
+ * page_size: 1
12
+ * }
13
+ */
14
+ export interface WorkspacesListV1Request {
15
+ /** Field to sort by */
16
+ sort_by?: Chrt.ReelablesWorkspaceSortByEnum | null;
17
+ /** Sort order (asc or desc) */
18
+ sort_order?: Chrt.SortOrderEnum | null;
19
+ page?: number | null;
20
+ page_size?: number | null;
21
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1 @@
1
+ export { type WorkspacesListV1Request } from "./WorkspacesListV1Request.mjs";
@@ -4,7 +4,7 @@
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface Contact1 {
6
6
  _id: string;
7
- account_id?: string | null;
7
+ account_ids?: string[];
8
8
  /** Must be a string starting with `org_` */
9
9
  created_by_org_id: string;
10
10
  email_address?: string | null;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ReelablesAsset1 {
6
+ _id: string;
7
+ asset_id: string;
8
+ created_at_timestamp?: string | null;
9
+ destination_geofence_location?: Chrt.LocationFeature | null;
10
+ destination_geofence_radius_miles?: number;
11
+ label?: Chrt.ReelablesLabel1 | null;
12
+ last_seen_at_location?: Chrt.LocationFeature | null;
13
+ last_seen_at_location_city?: string | null;
14
+ last_seen_at_location_large_city?: string | null;
15
+ last_seen_at_timestamp?: string | null;
16
+ name: string;
17
+ /** Must be a string starting with `org_` */
18
+ org_id: string;
19
+ schema_version: number;
20
+ synced_at_timestamp?: string | null;
21
+ workspace_id: string;
22
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ReelablesAssetListRes {
6
+ items: Chrt.ReelablesAsset1[];
7
+ total_count: number;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ReelablesAssetSortByEnum = "asset_id" | "name";
5
+ export declare const ReelablesAssetSortByEnum: {
6
+ readonly AssetId: "asset_id";
7
+ readonly Name: "name";
8
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const ReelablesAssetSortByEnum = {
5
+ AssetId: "asset_id",
6
+ Name: "name",
7
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ReelablesAssetSyncRes {
6
+ synced_asset_count: number;
7
+ workspace: Chrt.ReelablesWorkspace1;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ReelablesDataPoint1 {
6
+ _id: string;
7
+ accuracy_meters?: number | null;
8
+ location: Chrt.LocationFeature;
9
+ metadata: Chrt.ReelablesDataPointMetadata1;
10
+ schema_version: number;
11
+ timestamp: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ReelablesDataPointMetadata1 {
5
+ asset_id: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ReelablesLabel1 {
5
+ added_at_timestamp: string;
6
+ ble_id: number;
7
+ config__reporting_interval?: string | null;
8
+ nfc_id: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ReelablesTimeseriesRes {
6
+ data_points: Chrt.ReelablesDataPoint1[];
7
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ReelablesWorkspace1 {
5
+ _id: string;
6
+ assets_synced_at_timestamp?: string | null;
7
+ created_at_timestamp: string;
8
+ name: string;
9
+ /** Must be a string starting with `org_` */
10
+ org_id: string;
11
+ schema_version: number;
12
+ workspace_id: string;
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ReelablesWorkspaceListRes {
6
+ items: Chrt.ReelablesWorkspace1[];
7
+ total_count: number;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ReelablesWorkspaceSortByEnum = "name";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ReelablesWorkspaceSyncRes {
6
+ created_count: number;
7
+ items: Chrt.ReelablesWorkspace1[];
8
+ updated_count: number;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -352,6 +352,18 @@ export * from "./Position3D.mjs";
352
352
  export * from "./ProFormaLineItem1.mjs";
353
353
  export * from "./RateSheetMapping1.mjs";
354
354
  export * from "./RateSheetMappingListRes.mjs";
355
+ export * from "./ReelablesAsset1.mjs";
356
+ export * from "./ReelablesAssetListRes.mjs";
357
+ export * from "./ReelablesAssetSortByEnum.mjs";
358
+ export * from "./ReelablesAssetSyncRes.mjs";
359
+ export * from "./ReelablesDataPoint1.mjs";
360
+ export * from "./ReelablesDataPointMetadata1.mjs";
361
+ export * from "./ReelablesLabel1.mjs";
362
+ export * from "./ReelablesTimeseriesRes.mjs";
363
+ export * from "./ReelablesWorkspace1.mjs";
364
+ export * from "./ReelablesWorkspaceListRes.mjs";
365
+ export * from "./ReelablesWorkspaceSortByEnum.mjs";
366
+ export * from "./ReelablesWorkspaceSyncRes.mjs";
355
367
  export * from "./ScanPayloadKindEnum.mjs";
356
368
  export * from "./ScheduleCalendarSpec.mjs";
357
369
  export * from "./ScheduleIntervalSpec.mjs";
@@ -352,6 +352,18 @@ export * from "./Position3D.mjs";
352
352
  export * from "./ProFormaLineItem1.mjs";
353
353
  export * from "./RateSheetMapping1.mjs";
354
354
  export * from "./RateSheetMappingListRes.mjs";
355
+ export * from "./ReelablesAsset1.mjs";
356
+ export * from "./ReelablesAssetListRes.mjs";
357
+ export * from "./ReelablesAssetSortByEnum.mjs";
358
+ export * from "./ReelablesAssetSyncRes.mjs";
359
+ export * from "./ReelablesDataPoint1.mjs";
360
+ export * from "./ReelablesDataPointMetadata1.mjs";
361
+ export * from "./ReelablesLabel1.mjs";
362
+ export * from "./ReelablesTimeseriesRes.mjs";
363
+ export * from "./ReelablesWorkspace1.mjs";
364
+ export * from "./ReelablesWorkspaceListRes.mjs";
365
+ export * from "./ReelablesWorkspaceSortByEnum.mjs";
366
+ export * from "./ReelablesWorkspaceSyncRes.mjs";
355
367
  export * from "./ScanPayloadKindEnum.mjs";
356
368
  export * from "./ScheduleCalendarSpec.mjs";
357
369
  export * from "./ScheduleIntervalSpec.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.887.0";
1
+ export declare const SDK_VERSION = "1.891.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.887.0";
1
+ export const SDK_VERSION = "1.891.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.887.0",
3
+ "version": "1.891.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",