@chrt-inc/typescript-sdk 1.847.0 → 1.853.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/operations/resources/operationsTasks/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +10 -2
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +7 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +1 -1
- package/dist/cjs/api/types/OperationsTask1.d.ts +3 -0
- package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +2 -1
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +1 -0
- package/dist/cjs/api/types/OrderTemplateResolvabilityRes.d.ts +1 -0
- package/dist/cjs/api/types/OrdersDraftDeleteManyRes.d.ts +7 -0
- package/dist/cjs/api/types/OrdersDraftDeleteManyRes.js +5 -0
- package/dist/cjs/api/types/ShippingTurnClientCreate1.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -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/operations/resources/operationsTasks/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +10 -2
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +7 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +4 -4
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +1 -1
- package/dist/esm/api/types/OperationsTask1.d.mts +3 -0
- package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +2 -1
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +1 -0
- package/dist/esm/api/types/OrderTemplateResolvabilityRes.d.mts +1 -0
- package/dist/esm/api/types/OrdersDraftDeleteManyRes.d.mts +7 -0
- package/dist/esm/api/types/OrdersDraftDeleteManyRes.mjs +4 -0
- package/dist/esm/api/types/ShippingTurnClientCreate1.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +9 -7
package/dist/cjs/Client.js
CHANGED
|
@@ -57,8 +57,8 @@ class ChrtClient {
|
|
|
57
57
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
58
58
|
"X-Fern-Language": "JavaScript",
|
|
59
59
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
60
|
-
"X-Fern-SDK-Version": "1.
|
|
61
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
60
|
+
"X-Fern-SDK-Version": "1.853.0",
|
|
61
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.853.0",
|
|
62
62
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
63
63
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
64
64
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -79,7 +79,7 @@ export declare class OperationsTasks {
|
|
|
79
79
|
deleteCommentV1(taskId: string, commentId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
80
80
|
private __deleteCommentV1;
|
|
81
81
|
/**
|
|
82
|
-
* Lists OperationsTasks for the caller's organization, with order ids / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
82
|
+
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
83
83
|
*
|
|
84
84
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
85
85
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -92,6 +92,8 @@ export declare class OperationsTasks {
|
|
|
92
92
|
* sort_order: "asc",
|
|
93
93
|
* page: 1,
|
|
94
94
|
* page_size: 1,
|
|
95
|
+
* filter_order_short_id: "filter_order_short_id",
|
|
96
|
+
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
95
97
|
* filter_department_id: "filter_department_id",
|
|
96
98
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
97
99
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -251,7 +251,7 @@ class OperationsTasks {
|
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
/**
|
|
254
|
-
* Lists OperationsTasks for the caller's organization, with order ids / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
254
|
+
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
255
255
|
*
|
|
256
256
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
257
257
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -264,6 +264,8 @@ class OperationsTasks {
|
|
|
264
264
|
* sort_order: "asc",
|
|
265
265
|
* page: 1,
|
|
266
266
|
* page_size: 1,
|
|
267
|
+
* filter_order_short_id: "filter_order_short_id",
|
|
268
|
+
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
267
269
|
* filter_department_id: "filter_department_id",
|
|
268
270
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
269
271
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -276,7 +278,7 @@ class OperationsTasks {
|
|
|
276
278
|
__listV1() {
|
|
277
279
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
278
280
|
var _a, _b, _c, _d, _e, _f;
|
|
279
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_ids: filterOrderIds, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
281
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
280
282
|
const _queryParams = {};
|
|
281
283
|
if (sortBy !== undefined) {
|
|
282
284
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -298,6 +300,12 @@ class OperationsTasks {
|
|
|
298
300
|
_queryParams["filter_order_ids"] = filterOrderIds;
|
|
299
301
|
}
|
|
300
302
|
}
|
|
303
|
+
if (filterOrderShortId !== undefined) {
|
|
304
|
+
_queryParams["filter_order_short_id"] = filterOrderShortId;
|
|
305
|
+
}
|
|
306
|
+
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
307
|
+
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
308
|
+
}
|
|
301
309
|
if (filterDepartmentId !== undefined) {
|
|
302
310
|
_queryParams["filter_department_id"] = filterDepartmentId;
|
|
303
311
|
}
|
|
@@ -9,6 +9,8 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
+
* filter_order_short_id: "filter_order_short_id",
|
|
13
|
+
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
12
14
|
* filter_department_id: "filter_department_id",
|
|
13
15
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
14
16
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -22,8 +24,12 @@ export interface OperationsTasksListV1Request {
|
|
|
22
24
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
23
25
|
page?: number | null;
|
|
24
26
|
page_size?: number | null;
|
|
25
|
-
/** Filter to tasks on any of these order ids (e.g. the order_ids returned by the orders typeahead for a chosen short_id / off-chrt reference) */
|
|
27
|
+
/** Filter to tasks on any of these order ids (e.g. the order_ids returned by the orders typeahead for a chosen short_id / off-chrt reference id) */
|
|
26
28
|
filter_order_ids?: (string | null) | (string | null)[];
|
|
29
|
+
/** Filter to tasks for this order short ID */
|
|
30
|
+
filter_order_short_id?: string | null;
|
|
31
|
+
/** Filter to tasks for this order off-CHRT reference ID */
|
|
32
|
+
filter_order_off_chrt_reference_id?: string | null;
|
|
27
33
|
/** Filter to tasks routed to this department (desk queue) */
|
|
28
34
|
filter_department_id?: string | null;
|
|
29
35
|
/** Filter by task type(s). Defaults to all types. */
|
|
@@ -49,7 +49,7 @@ export declare class OrderDrafts {
|
|
|
49
49
|
get taskArtifact(): TaskArtifact;
|
|
50
50
|
get taskGroup(): TaskGroup;
|
|
51
51
|
/**
|
|
52
|
-
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
52
|
+
* Deletes a draft order and all associated entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
53
53
|
*
|
|
54
54
|
* @param {string} orderId
|
|
55
55
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -62,7 +62,7 @@ export declare class OrderDrafts {
|
|
|
62
62
|
deleteV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
63
63
|
private __deleteV1;
|
|
64
64
|
/**
|
|
65
|
-
* Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (
|
|
65
|
+
* Deletes multiple draft orders and associated entities, skipping drafts with billing links. | authz_personas=[draft_creator_org_operator] | (OrdersDraftDeleteManyReq) -> (OrdersDraftDeleteManyRes)
|
|
66
66
|
*
|
|
67
67
|
* @param {Chrt.shipping.OrdersDraftDeleteManyReq} request
|
|
68
68
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -74,7 +74,7 @@ export declare class OrderDrafts {
|
|
|
74
74
|
* order_ids: ["order_ids"]
|
|
75
75
|
* })
|
|
76
76
|
*/
|
|
77
|
-
deleteManyV1(request: Chrt.shipping.OrdersDraftDeleteManyReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<
|
|
77
|
+
deleteManyV1(request: Chrt.shipping.OrdersDraftDeleteManyReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftDeleteManyRes>;
|
|
78
78
|
private __deleteManyV1;
|
|
79
79
|
/**
|
|
80
80
|
* Converts an order screenshot into lightly structured text for the AI order builder. | authz: min_org_role=operator | (UploadFile) -> (str)
|
|
@@ -93,7 +93,7 @@ export declare class OrderDrafts {
|
|
|
93
93
|
imageToTextV1(request: Chrt.shipping.BodyPostShippingOrderDraftsImageToTextV1, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<string>;
|
|
94
94
|
private __imageToTextV1;
|
|
95
95
|
/**
|
|
96
|
-
* Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
96
|
+
* Creates a new draft order with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
97
97
|
*
|
|
98
98
|
* @param {Chrt.shipping.OrdersNewDraftReq} request
|
|
99
99
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -138,7 +138,7 @@ export declare class OrderDrafts {
|
|
|
138
138
|
typeaheadV1(request: Chrt.shipping.OrderDraftsTypeaheadV1Request, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderTypeaheadResult[]>;
|
|
139
139
|
private __typeaheadV1;
|
|
140
140
|
/**
|
|
141
|
-
* Updates coordinator and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
141
|
+
* Updates coordinator and/or shipper org assignments for a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
142
142
|
*
|
|
143
143
|
* @param {string} orderId
|
|
144
144
|
* @param {Chrt.shipping.OrdersDraftUpdateReq} request
|
|
@@ -86,7 +86,7 @@ class OrderDrafts {
|
|
|
86
86
|
return ((_a = this._taskGroup) !== null && _a !== void 0 ? _a : (this._taskGroup = new Client_js_6.TaskGroup(this._options)));
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
89
|
+
* Deletes a draft order and all associated entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
90
90
|
*
|
|
91
91
|
* @param {string} orderId
|
|
92
92
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -145,7 +145,7 @@ class OrderDrafts {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
/**
|
|
148
|
-
* Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (
|
|
148
|
+
* Deletes multiple draft orders and associated entities, skipping drafts with billing links. | authz_personas=[draft_creator_org_operator] | (OrdersDraftDeleteManyReq) -> (OrdersDraftDeleteManyRes)
|
|
149
149
|
*
|
|
150
150
|
* @param {Chrt.shipping.OrdersDraftDeleteManyReq} request
|
|
151
151
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -277,7 +277,7 @@ class OrderDrafts {
|
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
280
|
-
* Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
280
|
+
* Creates a new draft order with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
281
281
|
*
|
|
282
282
|
* @param {Chrt.shipping.OrdersNewDraftReq} request
|
|
283
283
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -472,7 +472,7 @@ class OrderDrafts {
|
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
474
|
/**
|
|
475
|
-
* Updates coordinator and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
475
|
+
* Updates coordinator and/or shipper org assignments for a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
476
476
|
*
|
|
477
477
|
* @param {string} orderId
|
|
478
478
|
* @param {Chrt.shipping.OrdersDraftUpdateReq} request
|
|
@@ -18,6 +18,7 @@ export interface OrderTemplateClientCreate1 {
|
|
|
18
18
|
driver_ids?: string[];
|
|
19
19
|
executor_org_ids?: string[];
|
|
20
20
|
name: string;
|
|
21
|
+
off_chrt_executor_org_ids?: string[];
|
|
21
22
|
off_chrt_reference_id_str?: string | null;
|
|
22
23
|
off_chrt_shipper_org_id?: string | null;
|
|
23
24
|
schema_version: number;
|
|
@@ -19,6 +19,7 @@ export interface OrderTemplateClientUpdate1 {
|
|
|
19
19
|
driver_ids?: string[];
|
|
20
20
|
executor_org_ids?: string[];
|
|
21
21
|
name?: string | null;
|
|
22
|
+
off_chrt_executor_org_ids?: string[];
|
|
22
23
|
off_chrt_reference_id_str?: string | null;
|
|
23
24
|
off_chrt_reference_id_str__set_to_None?: boolean;
|
|
24
25
|
off_chrt_shipper_org_id?: string | null;
|
|
@@ -62,7 +62,7 @@ export declare class Orders {
|
|
|
62
62
|
cancelManyV1(request: Chrt.shipping.OrdersCancelManyReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
63
63
|
private __cancelManyV1;
|
|
64
64
|
/**
|
|
65
|
-
* Validates a draft order and stages all related entities in a transaction. | () -> (bool)
|
|
65
|
+
* Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
66
66
|
*
|
|
67
67
|
* @param {string} orderId
|
|
68
68
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -184,7 +184,7 @@ class Orders {
|
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
|
-
* Validates a draft order and stages all related entities in a transaction. | () -> (bool)
|
|
187
|
+
* Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
188
188
|
*
|
|
189
189
|
* @param {string} orderId
|
|
190
190
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -13,6 +13,9 @@ export interface OperationsTask1 {
|
|
|
13
13
|
department_id?: string | null;
|
|
14
14
|
description: string;
|
|
15
15
|
order_id: string;
|
|
16
|
+
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
17
|
+
order_off_chrt_reference_id?: string | null;
|
|
18
|
+
order_short_id: string;
|
|
16
19
|
/** Must be a string starting with `org_` */
|
|
17
20
|
org_id: string;
|
|
18
21
|
schema_version: number;
|
|
@@ -16,6 +16,7 @@ export interface OrderTemplate1 {
|
|
|
16
16
|
last_edited_at_timestamp: string;
|
|
17
17
|
last_used_at_timestamp?: string | null;
|
|
18
18
|
name: string;
|
|
19
|
+
off_chrt_executor_org_ids?: string[];
|
|
19
20
|
off_chrt_reference_id_str?: string | null;
|
|
20
21
|
off_chrt_shipper_org_id?: string | null;
|
|
21
22
|
/** Must be a string starting with `org_` */
|
|
@@ -14,6 +14,7 @@ export interface OrderTemplateCore1 {
|
|
|
14
14
|
directory_entry_ids?: string[];
|
|
15
15
|
driver_ids?: string[];
|
|
16
16
|
executor_org_ids?: string[];
|
|
17
|
+
off_chrt_executor_org_ids?: string[];
|
|
17
18
|
off_chrt_shipper_org_id?: string | null;
|
|
18
19
|
schema_version: number;
|
|
19
20
|
/** Must be a string starting with `org_` */
|
|
@@ -6,6 +6,7 @@ export interface OrderTemplateExpanded1 {
|
|
|
6
6
|
directory_entries?: Chrt.DirectoryEntry1[];
|
|
7
7
|
drivers?: Chrt.Driver1[];
|
|
8
8
|
executor_orgs?: Chrt.OrderTemplateOrgInfo1[];
|
|
9
|
+
off_chrt_executor_orgs?: Chrt.OffChrtProviderOrg1[];
|
|
9
10
|
off_chrt_shipper_org?: Chrt.OffChrtShipperOrg1 | null;
|
|
10
11
|
order_template: Chrt.OrderTemplate1;
|
|
11
12
|
orders?: Chrt.Order1[];
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type OrderTemplateReferenceColumnEnum1 = "shipper_org_id" | "off_chrt_shipper_org_id" | "executor_org_ids" | "driver_ids" | "directory_entry_ids";
|
|
4
|
+
export type OrderTemplateReferenceColumnEnum1 = "shipper_org_id" | "off_chrt_shipper_org_id" | "executor_org_ids" | "off_chrt_executor_org_ids" | "driver_ids" | "directory_entry_ids";
|
|
5
5
|
export declare const OrderTemplateReferenceColumnEnum1: {
|
|
6
6
|
readonly ShipperOrgId: "shipper_org_id";
|
|
7
7
|
readonly OffChrtShipperOrgId: "off_chrt_shipper_org_id";
|
|
8
8
|
readonly ExecutorOrgIds: "executor_org_ids";
|
|
9
|
+
readonly OffChrtExecutorOrgIds: "off_chrt_executor_org_ids";
|
|
9
10
|
readonly DriverIds: "driver_ids";
|
|
10
11
|
readonly DirectoryEntryIds: "directory_entry_ids";
|
|
11
12
|
};
|
|
@@ -8,6 +8,7 @@ exports.OrderTemplateReferenceColumnEnum1 = {
|
|
|
8
8
|
ShipperOrgId: "shipper_org_id",
|
|
9
9
|
OffChrtShipperOrgId: "off_chrt_shipper_org_id",
|
|
10
10
|
ExecutorOrgIds: "executor_org_ids",
|
|
11
|
+
OffChrtExecutorOrgIds: "off_chrt_executor_org_ids",
|
|
11
12
|
DriverIds: "driver_ids",
|
|
12
13
|
DirectoryEntryIds: "directory_entry_ids",
|
|
13
14
|
};
|
|
@@ -5,6 +5,7 @@ export interface OrderTemplateResolvabilityRes {
|
|
|
5
5
|
unresolvable_coordinator?: boolean;
|
|
6
6
|
unresolvable_directory_entry_ids?: string[];
|
|
7
7
|
unresolvable_driver_ids?: string[];
|
|
8
|
+
unresolvable_off_chrt_executor_org_ids?: string[];
|
|
8
9
|
unresolvable_off_chrt_shipper?: boolean;
|
|
9
10
|
valid: boolean;
|
|
10
11
|
}
|
|
@@ -6,6 +6,7 @@ export interface ShippingTurnClientCreate1 {
|
|
|
6
6
|
directory_entry_ids?: string[];
|
|
7
7
|
driver_ids?: string[];
|
|
8
8
|
executor_org_ids?: string[];
|
|
9
|
+
off_chrt_executor_org_ids?: string[];
|
|
9
10
|
off_chrt_shipper_org_id?: string | null;
|
|
10
11
|
/** Must be a string starting with `org_` */
|
|
11
12
|
shipper_org_id?: string | null;
|
|
@@ -300,6 +300,7 @@ export * from "./OrderTemplateSortByEnum.js";
|
|
|
300
300
|
export * from "./OrderTypeaheadFieldEnum.js";
|
|
301
301
|
export * from "./OrderTypeaheadResult.js";
|
|
302
302
|
export * from "./OrderTypeaheadValue.js";
|
|
303
|
+
export * from "./OrdersDraftDeleteManyRes.js";
|
|
303
304
|
export * from "./OrdersDraftUpdateRes.js";
|
|
304
305
|
export * from "./OrdersExpandedListRes.js";
|
|
305
306
|
export * from "./OrdersNewDraftRes.js";
|
|
@@ -316,6 +316,7 @@ __exportStar(require("./OrderTemplateSortByEnum.js"), exports);
|
|
|
316
316
|
__exportStar(require("./OrderTypeaheadFieldEnum.js"), exports);
|
|
317
317
|
__exportStar(require("./OrderTypeaheadResult.js"), exports);
|
|
318
318
|
__exportStar(require("./OrderTypeaheadValue.js"), exports);
|
|
319
|
+
__exportStar(require("./OrdersDraftDeleteManyRes.js"), exports);
|
|
319
320
|
__exportStar(require("./OrdersDraftUpdateRes.js"), exports);
|
|
320
321
|
__exportStar(require("./OrdersExpandedListRes.js"), exports);
|
|
321
322
|
__exportStar(require("./OrdersNewDraftRes.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.853.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -21,8 +21,8 @@ export class ChrtClient {
|
|
|
21
21
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
22
22
|
"X-Fern-Language": "JavaScript",
|
|
23
23
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
24
|
-
"X-Fern-SDK-Version": "1.
|
|
25
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
24
|
+
"X-Fern-SDK-Version": "1.853.0",
|
|
25
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.853.0",
|
|
26
26
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
27
27
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
28
28
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -79,7 +79,7 @@ export declare class OperationsTasks {
|
|
|
79
79
|
deleteCommentV1(taskId: string, commentId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
80
80
|
private __deleteCommentV1;
|
|
81
81
|
/**
|
|
82
|
-
* Lists OperationsTasks for the caller's organization, with order ids / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
82
|
+
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
83
83
|
*
|
|
84
84
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
85
85
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -92,6 +92,8 @@ export declare class OperationsTasks {
|
|
|
92
92
|
* sort_order: "asc",
|
|
93
93
|
* page: 1,
|
|
94
94
|
* page_size: 1,
|
|
95
|
+
* filter_order_short_id: "filter_order_short_id",
|
|
96
|
+
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
95
97
|
* filter_department_id: "filter_department_id",
|
|
96
98
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
97
99
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -215,7 +215,7 @@ export class OperationsTasks {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
|
-
* Lists OperationsTasks for the caller's organization, with order ids / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
218
|
+
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
219
219
|
*
|
|
220
220
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
221
221
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -228,6 +228,8 @@ export class OperationsTasks {
|
|
|
228
228
|
* sort_order: "asc",
|
|
229
229
|
* page: 1,
|
|
230
230
|
* page_size: 1,
|
|
231
|
+
* filter_order_short_id: "filter_order_short_id",
|
|
232
|
+
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
231
233
|
* filter_department_id: "filter_department_id",
|
|
232
234
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
233
235
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -240,7 +242,7 @@ export class OperationsTasks {
|
|
|
240
242
|
__listV1() {
|
|
241
243
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
242
244
|
var _a, _b, _c, _d, _e, _f;
|
|
243
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_ids: filterOrderIds, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
245
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
244
246
|
const _queryParams = {};
|
|
245
247
|
if (sortBy !== undefined) {
|
|
246
248
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -262,6 +264,12 @@ export class OperationsTasks {
|
|
|
262
264
|
_queryParams["filter_order_ids"] = filterOrderIds;
|
|
263
265
|
}
|
|
264
266
|
}
|
|
267
|
+
if (filterOrderShortId !== undefined) {
|
|
268
|
+
_queryParams["filter_order_short_id"] = filterOrderShortId;
|
|
269
|
+
}
|
|
270
|
+
if (filterOrderOffChrtReferenceId !== undefined) {
|
|
271
|
+
_queryParams["filter_order_off_chrt_reference_id"] = filterOrderOffChrtReferenceId;
|
|
272
|
+
}
|
|
265
273
|
if (filterDepartmentId !== undefined) {
|
|
266
274
|
_queryParams["filter_department_id"] = filterDepartmentId;
|
|
267
275
|
}
|
|
@@ -9,6 +9,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
+
* filter_order_short_id: "filter_order_short_id",
|
|
13
|
+
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
12
14
|
* filter_department_id: "filter_department_id",
|
|
13
15
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
14
16
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -22,8 +24,12 @@ export interface OperationsTasksListV1Request {
|
|
|
22
24
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
23
25
|
page?: number | null;
|
|
24
26
|
page_size?: number | null;
|
|
25
|
-
/** Filter to tasks on any of these order ids (e.g. the order_ids returned by the orders typeahead for a chosen short_id / off-chrt reference) */
|
|
27
|
+
/** Filter to tasks on any of these order ids (e.g. the order_ids returned by the orders typeahead for a chosen short_id / off-chrt reference id) */
|
|
26
28
|
filter_order_ids?: (string | null) | (string | null)[];
|
|
29
|
+
/** Filter to tasks for this order short ID */
|
|
30
|
+
filter_order_short_id?: string | null;
|
|
31
|
+
/** Filter to tasks for this order off-CHRT reference ID */
|
|
32
|
+
filter_order_off_chrt_reference_id?: string | null;
|
|
27
33
|
/** Filter to tasks routed to this department (desk queue) */
|
|
28
34
|
filter_department_id?: string | null;
|
|
29
35
|
/** Filter by task type(s). Defaults to all types. */
|
|
@@ -49,7 +49,7 @@ export declare class OrderDrafts {
|
|
|
49
49
|
get taskArtifact(): TaskArtifact;
|
|
50
50
|
get taskGroup(): TaskGroup;
|
|
51
51
|
/**
|
|
52
|
-
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
52
|
+
* Deletes a draft order and all associated entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
53
53
|
*
|
|
54
54
|
* @param {string} orderId
|
|
55
55
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -62,7 +62,7 @@ export declare class OrderDrafts {
|
|
|
62
62
|
deleteV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
63
63
|
private __deleteV1;
|
|
64
64
|
/**
|
|
65
|
-
* Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (
|
|
65
|
+
* Deletes multiple draft orders and associated entities, skipping drafts with billing links. | authz_personas=[draft_creator_org_operator] | (OrdersDraftDeleteManyReq) -> (OrdersDraftDeleteManyRes)
|
|
66
66
|
*
|
|
67
67
|
* @param {Chrt.shipping.OrdersDraftDeleteManyReq} request
|
|
68
68
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -74,7 +74,7 @@ export declare class OrderDrafts {
|
|
|
74
74
|
* order_ids: ["order_ids"]
|
|
75
75
|
* })
|
|
76
76
|
*/
|
|
77
|
-
deleteManyV1(request: Chrt.shipping.OrdersDraftDeleteManyReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<
|
|
77
|
+
deleteManyV1(request: Chrt.shipping.OrdersDraftDeleteManyReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftDeleteManyRes>;
|
|
78
78
|
private __deleteManyV1;
|
|
79
79
|
/**
|
|
80
80
|
* Converts an order screenshot into lightly structured text for the AI order builder. | authz: min_org_role=operator | (UploadFile) -> (str)
|
|
@@ -93,7 +93,7 @@ export declare class OrderDrafts {
|
|
|
93
93
|
imageToTextV1(request: Chrt.shipping.BodyPostShippingOrderDraftsImageToTextV1, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<string>;
|
|
94
94
|
private __imageToTextV1;
|
|
95
95
|
/**
|
|
96
|
-
* Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
96
|
+
* Creates a new draft order with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
97
97
|
*
|
|
98
98
|
* @param {Chrt.shipping.OrdersNewDraftReq} request
|
|
99
99
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -138,7 +138,7 @@ export declare class OrderDrafts {
|
|
|
138
138
|
typeaheadV1(request: Chrt.shipping.OrderDraftsTypeaheadV1Request, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderTypeaheadResult[]>;
|
|
139
139
|
private __typeaheadV1;
|
|
140
140
|
/**
|
|
141
|
-
* Updates coordinator and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
141
|
+
* Updates coordinator and/or shipper org assignments for a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
142
142
|
*
|
|
143
143
|
* @param {string} orderId
|
|
144
144
|
* @param {Chrt.shipping.OrdersDraftUpdateReq} request
|
|
@@ -50,7 +50,7 @@ export class OrderDrafts {
|
|
|
50
50
|
return ((_a = this._taskGroup) !== null && _a !== void 0 ? _a : (this._taskGroup = new TaskGroup(this._options)));
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Deletes a draft order and all associated entities. | () -> (bool)
|
|
53
|
+
* Deletes a draft order and all associated entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
54
54
|
*
|
|
55
55
|
* @param {string} orderId
|
|
56
56
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -109,7 +109,7 @@ export class OrderDrafts {
|
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
* Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (
|
|
112
|
+
* Deletes multiple draft orders and associated entities, skipping drafts with billing links. | authz_personas=[draft_creator_org_operator] | (OrdersDraftDeleteManyReq) -> (OrdersDraftDeleteManyRes)
|
|
113
113
|
*
|
|
114
114
|
* @param {Chrt.shipping.OrdersDraftDeleteManyReq} request
|
|
115
115
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -241,7 +241,7 @@ export class OrderDrafts {
|
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
|
-
* Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
244
|
+
* Creates a new draft order with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
245
245
|
*
|
|
246
246
|
* @param {Chrt.shipping.OrdersNewDraftReq} request
|
|
247
247
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -436,7 +436,7 @@ export class OrderDrafts {
|
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
/**
|
|
439
|
-
* Updates coordinator and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
439
|
+
* Updates coordinator and/or shipper org assignments for a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
440
440
|
*
|
|
441
441
|
* @param {string} orderId
|
|
442
442
|
* @param {Chrt.shipping.OrdersDraftUpdateReq} request
|
|
@@ -18,6 +18,7 @@ export interface OrderTemplateClientCreate1 {
|
|
|
18
18
|
driver_ids?: string[];
|
|
19
19
|
executor_org_ids?: string[];
|
|
20
20
|
name: string;
|
|
21
|
+
off_chrt_executor_org_ids?: string[];
|
|
21
22
|
off_chrt_reference_id_str?: string | null;
|
|
22
23
|
off_chrt_shipper_org_id?: string | null;
|
|
23
24
|
schema_version: number;
|
|
@@ -19,6 +19,7 @@ export interface OrderTemplateClientUpdate1 {
|
|
|
19
19
|
driver_ids?: string[];
|
|
20
20
|
executor_org_ids?: string[];
|
|
21
21
|
name?: string | null;
|
|
22
|
+
off_chrt_executor_org_ids?: string[];
|
|
22
23
|
off_chrt_reference_id_str?: string | null;
|
|
23
24
|
off_chrt_reference_id_str__set_to_None?: boolean;
|
|
24
25
|
off_chrt_shipper_org_id?: string | null;
|
|
@@ -62,7 +62,7 @@ export declare class Orders {
|
|
|
62
62
|
cancelManyV1(request: Chrt.shipping.OrdersCancelManyReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
63
63
|
private __cancelManyV1;
|
|
64
64
|
/**
|
|
65
|
-
* Validates a draft order and stages all related entities in a transaction. | () -> (bool)
|
|
65
|
+
* Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
66
66
|
*
|
|
67
67
|
* @param {string} orderId
|
|
68
68
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -148,7 +148,7 @@ export class Orders {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
* Validates a draft order and stages all related entities in a transaction. | () -> (bool)
|
|
151
|
+
* Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
152
152
|
*
|
|
153
153
|
* @param {string} orderId
|
|
154
154
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -13,6 +13,9 @@ export interface OperationsTask1 {
|
|
|
13
13
|
department_id?: string | null;
|
|
14
14
|
description: string;
|
|
15
15
|
order_id: string;
|
|
16
|
+
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
17
|
+
order_off_chrt_reference_id?: string | null;
|
|
18
|
+
order_short_id: string;
|
|
16
19
|
/** Must be a string starting with `org_` */
|
|
17
20
|
org_id: string;
|
|
18
21
|
schema_version: number;
|
|
@@ -16,6 +16,7 @@ export interface OrderTemplate1 {
|
|
|
16
16
|
last_edited_at_timestamp: string;
|
|
17
17
|
last_used_at_timestamp?: string | null;
|
|
18
18
|
name: string;
|
|
19
|
+
off_chrt_executor_org_ids?: string[];
|
|
19
20
|
off_chrt_reference_id_str?: string | null;
|
|
20
21
|
off_chrt_shipper_org_id?: string | null;
|
|
21
22
|
/** Must be a string starting with `org_` */
|
|
@@ -14,6 +14,7 @@ export interface OrderTemplateCore1 {
|
|
|
14
14
|
directory_entry_ids?: string[];
|
|
15
15
|
driver_ids?: string[];
|
|
16
16
|
executor_org_ids?: string[];
|
|
17
|
+
off_chrt_executor_org_ids?: string[];
|
|
17
18
|
off_chrt_shipper_org_id?: string | null;
|
|
18
19
|
schema_version: number;
|
|
19
20
|
/** Must be a string starting with `org_` */
|
|
@@ -6,6 +6,7 @@ export interface OrderTemplateExpanded1 {
|
|
|
6
6
|
directory_entries?: Chrt.DirectoryEntry1[];
|
|
7
7
|
drivers?: Chrt.Driver1[];
|
|
8
8
|
executor_orgs?: Chrt.OrderTemplateOrgInfo1[];
|
|
9
|
+
off_chrt_executor_orgs?: Chrt.OffChrtProviderOrg1[];
|
|
9
10
|
off_chrt_shipper_org?: Chrt.OffChrtShipperOrg1 | null;
|
|
10
11
|
order_template: Chrt.OrderTemplate1;
|
|
11
12
|
orders?: Chrt.Order1[];
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type OrderTemplateReferenceColumnEnum1 = "shipper_org_id" | "off_chrt_shipper_org_id" | "executor_org_ids" | "driver_ids" | "directory_entry_ids";
|
|
4
|
+
export type OrderTemplateReferenceColumnEnum1 = "shipper_org_id" | "off_chrt_shipper_org_id" | "executor_org_ids" | "off_chrt_executor_org_ids" | "driver_ids" | "directory_entry_ids";
|
|
5
5
|
export declare const OrderTemplateReferenceColumnEnum1: {
|
|
6
6
|
readonly ShipperOrgId: "shipper_org_id";
|
|
7
7
|
readonly OffChrtShipperOrgId: "off_chrt_shipper_org_id";
|
|
8
8
|
readonly ExecutorOrgIds: "executor_org_ids";
|
|
9
|
+
readonly OffChrtExecutorOrgIds: "off_chrt_executor_org_ids";
|
|
9
10
|
readonly DriverIds: "driver_ids";
|
|
10
11
|
readonly DirectoryEntryIds: "directory_entry_ids";
|
|
11
12
|
};
|
|
@@ -5,6 +5,7 @@ export const OrderTemplateReferenceColumnEnum1 = {
|
|
|
5
5
|
ShipperOrgId: "shipper_org_id",
|
|
6
6
|
OffChrtShipperOrgId: "off_chrt_shipper_org_id",
|
|
7
7
|
ExecutorOrgIds: "executor_org_ids",
|
|
8
|
+
OffChrtExecutorOrgIds: "off_chrt_executor_org_ids",
|
|
8
9
|
DriverIds: "driver_ids",
|
|
9
10
|
DirectoryEntryIds: "directory_entry_ids",
|
|
10
11
|
};
|
|
@@ -5,6 +5,7 @@ export interface OrderTemplateResolvabilityRes {
|
|
|
5
5
|
unresolvable_coordinator?: boolean;
|
|
6
6
|
unresolvable_directory_entry_ids?: string[];
|
|
7
7
|
unresolvable_driver_ids?: string[];
|
|
8
|
+
unresolvable_off_chrt_executor_org_ids?: string[];
|
|
8
9
|
unresolvable_off_chrt_shipper?: boolean;
|
|
9
10
|
valid: boolean;
|
|
10
11
|
}
|
|
@@ -6,6 +6,7 @@ export interface ShippingTurnClientCreate1 {
|
|
|
6
6
|
directory_entry_ids?: string[];
|
|
7
7
|
driver_ids?: string[];
|
|
8
8
|
executor_org_ids?: string[];
|
|
9
|
+
off_chrt_executor_org_ids?: string[];
|
|
9
10
|
off_chrt_shipper_org_id?: string | null;
|
|
10
11
|
/** Must be a string starting with `org_` */
|
|
11
12
|
shipper_org_id?: string | null;
|
|
@@ -300,6 +300,7 @@ export * from "./OrderTemplateSortByEnum.mjs";
|
|
|
300
300
|
export * from "./OrderTypeaheadFieldEnum.mjs";
|
|
301
301
|
export * from "./OrderTypeaheadResult.mjs";
|
|
302
302
|
export * from "./OrderTypeaheadValue.mjs";
|
|
303
|
+
export * from "./OrdersDraftDeleteManyRes.mjs";
|
|
303
304
|
export * from "./OrdersDraftUpdateRes.mjs";
|
|
304
305
|
export * from "./OrdersExpandedListRes.mjs";
|
|
305
306
|
export * from "./OrdersNewDraftRes.mjs";
|
|
@@ -300,6 +300,7 @@ export * from "./OrderTemplateSortByEnum.mjs";
|
|
|
300
300
|
export * from "./OrderTypeaheadFieldEnum.mjs";
|
|
301
301
|
export * from "./OrderTypeaheadResult.mjs";
|
|
302
302
|
export * from "./OrderTypeaheadValue.mjs";
|
|
303
|
+
export * from "./OrdersDraftDeleteManyRes.mjs";
|
|
303
304
|
export * from "./OrdersDraftUpdateRes.mjs";
|
|
304
305
|
export * from "./OrdersExpandedListRes.mjs";
|
|
305
306
|
export * from "./OrdersNewDraftRes.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.853.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.853.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -14065,7 +14065,7 @@ await client.operations.operationsTasks.deleteCommentV1("task_id", "comment_id")
|
|
|
14065
14065
|
<dl>
|
|
14066
14066
|
<dd>
|
|
14067
14067
|
|
|
14068
|
-
Lists OperationsTasks for the caller's organization, with order ids / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
14068
|
+
Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
14069
14069
|
|
|
14070
14070
|
</dd>
|
|
14071
14071
|
</dl>
|
|
@@ -14086,6 +14086,8 @@ await client.operations.operationsTasks.listV1({
|
|
|
14086
14086
|
sort_order: "asc",
|
|
14087
14087
|
page: 1,
|
|
14088
14088
|
page_size: 1,
|
|
14089
|
+
filter_order_short_id: "filter_order_short_id",
|
|
14090
|
+
filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
14089
14091
|
filter_department_id: "filter_department_id",
|
|
14090
14092
|
filter_assigned_user_id: "filter_assigned_user_id",
|
|
14091
14093
|
filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
@@ -19204,7 +19206,7 @@ await client.shipping.flights.getFlightTrackForFlightLegV1("flight_leg_id");
|
|
|
19204
19206
|
<dl>
|
|
19205
19207
|
<dd>
|
|
19206
19208
|
|
|
19207
|
-
Deletes a draft order and all associated entities. | () -> (bool)
|
|
19209
|
+
Deletes a draft order and all associated entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
19208
19210
|
|
|
19209
19211
|
</dd>
|
|
19210
19212
|
</dl>
|
|
@@ -19255,7 +19257,7 @@ await client.shipping.orderDrafts.deleteV1("order_id");
|
|
|
19255
19257
|
</dl>
|
|
19256
19258
|
</details>
|
|
19257
19259
|
|
|
19258
|
-
<details><summary><code>client.shipping.orderDrafts.<a href="/src/api/resources/shipping/resources/orderDrafts/client/Client.ts">deleteManyV1</a>({ ...params }) ->
|
|
19260
|
+
<details><summary><code>client.shipping.orderDrafts.<a href="/src/api/resources/shipping/resources/orderDrafts/client/Client.ts">deleteManyV1</a>({ ...params }) -> Chrt.OrdersDraftDeleteManyRes</code></summary>
|
|
19259
19261
|
<dl>
|
|
19260
19262
|
<dd>
|
|
19261
19263
|
|
|
@@ -19267,7 +19269,7 @@ await client.shipping.orderDrafts.deleteV1("order_id");
|
|
|
19267
19269
|
<dl>
|
|
19268
19270
|
<dd>
|
|
19269
19271
|
|
|
19270
|
-
Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (
|
|
19272
|
+
Deletes multiple draft orders and associated entities, skipping drafts with billing links. | authz_personas=[draft_creator_org_operator] | (OrdersDraftDeleteManyReq) -> (OrdersDraftDeleteManyRes)
|
|
19271
19273
|
|
|
19272
19274
|
</dd>
|
|
19273
19275
|
</dl>
|
|
@@ -19397,7 +19399,7 @@ await client.shipping.orderDrafts.imageToTextV1({
|
|
|
19397
19399
|
<dl>
|
|
19398
19400
|
<dd>
|
|
19399
19401
|
|
|
19400
|
-
Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
19402
|
+
Creates a new draft order with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
19401
19403
|
|
|
19402
19404
|
</dd>
|
|
19403
19405
|
</dl>
|
|
@@ -19599,7 +19601,7 @@ await client.shipping.orderDrafts.typeaheadV1({
|
|
|
19599
19601
|
<dl>
|
|
19600
19602
|
<dd>
|
|
19601
19603
|
|
|
19602
|
-
Updates coordinator and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
19604
|
+
Updates coordinator and/or shipper org assignments for a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
19603
19605
|
|
|
19604
19606
|
</dd>
|
|
19605
19607
|
</dl>
|
|
@@ -21606,7 +21608,7 @@ await client.shipping.orders.cancelManyV1({
|
|
|
21606
21608
|
<dl>
|
|
21607
21609
|
<dd>
|
|
21608
21610
|
|
|
21609
|
-
Validates a draft order and stages all related entities in a transaction. | () -> (bool)
|
|
21611
|
+
Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
21610
21612
|
|
|
21611
21613
|
</dd>
|
|
21612
21614
|
</dl>
|