@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
@@ -60,8 +60,8 @@ class ChrtClient {
60
60
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
61
61
  "X-Fern-Language": "JavaScript",
62
62
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
63
- "X-Fern-SDK-Version": "1.944.0",
64
- "User-Agent": "@chrt-inc/typescript-sdk/1.944.0",
63
+ "X-Fern-SDK-Version": "1.953.0",
64
+ "User-Agent": "@chrt-inc/typescript-sdk/1.953.0",
65
65
  "X-Fern-Runtime": core.RUNTIME.type,
66
66
  "X-Fern-Runtime-Version": core.RUNTIME.version,
67
67
  }, _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
@@ -233,7 +233,7 @@ class Flights {
233
233
  });
234
234
  }
235
235
  /**
236
- * 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)
236
+ * 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)
237
237
  *
238
238
  * @param {string} flightLegId
239
239
  * @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",
@@ -284,6 +284,7 @@ class OrderTemplatesNew {
284
284
  * search: "search",
285
285
  * filter_archived: true,
286
286
  * filter_owned_by_user_id: "filter_owned_by_user_id",
287
+ * filter_coordinator_label: "filter_coordinator_label",
287
288
  * filter_executor_org_id: "filter_executor_org_id",
288
289
  * filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
289
290
  * filter_shipper_org_id: "filter_shipper_org_id",
@@ -303,7 +304,7 @@ class OrderTemplatesNew {
303
304
  __listV1() {
304
305
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
305
306
  var _a, _b, _c, _d, _e, _f, _g;
306
- 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;
307
+ 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;
307
308
  const _queryParams = {};
308
309
  if (sortBy !== undefined) {
309
310
  _queryParams["sort_by"] = sortBy;
@@ -326,6 +327,9 @@ class OrderTemplatesNew {
326
327
  if (filterOwnedByUserId !== undefined) {
327
328
  _queryParams["filter_owned_by_user_id"] = filterOwnedByUserId;
328
329
  }
330
+ if (filterCoordinatorLabel !== undefined) {
331
+ _queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
332
+ }
329
333
  if (filterExecutorOrgId !== undefined) {
330
334
  _queryParams["filter_executor_org_id"] = filterExecutorOrgId;
331
335
  }
@@ -12,6 +12,7 @@ import * as Chrt from "../../../../../../index.js";
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.js";
5
5
  import * as core from "../../../../core/index.js";
6
6
  import { Connections } from "../resources/connections/client/Client.js";
7
+ import { IntegrationExecutors } from "../resources/integrationExecutors/client/Client.js";
7
8
  import { Orders } from "../resources/orders/client/Client.js";
8
9
  import { Atlas } from "../resources/atlas/client/Client.js";
9
10
  import { Cxt } from "../resources/cxt/client/Client.js";
@@ -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;
@@ -5,13 +5,14 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ShippingIntegrations = void 0;
7
7
  const Client_js_1 = require("../resources/connections/client/Client.js");
8
- const Client_js_2 = require("../resources/orders/client/Client.js");
9
- const Client_js_3 = require("../resources/atlas/client/Client.js");
10
- const Client_js_4 = require("../resources/cxt/client/Client.js");
11
- const Client_js_5 = require("../resources/dispatchScience/client/Client.js");
12
- const Client_js_6 = require("../resources/ecourier/client/Client.js");
13
- const Client_js_7 = require("../resources/ontime360/client/Client.js");
14
- const Client_js_8 = require("../resources/xcelerator/client/Client.js");
8
+ const Client_js_2 = require("../resources/integrationExecutors/client/Client.js");
9
+ const Client_js_3 = require("../resources/orders/client/Client.js");
10
+ const Client_js_4 = require("../resources/atlas/client/Client.js");
11
+ const Client_js_5 = require("../resources/cxt/client/Client.js");
12
+ const Client_js_6 = require("../resources/dispatchScience/client/Client.js");
13
+ const Client_js_7 = require("../resources/ecourier/client/Client.js");
14
+ const Client_js_8 = require("../resources/ontime360/client/Client.js");
15
+ const Client_js_9 = require("../resources/xcelerator/client/Client.js");
15
16
  class ShippingIntegrations {
16
17
  constructor(_options = {}) {
17
18
  this._options = _options;
@@ -20,33 +21,37 @@ class ShippingIntegrations {
20
21
  var _a;
21
22
  return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_1.Connections(this._options)));
22
23
  }
24
+ get integrationExecutors() {
25
+ var _a;
26
+ return ((_a = this._integrationExecutors) !== null && _a !== void 0 ? _a : (this._integrationExecutors = new Client_js_2.IntegrationExecutors(this._options)));
27
+ }
23
28
  get orders() {
24
29
  var _a;
25
- return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_2.Orders(this._options)));
30
+ return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_3.Orders(this._options)));
26
31
  }
27
32
  get atlas() {
28
33
  var _a;
29
- return ((_a = this._atlas) !== null && _a !== void 0 ? _a : (this._atlas = new Client_js_3.Atlas(this._options)));
34
+ return ((_a = this._atlas) !== null && _a !== void 0 ? _a : (this._atlas = new Client_js_4.Atlas(this._options)));
30
35
  }
31
36
  get cxt() {
32
37
  var _a;
33
- return ((_a = this._cxt) !== null && _a !== void 0 ? _a : (this._cxt = new Client_js_4.Cxt(this._options)));
38
+ return ((_a = this._cxt) !== null && _a !== void 0 ? _a : (this._cxt = new Client_js_5.Cxt(this._options)));
34
39
  }
35
40
  get dispatchScience() {
36
41
  var _a;
37
- return ((_a = this._dispatchScience) !== null && _a !== void 0 ? _a : (this._dispatchScience = new Client_js_5.DispatchScience(this._options)));
42
+ return ((_a = this._dispatchScience) !== null && _a !== void 0 ? _a : (this._dispatchScience = new Client_js_6.DispatchScience(this._options)));
38
43
  }
39
44
  get ecourier() {
40
45
  var _a;
41
- return ((_a = this._ecourier) !== null && _a !== void 0 ? _a : (this._ecourier = new Client_js_6.Ecourier(this._options)));
46
+ return ((_a = this._ecourier) !== null && _a !== void 0 ? _a : (this._ecourier = new Client_js_7.Ecourier(this._options)));
42
47
  }
43
48
  get ontime360() {
44
49
  var _a;
45
- return ((_a = this._ontime360) !== null && _a !== void 0 ? _a : (this._ontime360 = new Client_js_7.Ontime360(this._options)));
50
+ return ((_a = this._ontime360) !== null && _a !== void 0 ? _a : (this._ontime360 = new Client_js_8.Ontime360(this._options)));
46
51
  }
47
52
  get xcelerator() {
48
53
  var _a;
49
- return ((_a = this._xcelerator) !== null && _a !== void 0 ? _a : (this._xcelerator = new Client_js_8.Xcelerator(this._options)));
54
+ return ((_a = this._xcelerator) !== null && _a !== void 0 ? _a : (this._xcelerator = new Client_js_9.Xcelerator(this._options)));
50
55
  }
51
56
  }
52
57
  exports.ShippingIntegrations = ShippingIntegrations;
@@ -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
  }
@@ -58,24 +58,24 @@ class Orders {
58
58
  /**
59
59
  * Returns one mirrored Atlas order by the provider's own order ID with the provider organization expanded. | () -> (AtlasOrderExpanded1)
60
60
  *
61
- * @param {string} providerOrgId - CHRT org ID of the courier whose Atlas 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 - Atlas's own ID for the order, 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.atlas.orders.detailByIntegrationOrderIdV1("provider_org_id", "integration_order_id")
68
+ * await client.shippingIntegrations.atlas.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/atlas/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/atlas/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/atlas/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/atlas/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,
@@ -358,77 +358,6 @@ class Orders {
358
358
  }
359
359
  });
360
360
  }
361
- /**
362
- * 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])
363
- *
364
- * @param {Chrt.shippingIntegrations.atlas.OrdersTypeaheadV1Request} request
365
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
366
- *
367
- * @throws {@link Chrt.UnprocessableEntityError}
368
- *
369
- * @example
370
- * await client.shippingIntegrations.atlas.orders.typeaheadV1({
371
- * query: "query",
372
- * limit: 1
373
- * })
374
- */
375
- typeaheadV1(request, requestOptions) {
376
- return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
377
- }
378
- __typeaheadV1(request, requestOptions) {
379
- return __awaiter(this, void 0, void 0, function* () {
380
- var _a, _b, _c, _d, _e;
381
- const { query, limit } = request;
382
- const _queryParams = {};
383
- _queryParams["query"] = query;
384
- if (limit !== undefined) {
385
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
386
- }
387
- 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);
388
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
389
- 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/atlas/orders/typeahead/v1"),
390
- method: "GET",
391
- headers: _headers,
392
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
393
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
394
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
395
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
396
- });
397
- if (_response.ok) {
398
- return {
399
- data: _response.body,
400
- rawResponse: _response.rawResponse,
401
- };
402
- }
403
- if (_response.error.reason === "status-code") {
404
- switch (_response.error.statusCode) {
405
- case 422:
406
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
407
- default:
408
- throw new errors.ChrtError({
409
- statusCode: _response.error.statusCode,
410
- body: _response.error.body,
411
- rawResponse: _response.rawResponse,
412
- });
413
- }
414
- }
415
- switch (_response.error.reason) {
416
- case "non-json":
417
- throw new errors.ChrtError({
418
- statusCode: _response.error.statusCode,
419
- body: _response.error.rawBody,
420
- rawResponse: _response.rawResponse,
421
- });
422
- case "timeout":
423
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/atlas/orders/typeahead/v1.");
424
- case "unknown":
425
- throw new errors.ChrtError({
426
- message: _response.error.errorMessage,
427
- rawResponse: _response.rawResponse,
428
- });
429
- }
430
- });
431
- }
432
361
  _getAuthorizationHeader() {
433
362
  return __awaiter(this, void 0, void 0, function* () {
434
363
  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 AtlasOrderSyncOneReq } from "./AtlasOrderSyncOneReq.js";
3
- export { type OrdersTypeaheadV1Request } from "./OrdersTypeaheadV1Request.js";
@@ -33,16 +33,16 @@ export declare class Orders {
33
33
  /**
34
34
  * Returns one mirrored CXT order by the provider's own order ID with the provider organization expanded. | () -> (CxtOrderExpanded1)
35
35
  *
36
- * @param {string} providerOrgId - CHRT org ID of the courier whose CXT 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 - CXT's own decimal 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.cxt.orders.detailByIntegrationOrderIdV1("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.cxt.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CxtOrderExpanded1>;
45
+ detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CxtOrderExpanded1>;
46
46
  private __detailByIntegrationOrderIdV1;
47
47
  /**
48
48
  * Returns one mirrored CXT order by its Mongo ObjectId with the provider organization expanded. | () -> (CxtOrderExpanded1)
@@ -58,24 +58,24 @@ class Orders {
58
58
  /**
59
59
  * Returns one mirrored CXT order by the provider's own order ID with the provider organization expanded. | () -> (CxtOrderExpanded1)
60
60
  *
61
- * @param {string} providerOrgId - CHRT org ID of the courier whose CXT 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 - CXT's own decimal ID for the order, 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.cxt.orders.detailByIntegrationOrderIdV1("provider_org_id", "integration_order_id")
68
+ * await client.shippingIntegrations.cxt.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/cxt/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/cxt/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/cxt/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/cxt/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,
@@ -33,16 +33,16 @@ export declare class Orders {
33
33
  /**
34
34
  * Returns one mirrored DispatchScience order by the provider's own order ID. | () -> (DispatchScienceOrder1)
35
35
  *
36
- * @param {string} providerOrgId - CHRT org ID of the courier whose DispatchScience 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 - DispatchScience's own ID for the order (its orderId), 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.dispatchScience.orders.detailByIntegrationOrderIdV1("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.dispatchScience.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.DispatchScienceOrder1>;
45
+ detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.DispatchScienceOrder1>;
46
46
  private __detailByIntegrationOrderIdV1;
47
47
  /**
48
48
  * Returns one mirrored DispatchScience order by its Mongo ObjectId. | () -> (DispatchScienceOrder1)
@@ -58,24 +58,24 @@ class Orders {
58
58
  /**
59
59
  * Returns one mirrored DispatchScience order by the provider's own order ID. | () -> (DispatchScienceOrder1)
60
60
  *
61
- * @param {string} providerOrgId - CHRT org ID of the courier whose DispatchScience 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 - DispatchScience's own ID for the order (its orderId), 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.dispatchScience.orders.detailByIntegrationOrderIdV1("provider_org_id", "integration_order_id")
68
+ * await client.shippingIntegrations.dispatchScience.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/dispatch_science/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/dispatch_science/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/dispatch_science/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/dispatch_science/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,
@@ -33,16 +33,16 @@ export declare class Orders {
33
33
  /**
34
34
  * Returns one mirrored e-Courier order by the provider's own order number. | () -> (EcourierOrder1)
35
35
  *
36
- * @param {string} providerOrgId - CHRT org ID of the courier whose e-Courier database 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 - e-Courier's own order number 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.ecourier.orders.detailByIntegrationOrderIdV1("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.ecourier.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.EcourierOrder1>;
45
+ detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.EcourierOrder1>;
46
46
  private __detailByIntegrationOrderIdV1;
47
47
  /**
48
48
  * Returns one mirrored e-Courier order by its Mongo ObjectId. | () -> (EcourierOrder1)
@@ -58,24 +58,24 @@ class Orders {
58
58
  /**
59
59
  * Returns one mirrored e-Courier order by the provider's own order number. | () -> (EcourierOrder1)
60
60
  *
61
- * @param {string} providerOrgId - CHRT org ID of the courier whose e-Courier database 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 - e-Courier's own order number for the order, 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.ecourier.orders.detailByIntegrationOrderIdV1("provider_org_id", "integration_order_id")
68
+ * await client.shippingIntegrations.ecourier.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/ecourier/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/ecourier/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/ecourier/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/ecourier/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,
@@ -1,4 +1,5 @@
1
1
  export * as connections from "./connections/index.js";
2
+ export * as integrationExecutors from "./integrationExecutors/index.js";
2
3
  export * as orders from "./orders/index.js";
3
4
  export * as atlas from "./atlas/index.js";
4
5
  export * as cxt from "./cxt/index.js";
@@ -36,8 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.xcelerator = exports.ontime360 = exports.ecourier = exports.dispatchScience = exports.cxt = exports.atlas = exports.orders = exports.connections = void 0;
39
+ exports.xcelerator = exports.ontime360 = exports.ecourier = exports.dispatchScience = exports.cxt = exports.atlas = exports.orders = exports.integrationExecutors = exports.connections = void 0;
40
40
  exports.connections = __importStar(require("./connections/index.js"));
41
+ exports.integrationExecutors = __importStar(require("./integrationExecutors/index.js"));
41
42
  exports.orders = __importStar(require("./orders/index.js"));
42
43
  exports.atlas = __importStar(require("./atlas/index.js"));
43
44
  exports.cxt = __importStar(require("./cxt/index.js"));
@@ -0,0 +1,44 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.js";
5
+ import * as core from "../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../index.js";
7
+ export declare namespace IntegrationExecutors {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class IntegrationExecutors {
31
+ protected readonly _options: IntegrationExecutors.Options;
32
+ constructor(_options?: IntegrationExecutors.Options);
33
+ /**
34
+ * Lists all distinct integration executor organizations that have credentials configured across any shipping integration, with public organization data expanded. | authz: min_org_role=operator | () -> (ShippingIntegrationIntegrationExecutorListRes)
35
+ *
36
+ * @param {IntegrationExecutors.RequestOptions} requestOptions - Request-specific configuration.
37
+ *
38
+ * @example
39
+ * await client.shippingIntegrations.integrationExecutors.listV1()
40
+ */
41
+ listV1(requestOptions?: IntegrationExecutors.RequestOptions): core.HttpResponsePromise<Chrt.ShippingIntegrationIntegrationExecutorListRes>;
42
+ private __listV1;
43
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
44
+ }