@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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +9 -4
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +3 -3
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +19 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +87 -9
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +4 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +25 -8
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +9 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +10 -5
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.ts +1 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +9 -9
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/{OrdersUpdateLabelReq.d.ts → OrdersUpdateLabelsReq.d.ts} +2 -3
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +9 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -2
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +9 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +6 -0
- package/dist/cjs/api/types/BidThreadForListing1.d.ts +19 -0
- package/dist/cjs/api/types/BidThreadForListing1.js +5 -0
- package/dist/cjs/api/types/BidThreadForListingListRes.d.ts +8 -0
- package/dist/cjs/api/types/BidThreadForListingListRes.js +5 -0
- package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +2 -1
- package/dist/cjs/api/types/OperationsTaskStatusEnum.js +1 -0
- package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +2 -1
- package/dist/cjs/api/types/OperationsTaskTypeEnum.js +1 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/Order1.d.ts +1 -1
- package/dist/cjs/api/types/OrderBillingExecutor1.d.ts +1 -1
- package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +1 -1
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTaskGroupExecutorDetails1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateNew1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateNewCore1.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +2 -1
- package/dist/cjs/api/types/TaskArtifactTypeEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskArtifactTypeEnum1.js +1 -0
- package/dist/cjs/api/types/index.d.ts +4 -0
- package/dist/cjs/api/types/index.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +9 -4
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +3 -3
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +19 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +87 -9
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +4 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +25 -8
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +9 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +10 -5
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.mts +1 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +9 -9
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/{OrdersUpdateLabelReq.d.mts → OrdersUpdateLabelsReq.d.mts} +2 -3
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateLabelsReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +9 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -2
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +9 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +6 -0
- package/dist/esm/api/types/BidThreadForListing1.d.mts +19 -0
- package/dist/esm/api/types/BidThreadForListing1.mjs +4 -0
- package/dist/esm/api/types/BidThreadForListingListRes.d.mts +8 -0
- package/dist/esm/api/types/BidThreadForListingListRes.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +2 -1
- package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +1 -0
- package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +2 -1
- package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +1 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/Order1.d.mts +1 -1
- package/dist/esm/api/types/OrderBillingExecutor1.d.mts +1 -1
- package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +1 -1
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -1
- package/dist/esm/api/types/OrderTaskGroupExecutorDetails1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateNew1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateNewCore1.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +2 -1
- package/dist/esm/api/types/TaskArtifactTypeEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskArtifactTypeEnum1.mjs +1 -0
- package/dist/esm/api/types/index.d.mts +4 -0
- package/dist/esm/api/types/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +85 -14
- /package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateLabelReq.js → operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.js} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateLabelReq.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksTypeaheadV1Request.mjs} +0 -0
|
@@ -202,7 +202,7 @@ export declare class Orders {
|
|
|
202
202
|
taskGroupOrderingV1(orderId: string, request: Chrt.shipping.OrdersTaskGroupOrderingReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
203
203
|
private __taskGroupOrderingV1;
|
|
204
204
|
/**
|
|
205
|
-
* Returns distinct label values matching the query for orders where the caller is coordinator (
|
|
205
|
+
* 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])
|
|
206
206
|
*
|
|
207
207
|
* @param {Chrt.shipping.OrdersTypeaheadLabelV1Request} request
|
|
208
208
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -291,19 +291,19 @@ export declare class Orders {
|
|
|
291
291
|
updateDraftV1(orderId: string, request?: Chrt.shipping.OrdersUpdateDraftReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OrdersUpdateDraftRes>;
|
|
292
292
|
private __updateDraftV1;
|
|
293
293
|
/**
|
|
294
|
-
*
|
|
294
|
+
* 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)
|
|
295
295
|
*
|
|
296
296
|
* @param {string} orderId
|
|
297
|
-
* @param {Chrt.shipping.
|
|
297
|
+
* @param {Chrt.shipping.OrdersUpdateLabelsReq} request
|
|
298
298
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
299
299
|
*
|
|
300
300
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
301
301
|
*
|
|
302
302
|
* @example
|
|
303
|
-
* await client.shipping.orders.
|
|
303
|
+
* await client.shipping.orders.updateLabelsV1("order_id")
|
|
304
304
|
*/
|
|
305
|
-
|
|
306
|
-
private
|
|
305
|
+
updateLabelsV1(orderId: string, request?: Chrt.shipping.OrdersUpdateLabelsReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
306
|
+
private __updateLabelsV1;
|
|
307
307
|
/**
|
|
308
308
|
* Updates off_chrt_reference_id on an order. Drafts require the creating org's operator; operational orders require the order creator org's operator. | authz_personas=[draft_creator_org_operator, order_creator_org_operators] | (OrdersUpdateOffChrtReferenceIdReq) -> (OrdersUpdateOffChrtReferenceIdRes)
|
|
309
309
|
*
|
|
@@ -726,7 +726,7 @@ class Orders {
|
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
728
|
/**
|
|
729
|
-
* Returns distinct label values matching the query for orders where the caller is coordinator (
|
|
729
|
+
* 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])
|
|
730
730
|
*
|
|
731
731
|
* @param {Chrt.shipping.OrdersTypeaheadLabelV1Request} request
|
|
732
732
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1112,26 +1112,26 @@ class Orders {
|
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
1114
1114
|
/**
|
|
1115
|
-
*
|
|
1115
|
+
* 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)
|
|
1116
1116
|
*
|
|
1117
1117
|
* @param {string} orderId
|
|
1118
|
-
* @param {Chrt.shipping.
|
|
1118
|
+
* @param {Chrt.shipping.OrdersUpdateLabelsReq} request
|
|
1119
1119
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
1120
1120
|
*
|
|
1121
1121
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
1122
1122
|
*
|
|
1123
1123
|
* @example
|
|
1124
|
-
* await client.shipping.orders.
|
|
1124
|
+
* await client.shipping.orders.updateLabelsV1("order_id")
|
|
1125
1125
|
*/
|
|
1126
|
-
|
|
1127
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1126
|
+
updateLabelsV1(orderId, request = {}, requestOptions) {
|
|
1127
|
+
return core.HttpResponsePromise.fromPromise(this.__updateLabelsV1(orderId, request, requestOptions));
|
|
1128
1128
|
}
|
|
1129
|
-
|
|
1129
|
+
__updateLabelsV1(orderId_1) {
|
|
1130
1130
|
return __awaiter(this, arguments, void 0, function* (orderId, request = {}, requestOptions) {
|
|
1131
1131
|
var _a, _b, _c, _d;
|
|
1132
1132
|
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);
|
|
1133
1133
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1134
|
-
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/
|
|
1134
|
+
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)}`),
|
|
1135
1135
|
method: "PATCH",
|
|
1136
1136
|
headers: _headers,
|
|
1137
1137
|
contentType: "application/json",
|
|
@@ -1165,7 +1165,7 @@ class Orders {
|
|
|
1165
1165
|
rawResponse: _response.rawResponse,
|
|
1166
1166
|
});
|
|
1167
1167
|
case "timeout":
|
|
1168
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/
|
|
1168
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/update_labels/v1/{order_id}.");
|
|
1169
1169
|
case "unknown":
|
|
1170
1170
|
throw new errors.ChrtError({
|
|
1171
1171
|
message: _response.error.errorMessage,
|
|
@@ -8,5 +8,5 @@ export { type OrdersTypeaheadV1Request } from "./OrdersTypeaheadV1Request.js";
|
|
|
8
8
|
export { type OrdersUnassignReq } from "./OrdersUnassignReq.js";
|
|
9
9
|
export { type OrdersUpdateDepartmentsReq } from "./OrdersUpdateDepartmentsReq.js";
|
|
10
10
|
export { type OrdersUpdateDraftReq } from "./OrdersUpdateDraftReq.js";
|
|
11
|
-
export { type
|
|
11
|
+
export { type OrdersUpdateLabelsReq } from "./OrdersUpdateLabelsReq.js";
|
|
12
12
|
export { type OrdersUpdateOffChrtReferenceIdReq } from "./OrdersUpdateOffChrtReferenceIdReq.js";
|
|
@@ -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
|
-
|
|
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;
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
103
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
104
104
|
* body: {}
|
|
105
105
|
* })
|
|
106
106
|
*/
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js
CHANGED
|
@@ -223,7 +223,7 @@ class Expanded {
|
|
|
223
223
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
224
224
|
* filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
|
|
225
225
|
* filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
|
|
226
|
-
*
|
|
226
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
227
227
|
* body: {}
|
|
228
228
|
* })
|
|
229
229
|
*/
|
|
@@ -233,7 +233,7 @@ class Expanded {
|
|
|
233
233
|
__listForProviderOperatorsV1(request, requestOptions) {
|
|
234
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
235
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
236
|
-
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,
|
|
236
|
+
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;
|
|
237
237
|
const _queryParams = {};
|
|
238
238
|
if (providerRole !== undefined) {
|
|
239
239
|
_queryParams["provider_role"] = providerRole;
|
|
@@ -368,8 +368,13 @@ class Expanded {
|
|
|
368
368
|
_queryParams["filter_coordinator_assigned_user_ids"] = filterCoordinatorAssignedUserIds;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
if (
|
|
372
|
-
|
|
371
|
+
if (filterCoordinatorLabels !== undefined) {
|
|
372
|
+
if (Array.isArray(filterCoordinatorLabels)) {
|
|
373
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels.map((item) => item);
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels;
|
|
377
|
+
}
|
|
373
378
|
}
|
|
374
379
|
let _headers = (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
375
380
|
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
@@ -37,7 +37,7 @@ import * as Chrt from "../../../../../../../../index.js";
|
|
|
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
|
-
*
|
|
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
|
-
|
|
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",
|
|
@@ -210,6 +210,8 @@ class Devices {
|
|
|
210
210
|
* page_size: 1,
|
|
211
211
|
* search: "search",
|
|
212
212
|
* org_scope: "owned",
|
|
213
|
+
* filter_device_id: "filter_device_id",
|
|
214
|
+
* filter_device_mac_address: "filter_device_mac_address",
|
|
213
215
|
* filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
|
|
214
216
|
* filter_type: "D15N-tag",
|
|
215
217
|
* filter_active_cargo_id: "filter_active_cargo_id",
|
|
@@ -231,7 +233,7 @@ class Devices {
|
|
|
231
233
|
__listV1() {
|
|
232
234
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
233
235
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
234
|
-
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;
|
|
236
|
+
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;
|
|
235
237
|
const _queryParams = {};
|
|
236
238
|
if (sortBy !== undefined) {
|
|
237
239
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -251,6 +253,12 @@ class Devices {
|
|
|
251
253
|
if (orgScope !== undefined) {
|
|
252
254
|
_queryParams["org_scope"] = orgScope;
|
|
253
255
|
}
|
|
256
|
+
if (filterDeviceId !== undefined) {
|
|
257
|
+
_queryParams["filter_device_id"] = filterDeviceId;
|
|
258
|
+
}
|
|
259
|
+
if (filterDeviceMacAddress !== undefined) {
|
|
260
|
+
_queryParams["filter_device_mac_address"] = filterDeviceMacAddress;
|
|
261
|
+
}
|
|
254
262
|
if (filterOffChrtReferenceId !== undefined) {
|
|
255
263
|
_queryParams["filter_off_chrt_reference_id"] = filterOffChrtReferenceId;
|
|
256
264
|
}
|
package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
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.js";
|
|
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
|
+
}
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -10,6 +10,7 @@ exports.OperationsTaskTypeEnum = {
|
|
|
10
10
|
FacilityCheck: "facility_check",
|
|
11
11
|
WeatherCheck: "weather_check",
|
|
12
12
|
BookCargo: "book_cargo",
|
|
13
|
+
Customs: "customs",
|
|
13
14
|
TrackAndVerify: "track_and_verify",
|
|
14
15
|
ContactCustomer: "contact_customer",
|
|
15
16
|
ContactAgent: "contact_agent",
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.js";
|
|
|
5
5
|
export interface OrderTaskGroupExecutorDetails1 {
|
|
6
6
|
executor_assigned_user_ids?: string[];
|
|
7
7
|
executor_department_ids?: string[];
|
|
8
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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";
|
|
@@ -33,6 +33,8 @@ export * from "./Bid.js";
|
|
|
33
33
|
export * from "./BidActionEnum.js";
|
|
34
34
|
export * from "./BidAppendReq.js";
|
|
35
35
|
export * from "./BidThread1.js";
|
|
36
|
+
export * from "./BidThreadForListing1.js";
|
|
37
|
+
export * from "./BidThreadForListingListRes.js";
|
|
36
38
|
export * from "./BidThreadListRes.js";
|
|
37
39
|
export * from "./BidThreadSortByEnum.js";
|
|
38
40
|
export * from "./BidThreadStatusEnum.js";
|
|
@@ -354,6 +356,8 @@ export * from "./OperationsTaskListSortByEnum.js";
|
|
|
354
356
|
export * from "./OperationsTaskSortByEnum.js";
|
|
355
357
|
export * from "./OperationsTaskStatusEnum.js";
|
|
356
358
|
export * from "./OperationsTaskTypeEnum.js";
|
|
359
|
+
export * from "./OperationsTaskTypeaheadFieldEnum.js";
|
|
360
|
+
export * from "./OperationsTaskTypeaheadResult.js";
|
|
357
361
|
export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.js";
|
|
358
362
|
export * from "./OperationsTasksStatusUpdateRes1.js";
|
|
359
363
|
export * from "./OperationsTasksUpdateDepartmentManyRes.js";
|
|
@@ -49,6 +49,8 @@ __exportStar(require("./Bid.js"), exports);
|
|
|
49
49
|
__exportStar(require("./BidActionEnum.js"), exports);
|
|
50
50
|
__exportStar(require("./BidAppendReq.js"), exports);
|
|
51
51
|
__exportStar(require("./BidThread1.js"), exports);
|
|
52
|
+
__exportStar(require("./BidThreadForListing1.js"), exports);
|
|
53
|
+
__exportStar(require("./BidThreadForListingListRes.js"), exports);
|
|
52
54
|
__exportStar(require("./BidThreadListRes.js"), exports);
|
|
53
55
|
__exportStar(require("./BidThreadSortByEnum.js"), exports);
|
|
54
56
|
__exportStar(require("./BidThreadStatusEnum.js"), exports);
|
|
@@ -370,6 +372,8 @@ __exportStar(require("./OperationsTaskListSortByEnum.js"), exports);
|
|
|
370
372
|
__exportStar(require("./OperationsTaskSortByEnum.js"), exports);
|
|
371
373
|
__exportStar(require("./OperationsTaskStatusEnum.js"), exports);
|
|
372
374
|
__exportStar(require("./OperationsTaskTypeEnum.js"), exports);
|
|
375
|
+
__exportStar(require("./OperationsTaskTypeaheadFieldEnum.js"), exports);
|
|
376
|
+
__exportStar(require("./OperationsTaskTypeaheadResult.js"), exports);
|
|
373
377
|
__exportStar(require("./OperationsTasksDeadlineTimestampsUpdateRes1.js"), exports);
|
|
374
378
|
__exportStar(require("./OperationsTasksStatusUpdateRes1.js"), exports);
|
|
375
379
|
__exportStar(require("./OperationsTasksUpdateDepartmentManyRes.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.992.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
28
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
27
|
+
"X-Fern-SDK-Version": "1.992.0",
|
|
28
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.992.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) });
|
|
@@ -71,7 +71,7 @@ export declare class Orders {
|
|
|
71
71
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
72
72
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
73
73
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
74
|
-
*
|
|
74
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
75
75
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
76
76
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
77
77
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -127,7 +127,7 @@ export class Orders {
|
|
|
127
127
|
* filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
|
|
128
128
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
129
129
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
130
|
-
*
|
|
130
|
+
* filter_coordinator_labels: ["filter_coordinator_labels"],
|
|
131
131
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
132
132
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
133
133
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -148,7 +148,7 @@ export class Orders {
|
|
|
148
148
|
__listExpandedForCoordinatorOperatorsV1() {
|
|
149
149
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
150
150
|
var _a, _b, _c, _d, _e, _f;
|
|
151
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_awb_number: filterAwbNumber, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId,
|
|
151
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_awb_number: filterAwbNumber, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_labels: filterCoordinatorLabels, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte } = request, _body = __rest(request, ["sort_by", "sort_order", "page", "page_size", "search", "filter_status", "filter_awb_number", "filter_shipper_org_id", "filter_off_chrt_shipper_org_data_id", "filter_coordinator_shipper_account_ids", "filter_executor_org_id", "filter_off_chrt_executor_org_data_id", "filter_coordinator_labels", "filter_draft_started_at_timestamp_gte", "filter_draft_started_at_timestamp_lte", "filter_staged_at_timestamp_gte", "filter_staged_at_timestamp_lte", "filter_in_progress_at_timestamp_gte", "filter_in_progress_at_timestamp_lte", "filter_completed_at_timestamp_gte", "filter_completed_at_timestamp_lte", "filter_cancelled_at_timestamp_gte", "filter_cancelled_at_timestamp_lte", "filter_exception_at_timestamp_gte", "filter_exception_at_timestamp_lte"]);
|
|
152
152
|
const _queryParams = {};
|
|
153
153
|
if (sortBy !== undefined) {
|
|
154
154
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -196,8 +196,13 @@ export class Orders {
|
|
|
196
196
|
if (filterOffChrtExecutorOrgDataId !== undefined) {
|
|
197
197
|
_queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
|
|
198
198
|
}
|
|
199
|
-
if (
|
|
200
|
-
|
|
199
|
+
if (filterCoordinatorLabels !== undefined) {
|
|
200
|
+
if (Array.isArray(filterCoordinatorLabels)) {
|
|
201
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels.map((item) => item);
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
_queryParams["filter_coordinator_labels"] = filterCoordinatorLabels;
|
|
205
|
+
}
|
|
201
206
|
}
|
|
202
207
|
if (filterDraftStartedAtTimestampGte !== undefined) {
|
|
203
208
|
_queryParams["filter_draft_started_at_timestamp_gte"] = filterDraftStartedAtTimestampGte;
|