@chrt-inc/typescript-sdk 1.899.0 → 1.906.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/client/Client.d.ts +6 -3
- package/dist/cjs/api/resources/billingNew/client/Client.js +12 -7
- package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.d.ts +43 -55
- package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.js +91 -133
- package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +11 -3
- package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.d.ts +10 -0
- package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.d.ts → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts} +8 -4
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/billingNew/resources/index.d.ts +4 -2
- package/dist/cjs/api/resources/billingNew/resources/index.js +5 -3
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +109 -8
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +363 -14
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +1 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +70 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +248 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +70 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +9 -1
- package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +9 -1
- 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/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +0 -28
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +0 -120
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +36 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.js +9 -1
- package/dist/cjs/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +15 -1
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +64 -1
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.d.ts +11 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/AdHocInvoiceLineItem1.d.ts +8 -0
- package/dist/cjs/api/types/AdHocInvoiceLineItem1.js +5 -0
- package/dist/cjs/api/types/AdHocInvoiceLineItemsReq.d.ts +8 -0
- package/dist/cjs/api/types/AdHocInvoiceLineItemsReq.js +5 -0
- package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +10 -3
- package/dist/cjs/api/types/FromPayables1.d.ts +9 -0
- package/dist/cjs/api/types/FromPayables1.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItem1.d.ts +4 -1
- package/dist/cjs/api/types/InvoiceLineItemClientCreate1.d.ts +20 -0
- package/dist/cjs/api/types/InvoiceLineItemClientCreate1.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemServerCreate1.d.ts +33 -0
- package/dist/cjs/api/types/InvoiceLineItemServerCreate1.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemStatusEnum1.d.ts +9 -0
- package/dist/cjs/api/types/InvoiceLineItemStatusEnum1.js +11 -0
- package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.d.ts +4 -1
- package/dist/cjs/api/types/InvoiceLineItemTypeEnum1.js +3 -0
- package/dist/cjs/api/types/InvoiceLineItemsByOrderExpandedRes.d.ts +1 -1
- package/dist/cjs/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.d.ts +7 -0
- package/dist/cjs/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.js +5 -0
- package/dist/cjs/api/types/Order1.d.ts +1 -0
- package/dist/cjs/api/types/OrderBillingAccount1.d.ts +7 -0
- package/dist/cjs/api/types/OrderBillingAccount1.js +5 -0
- package/dist/cjs/api/types/OrderBillingCurrencyTotals1.d.ts +9 -0
- package/dist/cjs/api/types/OrderBillingCurrencyTotals1.js +5 -0
- package/dist/cjs/api/types/OrderBillingExecutor1.d.ts +11 -0
- package/dist/cjs/api/types/OrderBillingExecutor1.js +5 -0
- package/dist/cjs/api/types/OrderBillingExpandedListItem1.d.ts +19 -0
- package/dist/cjs/api/types/OrderBillingExpandedListItem1.js +5 -0
- package/dist/cjs/api/types/OrderBillingExpandedListRes.d.ts +8 -0
- package/dist/cjs/api/types/OrderBillingExpandedListRes.js +5 -0
- package/dist/cjs/api/types/OrderBillingShipper1.d.ts +9 -0
- package/dist/cjs/api/types/OrderBillingShipper1.js +5 -0
- package/dist/cjs/api/types/OrderBillingSortByEnum.d.ts +12 -0
- package/dist/cjs/api/types/OrderBillingSortByEnum.js +14 -0
- package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +1 -0
- package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +1 -0
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -0
- package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +1 -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/OrdersDraftUpdateRes.d.ts +2 -0
- package/dist/cjs/api/types/ResolvedTaskGroupChrtGroundProviderRates1.d.ts +9 -0
- package/dist/cjs/api/types/ResolvedTaskGroupChrtGroundProviderRates1.js +5 -0
- package/dist/cjs/api/types/ServiceLineEnum.d.ts +8 -0
- package/dist/cjs/api/types/ServiceLineEnum.js +10 -0
- 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/TaskClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +0 -2
- package/dist/cjs/api/types/TaskGroupChrtGroundProviderRateSheetIds1.d.ts +7 -0
- package/dist/cjs/api/types/TaskGroupChrtGroundProviderRateSheetIds1.js +5 -0
- package/dist/cjs/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.d.ts +9 -0
- package/dist/cjs/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.js +5 -0
- package/dist/cjs/api/types/TaxRate1.d.ts +9 -0
- package/dist/cjs/api/types/TaxRate1.js +5 -0
- package/dist/cjs/api/types/index.d.ts +19 -1
- package/dist/cjs/api/types/index.js +19 -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/client/Client.d.mts +6 -3
- package/dist/esm/api/resources/billingNew/client/Client.mjs +8 -3
- package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.d.mts +43 -55
- package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/Client.mjs +89 -131
- package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +11 -3
- package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.d.mts +10 -0
- package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.d.mts → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts} +8 -4
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/billingNew/resources/index.d.mts +4 -2
- package/dist/esm/api/resources/billingNew/resources/index.mjs +4 -2
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +109 -8
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +363 -14
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/CreateInvoiceLineItemsFromAmountReq.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +1 -1
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +70 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +211 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +70 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +9 -1
- package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +9 -1
- 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/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +0 -28
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +0 -120
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/task/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +36 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/Client.mjs +9 -1
- package/dist/esm/api/resources/shipping/resources/ordersAndOrderGroups/client/requests/OrdersAndOrderGroupsUngroupedOrdersListV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +15 -1
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +64 -1
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.d.mts +11 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskLocationFromReferenceReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/AdHocInvoiceLineItem1.d.mts +8 -0
- package/dist/esm/api/types/AdHocInvoiceLineItem1.mjs +4 -0
- package/dist/esm/api/types/AdHocInvoiceLineItemsReq.d.mts +8 -0
- package/dist/esm/api/types/AdHocInvoiceLineItemsReq.mjs +4 -0
- package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +10 -3
- package/dist/esm/api/types/FromPayables1.d.mts +9 -0
- package/dist/esm/api/types/FromPayables1.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItem1.d.mts +4 -1
- package/dist/esm/api/types/InvoiceLineItemClientCreate1.d.mts +20 -0
- package/dist/esm/api/types/InvoiceLineItemClientCreate1.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemServerCreate1.d.mts +33 -0
- package/dist/esm/api/types/InvoiceLineItemServerCreate1.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemStatusEnum1.d.mts +9 -0
- package/dist/esm/api/types/InvoiceLineItemStatusEnum1.mjs +8 -0
- package/dist/esm/api/types/InvoiceLineItemTypeEnum1.d.mts +4 -1
- package/dist/esm/api/types/InvoiceLineItemTypeEnum1.mjs +3 -0
- package/dist/esm/api/types/InvoiceLineItemsByOrderExpandedRes.d.mts +1 -1
- package/dist/esm/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.d.mts +7 -0
- package/dist/esm/api/types/InvoiceLineItemsFromChrtGroundProviderRateSheetsReq.mjs +4 -0
- package/dist/esm/api/types/Order1.d.mts +1 -0
- package/dist/esm/api/types/OrderBillingAccount1.d.mts +7 -0
- package/dist/esm/api/types/OrderBillingAccount1.mjs +4 -0
- package/dist/esm/api/types/OrderBillingCurrencyTotals1.d.mts +9 -0
- package/dist/esm/api/types/OrderBillingCurrencyTotals1.mjs +4 -0
- package/dist/esm/api/types/OrderBillingExecutor1.d.mts +11 -0
- package/dist/esm/api/types/OrderBillingExecutor1.mjs +4 -0
- package/dist/esm/api/types/OrderBillingExpandedListItem1.d.mts +19 -0
- package/dist/esm/api/types/OrderBillingExpandedListItem1.mjs +4 -0
- package/dist/esm/api/types/OrderBillingExpandedListRes.d.mts +8 -0
- package/dist/esm/api/types/OrderBillingExpandedListRes.mjs +4 -0
- package/dist/esm/api/types/OrderBillingShipper1.d.mts +9 -0
- package/dist/esm/api/types/OrderBillingShipper1.mjs +4 -0
- package/dist/esm/api/types/OrderBillingSortByEnum.d.mts +12 -0
- package/dist/esm/api/types/OrderBillingSortByEnum.mjs +11 -0
- package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +1 -0
- package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +1 -0
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -0
- package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +1 -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/OrdersDraftUpdateRes.d.mts +2 -0
- package/dist/esm/api/types/ResolvedTaskGroupChrtGroundProviderRates1.d.mts +9 -0
- package/dist/esm/api/types/ResolvedTaskGroupChrtGroundProviderRates1.mjs +4 -0
- package/dist/esm/api/types/ServiceLineEnum.d.mts +8 -0
- package/dist/esm/api/types/ServiceLineEnum.mjs +7 -0
- 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/TaskClientUpdate1.d.mts +1 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +0 -2
- package/dist/esm/api/types/TaskGroupChrtGroundProviderRateSheetIds1.d.mts +7 -0
- package/dist/esm/api/types/TaskGroupChrtGroundProviderRateSheetIds1.mjs +4 -0
- package/dist/esm/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.d.mts +9 -0
- package/dist/esm/api/types/TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1.mjs +4 -0
- package/dist/esm/api/types/TaxRate1.d.mts +9 -0
- package/dist/esm/api/types/TaxRate1.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +19 -1
- package/dist/esm/api/types/index.mjs +19 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +687 -387
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.ts +0 -22
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.ts +0 -13
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.ts +0 -13
- package/dist/cjs/api/resources/billingNew/resources/rates/client/requests/index.d.ts +0 -5
- package/dist/cjs/api/types/ApplyChrtGroundProviderRatesRes.d.ts +0 -7
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.d.mts +0 -22
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.d.mts +0 -13
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.d.mts +0 -13
- package/dist/esm/api/resources/billingNew/resources/rates/client/requests/index.d.mts +0 -5
- package/dist/esm/api/types/ApplyChrtGroundProviderRatesRes.d.mts +0 -7
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.js → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.js → chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.js +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.js → invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.js} +0 -0
- /package/dist/cjs/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.js → invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.js} +0 -0
- /package/dist/cjs/api/{types/ApplyChrtGroundProviderRatesRes.js → resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.js} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientCreate1.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/ChrtGroundProviderRatesClientUpdate1.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/ApplyChrtGroundProviderRatesReq.mjs → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesAddCounterpartiesReq.mjs → chrtGroundProviderRates/client/requests/ResolveChrtGroundProviderRatesReq.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.d.mts +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates → chrtGroundProviderRates}/index.mjs +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/ChrtGroundProviderRatesRemoveCounterpartiesReq.mjs → invoiceLineItems/client/requests/InvoiceLineItemsApproveManyReq.mjs} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{rates/client/requests/RatesListV1Request.mjs → invoiceLineItems/client/requests/RecalculateOrderTaxInvoiceLineItemsReq.mjs} +0 -0
- /package/dist/esm/api/{types/ApplyChrtGroundProviderRatesRes.mjs → resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.mjs} +0 -0
|
@@ -217,126 +217,6 @@ export class Orders {
|
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
/**
|
|
221
|
-
* Adds a coordinator-owned account for the order's shipper. | authz_personas=[coordinator_org_operators] | () -> (bool)
|
|
222
|
-
*
|
|
223
|
-
* @param {string} orderId
|
|
224
|
-
* @param {string} coordinatorShipperAccountId
|
|
225
|
-
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
226
|
-
*
|
|
227
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
228
|
-
*
|
|
229
|
-
* @example
|
|
230
|
-
* await client.shipping.orders.addCoordinatorShipperAccountIdV1("order_id", "coordinator_shipper_account_id")
|
|
231
|
-
*/
|
|
232
|
-
addCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions) {
|
|
233
|
-
return core.HttpResponsePromise.fromPromise(this.__addCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions));
|
|
234
|
-
}
|
|
235
|
-
__addCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions) {
|
|
236
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
-
var _a, _b, _c, _d;
|
|
238
|
-
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);
|
|
239
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
240
|
-
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/coordinator_shipper_account_ids/add/v1/${encodeURIComponent(orderId)}/${encodeURIComponent(coordinatorShipperAccountId)}`),
|
|
241
|
-
method: "POST",
|
|
242
|
-
headers: _headers,
|
|
243
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
244
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
245
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
246
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
247
|
-
});
|
|
248
|
-
if (_response.ok) {
|
|
249
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
250
|
-
}
|
|
251
|
-
if (_response.error.reason === "status-code") {
|
|
252
|
-
switch (_response.error.statusCode) {
|
|
253
|
-
case 422:
|
|
254
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
255
|
-
default:
|
|
256
|
-
throw new errors.ChrtError({
|
|
257
|
-
statusCode: _response.error.statusCode,
|
|
258
|
-
body: _response.error.body,
|
|
259
|
-
rawResponse: _response.rawResponse,
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
switch (_response.error.reason) {
|
|
264
|
-
case "non-json":
|
|
265
|
-
throw new errors.ChrtError({
|
|
266
|
-
statusCode: _response.error.statusCode,
|
|
267
|
-
body: _response.error.rawBody,
|
|
268
|
-
rawResponse: _response.rawResponse,
|
|
269
|
-
});
|
|
270
|
-
case "timeout":
|
|
271
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/orders/coordinator_shipper_account_ids/add/v1/{order_id}/{coordinator_shipper_account_id}.");
|
|
272
|
-
case "unknown":
|
|
273
|
-
throw new errors.ChrtError({
|
|
274
|
-
message: _response.error.errorMessage,
|
|
275
|
-
rawResponse: _response.rawResponse,
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Removes a coordinator-owned account for the order's shipper. | authz_personas=[coordinator_org_operators] | () -> (bool)
|
|
282
|
-
*
|
|
283
|
-
* @param {string} orderId
|
|
284
|
-
* @param {string} coordinatorShipperAccountId
|
|
285
|
-
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
286
|
-
*
|
|
287
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
288
|
-
*
|
|
289
|
-
* @example
|
|
290
|
-
* await client.shipping.orders.removeCoordinatorShipperAccountIdV1("order_id", "coordinator_shipper_account_id")
|
|
291
|
-
*/
|
|
292
|
-
removeCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions) {
|
|
293
|
-
return core.HttpResponsePromise.fromPromise(this.__removeCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions));
|
|
294
|
-
}
|
|
295
|
-
__removeCoordinatorShipperAccountIdV1(orderId, coordinatorShipperAccountId, requestOptions) {
|
|
296
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
-
var _a, _b, _c, _d;
|
|
298
|
-
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);
|
|
299
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
300
|
-
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/coordinator_shipper_account_ids/remove/v1/${encodeURIComponent(orderId)}/${encodeURIComponent(coordinatorShipperAccountId)}`),
|
|
301
|
-
method: "POST",
|
|
302
|
-
headers: _headers,
|
|
303
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
304
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
305
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
306
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
307
|
-
});
|
|
308
|
-
if (_response.ok) {
|
|
309
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
310
|
-
}
|
|
311
|
-
if (_response.error.reason === "status-code") {
|
|
312
|
-
switch (_response.error.statusCode) {
|
|
313
|
-
case 422:
|
|
314
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
315
|
-
default:
|
|
316
|
-
throw new errors.ChrtError({
|
|
317
|
-
statusCode: _response.error.statusCode,
|
|
318
|
-
body: _response.error.body,
|
|
319
|
-
rawResponse: _response.rawResponse,
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
switch (_response.error.reason) {
|
|
324
|
-
case "non-json":
|
|
325
|
-
throw new errors.ChrtError({
|
|
326
|
-
statusCode: _response.error.statusCode,
|
|
327
|
-
body: _response.error.rawBody,
|
|
328
|
-
rawResponse: _response.rawResponse,
|
|
329
|
-
});
|
|
330
|
-
case "timeout":
|
|
331
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/orders/coordinator_shipper_account_ids/remove/v1/{order_id}/{coordinator_shipper_account_id}.");
|
|
332
|
-
case "unknown":
|
|
333
|
-
throw new errors.ChrtError({
|
|
334
|
-
message: _response.error.errorMessage,
|
|
335
|
-
rawResponse: _response.rawResponse,
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
220
|
/**
|
|
341
221
|
* Validates a draft order and stages all related entities in a transaction. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
342
222
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../../../index.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
@@ -14,6 +15,7 @@ export interface OrdersDraftUpdateReq {
|
|
|
14
15
|
off_chrt_reference_id__set_to_None?: boolean;
|
|
15
16
|
off_chrt_shipper_org_data_id?: string | null;
|
|
16
17
|
off_chrt_shipper_org_data_id__set_to_None?: boolean;
|
|
18
|
+
service_line?: Chrt.ServiceLineEnum | null;
|
|
17
19
|
/** Must be a string starting with `org_` */
|
|
18
20
|
shipper_org_id?: string | null;
|
|
19
21
|
shipper_org_id__set_to_None?: boolean;
|
|
@@ -9,7 +9,6 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
9
9
|
export interface OrdersOpenDraftReq {
|
|
10
10
|
/** Must be a string starting with `org_` */
|
|
11
11
|
coordinator_org_id?: string | null;
|
|
12
|
-
coordinator_shipper_account_ids?: string[];
|
|
13
12
|
/** Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate. */
|
|
14
13
|
creation_idempotency_key?: string | null;
|
|
15
14
|
department_id?: string | null;
|
|
@@ -23,6 +22,7 @@ export interface OrdersOpenDraftReq {
|
|
|
23
22
|
order_schedule_run_idempotency_key?: string | null;
|
|
24
23
|
/** Saved order template that seeded this draft. Used as template-build provenance. */
|
|
25
24
|
order_template_id?: string | null;
|
|
25
|
+
service_line?: Chrt.ServiceLineEnum;
|
|
26
26
|
/** Must be a string starting with `org_` */
|
|
27
27
|
shipper_org_id?: string | null;
|
|
28
28
|
/** OperationsTaskList applications to materialize on the Order for the coordinator org at draft creation, each with optional department override and first-deadline pin. */
|
|
@@ -62,7 +62,7 @@ export declare class Task {
|
|
|
62
62
|
deleteV1(taskId: string, requestOptions?: Task.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
63
63
|
private __deleteV1;
|
|
64
64
|
/**
|
|
65
|
-
* Updates a task in an existing draft order. | authz_personas=[draft_creator_org_operator] | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
|
|
65
|
+
* Updates a task in an existing draft order. Supplying coordinator_shipper_account_ids additionally requires coordinator_org_operators. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
|
|
66
66
|
*
|
|
67
67
|
* @param {Chrt.shipping.orders.drafts.OrderDraftUpdateTaskReq} request
|
|
68
68
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -146,7 +146,7 @@ export class Task {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
* Updates a task in an existing draft order. | authz_personas=[draft_creator_org_operator] | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
|
|
149
|
+
* Updates a task in an existing draft order. Supplying coordinator_shipper_account_ids additionally requires coordinator_org_operators. | authz_personas=[draft_creator_org_operator, coordinator_org_operators] | (OrderDraftUpdateTaskReq) -> (PydanticObjectId)
|
|
150
150
|
*
|
|
151
151
|
* @param {Chrt.shipping.orders.drafts.OrderDraftUpdateTaskReq} request
|
|
152
152
|
* @param {Task.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs
CHANGED
|
@@ -314,7 +314,7 @@ export class Expanded {
|
|
|
314
314
|
__listForCoordinatorOperatorsV1(request, requestOptions) {
|
|
315
315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
316
316
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
317
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, 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_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;
|
|
317
|
+
const { 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_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;
|
|
318
318
|
const _queryParams = {};
|
|
319
319
|
if (sortBy !== undefined) {
|
|
320
320
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -339,6 +339,14 @@ export class Expanded {
|
|
|
339
339
|
_queryParams["filter_status"] = filterStatus;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
+
if (filterServiceLine !== undefined) {
|
|
343
|
+
if (Array.isArray(filterServiceLine)) {
|
|
344
|
+
_queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
_queryParams["filter_service_line"] = filterServiceLine;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
342
350
|
if (filterOrderClassificationByTaskGroupType !== undefined) {
|
|
343
351
|
if (Array.isArray(filterOrderClassificationByTaskGroupType)) {
|
|
344
352
|
_queryParams["filter_order_classification_by_task_group_type"] =
|
|
@@ -511,7 +519,7 @@ export class Expanded {
|
|
|
511
519
|
__listForExecutorOperatorsV1(request, requestOptions) {
|
|
512
520
|
return __awaiter(this, void 0, void 0, function* () {
|
|
513
521
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
514
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, 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_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, body: _body, } = request;
|
|
522
|
+
const { 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_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, body: _body, } = request;
|
|
515
523
|
const _queryParams = {};
|
|
516
524
|
if (sortBy !== undefined) {
|
|
517
525
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -536,6 +544,14 @@ export class Expanded {
|
|
|
536
544
|
_queryParams["filter_status"] = filterStatus;
|
|
537
545
|
}
|
|
538
546
|
}
|
|
547
|
+
if (filterServiceLine !== undefined) {
|
|
548
|
+
if (Array.isArray(filterServiceLine)) {
|
|
549
|
+
_queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
_queryParams["filter_service_line"] = filterServiceLine;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
539
555
|
if (filterOrderClassificationByTaskGroupType !== undefined) {
|
|
540
556
|
if (Array.isArray(filterOrderClassificationByTaskGroupType)) {
|
|
541
557
|
_queryParams["filter_order_classification_by_task_group_type"] =
|
|
@@ -690,7 +706,7 @@ export class Expanded {
|
|
|
690
706
|
__listForProviderOperatorsV1(request, requestOptions) {
|
|
691
707
|
return __awaiter(this, void 0, void 0, function* () {
|
|
692
708
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
693
|
-
const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, 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_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;
|
|
709
|
+
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_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;
|
|
694
710
|
const _queryParams = {};
|
|
695
711
|
if (providerRole !== undefined) {
|
|
696
712
|
_queryParams["provider_role"] = providerRole;
|
|
@@ -718,6 +734,14 @@ export class Expanded {
|
|
|
718
734
|
_queryParams["filter_status"] = filterStatus;
|
|
719
735
|
}
|
|
720
736
|
}
|
|
737
|
+
if (filterServiceLine !== undefined) {
|
|
738
|
+
if (Array.isArray(filterServiceLine)) {
|
|
739
|
+
_queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
|
|
740
|
+
}
|
|
741
|
+
else {
|
|
742
|
+
_queryParams["filter_service_line"] = filterServiceLine;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
721
745
|
if (filterOrderClassificationByTaskGroupType !== undefined) {
|
|
722
746
|
if (Array.isArray(filterOrderClassificationByTaskGroupType)) {
|
|
723
747
|
_queryParams["filter_order_classification_by_task_group_type"] =
|
|
@@ -892,7 +916,7 @@ export class Expanded {
|
|
|
892
916
|
__listForShipperOperatorsV1(request, requestOptions) {
|
|
893
917
|
return __awaiter(this, void 0, void 0, function* () {
|
|
894
918
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
895
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, 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_coordinator_org_id: filterCoordinatorOrgId, body: _body, } = request;
|
|
919
|
+
const { 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_coordinator_org_id: filterCoordinatorOrgId, body: _body, } = request;
|
|
896
920
|
const _queryParams = {};
|
|
897
921
|
if (sortBy !== undefined) {
|
|
898
922
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -917,6 +941,14 @@ export class Expanded {
|
|
|
917
941
|
_queryParams["filter_status"] = filterStatus;
|
|
918
942
|
}
|
|
919
943
|
}
|
|
944
|
+
if (filterServiceLine !== undefined) {
|
|
945
|
+
if (Array.isArray(filterServiceLine)) {
|
|
946
|
+
_queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
|
|
947
|
+
}
|
|
948
|
+
else {
|
|
949
|
+
_queryParams["filter_service_line"] = filterServiceLine;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
920
952
|
if (filterOrderClassificationByTaskGroupType !== undefined) {
|
|
921
953
|
if (Array.isArray(filterOrderClassificationByTaskGroupType)) {
|
|
922
954
|
_queryParams["filter_order_classification_by_task_group_type"] =
|
|
@@ -41,6 +41,8 @@ export interface ExpandedListForCoordinatorOperatorsV1Request {
|
|
|
41
41
|
/** Full-text search query (searches order short ID, off-CHRT reference ID, and AWB) */
|
|
42
42
|
search?: string | null;
|
|
43
43
|
filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
|
|
44
|
+
/** Filter by service line */
|
|
45
|
+
filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
|
|
44
46
|
/** Filter by global order classification (OBC takes precedence over flight, then ground) */
|
|
45
47
|
filter_order_classification_by_task_group_type?: (Chrt.TaskGroupTypeEnum1 | null) | (Chrt.TaskGroupTypeEnum1 | null)[];
|
|
46
48
|
/** Filter by exact AWB number */
|
|
@@ -39,6 +39,8 @@ export interface ExpandedListForExecutorOperatorsV1Request {
|
|
|
39
39
|
/** Full-text search query (searches order short ID, off-CHRT reference ID, and AWB) */
|
|
40
40
|
search?: string | null;
|
|
41
41
|
filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
|
|
42
|
+
/** Filter by service line */
|
|
43
|
+
filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
|
|
42
44
|
/** Filter by global order classification (OBC takes precedence over flight, then ground) */
|
|
43
45
|
filter_order_classification_by_task_group_type?: (Chrt.TaskGroupTypeEnum1 | null) | (Chrt.TaskGroupTypeEnum1 | null)[];
|
|
44
46
|
/** Filter by exact AWB number */
|
|
@@ -44,6 +44,8 @@ export interface ExpandedListForProviderOperatorsV1Request {
|
|
|
44
44
|
/** Full-text search query (searches order short ID, off-CHRT reference ID, and AWB) */
|
|
45
45
|
search?: string | null;
|
|
46
46
|
filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
|
|
47
|
+
/** Filter by service line */
|
|
48
|
+
filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
|
|
47
49
|
/** Filter by global order classification (OBC takes precedence over flight, then ground) */
|
|
48
50
|
filter_order_classification_by_task_group_type?: (Chrt.TaskGroupTypeEnum1 | null) | (Chrt.TaskGroupTypeEnum1 | null)[];
|
|
49
51
|
/** Filter by exact AWB number */
|
|
@@ -38,6 +38,8 @@ export interface ExpandedListForShipperOperatorsV1Request {
|
|
|
38
38
|
/** Full-text search query (searches order short ID, off-CHRT reference ID, and AWB) */
|
|
39
39
|
search?: string | null;
|
|
40
40
|
filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
|
|
41
|
+
/** Filter by service line */
|
|
42
|
+
filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
|
|
41
43
|
/** Filter by global order classification (OBC takes precedence over flight, then ground) */
|
|
42
44
|
filter_order_classification_by_task_group_type?: (Chrt.TaskGroupTypeEnum1 | null) | (Chrt.TaskGroupTypeEnum1 | null)[];
|
|
43
45
|
/** Filter by exact AWB number */
|
|
@@ -139,7 +139,7 @@ export class OrdersAndOrderGroups {
|
|
|
139
139
|
__ungroupedOrdersListV1() {
|
|
140
140
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
141
141
|
var _a, _b, _c, _d, _e, _f;
|
|
142
|
-
const { filter_shipping_status: filterShippingStatus, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
142
|
+
const { filter_shipping_status: filterShippingStatus, filter_service_line: filterServiceLine, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
143
143
|
const _queryParams = {};
|
|
144
144
|
if (filterShippingStatus !== undefined) {
|
|
145
145
|
if (Array.isArray(filterShippingStatus)) {
|
|
@@ -149,6 +149,14 @@ export class OrdersAndOrderGroups {
|
|
|
149
149
|
_queryParams["filter_shipping_status"] = filterShippingStatus;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
+
if (filterServiceLine !== undefined) {
|
|
153
|
+
if (Array.isArray(filterServiceLine)) {
|
|
154
|
+
_queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
_queryParams["filter_service_line"] = filterServiceLine;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
152
160
|
if (sortBy !== undefined) {
|
|
153
161
|
_queryParams["sort_by"] = sortBy;
|
|
154
162
|
}
|
|
@@ -14,6 +14,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
14
14
|
export interface OrdersAndOrderGroupsUngroupedOrdersListV1Request {
|
|
15
15
|
/** Filter by order status(es). */
|
|
16
16
|
filter_shipping_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
|
|
17
|
+
/** Filter by service line. */
|
|
18
|
+
filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
|
|
17
19
|
/** Field to sort by. */
|
|
18
20
|
sort_by?: Chrt.UngroupedOrderSortByEnum | null;
|
|
19
21
|
/** Sort order (asc or desc). */
|
|
@@ -93,6 +93,20 @@ export declare class Tasks {
|
|
|
93
93
|
*/
|
|
94
94
|
deleteV1(taskId: string, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
95
95
|
private __deleteV1;
|
|
96
|
+
/**
|
|
97
|
+
* Overrides a draft or staged task location from a contact or coordinator shipper account and associates the reference. | authz_personas=[draft_creator_org_operator, order_creator_org_operators, lig_owner_operators, coordinator_org_operators] | (TaskLocationFromReferenceReq) -> (PydanticObjectId)
|
|
98
|
+
*
|
|
99
|
+
* @param {string} taskId
|
|
100
|
+
* @param {Chrt.shipping.TaskLocationFromReferenceReq} request
|
|
101
|
+
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* await client.shipping.tasks.locationFromReferenceV1("task_id")
|
|
107
|
+
*/
|
|
108
|
+
locationFromReferenceV1(taskId: string, request?: Chrt.shipping.TaskLocationFromReferenceReq, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<string>;
|
|
109
|
+
private __locationFromReferenceV1;
|
|
96
110
|
/**
|
|
97
111
|
* Marks a task as SKIPPED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
|
|
98
112
|
*
|
|
@@ -107,7 +121,7 @@ export declare class Tasks {
|
|
|
107
121
|
skipV1(taskId: string, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
108
122
|
private __skipV1;
|
|
109
123
|
/**
|
|
110
|
-
* Updates a task. Operational fields
|
|
124
|
+
* Updates a task. Operational fields require lig_owner_operators, comments require order_creator_org_operators, contacts allow either, and coordinator_shipper_account_ids require coordinator_org_operators. | authz_personas=[lig_owner_operators, order_creator_org_operators, coordinator_org_operators] | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
111
125
|
*
|
|
112
126
|
* @param {string} taskId
|
|
113
127
|
* @param {Chrt.TaskClientUpdate1} request
|
|
@@ -274,6 +274,69 @@ export class Tasks {
|
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* Overrides a draft or staged task location from a contact or coordinator shipper account and associates the reference. | authz_personas=[draft_creator_org_operator, order_creator_org_operators, lig_owner_operators, coordinator_org_operators] | (TaskLocationFromReferenceReq) -> (PydanticObjectId)
|
|
279
|
+
*
|
|
280
|
+
* @param {string} taskId
|
|
281
|
+
* @param {Chrt.shipping.TaskLocationFromReferenceReq} request
|
|
282
|
+
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
283
|
+
*
|
|
284
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* await client.shipping.tasks.locationFromReferenceV1("task_id")
|
|
288
|
+
*/
|
|
289
|
+
locationFromReferenceV1(taskId, request = {}, requestOptions) {
|
|
290
|
+
return core.HttpResponsePromise.fromPromise(this.__locationFromReferenceV1(taskId, request, requestOptions));
|
|
291
|
+
}
|
|
292
|
+
__locationFromReferenceV1(taskId_1) {
|
|
293
|
+
return __awaiter(this, arguments, void 0, function* (taskId, request = {}, requestOptions) {
|
|
294
|
+
var _a, _b, _c, _d;
|
|
295
|
+
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);
|
|
296
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
297
|
+
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/tasks/location/from_reference/v1/${encodeURIComponent(taskId)}`),
|
|
298
|
+
method: "PUT",
|
|
299
|
+
headers: _headers,
|
|
300
|
+
contentType: "application/json",
|
|
301
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
302
|
+
requestType: "json",
|
|
303
|
+
body: request,
|
|
304
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
305
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
306
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
307
|
+
});
|
|
308
|
+
if (_response.ok) {
|
|
309
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
310
|
+
}
|
|
311
|
+
if (_response.error.reason === "status-code") {
|
|
312
|
+
switch (_response.error.statusCode) {
|
|
313
|
+
case 422:
|
|
314
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
315
|
+
default:
|
|
316
|
+
throw new errors.ChrtError({
|
|
317
|
+
statusCode: _response.error.statusCode,
|
|
318
|
+
body: _response.error.body,
|
|
319
|
+
rawResponse: _response.rawResponse,
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
switch (_response.error.reason) {
|
|
324
|
+
case "non-json":
|
|
325
|
+
throw new errors.ChrtError({
|
|
326
|
+
statusCode: _response.error.statusCode,
|
|
327
|
+
body: _response.error.rawBody,
|
|
328
|
+
rawResponse: _response.rawResponse,
|
|
329
|
+
});
|
|
330
|
+
case "timeout":
|
|
331
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/tasks/location/from_reference/v1/{task_id}.");
|
|
332
|
+
case "unknown":
|
|
333
|
+
throw new errors.ChrtError({
|
|
334
|
+
message: _response.error.errorMessage,
|
|
335
|
+
rawResponse: _response.rawResponse,
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
}
|
|
277
340
|
/**
|
|
278
341
|
* Marks a task as SKIPPED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
|
|
279
342
|
*
|
|
@@ -334,7 +397,7 @@ export class Tasks {
|
|
|
334
397
|
});
|
|
335
398
|
}
|
|
336
399
|
/**
|
|
337
|
-
* Updates a task. Operational fields
|
|
400
|
+
* Updates a task. Operational fields require lig_owner_operators, comments require order_creator_org_operators, contacts allow either, and coordinator_shipper_account_ids require coordinator_org_operators. | authz_personas=[lig_owner_operators, order_creator_org_operators, coordinator_org_operators] | (TaskClientUpdate1) -> (PydanticObjectId)
|
|
338
401
|
*
|
|
339
402
|
* @param {string} taskId
|
|
340
403
|
* @param {Chrt.TaskClientUpdate1} request
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type AddTaskToGroupReq } from "./AddTaskToGroupReq.mjs";
|
|
2
2
|
export { type AttemptTaskReq } from "./AttemptTaskReq.mjs";
|
|
3
|
+
export { type TaskLocationFromReferenceReq } from "./TaskLocationFromReferenceReq.mjs";
|
|
3
4
|
export { type WaitTimeOverrideReq } from "./WaitTimeOverrideReq.mjs";
|
|
@@ -11,23 +11,30 @@ export interface ChrtGroundProviderRates1 {
|
|
|
11
11
|
base_mileage?: Chrt.BaseMileageRate1 | null;
|
|
12
12
|
cargo_types?: Chrt.CargoTypeEnum1[];
|
|
13
13
|
comments?: string | null;
|
|
14
|
-
counterparty_account_ids?: string[];
|
|
15
14
|
counterparty_driver_ids?: string[];
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
counterparty_off_chrt_org_data_id?: string | null;
|
|
16
|
+
/** Must be a string starting with `org_` */
|
|
17
|
+
counterparty_org_id?: string | null;
|
|
18
18
|
created_at_timestamp: string;
|
|
19
19
|
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
20
20
|
dangerous_goods?: Chrt.DangerousGoodsRate1 | null;
|
|
21
21
|
extra_stop?: Chrt.ExtraStopRate1 | null;
|
|
22
22
|
flat_fee?: Chrt.FlatFeeRate1 | null;
|
|
23
|
+
from_payables?: Chrt.FromPayables1 | null;
|
|
23
24
|
fuel_surcharge?: Chrt.FuelSurchargeRate1 | null;
|
|
24
25
|
holiday?: Chrt.HolidayRate1 | null;
|
|
26
|
+
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
25
27
|
long_distance_surcharge?: Chrt.LongDistanceSurchargeRate1 | null;
|
|
26
28
|
name?: string | null;
|
|
27
29
|
/** Must be a string starting with `org_` */
|
|
28
30
|
owned_by_org_id: string;
|
|
29
31
|
pick_and_hold?: Chrt.PickAndHoldRate1 | null;
|
|
30
32
|
schema_version: number;
|
|
33
|
+
service_line?: Chrt.ServiceLineEnum;
|
|
34
|
+
shipper_account_id?: string | null;
|
|
35
|
+
tax_1?: Chrt.TaxRate1 | null;
|
|
36
|
+
tax_2?: Chrt.TaxRate1 | null;
|
|
37
|
+
tax_3?: Chrt.TaxRate1 | null;
|
|
31
38
|
updated_at_timestamp: string;
|
|
32
39
|
vehicle_types?: Chrt.VehicleTypeEnum[];
|
|
33
40
|
wait_time?: Chrt.WaitTimeRate1 | null;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
5
|
export interface InvoiceLineItem1 {
|
|
6
6
|
_id: string;
|
|
7
|
-
counterparty_account_id?: string | null;
|
|
8
7
|
counterparty_off_chrt_org_data_id?: string | null;
|
|
9
8
|
/** Must be a string starting with `org_` */
|
|
10
9
|
counterparty_org_id?: string | null;
|
|
@@ -24,8 +23,12 @@ export interface InvoiceLineItem1 {
|
|
|
24
23
|
/** Must be a string starting with `org_` */
|
|
25
24
|
owned_by_org_id: string;
|
|
26
25
|
quantity: number;
|
|
26
|
+
rate_sheet_id?: string | null;
|
|
27
27
|
schema_version: number;
|
|
28
|
+
shipper_account_id?: string | null;
|
|
29
|
+
status?: Chrt.InvoiceLineItemStatusEnum1;
|
|
28
30
|
task_group_id?: string | null;
|
|
31
|
+
tax_percentage?: number | null;
|
|
29
32
|
unit?: Chrt.InvoiceLineItemUnitEnum1 | null;
|
|
30
33
|
unit_price: number;
|
|
31
34
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../index.mjs";
|
|
5
|
+
export interface InvoiceLineItemClientCreate1 {
|
|
6
|
+
counterparty_off_chrt_org_data_id?: string | null;
|
|
7
|
+
/** Must be a string starting with `org_` */
|
|
8
|
+
counterparty_org_id?: string | null;
|
|
9
|
+
currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
10
|
+
description: string;
|
|
11
|
+
export_ref__sage__item_id?: string | null;
|
|
12
|
+
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
13
|
+
line_item_type: Chrt.InvoiceLineItemTypeEnum1;
|
|
14
|
+
quantity: number;
|
|
15
|
+
schema_version: number;
|
|
16
|
+
shipper_account_id?: string | null;
|
|
17
|
+
tax_percentage?: number | null;
|
|
18
|
+
unit?: Chrt.InvoiceLineItemUnitEnum1 | null;
|
|
19
|
+
unit_price: number;
|
|
20
|
+
}
|