@chrt-inc/typescript-sdk 1.318.0 → 1.320.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 +6 -3
- package/dist/cjs/Client.js +12 -7
- package/dist/cjs/api/resources/cargos/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/cargos/client/Client.js +131 -0
- package/dist/cjs/api/resources/cargos/index.d.ts +1 -0
- package/dist/cjs/{exports.js → api/resources/cargos/index.js} +1 -1
- package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/connections/client/Client.js +4 -4
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +2 -2
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +3 -3
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +2 -2
- package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/dev/client/Client.js +4 -4
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/drivers/client/Client.js +2 -2
- package/dist/cjs/api/resources/index.d.ts +3 -3
- package/dist/cjs/api/resources/index.js +4 -4
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +2 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
- package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.js +3 -3
- package/dist/cjs/api/resources/orderDrafts/client/Client.d.ts +7 -17
- package/dist/cjs/api/resources/orderDrafts/client/Client.js +11 -68
- package/dist/cjs/api/resources/orderDrafts/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/orderDrafts/index.d.ts +1 -1
- package/dist/cjs/api/resources/orderDrafts/index.js +1 -1
- package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/Client.d.ts +55 -0
- package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/Client.js +158 -0
- package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/index.d.ts +2 -0
- package/dist/cjs/{core/exports.js → api/resources/orderDrafts/resources/expanded/client/index.js} +1 -1
- package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.ts +25 -0
- package/dist/cjs/api/resources/orderDrafts/resources/expanded/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orderDrafts/resources/expanded/index.d.ts +2 -0
- package/dist/cjs/{core/form-data-utils → api/resources/orderDrafts/resources/expanded}/index.js +2 -4
- package/dist/cjs/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.ts +8 -0
- package/dist/cjs/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.js +10 -0
- package/dist/cjs/api/resources/orderDrafts/resources/expanded/types/index.d.ts +1 -0
- package/dist/cjs/{core/file → api/resources/orderDrafts/resources/expanded/types}/index.js +1 -2
- package/dist/cjs/api/resources/orderDrafts/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/orderDrafts/resources/index.js +4 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgs/client/Client.js +5 -5
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +36 -23
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +94 -35
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +2 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +3 -3
- package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.js +2 -2
- package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +0 -60
- package/dist/cjs/api/resources/taskArtifacts/client/Client.js +0 -246
- package/dist/cjs/api/resources/taskArtifacts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/taskArtifacts/client/index.js +0 -15
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +0 -31
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.js +0 -128
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.js +0 -15
- package/dist/cjs/api/resources/taskArtifacts/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/taskArtifacts/resources/index.js +0 -4
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +3 -3
- package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.js +1 -1
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +2 -2
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +1 -1
- package/dist/cjs/api/types/{OrderDraftExpandedRes.d.ts → OrderDraftExpanded.d.ts} +5 -6
- package/dist/cjs/api/types/OrderDraftExpandedListRes.d.ts +1 -4
- package/dist/{esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.mjs → cjs/api/types/OrderDraftSortByEnum.d.ts} +1 -1
- package/dist/cjs/api/types/index.d.ts +2 -3
- package/dist/cjs/api/types/index.js +2 -3
- package/dist/cjs/core/index.d.ts +0 -2
- package/dist/cjs/core/index.js +1 -3
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.js +0 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +6 -3
- package/dist/esm/Client.mjs +10 -5
- package/dist/esm/api/resources/cargos/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/cargos/client/Client.mjs +94 -0
- package/dist/esm/api/resources/cargos/index.d.mts +1 -0
- package/dist/esm/api/resources/cargos/index.mjs +1 -0
- package/dist/esm/api/resources/connections/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/connections/client/Client.mjs +4 -4
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +2 -2
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +3 -3
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +2 -2
- package/dist/esm/api/resources/dev/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/dev/client/Client.mjs +4 -4
- package/dist/esm/api/resources/drivers/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/drivers/client/Client.mjs +2 -2
- package/dist/esm/api/resources/index.d.mts +3 -3
- package/dist/esm/api/resources/index.mjs +3 -3
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
- package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/offChrtShipperOrg/client/Client.mjs +3 -3
- package/dist/esm/api/resources/orderDrafts/client/Client.d.mts +7 -17
- package/dist/esm/api/resources/orderDrafts/client/Client.mjs +11 -68
- package/dist/esm/api/resources/orderDrafts/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/orderDrafts/index.d.mts +1 -1
- package/dist/esm/api/resources/orderDrafts/index.mjs +1 -1
- package/dist/esm/api/resources/orderDrafts/resources/expanded/client/Client.d.mts +55 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/client/Client.mjs +121 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/client/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.mts +25 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/index.d.mts +2 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/index.mjs +2 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.mts +8 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.mjs +7 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/types/index.d.mts +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/expanded/types/index.mjs +1 -0
- package/dist/esm/api/resources/orderDrafts/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/orderDrafts/resources/index.mjs +3 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgs/client/Client.mjs +5 -5
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +36 -23
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +94 -35
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +2 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +3 -3
- package/dist/esm/api/resources/taskArtifactNotifications/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/taskArtifactNotifications/client/Client.mjs +2 -2
- package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +0 -60
- package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +0 -213
- package/dist/esm/api/resources/taskArtifacts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/taskArtifacts/client/index.mjs +1 -1
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +0 -31
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.mjs +0 -128
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.d.mts +0 -1
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.mjs +1 -1
- package/dist/esm/api/resources/taskArtifacts/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/taskArtifacts/resources/index.mjs +0 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +3 -3
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +3 -3
- package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.mjs +1 -1
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +2 -2
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +1 -1
- package/dist/esm/api/types/{OrderDraftExpandedRes.d.mts → OrderDraftExpanded.d.mts} +5 -6
- package/dist/esm/api/types/OrderDraftExpandedListRes.d.mts +1 -4
- package/dist/esm/api/types/OrderDraftSortByEnum.d.mts +4 -0
- package/dist/esm/api/types/index.d.mts +2 -3
- package/dist/esm/api/types/index.mjs +2 -3
- package/dist/esm/core/index.d.mts +0 -2
- package/dist/esm/core/index.mjs +0 -2
- package/dist/esm/index.d.mts +0 -1
- package/dist/esm/index.mjs +0 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +208 -396
- package/dist/cjs/api/resources/orderDrafts/client/requests/OrderDraftExpandedListReq.d.ts +0 -21
- package/dist/cjs/api/resources/orderDrafts/client/requests/OrderDraftExpandedReq.d.ts +0 -21
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.ts +0 -19
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.ts +0 -14
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.js +0 -5
- package/dist/cjs/api/resources/taskArtifacts/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.ts +0 -13
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.js +0 -5
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/OrderDraftExpandedRes.js +0 -5
- package/dist/cjs/api/types/TaskDraftExpanded.d.ts +0 -10
- package/dist/cjs/api/types/TaskDraftExpanded.js +0 -5
- package/dist/cjs/api/types/TaskGroupDraftExpanded.d.ts +0 -10
- package/dist/cjs/api/types/TaskGroupDraftExpanded.js +0 -5
- package/dist/cjs/core/exports.d.ts +0 -1
- package/dist/cjs/core/file/exports.d.ts +0 -1
- package/dist/cjs/core/file/exports.js +0 -2
- package/dist/cjs/core/file/file.d.ts +0 -5
- package/dist/cjs/core/file/file.js +0 -203
- package/dist/cjs/core/file/index.d.ts +0 -2
- package/dist/cjs/core/file/types.d.ts +0 -66
- package/dist/cjs/core/file/types.js +0 -2
- package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +0 -16
- package/dist/cjs/core/form-data-utils/FormDataWrapper.js +0 -208
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +0 -1
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +0 -12
- package/dist/cjs/core/form-data-utils/index.d.ts +0 -2
- package/dist/cjs/exports.d.ts +0 -1
- package/dist/esm/api/resources/orderDrafts/client/requests/OrderDraftExpandedListReq.d.mts +0 -21
- package/dist/esm/api/resources/orderDrafts/client/requests/OrderDraftExpandedReq.d.mts +0 -21
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.mts +0 -19
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.mts +0 -14
- package/dist/esm/api/resources/taskArtifacts/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.mts +0 -13
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.mjs +0 -4
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/OrderDraftExpandedRes.mjs +0 -4
- package/dist/esm/api/types/TaskDraftExpanded.d.mts +0 -10
- package/dist/esm/api/types/TaskDraftExpanded.mjs +0 -4
- package/dist/esm/api/types/TaskGroupDraftExpanded.d.mts +0 -10
- package/dist/esm/api/types/TaskGroupDraftExpanded.mjs +0 -4
- package/dist/esm/core/exports.d.mts +0 -1
- package/dist/esm/core/exports.mjs +0 -1
- package/dist/esm/core/file/exports.d.mts +0 -1
- package/dist/esm/core/file/file.d.mts +0 -5
- package/dist/esm/core/file/file.mjs +0 -167
- package/dist/esm/core/file/index.d.mts +0 -2
- package/dist/esm/core/file/index.mjs +0 -2
- package/dist/esm/core/file/types.d.mts +0 -66
- package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +0 -16
- package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +0 -170
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +0 -1
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +0 -9
- package/dist/esm/core/form-data-utils/index.d.mts +0 -2
- package/dist/esm/core/form-data-utils/index.mjs +0 -2
- package/dist/esm/exports.d.mts +0 -1
- package/dist/esm/exports.mjs +0 -1
- /package/dist/{esm/api/resources/taskArtifacts/client/requests/index.mjs → cjs/api/resources/cargos/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/client/requests → cargos/client}/index.js +0 -0
- /package/dist/cjs/api/resources/orderDrafts/{client/requests/OrderDraftExpandedListReq.js → resources/expanded/client/requests/ExpandedListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/{taskArtifacts/resources/images → orderDrafts/resources/expanded}/client/requests/index.js +0 -0
- /package/dist/cjs/api/{resources/orderDrafts/client/requests/OrderDraftExpandedReq.js → types/OrderDraftExpanded.js} +0 -0
- /package/dist/cjs/api/{resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.js → types/OrderDraftSortByEnum.js} +0 -0
- /package/dist/esm/api/resources/{taskArtifacts/resources/images/client/requests/index.mjs → cargos/client/index.d.mts} +0 -0
- /package/dist/esm/{core/file/exports.mjs → api/resources/cargos/client/index.mjs} +0 -0
- /package/dist/esm/api/resources/orderDrafts/{client/requests/OrderDraftExpandedListReq.mjs → resources/expanded/client/requests/ExpandedListV1Request.mjs} +0 -0
- /package/dist/esm/{core/file/types.mjs → api/resources/orderDrafts/resources/expanded/client/requests/index.mjs} +0 -0
- /package/dist/esm/api/{resources/orderDrafts/client/requests/OrderDraftExpandedReq.mjs → types/OrderDraftExpanded.mjs} +0 -0
- /package/dist/esm/api/{resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.mjs → types/OrderDraftSortByEnum.mjs} +0 -0
|
@@ -108,134 +108,6 @@ class Images {
|
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
/**
|
|
112
|
-
* Uploads an image file to a task_artifact with automatic blurhash generation. | (UploadFile) -> (bool)
|
|
113
|
-
*
|
|
114
|
-
* @param {string} taskArtifactId
|
|
115
|
-
* @param {Chrt.taskArtifacts.BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost} request
|
|
116
|
-
* @param {Images.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
|
-
*
|
|
118
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* import { createReadStream } from "fs";
|
|
122
|
-
* await client.taskArtifacts.images.uploadByTaskArtifactIdV1("task_artifact_id", {
|
|
123
|
-
* image: fs.createReadStream("/path/to/your/file")
|
|
124
|
-
* })
|
|
125
|
-
*/
|
|
126
|
-
uploadByTaskArtifactIdV1(taskArtifactId, request, requestOptions) {
|
|
127
|
-
return core.HttpResponsePromise.fromPromise(this.__uploadByTaskArtifactIdV1(taskArtifactId, request, requestOptions));
|
|
128
|
-
}
|
|
129
|
-
__uploadByTaskArtifactIdV1(taskArtifactId, request, requestOptions) {
|
|
130
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
-
var _a, _b, _c, _d;
|
|
132
|
-
const _request = yield core.newFormData();
|
|
133
|
-
yield _request.appendFile("image", request.image);
|
|
134
|
-
const _maybeEncodedRequest = yield _request.getRequest();
|
|
135
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
136
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
137
|
-
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, `oort/task_artifacts/images/upload/v1/${encodeURIComponent(taskArtifactId)}`),
|
|
138
|
-
method: "POST",
|
|
139
|
-
headers: _headers,
|
|
140
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
141
|
-
requestType: "file",
|
|
142
|
-
duplex: _maybeEncodedRequest.duplex,
|
|
143
|
-
body: _maybeEncodedRequest.body,
|
|
144
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
145
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
146
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
147
|
-
});
|
|
148
|
-
if (_response.ok) {
|
|
149
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
150
|
-
}
|
|
151
|
-
if (_response.error.reason === "status-code") {
|
|
152
|
-
switch (_response.error.statusCode) {
|
|
153
|
-
case 422:
|
|
154
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
155
|
-
default:
|
|
156
|
-
throw new errors.ChrtError({
|
|
157
|
-
statusCode: _response.error.statusCode,
|
|
158
|
-
body: _response.error.body,
|
|
159
|
-
rawResponse: _response.rawResponse,
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
switch (_response.error.reason) {
|
|
164
|
-
case "non-json":
|
|
165
|
-
throw new errors.ChrtError({
|
|
166
|
-
statusCode: _response.error.statusCode,
|
|
167
|
-
body: _response.error.rawBody,
|
|
168
|
-
rawResponse: _response.rawResponse,
|
|
169
|
-
});
|
|
170
|
-
case "timeout":
|
|
171
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_artifacts/images/upload/v1/{task_artifact_id}.");
|
|
172
|
-
case "unknown":
|
|
173
|
-
throw new errors.ChrtError({
|
|
174
|
-
message: _response.error.errorMessage,
|
|
175
|
-
rawResponse: _response.rawResponse,
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Deletes a task_artifact image from both S3 storage and database metadata. | () -> (bool)
|
|
182
|
-
*
|
|
183
|
-
* @param {string} taskArtifactS3ObjectMetadataId
|
|
184
|
-
* @param {Images.RequestOptions} requestOptions - Request-specific configuration.
|
|
185
|
-
*
|
|
186
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
187
|
-
*
|
|
188
|
-
* @example
|
|
189
|
-
* await client.taskArtifacts.images.deleteByMetadataIdV1("task_artifact_s3_object_metadata_id")
|
|
190
|
-
*/
|
|
191
|
-
deleteByMetadataIdV1(taskArtifactS3ObjectMetadataId, requestOptions) {
|
|
192
|
-
return core.HttpResponsePromise.fromPromise(this.__deleteByMetadataIdV1(taskArtifactS3ObjectMetadataId, requestOptions));
|
|
193
|
-
}
|
|
194
|
-
__deleteByMetadataIdV1(taskArtifactS3ObjectMetadataId, requestOptions) {
|
|
195
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
-
var _a, _b, _c, _d;
|
|
197
|
-
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);
|
|
198
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
199
|
-
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, `oort/task_artifacts/images/delete/v1/${encodeURIComponent(taskArtifactS3ObjectMetadataId)}`),
|
|
200
|
-
method: "DELETE",
|
|
201
|
-
headers: _headers,
|
|
202
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
203
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
204
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
205
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
206
|
-
});
|
|
207
|
-
if (_response.ok) {
|
|
208
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
209
|
-
}
|
|
210
|
-
if (_response.error.reason === "status-code") {
|
|
211
|
-
switch (_response.error.statusCode) {
|
|
212
|
-
case 422:
|
|
213
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
214
|
-
default:
|
|
215
|
-
throw new errors.ChrtError({
|
|
216
|
-
statusCode: _response.error.statusCode,
|
|
217
|
-
body: _response.error.body,
|
|
218
|
-
rawResponse: _response.rawResponse,
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
switch (_response.error.reason) {
|
|
223
|
-
case "non-json":
|
|
224
|
-
throw new errors.ChrtError({
|
|
225
|
-
statusCode: _response.error.statusCode,
|
|
226
|
-
body: _response.error.rawBody,
|
|
227
|
-
rawResponse: _response.rawResponse,
|
|
228
|
-
});
|
|
229
|
-
case "timeout":
|
|
230
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/task_artifacts/images/delete/v1/{task_artifact_s3_object_metadata_id}.");
|
|
231
|
-
case "unknown":
|
|
232
|
-
throw new errors.ChrtError({
|
|
233
|
-
message: _response.error.errorMessage,
|
|
234
|
-
rawResponse: _response.rawResponse,
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
111
|
_getAuthorizationHeader() {
|
|
240
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
241
113
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -1,17 +1,2 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -32,11 +32,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
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
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
36
|
exports.blurhash = exports.images = void 0;
|
|
40
37
|
exports.images = __importStar(require("./images/index.js"));
|
|
41
38
|
exports.blurhash = __importStar(require("./blurhash/index.js"));
|
|
42
|
-
__exportStar(require("./images/client/requests/index.js"), exports);
|
|
@@ -31,7 +31,7 @@ export declare class Devices {
|
|
|
31
31
|
protected readonly _options: Devices.Options;
|
|
32
32
|
constructor(_options?: Devices.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Registers a tracking device to the
|
|
34
|
+
* Registers a tracking device to the caller's organization. If device is already registered to a different organization, registration is blocked. | (DevicesRegisterToOrgReq1) -> (PydanticObjectId)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.tracking.DevicesRegisterToOrgReq1} request
|
|
37
37
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -75,7 +75,7 @@ export declare class Devices {
|
|
|
75
75
|
deleteV1(request?: Chrt.tracking.DevicesDeleteV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
76
76
|
private __deleteV1;
|
|
77
77
|
/**
|
|
78
|
-
* Retrieves a single device by its MAC address or ID. Access restricted to the
|
|
78
|
+
* Retrieves a single device by its MAC address or ID. Access restricted to the caller's organization. | () -> (Device1)
|
|
79
79
|
*
|
|
80
80
|
* @param {Chrt.tracking.DevicesGetV1Request} request
|
|
81
81
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -91,7 +91,7 @@ export declare class Devices {
|
|
|
91
91
|
getV1(request?: Chrt.tracking.DevicesGetV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.Device1>;
|
|
92
92
|
private __getV1;
|
|
93
93
|
/**
|
|
94
|
-
* Returns all tracking devices registered to the
|
|
94
|
+
* Returns all tracking devices registered to the caller's organization. | () -> (list[Device1])
|
|
95
95
|
*
|
|
96
96
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
97
|
*
|
|
@@ -56,7 +56,7 @@ class Devices {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Registers a tracking device to the
|
|
59
|
+
* Registers a tracking device to the caller's organization. If device is already registered to a different organization, registration is blocked. | (DevicesRegisterToOrgReq1) -> (PydanticObjectId)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.tracking.DevicesRegisterToOrgReq1} request
|
|
62
62
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -252,7 +252,7 @@ class Devices {
|
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
|
-
* Retrieves a single device by its MAC address or ID. Access restricted to the
|
|
255
|
+
* Retrieves a single device by its MAC address or ID. Access restricted to the caller's organization. | () -> (Device1)
|
|
256
256
|
*
|
|
257
257
|
* @param {Chrt.tracking.DevicesGetV1Request} request
|
|
258
258
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -322,7 +322,7 @@ class Devices {
|
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
|
-
* Returns all tracking devices registered to the
|
|
325
|
+
* Returns all tracking devices registered to the caller's organization. | () -> (list[Device1])
|
|
326
326
|
*
|
|
327
327
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
328
328
|
*
|
|
@@ -31,7 +31,7 @@ export declare class SessionByDevice {
|
|
|
31
31
|
protected readonly _options: SessionByDevice.Options;
|
|
32
32
|
constructor(_options?: SessionByDevice.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Returns all tracking sessions for the
|
|
34
|
+
* Returns all tracking sessions for the caller's organization. | () -> (list[Session1])
|
|
35
35
|
*
|
|
36
36
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -41,7 +41,7 @@ export declare class SessionByDevice {
|
|
|
41
41
|
listV1(requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.Session1[]>;
|
|
42
42
|
private __listV1;
|
|
43
43
|
/**
|
|
44
|
-
* Retrieves a single session by its ID. Access restricted to the
|
|
44
|
+
* Retrieves a single session by its ID. Access restricted to the caller's organization. | () -> (Session1)
|
|
45
45
|
*
|
|
46
46
|
* @param {Chrt.tracking.SessionByDeviceGetV1Request} request
|
|
47
47
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,7 +56,7 @@ export declare class SessionByDevice {
|
|
|
56
56
|
getV1(request: Chrt.tracking.SessionByDeviceGetV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.Session1>;
|
|
57
57
|
private __getV1;
|
|
58
58
|
/**
|
|
59
|
-
* Returns the most recent data point for a session, excluding outliers. Access restricted to the
|
|
59
|
+
* Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | () -> (TrackingSessionByDeviceDataPoint1 | None)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.tracking.SessionByDeviceLastSeenV1Request} request
|
|
62
62
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,7 +56,7 @@ class SessionByDevice {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Returns all tracking sessions for the
|
|
59
|
+
* Returns all tracking sessions for the caller's organization. | () -> (list[Session1])
|
|
60
60
|
*
|
|
61
61
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
@@ -107,7 +107,7 @@ class SessionByDevice {
|
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* Retrieves a single session by its ID. Access restricted to the
|
|
110
|
+
* Retrieves a single session by its ID. Access restricted to the caller's organization. | () -> (Session1)
|
|
111
111
|
*
|
|
112
112
|
* @param {Chrt.tracking.SessionByDeviceGetV1Request} request
|
|
113
113
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -171,7 +171,7 @@ class SessionByDevice {
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
|
-
* Returns the most recent data point for a session, excluding outliers. Access restricted to the
|
|
174
|
+
* Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | () -> (TrackingSessionByDeviceDataPoint1 | None)
|
|
175
175
|
*
|
|
176
176
|
* @param {Chrt.tracking.SessionByDeviceLastSeenV1Request} request
|
|
177
177
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,7 +31,7 @@ export declare class Users {
|
|
|
31
31
|
protected readonly _options: Users.Options;
|
|
32
32
|
constructor(_options?: Users.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves public user data for the
|
|
34
|
+
* Retrieves public user data for the caller. | () -> (UserPublicData1)
|
|
35
35
|
*
|
|
36
36
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -55,7 +55,7 @@ class Users {
|
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Retrieves public user data for the
|
|
58
|
+
* Retrieves public user data for the caller. | () -> (UserPublicData1)
|
|
59
59
|
*
|
|
60
60
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
* - OTHER then PICKUP then no more tasks (because the cargo is not released after PICKUP)
|
|
19
19
|
* - DELIVER then OTHER (because the cargo is not obtained before DELIVER)
|
|
20
20
|
*/
|
|
21
|
-
export type ChrtGroundCourierTaskActionEnum1 = "chrt_ground_courier__pickup" | "chrt_ground_courier__recover_from_airline" | "chrt_ground_courier__deliver" | "
|
|
21
|
+
export type ChrtGroundCourierTaskActionEnum1 = "chrt_ground_courier__pickup" | "chrt_ground_courier__recover_from_airline" | "chrt_ground_courier__deliver" | "chrt_ground_courier__tender_to_airline" | "chrt_ground_courier__consolidate" | "chrt_ground_courier__hold" | "chrt_ground_courier__other";
|
|
22
22
|
export declare const ChrtGroundCourierTaskActionEnum1: {
|
|
23
23
|
readonly ChrtGroundCourierPickup: "chrt_ground_courier__pickup";
|
|
24
24
|
readonly ChrtGroundCourierRecoverFromAirline: "chrt_ground_courier__recover_from_airline";
|
|
25
25
|
readonly ChrtGroundCourierDeliver: "chrt_ground_courier__deliver";
|
|
26
|
-
readonly
|
|
26
|
+
readonly ChrtGroundCourierTenderToAirline: "chrt_ground_courier__tender_to_airline";
|
|
27
27
|
readonly ChrtGroundCourierConsolidate: "chrt_ground_courier__consolidate";
|
|
28
28
|
readonly ChrtGroundCourierHold: "chrt_ground_courier__hold";
|
|
29
29
|
readonly ChrtGroundCourierOther: "chrt_ground_courier__other";
|
|
@@ -8,7 +8,7 @@ exports.ChrtGroundCourierTaskActionEnum1 = {
|
|
|
8
8
|
ChrtGroundCourierPickup: "chrt_ground_courier__pickup",
|
|
9
9
|
ChrtGroundCourierRecoverFromAirline: "chrt_ground_courier__recover_from_airline",
|
|
10
10
|
ChrtGroundCourierDeliver: "chrt_ground_courier__deliver",
|
|
11
|
-
|
|
11
|
+
ChrtGroundCourierTenderToAirline: "chrt_ground_courier__tender_to_airline",
|
|
12
12
|
ChrtGroundCourierConsolidate: "chrt_ground_courier__consolidate",
|
|
13
13
|
ChrtGroundCourierHold: "chrt_ground_courier__hold",
|
|
14
14
|
ChrtGroundCourierOther: "chrt_ground_courier__other",
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
|
-
export interface
|
|
5
|
+
export interface OrderDraftExpanded {
|
|
6
6
|
order: Chrt.Order1;
|
|
7
|
-
task_groups_expanded?: Chrt.TaskGroupDraftExpanded[] | null;
|
|
8
|
-
cargos?: Chrt.Cargo1[] | null;
|
|
9
|
-
shipper_org_company_name?: string | null;
|
|
10
|
-
shipper_org_handle?: string | null;
|
|
11
|
-
off_chrt_shipper_org_company_name?: string | null;
|
|
12
7
|
forwarder_org_company_name?: string | null;
|
|
13
8
|
forwarder_org_handle?: string | null;
|
|
9
|
+
shipper_org_company_name?: string | null;
|
|
10
|
+
off_chrt_shipper_org_company_name?: string | null;
|
|
11
|
+
task_groups_expanded?: Chrt.TaskGroupExpanded[] | null;
|
|
12
|
+
cargos?: Chrt.Cargo1[] | null;
|
|
14
13
|
}
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* Response model for listing draft orders.
|
|
7
|
-
*/
|
|
8
5
|
export interface OrderDraftExpandedListRes {
|
|
9
|
-
|
|
6
|
+
order_drafts_expanded: Chrt.OrderDraftExpanded[];
|
|
10
7
|
total_count: number;
|
|
11
8
|
}
|
|
@@ -56,8 +56,9 @@ export * from "./OffChrtShipperOrg1.js";
|
|
|
56
56
|
export * from "./OnboardCourierTaskActionEnum1.js";
|
|
57
57
|
export * from "./Order1.js";
|
|
58
58
|
export * from "./OrderAndTaskGroupExpandedReq.js";
|
|
59
|
+
export * from "./OrderDraftExpanded.js";
|
|
59
60
|
export * from "./OrderDraftExpandedListRes.js";
|
|
60
|
-
export * from "./
|
|
61
|
+
export * from "./OrderDraftSortByEnum.js";
|
|
61
62
|
export * from "./OrderExpanded.js";
|
|
62
63
|
export * from "./OrderSortByEnum.js";
|
|
63
64
|
export * from "./OrderStatusEnum1.js";
|
|
@@ -104,10 +105,8 @@ export * from "./TaskArtifactStatusEnum1.js";
|
|
|
104
105
|
export * from "./TaskArtifactTypeEnum1.js";
|
|
105
106
|
export * from "./TaskClientCreate1.js";
|
|
106
107
|
export * from "./TaskClientUpdate1.js";
|
|
107
|
-
export * from "./TaskDraftExpanded.js";
|
|
108
108
|
export * from "./TaskExpanded.js";
|
|
109
109
|
export * from "./TaskGroup1.js";
|
|
110
|
-
export * from "./TaskGroupDraftExpanded.js";
|
|
111
110
|
export * from "./TaskGroupExpanded.js";
|
|
112
111
|
export * from "./TaskGroupExpandedListRes.js";
|
|
113
112
|
export * from "./TaskGroupMessage1.js";
|
|
@@ -72,8 +72,9 @@ __exportStar(require("./OffChrtShipperOrg1.js"), exports);
|
|
|
72
72
|
__exportStar(require("./OnboardCourierTaskActionEnum1.js"), exports);
|
|
73
73
|
__exportStar(require("./Order1.js"), exports);
|
|
74
74
|
__exportStar(require("./OrderAndTaskGroupExpandedReq.js"), exports);
|
|
75
|
+
__exportStar(require("./OrderDraftExpanded.js"), exports);
|
|
75
76
|
__exportStar(require("./OrderDraftExpandedListRes.js"), exports);
|
|
76
|
-
__exportStar(require("./
|
|
77
|
+
__exportStar(require("./OrderDraftSortByEnum.js"), exports);
|
|
77
78
|
__exportStar(require("./OrderExpanded.js"), exports);
|
|
78
79
|
__exportStar(require("./OrderSortByEnum.js"), exports);
|
|
79
80
|
__exportStar(require("./OrderStatusEnum1.js"), exports);
|
|
@@ -120,10 +121,8 @@ __exportStar(require("./TaskArtifactStatusEnum1.js"), exports);
|
|
|
120
121
|
__exportStar(require("./TaskArtifactTypeEnum1.js"), exports);
|
|
121
122
|
__exportStar(require("./TaskClientCreate1.js"), exports);
|
|
122
123
|
__exportStar(require("./TaskClientUpdate1.js"), exports);
|
|
123
|
-
__exportStar(require("./TaskDraftExpanded.js"), exports);
|
|
124
124
|
__exportStar(require("./TaskExpanded.js"), exports);
|
|
125
125
|
__exportStar(require("./TaskGroup1.js"), exports);
|
|
126
|
-
__exportStar(require("./TaskGroupDraftExpanded.js"), exports);
|
|
127
126
|
__exportStar(require("./TaskGroupExpanded.js"), exports);
|
|
128
127
|
__exportStar(require("./TaskGroupExpandedListRes.js"), exports);
|
|
129
128
|
__exportStar(require("./TaskGroupMessage1.js"), exports);
|
package/dist/cjs/core/index.d.ts
CHANGED
package/dist/cjs/core/index.js
CHANGED
|
@@ -36,11 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.url = void 0;
|
|
40
40
|
__exportStar(require("./fetcher/index.js"), exports);
|
|
41
41
|
__exportStar(require("./runtime/index.js"), exports);
|
|
42
42
|
exports.url = __importStar(require("./url/index.js"));
|
|
43
43
|
__exportStar(require("./auth/index.js"), exports);
|
|
44
44
|
__exportStar(require("./base64.js"), exports);
|
|
45
|
-
__exportStar(require("./form-data-utils/index.js"), exports);
|
|
46
|
-
exports.file = __importStar(require("./file/index.js"));
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -32,9 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
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
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
36
|
exports.ChrtEnvironment = exports.ChrtClient = exports.ChrtTimeoutError = exports.ChrtError = exports.Chrt = void 0;
|
|
40
37
|
exports.Chrt = __importStar(require("./api/index.js"));
|
|
@@ -45,4 +42,3 @@ var Client_js_1 = require("./Client.js");
|
|
|
45
42
|
Object.defineProperty(exports, "ChrtClient", { enumerable: true, get: function () { return Client_js_1.ChrtClient; } });
|
|
46
43
|
var environments_js_1 = require("./environments.js");
|
|
47
44
|
Object.defineProperty(exports, "ChrtEnvironment", { enumerable: true, get: function () { return environments_js_1.ChrtEnvironment; } });
|
|
48
|
-
__exportStar(require("./exports.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.320.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -17,7 +17,7 @@ import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
|
|
|
17
17
|
import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
18
18
|
import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.mjs";
|
|
19
19
|
import { Drivers } from "./api/resources/drivers/client/Client.mjs";
|
|
20
|
-
import {
|
|
20
|
+
import { Cargos } from "./api/resources/cargos/client/Client.mjs";
|
|
21
21
|
import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.mjs";
|
|
22
22
|
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
23
23
|
import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
|
|
@@ -29,6 +29,7 @@ import { Users } from "./api/resources/users/client/Client.mjs";
|
|
|
29
29
|
import { Utils } from "./api/resources/utils/client/Client.mjs";
|
|
30
30
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
31
31
|
import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.mjs";
|
|
32
|
+
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
|
|
32
33
|
import { Tracking } from "./api/resources/tracking/client/Client.mjs";
|
|
33
34
|
export declare namespace ChrtClient {
|
|
34
35
|
interface Options {
|
|
@@ -69,7 +70,7 @@ export declare class ChrtClient {
|
|
|
69
70
|
protected _dev: Dev | undefined;
|
|
70
71
|
protected _taskArtifactNotifications: TaskArtifactNotifications | undefined;
|
|
71
72
|
protected _drivers: Drivers | undefined;
|
|
72
|
-
protected
|
|
73
|
+
protected _cargos: Cargos | undefined;
|
|
73
74
|
protected _offChrtShipperOrg: OffChrtShipperOrg | undefined;
|
|
74
75
|
protected _orders: Orders | undefined;
|
|
75
76
|
protected _orderDrafts: OrderDrafts | undefined;
|
|
@@ -81,6 +82,7 @@ export declare class ChrtClient {
|
|
|
81
82
|
protected _utils: Utils | undefined;
|
|
82
83
|
protected _notifications: Notifications | undefined;
|
|
83
84
|
protected _orgInfoForConnections: OrgInfoForConnections | undefined;
|
|
85
|
+
protected _taskArtifacts: TaskArtifacts | undefined;
|
|
84
86
|
protected _tracking: Tracking | undefined;
|
|
85
87
|
constructor(_options?: ChrtClient.Options);
|
|
86
88
|
get payments(): Payments;
|
|
@@ -97,7 +99,7 @@ export declare class ChrtClient {
|
|
|
97
99
|
get dev(): Dev;
|
|
98
100
|
get taskArtifactNotifications(): TaskArtifactNotifications;
|
|
99
101
|
get drivers(): Drivers;
|
|
100
|
-
get
|
|
102
|
+
get cargos(): Cargos;
|
|
101
103
|
get offChrtShipperOrg(): OffChrtShipperOrg;
|
|
102
104
|
get orders(): Orders;
|
|
103
105
|
get orderDrafts(): OrderDrafts;
|
|
@@ -109,5 +111,6 @@ export declare class ChrtClient {
|
|
|
109
111
|
get utils(): Utils;
|
|
110
112
|
get notifications(): Notifications;
|
|
111
113
|
get orgInfoForConnections(): OrgInfoForConnections;
|
|
114
|
+
get taskArtifacts(): TaskArtifacts;
|
|
112
115
|
get tracking(): Tracking;
|
|
113
116
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
|
|
|
17
17
|
import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
18
18
|
import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.mjs";
|
|
19
19
|
import { Drivers } from "./api/resources/drivers/client/Client.mjs";
|
|
20
|
-
import {
|
|
20
|
+
import { Cargos } from "./api/resources/cargos/client/Client.mjs";
|
|
21
21
|
import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.mjs";
|
|
22
22
|
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
23
23
|
import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
|
|
@@ -29,14 +29,15 @@ import { Users } from "./api/resources/users/client/Client.mjs";
|
|
|
29
29
|
import { Utils } from "./api/resources/utils/client/Client.mjs";
|
|
30
30
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
31
31
|
import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.mjs";
|
|
32
|
+
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
|
|
32
33
|
import { Tracking } from "./api/resources/tracking/client/Client.mjs";
|
|
33
34
|
export class ChrtClient {
|
|
34
35
|
constructor(_options = {}) {
|
|
35
36
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
36
37
|
"X-Fern-Language": "JavaScript",
|
|
37
38
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
38
|
-
"X-Fern-SDK-Version": "1.
|
|
39
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
39
|
+
"X-Fern-SDK-Version": "1.320.0",
|
|
40
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.320.0",
|
|
40
41
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
41
42
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
42
43
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -97,9 +98,9 @@ export class ChrtClient {
|
|
|
97
98
|
var _a;
|
|
98
99
|
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Drivers(this._options)));
|
|
99
100
|
}
|
|
100
|
-
get
|
|
101
|
+
get cargos() {
|
|
101
102
|
var _a;
|
|
102
|
-
return ((_a = this.
|
|
103
|
+
return ((_a = this._cargos) !== null && _a !== void 0 ? _a : (this._cargos = new Cargos(this._options)));
|
|
103
104
|
}
|
|
104
105
|
get offChrtShipperOrg() {
|
|
105
106
|
var _a;
|
|
@@ -145,6 +146,10 @@ export class ChrtClient {
|
|
|
145
146
|
var _a;
|
|
146
147
|
return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new OrgInfoForConnections(this._options)));
|
|
147
148
|
}
|
|
149
|
+
get taskArtifacts() {
|
|
150
|
+
var _a;
|
|
151
|
+
return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new TaskArtifacts(this._options)));
|
|
152
|
+
}
|
|
148
153
|
get tracking() {
|
|
149
154
|
var _a;
|
|
150
155
|
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Tracking(this._options)));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../index.mjs";
|
|
7
|
+
export declare namespace Cargos {
|
|
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 Cargos {
|
|
31
|
+
protected readonly _options: Cargos.Options;
|
|
32
|
+
constructor(_options?: Cargos.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Updates a cargo's details. Cargo must be in STAGED, IN_TRANSIT, DELIVERED, or EXCEPTION status. | authz_personas=[lig_org_operators] | (CargoClientUpdate1) -> (PydanticObjectId)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} cargoId
|
|
37
|
+
* @param {Chrt.CargoClientUpdate1} request
|
|
38
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.cargos.updateV1("cargo_id", {})
|
|
44
|
+
*/
|
|
45
|
+
updateV1(cargoId: string, request: Chrt.CargoClientUpdate1, requestOptions?: Cargos.RequestOptions): core.HttpResponsePromise<string>;
|
|
46
|
+
private __updateV1;
|
|
47
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
48
|
+
}
|