@chrt-inc/typescript-sdk 1.961.0 → 1.963.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 (130) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +5 -0
  4. package/dist/cjs/api/resources/billingNew/resources/invoices/index.d.ts +1 -0
  5. package/dist/cjs/api/resources/billingNew/resources/invoices/index.js +1 -0
  6. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/Client.d.ts +51 -0
  7. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/Client.js +139 -0
  8. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/index.js +17 -0
  10. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/requests/ExportListV1Request.d.ts +14 -0
  11. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/requests/ExportListV1Request.js +5 -0
  12. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.js +2 -0
  14. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/index.js +17 -0
  16. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/billingNew/resources/invoices/resources/index.js +41 -0
  18. package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -0
  19. package/dist/cjs/api/resources/shipping/resources/index.js +1 -0
  20. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.d.ts +2 -2
  21. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.js +2 -2
  22. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.d.ts +15 -0
  23. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.js +63 -0
  24. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/index.js +15 -0
  26. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/TaskArtifactCustodyPartiesUpdateReq.d.ts +14 -0
  27. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/TaskArtifactCustodyPartiesUpdateReq.js +5 -0
  28. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/index.js +2 -0
  30. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +14 -0
  31. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +63 -0
  32. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCustodyPartiesUpdateReq.d.ts +14 -0
  33. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCustodyPartiesUpdateReq.js +5 -0
  34. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.ts +26 -0
  36. package/dist/cjs/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.js +118 -0
  37. package/dist/cjs/api/resources/users/resources/privateData/client/Client.d.ts +15 -0
  38. package/dist/cjs/api/resources/users/resources/privateData/client/Client.js +64 -0
  39. package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataNameUpdateReq.d.ts +12 -0
  40. package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataNameUpdateReq.js +5 -0
  41. package/dist/cjs/api/resources/users/resources/privateData/client/requests/index.d.ts +1 -0
  42. package/dist/cjs/api/types/CustodyParty1.d.ts +10 -0
  43. package/dist/cjs/api/types/CustodyParty1.js +5 -0
  44. package/dist/cjs/api/types/CustodyPartyExpanded.d.ts +13 -0
  45. package/dist/cjs/api/types/CustodyPartyExpanded.js +5 -0
  46. package/dist/cjs/api/types/InvoiceExportListItem.d.ts +46 -0
  47. package/dist/cjs/api/types/InvoiceExportListItem.js +5 -0
  48. package/dist/cjs/api/types/InvoiceExportListRes.d.ts +8 -0
  49. package/dist/cjs/api/types/InvoiceExportListRes.js +5 -0
  50. package/dist/cjs/api/types/OrderEventActionEnum1.d.ts +2 -1
  51. package/dist/cjs/api/types/OrderEventActionEnum1.js +1 -0
  52. package/dist/cjs/api/types/OrderEventExpanded1.d.ts +1 -1
  53. package/dist/cjs/api/types/ReelablesAsset1.d.ts +3 -0
  54. package/dist/cjs/api/types/ReelablesAssetPausedTimeWindow1.d.ts +7 -0
  55. package/dist/cjs/api/types/ReelablesAssetPausedTimeWindow1.js +5 -0
  56. package/dist/cjs/api/types/ReelablesDataPointMetadata1.d.ts +1 -0
  57. package/dist/cjs/api/types/Task1.d.ts +2 -0
  58. package/dist/cjs/api/types/TaskArtifact1.d.ts +2 -0
  59. package/dist/cjs/api/types/TaskExpanded.d.ts +2 -0
  60. package/dist/cjs/api/types/UserPrivateData1.d.ts +1 -0
  61. package/dist/cjs/api/types/index.d.ts +5 -0
  62. package/dist/cjs/api/types/index.js +5 -0
  63. package/dist/cjs/version.d.ts +1 -1
  64. package/dist/cjs/version.js +1 -1
  65. package/dist/esm/Client.mjs +2 -2
  66. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +3 -0
  67. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +5 -0
  68. package/dist/esm/api/resources/billingNew/resources/invoices/index.d.mts +1 -0
  69. package/dist/esm/api/resources/billingNew/resources/invoices/index.mjs +1 -0
  70. package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.d.mts +51 -0
  71. package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.mjs +102 -0
  72. package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/index.d.mts +2 -0
  73. package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/index.mjs +1 -0
  74. package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/requests/ExportListV1Request.d.mts +14 -0
  75. package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/requests/ExportListV1Request.mjs +4 -0
  76. package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.d.mts +1 -0
  77. package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/requests/index.mjs +1 -0
  78. package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/index.d.mts +1 -0
  79. package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/index.mjs +1 -0
  80. package/dist/esm/api/resources/billingNew/resources/invoices/resources/index.d.mts +2 -0
  81. package/dist/esm/api/resources/billingNew/resources/invoices/resources/index.mjs +2 -0
  82. package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -0
  83. package/dist/esm/api/resources/shipping/resources/index.mjs +1 -0
  84. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.d.mts +2 -2
  85. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.mjs +2 -2
  86. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.d.mts +15 -0
  87. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.mjs +63 -0
  88. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/index.d.mts +1 -0
  89. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/index.mjs +1 -1
  90. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/TaskArtifactCustodyPartiesUpdateReq.d.mts +14 -0
  91. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/TaskArtifactCustodyPartiesUpdateReq.mjs +4 -0
  92. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/index.d.mts +1 -0
  93. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/index.mjs +1 -0
  94. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +14 -0
  95. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +63 -0
  96. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCustodyPartiesUpdateReq.d.mts +14 -0
  97. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCustodyPartiesUpdateReq.mjs +4 -0
  98. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +1 -0
  99. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.d.mts +26 -0
  100. package/dist/esm/api/resources/trackingIntegrations/resources/reelables/resources/assets/client/Client.mjs +118 -0
  101. package/dist/esm/api/resources/users/resources/privateData/client/Client.d.mts +15 -0
  102. package/dist/esm/api/resources/users/resources/privateData/client/Client.mjs +64 -0
  103. package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataNameUpdateReq.d.mts +12 -0
  104. package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataNameUpdateReq.mjs +4 -0
  105. package/dist/esm/api/resources/users/resources/privateData/client/requests/index.d.mts +1 -0
  106. package/dist/esm/api/types/CustodyParty1.d.mts +10 -0
  107. package/dist/esm/api/types/CustodyParty1.mjs +4 -0
  108. package/dist/esm/api/types/CustodyPartyExpanded.d.mts +13 -0
  109. package/dist/esm/api/types/CustodyPartyExpanded.mjs +4 -0
  110. package/dist/esm/api/types/InvoiceExportListItem.d.mts +46 -0
  111. package/dist/esm/api/types/InvoiceExportListItem.mjs +4 -0
  112. package/dist/esm/api/types/InvoiceExportListRes.d.mts +8 -0
  113. package/dist/esm/api/types/InvoiceExportListRes.mjs +4 -0
  114. package/dist/esm/api/types/OrderEventActionEnum1.d.mts +2 -1
  115. package/dist/esm/api/types/OrderEventActionEnum1.mjs +1 -0
  116. package/dist/esm/api/types/OrderEventExpanded1.d.mts +1 -1
  117. package/dist/esm/api/types/ReelablesAsset1.d.mts +3 -0
  118. package/dist/esm/api/types/ReelablesAssetPausedTimeWindow1.d.mts +7 -0
  119. package/dist/esm/api/types/ReelablesAssetPausedTimeWindow1.mjs +4 -0
  120. package/dist/esm/api/types/ReelablesDataPointMetadata1.d.mts +1 -0
  121. package/dist/esm/api/types/Task1.d.mts +2 -0
  122. package/dist/esm/api/types/TaskArtifact1.d.mts +2 -0
  123. package/dist/esm/api/types/TaskExpanded.d.mts +2 -0
  124. package/dist/esm/api/types/UserPrivateData1.d.mts +1 -0
  125. package/dist/esm/api/types/index.d.mts +5 -0
  126. package/dist/esm/api/types/index.mjs +5 -0
  127. package/dist/esm/version.d.mts +1 -1
  128. package/dist/esm/version.mjs +1 -1
  129. package/package.json +1 -1
  130. package/reference.md +411 -2
@@ -107,6 +107,32 @@ export declare class Assets {
107
107
  */
108
108
  listV1(request?: Chrt.trackingIntegrations.reelables.AssetsListV1Request, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Chrt.ReelablesAssetListRes>;
109
109
  private __listV1;
110
+ /**
111
+ * Pauses a Reelables asset and opens a new pause time window. | authz: min_org_role=operator | () -> (bool)
112
+ *
113
+ * @param {string} assetId
114
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
115
+ *
116
+ * @throws {@link Chrt.UnprocessableEntityError}
117
+ *
118
+ * @example
119
+ * await client.trackingIntegrations.reelables.assets.pauseV1("asset_id")
120
+ */
121
+ pauseV1(assetId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<boolean>;
122
+ private __pauseV1;
123
+ /**
124
+ * Unpauses a Reelables asset and closes the open pause time window. | authz: min_org_role=operator | () -> (bool)
125
+ *
126
+ * @param {string} assetId
127
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
128
+ *
129
+ * @throws {@link Chrt.UnprocessableEntityError}
130
+ *
131
+ * @example
132
+ * await client.trackingIntegrations.reelables.assets.unpauseV1("asset_id")
133
+ */
134
+ unpauseV1(assetId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<boolean>;
135
+ private __unpauseV1;
110
136
  /**
111
137
  * Updates a Reelables asset, applying name changes upstream before updating CHRT. | authz: min_org_role=operator | (ReelablesAssetClientUpdate1) -> (ReelablesAsset1)
112
138
  *
@@ -346,6 +346,124 @@ export class Assets {
346
346
  }
347
347
  });
348
348
  }
349
+ /**
350
+ * Pauses a Reelables asset and opens a new pause time window. | authz: min_org_role=operator | () -> (bool)
351
+ *
352
+ * @param {string} assetId
353
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
354
+ *
355
+ * @throws {@link Chrt.UnprocessableEntityError}
356
+ *
357
+ * @example
358
+ * await client.trackingIntegrations.reelables.assets.pauseV1("asset_id")
359
+ */
360
+ pauseV1(assetId, requestOptions) {
361
+ return core.HttpResponsePromise.fromPromise(this.__pauseV1(assetId, requestOptions));
362
+ }
363
+ __pauseV1(assetId, requestOptions) {
364
+ return __awaiter(this, void 0, void 0, function* () {
365
+ var _a, _b, _c, _d;
366
+ 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);
367
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
368
+ 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/assets/pause/v1/${encodeURIComponent(assetId)}`),
369
+ method: "POST",
370
+ headers: _headers,
371
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
372
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
373
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
374
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
375
+ });
376
+ if (_response.ok) {
377
+ return { data: _response.body, rawResponse: _response.rawResponse };
378
+ }
379
+ if (_response.error.reason === "status-code") {
380
+ switch (_response.error.statusCode) {
381
+ case 422:
382
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
383
+ default:
384
+ throw new errors.ChrtError({
385
+ statusCode: _response.error.statusCode,
386
+ body: _response.error.body,
387
+ rawResponse: _response.rawResponse,
388
+ });
389
+ }
390
+ }
391
+ switch (_response.error.reason) {
392
+ case "non-json":
393
+ throw new errors.ChrtError({
394
+ statusCode: _response.error.statusCode,
395
+ body: _response.error.rawBody,
396
+ rawResponse: _response.rawResponse,
397
+ });
398
+ case "timeout":
399
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking_integrations/reelables/assets/pause/v1/{asset_id}.");
400
+ case "unknown":
401
+ throw new errors.ChrtError({
402
+ message: _response.error.errorMessage,
403
+ rawResponse: _response.rawResponse,
404
+ });
405
+ }
406
+ });
407
+ }
408
+ /**
409
+ * Unpauses a Reelables asset and closes the open pause time window. | authz: min_org_role=operator | () -> (bool)
410
+ *
411
+ * @param {string} assetId
412
+ * @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
413
+ *
414
+ * @throws {@link Chrt.UnprocessableEntityError}
415
+ *
416
+ * @example
417
+ * await client.trackingIntegrations.reelables.assets.unpauseV1("asset_id")
418
+ */
419
+ unpauseV1(assetId, requestOptions) {
420
+ return core.HttpResponsePromise.fromPromise(this.__unpauseV1(assetId, requestOptions));
421
+ }
422
+ __unpauseV1(assetId, requestOptions) {
423
+ return __awaiter(this, void 0, void 0, function* () {
424
+ var _a, _b, _c, _d;
425
+ 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);
426
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
427
+ 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/assets/unpause/v1/${encodeURIComponent(assetId)}`),
428
+ method: "POST",
429
+ headers: _headers,
430
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
431
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
432
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
433
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
434
+ });
435
+ if (_response.ok) {
436
+ return { data: _response.body, rawResponse: _response.rawResponse };
437
+ }
438
+ if (_response.error.reason === "status-code") {
439
+ switch (_response.error.statusCode) {
440
+ case 422:
441
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
442
+ default:
443
+ throw new errors.ChrtError({
444
+ statusCode: _response.error.statusCode,
445
+ body: _response.error.body,
446
+ rawResponse: _response.rawResponse,
447
+ });
448
+ }
449
+ }
450
+ switch (_response.error.reason) {
451
+ case "non-json":
452
+ throw new errors.ChrtError({
453
+ statusCode: _response.error.statusCode,
454
+ body: _response.error.rawBody,
455
+ rawResponse: _response.rawResponse,
456
+ });
457
+ case "timeout":
458
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking_integrations/reelables/assets/unpause/v1/{asset_id}.");
459
+ case "unknown":
460
+ throw new errors.ChrtError({
461
+ message: _response.error.errorMessage,
462
+ rawResponse: _response.rawResponse,
463
+ });
464
+ }
465
+ });
466
+ }
349
467
  /**
350
468
  * Updates a Reelables asset, applying name changes upstream before updating CHRT. | authz: min_org_role=operator | (ReelablesAssetClientUpdate1) -> (ReelablesAsset1)
351
469
  *
@@ -45,6 +45,21 @@ export declare class PrivateData {
45
45
  */
46
46
  upsertFirebaseCloudMessagingTokenV1(request: Chrt.users.FirebaseCloudMessagingTokenClientCreate1, requestOptions?: PrivateData.RequestOptions): core.HttpResponsePromise<Chrt.UserPrivateData1>;
47
47
  private __upsertFirebaseCloudMessagingTokenV1;
48
+ /**
49
+ * Updates the caller's name in WorkOS and private user data. | (UserPrivateDataNameUpdateReq) -> (UserPrivateData1)
50
+ *
51
+ * @param {Chrt.users.UserPrivateDataNameUpdateReq} request
52
+ * @param {PrivateData.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @throws {@link Chrt.UnprocessableEntityError}
55
+ *
56
+ * @example
57
+ * await client.users.privateData.updateNameV1({
58
+ * name: "name"
59
+ * })
60
+ */
61
+ updateNameV1(request: Chrt.users.UserPrivateDataNameUpdateReq, requestOptions?: PrivateData.RequestOptions): core.HttpResponsePromise<Chrt.UserPrivateData1>;
62
+ private __updateNameV1;
48
63
  /**
49
64
  * Retrieves private user data for the caller. | () -> (UserPrivateData1)
50
65
  *
@@ -83,6 +83,70 @@ export class PrivateData {
83
83
  }
84
84
  });
85
85
  }
86
+ /**
87
+ * Updates the caller's name in WorkOS and private user data. | (UserPrivateDataNameUpdateReq) -> (UserPrivateData1)
88
+ *
89
+ * @param {Chrt.users.UserPrivateDataNameUpdateReq} request
90
+ * @param {PrivateData.RequestOptions} requestOptions - Request-specific configuration.
91
+ *
92
+ * @throws {@link Chrt.UnprocessableEntityError}
93
+ *
94
+ * @example
95
+ * await client.users.privateData.updateNameV1({
96
+ * name: "name"
97
+ * })
98
+ */
99
+ updateNameV1(request, requestOptions) {
100
+ return core.HttpResponsePromise.fromPromise(this.__updateNameV1(request, requestOptions));
101
+ }
102
+ __updateNameV1(request, requestOptions) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ var _a, _b, _c, _d;
105
+ 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);
106
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
107
+ 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, "users/user_private_data/update_name/v1"),
108
+ method: "PATCH",
109
+ headers: _headers,
110
+ contentType: "application/json",
111
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
112
+ requestType: "json",
113
+ body: request,
114
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
115
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
116
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
117
+ });
118
+ if (_response.ok) {
119
+ return { data: _response.body, rawResponse: _response.rawResponse };
120
+ }
121
+ if (_response.error.reason === "status-code") {
122
+ switch (_response.error.statusCode) {
123
+ case 422:
124
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
125
+ default:
126
+ throw new errors.ChrtError({
127
+ statusCode: _response.error.statusCode,
128
+ body: _response.error.body,
129
+ rawResponse: _response.rawResponse,
130
+ });
131
+ }
132
+ }
133
+ switch (_response.error.reason) {
134
+ case "non-json":
135
+ throw new errors.ChrtError({
136
+ statusCode: _response.error.statusCode,
137
+ body: _response.error.rawBody,
138
+ rawResponse: _response.rawResponse,
139
+ });
140
+ case "timeout":
141
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /users/user_private_data/update_name/v1.");
142
+ case "unknown":
143
+ throw new errors.ChrtError({
144
+ message: _response.error.errorMessage,
145
+ rawResponse: _response.rawResponse,
146
+ });
147
+ }
148
+ });
149
+ }
86
150
  /**
87
151
  * Retrieves private user data for the caller. | () -> (UserPrivateData1)
88
152
  *
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * name: "name"
8
+ * }
9
+ */
10
+ export interface UserPrivateDataNameUpdateReq {
11
+ name: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -1,3 +1,4 @@
1
1
  export { type FirebaseCloudMessagingTokenClientCreate1 } from "./FirebaseCloudMessagingTokenClientCreate1.mjs";
2
+ export { type UserPrivateDataNameUpdateReq } from "./UserPrivateDataNameUpdateReq.mjs";
2
3
  export { type UserPrivateDataClientCreate1 } from "./UserPrivateDataClientCreate1.mjs";
3
4
  export { type UserPrivateDataClientUpdate1 } from "./UserPrivateDataClientUpdate1.mjs";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CustodyParty1 {
5
+ contact_id?: string | null;
6
+ name?: string | null;
7
+ note?: string | null;
8
+ /** Must be a string starting with `user_` */
9
+ user_id?: string | null;
10
+ }
@@ -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
+ import * as Chrt from "../index.mjs";
5
+ export interface CustodyPartyExpanded {
6
+ contact?: Chrt.Contact1 | null;
7
+ contact_id?: string | null;
8
+ name?: string | null;
9
+ note?: string | null;
10
+ /** Must be a string starting with `user_` */
11
+ user_id?: string | null;
12
+ user_name?: string | null;
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,46 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface InvoiceExportListItem {
6
+ account_name?: string | null;
7
+ airbill_charge: number;
8
+ airlines?: string[];
9
+ awb_numbers?: string[];
10
+ base_rate: number;
11
+ billing_period_end_at_timestamp: string;
12
+ billing_period_start_at_timestamp: string;
13
+ cargo_types?: string[];
14
+ charge_per_quantity?: number | null;
15
+ charges_subtotal: number;
16
+ currency_code: Chrt.BillingCurrencyCodeEnum1;
17
+ delivery_address?: string | null;
18
+ delivery_location_name?: string | null;
19
+ delivery_status?: string | null;
20
+ delivery_stop_number?: number | null;
21
+ delivery_stops_on_order?: number | null;
22
+ destination_iata?: string | null;
23
+ flight_numbers?: string[];
24
+ invoice_approval_timestamp: string;
25
+ invoice_number: string;
26
+ mileage_estimated?: number | null;
27
+ net_billing: number;
28
+ off_chrt_reference_id?: string | null;
29
+ order_placer_comments?: string | null;
30
+ order_short_id?: string | null;
31
+ origin_iata?: string | null;
32
+ other_charges: number;
33
+ other_charges_detail?: string[];
34
+ pod_date?: string | null;
35
+ pod_name?: string | null;
36
+ pod_time?: string | null;
37
+ quantity?: number | null;
38
+ tax_1_amount?: number | null;
39
+ tax_1_description?: string | null;
40
+ tax_2_amount?: number | null;
41
+ tax_2_description?: string | null;
42
+ tax_3_amount?: number | null;
43
+ tax_3_description?: string | null;
44
+ total_tax: number;
45
+ weight_pounds?: number | null;
46
+ }
@@ -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 InvoiceExportListRes {
6
+ items: Chrt.InvoiceExportListItem[];
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 {};
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Canonical vocabulary for shipping order-event and notification actions.
6
6
  */
7
- export type OrderEventActionEnum1 = "shipping.order.draft_started" | "shipping.order.staged" | "shipping.order.in_progress" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.order.exception" | "shipping.order.updated" | "shipping.order.deleted" | "shipping.task_group.added" | "shipping.task_group.staged" | "shipping.task_group.provider_assigned" | "shipping.task_group.driver_assigned" | "shipping.task_group.driver_unassigned" | "shipping.task_group.in_progress" | "shipping.task_group.completed" | "shipping.task_group.skipped" | "shipping.task_group.cancelled" | "shipping.task_group.exception" | "shipping.task_group.message" | "shipping.task_group.file_added" | "shipping.task_group.file_deleted" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task_group.vehicle_type_updated" | "shipping.task_group.ordering_updated" | "shipping.task_group.deleted" | "shipping.task.added" | "shipping.task.staged" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.cancelled" | "shipping.task.exception" | "shipping.task.wait_time_started" | "shipping.task.wait_time_ended" | "shipping.task.wait_time_validated" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "shipping.task.updated" | "shipping.task.deleted" | "shipping.cargo.added" | "shipping.cargo.staged" | "shipping.cargo.in_transit" | "shipping.cargo.delivered" | "shipping.cargo.skipped" | "shipping.cargo.cancelled" | "shipping.cargo.exception" | "shipping.cargo.device_linked" | "shipping.cargo.device_unlinked" | "shipping.cargo.associated" | "shipping.cargo.unassociated" | "shipping.cargo.updated" | "shipping.cargo.deleted" | "shipping.task_artifact.added" | "shipping.task_artifact.completed" | "shipping.task_artifact.file_added" | "shipping.task_artifact.file_deleted" | "shipping.task_artifact.deleted" | "shipping.account.associated" | "shipping.account.removed" | "shipping.contact.associated" | "shipping.contact.removed";
7
+ export type OrderEventActionEnum1 = "shipping.order.draft_started" | "shipping.order.staged" | "shipping.order.in_progress" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.order.exception" | "shipping.order.updated" | "shipping.order.deleted" | "shipping.task_group.added" | "shipping.task_group.staged" | "shipping.task_group.provider_assigned" | "shipping.task_group.driver_assigned" | "shipping.task_group.driver_unassigned" | "shipping.task_group.in_progress" | "shipping.task_group.completed" | "shipping.task_group.skipped" | "shipping.task_group.cancelled" | "shipping.task_group.exception" | "shipping.task_group.message" | "shipping.task_group.file_added" | "shipping.task_group.file_deleted" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task_group.vehicle_type_updated" | "shipping.task_group.ordering_updated" | "shipping.task_group.deleted" | "shipping.task.added" | "shipping.task.staged" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.cancelled" | "shipping.task.exception" | "shipping.task.wait_time_started" | "shipping.task.wait_time_ended" | "shipping.task.wait_time_validated" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "shipping.task.updated" | "shipping.task.deleted" | "shipping.cargo.added" | "shipping.cargo.staged" | "shipping.cargo.in_transit" | "shipping.cargo.delivered" | "shipping.cargo.skipped" | "shipping.cargo.cancelled" | "shipping.cargo.exception" | "shipping.cargo.device_linked" | "shipping.cargo.device_unlinked" | "shipping.cargo.associated" | "shipping.cargo.unassociated" | "shipping.cargo.updated" | "shipping.cargo.deleted" | "shipping.task_artifact.added" | "shipping.task_artifact.completed" | "shipping.task_artifact.updated" | "shipping.task_artifact.file_added" | "shipping.task_artifact.file_deleted" | "shipping.task_artifact.deleted" | "shipping.account.associated" | "shipping.account.removed" | "shipping.contact.associated" | "shipping.contact.removed";
8
8
  export declare const OrderEventActionEnum1: {
9
9
  readonly ShippingOrderDraftStarted: "shipping.order.draft_started";
10
10
  readonly ShippingOrderStaged: "shipping.order.staged";
@@ -61,6 +61,7 @@ export declare const OrderEventActionEnum1: {
61
61
  readonly ShippingCargoDeleted: "shipping.cargo.deleted";
62
62
  readonly ShippingTaskArtifactAdded: "shipping.task_artifact.added";
63
63
  readonly ShippingTaskArtifactCompleted: "shipping.task_artifact.completed";
64
+ readonly ShippingTaskArtifactUpdated: "shipping.task_artifact.updated";
64
65
  readonly ShippingTaskArtifactFileAdded: "shipping.task_artifact.file_added";
65
66
  readonly ShippingTaskArtifactFileDeleted: "shipping.task_artifact.file_deleted";
66
67
  readonly ShippingTaskArtifactDeleted: "shipping.task_artifact.deleted";
@@ -57,6 +57,7 @@ export const OrderEventActionEnum1 = {
57
57
  ShippingCargoDeleted: "shipping.cargo.deleted",
58
58
  ShippingTaskArtifactAdded: "shipping.task_artifact.added",
59
59
  ShippingTaskArtifactCompleted: "shipping.task_artifact.completed",
60
+ ShippingTaskArtifactUpdated: "shipping.task_artifact.updated",
60
61
  ShippingTaskArtifactFileAdded: "shipping.task_artifact.file_added",
61
62
  ShippingTaskArtifactFileDeleted: "shipping.task_artifact.file_deleted",
62
63
  ShippingTaskArtifactDeleted: "shipping.task_artifact.deleted",
@@ -12,5 +12,5 @@ export interface OrderEventExpanded1 {
12
12
  org_public_data?: Chrt.OrgPublicData1 | null;
13
13
  schema_version: number;
14
14
  timestamp: string;
15
- user_public_data?: Chrt.UserPublicData1 | null;
15
+ user_name?: string | null;
16
16
  }
@@ -9,6 +9,7 @@ export interface ReelablesAsset1 {
9
9
  destination_geofence_location?: Chrt.LocationFeature | null;
10
10
  destination_geofence_radius_miles?: number;
11
11
  label?: Chrt.ReelablesLabel1 | null;
12
+ label_activated_at_timestamp?: string | null;
12
13
  last_seen_at_location?: Chrt.LocationFeature | null;
13
14
  last_seen_at_location_city?: string | null;
14
15
  last_seen_at_location_large_city?: string | null;
@@ -16,6 +17,8 @@ export interface ReelablesAsset1 {
16
17
  name: string;
17
18
  /** Must be a string starting with `org_` */
18
19
  org_id: string;
20
+ pause_windows?: Chrt.ReelablesAssetPausedTimeWindow1[];
21
+ paused?: boolean;
19
22
  schema_version: number;
20
23
  synced_at_timestamp?: string | null;
21
24
  workspace_id: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ReelablesAssetPausedTimeWindow1 {
5
+ end_timestamp?: string | null;
6
+ start_timestamp: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -3,4 +3,5 @@
3
3
  */
4
4
  export interface ReelablesDataPointMetadata1 {
5
5
  asset_id: string;
6
+ paused?: boolean;
6
7
  }
@@ -29,6 +29,8 @@ export interface Task1 {
29
29
  order_id: string;
30
30
  order_placer_comments?: string | null;
31
31
  order_short_id: string;
32
+ provided_by?: Chrt.CustodyParty1 | null;
33
+ received_by?: Chrt.CustodyParty1 | null;
32
34
  schema_version: number;
33
35
  skipped_at_timestamp?: string | null;
34
36
  staged_at_timestamp?: string | null;
@@ -20,6 +20,8 @@ export interface TaskArtifact1 {
20
20
  observed_scan_payloads?: string[];
21
21
  order_id: string;
22
22
  order_short_id: string;
23
+ provided_by?: Chrt.CustodyParty1 | null;
24
+ received_by?: Chrt.CustodyParty1 | null;
23
25
  /** Must be a string starting with `org_` */
24
26
  requested_by_org_id?: string | null;
25
27
  /** Must be a string starting with `user_` */
@@ -5,6 +5,8 @@ import * as Chrt from "../index.mjs";
5
5
  export interface TaskExpanded {
6
6
  cargos?: Chrt.Cargo1[] | null;
7
7
  contacts?: Chrt.Contact1[] | null;
8
+ provided_by?: Chrt.CustodyPartyExpanded | null;
9
+ received_by?: Chrt.CustodyPartyExpanded | null;
8
10
  task: Chrt.Task1;
9
11
  task_artifacts?: Chrt.TaskArtifact1[] | null;
10
12
  }
@@ -6,6 +6,7 @@ export interface UserPrivateData1 {
6
6
  _id: string;
7
7
  created_at_timestamp: string;
8
8
  firebase_cloud_messaging_token_data?: Chrt.FirebaseCloudMessagingTokenData1[];
9
+ name?: string | null;
9
10
  phone_number?: string | null;
10
11
  primary_email_address?: string | null;
11
12
  schema_version: number;
@@ -159,6 +159,8 @@ export * from "./CreateInvoiceLineItemsFromLineItemsRes.mjs";
159
159
  export * from "./CreateOffChrtOrgRes.mjs";
160
160
  export * from "./CreateStripeConnectAccountRes.mjs";
161
161
  export * from "./CredentialInfoRes.mjs";
162
+ export * from "./CustodyParty1.mjs";
163
+ export * from "./CustodyPartyExpanded.mjs";
162
164
  export * from "./CxtAuthTypeEnum1.mjs";
163
165
  export * from "./CxtCredsLimited1.mjs";
164
166
  export * from "./CxtCredsListRes.mjs";
@@ -254,6 +256,8 @@ export * from "./InternalDelegationJwtRes.mjs";
254
256
  export * from "./Invoice1.mjs";
255
257
  export * from "./InvoiceExpandedListItem.mjs";
256
258
  export * from "./InvoiceExpandedRes.mjs";
259
+ export * from "./InvoiceExportListItem.mjs";
260
+ export * from "./InvoiceExportListRes.mjs";
257
261
  export * from "./InvoiceLineItem1.mjs";
258
262
  export * from "./InvoiceLineItemAmountTransformation1.mjs";
259
263
  export * from "./InvoiceLineItemAmountTransformationTypeEnum1.mjs";
@@ -440,6 +444,7 @@ export * from "./ProFormaLineItem1.mjs";
440
444
  export * from "./ProFormaLineItemProvenanceEnum1.mjs";
441
445
  export * from "./ReelablesAsset1.mjs";
442
446
  export * from "./ReelablesAssetListRes.mjs";
447
+ export * from "./ReelablesAssetPausedTimeWindow1.mjs";
443
448
  export * from "./ReelablesAssetSortByEnum.mjs";
444
449
  export * from "./ReelablesDataPoint1.mjs";
445
450
  export * from "./ReelablesDataPointMetadata1.mjs";
@@ -159,6 +159,8 @@ export * from "./CreateInvoiceLineItemsFromLineItemsRes.mjs";
159
159
  export * from "./CreateOffChrtOrgRes.mjs";
160
160
  export * from "./CreateStripeConnectAccountRes.mjs";
161
161
  export * from "./CredentialInfoRes.mjs";
162
+ export * from "./CustodyParty1.mjs";
163
+ export * from "./CustodyPartyExpanded.mjs";
162
164
  export * from "./CxtAuthTypeEnum1.mjs";
163
165
  export * from "./CxtCredsLimited1.mjs";
164
166
  export * from "./CxtCredsListRes.mjs";
@@ -254,6 +256,8 @@ export * from "./InternalDelegationJwtRes.mjs";
254
256
  export * from "./Invoice1.mjs";
255
257
  export * from "./InvoiceExpandedListItem.mjs";
256
258
  export * from "./InvoiceExpandedRes.mjs";
259
+ export * from "./InvoiceExportListItem.mjs";
260
+ export * from "./InvoiceExportListRes.mjs";
257
261
  export * from "./InvoiceLineItem1.mjs";
258
262
  export * from "./InvoiceLineItemAmountTransformation1.mjs";
259
263
  export * from "./InvoiceLineItemAmountTransformationTypeEnum1.mjs";
@@ -440,6 +444,7 @@ export * from "./ProFormaLineItem1.mjs";
440
444
  export * from "./ProFormaLineItemProvenanceEnum1.mjs";
441
445
  export * from "./ReelablesAsset1.mjs";
442
446
  export * from "./ReelablesAssetListRes.mjs";
447
+ export * from "./ReelablesAssetPausedTimeWindow1.mjs";
443
448
  export * from "./ReelablesAssetSortByEnum.mjs";
444
449
  export * from "./ReelablesDataPoint1.mjs";
445
450
  export * from "./ReelablesDataPointMetadata1.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.961.0";
1
+ export declare const SDK_VERSION = "1.963.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.961.0";
1
+ export const SDK_VERSION = "1.963.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.961.0",
3
+ "version": "1.963.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",