@chrt-inc/typescript-sdk 0.0.174 → 0.0.183
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 +79 -79
- 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 +24 -24
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +12 -12
- 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/SetDriverActivationReq.d.ts +3 -3
- 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 +1 -1
- 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/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 +8 -8
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
- 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 +16 -16
- 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 +7 -7
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +4 -4
- 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 +7 -7
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
- 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/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 +1 -1
- 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 +4 -4
- 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 +6 -6
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -3
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
- 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 +16 -16
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
- package/dist/cjs/api/types/Driver1.d.ts +6 -6
- package/dist/cjs/api/types/Expense1.d.ts +3 -3
- package/dist/cjs/api/types/Feature.d.ts +3 -3
- 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 +13 -13
- 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 +11 -11
- package/dist/cjs/api/types/Order1.d.ts +11 -11
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
- 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 +11 -11
- package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +11 -11
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +6 -6
- 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 +6 -6
- package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +5 -5
- package/dist/cjs/api/types/Task1.d.ts +13 -13
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroup1.d.ts +11 -11
- 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 +79 -79
- 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 +24 -24
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +12 -12
- 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/SetDriverActivationReq.d.mts +3 -3
- 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 +1 -1
- 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/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 +8 -8
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
- 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 +16 -16
- 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 +7 -7
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +4 -4
- 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 +7 -7
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
- 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/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 +1 -1
- 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 +4 -4
- 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 +6 -6
- package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -3
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
- 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 +16 -16
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +8 -8
- package/dist/esm/api/types/Driver1.d.mts +6 -6
- package/dist/esm/api/types/Expense1.d.mts +3 -3
- package/dist/esm/api/types/Feature.d.mts +3 -3
- 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 +13 -13
- 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 +11 -11
- package/dist/esm/api/types/Order1.d.mts +11 -11
- package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
- 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 +11 -11
- package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +11 -11
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +6 -6
- 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 +6 -6
- package/dist/esm/api/types/StripeConnectInvoice1.d.mts +5 -5
- package/dist/esm/api/types/Task1.d.mts +13 -13
- package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
- package/dist/esm/api/types/TaskCreateBundle.d.mts +2 -2
- package/dist/esm/api/types/TaskGroup1.d.mts +11 -11
- 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
|
@@ -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
|
|
@@ -20,7 +20,7 @@ export class OffChrtShipperOrgConnectionInfo {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Creates connection information for working with off-platform shipper organizations.
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.OffChrtShipperOrgConnectionInfoClientCreate1} request
|
|
26
26
|
* @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -29,8 +29,8 @@ export class OffChrtShipperOrgConnectionInfo {
|
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* await client.offChrtShipperOrgConnectionInfo.create({
|
|
32
|
-
*
|
|
33
|
-
*
|
|
32
|
+
* schema_version: 1,
|
|
33
|
+
* email_address_primary: "email_address_primary"
|
|
34
34
|
* })
|
|
35
35
|
*/
|
|
36
36
|
create(request, requestOptions) {
|
|
@@ -83,7 +83,7 @@ export class OffChrtShipperOrgConnectionInfo {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Lists all off-platform shipper connections created by the authenticated organization.
|
|
87
87
|
*
|
|
88
88
|
* @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
89
|
*
|
|
@@ -135,7 +135,7 @@ export class OffChrtShipperOrgConnectionInfo {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
138
|
+
* Retrieves specific off-platform shipper connection information by ID.
|
|
139
139
|
*
|
|
140
140
|
* @param {string} id
|
|
141
141
|
* @param {OffChrtShipperOrgConnectionInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -195,7 +195,7 @@ export class OffChrtShipperOrgConnectionInfo {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* Updates existing off-platform shipper connection information owned by the authenticated organization.
|
|
199
199
|
*
|
|
200
200
|
* @param {string} id
|
|
201
201
|
* @param {Chrt.OffChrtShipperOrgConnectionInfoClientUpdate1} request
|
|
@@ -5,21 +5,21 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
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
|
-
|
|
13
|
+
schema_version: number;
|
|
14
|
+
industry?: string;
|
|
15
|
+
street_address?: Chrt.Feature;
|
|
14
16
|
contact_first_name?: string;
|
|
15
17
|
contact_last_name?: string;
|
|
18
|
+
phone_number_primary?: string;
|
|
19
|
+
phone_number_secondary?: string;
|
|
16
20
|
email_address_primary: string;
|
|
17
21
|
email_address_secondary?: string;
|
|
18
|
-
industry?: string;
|
|
19
22
|
job_title?: string;
|
|
20
23
|
notes?: string;
|
|
21
|
-
|
|
22
|
-
phone_number_secondary?: string;
|
|
23
|
-
schema_version: number;
|
|
24
|
-
street_address?: Chrt.Feature;
|
|
24
|
+
company_name?: string;
|
|
25
25
|
}
|
|
@@ -7,14 +7,14 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface OffChrtShipperOrgConnectionInfoClientUpdate1 {
|
|
10
|
+
industry?: string;
|
|
11
|
+
street_address?: Chrt.Feature;
|
|
10
12
|
contact_first_name?: string;
|
|
11
13
|
contact_last_name?: string;
|
|
14
|
+
phone_number_primary?: string;
|
|
15
|
+
phone_number_secondary?: string;
|
|
12
16
|
email_address_primary?: string;
|
|
13
17
|
email_address_secondary?: string;
|
|
14
|
-
industry?: string;
|
|
15
18
|
job_title?: string;
|
|
16
19
|
notes?: string;
|
|
17
|
-
phone_number_primary?: string;
|
|
18
|
-
phone_number_secondary?: string;
|
|
19
|
-
street_address?: Chrt.Feature;
|
|
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
|
}
|
|
@@ -25,23 +25,25 @@ export class Orders {
|
|
|
25
25
|
return ((_a = this._full) !== null && _a !== void 0 ? _a : (this._full = new Full(this._options)));
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
+
* Retrieves an order by its full ID or short ID.
|
|
29
|
+
*
|
|
28
30
|
* @param {string} orderIdOrShortId
|
|
29
31
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
32
|
*
|
|
31
33
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
32
34
|
*
|
|
33
35
|
* @example
|
|
34
|
-
* await client.orders.
|
|
36
|
+
* await client.orders.getByOrderIdOrShortId("order_id_or_short_id")
|
|
35
37
|
*/
|
|
36
|
-
|
|
37
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
38
|
+
getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
|
|
39
|
+
return core.HttpResponsePromise.fromPromise(this.__getByOrderIdOrShortId(orderIdOrShortId, requestOptions));
|
|
38
40
|
}
|
|
39
|
-
|
|
41
|
+
__getByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
|
|
40
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
43
|
var _a, _b, _c, _d;
|
|
42
44
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
43
|
-
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
|
|
44
|
-
method: "
|
|
45
|
+
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)}`),
|
|
46
|
+
method: "GET",
|
|
45
47
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
46
48
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
47
49
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -70,7 +72,7 @@ export class Orders {
|
|
|
70
72
|
rawResponse: _response.rawResponse,
|
|
71
73
|
});
|
|
72
74
|
case "timeout":
|
|
73
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
75
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/{order_id_or_short_id}.");
|
|
74
76
|
case "unknown":
|
|
75
77
|
throw new errors.ChrtError({
|
|
76
78
|
message: _response.error.errorMessage,
|
|
@@ -80,45 +82,26 @@ export class Orders {
|
|
|
80
82
|
});
|
|
81
83
|
}
|
|
82
84
|
/**
|
|
83
|
-
*
|
|
85
|
+
* Cancels an order and all associated task groups and line item groups.
|
|
86
|
+
*
|
|
87
|
+
* @param {string} orderIdOrShortId
|
|
84
88
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
89
|
*
|
|
86
90
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
87
91
|
*
|
|
88
92
|
* @example
|
|
89
|
-
* await client.orders.
|
|
90
|
-
* cargo_client_creates_map: {
|
|
91
|
-
* "key": {
|
|
92
|
-
* cargo_type: "spare_parts",
|
|
93
|
-
* schema_version: 1
|
|
94
|
-
* }
|
|
95
|
-
* },
|
|
96
|
-
* order_client_create: {
|
|
97
|
-
* schema_version: 1
|
|
98
|
-
* },
|
|
99
|
-
* order_created_by_type: "chrt",
|
|
100
|
-
* order_dispatch_type: "dtc",
|
|
101
|
-
* task_client_creates_bundle_groupings: [[{
|
|
102
|
-
* task_client_create: {
|
|
103
|
-
* schema_version: 1
|
|
104
|
-
* }
|
|
105
|
-
* }]],
|
|
106
|
-
* transport_type: "ground_only"
|
|
107
|
-
* })
|
|
93
|
+
* await client.orders.cancelByOrderIdOrShortId("order_id_or_short_id")
|
|
108
94
|
*/
|
|
109
|
-
|
|
110
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
95
|
+
cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
|
|
96
|
+
return core.HttpResponsePromise.fromPromise(this.__cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions));
|
|
111
97
|
}
|
|
112
|
-
|
|
98
|
+
__cancelByOrderIdOrShortId(orderIdOrShortId, requestOptions) {
|
|
113
99
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
100
|
var _a, _b, _c, _d;
|
|
115
101
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
116
|
-
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,
|
|
117
|
-
method: "
|
|
102
|
+
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)}`),
|
|
103
|
+
method: "PATCH",
|
|
118
104
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
119
|
-
contentType: "application/json",
|
|
120
|
-
requestType: "json",
|
|
121
|
-
body: request,
|
|
122
105
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
123
106
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
124
107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -146,7 +129,7 @@ export class Orders {
|
|
|
146
129
|
rawResponse: _response.rawResponse,
|
|
147
130
|
});
|
|
148
131
|
case "timeout":
|
|
149
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
132
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/orders/cancel/{order_id_or_short_id}.");
|
|
150
133
|
case "unknown":
|
|
151
134
|
throw new errors.ChrtError({
|
|
152
135
|
message: _response.error.errorMessage,
|
|
@@ -156,23 +139,47 @@ export class Orders {
|
|
|
156
139
|
});
|
|
157
140
|
}
|
|
158
141
|
/**
|
|
159
|
-
*
|
|
142
|
+
* Creates a comprehensive order with task groups, tasks, milestones, and cargo.
|
|
160
143
|
*
|
|
144
|
+
* @param {Chrt.CreateOrderReq} request
|
|
161
145
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
162
146
|
*
|
|
147
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
148
|
+
*
|
|
163
149
|
* @example
|
|
164
|
-
* await client.orders.
|
|
150
|
+
* await client.orders.create({
|
|
151
|
+
* order_client_create: {
|
|
152
|
+
* schema_version: 1
|
|
153
|
+
* },
|
|
154
|
+
* task_client_creates_bundle_groupings: [[{
|
|
155
|
+
* task_client_create: {
|
|
156
|
+
* schema_version: 1
|
|
157
|
+
* }
|
|
158
|
+
* }]],
|
|
159
|
+
* cargo_client_creates_map: {
|
|
160
|
+
* "key": {
|
|
161
|
+
* schema_version: 1,
|
|
162
|
+
* cargo_type: "spare_parts"
|
|
163
|
+
* }
|
|
164
|
+
* },
|
|
165
|
+
* order_created_by_type: "chrt",
|
|
166
|
+
* order_dispatch_type: "dtc",
|
|
167
|
+
* transport_type: "ground_only"
|
|
168
|
+
* })
|
|
165
169
|
*/
|
|
166
|
-
|
|
167
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
170
|
+
create(request, requestOptions) {
|
|
171
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
168
172
|
}
|
|
169
|
-
|
|
173
|
+
__create(request, requestOptions) {
|
|
170
174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
175
|
var _a, _b, _c, _d;
|
|
172
176
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
173
|
-
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/
|
|
174
|
-
method: "
|
|
177
|
+
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"),
|
|
178
|
+
method: "POST",
|
|
175
179
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
180
|
+
contentType: "application/json",
|
|
181
|
+
requestType: "json",
|
|
182
|
+
body: request,
|
|
176
183
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
177
184
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
178
185
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -181,11 +188,16 @@ export class Orders {
|
|
|
181
188
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
182
189
|
}
|
|
183
190
|
if (_response.error.reason === "status-code") {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
191
|
+
switch (_response.error.statusCode) {
|
|
192
|
+
case 422:
|
|
193
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
194
|
+
default:
|
|
195
|
+
throw new errors.ChrtError({
|
|
196
|
+
statusCode: _response.error.statusCode,
|
|
197
|
+
body: _response.error.body,
|
|
198
|
+
rawResponse: _response.rawResponse,
|
|
199
|
+
});
|
|
200
|
+
}
|
|
189
201
|
}
|
|
190
202
|
switch (_response.error.reason) {
|
|
191
203
|
case "non-json":
|
|
@@ -195,7 +207,7 @@ export class Orders {
|
|
|
195
207
|
rawResponse: _response.rawResponse,
|
|
196
208
|
});
|
|
197
209
|
case "timeout":
|
|
198
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
210
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create.");
|
|
199
211
|
case "unknown":
|
|
200
212
|
throw new errors.ChrtError({
|
|
201
213
|
message: _response.error.errorMessage,
|
|
@@ -205,7 +217,7 @@ export class Orders {
|
|
|
205
217
|
});
|
|
206
218
|
}
|
|
207
219
|
/**
|
|
208
|
-
*
|
|
220
|
+
* Lists all orders for the authenticated shipper organization.
|
|
209
221
|
*
|
|
210
222
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
211
223
|
*
|
|
@@ -254,24 +266,21 @@ export class Orders {
|
|
|
254
266
|
});
|
|
255
267
|
}
|
|
256
268
|
/**
|
|
257
|
-
*
|
|
269
|
+
* Lists all orders assigned to the authenticated courier organization.
|
|
258
270
|
*
|
|
259
|
-
* @param {string} orderIdOrShortId
|
|
260
271
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
261
272
|
*
|
|
262
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
263
|
-
*
|
|
264
273
|
* @example
|
|
265
|
-
* await client.orders.
|
|
274
|
+
* await client.orders.listByCourierOrgId()
|
|
266
275
|
*/
|
|
267
|
-
|
|
268
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
276
|
+
listByCourierOrgId(requestOptions) {
|
|
277
|
+
return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgId(requestOptions));
|
|
269
278
|
}
|
|
270
|
-
|
|
279
|
+
__listByCourierOrgId(requestOptions) {
|
|
271
280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
272
281
|
var _a, _b, _c, _d;
|
|
273
282
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
274
|
-
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,
|
|
283
|
+
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"),
|
|
275
284
|
method: "GET",
|
|
276
285
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
277
286
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -282,16 +291,11 @@ export class Orders {
|
|
|
282
291
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
283
292
|
}
|
|
284
293
|
if (_response.error.reason === "status-code") {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
statusCode: _response.error.statusCode,
|
|
291
|
-
body: _response.error.body,
|
|
292
|
-
rawResponse: _response.rawResponse,
|
|
293
|
-
});
|
|
294
|
-
}
|
|
294
|
+
throw new errors.ChrtError({
|
|
295
|
+
statusCode: _response.error.statusCode,
|
|
296
|
+
body: _response.error.body,
|
|
297
|
+
rawResponse: _response.rawResponse,
|
|
298
|
+
});
|
|
295
299
|
}
|
|
296
300
|
switch (_response.error.reason) {
|
|
297
301
|
case "non-json":
|
|
@@ -301,7 +305,7 @@ export class Orders {
|
|
|
301
305
|
rawResponse: _response.rawResponse,
|
|
302
306
|
});
|
|
303
307
|
case "timeout":
|
|
304
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/
|
|
308
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_courier_org_id.");
|
|
305
309
|
case "unknown":
|
|
306
310
|
throw new errors.ChrtError({
|
|
307
311
|
message: _response.error.errorMessage,
|
|
@@ -5,41 +5,41 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
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
38
|
shipper_org_id?: string;
|
|
40
39
|
/** Must be a string starting with `user_` */
|
|
41
40
|
shipper_user_id?: string;
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
/** Used for off-platform shipper orders. Mutually exclusive with shipper_org_id. */
|
|
42
|
+
off_chrt_shipper_org_connection_info_id?: string;
|
|
43
|
+
/** For DTC orders placed by shippers or chrt, this field is required. */
|
|
44
|
+
courier_org_id?: string;
|
|
45
45
|
}
|
|
@@ -29,17 +29,20 @@ export declare class Full {
|
|
|
29
29
|
protected readonly _options: Full.Options;
|
|
30
30
|
constructor(_options?: Full.Options);
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Retrieves an order with all related task groups, tasks, milestones, and cargo information.
|
|
33
33
|
*
|
|
34
|
+
* @param {string} orderIdOrShortId
|
|
34
35
|
* @param {Full.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
36
|
*
|
|
37
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
38
|
+
*
|
|
36
39
|
* @example
|
|
37
|
-
* await client.orders.full.
|
|
40
|
+
* await client.orders.full.getByOrderIdOrShortId("order_id_or_short_id")
|
|
38
41
|
*/
|
|
39
|
-
|
|
40
|
-
private
|
|
42
|
+
getByOrderIdOrShortId(orderIdOrShortId: string, requestOptions?: Full.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderFullRes>;
|
|
43
|
+
private __getByOrderIdOrShortId;
|
|
41
44
|
/**
|
|
42
|
-
*
|
|
45
|
+
* Lists all orders for the authenticated shipper organization with complete task groups, tasks, milestones, and cargo details.
|
|
43
46
|
*
|
|
44
47
|
* @param {Full.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
48
|
*
|
|
@@ -49,17 +52,14 @@ export declare class Full {
|
|
|
49
52
|
listByShipperOrgId(requestOptions?: Full.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderFullRes[]>;
|
|
50
53
|
private __listByShipperOrgId;
|
|
51
54
|
/**
|
|
52
|
-
*
|
|
55
|
+
* Lists all orders assigned to the authenticated courier organization with complete task groups, tasks, milestones, and cargo details.
|
|
53
56
|
*
|
|
54
|
-
* @param {string} orderIdOrShortId
|
|
55
57
|
* @param {Full.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
58
|
*
|
|
57
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
58
|
-
*
|
|
59
59
|
* @example
|
|
60
|
-
* await client.orders.full.
|
|
60
|
+
* await client.orders.full.listByCourierOrgId()
|
|
61
61
|
*/
|
|
62
|
-
|
|
63
|
-
private
|
|
62
|
+
listByCourierOrgId(requestOptions?: Full.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderFullRes[]>;
|
|
63
|
+
private __listByCourierOrgId;
|
|
64
64
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
65
65
|
}
|