@chrt-inc/typescript-sdk 0.0.174 → 0.0.183-b
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 +24 -24
- package/dist/cjs/Client.js +48 -48
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/connections/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/connections/client/Client.js +14 -14
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +85 -85
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +16 -12
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +27 -23
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +39 -26
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +112 -67
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +25 -25
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +19 -19
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/index.js +0 -1
- package/dist/cjs/api/resources/dev/client/Client.d.ts +28 -10
- package/dist/cjs/api/resources/dev/client/Client.js +103 -46
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +52 -50
- package/dist/cjs/api/resources/drivers/client/Client.js +109 -107
- package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +1 -1
- package/dist/cjs/api/resources/drivers/client/requests/SetDriverActivationReq.d.ts +3 -3
- package/dist/cjs/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.ts +5 -5
- package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/index.d.ts +14 -15
- package/dist/cjs/api/resources/index.js +15 -16
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +2 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/milestones/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/milestones/client/Client.js +25 -25
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +2 -2
- package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +1 -5
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +1 -5
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +35 -35
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/resources/index.js +2 -2
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/client/Client.js +6 -6
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.js +2 -2
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
- 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/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.js +6 -6
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +13 -13
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orders/client/Client.d.ts +30 -26
- package/dist/cjs/api/resources/orders/client/Client.js +74 -70
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +18 -18
- package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orders/resources/full/client/Client.js +33 -33
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.js +6 -6
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +12 -12
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orgConnectionInfos/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/index.js +3 -3
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +12 -12
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +15 -17
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +43 -49
- package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +3 -3
- package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts +3 -3
- package/dist/cjs/api/resources/orgProfiles/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +41 -37
- package/dist/cjs/api/resources/orgs/client/Client.js +90 -86
- package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +2 -2
- package/dist/cjs/api/resources/payments/client/Client.d.ts +3 -7
- package/dist/cjs/api/resources/payments/client/Client.js +3 -7
- package/dist/cjs/api/resources/root/client/Client.d.ts +19 -13
- package/dist/cjs/api/resources/root/client/Client.js +31 -25
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +42 -42
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +90 -90
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +11 -11
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +24 -18
- package/dist/cjs/api/resources/taskGroups/client/Client.js +43 -37
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +2 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.ts +3 -3
- package/dist/cjs/api/resources/users/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/users/client/Client.js +2 -0
- package/dist/cjs/api/types/Cargo1.d.ts +7 -7
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +6 -6
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +13 -13
- package/dist/cjs/api/types/CourierOrgProfile3.d.ts +3 -3
- package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +5 -5
- package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +17 -17
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +17 -17
- package/dist/cjs/api/types/Driver1.d.ts +14 -14
- package/dist/cjs/api/types/Expense1.d.ts +4 -4
- package/dist/cjs/api/types/Feature.d.ts +4 -4
- package/dist/cjs/api/types/GetOrderFullRes.d.ts +2 -2
- package/dist/cjs/api/types/Incident1.d.ts +1 -1
- package/dist/cjs/api/types/Insurance1.d.ts +1 -1
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/Milestone1.d.ts +17 -17
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +13 -13
- package/dist/cjs/api/types/Order1.d.ts +14 -14
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +3 -3
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPublicData2.d.ts +4 -4
- package/dist/cjs/api/types/PayablesInvoice1.d.ts +12 -12
- package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +11 -11
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +18 -18
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +14 -14
- package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +4 -4
- package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +12 -12
- package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +9 -9
- package/dist/cjs/api/types/Task1.d.ts +16 -16
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +7 -7
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +5 -5
- package/dist/cjs/api/types/TaskGroup1.d.ts +13 -13
- package/dist/cjs/api/types/TaskWithDetails.d.ts +2 -2
- package/dist/cjs/api/types/Tracker1.d.ts +1 -1
- package/dist/cjs/api/types/TrackerSession1.d.ts +1 -1
- package/dist/cjs/api/types/UserPublicData6.d.ts +6 -6
- package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +24 -24
- package/dist/esm/Client.mjs +36 -36
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/connections/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/connections/client/Client.mjs +14 -14
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +85 -85
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +16 -12
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +27 -23
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +39 -26
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +112 -67
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +25 -25
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +19 -19
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/index.mjs +0 -1
- package/dist/esm/api/resources/dev/client/Client.d.mts +28 -10
- package/dist/esm/api/resources/dev/client/Client.mjs +103 -46
- package/dist/esm/api/resources/drivers/client/Client.d.mts +52 -50
- package/dist/esm/api/resources/drivers/client/Client.mjs +109 -107
- package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +1 -1
- package/dist/esm/api/resources/drivers/client/requests/SetDriverActivationReq.d.mts +3 -3
- package/dist/esm/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.mts +5 -5
- package/dist/esm/api/resources/drivers/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/index.d.mts +14 -15
- package/dist/esm/api/resources/index.mjs +14 -15
- package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +2 -2
- package/dist/esm/api/resources/milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/milestones/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/milestones/client/Client.mjs +24 -24
- package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +2 -2
- package/dist/esm/api/resources/milestones/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +1 -5
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +1 -5
- package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +35 -35
- package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts +1 -1
- package/dist/esm/api/resources/milestones/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/milestones/resources/index.mjs +1 -1
- package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/notifications/client/Client.mjs +5 -5
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/index.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/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.mjs +6 -6
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +13 -13
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orders/client/Client.d.mts +30 -26
- package/dist/esm/api/resources/orders/client/Client.mjs +74 -70
- package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +18 -18
- package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +33 -33
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +12 -12
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orgConnectionInfos/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/index.mjs +2 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +12 -12
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +15 -17
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +43 -49
- package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts +3 -3
- package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts +3 -3
- package/dist/esm/api/resources/orgProfiles/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +41 -37
- package/dist/esm/api/resources/orgs/client/Client.mjs +90 -86
- package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +3 -3
- package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +2 -2
- package/dist/esm/api/resources/payments/client/Client.d.mts +3 -7
- package/dist/esm/api/resources/payments/client/Client.mjs +3 -7
- package/dist/esm/api/resources/root/client/Client.d.mts +19 -13
- package/dist/esm/api/resources/root/client/Client.mjs +31 -25
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +42 -42
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +90 -90
- package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +11 -11
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +24 -18
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +43 -37
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +2 -2
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +2 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +4 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.d.mts +3 -3
- package/dist/esm/api/resources/users/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/users/client/Client.mjs +2 -0
- package/dist/esm/api/types/Cargo1.d.mts +7 -7
- package/dist/esm/api/types/CargoClientCreate1.d.mts +6 -6
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +13 -13
- package/dist/esm/api/types/CourierOrgProfile3.d.mts +3 -3
- package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +5 -5
- package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +17 -17
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +17 -17
- package/dist/esm/api/types/Driver1.d.mts +14 -14
- package/dist/esm/api/types/Expense1.d.mts +4 -4
- package/dist/esm/api/types/Feature.d.mts +4 -4
- package/dist/esm/api/types/GetOrderFullRes.d.mts +2 -2
- package/dist/esm/api/types/Incident1.d.mts +1 -1
- package/dist/esm/api/types/Insurance1.d.mts +1 -1
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/Milestone1.d.mts +17 -17
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +13 -13
- package/dist/esm/api/types/Order1.d.mts +14 -14
- package/dist/esm/api/types/OrgMemberDetails.d.mts +3 -3
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPublicData2.d.mts +4 -4
- package/dist/esm/api/types/PayablesInvoice1.d.mts +12 -12
- package/dist/esm/api/types/ReceivablesInvoice1.d.mts +11 -11
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +18 -18
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +14 -14
- package/dist/esm/api/types/ShipperCourierConnection1.d.mts +4 -4
- package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +12 -12
- package/dist/esm/api/types/StripeConnectInvoice1.d.mts +9 -9
- package/dist/esm/api/types/Task1.d.mts +16 -16
- package/dist/esm/api/types/TaskClientCreate1.d.mts +7 -7
- package/dist/esm/api/types/TaskCreateBundle.d.mts +5 -5
- package/dist/esm/api/types/TaskGroup1.d.mts +13 -13
- package/dist/esm/api/types/TaskWithDetails.d.mts +2 -2
- package/dist/esm/api/types/Tracker1.d.mts +1 -1
- package/dist/esm/api/types/TrackerSession1.d.mts +1 -1
- package/dist/esm/api/types/UserPublicData6.d.mts +6 -6
- package/dist/esm/api/types/Vehicle1.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1196 -764
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.js +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.ts +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.js +0 -5
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.js +0 -17
- package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.ts +0 -12
- package/dist/cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.js +0 -5
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.mjs +0 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.mts +0 -5
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.mjs +0 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.mjs +0 -1
- package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.mts +0 -12
- package/dist/esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.mjs +0 -4
|
@@ -56,7 +56,7 @@ class Shipper {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Retrieves notification preferences for the authenticated shipper organization.
|
|
60
60
|
*
|
|
61
61
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
@@ -105,7 +105,7 @@ class Shipper {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Creates or updates notification preferences for the authenticated shipper organization.
|
|
109
109
|
*
|
|
110
110
|
* @param {Chrt.notifications.ShipperNotificationPreferencesClientCreate1} request
|
|
111
111
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -9,10 +9,10 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface ShipperNotificationPreferencesClientCreate1 {
|
|
12
|
-
email_addresses?: string[];
|
|
13
|
-
/** For each ShipperNotificationEventEnum, which channels (email/sms/push/phone_call) are enabled */
|
|
14
|
-
preferences?: Record<string, Chrt.NotificationChannelEnum[]>;
|
|
15
12
|
schema_version: number;
|
|
13
|
+
email_addresses?: string[];
|
|
16
14
|
sms_phone_numbers?: string[];
|
|
17
15
|
voice_phone_numbers?: string[];
|
|
16
|
+
/** For each ShipperNotificationEventEnum, which channels (email/sms/push/phone_call) are enabled */
|
|
17
|
+
preferences?: Record<string, Chrt.NotificationChannelEnum[]>;
|
|
18
18
|
}
|
|
@@ -29,7 +29,7 @@ export declare class OffChrtShipperOrgConnectionInfo {
|
|
|
29
29
|
protected readonly _options: OffChrtShipperOrgConnectionInfo.Options;
|
|
30
30
|
constructor(_options?: OffChrtShipperOrgConnectionInfo.Options);
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Creates connection information for working with off-platform shipper organizations.
|
|
33
33
|
*
|
|
34
34
|
* @param {Chrt.OffChrtShipperOrgConnectionInfoClientCreate1} request
|
|
35
35
|
* @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -38,14 +38,14 @@ export declare class OffChrtShipperOrgConnectionInfo {
|
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* await client.offChrtShipperOrgConnectionInfo.create({
|
|
41
|
-
*
|
|
42
|
-
*
|
|
41
|
+
* schema_version: 1,
|
|
42
|
+
* email_address_primary: "email_address_primary"
|
|
43
43
|
* })
|
|
44
44
|
*/
|
|
45
45
|
create(request: Chrt.OffChrtShipperOrgConnectionInfoClientCreate1, requestOptions?: OffChrtShipperOrgConnectionInfo.RequestOptions): core.HttpResponsePromise<string>;
|
|
46
46
|
private __create;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Lists all off-platform shipper connections created by the authenticated organization.
|
|
49
49
|
*
|
|
50
50
|
* @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
51
|
*
|
|
@@ -55,7 +55,7 @@ export declare class OffChrtShipperOrgConnectionInfo {
|
|
|
55
55
|
list(requestOptions?: OffChrtShipperOrgConnectionInfo.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrgConnectionInfo1[]>;
|
|
56
56
|
private __list;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Retrieves specific off-platform shipper connection information by ID.
|
|
59
59
|
*
|
|
60
60
|
* @param {string} id
|
|
61
61
|
* @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -68,7 +68,7 @@ export declare class OffChrtShipperOrgConnectionInfo {
|
|
|
68
68
|
getById(id: string, requestOptions?: OffChrtShipperOrgConnectionInfo.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrgConnectionInfo1>;
|
|
69
69
|
private __getById;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Updates existing off-platform shipper connection information owned by the authenticated organization.
|
|
72
72
|
*
|
|
73
73
|
* @param {string} id
|
|
74
74
|
* @param {Chrt.OffChrtShipperOrgConnectionInfoClientUpdate1} request
|
|
@@ -56,7 +56,7 @@ class OffChrtShipperOrgConnectionInfo {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Creates connection information for working with off-platform shipper organizations.
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.OffChrtShipperOrgConnectionInfoClientCreate1} request
|
|
62
62
|
* @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -65,8 +65,8 @@ class OffChrtShipperOrgConnectionInfo {
|
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* await client.offChrtShipperOrgConnectionInfo.create({
|
|
68
|
-
*
|
|
69
|
-
*
|
|
68
|
+
* schema_version: 1,
|
|
69
|
+
* email_address_primary: "email_address_primary"
|
|
70
70
|
* })
|
|
71
71
|
*/
|
|
72
72
|
create(request, requestOptions) {
|
|
@@ -119,7 +119,7 @@ class OffChrtShipperOrgConnectionInfo {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Lists all off-platform shipper connections created by the authenticated organization.
|
|
123
123
|
*
|
|
124
124
|
* @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
125
|
*
|
|
@@ -171,7 +171,7 @@ class OffChrtShipperOrgConnectionInfo {
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* Retrieves specific off-platform shipper connection information by ID.
|
|
175
175
|
*
|
|
176
176
|
* @param {string} id
|
|
177
177
|
* @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -231,7 +231,7 @@ class OffChrtShipperOrgConnectionInfo {
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
/**
|
|
234
|
-
*
|
|
234
|
+
* Updates existing off-platform shipper connection information owned by the authenticated organization.
|
|
235
235
|
*
|
|
236
236
|
* @param {string} id
|
|
237
237
|
* @param {Chrt.OffChrtShipperOrgConnectionInfoClientUpdate1} request
|
|
@@ -5,21 +5,21 @@ import * as Chrt from "../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* schema_version: 1,
|
|
9
|
+
* email_address_primary: "email_address_primary"
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface OffChrtShipperOrgConnectionInfoClientCreate1 {
|
|
13
|
-
company_name?: string;
|
|
14
|
-
contact_first_name?: string;
|
|
15
|
-
contact_last_name?: string;
|
|
16
|
-
email_address_primary: string;
|
|
17
|
-
email_address_secondary?: string;
|
|
18
|
-
industry?: string;
|
|
19
|
-
job_title?: string;
|
|
20
|
-
notes?: string;
|
|
21
|
-
phone_number_primary?: string;
|
|
22
|
-
phone_number_secondary?: string;
|
|
23
13
|
schema_version: number;
|
|
24
|
-
|
|
14
|
+
industry?: string | null;
|
|
15
|
+
street_address?: Chrt.Feature | null;
|
|
16
|
+
contact_first_name?: string | null;
|
|
17
|
+
contact_last_name?: string | null;
|
|
18
|
+
phone_number_primary?: string | null;
|
|
19
|
+
phone_number_secondary?: string | null;
|
|
20
|
+
email_address_primary: string;
|
|
21
|
+
email_address_secondary?: string | null;
|
|
22
|
+
job_title?: string | null;
|
|
23
|
+
notes?: string | null;
|
|
24
|
+
company_name?: string | null;
|
|
25
25
|
}
|
|
@@ -7,14 +7,14 @@ import * as Chrt from "../../../../index.js";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface OffChrtShipperOrgConnectionInfoClientUpdate1 {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
industry?: string | null;
|
|
11
|
+
street_address?: Chrt.Feature | null;
|
|
12
|
+
contact_first_name?: string | null;
|
|
13
|
+
contact_last_name?: string | null;
|
|
14
|
+
phone_number_primary?: string | null;
|
|
15
|
+
phone_number_secondary?: string | null;
|
|
16
|
+
email_address_primary?: string | null;
|
|
17
|
+
email_address_secondary?: string | null;
|
|
18
|
+
job_title?: string | null;
|
|
19
|
+
notes?: string | null;
|
|
20
20
|
}
|
|
@@ -32,6 +32,21 @@ export declare class Orders {
|
|
|
32
32
|
constructor(_options?: Orders.Options);
|
|
33
33
|
get full(): Full;
|
|
34
34
|
/**
|
|
35
|
+
* Retrieves an order by its full ID or short ID.
|
|
36
|
+
*
|
|
37
|
+
* @param {string} orderIdOrShortId
|
|
38
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.orders.getByOrderIdOrShortId("order_id_or_short_id")
|
|
44
|
+
*/
|
|
45
|
+
getByOrderIdOrShortId(orderIdOrShortId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderRes>;
|
|
46
|
+
private __getByOrderIdOrShortId;
|
|
47
|
+
/**
|
|
48
|
+
* Cancels an order and all associated task groups and line item groups.
|
|
49
|
+
*
|
|
35
50
|
* @param {string} orderIdOrShortId
|
|
36
51
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
52
|
*
|
|
@@ -43,6 +58,8 @@ export declare class Orders {
|
|
|
43
58
|
cancelByOrderIdOrShortId(orderIdOrShortId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
44
59
|
private __cancelByOrderIdOrShortId;
|
|
45
60
|
/**
|
|
61
|
+
* Creates a comprehensive order with task groups, tasks, milestones, and cargo.
|
|
62
|
+
*
|
|
46
63
|
* @param {Chrt.CreateOrderReq} request
|
|
47
64
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
65
|
*
|
|
@@ -50,39 +67,29 @@ export declare class Orders {
|
|
|
50
67
|
*
|
|
51
68
|
* @example
|
|
52
69
|
* await client.orders.create({
|
|
53
|
-
* cargo_client_creates_map: {
|
|
54
|
-
* "key": {
|
|
55
|
-
* cargo_type: "spare_parts",
|
|
56
|
-
* schema_version: 1
|
|
57
|
-
* }
|
|
58
|
-
* },
|
|
59
70
|
* order_client_create: {
|
|
60
71
|
* schema_version: 1
|
|
61
72
|
* },
|
|
62
|
-
* order_created_by_type: "chrt",
|
|
63
|
-
* order_dispatch_type: "dtc",
|
|
64
73
|
* task_client_creates_bundle_groupings: [[{
|
|
65
74
|
* task_client_create: {
|
|
66
75
|
* schema_version: 1
|
|
67
76
|
* }
|
|
68
77
|
* }]],
|
|
78
|
+
* cargo_client_creates_map: {
|
|
79
|
+
* "key": {
|
|
80
|
+
* schema_version: 1,
|
|
81
|
+
* cargo_type: "spare_parts"
|
|
82
|
+
* }
|
|
83
|
+
* },
|
|
84
|
+
* order_created_by_type: "chrt",
|
|
85
|
+
* order_dispatch_type: "dtc",
|
|
69
86
|
* transport_type: "ground_only"
|
|
70
87
|
* })
|
|
71
88
|
*/
|
|
72
89
|
create(request: Chrt.CreateOrderReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrderRes>;
|
|
73
90
|
private __create;
|
|
74
91
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* await client.orders.listByCourierOrgId()
|
|
81
|
-
*/
|
|
82
|
-
listByCourierOrgId(requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.Order1[]>;
|
|
83
|
-
private __listByCourierOrgId;
|
|
84
|
-
/**
|
|
85
|
-
* Uses the org_id from the JWT
|
|
92
|
+
* Lists all orders for the authenticated shipper organization.
|
|
86
93
|
*
|
|
87
94
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
95
|
*
|
|
@@ -92,17 +99,14 @@ export declare class Orders {
|
|
|
92
99
|
listByShipperOrgId(requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.Order1[]>;
|
|
93
100
|
private __listByShipperOrgId;
|
|
94
101
|
/**
|
|
95
|
-
*
|
|
102
|
+
* Lists all orders assigned to the authenticated courier organization.
|
|
96
103
|
*
|
|
97
|
-
* @param {string} orderIdOrShortId
|
|
98
104
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
105
|
*
|
|
100
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
101
|
-
*
|
|
102
106
|
* @example
|
|
103
|
-
* await client.orders.
|
|
107
|
+
* await client.orders.listByCourierOrgId()
|
|
104
108
|
*/
|
|
105
|
-
|
|
106
|
-
private
|
|
109
|
+
listByCourierOrgId(requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.Order1[]>;
|
|
110
|
+
private __listByCourierOrgId;
|
|
107
111
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
108
112
|
}
|
|
@@ -61,23 +61,25 @@ class Orders {
|
|
|
61
61
|
return ((_a = this._full) !== null && _a !== void 0 ? _a : (this._full = new Client_js_1.Full(this._options)));
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
+
* Retrieves an order by its full ID or short ID.
|
|
65
|
+
*
|
|
64
66
|
* @param {string} orderIdOrShortId
|
|
65
67
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
68
|
*
|
|
67
69
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
68
70
|
*
|
|
69
71
|
* @example
|
|
70
|
-
* await client.orders.
|
|
72
|
+
* await client.orders.getByOrderIdOrShortId("order_id_or_short_id")
|
|
71
73
|
*/
|
|
72
|
-
|
|
73
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
74
|
+
getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
|
|
75
|
+
return core.HttpResponsePromise.fromPromise(this.__getByOrderIdOrShortId(orderIdOrShortId, requestOptions));
|
|
74
76
|
}
|
|
75
|
-
|
|
77
|
+
__getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
|
|
76
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
79
|
var _a, _b, _c, _d;
|
|
78
80
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/orders
|
|
80
|
-
method: "
|
|
81
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/orders/${encodeURIComponent(orderIdOrShortId)}`),
|
|
82
|
+
method: "GET",
|
|
81
83
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
85
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -106,7 +108,7 @@ class Orders {
|
|
|
106
108
|
rawResponse: _response.rawResponse,
|
|
107
109
|
});
|
|
108
110
|
case "timeout":
|
|
109
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
111
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/{order_id_or_short_id}.");
|
|
110
112
|
case "unknown":
|
|
111
113
|
throw new errors.ChrtError({
|
|
112
114
|
message: _response.error.errorMessage,
|
|
@@ -116,45 +118,26 @@ class Orders {
|
|
|
116
118
|
});
|
|
117
119
|
}
|
|
118
120
|
/**
|
|
119
|
-
*
|
|
121
|
+
* Cancels an order and all associated task groups and line item groups.
|
|
122
|
+
*
|
|
123
|
+
* @param {string} orderIdOrShortId
|
|
120
124
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
125
|
*
|
|
122
126
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
123
127
|
*
|
|
124
128
|
* @example
|
|
125
|
-
* await client.orders.
|
|
126
|
-
* cargo_client_creates_map: {
|
|
127
|
-
* "key": {
|
|
128
|
-
* cargo_type: "spare_parts",
|
|
129
|
-
* schema_version: 1
|
|
130
|
-
* }
|
|
131
|
-
* },
|
|
132
|
-
* order_client_create: {
|
|
133
|
-
* schema_version: 1
|
|
134
|
-
* },
|
|
135
|
-
* order_created_by_type: "chrt",
|
|
136
|
-
* order_dispatch_type: "dtc",
|
|
137
|
-
* task_client_creates_bundle_groupings: [[{
|
|
138
|
-
* task_client_create: {
|
|
139
|
-
* schema_version: 1
|
|
140
|
-
* }
|
|
141
|
-
* }]],
|
|
142
|
-
* transport_type: "ground_only"
|
|
143
|
-
* })
|
|
129
|
+
* await client.orders.cancelByOrderIdOrShortId("order_id_or_short_id")
|
|
144
130
|
*/
|
|
145
|
-
|
|
146
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
131
|
+
cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
|
|
132
|
+
return core.HttpResponsePromise.fromPromise(this.__cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions));
|
|
147
133
|
}
|
|
148
|
-
|
|
134
|
+
__cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
|
|
149
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
136
|
var _a, _b, _c, _d;
|
|
151
137
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
152
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
153
|
-
method: "
|
|
138
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/orders/cancel/${encodeURIComponent(orderIdOrShortId)}`),
|
|
139
|
+
method: "PATCH",
|
|
154
140
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
155
|
-
contentType: "application/json",
|
|
156
|
-
requestType: "json",
|
|
157
|
-
body: request,
|
|
158
141
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
159
142
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
160
143
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -182,7 +165,7 @@ class Orders {
|
|
|
182
165
|
rawResponse: _response.rawResponse,
|
|
183
166
|
});
|
|
184
167
|
case "timeout":
|
|
185
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
168
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/orders/cancel/{order_id_or_short_id}.");
|
|
186
169
|
case "unknown":
|
|
187
170
|
throw new errors.ChrtError({
|
|
188
171
|
message: _response.error.errorMessage,
|
|
@@ -192,23 +175,47 @@ class Orders {
|
|
|
192
175
|
});
|
|
193
176
|
}
|
|
194
177
|
/**
|
|
195
|
-
*
|
|
178
|
+
* Creates a comprehensive order with task groups, tasks, milestones, and cargo.
|
|
196
179
|
*
|
|
180
|
+
* @param {Chrt.CreateOrderReq} request
|
|
197
181
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
198
182
|
*
|
|
183
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
184
|
+
*
|
|
199
185
|
* @example
|
|
200
|
-
* await client.orders.
|
|
186
|
+
* await client.orders.create({
|
|
187
|
+
* order_client_create: {
|
|
188
|
+
* schema_version: 1
|
|
189
|
+
* },
|
|
190
|
+
* task_client_creates_bundle_groupings: [[{
|
|
191
|
+
* task_client_create: {
|
|
192
|
+
* schema_version: 1
|
|
193
|
+
* }
|
|
194
|
+
* }]],
|
|
195
|
+
* cargo_client_creates_map: {
|
|
196
|
+
* "key": {
|
|
197
|
+
* schema_version: 1,
|
|
198
|
+
* cargo_type: "spare_parts"
|
|
199
|
+
* }
|
|
200
|
+
* },
|
|
201
|
+
* order_created_by_type: "chrt",
|
|
202
|
+
* order_dispatch_type: "dtc",
|
|
203
|
+
* transport_type: "ground_only"
|
|
204
|
+
* })
|
|
201
205
|
*/
|
|
202
|
-
|
|
203
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
206
|
+
create(request, requestOptions) {
|
|
207
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
204
208
|
}
|
|
205
|
-
|
|
209
|
+
__create(request, requestOptions) {
|
|
206
210
|
return __awaiter(this, void 0, void 0, function* () {
|
|
207
211
|
var _a, _b, _c, _d;
|
|
208
212
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
209
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/orders/
|
|
210
|
-
method: "
|
|
213
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/orders/create"),
|
|
214
|
+
method: "POST",
|
|
211
215
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
216
|
+
contentType: "application/json",
|
|
217
|
+
requestType: "json",
|
|
218
|
+
body: request,
|
|
212
219
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
213
220
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
214
221
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -217,11 +224,16 @@ class Orders {
|
|
|
217
224
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
218
225
|
}
|
|
219
226
|
if (_response.error.reason === "status-code") {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
switch (_response.error.statusCode) {
|
|
228
|
+
case 422:
|
|
229
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
230
|
+
default:
|
|
231
|
+
throw new errors.ChrtError({
|
|
232
|
+
statusCode: _response.error.statusCode,
|
|
233
|
+
body: _response.error.body,
|
|
234
|
+
rawResponse: _response.rawResponse,
|
|
235
|
+
});
|
|
236
|
+
}
|
|
225
237
|
}
|
|
226
238
|
switch (_response.error.reason) {
|
|
227
239
|
case "non-json":
|
|
@@ -231,7 +243,7 @@ class Orders {
|
|
|
231
243
|
rawResponse: _response.rawResponse,
|
|
232
244
|
});
|
|
233
245
|
case "timeout":
|
|
234
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
246
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create.");
|
|
235
247
|
case "unknown":
|
|
236
248
|
throw new errors.ChrtError({
|
|
237
249
|
message: _response.error.errorMessage,
|
|
@@ -241,7 +253,7 @@ class Orders {
|
|
|
241
253
|
});
|
|
242
254
|
}
|
|
243
255
|
/**
|
|
244
|
-
*
|
|
256
|
+
* Lists all orders for the authenticated shipper organization.
|
|
245
257
|
*
|
|
246
258
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
247
259
|
*
|
|
@@ -290,24 +302,21 @@ class Orders {
|
|
|
290
302
|
});
|
|
291
303
|
}
|
|
292
304
|
/**
|
|
293
|
-
*
|
|
305
|
+
* Lists all orders assigned to the authenticated courier organization.
|
|
294
306
|
*
|
|
295
|
-
* @param {string} orderIdOrShortId
|
|
296
307
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
297
308
|
*
|
|
298
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
299
|
-
*
|
|
300
309
|
* @example
|
|
301
|
-
* await client.orders.
|
|
310
|
+
* await client.orders.listByCourierOrgId()
|
|
302
311
|
*/
|
|
303
|
-
|
|
304
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
312
|
+
listByCourierOrgId(requestOptions) {
|
|
313
|
+
return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgId(requestOptions));
|
|
305
314
|
}
|
|
306
|
-
|
|
315
|
+
__listByCourierOrgId(requestOptions) {
|
|
307
316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
308
317
|
var _a, _b, _c, _d;
|
|
309
318
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
310
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
319
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/orders/list/by_courier_org_id"),
|
|
311
320
|
method: "GET",
|
|
312
321
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
313
322
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -318,16 +327,11 @@ class Orders {
|
|
|
318
327
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
319
328
|
}
|
|
320
329
|
if (_response.error.reason === "status-code") {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
statusCode: _response.error.statusCode,
|
|
327
|
-
body: _response.error.body,
|
|
328
|
-
rawResponse: _response.rawResponse,
|
|
329
|
-
});
|
|
330
|
-
}
|
|
330
|
+
throw new errors.ChrtError({
|
|
331
|
+
statusCode: _response.error.statusCode,
|
|
332
|
+
body: _response.error.body,
|
|
333
|
+
rawResponse: _response.rawResponse,
|
|
334
|
+
});
|
|
331
335
|
}
|
|
332
336
|
switch (_response.error.reason) {
|
|
333
337
|
case "non-json":
|
|
@@ -337,7 +341,7 @@ class Orders {
|
|
|
337
341
|
rawResponse: _response.rawResponse,
|
|
338
342
|
});
|
|
339
343
|
case "timeout":
|
|
340
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/
|
|
344
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_courier_org_id.");
|
|
341
345
|
case "unknown":
|
|
342
346
|
throw new errors.ChrtError({
|
|
343
347
|
message: _response.error.errorMessage,
|
|
@@ -5,41 +5,41 @@ import * as Chrt from "../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* cargo_client_creates_map: {
|
|
9
|
-
* "key": {
|
|
10
|
-
* cargo_type: "spare_parts",
|
|
11
|
-
* schema_version: 1
|
|
12
|
-
* }
|
|
13
|
-
* },
|
|
14
8
|
* order_client_create: {
|
|
15
9
|
* schema_version: 1
|
|
16
10
|
* },
|
|
17
|
-
* order_created_by_type: "chrt",
|
|
18
|
-
* order_dispatch_type: "dtc",
|
|
19
11
|
* task_client_creates_bundle_groupings: [[{
|
|
20
12
|
* task_client_create: {
|
|
21
13
|
* schema_version: 1
|
|
22
14
|
* }
|
|
23
15
|
* }]],
|
|
16
|
+
* cargo_client_creates_map: {
|
|
17
|
+
* "key": {
|
|
18
|
+
* schema_version: 1,
|
|
19
|
+
* cargo_type: "spare_parts"
|
|
20
|
+
* }
|
|
21
|
+
* },
|
|
22
|
+
* order_created_by_type: "chrt",
|
|
23
|
+
* order_dispatch_type: "dtc",
|
|
24
24
|
* transport_type: "ground_only"
|
|
25
25
|
* }
|
|
26
26
|
*/
|
|
27
27
|
export interface CreateOrderReq {
|
|
28
|
+
order_client_create: Chrt.OrderClientCreate1;
|
|
29
|
+
/** These become Task Groups */
|
|
30
|
+
task_client_creates_bundle_groupings: Chrt.TaskCreateBundle[][];
|
|
28
31
|
/** A cargo may be shared by Tasks so we use a mapping */
|
|
29
32
|
cargo_client_creates_map: Record<string, Chrt.CargoClientCreate1>;
|
|
30
|
-
/** For DTC orders placed by shippers or chrt, this field is required. */
|
|
31
|
-
courier_org_id?: string;
|
|
32
|
-
/** Used for off-platform shipper orders. Mutually exclusive with shipper_org_id. */
|
|
33
|
-
off_chrt_shipper_org_connection_info_id?: string;
|
|
34
|
-
order_client_create: Chrt.OrderClientCreate1;
|
|
35
33
|
order_created_by_type: Chrt.OrderCreatedByTypeEnum;
|
|
36
34
|
/** If a shipper or chrt creates an order, this field is required. */
|
|
37
35
|
order_dispatch_type: Chrt.OrderDispatchTypeEnum;
|
|
36
|
+
transport_type: Chrt.TransportTypeEnum;
|
|
38
37
|
/** Optionally used when a courier places a DTC order or chrt places a DTC/FF order */
|
|
39
|
-
shipper_org_id?: string;
|
|
38
|
+
shipper_org_id?: string | null;
|
|
40
39
|
/** Must be a string starting with `user_` */
|
|
41
|
-
shipper_user_id?: string;
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
shipper_user_id?: string | null;
|
|
41
|
+
/** Used for off-platform shipper orders. Mutually exclusive with shipper_org_id. */
|
|
42
|
+
off_chrt_shipper_org_connection_info_id?: string | null;
|
|
43
|
+
/** For DTC orders placed by shippers or chrt, this field is required. */
|
|
44
|
+
courier_org_id?: string | null;
|
|
45
45
|
}
|