@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
|
@@ -8,6 +8,7 @@ import { TaskGroup } from "../resources/taskGroup/client/Client.mjs";
|
|
|
8
8
|
import { Task } from "../resources/task/client/Client.mjs";
|
|
9
9
|
import { TaskArtifact } from "../resources/taskArtifact/client/Client.mjs";
|
|
10
10
|
import { Cargo } from "../resources/cargo/client/Client.mjs";
|
|
11
|
+
import { Expanded } from "../resources/expanded/client/Client.mjs";
|
|
11
12
|
export declare namespace OrderDrafts {
|
|
12
13
|
interface Options {
|
|
13
14
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -37,11 +38,13 @@ export declare class OrderDrafts {
|
|
|
37
38
|
protected _task: Task | undefined;
|
|
38
39
|
protected _taskArtifact: TaskArtifact | undefined;
|
|
39
40
|
protected _cargo: Cargo | undefined;
|
|
41
|
+
protected _expanded: Expanded | undefined;
|
|
40
42
|
constructor(_options?: OrderDrafts.Options);
|
|
41
43
|
get taskGroup(): TaskGroup;
|
|
42
44
|
get task(): Task;
|
|
43
45
|
get taskArtifact(): TaskArtifact;
|
|
44
46
|
get cargo(): Cargo;
|
|
47
|
+
get expanded(): Expanded;
|
|
45
48
|
/**
|
|
46
49
|
* Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
47
50
|
*
|
|
@@ -84,32 +87,19 @@ export declare class OrderDrafts {
|
|
|
84
87
|
deleteV1(orderId: string, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
85
88
|
private __deleteV1;
|
|
86
89
|
/**
|
|
87
|
-
* Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (
|
|
90
|
+
* Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpanded)
|
|
88
91
|
*
|
|
89
92
|
* @param {string} orderIdOrShortId
|
|
90
|
-
* @param {Chrt.
|
|
93
|
+
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
91
94
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
95
|
*
|
|
93
96
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
94
97
|
*
|
|
95
98
|
* @example
|
|
96
|
-
* await client.orderDrafts.expandedV1("order_id_or_short_id")
|
|
99
|
+
* await client.orderDrafts.expandedV1("order_id_or_short_id", {})
|
|
97
100
|
*/
|
|
98
|
-
expandedV1(orderIdOrShortId: string, request
|
|
101
|
+
expandedV1(orderIdOrShortId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpanded>;
|
|
99
102
|
private __expandedV1;
|
|
100
|
-
/**
|
|
101
|
-
* Lists all draft orders created by the authenticated user with optional expanded related data. | (OrderDraftExpandedListReq) -> (OrderDraftExpandedListRes)
|
|
102
|
-
*
|
|
103
|
-
* @param {Chrt.OrderDraftExpandedListReq} request
|
|
104
|
-
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
|
-
*
|
|
106
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
* await client.orderDrafts.expandedListV1()
|
|
110
|
-
*/
|
|
111
|
-
expandedListV1(request?: Chrt.OrderDraftExpandedListReq, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedListRes>;
|
|
112
|
-
private __expandedListV1;
|
|
113
103
|
/**
|
|
114
104
|
* Checks whether the draft order satisfies all requirements to move into staging. | () -> (bool)
|
|
115
105
|
*
|
|
@@ -19,6 +19,7 @@ import { TaskGroup } from "../resources/taskGroup/client/Client.mjs";
|
|
|
19
19
|
import { Task } from "../resources/task/client/Client.mjs";
|
|
20
20
|
import { TaskArtifact } from "../resources/taskArtifact/client/Client.mjs";
|
|
21
21
|
import { Cargo } from "../resources/cargo/client/Client.mjs";
|
|
22
|
+
import { Expanded } from "../resources/expanded/client/Client.mjs";
|
|
22
23
|
export class OrderDrafts {
|
|
23
24
|
constructor(_options = {}) {
|
|
24
25
|
this._options = _options;
|
|
@@ -39,6 +40,10 @@ export class OrderDrafts {
|
|
|
39
40
|
var _a;
|
|
40
41
|
return ((_a = this._cargo) !== null && _a !== void 0 ? _a : (this._cargo = new Cargo(this._options)));
|
|
41
42
|
}
|
|
43
|
+
get expanded() {
|
|
44
|
+
var _a;
|
|
45
|
+
return ((_a = this._expanded) !== null && _a !== void 0 ? _a : (this._expanded = new Expanded(this._options)));
|
|
46
|
+
}
|
|
42
47
|
/**
|
|
43
48
|
* Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
|
|
44
49
|
*
|
|
@@ -225,22 +230,22 @@ export class OrderDrafts {
|
|
|
225
230
|
});
|
|
226
231
|
}
|
|
227
232
|
/**
|
|
228
|
-
* Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (
|
|
233
|
+
* Fetches a single draft order with optional expanded related data. Only the creator of the draft order can access it. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpanded)
|
|
229
234
|
*
|
|
230
235
|
* @param {string} orderIdOrShortId
|
|
231
|
-
* @param {Chrt.
|
|
236
|
+
* @param {Chrt.OrderAndTaskGroupExpandedReq} request
|
|
232
237
|
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
233
238
|
*
|
|
234
239
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
235
240
|
*
|
|
236
241
|
* @example
|
|
237
|
-
* await client.orderDrafts.expandedV1("order_id_or_short_id")
|
|
242
|
+
* await client.orderDrafts.expandedV1("order_id_or_short_id", {})
|
|
238
243
|
*/
|
|
239
|
-
expandedV1(orderIdOrShortId, request
|
|
244
|
+
expandedV1(orderIdOrShortId, request, requestOptions) {
|
|
240
245
|
return core.HttpResponsePromise.fromPromise(this.__expandedV1(orderIdOrShortId, request, requestOptions));
|
|
241
246
|
}
|
|
242
|
-
__expandedV1(
|
|
243
|
-
return __awaiter(this,
|
|
247
|
+
__expandedV1(orderIdOrShortId, request, requestOptions) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
249
|
var _a, _b, _c, _d;
|
|
245
250
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
246
251
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -287,68 +292,6 @@ export class OrderDrafts {
|
|
|
287
292
|
}
|
|
288
293
|
});
|
|
289
294
|
}
|
|
290
|
-
/**
|
|
291
|
-
* Lists all draft orders created by the authenticated user with optional expanded related data. | (OrderDraftExpandedListReq) -> (OrderDraftExpandedListRes)
|
|
292
|
-
*
|
|
293
|
-
* @param {Chrt.OrderDraftExpandedListReq} request
|
|
294
|
-
* @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
295
|
-
*
|
|
296
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
297
|
-
*
|
|
298
|
-
* @example
|
|
299
|
-
* await client.orderDrafts.expandedListV1()
|
|
300
|
-
*/
|
|
301
|
-
expandedListV1(request = {}, requestOptions) {
|
|
302
|
-
return core.HttpResponsePromise.fromPromise(this.__expandedListV1(request, requestOptions));
|
|
303
|
-
}
|
|
304
|
-
__expandedListV1() {
|
|
305
|
-
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
306
|
-
var _a, _b, _c, _d;
|
|
307
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
308
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
309
|
-
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/order_drafts/expanded/list/v1"),
|
|
310
|
-
method: "POST",
|
|
311
|
-
headers: _headers,
|
|
312
|
-
contentType: "application/json",
|
|
313
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
314
|
-
requestType: "json",
|
|
315
|
-
body: request,
|
|
316
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
317
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
318
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
319
|
-
});
|
|
320
|
-
if (_response.ok) {
|
|
321
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
322
|
-
}
|
|
323
|
-
if (_response.error.reason === "status-code") {
|
|
324
|
-
switch (_response.error.statusCode) {
|
|
325
|
-
case 422:
|
|
326
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
327
|
-
default:
|
|
328
|
-
throw new errors.ChrtError({
|
|
329
|
-
statusCode: _response.error.statusCode,
|
|
330
|
-
body: _response.error.body,
|
|
331
|
-
rawResponse: _response.rawResponse,
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
switch (_response.error.reason) {
|
|
336
|
-
case "non-json":
|
|
337
|
-
throw new errors.ChrtError({
|
|
338
|
-
statusCode: _response.error.statusCode,
|
|
339
|
-
body: _response.error.rawBody,
|
|
340
|
-
rawResponse: _response.rawResponse,
|
|
341
|
-
});
|
|
342
|
-
case "timeout":
|
|
343
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/order_drafts/expanded/list/v1.");
|
|
344
|
-
case "unknown":
|
|
345
|
-
throw new errors.ChrtError({
|
|
346
|
-
message: _response.error.errorMessage,
|
|
347
|
-
rawResponse: _response.rawResponse,
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
295
|
/**
|
|
353
296
|
* Checks whether the draft order satisfies all requirements to move into staging. | () -> (bool)
|
|
354
297
|
*
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
export { type OrdersNewDraftReq } from "./OrdersNewDraftReq.mjs";
|
|
2
2
|
export { type OrdersDraftUpdateReq } from "./OrdersDraftUpdateReq.mjs";
|
|
3
|
-
export { type OrderDraftExpandedReq } from "./OrderDraftExpandedReq.mjs";
|
|
4
|
-
export { type OrderDraftExpandedListReq } from "./OrderDraftExpandedListReq.mjs";
|
|
@@ -0,0 +1,55 @@
|
|
|
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 Expanded {
|
|
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 Expanded {
|
|
31
|
+
protected readonly _options: Expanded.Options;
|
|
32
|
+
constructor(_options?: Expanded.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Lists expanded draft orders for the creator with filtering, sorting, and pagination. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpandedListRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.orderDrafts.ExpandedListV1Request} request
|
|
37
|
+
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.orderDrafts.expanded.listV1({
|
|
43
|
+
* sort_by: "draft_started_at_timestamp",
|
|
44
|
+
* sort_order: "ascending",
|
|
45
|
+
* page: 1,
|
|
46
|
+
* page_size: 1,
|
|
47
|
+
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
48
|
+
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
49
|
+
* body: {}
|
|
50
|
+
* })
|
|
51
|
+
*/
|
|
52
|
+
listV1(request: Chrt.orderDrafts.ExpandedListV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedListRes>;
|
|
53
|
+
private __listV1;
|
|
54
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
18
|
+
export class Expanded {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists expanded draft orders for the creator with filtering, sorting, and pagination. | (OrderAndTaskGroupExpandedReq) -> (OrderDraftExpandedListRes)
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.orderDrafts.ExpandedListV1Request} request
|
|
26
|
+
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.orderDrafts.expanded.listV1({
|
|
32
|
+
* sort_by: "draft_started_at_timestamp",
|
|
33
|
+
* sort_order: "ascending",
|
|
34
|
+
* page: 1,
|
|
35
|
+
* page_size: 1,
|
|
36
|
+
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
37
|
+
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
38
|
+
* body: {}
|
|
39
|
+
* })
|
|
40
|
+
*/
|
|
41
|
+
listV1(request, requestOptions) {
|
|
42
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
|
|
43
|
+
}
|
|
44
|
+
__listV1(request, requestOptions) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
var _a, _b, _c, _d, _e, _f;
|
|
47
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, body: _body, } = request;
|
|
48
|
+
const _queryParams = {};
|
|
49
|
+
if (sortBy !== undefined) {
|
|
50
|
+
_queryParams["sort_by"] = sortBy;
|
|
51
|
+
}
|
|
52
|
+
if (sortOrder !== undefined) {
|
|
53
|
+
_queryParams["sort_order"] = sortOrder;
|
|
54
|
+
}
|
|
55
|
+
if (page !== undefined) {
|
|
56
|
+
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
57
|
+
}
|
|
58
|
+
if (pageSize !== undefined) {
|
|
59
|
+
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
60
|
+
}
|
|
61
|
+
if (filterDraftStartedAtTimestampLte !== undefined) {
|
|
62
|
+
_queryParams["filter_draft_started_at_timestamp_lte"] = filterDraftStartedAtTimestampLte;
|
|
63
|
+
}
|
|
64
|
+
if (filterDraftStartedAtTimestampGte !== undefined) {
|
|
65
|
+
_queryParams["filter_draft_started_at_timestamp_gte"] = filterDraftStartedAtTimestampGte;
|
|
66
|
+
}
|
|
67
|
+
let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
68
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
69
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "oort/order_drafts/expanded/list/v1"),
|
|
70
|
+
method: "POST",
|
|
71
|
+
headers: _headers,
|
|
72
|
+
contentType: "application/json",
|
|
73
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
74
|
+
requestType: "json",
|
|
75
|
+
body: _body,
|
|
76
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
77
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
78
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
79
|
+
});
|
|
80
|
+
if (_response.ok) {
|
|
81
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
82
|
+
}
|
|
83
|
+
if (_response.error.reason === "status-code") {
|
|
84
|
+
switch (_response.error.statusCode) {
|
|
85
|
+
case 422:
|
|
86
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
87
|
+
default:
|
|
88
|
+
throw new errors.ChrtError({
|
|
89
|
+
statusCode: _response.error.statusCode,
|
|
90
|
+
body: _response.error.body,
|
|
91
|
+
rawResponse: _response.rawResponse,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
switch (_response.error.reason) {
|
|
96
|
+
case "non-json":
|
|
97
|
+
throw new errors.ChrtError({
|
|
98
|
+
statusCode: _response.error.statusCode,
|
|
99
|
+
body: _response.error.rawBody,
|
|
100
|
+
rawResponse: _response.rawResponse,
|
|
101
|
+
});
|
|
102
|
+
case "timeout":
|
|
103
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/order_drafts/expanded/list/v1.");
|
|
104
|
+
case "unknown":
|
|
105
|
+
throw new errors.ChrtError({
|
|
106
|
+
message: _response.error.errorMessage,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
_getAuthorizationHeader() {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
115
|
+
if (bearer != null) {
|
|
116
|
+
return `Bearer ${bearer}`;
|
|
117
|
+
}
|
|
118
|
+
return undefined;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* sort_by: "draft_started_at_timestamp",
|
|
9
|
+
* sort_order: "ascending",
|
|
10
|
+
* page: 1,
|
|
11
|
+
* page_size: 1,
|
|
12
|
+
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
13
|
+
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
14
|
+
* body: {}
|
|
15
|
+
* }
|
|
16
|
+
*/
|
|
17
|
+
export interface ExpandedListV1Request {
|
|
18
|
+
sort_by?: Chrt.OrderDraftSortByEnum | null;
|
|
19
|
+
sort_order?: Chrt.orderDrafts.ExpandedListV1RequestSortOrder | null;
|
|
20
|
+
page?: number | null;
|
|
21
|
+
page_size?: number | null;
|
|
22
|
+
filter_draft_started_at_timestamp_lte?: string | null;
|
|
23
|
+
filter_draft_started_at_timestamp_gte?: string | null;
|
|
24
|
+
body: Chrt.OrderAndTaskGroupExpandedReq;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ExpandedListV1Request } from "./ExpandedListV1Request.mjs";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ExpandedListV1RequestSortOrder = "ascending" | "descending";
|
|
5
|
+
export declare const ExpandedListV1RequestSortOrder: {
|
|
6
|
+
readonly Ascending: "ascending";
|
|
7
|
+
readonly Descending: "descending";
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ExpandedListV1RequestSortOrder.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ExpandedListV1RequestSortOrder.mjs";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * as expanded from "./expanded/index.mjs";
|
|
2
|
+
export * from "./expanded/types/index.mjs";
|
|
1
3
|
export * as taskGroup from "./taskGroup/index.mjs";
|
|
2
4
|
export * as task from "./task/index.mjs";
|
|
3
5
|
export * as taskArtifact from "./taskArtifact/index.mjs";
|
|
@@ -6,3 +8,4 @@ export * from "./taskGroup/client/requests/index.mjs";
|
|
|
6
8
|
export * from "./task/client/requests/index.mjs";
|
|
7
9
|
export * from "./taskArtifact/client/requests/index.mjs";
|
|
8
10
|
export * from "./cargo/client/requests/index.mjs";
|
|
11
|
+
export * from "./expanded/client/requests/index.mjs";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * as expanded from "./expanded/index.mjs";
|
|
2
|
+
export * from "./expanded/types/index.mjs";
|
|
1
3
|
export * as taskGroup from "./taskGroup/index.mjs";
|
|
2
4
|
export * as task from "./task/index.mjs";
|
|
3
5
|
export * as taskArtifact from "./taskArtifact/index.mjs";
|
|
@@ -6,3 +8,4 @@ export * from "./taskGroup/client/requests/index.mjs";
|
|
|
6
8
|
export * from "./task/client/requests/index.mjs";
|
|
7
9
|
export * from "./taskArtifact/client/requests/index.mjs";
|
|
8
10
|
export * from "./cargo/client/requests/index.mjs";
|
|
11
|
+
export * from "./expanded/client/requests/index.mjs";
|
|
@@ -31,7 +31,7 @@ export declare class Courier {
|
|
|
31
31
|
protected readonly _options: Courier.Options;
|
|
32
32
|
constructor(_options?: Courier.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves courier organization connection information for the
|
|
34
|
+
* Retrieves courier organization connection information for the caller's organization. | () -> (CourierOrgInfoForConnections1)
|
|
35
35
|
*
|
|
36
36
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -20,7 +20,7 @@ export class Courier {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves courier organization connection information for the
|
|
23
|
+
* Retrieves courier organization connection information for the caller's organization. | () -> (CourierOrgInfoForConnections1)
|
|
24
24
|
*
|
|
25
25
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts
CHANGED
|
@@ -31,7 +31,7 @@ export declare class Forwarder {
|
|
|
31
31
|
protected readonly _options: Forwarder.Options;
|
|
32
32
|
constructor(_options?: Forwarder.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves forwarder organization connection information for the
|
|
34
|
+
* Retrieves forwarder organization connection information for the caller's organization. | () -> (ForwarderOrgInfoForConnections1)
|
|
35
35
|
*
|
|
36
36
|
* @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -20,7 +20,7 @@ export class Forwarder {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves forwarder organization connection information for the
|
|
23
|
+
* Retrieves forwarder organization connection information for the caller's organization. | () -> (ForwarderOrgInfoForConnections1)
|
|
24
24
|
*
|
|
25
25
|
* @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -31,7 +31,7 @@ export declare class Shipper {
|
|
|
31
31
|
protected readonly _options: Shipper.Options;
|
|
32
32
|
constructor(_options?: Shipper.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves shipper organization connection information for the
|
|
34
|
+
* Retrieves shipper organization connection information for the caller's organization. | () -> (ShipperOrgInfoForConnections1)
|
|
35
35
|
*
|
|
36
36
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -20,7 +20,7 @@ export class Shipper {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves shipper organization connection information for the
|
|
23
|
+
* Retrieves shipper organization connection information for the caller's organization. | () -> (ShipperOrgInfoForConnections1)
|
|
24
24
|
*
|
|
25
25
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -31,7 +31,7 @@ export declare class OrgProfiles {
|
|
|
31
31
|
protected readonly _options: OrgProfiles.Options;
|
|
32
32
|
constructor(_options?: OrgProfiles.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves the courier or forwarder organization profile for the
|
|
34
|
+
* Retrieves the courier or forwarder organization profile for the caller's organization. | () -> (OrgProfileRes1)
|
|
35
35
|
*
|
|
36
36
|
* @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
@@ -20,7 +20,7 @@ export class OrgProfiles {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Retrieves the courier or forwarder organization profile for the
|
|
23
|
+
* Retrieves the courier or forwarder organization profile for the caller's organization. | () -> (OrgProfileRes1)
|
|
24
24
|
*
|
|
25
25
|
* @param {OrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
@@ -41,7 +41,7 @@ export declare class Orgs {
|
|
|
41
41
|
getInfoV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
|
|
42
42
|
private __getInfoV1;
|
|
43
43
|
/**
|
|
44
|
-
* Lists all members of the
|
|
44
|
+
* Lists all members of the caller's organization with their roles and details. | () -> (list[OrgMemberDetails])
|
|
45
45
|
*
|
|
46
46
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
47
|
*
|
|
@@ -51,7 +51,7 @@ export declare class Orgs {
|
|
|
51
51
|
listMembersV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgMemberDetails[]>;
|
|
52
52
|
private __listMembersV1;
|
|
53
53
|
/**
|
|
54
|
-
* Retrieves public organization data for the
|
|
54
|
+
* Retrieves public organization data for the caller's organization. | () -> (OrgPublicData1)
|
|
55
55
|
*
|
|
56
56
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
57
|
*
|
|
@@ -61,7 +61,7 @@ export declare class Orgs {
|
|
|
61
61
|
getOrgPublicDataV1(requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.OrgPublicData1>;
|
|
62
62
|
private __getOrgPublicDataV1;
|
|
63
63
|
/**
|
|
64
|
-
* Creates org_public_data and org_private_data documents for the
|
|
64
|
+
* Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
|
|
65
65
|
*
|
|
66
66
|
* @param {Chrt.CreateOrgPublicDataReq} request
|
|
67
67
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -74,7 +74,7 @@ export declare class Orgs {
|
|
|
74
74
|
createOrgPublicDataV1(request?: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrgPublicDataRes>;
|
|
75
75
|
private __createOrgPublicDataV1;
|
|
76
76
|
/**
|
|
77
|
-
* Updates the handle and/or company_name for the
|
|
77
|
+
* Updates the handle and/or company_name for the caller's organization. | (UpdateOrgPublicDataReq) -> (bool)
|
|
78
78
|
*
|
|
79
79
|
* @param {Chrt.UpdateOrgPublicDataReq} request
|
|
80
80
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -128,7 +128,7 @@ export declare class Orgs {
|
|
|
128
128
|
setOrgTypeV1(request: Chrt.SetOrgTypeReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
129
129
|
private __setOrgTypeV1;
|
|
130
130
|
/**
|
|
131
|
-
* Retrieves the Stripe Connect account ID for the
|
|
131
|
+
* Retrieves the Stripe Connect account ID for the caller's organization. Returns 404 if not set. | () -> (str)
|
|
132
132
|
*
|
|
133
133
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
134
|
*
|
|
@@ -71,7 +71,7 @@ export class Orgs {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* Lists all members of the
|
|
74
|
+
* Lists all members of the caller's organization with their roles and details. | () -> (list[OrgMemberDetails])
|
|
75
75
|
*
|
|
76
76
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
@@ -122,7 +122,7 @@ export class Orgs {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
* Retrieves public organization data for the
|
|
125
|
+
* Retrieves public organization data for the caller's organization. | () -> (OrgPublicData1)
|
|
126
126
|
*
|
|
127
127
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
128
|
*
|
|
@@ -173,7 +173,7 @@ export class Orgs {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
|
-
* Creates org_public_data and org_private_data documents for the
|
|
176
|
+
* Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
|
|
177
177
|
*
|
|
178
178
|
* @param {Chrt.CreateOrgPublicDataReq} request
|
|
179
179
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -235,7 +235,7 @@ export class Orgs {
|
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
|
-
* Updates the handle and/or company_name for the
|
|
238
|
+
* Updates the handle and/or company_name for the caller's organization. | (UpdateOrgPublicDataReq) -> (bool)
|
|
239
239
|
*
|
|
240
240
|
* @param {Chrt.UpdateOrgPublicDataReq} request
|
|
241
241
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -479,7 +479,7 @@ export class Orgs {
|
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
481
|
/**
|
|
482
|
-
* Retrieves the Stripe Connect account ID for the
|
|
482
|
+
* Retrieves the Stripe Connect account ID for the caller's organization. Returns 404 if not set. | () -> (str)
|
|
483
483
|
*
|
|
484
484
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
485
485
|
*
|