@chrt-inc/typescript-sdk 1.949.0 → 1.959.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 (110) 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/shipping/resources/orders/client/Client.d.ts +4 -1
  8. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +14 -9
  9. package/dist/cjs/api/resources/shipping/resources/orders/resources/index.d.ts +2 -0
  10. package/dist/cjs/api/resources/shipping/resources/orders/resources/index.js +3 -1
  11. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.d.ts +71 -0
  12. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.js +231 -0
  13. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/index.js +17 -0
  15. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/requests/OrderEventsListV1Request.d.ts +36 -0
  16. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/requests/OrderEventsListV1Request.js +5 -0
  17. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/requests/index.d.ts +1 -0
  18. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/client/requests/index.js +2 -0
  19. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/shipping/resources/orders/resources/orderEvents/index.js +17 -0
  21. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.ts +3 -3
  22. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.js +7 -7
  23. package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.d.ts +3 -3
  24. package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.js +7 -7
  25. package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.d.ts +3 -3
  26. package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.js +7 -7
  27. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.ts +3 -3
  28. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.js +7 -7
  29. package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.d.ts +3 -3
  30. package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.js +7 -7
  31. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.ts +3 -3
  32. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.js +7 -7
  33. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
  34. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
  35. package/dist/cjs/api/types/Order1.d.ts +42 -0
  36. package/dist/cjs/api/types/Order1.js +5 -0
  37. package/dist/cjs/api/types/OrderEventActionEnum1.d.ts +67 -0
  38. package/dist/cjs/api/types/OrderEventActionEnum1.js +66 -0
  39. package/dist/cjs/api/types/OrderEventActor1.d.ts +11 -0
  40. package/dist/cjs/api/types/OrderEventActor1.js +5 -0
  41. package/dist/cjs/api/types/OrderEventEntity1.d.ts +16 -0
  42. package/dist/cjs/api/types/OrderEventEntity1.js +5 -0
  43. package/dist/cjs/api/types/OrderEventExpanded1.d.ts +16 -0
  44. package/dist/cjs/api/types/OrderEventExpanded1.js +5 -0
  45. package/dist/cjs/api/types/OrderEventListRes.d.ts +8 -0
  46. package/dist/cjs/api/types/OrderEventListRes.js +5 -0
  47. package/dist/cjs/api/types/OrderEventSortByEnum.d.ts +4 -0
  48. package/dist/cjs/api/types/OrderEventSortByEnum.js +5 -0
  49. package/dist/cjs/api/types/OrderEventSystemActorEnum1.d.ts +13 -0
  50. package/dist/cjs/api/types/OrderEventSystemActorEnum1.js +15 -0
  51. package/dist/cjs/api/types/index.d.ts +8 -0
  52. package/dist/cjs/api/types/index.js +8 -0
  53. package/dist/cjs/version.d.ts +1 -1
  54. package/dist/cjs/version.js +1 -1
  55. package/dist/esm/Client.mjs +2 -2
  56. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +1 -1
  57. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +1 -1
  58. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +1 -0
  59. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +5 -1
  60. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +3 -0
  61. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +4 -1
  62. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +6 -1
  63. package/dist/esm/api/resources/shipping/resources/orders/resources/index.d.mts +2 -0
  64. package/dist/esm/api/resources/shipping/resources/orders/resources/index.mjs +2 -0
  65. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.d.mts +71 -0
  66. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/Client.mjs +194 -0
  67. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/index.d.mts +2 -0
  68. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/index.mjs +1 -0
  69. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/requests/OrderEventsListV1Request.d.mts +36 -0
  70. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/requests/OrderEventsListV1Request.mjs +4 -0
  71. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/requests/index.d.mts +1 -0
  72. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/client/requests/index.mjs +1 -0
  73. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/index.d.mts +1 -0
  74. package/dist/esm/api/resources/shipping/resources/orders/resources/orderEvents/index.mjs +1 -0
  75. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.mts +3 -3
  76. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.mjs +7 -7
  77. package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.d.mts +3 -3
  78. package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.mjs +7 -7
  79. package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.d.mts +3 -3
  80. package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.mjs +7 -7
  81. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.mts +3 -3
  82. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.mjs +7 -7
  83. package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.d.mts +3 -3
  84. package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.mjs +7 -7
  85. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.mts +3 -3
  86. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.mjs +7 -7
  87. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
  88. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
  89. package/dist/esm/api/types/Order1.d.mts +42 -0
  90. package/dist/esm/api/types/Order1.mjs +4 -0
  91. package/dist/esm/api/types/OrderEventActionEnum1.d.mts +67 -0
  92. package/dist/esm/api/types/OrderEventActionEnum1.mjs +63 -0
  93. package/dist/esm/api/types/OrderEventActor1.d.mts +11 -0
  94. package/dist/esm/api/types/OrderEventActor1.mjs +4 -0
  95. package/dist/esm/api/types/OrderEventEntity1.d.mts +16 -0
  96. package/dist/esm/api/types/OrderEventEntity1.mjs +4 -0
  97. package/dist/esm/api/types/OrderEventExpanded1.d.mts +16 -0
  98. package/dist/esm/api/types/OrderEventExpanded1.mjs +4 -0
  99. package/dist/esm/api/types/OrderEventListRes.d.mts +8 -0
  100. package/dist/esm/api/types/OrderEventListRes.mjs +4 -0
  101. package/dist/esm/api/types/OrderEventSortByEnum.d.mts +4 -0
  102. package/dist/esm/api/types/OrderEventSortByEnum.mjs +4 -0
  103. package/dist/esm/api/types/OrderEventSystemActorEnum1.d.mts +13 -0
  104. package/dist/esm/api/types/OrderEventSystemActorEnum1.mjs +12 -0
  105. package/dist/esm/api/types/index.d.mts +8 -0
  106. package/dist/esm/api/types/index.mjs +8 -0
  107. package/dist/esm/version.d.mts +1 -1
  108. package/dist/esm/version.mjs +1 -1
  109. package/package.json +1 -1
  110. package/reference.md +168 -33
@@ -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,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface OrderEventExpanded1 {
6
+ _id: string;
7
+ action: Chrt.OrderEventActionEnum1;
8
+ actor: Chrt.OrderEventActor1;
9
+ entities?: Chrt.OrderEventEntity1[];
10
+ order_id: string;
11
+ order_short_id?: string | null;
12
+ org_public_data?: Chrt.OrgPublicData1 | null;
13
+ schema_version: number;
14
+ timestamp: string;
15
+ user_public_data?: Chrt.UserPublicData1 | null;
16
+ }
@@ -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
+ import * as Chrt from "../index.js";
5
+ export interface OrderEventListRes {
6
+ items: Chrt.OrderEventExpanded1[];
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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type OrderEventSortByEnum = "timestamp";
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type OrderEventSystemActorEnum1 = "shipping_state_sync" | "temporal_workflow" | "shipping_integration_sync" | "flight_tracker" | "geofence_tracker" | "order_schedule" | "system_automation";
5
+ export declare const OrderEventSystemActorEnum1: {
6
+ readonly ShippingStateSync: "shipping_state_sync";
7
+ readonly TemporalWorkflow: "temporal_workflow";
8
+ readonly ShippingIntegrationSync: "shipping_integration_sync";
9
+ readonly FlightTracker: "flight_tracker";
10
+ readonly GeofenceTracker: "geofence_tracker";
11
+ readonly OrderSchedule: "order_schedule";
12
+ readonly SystemAutomation: "system_automation";
13
+ };
@@ -0,0 +1,15 @@
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.OrderEventSystemActorEnum1 = void 0;
7
+ exports.OrderEventSystemActorEnum1 = {
8
+ ShippingStateSync: "shipping_state_sync",
9
+ TemporalWorkflow: "temporal_workflow",
10
+ ShippingIntegrationSync: "shipping_integration_sync",
11
+ FlightTracker: "flight_tracker",
12
+ GeofenceTracker: "geofence_tracker",
13
+ OrderSchedule: "order_schedule",
14
+ SystemAutomation: "system_automation",
15
+ };
@@ -350,6 +350,7 @@ export * from "./OperationsTaskStatusEnum.js";
350
350
  export * from "./OperationsTaskTypeEnum.js";
351
351
  export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.js";
352
352
  export * from "./OperationsTasksStatusUpdateRes1.js";
353
+ export * from "./Order1.js";
353
354
  export * from "./OrderAndTaskGroupExpandedReq.js";
354
355
  export * from "./OrderAwbBillingAccount1.js";
355
356
  export * from "./OrderAwbBillingListItem1.js";
@@ -364,6 +365,13 @@ export * from "./OrderBillingShipper1.js";
364
365
  export * from "./OrderBillingSortByEnum.js";
365
366
  export * from "./OrderDraftValidationRequirements.js";
366
367
  export * from "./OrderDraftValidationResult.js";
368
+ export * from "./OrderEventActionEnum1.js";
369
+ export * from "./OrderEventActor1.js";
370
+ export * from "./OrderEventEntity1.js";
371
+ export * from "./OrderEventExpanded1.js";
372
+ export * from "./OrderEventListRes.js";
373
+ export * from "./OrderEventSortByEnum.js";
374
+ export * from "./OrderEventSystemActorEnum1.js";
367
375
  export * from "./OrderExpandedForProvider.js";
368
376
  export * from "./OrderExpandedForShipper.js";
369
377
  export * from "./OrderInformationConversationRes.js";
@@ -366,6 +366,7 @@ __exportStar(require("./OperationsTaskStatusEnum.js"), exports);
366
366
  __exportStar(require("./OperationsTaskTypeEnum.js"), exports);
367
367
  __exportStar(require("./OperationsTasksDeadlineTimestampsUpdateRes1.js"), exports);
368
368
  __exportStar(require("./OperationsTasksStatusUpdateRes1.js"), exports);
369
+ __exportStar(require("./Order1.js"), exports);
369
370
  __exportStar(require("./OrderAndTaskGroupExpandedReq.js"), exports);
370
371
  __exportStar(require("./OrderAwbBillingAccount1.js"), exports);
371
372
  __exportStar(require("./OrderAwbBillingListItem1.js"), exports);
@@ -380,6 +381,13 @@ __exportStar(require("./OrderBillingShipper1.js"), exports);
380
381
  __exportStar(require("./OrderBillingSortByEnum.js"), exports);
381
382
  __exportStar(require("./OrderDraftValidationRequirements.js"), exports);
382
383
  __exportStar(require("./OrderDraftValidationResult.js"), exports);
384
+ __exportStar(require("./OrderEventActionEnum1.js"), exports);
385
+ __exportStar(require("./OrderEventActor1.js"), exports);
386
+ __exportStar(require("./OrderEventEntity1.js"), exports);
387
+ __exportStar(require("./OrderEventExpanded1.js"), exports);
388
+ __exportStar(require("./OrderEventListRes.js"), exports);
389
+ __exportStar(require("./OrderEventSortByEnum.js"), exports);
390
+ __exportStar(require("./OrderEventSystemActorEnum1.js"), exports);
383
391
  __exportStar(require("./OrderExpandedForProvider.js"), exports);
384
392
  __exportStar(require("./OrderExpandedForShipper.js"), exports);
385
393
  __exportStar(require("./OrderInformationConversationRes.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.949.0";
1
+ export declare const SDK_VERSION = "1.959.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.949.0";
4
+ exports.SDK_VERSION = "1.959.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.949.0",
28
- "User-Agent": "@chrt-inc/typescript-sdk/1.949.0",
27
+ "X-Fern-SDK-Version": "1.959.0",
28
+ "User-Agent": "@chrt-inc/typescript-sdk/1.959.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. */
@@ -7,6 +7,7 @@ import * as Chrt from "../../../../../index.mjs";
7
7
  import { Cargo } from "../resources/cargo/client/Client.mjs";
8
8
  import { Drafts } from "../resources/drafts/client/Client.mjs";
9
9
  import { Expanded } from "../resources/expanded/client/Client.mjs";
10
+ import { OrderEvents } from "../resources/orderEvents/client/Client.mjs";
10
11
  import { Task } from "../resources/task/client/Client.mjs";
11
12
  import { TaskArtifact } from "../resources/taskArtifact/client/Client.mjs";
12
13
  import { TaskGroup } from "../resources/taskGroup/client/Client.mjs";
@@ -39,6 +40,7 @@ export declare class Orders {
39
40
  protected _cargo: Cargo | undefined;
40
41
  protected _drafts: Drafts | undefined;
41
42
  protected _expanded: Expanded | undefined;
43
+ protected _orderEvents: OrderEvents | undefined;
42
44
  protected _task: Task | undefined;
43
45
  protected _taskArtifact: TaskArtifact | undefined;
44
46
  protected _taskGroup: TaskGroup | undefined;
@@ -47,6 +49,7 @@ export declare class Orders {
47
49
  get cargo(): Cargo;
48
50
  get drafts(): Drafts;
49
51
  get expanded(): Expanded;
52
+ get orderEvents(): OrderEvents;
50
53
  get task(): Task;
51
54
  get taskArtifact(): TaskArtifact;
52
55
  get taskGroup(): TaskGroup;
@@ -182,7 +185,7 @@ export declare class Orders {
182
185
  getSuggestedDepartmentV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<(string | null) | undefined>;
183
186
  private __getSuggestedDepartmentV1;
184
187
  /**
185
- * Sets task-group ordering on an active order unless a task group or task is completed. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrdersTaskGroupOrderingReq) -> (bool)
188
+ * Sets task-group ordering on an order ensuring terminal task groups precede non-terminal task groups. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrdersTaskGroupOrderingReq) -> (bool)
186
189
  *
187
190
  * @param {string} orderId
188
191
  * @param {Chrt.shipping.OrdersTaskGroupOrderingReq} request
@@ -18,6 +18,7 @@ import * as errors from "../../../../../../errors/index.mjs";
18
18
  import { Cargo } from "../resources/cargo/client/Client.mjs";
19
19
  import { Drafts } from "../resources/drafts/client/Client.mjs";
20
20
  import { Expanded } from "../resources/expanded/client/Client.mjs";
21
+ import { OrderEvents } from "../resources/orderEvents/client/Client.mjs";
21
22
  import { Task } from "../resources/task/client/Client.mjs";
22
23
  import { TaskArtifact } from "../resources/taskArtifact/client/Client.mjs";
23
24
  import { TaskGroup } from "../resources/taskGroup/client/Client.mjs";
@@ -38,6 +39,10 @@ export class Orders {
38
39
  var _a;
39
40
  return ((_a = this._expanded) !== null && _a !== void 0 ? _a : (this._expanded = new Expanded(this._options)));
40
41
  }
42
+ get orderEvents() {
43
+ var _a;
44
+ return ((_a = this._orderEvents) !== null && _a !== void 0 ? _a : (this._orderEvents = new OrderEvents(this._options)));
45
+ }
41
46
  get task() {
42
47
  var _a;
43
48
  return ((_a = this._task) !== null && _a !== void 0 ? _a : (this._task = new Task(this._options)));
@@ -616,7 +621,7 @@ export class Orders {
616
621
  });
617
622
  }
618
623
  /**
619
- * Sets task-group ordering on an active order unless a task group or task is completed. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrdersTaskGroupOrderingReq) -> (bool)
624
+ * Sets task-group ordering on an order ensuring terminal task groups precede non-terminal task groups. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrdersTaskGroupOrderingReq) -> (bool)
620
625
  *
621
626
  * @param {string} orderId
622
627
  * @param {Chrt.shipping.OrdersTaskGroupOrderingReq} request
@@ -1,6 +1,7 @@
1
1
  export * as cargo from "./cargo/index.mjs";
2
2
  export * as drafts from "./drafts/index.mjs";
3
3
  export * as expanded from "./expanded/index.mjs";
4
+ export * as orderEvents from "./orderEvents/index.mjs";
4
5
  export * as task from "./task/index.mjs";
5
6
  export * as taskArtifact from "./taskArtifact/index.mjs";
6
7
  export * as taskGroup from "./taskGroup/index.mjs";
@@ -8,6 +9,7 @@ export * as utils from "./utils/index.mjs";
8
9
  export * from "./cargo/client/requests/index.mjs";
9
10
  export * from "./drafts/client/requests/index.mjs";
10
11
  export * from "./expanded/client/requests/index.mjs";
12
+ export * from "./orderEvents/client/requests/index.mjs";
11
13
  export * from "./task/client/requests/index.mjs";
12
14
  export * from "./taskArtifact/client/requests/index.mjs";
13
15
  export * from "./taskGroup/client/requests/index.mjs";
@@ -1,6 +1,7 @@
1
1
  export * as cargo from "./cargo/index.mjs";
2
2
  export * as drafts from "./drafts/index.mjs";
3
3
  export * as expanded from "./expanded/index.mjs";
4
+ export * as orderEvents from "./orderEvents/index.mjs";
4
5
  export * as task from "./task/index.mjs";
5
6
  export * as taskArtifact from "./taskArtifact/index.mjs";
6
7
  export * as taskGroup from "./taskGroup/index.mjs";
@@ -8,6 +9,7 @@ export * as utils from "./utils/index.mjs";
8
9
  export * from "./cargo/client/requests/index.mjs";
9
10
  export * from "./drafts/client/requests/index.mjs";
10
11
  export * from "./expanded/client/requests/index.mjs";
12
+ export * from "./orderEvents/client/requests/index.mjs";
11
13
  export * from "./task/client/requests/index.mjs";
12
14
  export * from "./taskArtifact/client/requests/index.mjs";
13
15
  export * from "./taskGroup/client/requests/index.mjs";
@@ -0,0 +1,71 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../../../index.mjs";
7
+ export declare namespace OrderEvents {
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 OrderEvents {
31
+ protected readonly _options: OrderEvents.Options;
32
+ constructor(_options?: OrderEvents.Options);
33
+ /**
34
+ * Lists event log entries for an order with organization and user public data hydrated, filtering, sorting, and pagination. | authz: min_org_role=administrator | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (OrderEventListRes)
35
+ *
36
+ * @param {string} orderId
37
+ * @param {Chrt.shipping.orders.OrderEventsListV1Request} request
38
+ * @param {OrderEvents.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Chrt.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.shipping.orders.orderEvents.listV1("order_id", {
44
+ * sort_by: "timestamp",
45
+ * sort_order: "asc",
46
+ * page: 1,
47
+ * page_size: 1,
48
+ * filter_action: ["shipping.order.draft_started"],
49
+ * filter_user_id: "filter_user_id",
50
+ * filter_org_id: "filter_org_id",
51
+ * filter_timestamp_gte: "2024-01-15T09:30:00Z",
52
+ * filter_timestamp_lte: "2024-01-15T09:30:00Z"
53
+ * })
54
+ */
55
+ listV1(orderId: string, request?: Chrt.shipping.orders.OrderEventsListV1Request, requestOptions?: OrderEvents.RequestOptions): core.HttpResponsePromise<Chrt.OrderEventListRes>;
56
+ private __listV1;
57
+ /**
58
+ * Retrieves a single order event log entry by its ID with organization and user public data hydrated. | authz: min_org_role=administrator | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (OrderEventExpanded1)
59
+ *
60
+ * @param {string} orderEventId
61
+ * @param {OrderEvents.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @throws {@link Chrt.UnprocessableEntityError}
64
+ *
65
+ * @example
66
+ * await client.shipping.orders.orderEvents.getV1("order_event_id")
67
+ */
68
+ getV1(orderEventId: string, requestOptions?: OrderEvents.RequestOptions): core.HttpResponsePromise<Chrt.OrderEventExpanded1>;
69
+ private __getV1;
70
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
71
+ }
@@ -0,0 +1,194 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../../../errors/index.mjs";
18
+ export class OrderEvents {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Lists event log entries for an order with organization and user public data hydrated, filtering, sorting, and pagination. | authz: min_org_role=administrator | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (OrderEventListRes)
24
+ *
25
+ * @param {string} orderId
26
+ * @param {Chrt.shipping.orders.OrderEventsListV1Request} request
27
+ * @param {OrderEvents.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @throws {@link Chrt.UnprocessableEntityError}
30
+ *
31
+ * @example
32
+ * await client.shipping.orders.orderEvents.listV1("order_id", {
33
+ * sort_by: "timestamp",
34
+ * sort_order: "asc",
35
+ * page: 1,
36
+ * page_size: 1,
37
+ * filter_action: ["shipping.order.draft_started"],
38
+ * filter_user_id: "filter_user_id",
39
+ * filter_org_id: "filter_org_id",
40
+ * filter_timestamp_gte: "2024-01-15T09:30:00Z",
41
+ * filter_timestamp_lte: "2024-01-15T09:30:00Z"
42
+ * })
43
+ */
44
+ listV1(orderId, request = {}, requestOptions) {
45
+ return core.HttpResponsePromise.fromPromise(this.__listV1(orderId, request, requestOptions));
46
+ }
47
+ __listV1(orderId_1) {
48
+ return __awaiter(this, arguments, void 0, function* (orderId, request = {}, requestOptions) {
49
+ var _a, _b, _c, _d, _e, _f;
50
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_action: filterAction, filter_user_id: filterUserId, filter_org_id: filterOrgId, filter_timestamp_gte: filterTimestampGte, filter_timestamp_lte: filterTimestampLte, } = request;
51
+ const _queryParams = {};
52
+ if (sortBy !== undefined) {
53
+ _queryParams["sort_by"] = sortBy;
54
+ }
55
+ if (sortOrder !== undefined) {
56
+ _queryParams["sort_order"] = sortOrder;
57
+ }
58
+ if (page !== undefined) {
59
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
60
+ }
61
+ if (pageSize !== undefined) {
62
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
63
+ }
64
+ if (filterAction !== undefined) {
65
+ if (Array.isArray(filterAction)) {
66
+ _queryParams["filter_action"] = filterAction.map((item) => item);
67
+ }
68
+ else {
69
+ _queryParams["filter_action"] = filterAction;
70
+ }
71
+ }
72
+ if (filterUserId !== undefined) {
73
+ _queryParams["filter_user_id"] = filterUserId;
74
+ }
75
+ if (filterOrgId !== undefined) {
76
+ _queryParams["filter_org_id"] = filterOrgId;
77
+ }
78
+ if (filterTimestampGte !== undefined) {
79
+ _queryParams["filter_timestamp_gte"] = filterTimestampGte;
80
+ }
81
+ if (filterTimestampLte !== undefined) {
82
+ _queryParams["filter_timestamp_lte"] = filterTimestampLte;
83
+ }
84
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
85
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
86
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, `shipping/orders/order_events/list/v1/${encodeURIComponent(orderId)}`),
87
+ method: "GET",
88
+ headers: _headers,
89
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
90
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
91
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
92
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
93
+ });
94
+ if (_response.ok) {
95
+ return { data: _response.body, rawResponse: _response.rawResponse };
96
+ }
97
+ if (_response.error.reason === "status-code") {
98
+ switch (_response.error.statusCode) {
99
+ case 422:
100
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
101
+ default:
102
+ throw new errors.ChrtError({
103
+ statusCode: _response.error.statusCode,
104
+ body: _response.error.body,
105
+ rawResponse: _response.rawResponse,
106
+ });
107
+ }
108
+ }
109
+ switch (_response.error.reason) {
110
+ case "non-json":
111
+ throw new errors.ChrtError({
112
+ statusCode: _response.error.statusCode,
113
+ body: _response.error.rawBody,
114
+ rawResponse: _response.rawResponse,
115
+ });
116
+ case "timeout":
117
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/orders/order_events/list/v1/{order_id}.");
118
+ case "unknown":
119
+ throw new errors.ChrtError({
120
+ message: _response.error.errorMessage,
121
+ rawResponse: _response.rawResponse,
122
+ });
123
+ }
124
+ });
125
+ }
126
+ /**
127
+ * Retrieves a single order event log entry by its ID with organization and user public data hydrated. | authz: min_org_role=administrator | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (OrderEventExpanded1)
128
+ *
129
+ * @param {string} orderEventId
130
+ * @param {OrderEvents.RequestOptions} requestOptions - Request-specific configuration.
131
+ *
132
+ * @throws {@link Chrt.UnprocessableEntityError}
133
+ *
134
+ * @example
135
+ * await client.shipping.orders.orderEvents.getV1("order_event_id")
136
+ */
137
+ getV1(orderEventId, requestOptions) {
138
+ return core.HttpResponsePromise.fromPromise(this.__getV1(orderEventId, requestOptions));
139
+ }
140
+ __getV1(orderEventId, requestOptions) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ var _a, _b, _c, _d;
143
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
144
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
145
+ 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/orders/order_events/v1/${encodeURIComponent(orderEventId)}`),
146
+ method: "GET",
147
+ headers: _headers,
148
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
149
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
150
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
151
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
152
+ });
153
+ if (_response.ok) {
154
+ return { data: _response.body, rawResponse: _response.rawResponse };
155
+ }
156
+ if (_response.error.reason === "status-code") {
157
+ switch (_response.error.statusCode) {
158
+ case 422:
159
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
160
+ default:
161
+ throw new errors.ChrtError({
162
+ statusCode: _response.error.statusCode,
163
+ body: _response.error.body,
164
+ rawResponse: _response.rawResponse,
165
+ });
166
+ }
167
+ }
168
+ switch (_response.error.reason) {
169
+ case "non-json":
170
+ throw new errors.ChrtError({
171
+ statusCode: _response.error.statusCode,
172
+ body: _response.error.rawBody,
173
+ rawResponse: _response.rawResponse,
174
+ });
175
+ case "timeout":
176
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/orders/order_events/v1/{order_event_id}.");
177
+ case "unknown":
178
+ throw new errors.ChrtError({
179
+ message: _response.error.errorMessage,
180
+ rawResponse: _response.rawResponse,
181
+ });
182
+ }
183
+ });
184
+ }
185
+ _getAuthorizationHeader() {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ const bearer = yield core.Supplier.get(this._options.token);
188
+ if (bearer != null) {
189
+ return `Bearer ${bearer}`;
190
+ }
191
+ return undefined;
192
+ });
193
+ }
194
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";