@chrt-inc/typescript-sdk 1.944.0 → 1.953.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 (114) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +1 -0
  5. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +5 -1
  6. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +3 -0
  7. package/dist/cjs/api/resources/shippingIntegrations/client/Client.d.ts +3 -0
  8. package/dist/cjs/api/resources/shippingIntegrations/client/Client.js +19 -14
  9. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.ts +3 -19
  10. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.js +7 -78
  11. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/index.d.ts +0 -1
  12. package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.d.ts +3 -3
  13. package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.js +7 -7
  14. package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.d.ts +3 -3
  15. package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.js +7 -7
  16. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.ts +3 -3
  17. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.js +7 -7
  18. package/dist/cjs/api/resources/shippingIntegrations/resources/index.d.ts +1 -0
  19. package/dist/cjs/api/resources/shippingIntegrations/resources/index.js +2 -1
  20. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.d.ts +44 -0
  21. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.js +121 -0
  22. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.js +2 -0
  24. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/index.js +17 -0
  26. package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.d.ts +3 -3
  27. package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.js +7 -7
  28. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.d.ts +35 -2
  29. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.js +152 -4
  30. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.d.ts +54 -0
  31. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.ts +6 -0
  32. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.ts +6 -0
  33. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.ts +3 -19
  35. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.js +7 -78
  36. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.ts +0 -1
  37. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
  38. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
  39. package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutor.d.ts +17 -0
  40. package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutorListRes.d.ts +8 -0
  41. package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutorListRes.js +5 -0
  42. package/dist/cjs/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.d.ts +8 -0
  43. package/dist/cjs/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.js +10 -0
  44. package/dist/cjs/api/types/ShippingIntegrationOrderExpanded1.d.ts +3 -0
  45. package/dist/cjs/api/types/ShippingIntegrationOrderSortByEnum.d.ts +2 -1
  46. package/dist/cjs/api/types/ShippingIntegrationOrderSortByEnum.js +1 -0
  47. package/dist/cjs/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.d.ts +5 -1
  48. package/dist/cjs/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.js +5 -0
  49. package/dist/cjs/api/types/index.d.ts +3 -0
  50. package/dist/cjs/api/types/index.js +3 -0
  51. package/dist/cjs/version.d.ts +1 -1
  52. package/dist/cjs/version.js +1 -1
  53. package/dist/esm/Client.mjs +2 -2
  54. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +1 -1
  55. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +1 -1
  56. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +1 -0
  57. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +5 -1
  58. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +3 -0
  59. package/dist/esm/api/resources/shippingIntegrations/client/Client.d.mts +3 -0
  60. package/dist/esm/api/resources/shippingIntegrations/client/Client.mjs +5 -0
  61. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.mts +3 -19
  62. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.mjs +7 -78
  63. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/index.d.mts +0 -1
  64. package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.d.mts +3 -3
  65. package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.mjs +7 -7
  66. package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.d.mts +3 -3
  67. package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.mjs +7 -7
  68. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.mts +3 -3
  69. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.mjs +7 -7
  70. package/dist/esm/api/resources/shippingIntegrations/resources/index.d.mts +1 -0
  71. package/dist/esm/api/resources/shippingIntegrations/resources/index.mjs +1 -0
  72. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.d.mts +44 -0
  73. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.mjs +84 -0
  74. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.d.mts +1 -0
  75. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.mjs +1 -0
  76. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/index.d.mts +1 -0
  77. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/index.mjs +1 -0
  78. package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.d.mts +3 -3
  79. package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.mjs +7 -7
  80. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.d.mts +35 -2
  81. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.mjs +152 -4
  82. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.d.mts +54 -0
  83. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.mts +6 -0
  84. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.mts +6 -0
  85. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/index.d.mts +1 -0
  86. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.mts +3 -19
  87. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.mjs +7 -78
  88. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.mts +0 -1
  89. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
  90. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
  91. package/dist/esm/api/types/ShippingIntegrationIntegrationExecutor.d.mts +17 -0
  92. package/dist/esm/api/types/ShippingIntegrationIntegrationExecutorListRes.d.mts +8 -0
  93. package/dist/esm/api/types/ShippingIntegrationIntegrationExecutorListRes.mjs +4 -0
  94. package/dist/esm/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.d.mts +8 -0
  95. package/dist/esm/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.mjs +7 -0
  96. package/dist/esm/api/types/ShippingIntegrationOrderExpanded1.d.mts +3 -0
  97. package/dist/esm/api/types/ShippingIntegrationOrderSortByEnum.d.mts +2 -1
  98. package/dist/esm/api/types/ShippingIntegrationOrderSortByEnum.mjs +1 -0
  99. package/dist/esm/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.d.mts +5 -1
  100. package/dist/esm/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.mjs +4 -1
  101. package/dist/esm/api/types/index.d.mts +3 -0
  102. package/dist/esm/api/types/index.mjs +3 -0
  103. package/dist/esm/version.d.mts +1 -1
  104. package/dist/esm/version.mjs +1 -1
  105. package/package.json +1 -1
  106. package/reference.md +163 -166
  107. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +0 -16
  108. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +0 -16
  109. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +0 -16
  110. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +0 -16
  111. /package/dist/cjs/api/resources/shippingIntegrations/resources/{atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.js → orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.js} +0 -0
  112. /package/dist/cjs/api/{resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.js → types/ShippingIntegrationIntegrationExecutor.js} +0 -0
  113. /package/dist/esm/api/resources/shippingIntegrations/resources/{atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs → orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.mjs} +0 -0
  114. /package/dist/esm/api/{resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs → types/ShippingIntegrationIntegrationExecutor.mjs} +0 -0
@@ -33,16 +33,16 @@ export declare class Orders {
33
33
  /**
34
34
  * Returns one mirrored Xcelerator order by the provider's own order ID with the provider organization expanded. | () -> (XceleratorOrderExpanded1)
35
35
  *
36
- * @param {string} providerOrgId - CHRT org ID of the courier whose Xcelerator instance holds the order
36
+ * @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
37
37
  * @param {string} integrationOrderId - Xcelerator's own ID for the order (its OrderTrackingId), as carried on a unified order row
38
38
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
39
39
  *
40
40
  * @throws {@link Chrt.UnprocessableEntityError}
41
41
  *
42
42
  * @example
43
- * await client.shippingIntegrations.xcelerator.orders.detailByIntegrationOrderIdV1("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.xcelerator.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.XceleratorOrderExpanded1>;
45
+ detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.XceleratorOrderExpanded1>;
46
46
  private __detailByIntegrationOrderIdV1;
47
47
  /**
48
48
  * Returns one mirrored Xcelerator order by its Mongo ObjectId with the provider organization expanded. | () -> (XceleratorOrderExpanded1)
@@ -101,21 +101,5 @@ export declare class Orders {
101
101
  */
102
102
  syncOneV1(request: Chrt.shippingIntegrations.xcelerator.XceleratorOrderSyncOneReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.XceleratorOrder1>;
103
103
  private __syncOneV1;
104
- /**
105
- * Returns distinct Xcelerator integration order IDs matching the query via case-insensitive regex within the caller's organization. | authz: caller's organization scope | () -> (list[ShippingIntegrationOrderTypeaheadResult])
106
- *
107
- * @param {Chrt.shippingIntegrations.xcelerator.OrdersTypeaheadV1Request} request
108
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
109
- *
110
- * @throws {@link Chrt.UnprocessableEntityError}
111
- *
112
- * @example
113
- * await client.shippingIntegrations.xcelerator.orders.typeaheadV1({
114
- * query: "query",
115
- * limit: 1
116
- * })
117
- */
118
- typeaheadV1(request: Chrt.shippingIntegrations.xcelerator.OrdersTypeaheadV1Request, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.ShippingIntegrationOrderTypeaheadResult[]>;
119
- private __typeaheadV1;
120
104
  protected _getAuthorizationHeader(): Promise<string | undefined>;
121
105
  }
@@ -58,24 +58,24 @@ class Orders {
58
58
  /**
59
59
  * Returns one mirrored Xcelerator order by the provider's own order ID with the provider organization expanded. | () -> (XceleratorOrderExpanded1)
60
60
  *
61
- * @param {string} providerOrgId - CHRT org ID of the courier whose Xcelerator instance holds the order
61
+ * @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
62
62
  * @param {string} integrationOrderId - Xcelerator's own ID for the order (its OrderTrackingId), as carried on a unified order row
63
63
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
64
64
  *
65
65
  * @throws {@link Chrt.UnprocessableEntityError}
66
66
  *
67
67
  * @example
68
- * await client.shippingIntegrations.xcelerator.orders.detailByIntegrationOrderIdV1("provider_org_id", "integration_order_id")
68
+ * await client.shippingIntegrations.xcelerator.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
69
69
  */
70
- detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
71
- return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions));
70
+ detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
72
72
  }
73
- __detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
73
+ __detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
74
74
  return __awaiter(this, void 0, void 0, function* () {
75
75
  var _a, _b, _c, _d;
76
76
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
77
77
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
78
- 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, `shipping_integrations/xcelerator/orders/by_integration_order_id/detail/v1/${encodeURIComponent(providerOrgId)}/${encodeURIComponent(integrationOrderId)}`),
78
+ 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, `shipping_integrations/xcelerator/orders/by_integration_order_id/detail/v1/${encodeURIComponent(orgId)}/${encodeURIComponent(integrationOrderId)}`),
79
79
  method: "GET",
80
80
  headers: _headers,
81
81
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -106,7 +106,7 @@ class Orders {
106
106
  rawResponse: _response.rawResponse,
107
107
  });
108
108
  case "timeout":
109
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/xcelerator/orders/by_integration_order_id/detail/v1/{provider_org_id}/{integration_order_id}.");
109
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/xcelerator/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}.");
110
110
  case "unknown":
111
111
  throw new errors.ChrtError({
112
112
  message: _response.error.errorMessage,
@@ -362,77 +362,6 @@ class Orders {
362
362
  }
363
363
  });
364
364
  }
365
- /**
366
- * Returns distinct Xcelerator integration order IDs matching the query via case-insensitive regex within the caller's organization. | authz: caller's organization scope | () -> (list[ShippingIntegrationOrderTypeaheadResult])
367
- *
368
- * @param {Chrt.shippingIntegrations.xcelerator.OrdersTypeaheadV1Request} request
369
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
370
- *
371
- * @throws {@link Chrt.UnprocessableEntityError}
372
- *
373
- * @example
374
- * await client.shippingIntegrations.xcelerator.orders.typeaheadV1({
375
- * query: "query",
376
- * limit: 1
377
- * })
378
- */
379
- typeaheadV1(request, requestOptions) {
380
- return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
381
- }
382
- __typeaheadV1(request, requestOptions) {
383
- return __awaiter(this, void 0, void 0, function* () {
384
- var _a, _b, _c, _d, _e;
385
- const { query, limit } = request;
386
- const _queryParams = {};
387
- _queryParams["query"] = query;
388
- if (limit !== undefined) {
389
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
390
- }
391
- let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
392
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
393
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "shipping_integrations/xcelerator/orders/typeahead/v1"),
394
- method: "GET",
395
- headers: _headers,
396
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
397
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
398
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
399
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
400
- });
401
- if (_response.ok) {
402
- return {
403
- data: _response.body,
404
- rawResponse: _response.rawResponse,
405
- };
406
- }
407
- if (_response.error.reason === "status-code") {
408
- switch (_response.error.statusCode) {
409
- case 422:
410
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
411
- default:
412
- throw new errors.ChrtError({
413
- statusCode: _response.error.statusCode,
414
- body: _response.error.body,
415
- rawResponse: _response.rawResponse,
416
- });
417
- }
418
- }
419
- switch (_response.error.reason) {
420
- case "non-json":
421
- throw new errors.ChrtError({
422
- statusCode: _response.error.statusCode,
423
- body: _response.error.rawBody,
424
- rawResponse: _response.rawResponse,
425
- });
426
- case "timeout":
427
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/xcelerator/orders/typeahead/v1.");
428
- case "unknown":
429
- throw new errors.ChrtError({
430
- message: _response.error.errorMessage,
431
- rawResponse: _response.rawResponse,
432
- });
433
- }
434
- });
435
- }
436
365
  _getAuthorizationHeader() {
437
366
  return __awaiter(this, void 0, void 0, function* () {
438
367
  const bearer = yield core.Supplier.get(this._options.token);
@@ -1,3 +1,2 @@
1
1
  export { type OrdersListV1Request } from "./OrdersListV1Request.js";
2
2
  export { type XceleratorOrderSyncOneReq } from "./XceleratorOrderSyncOneReq.js";
3
- export { type OrdersTypeaheadV1Request } from "./OrdersTypeaheadV1Request.js";
@@ -63,7 +63,7 @@ export declare class Sessions {
63
63
  flightLegsV1(request: Chrt.tracking.SessionsFlightLegsV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.FlightLeg1[]>;
64
64
  private __flightLegsV1;
65
65
  /**
66
- * Returns the raw Cirium positional track for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
66
+ * Returns the Cirium positional track for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
67
67
  *
68
68
  * @param {Chrt.tracking.SessionsFlightTrackV1Request} request
69
69
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -203,7 +203,7 @@ class Sessions {
203
203
  });
204
204
  }
205
205
  /**
206
- * Returns the raw Cirium positional track for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
206
+ * Returns the Cirium positional track for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
207
207
  *
208
208
  * @param {Chrt.tracking.SessionsFlightTrackV1Request} request
209
209
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ /**
6
+ * A distinct integration executor organization configured across shipping integrations.
7
+ *
8
+ * Deliberately carries no credentials or secrets: provides the public identity
9
+ * and the list of shipping integrations the executor org is connected with.
10
+ */
11
+ export interface ShippingIntegrationIntegrationExecutor {
12
+ integration_executor_org?: Chrt.OrgPublicData1 | null;
13
+ /** Must be a string starting with `org_` */
14
+ integration_executor_org_id: string;
15
+ integration_executor_org_name?: string | null;
16
+ integrations?: Chrt.OrgShippingIntegrationEnum1[];
17
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface ShippingIntegrationIntegrationExecutorListRes {
6
+ items: Chrt.ShippingIntegrationIntegrationExecutor[];
7
+ total_count: number;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ShippingIntegrationOrderCompletedAtProvenanceEnum1 = "reported" | "derived";
5
+ export declare const ShippingIntegrationOrderCompletedAtProvenanceEnum1: {
6
+ readonly Reported: "reported";
7
+ readonly Derived: "derived";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ShippingIntegrationOrderCompletedAtProvenanceEnum1 = void 0;
7
+ exports.ShippingIntegrationOrderCompletedAtProvenanceEnum1 = {
8
+ Reported: "reported",
9
+ Derived: "derived",
10
+ };
@@ -4,6 +4,8 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface ShippingIntegrationOrderExpanded1 {
6
6
  _id: string;
7
+ completed_at_provenance?: Chrt.ShippingIntegrationOrderCompletedAtProvenanceEnum1 | null;
8
+ completed_at_timestamp?: string | null;
7
9
  destination?: Chrt.ShippingIntegrationOrderPlace1 | null;
8
10
  first_mirrored_at_timestamp: string;
9
11
  integration_order_id: string;
@@ -18,6 +20,7 @@ export interface ShippingIntegrationOrderExpanded1 {
18
20
  provider_status_raw?: string | null;
19
21
  reference_numbers?: string[];
20
22
  schema_version: number;
23
+ shipper_org?: Chrt.OrgPublicData1 | null;
21
24
  shipping_integration: Chrt.OrgShippingIntegrationEnum1;
22
25
  source_provider_payload_hash: string;
23
26
  status: Chrt.ShippingIntegrationOrderStatusEnum1;
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ShippingIntegrationOrderSortByEnum = "ordered_at_timestamp" | "last_mirrored_at_timestamp" | "first_mirrored_at_timestamp" | "status";
4
+ export type ShippingIntegrationOrderSortByEnum = "ordered_at_timestamp" | "completed_at_timestamp" | "last_mirrored_at_timestamp" | "first_mirrored_at_timestamp" | "status";
5
5
  export declare const ShippingIntegrationOrderSortByEnum: {
6
6
  readonly OrderedAtTimestamp: "ordered_at_timestamp";
7
+ readonly CompletedAtTimestamp: "completed_at_timestamp";
7
8
  readonly LastMirroredAtTimestamp: "last_mirrored_at_timestamp";
8
9
  readonly FirstMirroredAtTimestamp: "first_mirrored_at_timestamp";
9
10
  readonly Status: "status";
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ShippingIntegrationOrderSortByEnum = void 0;
7
7
  exports.ShippingIntegrationOrderSortByEnum = {
8
8
  OrderedAtTimestamp: "ordered_at_timestamp",
9
+ CompletedAtTimestamp: "completed_at_timestamp",
9
10
  LastMirroredAtTimestamp: "last_mirrored_at_timestamp",
10
11
  FirstMirroredAtTimestamp: "first_mirrored_at_timestamp",
11
12
  Status: "status",
@@ -1,4 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ShippingIntegrationOrderTypeaheadFieldEnum = "integration_order_id";
4
+ export type ShippingIntegrationOrderTypeaheadFieldEnum = "integration_order_id" | "reference_numbers";
5
+ export declare const ShippingIntegrationOrderTypeaheadFieldEnum: {
6
+ readonly IntegrationOrderId: "integration_order_id";
7
+ readonly ReferenceNumbers: "reference_numbers";
8
+ };
@@ -3,3 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ShippingIntegrationOrderTypeaheadFieldEnum = void 0;
7
+ exports.ShippingIntegrationOrderTypeaheadFieldEnum = {
8
+ IntegrationOrderId: "integration_order_id",
9
+ ReferenceNumbers: "reference_numbers",
10
+ };
@@ -461,6 +461,9 @@ export * from "./ShipperCoordinatorConnectionsForCoordinatorListRes.js";
461
461
  export * from "./ShipperCoordinatorConnectionsForShipperListRes.js";
462
462
  export * from "./ShippingIntegrationConnection.js";
463
463
  export * from "./ShippingIntegrationConnectionListRes.js";
464
+ export * from "./ShippingIntegrationIntegrationExecutor.js";
465
+ export * from "./ShippingIntegrationIntegrationExecutorListRes.js";
466
+ export * from "./ShippingIntegrationOrderCompletedAtProvenanceEnum1.js";
464
467
  export * from "./ShippingIntegrationOrderExpanded1.js";
465
468
  export * from "./ShippingIntegrationOrderListRes.js";
466
469
  export * from "./ShippingIntegrationOrderPlace1.js";
@@ -477,6 +477,9 @@ __exportStar(require("./ShipperCoordinatorConnectionsForCoordinatorListRes.js"),
477
477
  __exportStar(require("./ShipperCoordinatorConnectionsForShipperListRes.js"), exports);
478
478
  __exportStar(require("./ShippingIntegrationConnection.js"), exports);
479
479
  __exportStar(require("./ShippingIntegrationConnectionListRes.js"), exports);
480
+ __exportStar(require("./ShippingIntegrationIntegrationExecutor.js"), exports);
481
+ __exportStar(require("./ShippingIntegrationIntegrationExecutorListRes.js"), exports);
482
+ __exportStar(require("./ShippingIntegrationOrderCompletedAtProvenanceEnum1.js"), exports);
480
483
  __exportStar(require("./ShippingIntegrationOrderExpanded1.js"), exports);
481
484
  __exportStar(require("./ShippingIntegrationOrderListRes.js"), exports);
482
485
  __exportStar(require("./ShippingIntegrationOrderPlace1.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.944.0";
1
+ export declare const SDK_VERSION = "1.953.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.944.0";
4
+ exports.SDK_VERSION = "1.953.0";
@@ -24,8 +24,8 @@ export class ChrtClient {
24
24
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
25
25
  "X-Fern-Language": "JavaScript",
26
26
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
27
- "X-Fern-SDK-Version": "1.944.0",
28
- "User-Agent": "@chrt-inc/typescript-sdk/1.944.0",
27
+ "X-Fern-SDK-Version": "1.953.0",
28
+ "User-Agent": "@chrt-inc/typescript-sdk/1.953.0",
29
29
  "X-Fern-Runtime": core.RUNTIME.type,
30
30
  "X-Fern-Runtime-Version": core.RUNTIME.version,
31
31
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -70,7 +70,7 @@ export declare class Flights {
70
70
  getFlightStatusForFlightLegV1(flightLegId: string, requestOptions?: Flights.RequestOptions): core.HttpResponsePromise<Chrt.FlightLeg1>;
71
71
  private __getFlightStatusForFlightLegV1;
72
72
  /**
73
- * Returns the raw Cirium positional track for a flight leg; pass force_refresh=true to bypass the cache. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
73
+ * Returns the Cirium positional track for a flight leg; pass force_refresh=true to bypass the cache. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
74
74
  *
75
75
  * @param {string} flightLegId
76
76
  * @param {Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request} request
@@ -197,7 +197,7 @@ export class Flights {
197
197
  });
198
198
  }
199
199
  /**
200
- * Returns the raw Cirium positional track for a flight leg; pass force_refresh=true to bypass the cache. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
200
+ * Returns the Cirium positional track for a flight leg; pass force_refresh=true to bypass the cache. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, order_executor_org_operators, shipper_org_operators] | () -> (FlightTrackRes)
201
201
  *
202
202
  * @param {string} flightLegId
203
203
  * @param {Chrt.shipping.FlightsGetFlightTrackForFlightLegV1Request} request
@@ -104,6 +104,7 @@ export declare class OrderTemplatesNew {
104
104
  * search: "search",
105
105
  * filter_archived: true,
106
106
  * filter_owned_by_user_id: "filter_owned_by_user_id",
107
+ * filter_coordinator_label: "filter_coordinator_label",
107
108
  * filter_executor_org_id: "filter_executor_org_id",
108
109
  * filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
109
110
  * filter_shipper_org_id: "filter_shipper_org_id",
@@ -248,6 +248,7 @@ export class OrderTemplatesNew {
248
248
  * search: "search",
249
249
  * filter_archived: true,
250
250
  * filter_owned_by_user_id: "filter_owned_by_user_id",
251
+ * filter_coordinator_label: "filter_coordinator_label",
251
252
  * filter_executor_org_id: "filter_executor_org_id",
252
253
  * filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
253
254
  * filter_shipper_org_id: "filter_shipper_org_id",
@@ -267,7 +268,7 @@ export class OrderTemplatesNew {
267
268
  __listV1() {
268
269
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
269
270
  var _a, _b, _c, _d, _e, _f, _g;
270
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
271
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_coordinator_label: filterCoordinatorLabel, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
271
272
  const _queryParams = {};
272
273
  if (sortBy !== undefined) {
273
274
  _queryParams["sort_by"] = sortBy;
@@ -290,6 +291,9 @@ export class OrderTemplatesNew {
290
291
  if (filterOwnedByUserId !== undefined) {
291
292
  _queryParams["filter_owned_by_user_id"] = filterOwnedByUserId;
292
293
  }
294
+ if (filterCoordinatorLabel !== undefined) {
295
+ _queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
296
+ }
293
297
  if (filterExecutorOrgId !== undefined) {
294
298
  _queryParams["filter_executor_org_id"] = filterExecutorOrgId;
295
299
  }
@@ -12,6 +12,7 @@ import * as Chrt from "../../../../../../index.mjs";
12
12
  * search: "search",
13
13
  * filter_archived: true,
14
14
  * filter_owned_by_user_id: "filter_owned_by_user_id",
15
+ * filter_coordinator_label: "filter_coordinator_label",
15
16
  * filter_executor_org_id: "filter_executor_org_id",
16
17
  * filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
17
18
  * filter_shipper_org_id: "filter_shipper_org_id",
@@ -38,6 +39,8 @@ export interface OrderTemplatesNewListV1Request {
38
39
  filter_archived?: boolean | null;
39
40
  /** Filter by the user that created the template. */
40
41
  filter_owned_by_user_id?: string | null;
42
+ /** Filter by coordinator label. */
43
+ filter_coordinator_label?: string | null;
41
44
  /** Filter by an on-CHRT executor organization ID. */
42
45
  filter_executor_org_id?: string | null;
43
46
  /** Filter by an off-CHRT executor organization data ID. */
@@ -4,6 +4,7 @@
4
4
  import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
6
  import { Connections } from "../resources/connections/client/Client.mjs";
7
+ import { IntegrationExecutors } from "../resources/integrationExecutors/client/Client.mjs";
7
8
  import { Orders } from "../resources/orders/client/Client.mjs";
8
9
  import { Atlas } from "../resources/atlas/client/Client.mjs";
9
10
  import { Cxt } from "../resources/cxt/client/Client.mjs";
@@ -25,6 +26,7 @@ export declare namespace ShippingIntegrations {
25
26
  export declare class ShippingIntegrations {
26
27
  protected readonly _options: ShippingIntegrations.Options;
27
28
  protected _connections: Connections | undefined;
29
+ protected _integrationExecutors: IntegrationExecutors | undefined;
28
30
  protected _orders: Orders | undefined;
29
31
  protected _atlas: Atlas | undefined;
30
32
  protected _cxt: Cxt | undefined;
@@ -34,6 +36,7 @@ export declare class ShippingIntegrations {
34
36
  protected _xcelerator: Xcelerator | undefined;
35
37
  constructor(_options?: ShippingIntegrations.Options);
36
38
  get connections(): Connections;
39
+ get integrationExecutors(): IntegrationExecutors;
37
40
  get orders(): Orders;
38
41
  get atlas(): Atlas;
39
42
  get cxt(): Cxt;
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import { Connections } from "../resources/connections/client/Client.mjs";
5
+ import { IntegrationExecutors } from "../resources/integrationExecutors/client/Client.mjs";
5
6
  import { Orders } from "../resources/orders/client/Client.mjs";
6
7
  import { Atlas } from "../resources/atlas/client/Client.mjs";
7
8
  import { Cxt } from "../resources/cxt/client/Client.mjs";
@@ -17,6 +18,10 @@ export class ShippingIntegrations {
17
18
  var _a;
18
19
  return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Connections(this._options)));
19
20
  }
21
+ get integrationExecutors() {
22
+ var _a;
23
+ return ((_a = this._integrationExecutors) !== null && _a !== void 0 ? _a : (this._integrationExecutors = new IntegrationExecutors(this._options)));
24
+ }
20
25
  get orders() {
21
26
  var _a;
22
27
  return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Orders(this._options)));
@@ -33,16 +33,16 @@ export declare class Orders {
33
33
  /**
34
34
  * Returns one mirrored Atlas order by the provider's own order ID with the provider organization expanded. | () -> (AtlasOrderExpanded1)
35
35
  *
36
- * @param {string} providerOrgId - CHRT org ID of the courier whose Atlas instance holds the order
36
+ * @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
37
37
  * @param {string} integrationOrderId - Atlas's own ID for the order, as carried on a unified order row
38
38
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
39
39
  *
40
40
  * @throws {@link Chrt.UnprocessableEntityError}
41
41
  *
42
42
  * @example
43
- * await client.shippingIntegrations.atlas.orders.detailByIntegrationOrderIdV1("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.atlas.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.AtlasOrderExpanded1>;
45
+ detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.AtlasOrderExpanded1>;
46
46
  private __detailByIntegrationOrderIdV1;
47
47
  /**
48
48
  * Returns one mirrored Atlas order by its Mongo ObjectId with the provider organization expanded. | () -> (AtlasOrderExpanded1)
@@ -100,21 +100,5 @@ export declare class Orders {
100
100
  */
101
101
  syncOneV1(request: Chrt.shippingIntegrations.atlas.AtlasOrderSyncOneReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.AtlasOrder1>;
102
102
  private __syncOneV1;
103
- /**
104
- * Returns distinct Atlas integration order IDs matching the query via case-insensitive regex within the caller's organization. | authz: caller's organization scope | () -> (list[ShippingIntegrationOrderTypeaheadResult])
105
- *
106
- * @param {Chrt.shippingIntegrations.atlas.OrdersTypeaheadV1Request} request
107
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
108
- *
109
- * @throws {@link Chrt.UnprocessableEntityError}
110
- *
111
- * @example
112
- * await client.shippingIntegrations.atlas.orders.typeaheadV1({
113
- * query: "query",
114
- * limit: 1
115
- * })
116
- */
117
- typeaheadV1(request: Chrt.shippingIntegrations.atlas.OrdersTypeaheadV1Request, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.ShippingIntegrationOrderTypeaheadResult[]>;
118
- private __typeaheadV1;
119
103
  protected _getAuthorizationHeader(): Promise<string | undefined>;
120
104
  }