@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/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts
CHANGED
|
@@ -31,7 +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 task group with optional related data for
|
|
34
|
+
* Retrieves an expanded task group with optional related data for its assigned driver. | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} taskGroupId
|
|
37
37
|
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
@@ -40,12 +40,12 @@ export declare class Expanded {
|
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shipping.taskGroups.expanded.
|
|
43
|
+
* await client.shipping.taskGroups.expanded.forDriverV1("task_group_id", {})
|
|
44
44
|
*/
|
|
45
|
-
|
|
46
|
-
private
|
|
45
|
+
forDriverV1(taskGroupId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpanded>;
|
|
46
|
+
private __forDriverV1;
|
|
47
47
|
/**
|
|
48
|
-
* Retrieves an expanded task group
|
|
48
|
+
* Retrieves an expanded task group when the caller's provider org is its coordinator, executor, or both. Coordinator-only callers receive empty executor_org_notes; executor-only callers receive empty coordinator_shipper_account_ids. Executor notes are limited to the caller's org. | authz_personas=[coordinator_org_operators, executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
|
|
49
49
|
*
|
|
50
50
|
* @param {string} taskGroupId
|
|
51
51
|
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
@@ -54,24 +54,10 @@ export declare class Expanded {
|
|
|
54
54
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
|
-
* await client.shipping.taskGroups.expanded.
|
|
57
|
+
* await client.shipping.taskGroups.expanded.forProviderOperatorsV1("task_group_id", {})
|
|
58
58
|
*/
|
|
59
|
-
|
|
60
|
-
private
|
|
61
|
-
/**
|
|
62
|
-
* Retrieves an expanded task group with optional related data for executor operators (the provider org doing the work on this task group). | authz_personas=[executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
|
|
63
|
-
*
|
|
64
|
-
* @param {string} taskGroupId
|
|
65
|
-
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
66
|
-
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
-
*
|
|
68
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* await client.shipping.taskGroups.expanded.forExecutorOperatorsV1("task_group_id", {})
|
|
72
|
-
*/
|
|
73
|
-
forExecutorOperatorsV1(taskGroupId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpanded>;
|
|
74
|
-
private __forExecutorOperatorsV1;
|
|
59
|
+
forProviderOperatorsV1(taskGroupId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpanded>;
|
|
60
|
+
private __forProviderOperatorsV1;
|
|
75
61
|
/**
|
|
76
62
|
* Retrieves an expanded task group with optional related data for shipper operators. | authz_personas=[shipper_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
|
|
77
63
|
*
|
|
@@ -89,13 +75,13 @@ export declare class Expanded {
|
|
|
89
75
|
/**
|
|
90
76
|
* Lists expanded task groups assigned to the caller (a driver of the executor provider) with filtering, sorting, pagination, and optional full-text search. | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
|
|
91
77
|
*
|
|
92
|
-
* @param {Chrt.shipping.taskGroups.
|
|
78
|
+
* @param {Chrt.shipping.taskGroups.ExpandedListForDriverV1Request} request
|
|
93
79
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
80
|
*
|
|
95
81
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
96
82
|
*
|
|
97
83
|
* @example
|
|
98
|
-
* await client.shipping.taskGroups.expanded.
|
|
84
|
+
* await client.shipping.taskGroups.expanded.listForDriverV1({
|
|
99
85
|
* sort_by: "draft_started_at_timestamp",
|
|
100
86
|
* sort_order: "asc",
|
|
101
87
|
* page: 1,
|
|
@@ -121,18 +107,19 @@ export declare class Expanded {
|
|
|
121
107
|
* body: {}
|
|
122
108
|
* })
|
|
123
109
|
*/
|
|
124
|
-
|
|
125
|
-
private
|
|
110
|
+
listForDriverV1(request: Chrt.shipping.taskGroups.ExpandedListForDriverV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedListRes>;
|
|
111
|
+
private __listForDriverV1;
|
|
126
112
|
/**
|
|
127
|
-
* Lists expanded task groups where the caller's provider org is the executor. Filtering, sorting, pagination, optional full-text search. |
|
|
113
|
+
* Lists expanded task groups where the caller's provider org is the coordinator, executor, or both. Filtering, sorting, pagination, optional full-text search. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
|
|
128
114
|
*
|
|
129
|
-
* @param {Chrt.shipping.taskGroups.
|
|
115
|
+
* @param {Chrt.shipping.taskGroups.ExpandedListForProviderOperatorsV1Request} request
|
|
130
116
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
117
|
*
|
|
132
118
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
133
119
|
*
|
|
134
120
|
* @example
|
|
135
|
-
* await client.shipping.taskGroups.expanded.
|
|
121
|
+
* await client.shipping.taskGroups.expanded.listForProviderOperatorsV1({
|
|
122
|
+
* provider_role: "all",
|
|
136
123
|
* sort_by: "draft_started_at_timestamp",
|
|
137
124
|
* sort_order: "asc",
|
|
138
125
|
* page: 1,
|
|
@@ -159,7 +146,7 @@ export declare class Expanded {
|
|
|
159
146
|
* body: {}
|
|
160
147
|
* })
|
|
161
148
|
*/
|
|
162
|
-
|
|
163
|
-
private
|
|
149
|
+
listForProviderOperatorsV1(request: Chrt.shipping.taskGroups.ExpandedListForProviderOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedListRes>;
|
|
150
|
+
private __listForProviderOperatorsV1;
|
|
164
151
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
165
152
|
}
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs
CHANGED
|
@@ -20,7 +20,7 @@ export class Expanded {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves an expanded task group with optional related data for
|
|
23
|
+
* Retrieves an expanded task group with optional related data for its assigned driver. | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
|
|
24
24
|
*
|
|
25
25
|
* @param {string} taskGroupId
|
|
26
26
|
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
@@ -29,17 +29,17 @@ export class Expanded {
|
|
|
29
29
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.shipping.taskGroups.expanded.
|
|
32
|
+
* await client.shipping.taskGroups.expanded.forDriverV1("task_group_id", {})
|
|
33
33
|
*/
|
|
34
|
-
|
|
35
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
34
|
+
forDriverV1(taskGroupId, request, requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__forDriverV1(taskGroupId, request, requestOptions));
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
__forDriverV1(taskGroupId, request, requestOptions) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
var _a, _b, _c, _d;
|
|
40
40
|
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);
|
|
41
41
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
|
-
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/task_groups/expanded/
|
|
42
|
+
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/task_groups/expanded/for_driver/v1/${encodeURIComponent(taskGroupId)}`),
|
|
43
43
|
method: "POST",
|
|
44
44
|
headers: _headers,
|
|
45
45
|
contentType: "application/json",
|
|
@@ -73,7 +73,7 @@ export class Expanded {
|
|
|
73
73
|
rawResponse: _response.rawResponse,
|
|
74
74
|
});
|
|
75
75
|
case "timeout":
|
|
76
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/
|
|
76
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/for_driver/v1/{task_group_id}.");
|
|
77
77
|
case "unknown":
|
|
78
78
|
throw new errors.ChrtError({
|
|
79
79
|
message: _response.error.errorMessage,
|
|
@@ -83,7 +83,7 @@ export class Expanded {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
* Retrieves an expanded task group
|
|
86
|
+
* Retrieves an expanded task group when the caller's provider org is its coordinator, executor, or both. Coordinator-only callers receive empty executor_org_notes; executor-only callers receive empty coordinator_shipper_account_ids. Executor notes are limited to the caller's org. | authz_personas=[coordinator_org_operators, executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
|
|
87
87
|
*
|
|
88
88
|
* @param {string} taskGroupId
|
|
89
89
|
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
@@ -92,17 +92,17 @@ export class Expanded {
|
|
|
92
92
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
|
-
* await client.shipping.taskGroups.expanded.
|
|
95
|
+
* await client.shipping.taskGroups.expanded.forProviderOperatorsV1("task_group_id", {})
|
|
96
96
|
*/
|
|
97
|
-
|
|
98
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
97
|
+
forProviderOperatorsV1(taskGroupId, request, requestOptions) {
|
|
98
|
+
return core.HttpResponsePromise.fromPromise(this.__forProviderOperatorsV1(taskGroupId, request, requestOptions));
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
__forProviderOperatorsV1(taskGroupId, request, requestOptions) {
|
|
101
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
102
|
var _a, _b, _c, _d;
|
|
103
103
|
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);
|
|
104
104
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
105
|
-
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/task_groups/expanded/
|
|
105
|
+
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/task_groups/expanded/for_provider_operators/v1/${encodeURIComponent(taskGroupId)}`),
|
|
106
106
|
method: "POST",
|
|
107
107
|
headers: _headers,
|
|
108
108
|
contentType: "application/json",
|
|
@@ -136,70 +136,7 @@ export class Expanded {
|
|
|
136
136
|
rawResponse: _response.rawResponse,
|
|
137
137
|
});
|
|
138
138
|
case "timeout":
|
|
139
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/
|
|
140
|
-
case "unknown":
|
|
141
|
-
throw new errors.ChrtError({
|
|
142
|
-
message: _response.error.errorMessage,
|
|
143
|
-
rawResponse: _response.rawResponse,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Retrieves an expanded task group with optional related data for executor operators (the provider org doing the work on this task group). | authz_personas=[executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
|
|
150
|
-
*
|
|
151
|
-
* @param {string} taskGroupId
|
|
152
|
-
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
153
|
-
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
154
|
-
*
|
|
155
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
156
|
-
*
|
|
157
|
-
* @example
|
|
158
|
-
* await client.shipping.taskGroups.expanded.forExecutorOperatorsV1("task_group_id", {})
|
|
159
|
-
*/
|
|
160
|
-
forExecutorOperatorsV1(taskGroupId, request, requestOptions) {
|
|
161
|
-
return core.HttpResponsePromise.fromPromise(this.__forExecutorOperatorsV1(taskGroupId, request, requestOptions));
|
|
162
|
-
}
|
|
163
|
-
__forExecutorOperatorsV1(taskGroupId, request, requestOptions) {
|
|
164
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
-
var _a, _b, _c, _d;
|
|
166
|
-
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);
|
|
167
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
168
|
-
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/task_groups/expanded/for_executor_operators/v1/${encodeURIComponent(taskGroupId)}`),
|
|
169
|
-
method: "POST",
|
|
170
|
-
headers: _headers,
|
|
171
|
-
contentType: "application/json",
|
|
172
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
173
|
-
requestType: "json",
|
|
174
|
-
body: request,
|
|
175
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
176
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
177
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
178
|
-
});
|
|
179
|
-
if (_response.ok) {
|
|
180
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
181
|
-
}
|
|
182
|
-
if (_response.error.reason === "status-code") {
|
|
183
|
-
switch (_response.error.statusCode) {
|
|
184
|
-
case 422:
|
|
185
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
186
|
-
default:
|
|
187
|
-
throw new errors.ChrtError({
|
|
188
|
-
statusCode: _response.error.statusCode,
|
|
189
|
-
body: _response.error.body,
|
|
190
|
-
rawResponse: _response.rawResponse,
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
switch (_response.error.reason) {
|
|
195
|
-
case "non-json":
|
|
196
|
-
throw new errors.ChrtError({
|
|
197
|
-
statusCode: _response.error.statusCode,
|
|
198
|
-
body: _response.error.rawBody,
|
|
199
|
-
rawResponse: _response.rawResponse,
|
|
200
|
-
});
|
|
201
|
-
case "timeout":
|
|
202
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/for_executor_operators/v1/{task_group_id}.");
|
|
139
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/for_provider_operators/v1/{task_group_id}.");
|
|
203
140
|
case "unknown":
|
|
204
141
|
throw new errors.ChrtError({
|
|
205
142
|
message: _response.error.errorMessage,
|
|
@@ -274,13 +211,13 @@ export class Expanded {
|
|
|
274
211
|
/**
|
|
275
212
|
* Lists expanded task groups assigned to the caller (a driver of the executor provider) with filtering, sorting, pagination, and optional full-text search. | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
|
|
276
213
|
*
|
|
277
|
-
* @param {Chrt.shipping.taskGroups.
|
|
214
|
+
* @param {Chrt.shipping.taskGroups.ExpandedListForDriverV1Request} request
|
|
278
215
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
279
216
|
*
|
|
280
217
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
281
218
|
*
|
|
282
219
|
* @example
|
|
283
|
-
* await client.shipping.taskGroups.expanded.
|
|
220
|
+
* await client.shipping.taskGroups.expanded.listForDriverV1({
|
|
284
221
|
* sort_by: "draft_started_at_timestamp",
|
|
285
222
|
* sort_order: "asc",
|
|
286
223
|
* page: 1,
|
|
@@ -306,10 +243,10 @@ export class Expanded {
|
|
|
306
243
|
* body: {}
|
|
307
244
|
* })
|
|
308
245
|
*/
|
|
309
|
-
|
|
310
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
246
|
+
listForDriverV1(request, requestOptions) {
|
|
247
|
+
return core.HttpResponsePromise.fromPromise(this.__listForDriverV1(request, requestOptions));
|
|
311
248
|
}
|
|
312
|
-
|
|
249
|
+
__listForDriverV1(request, requestOptions) {
|
|
313
250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
314
251
|
var _a, _b, _c, _d, _e, _f;
|
|
315
252
|
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, 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_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, 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;
|
|
@@ -390,7 +327,7 @@ export class Expanded {
|
|
|
390
327
|
}
|
|
391
328
|
let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
392
329
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
393
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/list/
|
|
330
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/list/for_driver/v1"),
|
|
394
331
|
method: "POST",
|
|
395
332
|
headers: _headers,
|
|
396
333
|
contentType: "application/json",
|
|
@@ -424,7 +361,7 @@ export class Expanded {
|
|
|
424
361
|
rawResponse: _response.rawResponse,
|
|
425
362
|
});
|
|
426
363
|
case "timeout":
|
|
427
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/list/
|
|
364
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/list/for_driver/v1.");
|
|
428
365
|
case "unknown":
|
|
429
366
|
throw new errors.ChrtError({
|
|
430
367
|
message: _response.error.errorMessage,
|
|
@@ -434,15 +371,16 @@ export class Expanded {
|
|
|
434
371
|
});
|
|
435
372
|
}
|
|
436
373
|
/**
|
|
437
|
-
* Lists expanded task groups where the caller's provider org is the executor. Filtering, sorting, pagination, optional full-text search. |
|
|
374
|
+
* Lists expanded task groups where the caller's provider org is the coordinator, executor, or both. Filtering, sorting, pagination, optional full-text search. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
|
|
438
375
|
*
|
|
439
|
-
* @param {Chrt.shipping.taskGroups.
|
|
376
|
+
* @param {Chrt.shipping.taskGroups.ExpandedListForProviderOperatorsV1Request} request
|
|
440
377
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
441
378
|
*
|
|
442
379
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
443
380
|
*
|
|
444
381
|
* @example
|
|
445
|
-
* await client.shipping.taskGroups.expanded.
|
|
382
|
+
* await client.shipping.taskGroups.expanded.listForProviderOperatorsV1({
|
|
383
|
+
* provider_role: "all",
|
|
446
384
|
* sort_by: "draft_started_at_timestamp",
|
|
447
385
|
* sort_order: "asc",
|
|
448
386
|
* page: 1,
|
|
@@ -469,14 +407,17 @@ export class Expanded {
|
|
|
469
407
|
* body: {}
|
|
470
408
|
* })
|
|
471
409
|
*/
|
|
472
|
-
|
|
473
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
410
|
+
listForProviderOperatorsV1(request, requestOptions) {
|
|
411
|
+
return core.HttpResponsePromise.fromPromise(this.__listForProviderOperatorsV1(request, requestOptions));
|
|
474
412
|
}
|
|
475
|
-
|
|
413
|
+
__listForProviderOperatorsV1(request, requestOptions) {
|
|
476
414
|
return __awaiter(this, void 0, void 0, function* () {
|
|
477
415
|
var _a, _b, _c, _d, _e, _f;
|
|
478
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, 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_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, 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_driver_id: filterDriverId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, body: _body, } = request;
|
|
416
|
+
const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, 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_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, 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_driver_id: filterDriverId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, body: _body, } = request;
|
|
479
417
|
const _queryParams = {};
|
|
418
|
+
if (providerRole !== undefined) {
|
|
419
|
+
_queryParams["provider_role"] = providerRole;
|
|
420
|
+
}
|
|
480
421
|
if (sortBy !== undefined) {
|
|
481
422
|
_queryParams["sort_by"] = sortBy;
|
|
482
423
|
}
|
|
@@ -556,7 +497,7 @@ export class Expanded {
|
|
|
556
497
|
}
|
|
557
498
|
let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
558
499
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
559
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/list/
|
|
500
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/list/for_provider_operators/v1"),
|
|
560
501
|
method: "POST",
|
|
561
502
|
headers: _headers,
|
|
562
503
|
contentType: "application/json",
|
|
@@ -590,7 +531,7 @@ export class Expanded {
|
|
|
590
531
|
rawResponse: _response.rawResponse,
|
|
591
532
|
});
|
|
592
533
|
case "timeout":
|
|
593
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/list/
|
|
534
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/list/for_provider_operators/v1.");
|
|
594
535
|
case "unknown":
|
|
595
536
|
throw new errors.ChrtError({
|
|
596
537
|
message: _response.error.errorMessage,
|
|
@@ -30,7 +30,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
30
30
|
* body: {}
|
|
31
31
|
* }
|
|
32
32
|
*/
|
|
33
|
-
export interface
|
|
33
|
+
export interface ExpandedListForDriverV1Request {
|
|
34
34
|
sort_by?: Chrt.TaskGroupSortByEnum | null;
|
|
35
35
|
/** Sort order (asc or desc) */
|
|
36
36
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
@@ -5,6 +5,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
+
* provider_role: "all",
|
|
8
9
|
* sort_by: "draft_started_at_timestamp",
|
|
9
10
|
* sort_order: "asc",
|
|
10
11
|
* page: 1,
|
|
@@ -31,7 +32,8 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
31
32
|
* body: {}
|
|
32
33
|
* }
|
|
33
34
|
*/
|
|
34
|
-
export interface
|
|
35
|
+
export interface ExpandedListForProviderOperatorsV1Request {
|
|
36
|
+
provider_role?: Chrt.TaskGroupProviderRoleFilterEnum | null;
|
|
35
37
|
sort_by?: Chrt.TaskGroupSortByEnum | null;
|
|
36
38
|
/** Sort order (asc or desc) */
|
|
37
39
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { type
|
|
2
|
-
export { type
|
|
1
|
+
export { type ExpandedListForDriverV1Request } from "./ExpandedListForDriverV1Request.mjs";
|
|
2
|
+
export { type ExpandedListForProviderOperatorsV1Request } from "./ExpandedListForProviderOperatorsV1Request.mjs";
|
|
@@ -3,3 +3,4 @@ export * as s3Object from "./s3Object/index.mjs";
|
|
|
3
3
|
export * as taskGroupId from "./taskGroupId/index.mjs";
|
|
4
4
|
export * from "./expanded/client/requests/index.mjs";
|
|
5
5
|
export * from "./s3Object/client/requests/index.mjs";
|
|
6
|
+
export * from "./taskGroupId/client/requests/index.mjs";
|
|
@@ -3,3 +3,4 @@ export * as s3Object from "./s3Object/index.mjs";
|
|
|
3
3
|
export * as taskGroupId from "./taskGroupId/index.mjs";
|
|
4
4
|
export * from "./expanded/client/requests/index.mjs";
|
|
5
5
|
export * from "./s3Object/client/requests/index.mjs";
|
|
6
|
+
export * from "./taskGroupId/client/requests/index.mjs";
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.mts
CHANGED
|
@@ -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 (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (
|
|
34
|
+
* Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (TaskGroupS3ObjectMetadata1)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} taskGroupId
|
|
37
37
|
* @param {Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1} request
|
|
@@ -45,7 +45,7 @@ export declare class S3Object {
|
|
|
45
45
|
* file: fs.createReadStream("/path/to/your/file")
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
48
|
-
addV1(taskGroupId: string, request: Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<
|
|
48
|
+
addV1(taskGroupId: string, request: Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupS3ObjectMetadata1>;
|
|
49
49
|
private __addV1;
|
|
50
50
|
/**
|
|
51
51
|
* Deletes an S3 object metadata and the associated S3 object from a task group. Only the uploader or an operator from the uploading org can delete. | () -> (bool)
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.mjs
CHANGED
|
@@ -20,7 +20,7 @@ export class S3Object {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (
|
|
23
|
+
* Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (TaskGroupS3ObjectMetadata1)
|
|
24
24
|
*
|
|
25
25
|
* @param {string} taskGroupId
|
|
26
26
|
* @param {Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1} request
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.mjs";
|
|
6
7
|
export declare namespace TaskGroupId {
|
|
7
8
|
interface Options {
|
|
8
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -38,22 +39,25 @@ export declare class TaskGroupId {
|
|
|
38
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
39
40
|
*
|
|
40
41
|
* @example
|
|
41
|
-
* await client.shipping.taskGroups.taskGroupId.
|
|
42
|
+
* await client.shipping.taskGroups.taskGroupId.forDriverV1("order_ref")
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
-
private
|
|
44
|
+
forDriverV1(orderRef: string, requestOptions?: TaskGroupId.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
45
|
+
private __forDriverV1;
|
|
45
46
|
/**
|
|
46
|
-
* Retrieves
|
|
47
|
+
* Retrieves task group IDs where the caller's provider org is the coordinator, executor, or both. | authz_personas=[coordinator_org_operators, executor_org_operators] | () -> (list[PydanticObjectId])
|
|
47
48
|
*
|
|
48
49
|
* @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
|
|
50
|
+
* @param {Chrt.shipping.taskGroups.TaskGroupIdForProviderOperatorsV1Request} request
|
|
49
51
|
* @param {TaskGroupId.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
52
|
*
|
|
51
53
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
52
54
|
*
|
|
53
55
|
* @example
|
|
54
|
-
* await client.shipping.taskGroups.taskGroupId.
|
|
56
|
+
* await client.shipping.taskGroups.taskGroupId.forProviderOperatorsV1("order_ref", {
|
|
57
|
+
* provider_role: "all"
|
|
58
|
+
* })
|
|
55
59
|
*/
|
|
56
|
-
|
|
57
|
-
private
|
|
60
|
+
forProviderOperatorsV1(orderRef: string, request?: Chrt.shipping.taskGroups.TaskGroupIdForProviderOperatorsV1Request, requestOptions?: TaskGroupId.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
61
|
+
private __forProviderOperatorsV1;
|
|
58
62
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
59
63
|
}
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs
CHANGED
|
@@ -28,17 +28,17 @@ export class TaskGroupId {
|
|
|
28
28
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
|
-
* await client.shipping.taskGroups.taskGroupId.
|
|
31
|
+
* await client.shipping.taskGroups.taskGroupId.forDriverV1("order_ref")
|
|
32
32
|
*/
|
|
33
|
-
|
|
34
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
33
|
+
forDriverV1(orderRef, requestOptions) {
|
|
34
|
+
return core.HttpResponsePromise.fromPromise(this.__forDriverV1(orderRef, requestOptions));
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
__forDriverV1(orderRef, requestOptions) {
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
var _a, _b, _c, _d;
|
|
39
39
|
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);
|
|
40
40
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
41
|
-
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/task_groups/task_group_id/
|
|
41
|
+
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/task_groups/task_group_id/for_driver/v1/${encodeURIComponent(orderRef)}`),
|
|
42
42
|
method: "GET",
|
|
43
43
|
headers: _headers,
|
|
44
44
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -69,7 +69,7 @@ export class TaskGroupId {
|
|
|
69
69
|
rawResponse: _response.rawResponse,
|
|
70
70
|
});
|
|
71
71
|
case "timeout":
|
|
72
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/task_groups/task_group_id/
|
|
72
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/task_groups/task_group_id/for_driver/v1/{order_ref}.");
|
|
73
73
|
case "unknown":
|
|
74
74
|
throw new errors.ChrtError({
|
|
75
75
|
message: _response.error.errorMessage,
|
|
@@ -79,28 +79,36 @@ export class TaskGroupId {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
* Retrieves
|
|
82
|
+
* Retrieves task group IDs where the caller's provider org is the coordinator, executor, or both. | authz_personas=[coordinator_org_operators, executor_org_operators] | () -> (list[PydanticObjectId])
|
|
83
83
|
*
|
|
84
84
|
* @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
|
|
85
|
+
* @param {Chrt.shipping.taskGroups.TaskGroupIdForProviderOperatorsV1Request} request
|
|
85
86
|
* @param {TaskGroupId.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
87
|
*
|
|
87
88
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
88
89
|
*
|
|
89
90
|
* @example
|
|
90
|
-
* await client.shipping.taskGroups.taskGroupId.
|
|
91
|
+
* await client.shipping.taskGroups.taskGroupId.forProviderOperatorsV1("order_ref", {
|
|
92
|
+
* provider_role: "all"
|
|
93
|
+
* })
|
|
91
94
|
*/
|
|
92
|
-
|
|
93
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
95
|
+
forProviderOperatorsV1(orderRef, request = {}, requestOptions) {
|
|
96
|
+
return core.HttpResponsePromise.fromPromise(this.__forProviderOperatorsV1(orderRef, request, requestOptions));
|
|
94
97
|
}
|
|
95
|
-
|
|
96
|
-
return __awaiter(this,
|
|
98
|
+
__forProviderOperatorsV1(orderRef_1) {
|
|
99
|
+
return __awaiter(this, arguments, void 0, function* (orderRef, request = {}, requestOptions) {
|
|
97
100
|
var _a, _b, _c, _d;
|
|
101
|
+
const { provider_role: providerRole } = request;
|
|
102
|
+
const _queryParams = {};
|
|
103
|
+
if (providerRole !== undefined) {
|
|
104
|
+
_queryParams["provider_role"] = providerRole;
|
|
105
|
+
}
|
|
98
106
|
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);
|
|
99
107
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
100
|
-
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/task_groups/task_group_id/
|
|
108
|
+
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/task_groups/task_group_id/for_provider_operators/v1/${encodeURIComponent(orderRef)}`),
|
|
101
109
|
method: "GET",
|
|
102
110
|
headers: _headers,
|
|
103
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
111
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
104
112
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
105
113
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
106
114
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -128,7 +136,7 @@ export class TaskGroupId {
|
|
|
128
136
|
rawResponse: _response.rawResponse,
|
|
129
137
|
});
|
|
130
138
|
case "timeout":
|
|
131
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/task_groups/task_group_id/
|
|
139
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/task_groups/task_group_id/for_provider_operators/v1/{order_ref}.");
|
|
132
140
|
case "unknown":
|
|
133
141
|
throw new errors.ChrtError({
|
|
134
142
|
message: _response.error.errorMessage,
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* provider_role: "all"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface TaskGroupIdForProviderOperatorsV1Request {
|
|
12
|
+
provider_role?: Chrt.TaskGroupProviderRoleFilterEnum | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type TaskGroupIdForProviderOperatorsV1Request } from "./TaskGroupIdForProviderOperatorsV1Request.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|