@chrt-inc/typescript-sdk 1.967.0 → 1.972.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/invoiceLineItems/client/Client.d.ts +20 -4
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +72 -7
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.d.ts +2 -2
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateManyReq.d.ts +18 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateManyReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/resources/export/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +59 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +5 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/task/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/task/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js +5 -5
- package/dist/cjs/api/types/DepartmentTypeEnum.d.ts +2 -1
- package/dist/cjs/api/types/DepartmentTypeEnum.js +1 -0
- package/dist/cjs/api/types/InvoiceExportListItem.d.ts +1 -1
- package/dist/cjs/api/types/InvoiceLineItem1.d.ts +1 -0
- package/dist/cjs/api/types/InvoiceLineItemCurrencyConversion1.d.ts +11 -0
- package/dist/cjs/api/types/InvoiceLineItemCurrencyConversion1.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemServerCreate1.d.ts +1 -0
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +2 -0
- package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateNewTask1.d.ts +1 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderExpanded1.d.ts +3 -1
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusTimestampProvenanceEnum1.d.ts +8 -0
- package/dist/cjs/api/types/{ShippingIntegrationOrderCompletedAtProvenanceEnum1.js → ShippingIntegrationOrderStatusTimestampProvenanceEnum1.js} +2 -2
- package/dist/cjs/api/types/Task1.d.ts +1 -0
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -0
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +2 -1
- package/dist/cjs/api/types/index.js +2 -1
- 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/invoiceLineItems/client/Client.d.mts +20 -4
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +72 -7
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemClientUpdate1.d.mts +2 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateManyReq.d.mts +18 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateManyReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +59 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +5 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/task/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/task/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs +5 -5
- package/dist/esm/api/types/DepartmentTypeEnum.d.mts +2 -1
- package/dist/esm/api/types/DepartmentTypeEnum.mjs +1 -0
- package/dist/esm/api/types/InvoiceExportListItem.d.mts +1 -1
- package/dist/esm/api/types/InvoiceLineItem1.d.mts +1 -0
- package/dist/esm/api/types/InvoiceLineItemCurrencyConversion1.d.mts +11 -0
- package/dist/esm/api/types/InvoiceLineItemCurrencyConversion1.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemServerCreate1.d.mts +1 -0
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +2 -0
- package/dist/esm/api/types/OrderExpandedForProvider.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateNewTask1.d.mts +1 -0
- package/dist/esm/api/types/ShippingIntegrationOrderExpanded1.d.mts +3 -1
- package/dist/esm/api/types/ShippingIntegrationOrderStatusTimestampProvenanceEnum1.d.mts +8 -0
- package/dist/esm/api/types/{ShippingIntegrationOrderCompletedAtProvenanceEnum1.mjs → ShippingIntegrationOrderStatusTimestampProvenanceEnum1.mjs} +1 -1
- package/dist/esm/api/types/Task1.d.mts +1 -0
- package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -0
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +2 -1
- package/dist/esm/api/types/index.mjs +2 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +141 -11
- package/dist/cjs/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.d.ts +0 -8
- package/dist/esm/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.d.mts +0 -8
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
export interface OrderExpandedForProvider {
|
|
6
|
+
coordinator_department?: Chrt.Department1 | null;
|
|
6
7
|
coordinator_org_company_name?: string | null;
|
|
7
8
|
/** Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters. */
|
|
8
9
|
coordinator_org_handle?: string | null;
|
|
@@ -8,6 +8,7 @@ export interface OrderTemplateNewTask1 {
|
|
|
8
8
|
contact_ids?: string[];
|
|
9
9
|
coordinator_shipper_account_ids?: string[];
|
|
10
10
|
datetime_windows_dateparser_str?: Chrt.OrderTemplateNewDateTimeWindow1[];
|
|
11
|
+
flight_leg_id?: string | null;
|
|
11
12
|
geofence_distance_miles?: number;
|
|
12
13
|
location?: Chrt.LocationFeature | null;
|
|
13
14
|
order_placer_comments?: string | null;
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
export interface ShippingIntegrationOrderExpanded1 {
|
|
6
6
|
_id: string;
|
|
7
|
-
completed_at_provenance?: Chrt.
|
|
7
|
+
completed_at_provenance?: Chrt.ShippingIntegrationOrderStatusTimestampProvenanceEnum1 | null;
|
|
8
8
|
completed_at_timestamp?: string | null;
|
|
9
9
|
destination?: Chrt.ShippingIntegrationOrderPlace1 | null;
|
|
10
10
|
first_mirrored_at_timestamp: string;
|
|
11
|
+
in_progress_at_provenance?: Chrt.ShippingIntegrationOrderStatusTimestampProvenanceEnum1 | null;
|
|
12
|
+
in_progress_at_timestamp?: string | null;
|
|
11
13
|
integration_order_id: string;
|
|
12
14
|
last_mirrored_at_timestamp: string;
|
|
13
15
|
ordered_at_timestamp?: string | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ShippingIntegrationOrderStatusTimestampProvenanceEnum1 = "reported" | "derived";
|
|
5
|
+
export declare const ShippingIntegrationOrderStatusTimestampProvenanceEnum1: {
|
|
6
|
+
readonly Reported: "reported";
|
|
7
|
+
readonly Derived: "derived";
|
|
8
|
+
};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.ShippingIntegrationOrderStatusTimestampProvenanceEnum1 = void 0;
|
|
7
|
+
exports.ShippingIntegrationOrderStatusTimestampProvenanceEnum1 = {
|
|
8
8
|
Reported: "reported",
|
|
9
9
|
Derived: "derived",
|
|
10
10
|
};
|
|
@@ -24,6 +24,7 @@ export interface Task1 {
|
|
|
24
24
|
draft_started_at_timestamp: string;
|
|
25
25
|
exception_at_timestamp?: string | null;
|
|
26
26
|
executor_org_notes?: Chrt.TaskExecutorOrgNote1[];
|
|
27
|
+
flight_leg_id?: string | null;
|
|
27
28
|
geofence_distance_miles?: number;
|
|
28
29
|
location?: Chrt.LocationFeature | null;
|
|
29
30
|
order_id: string;
|
|
@@ -7,6 +7,7 @@ export interface TaskClientCreate1 {
|
|
|
7
7
|
contact_ids?: string[];
|
|
8
8
|
coordinator_shipper_account_ids?: string[];
|
|
9
9
|
datetime_windows?: Chrt.DateTimeWindow1[];
|
|
10
|
+
flight_leg_id?: string | null;
|
|
10
11
|
geofence_distance_miles?: number;
|
|
11
12
|
location?: Chrt.LocationFeature | null;
|
|
12
13
|
order_placer_comments?: string | null;
|
|
@@ -10,6 +10,7 @@ export interface TaskGroupExpanded {
|
|
|
10
10
|
/** Must be a string starting with `org_` */
|
|
11
11
|
coordinator_org_id?: string | null;
|
|
12
12
|
driver?: Chrt.Driver1 | null;
|
|
13
|
+
executor_department?: Chrt.Department1 | null;
|
|
13
14
|
executor_org_company_name?: string | null;
|
|
14
15
|
/** Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters. */
|
|
15
16
|
executor_org_handle?: string | null;
|
|
@@ -262,6 +262,7 @@ export * from "./InvoiceLineItem1.js";
|
|
|
262
262
|
export * from "./InvoiceLineItemAmountTransformation1.js";
|
|
263
263
|
export * from "./InvoiceLineItemAmountTransformationTypeEnum1.js";
|
|
264
264
|
export * from "./InvoiceLineItemClientCreate1.js";
|
|
265
|
+
export * from "./InvoiceLineItemCurrencyConversion1.js";
|
|
265
266
|
export * from "./InvoiceLineItemExpandedListItem.js";
|
|
266
267
|
export * from "./InvoiceLineItemExpandedRes.js";
|
|
267
268
|
export * from "./InvoiceLineItemListRes.js";
|
|
@@ -476,7 +477,6 @@ export * from "./ShippingIntegrationConnection.js";
|
|
|
476
477
|
export * from "./ShippingIntegrationConnectionListRes.js";
|
|
477
478
|
export * from "./ShippingIntegrationIntegrationExecutor.js";
|
|
478
479
|
export * from "./ShippingIntegrationIntegrationExecutorListRes.js";
|
|
479
|
-
export * from "./ShippingIntegrationOrderCompletedAtProvenanceEnum1.js";
|
|
480
480
|
export * from "./ShippingIntegrationOrderExpanded1.js";
|
|
481
481
|
export * from "./ShippingIntegrationOrderListRes.js";
|
|
482
482
|
export * from "./ShippingIntegrationOrderPlace1.js";
|
|
@@ -487,6 +487,7 @@ export * from "./ShippingIntegrationOrderStatusChangedRes.js";
|
|
|
487
487
|
export * from "./ShippingIntegrationOrderStatusChangedWebhookPayload.js";
|
|
488
488
|
export * from "./ShippingIntegrationOrderStatusEnum1.js";
|
|
489
489
|
export * from "./ShippingIntegrationOrderStatusSummaryRes.js";
|
|
490
|
+
export * from "./ShippingIntegrationOrderStatusTimestampProvenanceEnum1.js";
|
|
490
491
|
export * from "./ShippingIntegrationOrderTypeaheadFieldEnum.js";
|
|
491
492
|
export * from "./ShippingIntegrationOrderTypeaheadResult.js";
|
|
492
493
|
export * from "./ShippingOrderCancelledWebhookPayload.js";
|
|
@@ -278,6 +278,7 @@ __exportStar(require("./InvoiceLineItem1.js"), exports);
|
|
|
278
278
|
__exportStar(require("./InvoiceLineItemAmountTransformation1.js"), exports);
|
|
279
279
|
__exportStar(require("./InvoiceLineItemAmountTransformationTypeEnum1.js"), exports);
|
|
280
280
|
__exportStar(require("./InvoiceLineItemClientCreate1.js"), exports);
|
|
281
|
+
__exportStar(require("./InvoiceLineItemCurrencyConversion1.js"), exports);
|
|
281
282
|
__exportStar(require("./InvoiceLineItemExpandedListItem.js"), exports);
|
|
282
283
|
__exportStar(require("./InvoiceLineItemExpandedRes.js"), exports);
|
|
283
284
|
__exportStar(require("./InvoiceLineItemListRes.js"), exports);
|
|
@@ -492,7 +493,6 @@ __exportStar(require("./ShippingIntegrationConnection.js"), exports);
|
|
|
492
493
|
__exportStar(require("./ShippingIntegrationConnectionListRes.js"), exports);
|
|
493
494
|
__exportStar(require("./ShippingIntegrationIntegrationExecutor.js"), exports);
|
|
494
495
|
__exportStar(require("./ShippingIntegrationIntegrationExecutorListRes.js"), exports);
|
|
495
|
-
__exportStar(require("./ShippingIntegrationOrderCompletedAtProvenanceEnum1.js"), exports);
|
|
496
496
|
__exportStar(require("./ShippingIntegrationOrderExpanded1.js"), exports);
|
|
497
497
|
__exportStar(require("./ShippingIntegrationOrderListRes.js"), exports);
|
|
498
498
|
__exportStar(require("./ShippingIntegrationOrderPlace1.js"), exports);
|
|
@@ -503,6 +503,7 @@ __exportStar(require("./ShippingIntegrationOrderStatusChangedRes.js"), exports);
|
|
|
503
503
|
__exportStar(require("./ShippingIntegrationOrderStatusChangedWebhookPayload.js"), exports);
|
|
504
504
|
__exportStar(require("./ShippingIntegrationOrderStatusEnum1.js"), exports);
|
|
505
505
|
__exportStar(require("./ShippingIntegrationOrderStatusSummaryRes.js"), exports);
|
|
506
|
+
__exportStar(require("./ShippingIntegrationOrderStatusTimestampProvenanceEnum1.js"), exports);
|
|
506
507
|
__exportStar(require("./ShippingIntegrationOrderTypeaheadFieldEnum.js"), exports);
|
|
507
508
|
__exportStar(require("./ShippingIntegrationOrderTypeaheadResult.js"), exports);
|
|
508
509
|
__exportStar(require("./ShippingOrderCancelledWebhookPayload.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.972.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.972.0",
|
|
28
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.972.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) });
|
|
@@ -285,7 +285,23 @@ export declare class InvoiceLineItems {
|
|
|
285
285
|
recalculateTaxesV1(request: Chrt.billingNew.RecalculateOrderTaxInvoiceLineItemsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItem1[]>;
|
|
286
286
|
private __recalculateTaxesV1;
|
|
287
287
|
/**
|
|
288
|
-
*
|
|
288
|
+
* Applies or reverts one currency conversion on line items from their original source values and moves attached items to the matching target-currency draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateManyReq) -> (list[InvoiceLineItem1])
|
|
289
|
+
*
|
|
290
|
+
* @param {Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateManyReq} request
|
|
291
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
292
|
+
*
|
|
293
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
294
|
+
*
|
|
295
|
+
* @example
|
|
296
|
+
* await client.billingNew.invoiceLineItems.updateCurrencyConversionManyV1({
|
|
297
|
+
* invoice_line_item_ids: ["invoice_line_item_ids"],
|
|
298
|
+
* target_currency_code: "USD"
|
|
299
|
+
* })
|
|
300
|
+
*/
|
|
301
|
+
updateCurrencyConversionManyV1(request: Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateManyReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItem1[]>;
|
|
302
|
+
private __updateCurrencyConversionManyV1;
|
|
303
|
+
/**
|
|
304
|
+
* Updates an owner-scoped line item's source fields, reapplies any existing currency conversion, and rebuilds its draft invoice when attached. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemClientUpdate1) -> (InvoiceLineItem1)
|
|
289
305
|
*
|
|
290
306
|
* @param {string} invoiceLineItemId
|
|
291
307
|
* @param {Chrt.billingNew.InvoiceLineItemClientUpdate1} request
|
|
@@ -294,9 +310,9 @@ export declare class InvoiceLineItems {
|
|
|
294
310
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
295
311
|
*
|
|
296
312
|
* @example
|
|
297
|
-
* await client.billingNew.invoiceLineItems.
|
|
313
|
+
* await client.billingNew.invoiceLineItems.updateSourceV1("invoice_line_item_id")
|
|
298
314
|
*/
|
|
299
|
-
|
|
300
|
-
private
|
|
315
|
+
updateSourceV1(invoiceLineItemId: string, request?: Chrt.billingNew.InvoiceLineItemClientUpdate1, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItem1>;
|
|
316
|
+
private __updateSourceV1;
|
|
301
317
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
302
318
|
}
|
|
@@ -953,7 +953,72 @@ export class InvoiceLineItems {
|
|
|
953
953
|
});
|
|
954
954
|
}
|
|
955
955
|
/**
|
|
956
|
-
*
|
|
956
|
+
* Applies or reverts one currency conversion on line items from their original source values and moves attached items to the matching target-currency draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateManyReq) -> (list[InvoiceLineItem1])
|
|
957
|
+
*
|
|
958
|
+
* @param {Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateManyReq} request
|
|
959
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
960
|
+
*
|
|
961
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
962
|
+
*
|
|
963
|
+
* @example
|
|
964
|
+
* await client.billingNew.invoiceLineItems.updateCurrencyConversionManyV1({
|
|
965
|
+
* invoice_line_item_ids: ["invoice_line_item_ids"],
|
|
966
|
+
* target_currency_code: "USD"
|
|
967
|
+
* })
|
|
968
|
+
*/
|
|
969
|
+
updateCurrencyConversionManyV1(request, requestOptions) {
|
|
970
|
+
return core.HttpResponsePromise.fromPromise(this.__updateCurrencyConversionManyV1(request, requestOptions));
|
|
971
|
+
}
|
|
972
|
+
__updateCurrencyConversionManyV1(request, requestOptions) {
|
|
973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
974
|
+
var _a, _b, _c, _d;
|
|
975
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
976
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
977
|
+
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, "billing_new/invoice_line_items/update_currency_conversion_many/v1"),
|
|
978
|
+
method: "PATCH",
|
|
979
|
+
headers: _headers,
|
|
980
|
+
contentType: "application/json",
|
|
981
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
982
|
+
requestType: "json",
|
|
983
|
+
body: request,
|
|
984
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
985
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
986
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
987
|
+
});
|
|
988
|
+
if (_response.ok) {
|
|
989
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
990
|
+
}
|
|
991
|
+
if (_response.error.reason === "status-code") {
|
|
992
|
+
switch (_response.error.statusCode) {
|
|
993
|
+
case 422:
|
|
994
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
995
|
+
default:
|
|
996
|
+
throw new errors.ChrtError({
|
|
997
|
+
statusCode: _response.error.statusCode,
|
|
998
|
+
body: _response.error.body,
|
|
999
|
+
rawResponse: _response.rawResponse,
|
|
1000
|
+
});
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
switch (_response.error.reason) {
|
|
1004
|
+
case "non-json":
|
|
1005
|
+
throw new errors.ChrtError({
|
|
1006
|
+
statusCode: _response.error.statusCode,
|
|
1007
|
+
body: _response.error.rawBody,
|
|
1008
|
+
rawResponse: _response.rawResponse,
|
|
1009
|
+
});
|
|
1010
|
+
case "timeout":
|
|
1011
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing_new/invoice_line_items/update_currency_conversion_many/v1.");
|
|
1012
|
+
case "unknown":
|
|
1013
|
+
throw new errors.ChrtError({
|
|
1014
|
+
message: _response.error.errorMessage,
|
|
1015
|
+
rawResponse: _response.rawResponse,
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* Updates an owner-scoped line item's source fields, reapplies any existing currency conversion, and rebuilds its draft invoice when attached. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemClientUpdate1) -> (InvoiceLineItem1)
|
|
957
1022
|
*
|
|
958
1023
|
* @param {string} invoiceLineItemId
|
|
959
1024
|
* @param {Chrt.billingNew.InvoiceLineItemClientUpdate1} request
|
|
@@ -962,17 +1027,17 @@ export class InvoiceLineItems {
|
|
|
962
1027
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
963
1028
|
*
|
|
964
1029
|
* @example
|
|
965
|
-
* await client.billingNew.invoiceLineItems.
|
|
1030
|
+
* await client.billingNew.invoiceLineItems.updateSourceV1("invoice_line_item_id")
|
|
966
1031
|
*/
|
|
967
|
-
|
|
968
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1032
|
+
updateSourceV1(invoiceLineItemId, request = {}, requestOptions) {
|
|
1033
|
+
return core.HttpResponsePromise.fromPromise(this.__updateSourceV1(invoiceLineItemId, request, requestOptions));
|
|
969
1034
|
}
|
|
970
|
-
|
|
1035
|
+
__updateSourceV1(invoiceLineItemId_1) {
|
|
971
1036
|
return __awaiter(this, arguments, void 0, function* (invoiceLineItemId, request = {}, requestOptions) {
|
|
972
1037
|
var _a, _b, _c, _d;
|
|
973
1038
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
974
1039
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
975
|
-
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, `billing_new/invoice_line_items/
|
|
1040
|
+
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, `billing_new/invoice_line_items/update_source/v1/${encodeURIComponent(invoiceLineItemId)}`),
|
|
976
1041
|
method: "PATCH",
|
|
977
1042
|
headers: _headers,
|
|
978
1043
|
contentType: "application/json",
|
|
@@ -1006,7 +1071,7 @@ export class InvoiceLineItems {
|
|
|
1006
1071
|
rawResponse: _response.rawResponse,
|
|
1007
1072
|
});
|
|
1008
1073
|
case "timeout":
|
|
1009
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing_new/invoice_line_items/
|
|
1074
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing_new/invoice_line_items/update_source/v1/{invoice_line_item_id}.");
|
|
1010
1075
|
case "unknown":
|
|
1011
1076
|
throw new errors.ChrtError({
|
|
1012
1077
|
message: _response.error.errorMessage,
|
|
@@ -7,13 +7,13 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface InvoiceLineItemClientUpdate1 {
|
|
10
|
-
currency_code?: Chrt.BillingCurrencyCodeEnum1 | null;
|
|
11
10
|
description?: string | null;
|
|
12
11
|
export_ref__sage__item_id?: string | null;
|
|
13
12
|
export_ref__sage__item_id__set_to_None?: boolean;
|
|
14
13
|
invoice_type?: Chrt.InvoiceTypeEnum1 | null;
|
|
15
14
|
quantity?: number | null;
|
|
15
|
+
source_currency_code?: Chrt.BillingCurrencyCodeEnum1 | null;
|
|
16
|
+
source_unit_price?: number | null;
|
|
16
17
|
unit?: Chrt.InvoiceLineItemUnitEnum1 | null;
|
|
17
18
|
unit__set_to_None?: boolean;
|
|
18
|
-
unit_price?: number | null;
|
|
19
19
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* invoice_line_item_ids: ["invoice_line_item_ids"],
|
|
9
|
+
* target_currency_code: "USD"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface InvoiceLineItemsCurrencyConversionUpdateManyReq {
|
|
13
|
+
/** Units of target_currency_code per one unit of the line items' original source currency -- their currency_conversion.source_currency_code if already converted, otherwise their current currency_code. Always relative to that original source, never to an intermediate converted currency, so conversions never compound. Omitted when target_currency_code is the original source currency, which reverts the conversion. */
|
|
14
|
+
conversion_rate?: number | null;
|
|
15
|
+
description?: string | null;
|
|
16
|
+
invoice_line_item_ids: string[];
|
|
17
|
+
target_currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
18
|
+
}
|
package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts
CHANGED
|
@@ -5,4 +5,5 @@ export { type CreateInvoiceLineItemsFromLineItemsReq } from "./CreateInvoiceLine
|
|
|
5
5
|
export { type InvoiceLineItemsDeleteManyReq } from "./InvoiceLineItemsDeleteManyReq.mjs";
|
|
6
6
|
export { type InvoiceLineItemsListV1Request } from "./InvoiceLineItemsListV1Request.mjs";
|
|
7
7
|
export { type RecalculateOrderTaxInvoiceLineItemsReq } from "./RecalculateOrderTaxInvoiceLineItemsReq.mjs";
|
|
8
|
+
export { type InvoiceLineItemsCurrencyConversionUpdateManyReq } from "./InvoiceLineItemsCurrencyConversionUpdateManyReq.mjs";
|
|
8
9
|
export { type InvoiceLineItemClientUpdate1 } from "./InvoiceLineItemClientUpdate1.mjs";
|
package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.d.mts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Export {
|
|
|
31
31
|
protected readonly _options: Export.Options;
|
|
32
32
|
constructor(_options?: Export.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists up to 1,000 shipment-level export rows for one
|
|
34
|
+
* Lists up to 1,000 shipment-level export rows for one accounts-receivable invoice owned by the caller's organization, regardless of invoice status. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExportListRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} invoiceId
|
|
37
37
|
* @param {Chrt.billingNew.invoices.ExportListV1Request} request
|
package/dist/esm/api/resources/billingNew/resources/invoices/resources/export/client/Client.mjs
CHANGED
|
@@ -20,7 +20,7 @@ export class Export {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Lists up to 1,000 shipment-level export rows for one
|
|
23
|
+
* Lists up to 1,000 shipment-level export rows for one accounts-receivable invoice owned by the caller's organization, regardless of invoice status. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExportListRes)
|
|
24
24
|
*
|
|
25
25
|
* @param {string} invoiceId
|
|
26
26
|
* @param {Chrt.billingNew.invoices.ExportListV1Request} request
|
|
@@ -12,6 +12,7 @@ export interface OrderTemplateNewTaskClientCreate1 {
|
|
|
12
12
|
contact_ids?: string[];
|
|
13
13
|
coordinator_shipper_account_ids?: string[];
|
|
14
14
|
datetime_windows_dateparser_str?: Chrt.OrderTemplateNewDateTimeWindow1[];
|
|
15
|
+
flight_leg_id?: string | null;
|
|
15
16
|
geofence_distance_miles?: number;
|
|
16
17
|
location?: Chrt.LocationFeature | null;
|
|
17
18
|
order_placer_comments?: string | null;
|
|
@@ -248,6 +248,19 @@ export declare class Orders {
|
|
|
248
248
|
*/
|
|
249
249
|
unassignV1(orderId: string, request: Chrt.shipping.OrdersUnassignReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
250
250
|
private __unassignV1;
|
|
251
|
+
/**
|
|
252
|
+
* Reopens a cancelled order, restaging every cancelled task group, task, task artifact, operations task, and cargo on it regardless of when each was cancelled, then re-deriving order, cargo, and driver status from the surviving work. | authz_personas=[task_group_operating_org_operators] | () -> (bool)
|
|
253
|
+
*
|
|
254
|
+
* @param {string} orderId
|
|
255
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
256
|
+
*
|
|
257
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* await client.shipping.orders.undoCancelV1("order_id")
|
|
261
|
+
*/
|
|
262
|
+
undoCancelV1(orderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
263
|
+
private __undoCancelV1;
|
|
251
264
|
/**
|
|
252
265
|
* Updates department_id for the caller's role on the order. Coordinator writes coordinator_department_id; executor writes executor_department_id on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateDepartmentReq) -> (bool)
|
|
253
266
|
*
|
|
@@ -886,6 +886,65 @@ export class Orders {
|
|
|
886
886
|
}
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
|
+
/**
|
|
890
|
+
* Reopens a cancelled order, restaging every cancelled task group, task, task artifact, operations task, and cargo on it regardless of when each was cancelled, then re-deriving order, cargo, and driver status from the surviving work. | authz_personas=[task_group_operating_org_operators] | () -> (bool)
|
|
891
|
+
*
|
|
892
|
+
* @param {string} orderId
|
|
893
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
894
|
+
*
|
|
895
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
896
|
+
*
|
|
897
|
+
* @example
|
|
898
|
+
* await client.shipping.orders.undoCancelV1("order_id")
|
|
899
|
+
*/
|
|
900
|
+
undoCancelV1(orderId, requestOptions) {
|
|
901
|
+
return core.HttpResponsePromise.fromPromise(this.__undoCancelV1(orderId, requestOptions));
|
|
902
|
+
}
|
|
903
|
+
__undoCancelV1(orderId, requestOptions) {
|
|
904
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
905
|
+
var _a, _b, _c, _d;
|
|
906
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
907
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
908
|
+
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/undo_cancel/v1/${encodeURIComponent(orderId)}`),
|
|
909
|
+
method: "PUT",
|
|
910
|
+
headers: _headers,
|
|
911
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
912
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
913
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
914
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
915
|
+
});
|
|
916
|
+
if (_response.ok) {
|
|
917
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
918
|
+
}
|
|
919
|
+
if (_response.error.reason === "status-code") {
|
|
920
|
+
switch (_response.error.statusCode) {
|
|
921
|
+
case 422:
|
|
922
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
923
|
+
default:
|
|
924
|
+
throw new errors.ChrtError({
|
|
925
|
+
statusCode: _response.error.statusCode,
|
|
926
|
+
body: _response.error.body,
|
|
927
|
+
rawResponse: _response.rawResponse,
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
switch (_response.error.reason) {
|
|
932
|
+
case "non-json":
|
|
933
|
+
throw new errors.ChrtError({
|
|
934
|
+
statusCode: _response.error.statusCode,
|
|
935
|
+
body: _response.error.rawBody,
|
|
936
|
+
rawResponse: _response.rawResponse,
|
|
937
|
+
});
|
|
938
|
+
case "timeout":
|
|
939
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/orders/undo_cancel/v1/{order_id}.");
|
|
940
|
+
case "unknown":
|
|
941
|
+
throw new errors.ChrtError({
|
|
942
|
+
message: _response.error.errorMessage,
|
|
943
|
+
rawResponse: _response.rawResponse,
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
}
|
|
889
948
|
/**
|
|
890
949
|
* Updates department_id for the caller's role on the order. Coordinator writes coordinator_department_id; executor writes executor_department_id on matching task_group_details rows. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrdersUpdateDepartmentReq) -> (bool)
|
|
891
950
|
*
|
package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts
CHANGED
|
@@ -67,7 +67,7 @@ export declare class Cargo {
|
|
|
67
67
|
associateWithTaskV1(request: Chrt.shipping.orders.OrdersAssociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
68
68
|
private __associateWithTaskV1;
|
|
69
69
|
/**
|
|
70
|
-
* Deletes
|
|
70
|
+
* Deletes cargo in any lifecycle state, removes task associations, and resynchronizes the order AWB cache. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)
|
|
71
71
|
*
|
|
72
72
|
* @param {string} cargoId
|
|
73
73
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -154,7 +154,7 @@ export class Cargo {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
|
-
* Deletes
|
|
157
|
+
* Deletes cargo in any lifecycle state, removes task associations, and resynchronizes the order AWB cache. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | () -> (bool)
|
|
158
158
|
*
|
|
159
159
|
* @param {string} cargoId
|
|
160
160
|
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts
CHANGED
|
@@ -92,6 +92,7 @@ export declare class Expanded {
|
|
|
92
92
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
93
93
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
94
94
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
95
|
+
* filter_executor_department_id: "filter_executor_department_id",
|
|
95
96
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
96
97
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
97
98
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs
CHANGED
|
@@ -179,6 +179,7 @@ export class Expanded {
|
|
|
179
179
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
180
180
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
181
181
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
182
|
+
* filter_executor_department_id: "filter_executor_department_id",
|
|
182
183
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
183
184
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
184
185
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -196,7 +197,7 @@ export class Expanded {
|
|
|
196
197
|
__listForProviderOperatorsV1(request, requestOptions) {
|
|
197
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
199
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
199
|
-
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_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_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
|
|
200
|
+
const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_executor_department_id: filterExecutorDepartmentId, 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_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
|
|
200
201
|
const _queryParams = {};
|
|
201
202
|
if (providerRole !== undefined) {
|
|
202
203
|
_queryParams["provider_role"] = providerRole;
|
|
@@ -287,6 +288,9 @@ export class Expanded {
|
|
|
287
288
|
if (filterExecutorOrgId !== undefined) {
|
|
288
289
|
_queryParams["filter_executor_org_id"] = filterExecutorOrgId;
|
|
289
290
|
}
|
|
291
|
+
if (filterExecutorDepartmentId !== undefined) {
|
|
292
|
+
_queryParams["filter_executor_department_id"] = filterExecutorDepartmentId;
|
|
293
|
+
}
|
|
290
294
|
if (filterOffChrtExecutorOrgDataId !== undefined) {
|
|
291
295
|
_queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
|
|
292
296
|
}
|
|
@@ -29,6 +29,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
29
29
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
30
30
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
31
31
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
32
|
+
* filter_executor_department_id: "filter_executor_department_id",
|
|
32
33
|
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
33
34
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
34
35
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
@@ -71,6 +72,8 @@ export interface ExpandedListForProviderOperatorsV1Request {
|
|
|
71
72
|
filter_exception_at_timestamp_lte?: string | null;
|
|
72
73
|
filter_exception_at_timestamp_gte?: string | null;
|
|
73
74
|
filter_executor_org_id?: string | null;
|
|
75
|
+
/** Filter by executor department ID */
|
|
76
|
+
filter_executor_department_id?: string | null;
|
|
74
77
|
/** Filter by off-CHRT executor org data ID */
|
|
75
78
|
filter_off_chrt_executor_org_data_id?: string | null;
|
|
76
79
|
filter_coordinator_org_id?: string | null;
|
|
@@ -49,7 +49,7 @@ export declare class Task {
|
|
|
49
49
|
addV1(request: Chrt.shipping.orders.OrdersAddTaskReq, requestOptions?: Task.RequestOptions): core.HttpResponsePromise<string>;
|
|
50
50
|
private __addV1;
|
|
51
51
|
/**
|
|
52
|
-
* Deletes a task
|
|
52
|
+
* Deletes a task in any lifecycle state and synchronizes affected shipping state. | () -> (bool)
|
|
53
53
|
*
|
|
54
54
|
* @param {string} taskId
|
|
55
55
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -87,7 +87,7 @@ export class Task {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Deletes a task
|
|
90
|
+
* Deletes a task in any lifecycle state and synchronizes affected shipping state. | () -> (bool)
|
|
91
91
|
*
|
|
92
92
|
* @param {string} taskId
|
|
93
93
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|