@chrt-inc/typescript-sdk 1.923.0 → 1.925.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.d.ts +3 -0
- package/dist/cjs/Client.js +29 -24
- package/dist/cjs/api/resources/agent/client/Client.d.ts +23 -0
- package/dist/cjs/api/resources/agent/client/Client.js +17 -0
- package/dist/cjs/api/resources/agent/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/client/index.js +2 -0
- package/dist/cjs/api/resources/agent/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/index.js +18 -0
- package/dist/cjs/api/resources/agent/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/index.js +41 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.d.ts +79 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.js +260 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/index.js +17 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.ts +11 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.ts +12 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.ts +13 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js +1 -5
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts +0 -3
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +19 -2
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +68 -2
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.d.ts +14 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/index.js +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.js +41 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.js +135 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +10 -10
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTaskStatusReq.d.ts → OperationsTasksSetStatusReq1.d.ts} +3 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.js +5 -2
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.js +5 -2
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.js +5 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.js +60 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +59 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -105
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +6 -518
- 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/expanded/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +18 -31
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +34 -93
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForDriverForExecutorV1Request.d.ts → ExpandedListForDriverV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForExecutorOperatorsV1Request.d.ts → ExpandedListForProviderOperatorsV1Request.d.ts} +3 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +11 -7
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.js +23 -15
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.js +15 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +2 -2
- package/dist/cjs/api/types/AiImageDescription.d.ts +1 -1
- package/dist/cjs/api/types/{LlmModelEnum.d.ts → ArchivedModel.d.ts} +5 -2
- package/dist/cjs/api/types/{LlmModelEnum.js → ArchivedModel.js} +2 -2
- package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +0 -1
- package/dist/cjs/api/types/ContactExpandedListItem.d.ts +10 -0
- package/dist/cjs/api/types/ContactListRes.d.ts +1 -1
- package/dist/cjs/api/types/Invoice1.d.ts +2 -0
- package/dist/cjs/api/types/InvoiceExpandedListItem.d.ts +11 -0
- package/dist/cjs/api/types/InvoiceLineItemExpandedListItem.d.ts +8 -0
- package/dist/cjs/api/types/InvoiceLineItemExpandedListItem.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemListRes.d.ts +1 -1
- package/dist/cjs/api/types/InvoiceListRes.d.ts +1 -1
- package/dist/cjs/api/types/Model.d.ts +12 -0
- package/dist/cjs/api/types/Model.js +11 -0
- package/dist/cjs/api/types/OperationsTaskExpandedListItem.d.ts +1 -0
- package/dist/cjs/api/types/OperationsTasksStatusUpdateRes1.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTasksStatusUpdateRes1.js +5 -0
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -0
- package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +2 -0
- package/dist/cjs/api/types/OrderExpandedForShipper.d.ts +1 -0
- package/dist/cjs/api/types/OrderInformationConversationRes.d.ts +7 -0
- package/dist/cjs/api/types/OrderInformationConversationRes.js +5 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyRes.d.ts +12 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyRes.js +5 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyResult1.d.ts +11 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyResult1.js +5 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.d.ts +9 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.js +11 -0
- package/dist/cjs/api/types/StoredModel.d.ts +5 -0
- package/dist/cjs/api/types/StoredModel.js +5 -0
- package/dist/cjs/api/types/TaskGroupByDriverDataPointsRes.d.ts +8 -0
- package/dist/cjs/api/types/TaskGroupByDriverDataPointsRes.js +5 -0
- package/dist/cjs/api/types/TaskGroupByDriverLastSeenRes.d.ts +8 -0
- package/dist/cjs/api/types/TaskGroupByDriverLastSeenRes.js +5 -0
- package/dist/cjs/api/types/TaskGroupProviderRoleFilterEnum.d.ts +9 -0
- package/dist/cjs/api/types/TaskGroupProviderRoleFilterEnum.js +11 -0
- package/dist/cjs/api/types/index.d.ts +14 -7
- package/dist/cjs/api/types/index.js +14 -7
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +23 -0
- package/dist/esm/api/resources/agent/client/Client.mjs +13 -0
- package/dist/esm/api/resources/agent/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/index.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/index.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.d.mts +79 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.mjs +223 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.mts +11 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.mts +12 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.mts +13 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs +1 -5
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts +0 -3
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +19 -2
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +68 -2
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.d.mts +14 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +5 -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/billingNew/resources/orders/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/index.mjs +2 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.mjs +98 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +10 -10
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTaskStatusReq.d.mts → OperationsTasksSetStatusReq1.d.mts} +3 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.mjs +5 -2
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.mjs +5 -2
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.mjs +5 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.mjs +60 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +59 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -105
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +6 -518
- 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/expanded/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +18 -31
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +34 -93
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForDriverForExecutorV1Request.d.mts → ExpandedListForDriverV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForExecutorOperatorsV1Request.d.mts → ExpandedListForProviderOperatorsV1Request.d.mts} +3 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +11 -7
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs +23 -15
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +2 -2
- package/dist/esm/api/types/AiImageDescription.d.mts +1 -1
- package/dist/esm/api/types/{LlmModelEnum.d.mts → ArchivedModel.d.mts} +5 -2
- package/dist/esm/api/types/{LlmModelEnum.mjs → ArchivedModel.mjs} +1 -1
- package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +0 -1
- package/dist/esm/api/types/ContactExpandedListItem.d.mts +10 -0
- package/dist/esm/api/types/ContactListRes.d.mts +1 -1
- package/dist/esm/api/types/Invoice1.d.mts +2 -0
- package/dist/esm/api/types/InvoiceExpandedListItem.d.mts +11 -0
- package/dist/esm/api/types/InvoiceLineItemExpandedListItem.d.mts +8 -0
- package/dist/esm/api/types/InvoiceLineItemExpandedListItem.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemListRes.d.mts +1 -1
- package/dist/esm/api/types/InvoiceListRes.d.mts +1 -1
- package/dist/esm/api/types/Model.d.mts +12 -0
- package/dist/esm/api/types/Model.mjs +8 -0
- package/dist/esm/api/types/OperationsTaskExpandedListItem.d.mts +1 -0
- package/dist/esm/api/types/OperationsTasksStatusUpdateRes1.d.mts +7 -0
- package/dist/esm/api/types/OperationsTasksStatusUpdateRes1.mjs +4 -0
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -0
- package/dist/esm/api/types/OrderExpandedForProvider.d.mts +2 -0
- package/dist/esm/api/types/OrderExpandedForShipper.d.mts +1 -0
- package/dist/esm/api/types/OrderInformationConversationRes.d.mts +7 -0
- package/dist/esm/api/types/OrderInformationConversationRes.mjs +4 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyRes.d.mts +12 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyRes.mjs +4 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyResult1.d.mts +11 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyResult1.mjs +4 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.d.mts +9 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.mjs +8 -0
- package/dist/esm/api/types/StoredModel.d.mts +5 -0
- package/dist/esm/api/types/StoredModel.mjs +4 -0
- package/dist/esm/api/types/TaskGroupByDriverDataPointsRes.d.mts +8 -0
- package/dist/esm/api/types/TaskGroupByDriverDataPointsRes.mjs +4 -0
- package/dist/esm/api/types/TaskGroupByDriverLastSeenRes.d.mts +8 -0
- package/dist/esm/api/types/TaskGroupByDriverLastSeenRes.mjs +4 -0
- package/dist/esm/api/types/TaskGroupProviderRoleFilterEnum.d.mts +9 -0
- package/dist/esm/api/types/TaskGroupProviderRoleFilterEnum.mjs +8 -0
- package/dist/esm/api/types/index.d.mts +14 -7
- package/dist/esm/api/types/index.mjs +14 -7
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +587 -486
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +0 -73
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +0 -66
- package/dist/cjs/api/types/OrderExpandedForCoordinator.d.ts +0 -15
- package/dist/cjs/api/types/OrderExpandedForExecutor.d.ts +0 -14
- package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +0 -47
- package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +0 -27
- package/dist/cjs/api/types/OrdersExpandedListForCoordinatorRes.d.ts +0 -8
- package/dist/cjs/api/types/OrdersExpandedListForExecutorRes.d.ts +0 -8
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +0 -73
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +0 -66
- package/dist/esm/api/types/OrderExpandedForCoordinator.d.mts +0 -15
- package/dist/esm/api/types/OrderExpandedForExecutor.d.mts +0 -14
- package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +0 -47
- package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +0 -27
- package/dist/esm/api/types/OrdersExpandedListForCoordinatorRes.d.mts +0 -8
- package/dist/esm/api/types/OrdersExpandedListForExecutorRes.d.mts +0 -8
- /package/dist/cjs/api/resources/{operations/resources/operationsTasks/client/requests/OperationsTaskStatusReq.js → agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.js → agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.js → agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.js → billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.js → billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.js} +0 -0
- /package/dist/cjs/api/{types/OrderExpandedForCoordinator.js → resources/operations/resources/operationsTasks/client/requests/OperationsTasksSetStatusReq1.js} +0 -0
- /package/dist/cjs/api/{types/OrderExpandedForExecutor.js → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.js} +0 -0
- /package/dist/cjs/api/{types/OrderLimitedForCoordinator1.js → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.js} +0 -0
- /package/dist/cjs/api/{types/OrderLimitedForExecutor1.js → resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.js} +0 -0
- /package/dist/cjs/api/types/{OrdersExpandedListForCoordinatorRes.js → ContactExpandedListItem.js} +0 -0
- /package/dist/cjs/api/types/{OrdersExpandedListForExecutorRes.js → InvoiceExpandedListItem.js} +0 -0
- /package/dist/esm/api/resources/{operations/resources/operationsTasks/client/requests/OperationsTaskStatusReq.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.mjs → billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.mjs → billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.mjs} +0 -0
- /package/dist/esm/api/{types/OrderExpandedForCoordinator.mjs → resources/operations/resources/operationsTasks/client/requests/OperationsTasksSetStatusReq1.mjs} +0 -0
- /package/dist/esm/api/{types/OrderExpandedForExecutor.mjs → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/OrderLimitedForCoordinator1.mjs → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/OrderLimitedForExecutor1.mjs → resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.mjs} +0 -0
- /package/dist/esm/api/types/{OrdersExpandedListForCoordinatorRes.mjs → ContactExpandedListItem.mjs} +0 -0
- /package/dist/esm/api/types/{OrdersExpandedListForExecutorRes.mjs → InvoiceExpandedListItem.mjs} +0 -0
package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -2,6 +2,7 @@ export * as orgs from "./orgs/index.js";
|
|
|
2
2
|
export * as shipping from "./shipping/index.js";
|
|
3
3
|
export * as flights from "./flights/index.js";
|
|
4
4
|
export * as utils from "./utils/index.js";
|
|
5
|
+
export * as agent from "./agent/index.js";
|
|
5
6
|
export * as analytics from "./analytics/index.js";
|
|
6
7
|
export * as billing from "./billing/index.js";
|
|
7
8
|
export * as billingNew from "./billingNew/index.js";
|
|
@@ -36,11 +36,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.trackingIntegrations = exports.tracking = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.billingNew = exports.billing = exports.analytics = exports.utils = exports.flights = exports.shipping = exports.orgs = void 0;
|
|
39
|
+
exports.users = exports.trackingIntegrations = exports.tracking = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.billingNew = exports.billing = exports.analytics = exports.agent = exports.utils = exports.flights = exports.shipping = exports.orgs = void 0;
|
|
40
40
|
exports.orgs = __importStar(require("./orgs/index.js"));
|
|
41
41
|
exports.shipping = __importStar(require("./shipping/index.js"));
|
|
42
42
|
exports.flights = __importStar(require("./flights/index.js"));
|
|
43
43
|
exports.utils = __importStar(require("./utils/index.js"));
|
|
44
|
+
exports.agent = __importStar(require("./agent/index.js"));
|
|
44
45
|
exports.analytics = __importStar(require("./analytics/index.js"));
|
|
45
46
|
exports.billing = __importStar(require("./billing/index.js"));
|
|
46
47
|
exports.billingNew = __importStar(require("./billingNew/index.js"));
|
|
@@ -77,7 +77,7 @@ export declare class OperationsTasks {
|
|
|
77
77
|
deleteCommentV1(taskId: string, commentId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
78
78
|
private __deleteCommentV1;
|
|
79
79
|
/**
|
|
80
|
-
* Lists OperationsTasks with department and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
|
|
80
|
+
* Lists OperationsTasks with task-list, department, and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
|
|
81
81
|
*
|
|
82
82
|
* @param {Chrt.operations.OperationsTasksExpandedListV1Request} request
|
|
83
83
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -145,21 +145,21 @@ export declare class OperationsTasks {
|
|
|
145
145
|
setDeadlineTimestampsV1(request: Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksDeadlineTimestampsUpdateRes1>;
|
|
146
146
|
private __setDeadlineTimestampsV1;
|
|
147
147
|
/**
|
|
148
|
-
* Sets
|
|
148
|
+
* Sets the same status on each selected OperationsTask. Completing tasks stamps completed_at/by while other statuses clear them; missing or cross-org ids are skipped. | authz: min_org_role=operator | (OperationsTasksSetStatusReq1) -> (OperationsTasksStatusUpdateRes1)
|
|
149
149
|
*
|
|
150
|
-
* @param {
|
|
151
|
-
* @param {Chrt.operations.OperationsTaskStatusReq} request
|
|
150
|
+
* @param {Chrt.operations.OperationsTasksSetStatusReq1} request
|
|
152
151
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
152
|
*
|
|
154
153
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
155
154
|
*
|
|
156
155
|
* @example
|
|
157
|
-
* await client.operations.operationsTasks.
|
|
156
|
+
* await client.operations.operationsTasks.setStatusV1({
|
|
157
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
158
158
|
* status: "not_started"
|
|
159
159
|
* })
|
|
160
160
|
*/
|
|
161
|
-
|
|
162
|
-
private
|
|
161
|
+
setStatusV1(request: Chrt.operations.OperationsTasksSetStatusReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksStatusUpdateRes1>;
|
|
162
|
+
private __setStatusV1;
|
|
163
163
|
/**
|
|
164
164
|
* Creates a new OperationsTask on an Order where the caller is coordinator or executor. Seeds department_id from the caller's Order department fields. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
|
|
165
165
|
*
|
|
@@ -249,7 +249,7 @@ class OperationsTasks {
|
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
|
-
* Lists OperationsTasks with department and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
|
|
252
|
+
* Lists OperationsTasks with task-list, department, and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
|
|
253
253
|
*
|
|
254
254
|
* @param {Chrt.operations.OperationsTasksExpandedListV1Request} request
|
|
255
255
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -579,28 +579,28 @@ class OperationsTasks {
|
|
|
579
579
|
});
|
|
580
580
|
}
|
|
581
581
|
/**
|
|
582
|
-
* Sets
|
|
582
|
+
* Sets the same status on each selected OperationsTask. Completing tasks stamps completed_at/by while other statuses clear them; missing or cross-org ids are skipped. | authz: min_org_role=operator | (OperationsTasksSetStatusReq1) -> (OperationsTasksStatusUpdateRes1)
|
|
583
583
|
*
|
|
584
|
-
* @param {
|
|
585
|
-
* @param {Chrt.operations.OperationsTaskStatusReq} request
|
|
584
|
+
* @param {Chrt.operations.OperationsTasksSetStatusReq1} request
|
|
586
585
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
587
586
|
*
|
|
588
587
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
589
588
|
*
|
|
590
589
|
* @example
|
|
591
|
-
* await client.operations.operationsTasks.
|
|
590
|
+
* await client.operations.operationsTasks.setStatusV1({
|
|
591
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
592
592
|
* status: "not_started"
|
|
593
593
|
* })
|
|
594
594
|
*/
|
|
595
|
-
|
|
596
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
595
|
+
setStatusV1(request, requestOptions) {
|
|
596
|
+
return core.HttpResponsePromise.fromPromise(this.__setStatusV1(request, requestOptions));
|
|
597
597
|
}
|
|
598
|
-
|
|
598
|
+
__setStatusV1(request, requestOptions) {
|
|
599
599
|
return __awaiter(this, void 0, void 0, function* () {
|
|
600
600
|
var _a, _b, _c, _d;
|
|
601
601
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
602
602
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
603
|
-
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,
|
|
603
|
+
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, "operations/operations_tasks/set_status/v1"),
|
|
604
604
|
method: "PATCH",
|
|
605
605
|
headers: _headers,
|
|
606
606
|
contentType: "application/json",
|
|
@@ -634,7 +634,7 @@ class OperationsTasks {
|
|
|
634
634
|
rawResponse: _response.rawResponse,
|
|
635
635
|
});
|
|
636
636
|
case "timeout":
|
|
637
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/
|
|
637
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/set_status/v1.");
|
|
638
638
|
case "unknown":
|
|
639
639
|
throw new errors.ChrtError({
|
|
640
640
|
message: _response.error.errorMessage,
|
|
@@ -5,9 +5,11 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
8
9
|
* status: "not_started"
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
|
-
export interface
|
|
12
|
+
export interface OperationsTasksSetStatusReq1 {
|
|
13
|
+
operations_task_ids: string[];
|
|
12
14
|
status: Chrt.OperationsTaskStatusEnum;
|
|
13
15
|
}
|
package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export { type OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1 } from "./Op
|
|
|
3
3
|
export { type OperationsTasksExpandedListV1Request } from "./OperationsTasksExpandedListV1Request.js";
|
|
4
4
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.js";
|
|
5
5
|
export { type OperationsTasksSetDeadlineTimestampsReq1 } from "./OperationsTasksSetDeadlineTimestampsReq1.js";
|
|
6
|
-
export { type
|
|
6
|
+
export { type OperationsTasksSetStatusReq1 } from "./OperationsTasksSetStatusReq1.js";
|
|
7
7
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
|
|
8
8
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
|
|
@@ -31,7 +31,7 @@ export declare class S3Objects {
|
|
|
31
31
|
protected readonly _options: S3Objects.Options;
|
|
32
32
|
constructor(_options?: S3Objects.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Uploads a file to the caller's OrderInternalMessages for this order (lazy-creates the messages doc). Automatic blurhash generation for images. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (UploadFile) -> (
|
|
34
|
+
* Uploads a file to the caller's OrderInternalMessages for this order (lazy-creates the messages doc). Automatic blurhash generation for images. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (UploadFile) -> (OrderInternalMessageS3ObjectMetadata1)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} orderId
|
|
37
37
|
* @param {Chrt.operations.orderInternalMessages.BodyPostOrderInternalMessagesS3ObjectsAddV1} request
|
|
@@ -45,7 +45,7 @@ export declare class S3Objects {
|
|
|
45
45
|
* file: fs.createReadStream("/path/to/your/file")
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
48
|
-
addV1(orderId: string, request: Chrt.operations.orderInternalMessages.BodyPostOrderInternalMessagesS3ObjectsAddV1, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<
|
|
48
|
+
addV1(orderId: string, request: Chrt.operations.orderInternalMessages.BodyPostOrderInternalMessagesS3ObjectsAddV1, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<Chrt.OrderInternalMessageS3ObjectMetadata1>;
|
|
49
49
|
private __addV1;
|
|
50
50
|
/**
|
|
51
51
|
* Deletes an S3 object metadata and the associated S3 object from order internal messages. Only the uploader or an operator from the uploading org can delete. | () -> (bool)
|
|
@@ -56,7 +56,7 @@ class S3Objects {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Uploads a file to the caller's OrderInternalMessages for this order (lazy-creates the messages doc). Automatic blurhash generation for images. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (UploadFile) -> (
|
|
59
|
+
* Uploads a file to the caller's OrderInternalMessages for this order (lazy-creates the messages doc). Automatic blurhash generation for images. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (UploadFile) -> (OrderInternalMessageS3ObjectMetadata1)
|
|
60
60
|
*
|
|
61
61
|
* @param {string} orderId
|
|
62
62
|
* @param {Chrt.operations.orderInternalMessages.BodyPostOrderInternalMessagesS3ObjectsAddV1} request
|
|
@@ -93,7 +93,10 @@ class S3Objects {
|
|
|
93
93
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
94
94
|
});
|
|
95
95
|
if (_response.ok) {
|
|
96
|
-
return {
|
|
96
|
+
return {
|
|
97
|
+
data: _response.body,
|
|
98
|
+
rawResponse: _response.rawResponse,
|
|
99
|
+
};
|
|
97
100
|
}
|
|
98
101
|
if (_response.error.reason === "status-code") {
|
|
99
102
|
switch (_response.error.statusCode) {
|
|
@@ -31,7 +31,7 @@ export declare class S3Object {
|
|
|
31
31
|
protected readonly _options: S3Object.Options;
|
|
32
32
|
constructor(_options?: S3Object.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Uploads a file to an organization compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (
|
|
34
|
+
* Uploads a file to an organization compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (OrgComplianceDocumentS3ObjectMetadata1)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} orgComplianceDocumentId
|
|
37
37
|
* @param {Chrt.orgs.complianceDocuments.BodyPostOrgComplianceDocumentsS3ObjectAddV1} request
|
|
@@ -45,7 +45,7 @@ export declare class S3Object {
|
|
|
45
45
|
* file: fs.createReadStream("/path/to/your/file")
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
48
|
-
addV1(orgComplianceDocumentId: string, request: Chrt.orgs.complianceDocuments.BodyPostOrgComplianceDocumentsS3ObjectAddV1, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<
|
|
48
|
+
addV1(orgComplianceDocumentId: string, request: Chrt.orgs.complianceDocuments.BodyPostOrgComplianceDocumentsS3ObjectAddV1, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<Chrt.OrgComplianceDocumentS3ObjectMetadata1>;
|
|
49
49
|
private __addV1;
|
|
50
50
|
/**
|
|
51
51
|
* Deletes an organization compliance document S3 object and metadata. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (bool)
|
|
@@ -56,7 +56,7 @@ class S3Object {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Uploads a file to an organization compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (
|
|
59
|
+
* Uploads a file to an organization compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (OrgComplianceDocumentS3ObjectMetadata1)
|
|
60
60
|
*
|
|
61
61
|
* @param {string} orgComplianceDocumentId
|
|
62
62
|
* @param {Chrt.orgs.complianceDocuments.BodyPostOrgComplianceDocumentsS3ObjectAddV1} request
|
|
@@ -93,7 +93,10 @@ class S3Object {
|
|
|
93
93
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
94
94
|
});
|
|
95
95
|
if (_response.ok) {
|
|
96
|
-
return {
|
|
96
|
+
return {
|
|
97
|
+
data: _response.body,
|
|
98
|
+
rawResponse: _response.rawResponse,
|
|
99
|
+
};
|
|
97
100
|
}
|
|
98
101
|
if (_response.error.reason === "status-code") {
|
|
99
102
|
switch (_response.error.statusCode) {
|
|
@@ -90,7 +90,7 @@ export declare class Contacts {
|
|
|
90
90
|
deleteV1(contactId: string, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
91
91
|
private __deleteV1;
|
|
92
92
|
/**
|
|
93
|
-
* Lists organization-created contacts with
|
|
93
|
+
* Lists organization-created contacts with associated organizations and accounts expanded. | authz: min_org_role=operator | () -> (ContactListRes)
|
|
94
94
|
*
|
|
95
95
|
* @param {Chrt.orgs.ContactsListV1Request} request
|
|
96
96
|
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -305,7 +305,7 @@ class Contacts {
|
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
/**
|
|
308
|
-
* Lists organization-created contacts with
|
|
308
|
+
* Lists organization-created contacts with associated organizations and accounts expanded. | authz: min_org_role=operator | () -> (ContactListRes)
|
|
309
309
|
*
|
|
310
310
|
* @param {Chrt.orgs.ContactsListV1Request} request
|
|
311
311
|
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,7 +31,7 @@ export declare class S3Object {
|
|
|
31
31
|
protected readonly _options: S3Object.Options;
|
|
32
32
|
constructor(_options?: S3Object.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Uploads a file to a driver compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (
|
|
34
|
+
* Uploads a file to a driver compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (DriverComplianceDocumentS3ObjectMetadata1)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} driverComplianceDocumentId
|
|
37
37
|
* @param {Chrt.shipping.drivers.complianceDocuments.BodyPostDriverComplianceDocumentsS3ObjectAddV1} request
|
|
@@ -45,7 +45,7 @@ export declare class S3Object {
|
|
|
45
45
|
* file: fs.createReadStream("/path/to/your/file")
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
48
|
-
addV1(driverComplianceDocumentId: string, request: Chrt.shipping.drivers.complianceDocuments.BodyPostDriverComplianceDocumentsS3ObjectAddV1, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<
|
|
48
|
+
addV1(driverComplianceDocumentId: string, request: Chrt.shipping.drivers.complianceDocuments.BodyPostDriverComplianceDocumentsS3ObjectAddV1, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<Chrt.DriverComplianceDocumentS3ObjectMetadata1>;
|
|
49
49
|
private __addV1;
|
|
50
50
|
/**
|
|
51
51
|
* Deletes a driver compliance document S3 object and metadata. | authz: allowed_org_types=[provider], min_org_role=administrator | () -> (bool)
|
|
@@ -56,7 +56,7 @@ class S3Object {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Uploads a file to a driver compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (
|
|
59
|
+
* Uploads a file to a driver compliance document. Automatic blurhash generation for images. | authz: allowed_org_types=[provider], min_org_role=administrator | (UploadFile) -> (DriverComplianceDocumentS3ObjectMetadata1)
|
|
60
60
|
*
|
|
61
61
|
* @param {string} driverComplianceDocumentId
|
|
62
62
|
* @param {Chrt.shipping.drivers.complianceDocuments.BodyPostDriverComplianceDocumentsS3ObjectAddV1} request
|
|
@@ -93,7 +93,10 @@ class S3Object {
|
|
|
93
93
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
94
94
|
});
|
|
95
95
|
if (_response.ok) {
|
|
96
|
-
return {
|
|
96
|
+
return {
|
|
97
|
+
data: _response.body,
|
|
98
|
+
rawResponse: _response.rawResponse,
|
|
99
|
+
};
|
|
97
100
|
}
|
|
98
101
|
if (_response.error.reason === "status-code") {
|
|
99
102
|
switch (_response.error.statusCode) {
|
|
@@ -30,6 +30,20 @@ export declare namespace Cargos {
|
|
|
30
30
|
export declare class Cargos {
|
|
31
31
|
protected readonly _options: Cargos.Options;
|
|
32
32
|
constructor(_options?: Cargos.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Duplicates cargo and its task associations in an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} orderTemplateId
|
|
37
|
+
* @param {string} cargoKey
|
|
38
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.shipping.orderTemplatesNew.cargos.postDuplicateV1("order_template_id", "cargo_key")
|
|
44
|
+
*/
|
|
45
|
+
postDuplicateV1(orderTemplateId: string, cargoKey: string, requestOptions?: Cargos.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateNew1>;
|
|
46
|
+
private __postDuplicateV1;
|
|
33
47
|
/**
|
|
34
48
|
* Reorders cargo in an active order template. | authz: min_org_role=operator | (OrderTemplateNewCargoReorderReq1) -> (OrderTemplateNew1)
|
|
35
49
|
*
|
|
@@ -55,6 +55,66 @@ class Cargos {
|
|
|
55
55
|
constructor(_options = {}) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Duplicates cargo and its task associations in an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)
|
|
60
|
+
*
|
|
61
|
+
* @param {string} orderTemplateId
|
|
62
|
+
* @param {string} cargoKey
|
|
63
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.shipping.orderTemplatesNew.cargos.postDuplicateV1("order_template_id", "cargo_key")
|
|
69
|
+
*/
|
|
70
|
+
postDuplicateV1(orderTemplateId, cargoKey, requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__postDuplicateV1(orderTemplateId, cargoKey, requestOptions));
|
|
72
|
+
}
|
|
73
|
+
__postDuplicateV1(orderTemplateId, cargoKey, requestOptions) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
var _a, _b, _c, _d;
|
|
76
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
77
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
78
|
+
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/order_templates_new/cargos/duplicate/v1/${encodeURIComponent(orderTemplateId)}/${encodeURIComponent(cargoKey)}`),
|
|
79
|
+
method: "POST",
|
|
80
|
+
headers: _headers,
|
|
81
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
82
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
|
+
});
|
|
86
|
+
if (_response.ok) {
|
|
87
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
88
|
+
}
|
|
89
|
+
if (_response.error.reason === "status-code") {
|
|
90
|
+
switch (_response.error.statusCode) {
|
|
91
|
+
case 422:
|
|
92
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
93
|
+
default:
|
|
94
|
+
throw new errors.ChrtError({
|
|
95
|
+
statusCode: _response.error.statusCode,
|
|
96
|
+
body: _response.error.body,
|
|
97
|
+
rawResponse: _response.rawResponse,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
switch (_response.error.reason) {
|
|
102
|
+
case "non-json":
|
|
103
|
+
throw new errors.ChrtError({
|
|
104
|
+
statusCode: _response.error.statusCode,
|
|
105
|
+
body: _response.error.rawBody,
|
|
106
|
+
rawResponse: _response.rawResponse,
|
|
107
|
+
});
|
|
108
|
+
case "timeout":
|
|
109
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/order_templates_new/cargos/duplicate/v1/{order_template_id}/{cargo_key}.");
|
|
110
|
+
case "unknown":
|
|
111
|
+
throw new errors.ChrtError({
|
|
112
|
+
message: _response.error.errorMessage,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
58
118
|
/**
|
|
59
119
|
* Reorders cargo in an active order template. | authz: min_org_role=operator | (OrderTemplateNewCargoReorderReq1) -> (OrderTemplateNew1)
|
|
60
120
|
*
|
|
@@ -66,6 +66,19 @@ export declare class Cargo {
|
|
|
66
66
|
*/
|
|
67
67
|
associateWithTaskV1(request: Chrt.shipping.orders.OrdersAssociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
68
68
|
private __associateWithTaskV1;
|
|
69
|
+
/**
|
|
70
|
+
* Duplicates cargo and all of its task associations within an order. | () -> (PydanticObjectId)
|
|
71
|
+
*
|
|
72
|
+
* @param {string} cargoId
|
|
73
|
+
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* await client.shipping.orders.cargo.duplicateV1("cargo_id")
|
|
79
|
+
*/
|
|
80
|
+
duplicateV1(cargoId: string, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<string>;
|
|
81
|
+
private __duplicateV1;
|
|
69
82
|
/**
|
|
70
83
|
* Removes cargo from an order task and updates operational cargo status when applicable. | (OrdersUnassociateCargoWithTaskReq) -> (bool)
|
|
71
84
|
*
|
|
@@ -189,6 +189,65 @@ class Cargo {
|
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* Duplicates cargo and all of its task associations within an order. | () -> (PydanticObjectId)
|
|
194
|
+
*
|
|
195
|
+
* @param {string} cargoId
|
|
196
|
+
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
|
+
*
|
|
198
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* await client.shipping.orders.cargo.duplicateV1("cargo_id")
|
|
202
|
+
*/
|
|
203
|
+
duplicateV1(cargoId, requestOptions) {
|
|
204
|
+
return core.HttpResponsePromise.fromPromise(this.__duplicateV1(cargoId, requestOptions));
|
|
205
|
+
}
|
|
206
|
+
__duplicateV1(cargoId, requestOptions) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
+
var _a, _b, _c, _d;
|
|
209
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
210
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
211
|
+
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/cargo/duplicate/v1/${encodeURIComponent(cargoId)}`),
|
|
212
|
+
method: "POST",
|
|
213
|
+
headers: _headers,
|
|
214
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
215
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
216
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
217
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
218
|
+
});
|
|
219
|
+
if (_response.ok) {
|
|
220
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
221
|
+
}
|
|
222
|
+
if (_response.error.reason === "status-code") {
|
|
223
|
+
switch (_response.error.statusCode) {
|
|
224
|
+
case 422:
|
|
225
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
226
|
+
default:
|
|
227
|
+
throw new errors.ChrtError({
|
|
228
|
+
statusCode: _response.error.statusCode,
|
|
229
|
+
body: _response.error.body,
|
|
230
|
+
rawResponse: _response.rawResponse,
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
switch (_response.error.reason) {
|
|
235
|
+
case "non-json":
|
|
236
|
+
throw new errors.ChrtError({
|
|
237
|
+
statusCode: _response.error.statusCode,
|
|
238
|
+
body: _response.error.rawBody,
|
|
239
|
+
rawResponse: _response.rawResponse,
|
|
240
|
+
});
|
|
241
|
+
case "timeout":
|
|
242
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/orders/cargo/duplicate/v1/{cargo_id}.");
|
|
243
|
+
case "unknown":
|
|
244
|
+
throw new errors.ChrtError({
|
|
245
|
+
message: _response.error.errorMessage,
|
|
246
|
+
rawResponse: _response.rawResponse,
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}
|
|
192
251
|
/**
|
|
193
252
|
* Removes cargo from an order task and updates operational cargo status when applicable. | (OrdersUnassociateCargoWithTaskReq) -> (bool)
|
|
194
253
|
*
|
package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts
CHANGED
|
@@ -31,35 +31,7 @@ export declare class Expanded {
|
|
|
31
31
|
protected readonly _options: Expanded.Options;
|
|
32
32
|
constructor(_options?: Expanded.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves an expanded order
|
|
35
|
-
*
|
|
36
|
-
* @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
|
|
37
|
-
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
38
|
-
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
-
*
|
|
40
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* await client.shipping.orders.expanded.forCoordinatorOperatorsV1("order_ref", {})
|
|
44
|
-
*/
|
|
45
|
-
forCoordinatorOperatorsV1(orderRef: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpandedForCoordinator>;
|
|
46
|
-
private __forCoordinatorOperatorsV1;
|
|
47
|
-
/**
|
|
48
|
-
* Retrieves an expanded order containing only task groups executed by the caller's provider org. | authz_personas=[order_executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpandedForExecutor)
|
|
49
|
-
*
|
|
50
|
-
* @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
|
|
51
|
-
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
52
|
-
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
-
*
|
|
54
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* await client.shipping.orders.expanded.forExecutorOperatorsV1("order_ref", {})
|
|
58
|
-
*/
|
|
59
|
-
forExecutorOperatorsV1(orderRef: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpandedForExecutor>;
|
|
60
|
-
private __forExecutorOperatorsV1;
|
|
61
|
-
/**
|
|
62
|
-
* Retrieves an expanded order for a provider org that is the coordinator, an executor, or both, with role-filtered task-group details. Mirrors the per-item projection of the for_provider_operators list route. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpandedForProvider)
|
|
34
|
+
* Retrieves an expanded order for a provider org that is the coordinator, an executor, or both. Executor-only callers receive only their task groups. Drafts are visible only to operators in the creating provider org; coordinator responses include unassigned_cargos when expand_cargos is requested. | authz_personas=[coordinator_org_operators, order_executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (OrderExpandedForProvider)
|
|
63
35
|
*
|
|
64
36
|
* @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
|
|
65
37
|
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
@@ -86,82 +58,6 @@ export declare class Expanded {
|
|
|
86
58
|
*/
|
|
87
59
|
forShipperOperatorsV1(orderRef: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpandedForShipper>;
|
|
88
60
|
private __forShipperOperatorsV1;
|
|
89
|
-
/**
|
|
90
|
-
* Lists expanded orders where the caller's provider org is the coordinator. Filtering, sorting, pagination, optional search. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListForCoordinatorRes)
|
|
91
|
-
*
|
|
92
|
-
* @param {Chrt.shipping.orders.ExpandedListForCoordinatorOperatorsV1Request} request
|
|
93
|
-
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
|
-
*
|
|
95
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* await client.shipping.orders.expanded.listForCoordinatorOperatorsV1({
|
|
99
|
-
* sort_by: "draft_started_at_timestamp",
|
|
100
|
-
* sort_order: "asc",
|
|
101
|
-
* page: 1,
|
|
102
|
-
* page_size: 1,
|
|
103
|
-
* search: "search",
|
|
104
|
-
* filter_awb_number: "filter_awb_number",
|
|
105
|
-
* filter_has_invoice: true,
|
|
106
|
-
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
107
|
-
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
108
|
-
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
109
|
-
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
110
|
-
* filter_in_progress_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
111
|
-
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
112
|
-
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
113
|
-
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
114
|
-
* filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
115
|
-
* filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
116
|
-
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
117
|
-
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
118
|
-
* filter_executor_org_id: "filter_executor_org_id",
|
|
119
|
-
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
120
|
-
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
121
|
-
* filter_coordinator_department_id: "filter_coordinator_department_id",
|
|
122
|
-
* filter_coordinator_label: "filter_coordinator_label",
|
|
123
|
-
* body: {}
|
|
124
|
-
* })
|
|
125
|
-
*/
|
|
126
|
-
listForCoordinatorOperatorsV1(request: Chrt.shipping.orders.ExpandedListForCoordinatorOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrdersExpandedListForCoordinatorRes>;
|
|
127
|
-
private __listForCoordinatorOperatorsV1;
|
|
128
|
-
/**
|
|
129
|
-
* Lists expanded orders where the caller's provider org executes at least one task group. Each result contains only that org's task groups. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListForExecutorRes)
|
|
130
|
-
*
|
|
131
|
-
* @param {Chrt.shipping.orders.ExpandedListForExecutorOperatorsV1Request} request
|
|
132
|
-
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
-
*
|
|
134
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* await client.shipping.orders.expanded.listForExecutorOperatorsV1({
|
|
138
|
-
* sort_by: "draft_started_at_timestamp",
|
|
139
|
-
* sort_order: "asc",
|
|
140
|
-
* page: 1,
|
|
141
|
-
* page_size: 1,
|
|
142
|
-
* search: "search",
|
|
143
|
-
* filter_awb_number: "filter_awb_number",
|
|
144
|
-
* filter_has_invoice: true,
|
|
145
|
-
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
146
|
-
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
147
|
-
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
148
|
-
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
149
|
-
* filter_in_progress_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
150
|
-
* filter_in_progress_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
151
|
-
* filter_completed_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
152
|
-
* filter_completed_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
153
|
-
* filter_cancelled_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
154
|
-
* filter_cancelled_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
155
|
-
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
156
|
-
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
157
|
-
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
158
|
-
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
159
|
-
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
160
|
-
* body: {}
|
|
161
|
-
* })
|
|
162
|
-
*/
|
|
163
|
-
listForExecutorOperatorsV1(request: Chrt.shipping.orders.ExpandedListForExecutorOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrdersExpandedListForExecutorRes>;
|
|
164
|
-
private __listForExecutorOperatorsV1;
|
|
165
61
|
/**
|
|
166
62
|
* Lists expanded orders where the caller's provider org is the coordinator, an executor, or both. Each order appears once with role-filtered task-group details. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListForProviderRes)
|
|
167
63
|
*
|
|
@@ -193,6 +89,7 @@ export declare class Expanded {
|
|
|
193
89
|
* filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
194
90
|
* filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
195
91
|
* filter_executor_org_id: "filter_executor_org_id",
|
|
92
|
+
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
196
93
|
* filter_coordinator_org_id: "filter_coordinator_org_id",
|
|
197
94
|
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
198
95
|
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|