@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
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { type OrderInformationConversationMessageReq } from "./OrderInformationConversationMessageReq.js";
|
|
2
|
+
export { type OrderInformationConversationStartReq } from "./OrderInformationConversationStartReq.js";
|
|
3
|
+
export { type OrderInformationConversationClientUpdate1 } from "./OrderInformationConversationClientUpdate1.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -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);
|
package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts
CHANGED
|
@@ -92,7 +92,6 @@ export declare class ChrtGroundProviderRates {
|
|
|
92
92
|
* filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
93
93
|
* filter_shipper_account_id: "filter_shipper_account_id",
|
|
94
94
|
* filter_counterparty_driver_id: "filter_counterparty_driver_id",
|
|
95
|
-
* filter_counterparty_scope_driver_id: "filter_counterparty_scope_driver_id",
|
|
96
95
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
97
96
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
98
97
|
* filter_updated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js
CHANGED
|
@@ -258,7 +258,6 @@ class ChrtGroundProviderRates {
|
|
|
258
258
|
* filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
259
259
|
* filter_shipper_account_id: "filter_shipper_account_id",
|
|
260
260
|
* filter_counterparty_driver_id: "filter_counterparty_driver_id",
|
|
261
|
-
* filter_counterparty_scope_driver_id: "filter_counterparty_scope_driver_id",
|
|
262
261
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
263
262
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
264
263
|
* filter_updated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -271,7 +270,7 @@ class ChrtGroundProviderRates {
|
|
|
271
270
|
__listV1() {
|
|
272
271
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
273
272
|
var _a, _b, _c, _d, _e, _f;
|
|
274
|
-
const { search, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_service_line: filterServiceLine, filter_invoice_types: filterInvoiceTypes, filter_currency_codes: filterCurrencyCodes, filter_counterparty_org_id: filterCounterpartyOrgId, filter_counterparty_off_chrt_org_data_id: filterCounterpartyOffChrtOrgDataId, filter_shipper_account_id: filterShipperAccountId, filter_counterparty_driver_id: filterCounterpartyDriverId,
|
|
273
|
+
const { search, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_service_line: filterServiceLine, filter_invoice_types: filterInvoiceTypes, filter_currency_codes: filterCurrencyCodes, filter_counterparty_org_id: filterCounterpartyOrgId, filter_counterparty_off_chrt_org_data_id: filterCounterpartyOffChrtOrgDataId, filter_shipper_account_id: filterShipperAccountId, filter_counterparty_driver_id: filterCounterpartyDriverId, filter_cargo_types: filterCargoTypes, filter_vehicle_types: filterVehicleTypes, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_updated_at_timestamp_gte: filterUpdatedAtTimestampGte, filter_updated_at_timestamp_lte: filterUpdatedAtTimestampLte, } = request;
|
|
275
274
|
const _queryParams = {};
|
|
276
275
|
if (search !== undefined) {
|
|
277
276
|
_queryParams["search"] = search;
|
|
@@ -324,9 +323,6 @@ class ChrtGroundProviderRates {
|
|
|
324
323
|
if (filterCounterpartyDriverId !== undefined) {
|
|
325
324
|
_queryParams["filter_counterparty_driver_id"] = filterCounterpartyDriverId;
|
|
326
325
|
}
|
|
327
|
-
if (filterCounterpartyScopeDriverId !== undefined) {
|
|
328
|
-
_queryParams["filter_counterparty_scope_driver_id"] = filterCounterpartyScopeDriverId;
|
|
329
|
-
}
|
|
330
326
|
if (filterCargoTypes !== undefined) {
|
|
331
327
|
if (Array.isArray(filterCargoTypes)) {
|
|
332
328
|
_queryParams["filter_cargo_types"] = filterCargoTypes.map((item) => item);
|
|
@@ -19,7 +19,6 @@ export interface ChrtGroundProviderRatesClientCreate1 {
|
|
|
19
19
|
cargo_types?: Chrt.CargoTypeEnum1[];
|
|
20
20
|
comments?: string | null;
|
|
21
21
|
counterparty_driver_id?: string | null;
|
|
22
|
-
counterparty_driver_ids?: string[];
|
|
23
22
|
counterparty_off_chrt_org_data_id?: string | null;
|
|
24
23
|
/** Must be a string starting with `org_` */
|
|
25
24
|
counterparty_org_id?: string | null;
|
|
@@ -14,7 +14,6 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
14
14
|
* filter_counterparty_off_chrt_org_data_id: "filter_counterparty_off_chrt_org_data_id",
|
|
15
15
|
* filter_shipper_account_id: "filter_shipper_account_id",
|
|
16
16
|
* filter_counterparty_driver_id: "filter_counterparty_driver_id",
|
|
17
|
-
* filter_counterparty_scope_driver_id: "filter_counterparty_scope_driver_id",
|
|
18
17
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
19
18
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
20
19
|
* filter_updated_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -44,8 +43,6 @@ export interface ChrtGroundProviderRatesListV1Request {
|
|
|
44
43
|
filter_shipper_account_id?: string | null;
|
|
45
44
|
/** Filter by a driver counterparty. */
|
|
46
45
|
filter_counterparty_driver_id?: string | null;
|
|
47
|
-
/** Filter by a driver included in rate-sheet scope. */
|
|
48
|
-
filter_counterparty_scope_driver_id?: string | null;
|
|
49
46
|
/** Filter by one or more cargo types. */
|
|
50
47
|
filter_cargo_types?: (Chrt.CargoTypeEnum1 | null) | (Chrt.CargoTypeEnum1 | null)[];
|
|
51
48
|
/** Filter by one or more vehicle types. */
|
|
@@ -236,7 +236,7 @@ export declare class InvoiceLineItems {
|
|
|
236
236
|
previewFromRateSheetsV1(request: Chrt.InvoiceLineItemsFromChrtGroundProviderRateSheetsReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupInvoiceLineItemsFromChrtGroundProviderRateSheetsPreview1[]>;
|
|
237
237
|
private __previewFromRateSheetsV1;
|
|
238
238
|
/**
|
|
239
|
-
* Lists owner-scoped invoice line items with
|
|
239
|
+
* Lists owner-scoped invoice line items with attached invoices expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemListRes)
|
|
240
240
|
*
|
|
241
241
|
* @param {Chrt.billingNew.InvoiceLineItemsListV1Request} request
|
|
242
242
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -763,7 +763,7 @@ class InvoiceLineItems {
|
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
765
|
/**
|
|
766
|
-
* Lists owner-scoped invoice line items with
|
|
766
|
+
* Lists owner-scoped invoice line items with attached invoices expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceLineItemListRes)
|
|
767
767
|
*
|
|
768
768
|
* @param {Chrt.billingNew.InvoiceLineItemsListV1Request} request
|
|
769
769
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -44,7 +44,7 @@ export declare class Invoices {
|
|
|
44
44
|
approveV1(invoiceId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
|
|
45
45
|
private __approveV1;
|
|
46
46
|
/**
|
|
47
|
-
* Returns the matching
|
|
47
|
+
* Returns the matching draft invoice period, or creates one with an optional rolling-month default. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientCreate1) -> (PydanticObjectId)
|
|
48
48
|
*
|
|
49
49
|
* @param {Chrt.billingNew.InvoiceClientCreate1} request
|
|
50
50
|
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -147,7 +147,7 @@ export declare class Invoices {
|
|
|
147
147
|
removeLineItemsV1(invoiceId: string, request: Chrt.billingNew.InvoiceLineItemsRemoveReq, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.Invoice1>;
|
|
148
148
|
private __removeLineItemsV1;
|
|
149
149
|
/**
|
|
150
|
-
* Lists owner-scoped invoices with
|
|
150
|
+
* Lists owner-scoped invoices with related orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceListRes)
|
|
151
151
|
*
|
|
152
152
|
* @param {Chrt.billingNew.InvoicesListV1Request} request
|
|
153
153
|
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -187,6 +187,23 @@ export declare class Invoices {
|
|
|
187
187
|
*/
|
|
188
188
|
updateV1(invoiceId: string, request?: Chrt.billingNew.InvoiceClientUpdate1, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
189
189
|
private __updateV1;
|
|
190
|
+
/**
|
|
191
|
+
* Updates the period of a draft invoice without changing its attached line items. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoicePeriodUpdateReq) -> (bool)
|
|
192
|
+
*
|
|
193
|
+
* @param {string} invoiceId
|
|
194
|
+
* @param {Chrt.billingNew.InvoicePeriodUpdateReq} request
|
|
195
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
|
+
*
|
|
197
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* await client.billingNew.invoices.updatePeriodV1("invoice_id", {
|
|
201
|
+
* period_end_at_timestamp: "2024-01-15T09:30:00Z",
|
|
202
|
+
* period_start_at_timestamp: "2024-01-15T09:30:00Z"
|
|
203
|
+
* })
|
|
204
|
+
*/
|
|
205
|
+
updatePeriodV1(invoiceId: string, request: Chrt.billingNew.InvoicePeriodUpdateReq, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
206
|
+
private __updatePeriodV1;
|
|
190
207
|
/**
|
|
191
208
|
* Retrieves an invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
|
|
192
209
|
*
|
|
@@ -115,7 +115,7 @@ class Invoices {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
* Returns the matching
|
|
118
|
+
* Returns the matching draft invoice period, or creates one with an optional rolling-month default. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientCreate1) -> (PydanticObjectId)
|
|
119
119
|
*
|
|
120
120
|
* @param {Chrt.billingNew.InvoiceClientCreate1} request
|
|
121
121
|
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -549,7 +549,7 @@ class Invoices {
|
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
/**
|
|
552
|
-
* Lists owner-scoped invoices with
|
|
552
|
+
* Lists owner-scoped invoices with related orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceListRes)
|
|
553
553
|
*
|
|
554
554
|
* @param {Chrt.billingNew.InvoicesListV1Request} request
|
|
555
555
|
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -749,6 +749,72 @@ class Invoices {
|
|
|
749
749
|
}
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
|
+
/**
|
|
753
|
+
* Updates the period of a draft invoice without changing its attached line items. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoicePeriodUpdateReq) -> (bool)
|
|
754
|
+
*
|
|
755
|
+
* @param {string} invoiceId
|
|
756
|
+
* @param {Chrt.billingNew.InvoicePeriodUpdateReq} request
|
|
757
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
758
|
+
*
|
|
759
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
760
|
+
*
|
|
761
|
+
* @example
|
|
762
|
+
* await client.billingNew.invoices.updatePeriodV1("invoice_id", {
|
|
763
|
+
* period_end_at_timestamp: "2024-01-15T09:30:00Z",
|
|
764
|
+
* period_start_at_timestamp: "2024-01-15T09:30:00Z"
|
|
765
|
+
* })
|
|
766
|
+
*/
|
|
767
|
+
updatePeriodV1(invoiceId, request, requestOptions) {
|
|
768
|
+
return core.HttpResponsePromise.fromPromise(this.__updatePeriodV1(invoiceId, request, requestOptions));
|
|
769
|
+
}
|
|
770
|
+
__updatePeriodV1(invoiceId, request, requestOptions) {
|
|
771
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
772
|
+
var _a, _b, _c, _d;
|
|
773
|
+
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);
|
|
774
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
775
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `billing_new/invoices/update_period/v1/${encodeURIComponent(invoiceId)}`),
|
|
776
|
+
method: "PATCH",
|
|
777
|
+
headers: _headers,
|
|
778
|
+
contentType: "application/json",
|
|
779
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
780
|
+
requestType: "json",
|
|
781
|
+
body: request,
|
|
782
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
783
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
784
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
785
|
+
});
|
|
786
|
+
if (_response.ok) {
|
|
787
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
788
|
+
}
|
|
789
|
+
if (_response.error.reason === "status-code") {
|
|
790
|
+
switch (_response.error.statusCode) {
|
|
791
|
+
case 422:
|
|
792
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
793
|
+
default:
|
|
794
|
+
throw new errors.ChrtError({
|
|
795
|
+
statusCode: _response.error.statusCode,
|
|
796
|
+
body: _response.error.body,
|
|
797
|
+
rawResponse: _response.rawResponse,
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
switch (_response.error.reason) {
|
|
802
|
+
case "non-json":
|
|
803
|
+
throw new errors.ChrtError({
|
|
804
|
+
statusCode: _response.error.statusCode,
|
|
805
|
+
body: _response.error.rawBody,
|
|
806
|
+
rawResponse: _response.rawResponse,
|
|
807
|
+
});
|
|
808
|
+
case "timeout":
|
|
809
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing_new/invoices/update_period/v1/{invoice_id}.");
|
|
810
|
+
case "unknown":
|
|
811
|
+
throw new errors.ChrtError({
|
|
812
|
+
message: _response.error.errorMessage,
|
|
813
|
+
rawResponse: _response.rawResponse,
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
}
|
|
752
818
|
/**
|
|
753
819
|
* Retrieves an invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (Invoice1)
|
|
754
820
|
*
|
|
@@ -21,5 +21,7 @@ export interface InvoiceClientCreate1 {
|
|
|
21
21
|
export_ref__sage__department_id?: string | null;
|
|
22
22
|
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
23
23
|
name?: string | null;
|
|
24
|
+
period_end_at_timestamp?: string | null;
|
|
25
|
+
period_start_at_timestamp?: string | null;
|
|
24
26
|
schema_version: number;
|
|
25
27
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* period_end_at_timestamp: "2024-01-15T09:30:00Z",
|
|
8
|
+
* period_start_at_timestamp: "2024-01-15T09:30:00Z"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface InvoicePeriodUpdateReq {
|
|
12
|
+
period_end_at_timestamp: string;
|
|
13
|
+
period_start_at_timestamp: string;
|
|
14
|
+
}
|
|
@@ -3,4 +3,5 @@ export { type InvoiceLineItemsAddReq } from "./InvoiceLineItemsAddReq.js";
|
|
|
3
3
|
export { type InvoiceLineItemsRemoveReq } from "./InvoiceLineItemsRemoveReq.js";
|
|
4
4
|
export { type InvoicesListV1Request } from "./InvoicesListV1Request.js";
|
|
5
5
|
export { type InvoiceClientUpdate1 } from "./InvoiceClientUpdate1.js";
|
|
6
|
+
export { type InvoicePeriodUpdateReq } from "./InvoicePeriodUpdateReq.js";
|
|
6
7
|
export { type InvoiceVoidReq } from "./InvoiceVoidReq.js";
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
import { RateSheetLineItems } from "../resources/rateSheetLineItems/client/Client.js";
|
|
7
8
|
export declare namespace Orders {
|
|
8
9
|
interface Options {
|
|
9
10
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -29,7 +30,9 @@ export declare namespace Orders {
|
|
|
29
30
|
}
|
|
30
31
|
export declare class Orders {
|
|
31
32
|
protected readonly _options: Orders.Options;
|
|
33
|
+
protected _rateSheetLineItems: RateSheetLineItems | undefined;
|
|
32
34
|
constructor(_options?: Orders.Options);
|
|
35
|
+
get rateSheetLineItems(): RateSheetLineItems;
|
|
33
36
|
/**
|
|
34
37
|
* Lists completed, unbilled AWBs with delivery account allocations. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrderAwbBillingListRes)
|
|
35
38
|
*
|
|
@@ -62,10 +62,15 @@ const core = __importStar(require("../../../../../../core/index.js"));
|
|
|
62
62
|
const Chrt = __importStar(require("../../../../../index.js"));
|
|
63
63
|
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
64
64
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
65
|
+
const Client_js_1 = require("../resources/rateSheetLineItems/client/Client.js");
|
|
65
66
|
class Orders {
|
|
66
67
|
constructor(_options = {}) {
|
|
67
68
|
this._options = _options;
|
|
68
69
|
}
|
|
70
|
+
get rateSheetLineItems() {
|
|
71
|
+
var _a;
|
|
72
|
+
return ((_a = this._rateSheetLineItems) !== null && _a !== void 0 ? _a : (this._rateSheetLineItems = new Client_js_1.RateSheetLineItems(this._options)));
|
|
73
|
+
}
|
|
69
74
|
/**
|
|
70
75
|
* Lists completed, unbilled AWBs with delivery account allocations. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrderAwbBillingListRes)
|
|
71
76
|
*
|
|
@@ -0,0 +1,41 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.rateSheetLineItems = void 0;
|
|
40
|
+
exports.rateSheetLineItems = __importStar(require("./rateSheetLineItems/index.js"));
|
|
41
|
+
__exportStar(require("./rateSheetLineItems/client/requests/index.js"), exports);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.js";
|
|
7
|
+
export declare namespace RateSheetLineItems {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class RateSheetLineItems {
|
|
31
|
+
protected readonly _options: RateSheetLineItems.Options;
|
|
32
|
+
constructor(_options?: RateSheetLineItems.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Resolves all matching CHRT-ground provider rate sheets for each unique Order and independently replaces that Order's rate-sheet-derived line items on draft invoices. Orders without matching rate sheets are skipped, expected per-Order failures are returned without stopping later Orders, and invoice approval or finalization is not performed. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (OrderRateSheetLineItemsGenerateManyReq) -> (OrderRateSheetLineItemsGenerateManyRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.billingNew.orders.OrderRateSheetLineItemsGenerateManyReq} request
|
|
37
|
+
* @param {RateSheetLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.billingNew.orders.rateSheetLineItems.generateManyV1({
|
|
43
|
+
* order_ids: ["order_ids"]
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
generateManyV1(request: Chrt.billingNew.orders.OrderRateSheetLineItemsGenerateManyReq, requestOptions?: RateSheetLineItems.RequestOptions): core.HttpResponsePromise<Chrt.OrderRateSheetLineItemsGenerateManyRes>;
|
|
47
|
+
private __generateManyV1;
|
|
48
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.RateSheetLineItems = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../../../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
54
|
+
class RateSheetLineItems {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Resolves all matching CHRT-ground provider rate sheets for each unique Order and independently replaces that Order's rate-sheet-derived line items on draft invoices. Orders without matching rate sheets are skipped, expected per-Order failures are returned without stopping later Orders, and invoice approval or finalization is not performed. | authz: allowed_org_types=[provider], min_org_role=operator | authz_personas=[coordinator_org_operators] | (OrderRateSheetLineItemsGenerateManyReq) -> (OrderRateSheetLineItemsGenerateManyRes)
|
|
60
|
+
*
|
|
61
|
+
* @param {Chrt.billingNew.orders.OrderRateSheetLineItemsGenerateManyReq} request
|
|
62
|
+
* @param {RateSheetLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.billingNew.orders.rateSheetLineItems.generateManyV1({
|
|
68
|
+
* order_ids: ["order_ids"]
|
|
69
|
+
* })
|
|
70
|
+
*/
|
|
71
|
+
generateManyV1(request, requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__generateManyV1(request, requestOptions));
|
|
73
|
+
}
|
|
74
|
+
__generateManyV1(request, requestOptions) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
var _a, _b, _c, _d;
|
|
77
|
+
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);
|
|
78
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
79
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/orders/rate_sheet_line_items/generate_many/v1"),
|
|
80
|
+
method: "POST",
|
|
81
|
+
headers: _headers,
|
|
82
|
+
contentType: "application/json",
|
|
83
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
84
|
+
requestType: "json",
|
|
85
|
+
body: request,
|
|
86
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
87
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
88
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
89
|
+
});
|
|
90
|
+
if (_response.ok) {
|
|
91
|
+
return {
|
|
92
|
+
data: _response.body,
|
|
93
|
+
rawResponse: _response.rawResponse,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
if (_response.error.reason === "status-code") {
|
|
97
|
+
switch (_response.error.statusCode) {
|
|
98
|
+
case 422:
|
|
99
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
100
|
+
default:
|
|
101
|
+
throw new errors.ChrtError({
|
|
102
|
+
statusCode: _response.error.statusCode,
|
|
103
|
+
body: _response.error.body,
|
|
104
|
+
rawResponse: _response.rawResponse,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
switch (_response.error.reason) {
|
|
109
|
+
case "non-json":
|
|
110
|
+
throw new errors.ChrtError({
|
|
111
|
+
statusCode: _response.error.statusCode,
|
|
112
|
+
body: _response.error.rawBody,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
});
|
|
115
|
+
case "timeout":
|
|
116
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /billing_new/orders/rate_sheet_line_items/generate_many/v1.");
|
|
117
|
+
case "unknown":
|
|
118
|
+
throw new errors.ChrtError({
|
|
119
|
+
message: _response.error.errorMessage,
|
|
120
|
+
rawResponse: _response.rawResponse,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
_getAuthorizationHeader() {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
128
|
+
if (bearer != null) {
|
|
129
|
+
return `Bearer ${bearer}`;
|
|
130
|
+
}
|
|
131
|
+
return undefined;
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.RateSheetLineItems = RateSheetLineItems;
|
|
@@ -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("./requests/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type OrderRateSheetLineItemsGenerateManyReq } from "./OrderRateSheetLineItemsGenerateManyReq.js";
|
package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|