@chrt-inc/typescript-sdk 1.990.0 → 1.992.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 (122) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +9 -4
  4. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +3 -3
  5. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -2
  6. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +1 -1
  7. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +19 -3
  8. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +87 -9
  9. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +4 -0
  10. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -3
  11. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -3
  12. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.d.ts +16 -0
  13. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +3 -0
  15. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +25 -8
  16. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +9 -0
  17. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +2 -2
  18. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +10 -5
  19. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.ts +1 -1
  20. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.ts +1 -2
  21. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +3 -3
  22. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +6 -6
  23. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +9 -9
  24. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/{OrdersUpdateLabelReq.d.ts → OrdersUpdateLabelsReq.d.ts} +2 -3
  25. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.js +5 -0
  26. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -1
  27. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -1
  28. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +1 -1
  29. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +9 -4
  30. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -2
  31. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +2 -0
  32. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +9 -1
  33. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +6 -0
  34. package/dist/cjs/api/types/BidThreadForListing1.d.ts +19 -0
  35. package/dist/cjs/api/types/BidThreadForListing1.js +5 -0
  36. package/dist/cjs/api/types/BidThreadForListingListRes.d.ts +8 -0
  37. package/dist/cjs/api/types/BidThreadForListingListRes.js +5 -0
  38. package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +2 -1
  39. package/dist/cjs/api/types/OperationsTaskStatusEnum.js +1 -0
  40. package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +2 -1
  41. package/dist/cjs/api/types/OperationsTaskTypeEnum.js +1 -0
  42. package/dist/cjs/api/types/OperationsTaskTypeaheadFieldEnum.d.ts +4 -0
  43. package/dist/cjs/api/types/OperationsTaskTypeaheadFieldEnum.js +5 -0
  44. package/dist/cjs/api/types/OperationsTaskTypeaheadResult.d.ts +8 -0
  45. package/dist/cjs/api/types/OperationsTaskTypeaheadResult.js +5 -0
  46. package/dist/cjs/api/types/Order1.d.ts +1 -1
  47. package/dist/cjs/api/types/OrderBillingExecutor1.d.ts +1 -1
  48. package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +1 -1
  49. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -1
  50. package/dist/cjs/api/types/OrderTaskGroupExecutorDetails1.d.ts +1 -1
  51. package/dist/cjs/api/types/OrderTemplateNew1.d.ts +1 -1
  52. package/dist/cjs/api/types/OrderTemplateNewCore1.d.ts +1 -1
  53. package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +2 -1
  54. package/dist/cjs/api/types/TaskArtifactTypeEnum1.d.ts +2 -1
  55. package/dist/cjs/api/types/TaskArtifactTypeEnum1.js +1 -0
  56. package/dist/cjs/api/types/index.d.ts +4 -0
  57. package/dist/cjs/api/types/index.js +4 -0
  58. package/dist/cjs/version.d.ts +1 -1
  59. package/dist/cjs/version.js +1 -1
  60. package/dist/esm/Client.mjs +2 -2
  61. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +1 -1
  62. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +9 -4
  63. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +3 -3
  64. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -2
  65. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +1 -1
  66. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +19 -3
  67. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +87 -9
  68. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +4 -0
  69. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -3
  70. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -3
  71. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.d.mts +16 -0
  72. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
  73. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +3 -0
  74. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +25 -8
  75. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +9 -0
  76. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +2 -2
  77. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +10 -5
  78. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.mts +1 -1
  79. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.mts +1 -2
  80. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +3 -3
  81. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +6 -6
  82. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +9 -9
  83. package/dist/esm/api/resources/shipping/resources/orders/client/requests/{OrdersUpdateLabelReq.d.mts → OrdersUpdateLabelsReq.d.mts} +2 -3
  84. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.mjs +4 -0
  85. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -1
  86. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -1
  87. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +1 -1
  88. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +9 -4
  89. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -2
  90. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +2 -0
  91. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +9 -1
  92. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +6 -0
  93. package/dist/esm/api/types/BidThreadForListing1.d.mts +19 -0
  94. package/dist/esm/api/types/BidThreadForListing1.mjs +4 -0
  95. package/dist/esm/api/types/BidThreadForListingListRes.d.mts +8 -0
  96. package/dist/esm/api/types/BidThreadForListingListRes.mjs +4 -0
  97. package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +2 -1
  98. package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +1 -0
  99. package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +2 -1
  100. package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +1 -0
  101. package/dist/esm/api/types/OperationsTaskTypeaheadFieldEnum.d.mts +4 -0
  102. package/dist/esm/api/types/OperationsTaskTypeaheadFieldEnum.mjs +4 -0
  103. package/dist/esm/api/types/OperationsTaskTypeaheadResult.d.mts +8 -0
  104. package/dist/esm/api/types/OperationsTaskTypeaheadResult.mjs +4 -0
  105. package/dist/esm/api/types/Order1.d.mts +1 -1
  106. package/dist/esm/api/types/OrderBillingExecutor1.d.mts +1 -1
  107. package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +1 -1
  108. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -1
  109. package/dist/esm/api/types/OrderTaskGroupExecutorDetails1.d.mts +1 -1
  110. package/dist/esm/api/types/OrderTemplateNew1.d.mts +1 -1
  111. package/dist/esm/api/types/OrderTemplateNewCore1.d.mts +1 -1
  112. package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +2 -1
  113. package/dist/esm/api/types/TaskArtifactTypeEnum1.d.mts +2 -1
  114. package/dist/esm/api/types/TaskArtifactTypeEnum1.mjs +1 -0
  115. package/dist/esm/api/types/index.d.mts +4 -0
  116. package/dist/esm/api/types/index.mjs +4 -0
  117. package/dist/esm/version.d.mts +1 -1
  118. package/dist/esm/version.mjs +1 -1
  119. package/package.json +1 -1
  120. package/reference.md +85 -14
  121. /package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateLabelReq.js → operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.js} +0 -0
  122. /package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateLabelReq.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.mjs} +0 -0
@@ -690,7 +690,7 @@ export class Orders {
690
690
  });
691
691
  }
692
692
  /**
693
- * Returns distinct label values matching the query for orders where the caller is coordinator (coordinator_label) or executor (task_group_details.executor_label). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[str])
693
+ * Returns distinct label values matching the query for orders where the caller is coordinator (coordinator_labels) or executor (task_group_details.executor_labels). | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[str])
694
694
  *
695
695
  * @param {Chrt.shipping.OrdersTypeaheadLabelV1Request} request
696
696
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
@@ -1076,26 +1076,26 @@ export class Orders {
1076
1076
  });
1077
1077
  }
1078
1078
  /**
1079
- * Updates label for the caller's role on the order. Coordinator writes coordinator_label; executor writes executor_label on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateLabelReq) -> (bool)
1079
+ * Replaces labels for the caller's role on the order. Coordinator writes coordinator_labels; executor writes executor_labels on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateLabelsReq) -> (bool)
1080
1080
  *
1081
1081
  * @param {string} orderId
1082
- * @param {Chrt.shipping.OrdersUpdateLabelReq} request
1082
+ * @param {Chrt.shipping.OrdersUpdateLabelsReq} request
1083
1083
  * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
1084
1084
  *
1085
1085
  * @throws {@link Chrt.UnprocessableEntityError}
1086
1086
  *
1087
1087
  * @example
1088
- * await client.shipping.orders.updateLabelV1("order_id")
1088
+ * await client.shipping.orders.updateLabelsV1("order_id")
1089
1089
  */
1090
- updateLabelV1(orderId, request = {}, requestOptions) {
1091
- return core.HttpResponsePromise.fromPromise(this.__updateLabelV1(orderId, request, requestOptions));
1090
+ updateLabelsV1(orderId, request = {}, requestOptions) {
1091
+ return core.HttpResponsePromise.fromPromise(this.__updateLabelsV1(orderId, request, requestOptions));
1092
1092
  }
1093
- __updateLabelV1(orderId_1) {
1093
+ __updateLabelsV1(orderId_1) {
1094
1094
  return __awaiter(this, arguments, void 0, function* (orderId, request = {}, requestOptions) {
1095
1095
  var _a, _b, _c, _d;
1096
1096
  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);
1097
1097
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1098
- 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/update_label/v1/${encodeURIComponent(orderId)}`),
1098
+ 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/update_labels/v1/${encodeURIComponent(orderId)}`),
1099
1099
  method: "PATCH",
1100
1100
  headers: _headers,
1101
1101
  contentType: "application/json",
@@ -1129,7 +1129,7 @@ export class Orders {
1129
1129
  rawResponse: _response.rawResponse,
1130
1130
  });
1131
1131
  case "timeout":
1132
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/update_label/v1/{order_id}.");
1132
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/update_labels/v1/{order_id}.");
1133
1133
  case "unknown":
1134
1134
  throw new errors.ChrtError({
1135
1135
  message: _response.error.errorMessage,
@@ -5,7 +5,6 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface OrdersUpdateLabelReq {
9
- label?: string | null;
10
- label__set_to_None?: boolean;
8
+ export interface OrdersUpdateLabelsReq {
9
+ labels?: string[];
11
10
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -8,5 +8,5 @@ export { type OrdersTypeaheadV1Request } from "./OrdersTypeaheadV1Request.mjs";
8
8
  export { type OrdersUnassignReq } from "./OrdersUnassignReq.mjs";
9
9
  export { type OrdersUpdateDepartmentsReq } from "./OrdersUpdateDepartmentsReq.mjs";
10
10
  export { type OrdersUpdateDraftReq } from "./OrdersUpdateDraftReq.mjs";
11
- export { type OrdersUpdateLabelReq } from "./OrdersUpdateLabelReq.mjs";
11
+ export { type OrdersUpdateLabelsReq } from "./OrdersUpdateLabelsReq.mjs";
12
12
  export { type OrdersUpdateOffChrtReferenceIdReq } from "./OrdersUpdateOffChrtReferenceIdReq.mjs";
@@ -12,7 +12,7 @@ export interface OrdersOpenDraftReq {
12
12
  /** Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate. */
13
13
  creation_idempotency_key?: string | null;
14
14
  department_ids?: string[];
15
- label?: string | null;
15
+ labels?: string[];
16
16
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
17
17
  off_chrt_reference_id?: string | null;
18
18
  off_chrt_shipper_org_data_id?: string | null;
@@ -100,7 +100,7 @@ export declare class Expanded {
100
100
  * filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
101
101
  * filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
102
102
  * filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
103
- * filter_coordinator_label: "filter_coordinator_label",
103
+ * filter_coordinator_labels: ["filter_coordinator_labels"],
104
104
  * body: {}
105
105
  * })
106
106
  */
@@ -187,7 +187,7 @@ export class Expanded {
187
187
  * filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
188
188
  * filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
189
189
  * filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
190
- * filter_coordinator_label: "filter_coordinator_label",
190
+ * filter_coordinator_labels: ["filter_coordinator_labels"],
191
191
  * body: {}
192
192
  * })
193
193
  */
@@ -197,7 +197,7 @@ export class Expanded {
197
197
  __listForProviderOperatorsV1(request, requestOptions) {
198
198
  return __awaiter(this, void 0, void 0, function* () {
199
199
  var _a, _b, _c, _d, _e, _f, _g;
200
- const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_executor_department_ids: filterExecutorDepartmentIds, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_ids: filterCoordinatorDepartmentIds, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
200
+ const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_executor_department_ids: filterExecutorDepartmentIds, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_ids: filterCoordinatorDepartmentIds, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_labels: filterCoordinatorLabels, body: _body, } = request;
201
201
  const _queryParams = {};
202
202
  if (providerRole !== undefined) {
203
203
  _queryParams["provider_role"] = providerRole;
@@ -332,8 +332,13 @@ export class Expanded {
332
332
  _queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds;
333
333
  }
334
334
  }
335
- if (filterCoordinatorLabel !== undefined) {
336
- _queryParams["filter_coordinator_label"] = filterCoordinatorLabel;
335
+ if (filterCoordinatorLabels !== undefined) {
336
+ if (Array.isArray(filterCoordinatorLabels)) {
337
+ _queryParams["filter_coordinator_labels"] = filterCoordinatorLabels.map((item) => item);
338
+ }
339
+ else {
340
+ _queryParams["filter_coordinator_labels"] = filterCoordinatorLabels;
341
+ }
337
342
  }
338
343
  let _headers = mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
339
344
  const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
@@ -37,7 +37,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
37
37
  * filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
38
38
  * filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
39
39
  * filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
40
- * filter_coordinator_label: "filter_coordinator_label",
40
+ * filter_coordinator_labels: ["filter_coordinator_labels"],
41
41
  * body: {}
42
42
  * }
43
43
  */
@@ -84,6 +84,7 @@ export interface ExpandedListForProviderOperatorsV1Request {
84
84
  /** Filter by coordinator department IDs */
85
85
  filter_coordinator_department_ids?: (string | null) | (string | null)[];
86
86
  filter_coordinator_assigned_user_ids?: (string | null) | (string | null)[];
87
- filter_coordinator_label?: string | null;
87
+ /** Filter by any of the supplied coordinator labels (exact match). */
88
+ filter_coordinator_labels?: (string | null) | (string | null)[];
88
89
  body: Chrt.OrderAndTaskGroupExpandedReq;
89
90
  }
@@ -76,6 +76,8 @@ export declare class Devices {
76
76
  * page_size: 1,
77
77
  * search: "search",
78
78
  * org_scope: "owned",
79
+ * filter_device_id: "filter_device_id",
80
+ * filter_device_mac_address: "filter_device_mac_address",
79
81
  * filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
80
82
  * filter_type: "D15N-tag",
81
83
  * filter_active_cargo_id: "filter_active_cargo_id",
@@ -174,6 +174,8 @@ export class Devices {
174
174
  * page_size: 1,
175
175
  * search: "search",
176
176
  * org_scope: "owned",
177
+ * filter_device_id: "filter_device_id",
178
+ * filter_device_mac_address: "filter_device_mac_address",
177
179
  * filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
178
180
  * filter_type: "D15N-tag",
179
181
  * filter_active_cargo_id: "filter_active_cargo_id",
@@ -195,7 +197,7 @@ export class Devices {
195
197
  __listV1() {
196
198
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
197
199
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
198
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_has_active_session: filterHasActiveSession, filter_has_active_cargo: filterHasActiveCargo, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_first_seen_at_timestamp_gte: filterFirstSeenAtTimestampGte, filter_first_seen_at_timestamp_lte: filterFirstSeenAtTimestampLte, filter_archived: filterArchived, } = request;
200
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_device_id: filterDeviceId, filter_device_mac_address: filterDeviceMacAddress, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_has_active_session: filterHasActiveSession, filter_has_active_cargo: filterHasActiveCargo, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_first_seen_at_timestamp_gte: filterFirstSeenAtTimestampGte, filter_first_seen_at_timestamp_lte: filterFirstSeenAtTimestampLte, filter_archived: filterArchived, } = request;
199
201
  const _queryParams = {};
200
202
  if (sortBy !== undefined) {
201
203
  _queryParams["sort_by"] = sortBy;
@@ -215,6 +217,12 @@ export class Devices {
215
217
  if (orgScope !== undefined) {
216
218
  _queryParams["org_scope"] = orgScope;
217
219
  }
220
+ if (filterDeviceId !== undefined) {
221
+ _queryParams["filter_device_id"] = filterDeviceId;
222
+ }
223
+ if (filterDeviceMacAddress !== undefined) {
224
+ _queryParams["filter_device_mac_address"] = filterDeviceMacAddress;
225
+ }
218
226
  if (filterOffChrtReferenceId !== undefined) {
219
227
  _queryParams["filter_off_chrt_reference_id"] = filterOffChrtReferenceId;
220
228
  }
@@ -11,6 +11,8 @@ import * as Chrt from "../../../../../../index.mjs";
11
11
  * page_size: 1,
12
12
  * search: "search",
13
13
  * org_scope: "owned",
14
+ * filter_device_id: "filter_device_id",
15
+ * filter_device_mac_address: "filter_device_mac_address",
14
16
  * filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
15
17
  * filter_type: "D15N-tag",
16
18
  * filter_active_cargo_id: "filter_active_cargo_id",
@@ -37,6 +39,10 @@ export interface DevicesListV1Request {
37
39
  search?: string | null;
38
40
  /** Filter by org ownership: owned, shared, or owned_and_shared */
39
41
  org_scope?: Chrt.TrackingOrgScopeEnum | null;
42
+ /** Filter by device ID (exact match) */
43
+ filter_device_id?: string | null;
44
+ /** Filter by device MAC address (exact match) */
45
+ filter_device_mac_address?: string | null;
40
46
  /** Filter by off-CHRT reference ID (exact match) */
41
47
  filter_off_chrt_reference_id?: string | null;
42
48
  /** Filter by device type */
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface BidThreadForListing1 {
6
+ _id: string;
7
+ accepted_pro_forma_line_items?: Chrt.ProFormaLineItem1[] | null;
8
+ bidder_driver?: Chrt.Driver1 | null;
9
+ bidder_driver_id?: string | null;
10
+ bidder_provider_org?: Chrt.OrgPublicData1 | null;
11
+ /** Must be a string starting with `org_` */
12
+ bidder_provider_org_id?: string | null;
13
+ bids: Chrt.Bid[];
14
+ created_at_timestamp: string;
15
+ listing_id: string;
16
+ schema_version?: number;
17
+ status: Chrt.BidThreadStatusEnum;
18
+ status_changed_at_timestamp: string;
19
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface BidThreadForListingListRes {
6
+ items: Chrt.BidThreadForListing1[];
7
+ total_count: number;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -8,10 +8,11 @@
8
8
  * structurally parallel to the Check status model in anticipation of the
9
9
  * eventual Task <-> Check merge.
10
10
  */
11
- export type OperationsTaskStatusEnum = "not_started" | "in_progress" | "completed" | "skipped" | "cancelled";
11
+ export type OperationsTaskStatusEnum = "not_started" | "in_progress" | "blocked" | "completed" | "skipped" | "cancelled";
12
12
  export declare const OperationsTaskStatusEnum: {
13
13
  readonly NotStarted: "not_started";
14
14
  readonly InProgress: "in_progress";
15
+ readonly Blocked: "blocked";
15
16
  readonly Completed: "completed";
16
17
  readonly Skipped: "skipped";
17
18
  readonly Cancelled: "cancelled";
@@ -4,6 +4,7 @@
4
4
  export const OperationsTaskStatusEnum = {
5
5
  NotStarted: "not_started",
6
6
  InProgress: "in_progress",
7
+ Blocked: "blocked",
7
8
  Completed: "completed",
8
9
  Skipped: "skipped",
9
10
  Cancelled: "cancelled",
@@ -15,13 +15,14 @@
15
15
  * *channel* (call vs. email) — the recipient is what a dispatcher batches
16
16
  * around, and the channel is captured in title/description detail.
17
17
  */
18
- export type OperationsTaskTypeEnum = "review_order_details" | "flight_check" | "facility_check" | "weather_check" | "book_cargo" | "track_and_verify" | "contact_customer" | "contact_agent" | "contact_airline" | "contact_other" | "finalize_billing" | "custom" | "other";
18
+ export type OperationsTaskTypeEnum = "review_order_details" | "flight_check" | "facility_check" | "weather_check" | "book_cargo" | "customs" | "track_and_verify" | "contact_customer" | "contact_agent" | "contact_airline" | "contact_other" | "finalize_billing" | "custom" | "other";
19
19
  export declare const OperationsTaskTypeEnum: {
20
20
  readonly ReviewOrderDetails: "review_order_details";
21
21
  readonly FlightCheck: "flight_check";
22
22
  readonly FacilityCheck: "facility_check";
23
23
  readonly WeatherCheck: "weather_check";
24
24
  readonly BookCargo: "book_cargo";
25
+ readonly Customs: "customs";
25
26
  readonly TrackAndVerify: "track_and_verify";
26
27
  readonly ContactCustomer: "contact_customer";
27
28
  readonly ContactAgent: "contact_agent";
@@ -7,6 +7,7 @@ export const OperationsTaskTypeEnum = {
7
7
  FacilityCheck: "facility_check",
8
8
  WeatherCheck: "weather_check",
9
9
  BookCargo: "book_cargo",
10
+ Customs: "customs",
10
11
  TrackAndVerify: "track_and_verify",
11
12
  ContactCustomer: "contact_customer",
12
13
  ContactAgent: "contact_agent",
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type OperationsTaskTypeaheadFieldEnum = "entry_tag";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface OperationsTaskTypeaheadResult {
6
+ type: Chrt.OperationsTaskTypeaheadFieldEnum;
7
+ values?: string[];
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -9,7 +9,7 @@ export interface Order1 {
9
9
  completed_at_timestamp?: string | null;
10
10
  coordinator_assigned_user_ids?: string[];
11
11
  coordinator_department_ids?: string[];
12
- coordinator_label?: string | null;
12
+ coordinator_labels?: string[];
13
13
  /** Must be a string starting with `org_` */
14
14
  coordinator_org_id?: string | null;
15
15
  coordinator_shipper_account_ids?: string[];
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface OrderBillingExecutor1 {
5
- executor_label?: string | null;
5
+ executor_labels?: string[];
6
6
  /** Must be a string starting with `org_` */
7
7
  executor_org_id?: string | null;
8
8
  name?: string | null;
@@ -6,7 +6,7 @@ export interface OrderBillingExpandedListItem1 {
6
6
  accounts?: Chrt.OrderBillingAccount1[];
7
7
  awb_numbers?: string[];
8
8
  billing_periods?: Chrt.OrderBillingPeriod1[];
9
- coordinator_label?: string | null;
9
+ coordinator_labels?: string[];
10
10
  executors?: Chrt.OrderBillingExecutor1[];
11
11
  includes_air_waybill_invoice_line_item: boolean;
12
12
  invoice_count: number;
@@ -14,7 +14,7 @@ export interface OrderLimitedForProvider1 {
14
14
  completed_at_timestamp?: string | null;
15
15
  coordinator_assigned_user_ids?: string[];
16
16
  coordinator_department_ids?: string[];
17
- coordinator_label?: string | null;
17
+ coordinator_labels?: string[];
18
18
  /** Must be a string starting with `org_` */
19
19
  coordinator_org_id?: string | null;
20
20
  coordinator_shipper_account_ids?: string[];
@@ -5,7 +5,7 @@ import * as Chrt from "../index.mjs";
5
5
  export interface OrderTaskGroupExecutorDetails1 {
6
6
  executor_assigned_user_ids?: string[];
7
7
  executor_department_ids?: string[];
8
- executor_label?: string | null;
8
+ executor_labels?: string[];
9
9
  /** Must be a string starting with `org_` */
10
10
  executor_org_id?: string | null;
11
11
  off_chrt_executor_org_data_id?: string | null;
@@ -8,7 +8,7 @@ export interface OrderTemplateNew1 {
8
8
  cargos?: Chrt.OrderTemplateNewCargo1[];
9
9
  coordinator_assigned_user_ids?: string[];
10
10
  coordinator_department_ids?: string[];
11
- coordinator_label?: string | null;
11
+ coordinator_labels?: string[];
12
12
  /** Must be a string starting with `org_` */
13
13
  coordinator_org_id?: string | null;
14
14
  created_at_timestamp: string;
@@ -6,7 +6,7 @@ export interface OrderTemplateNewCore1 {
6
6
  cargos?: Chrt.OrderTemplateNewCargo1[];
7
7
  coordinator_assigned_user_ids?: string[];
8
8
  coordinator_department_ids?: string[];
9
- coordinator_label?: string | null;
9
+ coordinator_labels?: string[];
10
10
  /** Must be a string starting with `org_` */
11
11
  coordinator_org_id?: string | null;
12
12
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
@@ -8,7 +8,8 @@ export interface OrderTemplateNewExpanded1 {
8
8
  cargos?: Chrt.OrderTemplateNewCargo1[];
9
9
  coordinator_assigned_user_ids?: string[];
10
10
  coordinator_department_ids?: string[];
11
- coordinator_label?: string | null;
11
+ coordinator_departments?: Chrt.Department1[];
12
+ coordinator_labels?: string[];
12
13
  coordinator_org?: Chrt.OrgPublicData1 | null;
13
14
  /** Must be a string starting with `org_` */
14
15
  coordinator_org_id?: string | null;
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TaskArtifactTypeEnum1 = "image" | "signature" | "scan" | "other";
4
+ export type TaskArtifactTypeEnum1 = "image" | "file" | "signature" | "scan" | "other";
5
5
  export declare const TaskArtifactTypeEnum1: {
6
6
  readonly Image: "image";
7
+ readonly File: "file";
7
8
  readonly Signature: "signature";
8
9
  readonly Scan: "scan";
9
10
  readonly Other: "other";
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export const TaskArtifactTypeEnum1 = {
5
5
  Image: "image",
6
+ File: "file",
6
7
  Signature: "signature",
7
8
  Scan: "scan",
8
9
  Other: "other",
@@ -33,6 +33,8 @@ export * from "./Bid.mjs";
33
33
  export * from "./BidActionEnum.mjs";
34
34
  export * from "./BidAppendReq.mjs";
35
35
  export * from "./BidThread1.mjs";
36
+ export * from "./BidThreadForListing1.mjs";
37
+ export * from "./BidThreadForListingListRes.mjs";
36
38
  export * from "./BidThreadListRes.mjs";
37
39
  export * from "./BidThreadSortByEnum.mjs";
38
40
  export * from "./BidThreadStatusEnum.mjs";
@@ -354,6 +356,8 @@ export * from "./OperationsTaskListSortByEnum.mjs";
354
356
  export * from "./OperationsTaskSortByEnum.mjs";
355
357
  export * from "./OperationsTaskStatusEnum.mjs";
356
358
  export * from "./OperationsTaskTypeEnum.mjs";
359
+ export * from "./OperationsTaskTypeaheadFieldEnum.mjs";
360
+ export * from "./OperationsTaskTypeaheadResult.mjs";
357
361
  export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.mjs";
358
362
  export * from "./OperationsTasksStatusUpdateRes1.mjs";
359
363
  export * from "./OperationsTasksUpdateDepartmentManyRes.mjs";
@@ -33,6 +33,8 @@ export * from "./Bid.mjs";
33
33
  export * from "./BidActionEnum.mjs";
34
34
  export * from "./BidAppendReq.mjs";
35
35
  export * from "./BidThread1.mjs";
36
+ export * from "./BidThreadForListing1.mjs";
37
+ export * from "./BidThreadForListingListRes.mjs";
36
38
  export * from "./BidThreadListRes.mjs";
37
39
  export * from "./BidThreadSortByEnum.mjs";
38
40
  export * from "./BidThreadStatusEnum.mjs";
@@ -354,6 +356,8 @@ export * from "./OperationsTaskListSortByEnum.mjs";
354
356
  export * from "./OperationsTaskSortByEnum.mjs";
355
357
  export * from "./OperationsTaskStatusEnum.mjs";
356
358
  export * from "./OperationsTaskTypeEnum.mjs";
359
+ export * from "./OperationsTaskTypeaheadFieldEnum.mjs";
360
+ export * from "./OperationsTaskTypeaheadResult.mjs";
357
361
  export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.mjs";
358
362
  export * from "./OperationsTasksStatusUpdateRes1.mjs";
359
363
  export * from "./OperationsTasksUpdateDepartmentManyRes.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.990.0";
1
+ export declare const SDK_VERSION = "1.992.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.990.0";
1
+ export const SDK_VERSION = "1.992.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.990.0",
3
+ "version": "1.992.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",