@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
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments.js";
|
|
5
5
|
import * as core from "./core/index.js";
|
|
6
|
-
import { Root } from "./api/resources/root/client/Client.js";
|
|
7
6
|
import { Dev } from "./api/resources/dev/client/Client.js";
|
|
8
|
-
import { Connections } from "./api/resources/connections/client/Client.js";
|
|
9
|
-
import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.js";
|
|
10
|
-
import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.js";
|
|
11
|
-
import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.js";
|
|
12
7
|
import { Drivers } from "./api/resources/drivers/client/Client.js";
|
|
13
|
-
import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.js";
|
|
14
8
|
import { Milestones } from "./api/resources/milestones/client/Client.js";
|
|
15
9
|
import { OffChrtShipperOrgConnectionInfo } from "./api/resources/offChrtShipperOrgConnectionInfo/client/Client.js";
|
|
16
|
-
import { Orders } from "./api/resources/orders/client/Client.js";
|
|
17
10
|
import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.js";
|
|
18
|
-
import {
|
|
11
|
+
import { Orders } from "./api/resources/orders/client/Client.js";
|
|
12
|
+
import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.js";
|
|
13
|
+
import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.js";
|
|
14
|
+
import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.js";
|
|
15
|
+
import { Connections } from "./api/resources/connections/client/Client.js";
|
|
19
16
|
import { TaskGroups } from "./api/resources/taskGroups/client/Client.js";
|
|
17
|
+
import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.js";
|
|
18
|
+
import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.js";
|
|
20
19
|
import { Orgs } from "./api/resources/orgs/client/Client.js";
|
|
21
20
|
import { Payments } from "./api/resources/payments/client/Client.js";
|
|
21
|
+
import { Root } from "./api/resources/root/client/Client.js";
|
|
22
22
|
import { Users } from "./api/resources/users/client/Client.js";
|
|
23
23
|
import { Notifications } from "./api/resources/notifications/client/Client.js";
|
|
24
24
|
import { OrgConnectionInfos } from "./api/resources/orgConnectionInfos/client/Client.js";
|
|
@@ -45,42 +45,42 @@ export declare namespace ChrtClient {
|
|
|
45
45
|
}
|
|
46
46
|
export declare class ChrtClient {
|
|
47
47
|
protected readonly _options: ChrtClient.Options;
|
|
48
|
-
protected _root: Root | undefined;
|
|
49
48
|
protected _dev: Dev | undefined;
|
|
50
|
-
protected _connections: Connections | undefined;
|
|
51
|
-
protected _courierPayDriverLineItemGroup: CourierPayDriverLineItemGroup | undefined;
|
|
52
|
-
protected _courierPayDriverPayouts: CourierPayDriverPayouts | undefined;
|
|
53
|
-
protected _courierPayDriverRateSheets: CourierPayDriverRateSheets | undefined;
|
|
54
49
|
protected _drivers: Drivers | undefined;
|
|
55
|
-
protected _milestoneNotifications: MilestoneNotifications | undefined;
|
|
56
50
|
protected _milestones: Milestones | undefined;
|
|
57
51
|
protected _offChrtShipperOrgConnectionInfo: OffChrtShipperOrgConnectionInfo | undefined;
|
|
58
|
-
protected _orders: Orders | undefined;
|
|
59
52
|
protected _orgProfiles: OrgProfiles | undefined;
|
|
60
|
-
protected
|
|
53
|
+
protected _orders: Orders | undefined;
|
|
54
|
+
protected _courierPayDriverRateSheets: CourierPayDriverRateSheets | undefined;
|
|
55
|
+
protected _courierPayDriverLineItemGroup: CourierPayDriverLineItemGroup | undefined;
|
|
56
|
+
protected _courierPayDriverPayouts: CourierPayDriverPayouts | undefined;
|
|
57
|
+
protected _connections: Connections | undefined;
|
|
61
58
|
protected _taskGroups: TaskGroups | undefined;
|
|
59
|
+
protected _shipperContactInfo: ShipperContactInfo | undefined;
|
|
60
|
+
protected _milestoneNotifications: MilestoneNotifications | undefined;
|
|
62
61
|
protected _orgs: Orgs | undefined;
|
|
63
62
|
protected _payments: Payments | undefined;
|
|
63
|
+
protected _root: Root | undefined;
|
|
64
64
|
protected _users: Users | undefined;
|
|
65
65
|
protected _notifications: Notifications | undefined;
|
|
66
66
|
protected _orgConnectionInfos: OrgConnectionInfos | undefined;
|
|
67
67
|
constructor(_options?: ChrtClient.Options);
|
|
68
|
-
get root(): Root;
|
|
69
68
|
get dev(): Dev;
|
|
70
|
-
get connections(): Connections;
|
|
71
|
-
get courierPayDriverLineItemGroup(): CourierPayDriverLineItemGroup;
|
|
72
|
-
get courierPayDriverPayouts(): CourierPayDriverPayouts;
|
|
73
|
-
get courierPayDriverRateSheets(): CourierPayDriverRateSheets;
|
|
74
69
|
get drivers(): Drivers;
|
|
75
|
-
get milestoneNotifications(): MilestoneNotifications;
|
|
76
70
|
get milestones(): Milestones;
|
|
77
71
|
get offChrtShipperOrgConnectionInfo(): OffChrtShipperOrgConnectionInfo;
|
|
78
|
-
get orders(): Orders;
|
|
79
72
|
get orgProfiles(): OrgProfiles;
|
|
80
|
-
get
|
|
73
|
+
get orders(): Orders;
|
|
74
|
+
get courierPayDriverRateSheets(): CourierPayDriverRateSheets;
|
|
75
|
+
get courierPayDriverLineItemGroup(): CourierPayDriverLineItemGroup;
|
|
76
|
+
get courierPayDriverPayouts(): CourierPayDriverPayouts;
|
|
77
|
+
get connections(): Connections;
|
|
81
78
|
get taskGroups(): TaskGroups;
|
|
79
|
+
get shipperContactInfo(): ShipperContactInfo;
|
|
80
|
+
get milestoneNotifications(): MilestoneNotifications;
|
|
82
81
|
get orgs(): Orgs;
|
|
83
82
|
get payments(): Payments;
|
|
83
|
+
get root(): Root;
|
|
84
84
|
get users(): Users;
|
|
85
85
|
get notifications(): Notifications;
|
|
86
86
|
get orgConnectionInfos(): OrgConnectionInfos;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -39,22 +39,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ChrtClient = void 0;
|
|
40
40
|
const core = __importStar(require("./core/index.js"));
|
|
41
41
|
const headers_js_1 = require("./core/headers.js");
|
|
42
|
-
const Client_js_1 = require("./api/resources/
|
|
43
|
-
const Client_js_2 = require("./api/resources/
|
|
44
|
-
const Client_js_3 = require("./api/resources/
|
|
45
|
-
const Client_js_4 = require("./api/resources/
|
|
46
|
-
const Client_js_5 = require("./api/resources/
|
|
47
|
-
const Client_js_6 = require("./api/resources/
|
|
48
|
-
const Client_js_7 = require("./api/resources/
|
|
49
|
-
const Client_js_8 = require("./api/resources/
|
|
50
|
-
const Client_js_9 = require("./api/resources/
|
|
51
|
-
const Client_js_10 = require("./api/resources/
|
|
52
|
-
const Client_js_11 = require("./api/resources/
|
|
53
|
-
const Client_js_12 = require("./api/resources/
|
|
54
|
-
const Client_js_13 = require("./api/resources/
|
|
55
|
-
const Client_js_14 = require("./api/resources/
|
|
56
|
-
const Client_js_15 = require("./api/resources/
|
|
57
|
-
const Client_js_16 = require("./api/resources/
|
|
42
|
+
const Client_js_1 = require("./api/resources/dev/client/Client.js");
|
|
43
|
+
const Client_js_2 = require("./api/resources/drivers/client/Client.js");
|
|
44
|
+
const Client_js_3 = require("./api/resources/milestones/client/Client.js");
|
|
45
|
+
const Client_js_4 = require("./api/resources/offChrtShipperOrgConnectionInfo/client/Client.js");
|
|
46
|
+
const Client_js_5 = require("./api/resources/orgProfiles/client/Client.js");
|
|
47
|
+
const Client_js_6 = require("./api/resources/orders/client/Client.js");
|
|
48
|
+
const Client_js_7 = require("./api/resources/courierPayDriverRateSheets/client/Client.js");
|
|
49
|
+
const Client_js_8 = require("./api/resources/courierPayDriverLineItemGroup/client/Client.js");
|
|
50
|
+
const Client_js_9 = require("./api/resources/courierPayDriverPayouts/client/Client.js");
|
|
51
|
+
const Client_js_10 = require("./api/resources/connections/client/Client.js");
|
|
52
|
+
const Client_js_11 = require("./api/resources/taskGroups/client/Client.js");
|
|
53
|
+
const Client_js_12 = require("./api/resources/shipperContactInfo/client/Client.js");
|
|
54
|
+
const Client_js_13 = require("./api/resources/milestoneNotifications/client/Client.js");
|
|
55
|
+
const Client_js_14 = require("./api/resources/orgs/client/Client.js");
|
|
56
|
+
const Client_js_15 = require("./api/resources/payments/client/Client.js");
|
|
57
|
+
const Client_js_16 = require("./api/resources/root/client/Client.js");
|
|
58
58
|
const Client_js_17 = require("./api/resources/users/client/Client.js");
|
|
59
59
|
const Client_js_18 = require("./api/resources/notifications/client/Client.js");
|
|
60
60
|
const Client_js_19 = require("./api/resources/orgConnectionInfos/client/Client.js");
|
|
@@ -63,75 +63,75 @@ class ChrtClient {
|
|
|
63
63
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
64
64
|
"X-Fern-Language": "JavaScript",
|
|
65
65
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
66
|
-
"X-Fern-SDK-Version": "0.0.
|
|
67
|
-
"User-Agent": "@chrt-inc/typescript-sdk/0.0.
|
|
66
|
+
"X-Fern-SDK-Version": "0.0.183",
|
|
67
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.183",
|
|
68
68
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
69
69
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
70
70
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
71
71
|
}
|
|
72
|
-
get root() {
|
|
73
|
-
var _a;
|
|
74
|
-
return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Client_js_1.Root(this._options)));
|
|
75
|
-
}
|
|
76
72
|
get dev() {
|
|
77
73
|
var _a;
|
|
78
|
-
return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new
|
|
74
|
+
return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new Client_js_1.Dev(this._options)));
|
|
79
75
|
}
|
|
80
|
-
get
|
|
76
|
+
get drivers() {
|
|
81
77
|
var _a;
|
|
82
|
-
return ((_a = this.
|
|
78
|
+
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Client_js_2.Drivers(this._options)));
|
|
83
79
|
}
|
|
84
|
-
get
|
|
80
|
+
get milestones() {
|
|
85
81
|
var _a;
|
|
86
|
-
return ((_a = this.
|
|
82
|
+
return ((_a = this._milestones) !== null && _a !== void 0 ? _a : (this._milestones = new Client_js_3.Milestones(this._options)));
|
|
87
83
|
}
|
|
88
|
-
get
|
|
84
|
+
get offChrtShipperOrgConnectionInfo() {
|
|
89
85
|
var _a;
|
|
90
|
-
return ((_a = this.
|
|
86
|
+
return ((_a = this._offChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrgConnectionInfo = new Client_js_4.OffChrtShipperOrgConnectionInfo(this._options)));
|
|
91
87
|
}
|
|
92
|
-
get
|
|
88
|
+
get orgProfiles() {
|
|
93
89
|
var _a;
|
|
94
|
-
return ((_a = this.
|
|
90
|
+
return ((_a = this._orgProfiles) !== null && _a !== void 0 ? _a : (this._orgProfiles = new Client_js_5.OrgProfiles(this._options)));
|
|
95
91
|
}
|
|
96
|
-
get
|
|
92
|
+
get orders() {
|
|
97
93
|
var _a;
|
|
98
|
-
return ((_a = this.
|
|
94
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_6.Orders(this._options)));
|
|
99
95
|
}
|
|
100
|
-
get
|
|
96
|
+
get courierPayDriverRateSheets() {
|
|
101
97
|
var _a;
|
|
102
|
-
return ((_a = this.
|
|
98
|
+
return ((_a = this._courierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._courierPayDriverRateSheets = new Client_js_7.CourierPayDriverRateSheets(this._options)));
|
|
103
99
|
}
|
|
104
|
-
get
|
|
100
|
+
get courierPayDriverLineItemGroup() {
|
|
105
101
|
var _a;
|
|
106
|
-
return ((_a = this.
|
|
102
|
+
return ((_a = this._courierPayDriverLineItemGroup) !== null && _a !== void 0 ? _a : (this._courierPayDriverLineItemGroup = new Client_js_8.CourierPayDriverLineItemGroup(this._options)));
|
|
107
103
|
}
|
|
108
|
-
get
|
|
104
|
+
get courierPayDriverPayouts() {
|
|
109
105
|
var _a;
|
|
110
|
-
return ((_a = this.
|
|
106
|
+
return ((_a = this._courierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._courierPayDriverPayouts = new Client_js_9.CourierPayDriverPayouts(this._options)));
|
|
111
107
|
}
|
|
112
|
-
get
|
|
108
|
+
get connections() {
|
|
113
109
|
var _a;
|
|
114
|
-
return ((_a = this.
|
|
110
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_10.Connections(this._options)));
|
|
115
111
|
}
|
|
116
|
-
get
|
|
112
|
+
get taskGroups() {
|
|
117
113
|
var _a;
|
|
118
|
-
return ((_a = this.
|
|
114
|
+
return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_11.TaskGroups(this._options)));
|
|
119
115
|
}
|
|
120
116
|
get shipperContactInfo() {
|
|
121
117
|
var _a;
|
|
122
|
-
return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new
|
|
118
|
+
return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new Client_js_12.ShipperContactInfo(this._options)));
|
|
123
119
|
}
|
|
124
|
-
get
|
|
120
|
+
get milestoneNotifications() {
|
|
125
121
|
var _a;
|
|
126
|
-
return ((_a = this.
|
|
122
|
+
return ((_a = this._milestoneNotifications) !== null && _a !== void 0 ? _a : (this._milestoneNotifications = new Client_js_13.MilestoneNotifications(this._options)));
|
|
127
123
|
}
|
|
128
124
|
get orgs() {
|
|
129
125
|
var _a;
|
|
130
|
-
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new
|
|
126
|
+
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_14.Orgs(this._options)));
|
|
131
127
|
}
|
|
132
128
|
get payments() {
|
|
133
129
|
var _a;
|
|
134
|
-
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new
|
|
130
|
+
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Client_js_15.Payments(this._options)));
|
|
131
|
+
}
|
|
132
|
+
get root() {
|
|
133
|
+
var _a;
|
|
134
|
+
return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Client_js_16.Root(this._options)));
|
|
135
135
|
}
|
|
136
136
|
get users() {
|
|
137
137
|
var _a;
|
package/dist/cjs/api/index.d.ts
CHANGED
package/dist/cjs/api/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./resources/index.js"), exports);
|
|
18
17
|
__exportStar(require("./types/index.js"), exports);
|
|
19
18
|
__exportStar(require("./errors/index.js"), exports);
|
|
19
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -32,24 +32,24 @@ export declare class Connections {
|
|
|
32
32
|
constructor(_options?: Connections.Options);
|
|
33
33
|
get connectionToCourier(): ConnectionToCourier;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Lists all shipper organizations connected to the authenticated courier organization.
|
|
36
36
|
*
|
|
37
37
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* await client.connections.
|
|
40
|
+
* await client.connections.listShippers()
|
|
41
41
|
*/
|
|
42
|
-
|
|
43
|
-
private
|
|
42
|
+
listShippers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperOrgConnectionInfo1[]>;
|
|
43
|
+
private __listShippers;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Lists all courier organizations connected to the authenticated shipper organization.
|
|
46
46
|
*
|
|
47
47
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
|
-
* await client.connections.
|
|
50
|
+
* await client.connections.listCouriers()
|
|
51
51
|
*/
|
|
52
|
-
|
|
53
|
-
private
|
|
52
|
+
listCouriers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierOrgConnectionInfo1[]>;
|
|
53
|
+
private __listCouriers;
|
|
54
54
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
55
55
|
}
|
|
@@ -60,21 +60,21 @@ class Connections {
|
|
|
60
60
|
return ((_a = this._connectionToCourier) !== null && _a !== void 0 ? _a : (this._connectionToCourier = new Client_js_1.ConnectionToCourier(this._options)));
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Lists all shipper organizations connected to the authenticated courier organization.
|
|
64
64
|
*
|
|
65
65
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.connections.
|
|
68
|
+
* await client.connections.listShippers()
|
|
69
69
|
*/
|
|
70
|
-
|
|
71
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
70
|
+
listShippers(requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__listShippers(requestOptions));
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
__listShippers(requestOptions) {
|
|
74
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
75
|
var _a, _b, _c, _d;
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
|
-
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/connections/
|
|
77
|
+
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/connections/shippers/list"),
|
|
78
78
|
method: "GET",
|
|
79
79
|
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),
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -99,7 +99,7 @@ class Connections {
|
|
|
99
99
|
rawResponse: _response.rawResponse,
|
|
100
100
|
});
|
|
101
101
|
case "timeout":
|
|
102
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/
|
|
102
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/shippers/list.");
|
|
103
103
|
case "unknown":
|
|
104
104
|
throw new errors.ChrtError({
|
|
105
105
|
message: _response.error.errorMessage,
|
|
@@ -109,21 +109,21 @@ class Connections {
|
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Lists all courier organizations connected to the authenticated shipper organization.
|
|
113
113
|
*
|
|
114
114
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
115
|
*
|
|
116
116
|
* @example
|
|
117
|
-
* await client.connections.
|
|
117
|
+
* await client.connections.listCouriers()
|
|
118
118
|
*/
|
|
119
|
-
|
|
120
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
119
|
+
listCouriers(requestOptions) {
|
|
120
|
+
return core.HttpResponsePromise.fromPromise(this.__listCouriers(requestOptions));
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
__listCouriers(requestOptions) {
|
|
123
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
124
|
var _a, _b, _c, _d;
|
|
125
125
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
126
|
-
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/connections/
|
|
126
|
+
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/connections/couriers/list"),
|
|
127
127
|
method: "GET",
|
|
128
128
|
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),
|
|
129
129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -148,7 +148,7 @@ class Connections {
|
|
|
148
148
|
rawResponse: _response.rawResponse,
|
|
149
149
|
});
|
|
150
150
|
case "timeout":
|
|
151
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/
|
|
151
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/couriers/list.");
|
|
152
152
|
case "unknown":
|
|
153
153
|
throw new errors.ChrtError({
|
|
154
154
|
message: _response.error.errorMessage,
|
|
@@ -29,7 +29,7 @@ export declare class ConnectionToCourier {
|
|
|
29
29
|
protected readonly _options: ConnectionToCourier.Options;
|
|
30
30
|
constructor(_options?: ConnectionToCourier.Options);
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Creates a new connection between a shipper and courier organization using the courier's handle.
|
|
33
33
|
*
|
|
34
34
|
* @param {Chrt.connections.CreateConnectionReq} request
|
|
35
35
|
* @param {ConnectionToCourier.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,7 +56,7 @@ class ConnectionToCourier {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Creates a new connection between a shipper and courier organization using the courier's handle.
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.connections.CreateConnectionReq} request
|
|
62
62
|
* @param {ConnectionToCourier.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -35,62 +35,62 @@ export declare class CourierPayDriverLineItemGroup {
|
|
|
35
35
|
get addLineItems(): AddLineItems;
|
|
36
36
|
get removeLineItems(): RemoveLineItems;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Previews calculated line items for a driver based on rate sheet and task group without creating the group.
|
|
39
39
|
*
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {Chrt.CourierPayDriverLineItemGroupPreviewRequest} request
|
|
41
41
|
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
42
|
*
|
|
43
43
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
44
44
|
*
|
|
45
45
|
* @example
|
|
46
|
-
* await client.courierPayDriverLineItemGroup.
|
|
46
|
+
* await client.courierPayDriverLineItemGroup.preview({
|
|
47
|
+
* courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
|
|
48
|
+
* task_group_id: "task_group_id"
|
|
49
|
+
* })
|
|
47
50
|
*/
|
|
48
|
-
|
|
49
|
-
private
|
|
51
|
+
preview(request: Chrt.CourierPayDriverLineItemGroupPreviewRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroupClientCreate1>;
|
|
52
|
+
private __preview;
|
|
50
53
|
/**
|
|
51
|
-
*
|
|
54
|
+
* Retrieves a courier driver line item group by its ID.
|
|
52
55
|
*
|
|
53
|
-
* @param {
|
|
56
|
+
* @param {string} id
|
|
54
57
|
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
58
|
*
|
|
56
59
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
57
60
|
*
|
|
58
61
|
* @example
|
|
59
|
-
* await client.courierPayDriverLineItemGroup.
|
|
60
|
-
* courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
|
|
61
|
-
* task_group_id: "task_group_id"
|
|
62
|
-
* })
|
|
62
|
+
* await client.courierPayDriverLineItemGroup.getById("id")
|
|
63
63
|
*/
|
|
64
|
-
|
|
65
|
-
private
|
|
64
|
+
getById(id: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
|
|
65
|
+
private __getById;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Retrieves a courier driver line item group by its associated task group ID.
|
|
68
68
|
*
|
|
69
|
-
* @param {
|
|
69
|
+
* @param {string} taskGroupId
|
|
70
70
|
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
|
-
* await client.courierPayDriverLineItemGroup.
|
|
76
|
-
* courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
|
|
77
|
-
* task_group_id: "task_group_id"
|
|
78
|
-
* })
|
|
75
|
+
* await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
|
|
79
76
|
*/
|
|
80
|
-
|
|
81
|
-
private
|
|
77
|
+
byTaskGroupId(taskGroupId: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
|
|
78
|
+
private __byTaskGroupId;
|
|
82
79
|
/**
|
|
83
|
-
*
|
|
80
|
+
* Creates a courier driver line item group by calculating items from rate sheet and task group.
|
|
84
81
|
*
|
|
85
|
-
* @param {
|
|
82
|
+
* @param {Chrt.CourierPayDriverLineItemGroupCreateRequest} request
|
|
86
83
|
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
84
|
*
|
|
88
85
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
89
86
|
*
|
|
90
87
|
* @example
|
|
91
|
-
* await client.courierPayDriverLineItemGroup.
|
|
88
|
+
* await client.courierPayDriverLineItemGroup.create({
|
|
89
|
+
* courier_pay_driver_rate_sheet_id: "courier_pay_driver_rate_sheet_id",
|
|
90
|
+
* task_group_id: "task_group_id"
|
|
91
|
+
* })
|
|
92
92
|
*/
|
|
93
|
-
|
|
94
|
-
private
|
|
93
|
+
create(request: Chrt.CourierPayDriverLineItemGroupCreateRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<string>;
|
|
94
|
+
private __create;
|
|
95
95
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
96
96
|
}
|