@chrt-inc/typescript-sdk 0.0.170 → 0.1.0-beta1
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 -36
- package/dist/cjs/Client.js +50 -70
- package/dist/cjs/api/resources/index.d.ts +14 -24
- package/dist/cjs/api/resources/index.js +15 -25
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → messages}/client/Client.d.ts +22 -14
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → messages}/client/Client.js +42 -23
- package/dist/cjs/api/resources/messages/client/requests/ShipperToCourierCreate1.d.ts +27 -0
- package/dist/cjs/api/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/mirror/client/Client.d.ts +0 -27
- package/dist/cjs/api/resources/mirror/client/Client.js +0 -121
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/Client.d.ts +12 -42
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/Client.js +36 -79
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/index.js +0 -15
- package/dist/cjs/api/resources/oortDrivers/client/Client.d.ts +4 -17
- package/dist/cjs/api/resources/oortDrivers/client/Client.js +3 -60
- package/dist/cjs/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.ts +0 -2
- package/dist/cjs/api/resources/oortDrivers/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/{oortConnections → oortHandles}/client/Client.d.ts +25 -18
- package/dist/cjs/api/resources/{oortConnections → oortHandles}/client/Client.js +44 -32
- package/dist/cjs/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.ts → oortHandles/client/requests/HandlesReq.d.ts} +1 -1
- package/dist/cjs/api/resources/oortHandles/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/oortMilestones/client/Client.d.ts +0 -31
- package/dist/cjs/api/resources/oortMilestones/client/Client.js +0 -122
- package/dist/cjs/api/resources/oortMilestones/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortOrders/client/Client.d.ts +1 -22
- package/dist/cjs/api/resources/oortOrders/client/Client.js +1 -105
- package/dist/cjs/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +0 -2
- package/dist/cjs/api/resources/oortOrgProfiles/client/Client.d.ts +14 -42
- package/dist/cjs/api/resources/oortOrgProfiles/client/Client.js +34 -157
- package/dist/cjs/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +5 -4
- package/dist/cjs/api/resources/oortOrgProfiles/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortRateSheets/client/Client.d.ts +70 -0
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → oortRateSheets}/client/Client.js +57 -44
- package/dist/cjs/api/resources/{oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts → oortRateSheets/client/requests/RateSheetClientCreate1.d.ts} +7 -8
- package/dist/cjs/api/resources/oortRateSheets/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/oortRoutes/client/Client.d.ts +112 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/Client.js +130 -142
- package/dist/cjs/api/resources/oortRoutes/client/requests/GetOortRoutesByIdRequest.d.ts +29 -0
- package/dist/{esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts → cjs/api/resources/oortRoutes/client/requests/RouteCreateReq.d.ts} +3 -3
- package/dist/cjs/api/resources/{oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts → oortRoutes/client/requests/UpdateRouteReq.d.ts} +5 -3
- package/dist/cjs/api/resources/oortRoutes/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/oortShippers/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → oortShippers}/client/Client.js +24 -41
- package/dist/cjs/api/resources/oortTaskGroups/client/Client.d.ts +6 -60
- package/dist/cjs/api/resources/oortTaskGroups/client/Client.js +2 -238
- package/dist/cjs/api/resources/oortTaskGroups/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortTaskGroups/client/index.js +0 -15
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -57
- package/dist/cjs/api/resources/orgs/client/Client.js +2 -230
- package/dist/{esm/api/resources/oortConnections/client/requests/CreateConnectionReq.d.mts → cjs/api/resources/orgs/client/requests/PostOrgPublicDataReq.d.ts} +1 -1
- package/dist/cjs/api/resources/orgs/client/requests/index.d.ts +1 -2
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +72 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → profiles}/client/Client.js +52 -37
- package/dist/cjs/api/resources/profiles/client/requests/CourierProfileCreate2.d.ts +32 -0
- package/dist/cjs/api/resources/profiles/client/requests/GetCourierProfileRequest.d.ts +12 -0
- package/dist/cjs/api/resources/profiles/client/requests/GetHandleIsAvailableRequest.d.ts +15 -0
- package/dist/cjs/api/resources/profiles/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/profiles/index.d.ts +2 -0
- package/dist/cjs/api/resources/profiles/index.js +18 -0
- package/dist/cjs/api/resources/profiles/types/Type.d.ts +8 -0
- package/dist/cjs/api/resources/profiles/types/Type.js +10 -0
- package/dist/cjs/api/resources/profiles/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/types/index.js +17 -0
- package/dist/cjs/api/resources/root/types/PydanticResponse.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
- package/dist/{esm/api/types/Vehicle1.d.mts → cjs/api/types/AppModelsDbOortVehicle1Vehicle1.d.ts} +1 -1
- package/dist/cjs/api/types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.d.ts +10 -0
- package/dist/cjs/api/types/CourierAvailabilityEnum.d.ts +9 -0
- package/dist/cjs/api/types/CourierAvailabilityEnum.js +11 -0
- package/dist/cjs/api/types/{MultipleTaskGroupsDetailsResponse.d.ts → CourierCity.d.ts} +4 -2
- package/dist/cjs/api/types/{CourierOrgConnectionInfo1.d.ts → CourierOrgInfo1.d.ts} +2 -1
- package/dist/cjs/api/types/CourierOrgProfile3.d.ts +1 -2
- package/dist/cjs/api/types/CourierProfile2.d.ts +28 -0
- package/dist/cjs/api/types/{MultipleTaskGroupsWithTasks.d.ts → CourierProfileRes2.d.ts} +3 -2
- package/dist/cjs/api/types/CourierServiceEnum.d.ts +20 -0
- package/dist/cjs/api/types/CourierServiceEnum.js +22 -0
- package/dist/cjs/api/types/CourierState.d.ts +8 -0
- package/dist/cjs/api/types/Driver1.d.ts +4 -6
- package/dist/cjs/api/types/EmailAddress1.d.ts +8 -0
- package/dist/cjs/api/types/{TaskGroupWithDetails.d.ts → GetTaskGroupWithFullTaskInfoRes.d.ts} +2 -2
- package/dist/cjs/api/types/{TaskGroupWithTasks.d.ts → GetTaskGroupWithTasksRes.d.ts} +1 -1
- package/dist/cjs/api/types/GetTaskGroupsWithFullTaskInfoListRes.d.ts +7 -0
- package/dist/cjs/api/types/GetTaskGroupsWithTasksListRes.d.ts +7 -0
- package/dist/cjs/api/types/{TaskGroupDetailsResponse.d.ts → GetTaskInfoListRes.d.ts} +2 -2
- package/dist/cjs/api/types/IndustryEnum.d.ts +21 -0
- package/dist/cjs/api/types/IndustryEnum.js +23 -0
- package/dist/cjs/api/types/Milestone1.d.ts +1 -5
- package/dist/cjs/api/types/MilestoneTypeEnum1.d.ts +2 -3
- package/dist/cjs/api/types/MilestoneTypeEnum1.js +1 -2
- package/dist/cjs/api/types/Order1.d.ts +1 -4
- package/dist/cjs/api/types/OrgPublicData2.d.ts +0 -1
- package/dist/cjs/api/types/PhoneNumber1.d.ts +8 -0
- package/dist/cjs/api/types/{CourierPayDriverRateSheet1.d.ts → RateSheet1.d.ts} +7 -7
- package/dist/cjs/api/types/Route1.d.ts +13 -0
- package/dist/cjs/api/types/RouteByIdEnum.d.ts +8 -0
- package/dist/cjs/api/types/RouteByIdEnum.js +10 -0
- package/dist/cjs/api/types/RouteDetailRes.d.ts +9 -0
- package/dist/cjs/api/types/{ShipperOrgConnectionInfo1.d.ts → ShipperOrgInfo1.d.ts} +2 -1
- package/dist/cjs/api/types/ShipperToCourier1.d.ts +16 -0
- package/dist/cjs/api/types/{ShipperContactInfoClientCreate1.d.ts → ShipperUserInfo1.d.ts} +3 -3
- package/dist/cjs/api/types/SocialLinks.d.ts +8 -0
- package/dist/cjs/api/types/Task1.d.ts +4 -4
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +3 -3
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +0 -2
- package/dist/cjs/api/types/TaskDetailRes.d.ts +9 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -7
- package/dist/cjs/api/types/TaskGroupDetailRes.d.ts +8 -0
- package/dist/cjs/api/types/{TaskWithDetails.d.ts → TaskInfo.d.ts} +1 -1
- package/dist/cjs/api/types/{UpdateTaskGroupRes.d.ts → UpdateRouteRes.d.ts} +1 -1
- package/dist/cjs/api/types/UsStatesEnum.d.ts +58 -0
- package/dist/cjs/api/types/UsStatesEnum.js +60 -0
- package/dist/cjs/api/types/{UserPublicData6.d.ts → UserPublicData5.d.ts} +2 -1
- package/dist/cjs/api/types/Vehicle1Input.d.ts +10 -0
- package/dist/cjs/api/types/VehicleRate1.d.ts +9 -0
- package/dist/cjs/api/types/index.d.ts +33 -28
- package/dist/cjs/api/types/index.js +33 -28
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +24 -36
- package/dist/esm/Client.mjs +34 -54
- package/dist/esm/api/resources/index.d.mts +14 -24
- package/dist/esm/api/resources/index.mjs +14 -24
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → messages}/client/Client.d.mts +22 -14
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → messages}/client/Client.mjs +40 -21
- package/dist/esm/api/resources/messages/client/requests/ShipperToCourierCreate1.d.mts +27 -0
- package/dist/esm/api/resources/messages/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/mirror/client/Client.d.mts +0 -27
- package/dist/esm/api/resources/mirror/client/Client.mjs +0 -121
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/Client.d.mts +12 -42
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/Client.mjs +36 -79
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/index.mjs +1 -1
- package/dist/esm/api/resources/oortDrivers/client/Client.d.mts +4 -17
- package/dist/esm/api/resources/oortDrivers/client/Client.mjs +3 -60
- package/dist/esm/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.mts +0 -2
- package/dist/esm/api/resources/oortDrivers/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/{oortConnections → oortHandles}/client/Client.d.mts +25 -18
- package/dist/esm/api/resources/{oortConnections → oortHandles}/client/Client.mjs +42 -30
- package/dist/esm/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.mts → oortHandles/client/requests/HandlesReq.d.mts} +1 -1
- package/dist/esm/api/resources/oortHandles/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/oortMilestones/client/Client.d.mts +0 -31
- package/dist/esm/api/resources/oortMilestones/client/Client.mjs +0 -122
- package/dist/esm/api/resources/oortMilestones/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortOrders/client/Client.d.mts +1 -22
- package/dist/esm/api/resources/oortOrders/client/Client.mjs +1 -105
- package/dist/esm/api/resources/oortOrders/client/requests/CreateOrderReq.d.mts +0 -2
- package/dist/esm/api/resources/oortOrgProfiles/client/Client.d.mts +14 -42
- package/dist/esm/api/resources/oortOrgProfiles/client/Client.mjs +34 -157
- package/dist/esm/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts +5 -4
- package/dist/esm/api/resources/oortOrgProfiles/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/oortRateSheets/client/Client.d.mts +70 -0
- package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → oortRateSheets}/client/Client.mjs +55 -42
- package/dist/esm/api/resources/{oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts → oortRateSheets/client/requests/RateSheetClientCreate1.d.mts} +7 -8
- package/dist/esm/api/resources/oortRateSheets/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/oortRoutes/client/Client.d.mts +112 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/Client.mjs +128 -140
- package/dist/esm/api/resources/oortRoutes/client/requests/GetOortRoutesByIdRequest.d.mts +29 -0
- package/dist/{cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts → esm/api/resources/oortRoutes/client/requests/RouteCreateReq.d.mts} +3 -3
- package/dist/esm/api/resources/{oortTaskGroups/client/requests/UpdateTaskGroupReq.d.mts → oortRoutes/client/requests/UpdateRouteReq.d.mts} +5 -3
- package/dist/esm/api/resources/oortRoutes/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/oortShippers/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → oortShippers}/client/Client.mjs +22 -39
- package/dist/esm/api/resources/oortTaskGroups/client/Client.d.mts +6 -60
- package/dist/esm/api/resources/oortTaskGroups/client/Client.mjs +2 -238
- package/dist/esm/api/resources/oortTaskGroups/client/index.d.mts +0 -1
- package/dist/esm/api/resources/oortTaskGroups/client/index.mjs +1 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -57
- package/dist/esm/api/resources/orgs/client/Client.mjs +2 -230
- package/dist/{cjs/api/resources/oortConnections/client/requests/CreateConnectionReq.d.ts → esm/api/resources/orgs/client/requests/PostOrgPublicDataReq.d.mts} +1 -1
- package/dist/esm/api/resources/orgs/client/requests/index.d.mts +1 -2
- package/dist/esm/api/resources/profiles/client/Client.d.mts +72 -0
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → profiles}/client/Client.mjs +50 -35
- package/dist/esm/api/resources/profiles/client/requests/CourierProfileCreate2.d.mts +32 -0
- package/dist/esm/api/resources/profiles/client/requests/GetCourierProfileRequest.d.mts +12 -0
- package/dist/esm/api/resources/profiles/client/requests/GetHandleIsAvailableRequest.d.mts +15 -0
- package/dist/esm/api/resources/profiles/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/profiles/index.d.mts +2 -0
- package/dist/esm/api/resources/profiles/index.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/Type.d.mts +8 -0
- package/dist/{cjs/api/types/EmailReq.d.ts → esm/api/resources/profiles/types/Type.mjs} +4 -3
- package/dist/esm/api/resources/profiles/types/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/types/index.mjs +1 -0
- package/dist/esm/api/resources/root/types/PydanticResponse.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
- package/dist/{cjs/api/types/Vehicle1.d.ts → esm/api/types/AppModelsDbOortVehicle1Vehicle1.d.mts} +1 -1
- package/dist/esm/api/types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.d.mts +10 -0
- package/dist/esm/api/types/CourierAvailabilityEnum.d.mts +9 -0
- package/dist/esm/api/types/CourierAvailabilityEnum.mjs +8 -0
- package/dist/esm/api/types/CourierCity.d.mts +9 -0
- package/dist/esm/api/types/{CourierOrgConnectionInfo1.d.mts → CourierOrgInfo1.d.mts} +2 -1
- package/dist/esm/api/types/CourierOrgProfile3.d.mts +1 -2
- package/dist/esm/api/types/CourierProfile2.d.mts +28 -0
- package/dist/esm/api/types/{MultipleTaskGroupsWithTasks.d.mts → CourierProfileRes2.d.mts} +3 -2
- package/dist/esm/api/types/CourierServiceEnum.d.mts +20 -0
- package/dist/esm/api/types/CourierServiceEnum.mjs +19 -0
- package/dist/esm/api/types/CourierState.d.mts +8 -0
- package/dist/esm/api/types/Driver1.d.mts +4 -6
- package/dist/esm/api/types/EmailAddress1.d.mts +8 -0
- package/dist/esm/api/types/{TaskGroupWithDetails.d.mts → GetTaskGroupWithFullTaskInfoRes.d.mts} +2 -2
- package/dist/esm/api/types/{TaskGroupWithTasks.d.mts → GetTaskGroupWithTasksRes.d.mts} +1 -1
- package/dist/esm/api/types/GetTaskGroupsWithFullTaskInfoListRes.d.mts +7 -0
- package/dist/esm/api/types/GetTaskGroupsWithTasksListRes.d.mts +7 -0
- package/dist/esm/api/types/{TaskGroupDetailsResponse.d.mts → GetTaskInfoListRes.d.mts} +2 -2
- package/dist/esm/api/types/IndustryEnum.d.mts +21 -0
- package/dist/esm/api/types/IndustryEnum.mjs +20 -0
- package/dist/esm/api/types/Milestone1.d.mts +1 -5
- package/dist/esm/api/types/MilestoneTypeEnum1.d.mts +2 -3
- package/dist/esm/api/types/MilestoneTypeEnum1.mjs +1 -2
- package/dist/esm/api/types/Order1.d.mts +1 -4
- package/dist/esm/api/types/OrgPublicData2.d.mts +0 -1
- package/dist/esm/api/types/PhoneNumber1.d.mts +8 -0
- package/dist/esm/api/types/{CourierPayDriverRateSheet1.d.mts → RateSheet1.d.mts} +7 -7
- package/dist/esm/api/types/Route1.d.mts +13 -0
- package/dist/esm/api/types/RouteByIdEnum.d.mts +8 -0
- package/dist/esm/api/types/RouteByIdEnum.mjs +7 -0
- package/dist/esm/api/types/RouteDetailRes.d.mts +9 -0
- package/dist/esm/api/types/{ShipperOrgConnectionInfo1.d.mts → ShipperOrgInfo1.d.mts} +2 -1
- package/dist/esm/api/types/ShipperToCourier1.d.mts +16 -0
- package/dist/esm/api/types/{ShipperContactInfoClientCreate1.d.mts → ShipperUserInfo1.d.mts} +3 -3
- package/dist/esm/api/types/SocialLinks.d.mts +8 -0
- package/dist/esm/api/types/Task1.d.mts +4 -4
- package/dist/esm/api/types/TaskClientCreate1.d.mts +3 -3
- package/dist/esm/api/types/TaskCreateBundle.d.mts +0 -2
- package/dist/esm/api/types/TaskDetailRes.d.mts +9 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -7
- package/dist/esm/api/types/{MultipleTaskGroupsDetailsResponse.d.mts → TaskGroupDetailRes.d.mts} +3 -2
- package/dist/esm/api/types/{TaskWithDetails.d.mts → TaskInfo.d.mts} +1 -1
- package/dist/esm/api/types/{UpdateTaskGroupRes.d.mts → UpdateRouteRes.d.mts} +1 -1
- package/dist/esm/api/types/UsStatesEnum.d.mts +58 -0
- package/dist/esm/api/types/UsStatesEnum.mjs +57 -0
- package/dist/esm/api/types/{UserPublicData6.d.mts → UserPublicData5.d.mts} +2 -1
- package/dist/esm/api/types/Vehicle1Input.d.mts +10 -0
- package/dist/esm/api/types/VehicleRate1.d.mts +9 -0
- package/dist/esm/api/types/index.d.mts +33 -28
- package/dist/esm/api/types/index.mjs +33 -28
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +604 -3034
- package/dist/cjs/api/resources/notificationsCourierNotificationPreferences/client/Client.d.ts +0 -57
- package/dist/cjs/api/resources/notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +0 -18
- package/dist/cjs/api/resources/notificationsCourierNotificationPreferences/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/client/Client.d.ts +0 -57
- package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +0 -18
- package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortConnections/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/Client.d.ts +0 -136
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/AddLineItemsReq.d.ts +0 -19
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.d.ts +0 -18
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.d.ts +0 -18
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.d.ts +0 -12
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.d.ts +0 -12
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/RemoveLineItemsReq.d.ts +0 -19
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/index.d.ts +0 -6
- package/dist/cjs/api/resources/oortCourierPayDriverPayouts/client/Client.d.ts +0 -70
- package/dist/cjs/api/resources/oortCourierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +0 -14
- package/dist/cjs/api/resources/oortCourierPayDriverPayouts/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/Client.d.ts +0 -72
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/Client.js +0 -243
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/index.js +0 -17
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +0 -29
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/index.js +0 -17
- package/dist/cjs/api/resources/oortDrivers/client/requests/DriverCreateReq.d.ts +0 -17
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/index.js +0 -17
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +0 -18
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/index.js +0 -17
- package/dist/cjs/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +0 -16
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.d.ts +0 -75
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.js +0 -252
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/index.js +0 -17
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +0 -25
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +0 -20
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/index.js +0 -17
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/Client.d.ts +0 -110
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/Client.js +0 -412
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/index.js +0 -17
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +0 -24
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +0 -20
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +0 -24
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +0 -20
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/oortOrgConnectionInfos/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortOrgConnectionInfos/index.js +0 -17
- package/dist/cjs/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts +0 -12
- package/dist/cjs/api/resources/oortShipperContactInfo/client/Client.d.ts +0 -148
- package/dist/cjs/api/resources/oortShipperContactInfo/client/Client.js +0 -579
- package/dist/cjs/api/resources/oortShipperContactInfo/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortShipperContactInfo/client/index.js +0 -17
- package/dist/cjs/api/resources/oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +0 -21
- package/dist/cjs/api/resources/oortShipperContactInfo/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortShipperContactInfo/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/oortShipperContactInfo/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortShipperContactInfo/index.js +0 -17
- package/dist/cjs/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +0 -14
- package/dist/cjs/api/resources/oortTaskGroups/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortTaskGroups/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +0 -14
- package/dist/cjs/api/types/CourierNotificationEventEnum.d.ts +0 -7
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +0 -18
- package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +0 -14
- package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +0 -10
- package/dist/cjs/api/types/DriverStatusEnum.d.ts +0 -9
- package/dist/cjs/api/types/DriverStatusEnum.js +0 -11
- package/dist/cjs/api/types/EmailRes.d.ts +0 -7
- package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +0 -18
- package/dist/cjs/api/types/MultipleTaskGroupsWithTasks.js +0 -5
- package/dist/cjs/api/types/NotificationChannelEnum.d.ts +0 -13
- package/dist/cjs/api/types/NotificationChannelEnum.js +0 -12
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +0 -23
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.js +0 -5
- package/dist/cjs/api/types/OrderStatusEnum1.d.ts +0 -10
- package/dist/cjs/api/types/OrderStatusEnum1.js +0 -12
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +0 -28
- package/dist/cjs/api/types/ShipperContactInfo1.js +0 -5
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.js +0 -5
- package/dist/cjs/api/types/ShipperNotificationEventEnum.d.ts +0 -7
- package/dist/cjs/api/types/ShipperNotificationEventEnum.js +0 -5
- package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +0 -18
- package/dist/cjs/api/types/ShipperNotificationPreferences1.js +0 -5
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.js +0 -5
- package/dist/cjs/api/types/TaskGroupDetailsResponse.js +0 -5
- package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +0 -9
- package/dist/cjs/api/types/TaskGroupStatusEnum1.js +0 -11
- package/dist/cjs/api/types/TaskGroupWithDetails.js +0 -5
- package/dist/cjs/api/types/TaskGroupWithTasks.js +0 -5
- package/dist/cjs/api/types/TaskWithDetails.js +0 -5
- package/dist/cjs/api/types/UpdateTaskGroupRes.js +0 -5
- package/dist/cjs/api/types/UserPublicData6.js +0 -5
- package/dist/cjs/api/types/Vehicle1.js +0 -5
- package/dist/esm/api/resources/notificationsCourierNotificationPreferences/client/Client.d.mts +0 -57
- package/dist/esm/api/resources/notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +0 -18
- package/dist/esm/api/resources/notificationsCourierNotificationPreferences/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/notificationsShipperNotificationPreferences/client/Client.d.mts +0 -57
- package/dist/esm/api/resources/notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +0 -18
- package/dist/esm/api/resources/notificationsShipperNotificationPreferences/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortConnections/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/Client.d.mts +0 -136
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/AddLineItemsReq.d.mts +0 -19
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.d.mts +0 -18
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.d.mts +0 -18
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.d.mts +0 -12
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.d.mts +0 -12
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/RemoveLineItemsReq.d.mts +0 -19
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/index.d.mts +0 -6
- package/dist/esm/api/resources/oortCourierPayDriverPayouts/client/Client.d.mts +0 -70
- package/dist/esm/api/resources/oortCourierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +0 -14
- package/dist/esm/api/resources/oortCourierPayDriverPayouts/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/Client.d.mts +0 -72
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/Client.mjs +0 -206
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/index.d.mts +0 -2
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/index.mjs +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +0 -29
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/index.mjs +0 -1
- package/dist/esm/api/resources/oortDrivers/client/requests/DriverCreateReq.d.mts +0 -17
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/client/index.d.mts +0 -2
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/client/index.mjs +0 -1
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +0 -18
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/index.d.mts +0 -1
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/index.mjs +0 -1
- package/dist/esm/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.mts +0 -16
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.d.mts +0 -75
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.mjs +0 -215
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/index.d.mts +0 -2
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/index.mjs +0 -1
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +0 -25
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +0 -20
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/index.d.mts +0 -1
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/index.mjs +0 -1
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/Client.d.mts +0 -110
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/Client.mjs +0 -375
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/index.d.mts +0 -2
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/index.mjs +0 -1
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +0 -24
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +0 -20
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +0 -24
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +0 -20
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/oortOrgConnectionInfos/index.d.mts +0 -1
- package/dist/esm/api/resources/oortOrgConnectionInfos/index.mjs +0 -1
- package/dist/esm/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts +0 -12
- package/dist/esm/api/resources/oortShipperContactInfo/client/Client.d.mts +0 -148
- package/dist/esm/api/resources/oortShipperContactInfo/client/Client.mjs +0 -542
- package/dist/esm/api/resources/oortShipperContactInfo/client/index.d.mts +0 -2
- package/dist/esm/api/resources/oortShipperContactInfo/client/index.mjs +0 -1
- package/dist/esm/api/resources/oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +0 -21
- package/dist/esm/api/resources/oortShipperContactInfo/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortShipperContactInfo/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/oortShipperContactInfo/index.d.mts +0 -1
- package/dist/esm/api/resources/oortShipperContactInfo/index.mjs +0 -1
- package/dist/esm/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.mts +0 -14
- package/dist/esm/api/resources/oortTaskGroups/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/oortTaskGroups/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +0 -14
- package/dist/esm/api/types/CourierNotificationEventEnum.d.mts +0 -7
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +0 -18
- package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +0 -14
- package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +0 -10
- package/dist/esm/api/types/DriverStatusEnum.d.mts +0 -9
- package/dist/esm/api/types/DriverStatusEnum.mjs +0 -8
- package/dist/esm/api/types/EmailReq.d.mts +0 -6
- package/dist/esm/api/types/EmailRes.d.mts +0 -7
- package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +0 -18
- package/dist/esm/api/types/MultipleTaskGroupsWithTasks.mjs +0 -4
- package/dist/esm/api/types/NotificationChannelEnum.d.mts +0 -13
- package/dist/esm/api/types/NotificationChannelEnum.mjs +0 -9
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +0 -23
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.mjs +0 -4
- package/dist/esm/api/types/OrderStatusEnum1.d.mts +0 -10
- package/dist/esm/api/types/OrderStatusEnum1.mjs +0 -9
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +0 -28
- package/dist/esm/api/types/ShipperContactInfo1.mjs +0 -4
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.mjs +0 -4
- package/dist/esm/api/types/ShipperNotificationEventEnum.d.mts +0 -7
- package/dist/esm/api/types/ShipperNotificationEventEnum.mjs +0 -4
- package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +0 -18
- package/dist/esm/api/types/ShipperNotificationPreferences1.mjs +0 -4
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.mjs +0 -4
- package/dist/esm/api/types/TaskGroupDetailsResponse.mjs +0 -4
- package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +0 -9
- package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +0 -8
- package/dist/esm/api/types/TaskGroupWithDetails.mjs +0 -4
- package/dist/esm/api/types/TaskGroupWithTasks.mjs +0 -4
- package/dist/esm/api/types/TaskWithDetails.mjs +0 -4
- package/dist/esm/api/types/UpdateTaskGroupRes.mjs +0 -4
- package/dist/esm/api/types/UserPublicData6.mjs +0 -4
- package/dist/esm/api/types/Vehicle1.mjs +0 -4
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → messages}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → messages}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.js → messages/client/requests/ShipperToCourierCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → messages}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → messages}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → messages}/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.js → oortHandles/client/requests/HandlesReq.js} +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortConnections → oortRateSheets}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortConnections → oortRateSheets}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortConnections/client/requests/CreateConnectionReq.js → oortRateSheets/client/requests/RateSheetClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{oortConnections → oortRateSheets}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortConnections → oortRateSheets}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortConnections → oortRateSheets}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/AddLineItemsReq.js → oortRoutes/client/requests/GetOortRoutesByIdRequest.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.js → oortRoutes/client/requests/RouteCreateReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.js → oortRoutes/client/requests/UpdateRouteReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/index.js +0 -0
- /package/dist/{esm/api/resources/notificationsCourierNotificationPreferences/client/requests/index.mjs → cjs/api/resources/oortShippers/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts/client/requests → oortShippers/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → oortShippers}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → oortShippers}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.js → orgs/client/requests/PostOrgPublicDataReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → profiles}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → profiles}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.js → profiles/client/requests/CourierProfileCreate2.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/RemoveLineItemsReq.js → profiles/client/requests/GetCourierProfileRequest.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.js → profiles/client/requests/GetHandleIsAvailableRequest.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRate → profiles}/client/requests/index.js +0 -0
- /package/dist/cjs/api/{resources/oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.js → types/AppModelsDbOortVehicle1Vehicle1.js} +0 -0
- /package/dist/cjs/api/{resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.js → types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.js} +0 -0
- /package/dist/cjs/api/{resources/oortDrivers/client/requests/DriverCreateReq.js → types/CourierCity.js} +0 -0
- /package/dist/cjs/api/{resources/oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.js → types/CourierOrgInfo1.js} +0 -0
- /package/dist/cjs/api/{resources/oortMilestones/client/requests/MilestoneAddToTaskReq.js → types/CourierProfile2.js} +0 -0
- /package/dist/cjs/api/{resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.js → types/CourierProfileRes2.js} +0 -0
- /package/dist/cjs/api/{resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.js → types/CourierState.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js → types/EmailAddress1.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.js → types/GetTaskGroupWithFullTaskInfoRes.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js → types/GetTaskGroupWithTasksRes.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js → types/GetTaskGroupsWithFullTaskInfoListRes.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.js → types/GetTaskGroupsWithTasksListRes.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgProfiles/client/requests/GetAvatarRequest.js → types/GetTaskInfoListRes.js} +0 -0
- /package/dist/cjs/api/{resources/oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.js → types/PhoneNumber1.js} +0 -0
- /package/dist/cjs/api/{resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.js → types/RateSheet1.js} +0 -0
- /package/dist/cjs/api/{resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.js → types/Route1.js} +0 -0
- /package/dist/cjs/api/{resources/orgs/client/requests/CreateOrgPublicDataReq.js → types/RouteDetailRes.js} +0 -0
- /package/dist/cjs/api/{resources/orgs/client/requests/UpdateOrgPublicDataReq.js → types/ShipperOrgInfo1.js} +0 -0
- /package/dist/cjs/api/types/{CourierNotificationEventEnum.js → ShipperToCourier1.js} +0 -0
- /package/dist/cjs/api/types/{CourierNotificationPreferences1.js → ShipperUserInfo1.js} +0 -0
- /package/dist/cjs/api/types/{CourierOrgConnectionInfo1.js → SocialLinks.js} +0 -0
- /package/dist/cjs/api/types/{CourierPayDriverLineItemGroup1.js → TaskDetailRes.js} +0 -0
- /package/dist/cjs/api/types/{CourierPayDriverLineItemGroupClientCreate1.js → TaskGroupDetailRes.js} +0 -0
- /package/dist/cjs/api/types/{CourierPayDriverRateSheet1.js → TaskInfo.js} +0 -0
- /package/dist/cjs/api/types/{EmailReq.js → UpdateRouteRes.js} +0 -0
- /package/dist/cjs/api/types/{EmailRes.js → UserPublicData5.js} +0 -0
- /package/dist/cjs/api/types/{MilestoneNotificationPreferences1.js → Vehicle1Input.js} +0 -0
- /package/dist/cjs/api/types/{MultipleTaskGroupsDetailsResponse.js → VehicleRate1.js} +0 -0
- /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → messages}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → messages}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.mjs → messages/client/requests/ShipperToCourierCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → messages}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → messages}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → messages}/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.mjs → oortHandles/client/requests/HandlesReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortConnections → oortHandles}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortConnections → oortRateSheets}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortConnections → oortRateSheets}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortConnections/client/requests/CreateConnectionReq.mjs → oortRateSheets/client/requests/RateSheetClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRateSheets}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortConnections → oortRateSheets}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortConnections → oortRateSheets}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/AddLineItemsReq.mjs → oortRoutes/client/requests/GetOortRoutesByIdRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.mjs → oortRoutes/client/requests/RouteCreateReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.mjs → oortRoutes/client/requests/UpdateRouteReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts → oortRoutes}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRate/client/requests/index.mjs → oortShippers/client/index.d.mts} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets/client/requests → oortShippers/client}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts → oortShippers}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts → oortShippers}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.mjs → orgs/client/requests/PostOrgPublicDataReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts → profiles}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts → profiles}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.mjs → profiles/client/requests/CourierProfileCreate2.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/RemoveLineItemsReq.mjs → profiles/client/requests/GetCourierProfileRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.mjs → profiles/client/requests/GetHandleIsAvailableRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → profiles}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/{resources/oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.mjs → types/AppModelsDbOortVehicle1Vehicle1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.mjs → types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortDrivers/client/requests/DriverCreateReq.mjs → types/CourierCity.mjs} +0 -0
- /package/dist/esm/api/{resources/oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.mjs → types/CourierOrgInfo1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortMilestones/client/requests/MilestoneAddToTaskReq.mjs → types/CourierProfile2.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.mjs → types/CourierProfileRes2.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.mjs → types/CourierState.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.mjs → types/EmailAddress1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.mjs → types/GetTaskGroupWithFullTaskInfoRes.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.mjs → types/GetTaskGroupWithTasksRes.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.mjs → types/GetTaskGroupsWithFullTaskInfoListRes.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.mjs → types/GetTaskGroupsWithTasksListRes.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgProfiles/client/requests/GetAvatarRequest.mjs → types/GetTaskInfoListRes.mjs} +0 -0
- /package/dist/esm/api/{resources/oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.mjs → types/PhoneNumber1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.mjs → types/RateSheet1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.mjs → types/Route1.mjs} +0 -0
- /package/dist/esm/api/{resources/orgs/client/requests/CreateOrgPublicDataReq.mjs → types/RouteDetailRes.mjs} +0 -0
- /package/dist/esm/api/{resources/orgs/client/requests/UpdateOrgPublicDataReq.mjs → types/ShipperOrgInfo1.mjs} +0 -0
- /package/dist/esm/api/types/{CourierNotificationEventEnum.mjs → ShipperToCourier1.mjs} +0 -0
- /package/dist/esm/api/types/{CourierNotificationPreferences1.mjs → ShipperUserInfo1.mjs} +0 -0
- /package/dist/esm/api/types/{CourierOrgConnectionInfo1.mjs → SocialLinks.mjs} +0 -0
- /package/dist/esm/api/types/{CourierPayDriverLineItemGroup1.mjs → TaskDetailRes.mjs} +0 -0
- /package/dist/esm/api/types/{CourierPayDriverLineItemGroupClientCreate1.mjs → TaskGroupDetailRes.mjs} +0 -0
- /package/dist/esm/api/types/{CourierPayDriverRateSheet1.mjs → TaskInfo.mjs} +0 -0
- /package/dist/esm/api/types/{EmailReq.mjs → UpdateRouteRes.mjs} +0 -0
- /package/dist/esm/api/types/{EmailRes.mjs → UserPublicData5.mjs} +0 -0
- /package/dist/esm/api/types/{MilestoneNotificationPreferences1.mjs → Vehicle1Input.mjs} +0 -0
- /package/dist/esm/api/types/{MultipleTaskGroupsDetailsResponse.mjs → VehicleRate1.mjs} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* handle: "handle",
|
|
8
|
+
* schema_version: 1,
|
|
9
|
+
* user_id: "user_id",
|
|
10
|
+
* name: "name",
|
|
11
|
+
* email_address: "email_address",
|
|
12
|
+
* message: "message",
|
|
13
|
+
* viewed: true
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface ShipperToCourierCreate1 {
|
|
17
|
+
handle: string;
|
|
18
|
+
schema_version: number;
|
|
19
|
+
user_id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
email_address: string;
|
|
22
|
+
message: string;
|
|
23
|
+
phone_number?: string;
|
|
24
|
+
viewed: boolean;
|
|
25
|
+
/** Must be a string starting with `user_` */
|
|
26
|
+
shipper_user_id?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ShipperToCourierCreate1 } from "./ShipperToCourierCreate1.js";
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
|
-
import * as Chrt from "../../../index.js";
|
|
7
6
|
export declare namespace Mirror {
|
|
8
7
|
interface Options {
|
|
9
8
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -28,32 +27,6 @@ export declare namespace Mirror {
|
|
|
28
27
|
export declare class Mirror {
|
|
29
28
|
protected readonly _options: Mirror.Options;
|
|
30
29
|
constructor(_options?: Mirror.Options);
|
|
31
|
-
/**
|
|
32
|
-
* @param {Chrt.EmailReq} request
|
|
33
|
-
* @param {Mirror.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
-
*
|
|
35
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* await client.mirror.postOrderInProgressEmail({
|
|
39
|
-
* to: ["to"]
|
|
40
|
-
* })
|
|
41
|
-
*/
|
|
42
|
-
postOrderInProgressEmail(request: Chrt.EmailReq, requestOptions?: Mirror.RequestOptions): core.HttpResponsePromise<Chrt.EmailRes>;
|
|
43
|
-
private __postOrderInProgressEmail;
|
|
44
|
-
/**
|
|
45
|
-
* @param {Chrt.EmailReq} request
|
|
46
|
-
* @param {Mirror.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
-
*
|
|
48
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* await client.mirror.postOrderCompletedEmail({
|
|
52
|
-
* to: ["to"]
|
|
53
|
-
* })
|
|
54
|
-
*/
|
|
55
|
-
postOrderCompletedEmail(request: Chrt.EmailReq, requestOptions?: Mirror.RequestOptions): core.HttpResponsePromise<Chrt.EmailRes>;
|
|
56
|
-
private __postOrderCompletedEmail;
|
|
57
30
|
/**
|
|
58
31
|
* @param {Mirror.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
32
|
*
|
|
@@ -48,133 +48,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
48
48
|
exports.Mirror = void 0;
|
|
49
49
|
const environments = __importStar(require("../../../../environments.js"));
|
|
50
50
|
const core = __importStar(require("../../../../core/index.js"));
|
|
51
|
-
const Chrt = __importStar(require("../../../index.js"));
|
|
52
51
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
52
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
53
|
class Mirror {
|
|
55
54
|
constructor(_options = {}) {
|
|
56
55
|
this._options = _options;
|
|
57
56
|
}
|
|
58
|
-
/**
|
|
59
|
-
* @param {Chrt.EmailReq} request
|
|
60
|
-
* @param {Mirror.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
-
*
|
|
62
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* await client.mirror.postOrderInProgressEmail({
|
|
66
|
-
* to: ["to"]
|
|
67
|
-
* })
|
|
68
|
-
*/
|
|
69
|
-
postOrderInProgressEmail(request, requestOptions) {
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.__postOrderInProgressEmail(request, requestOptions));
|
|
71
|
-
}
|
|
72
|
-
__postOrderInProgressEmail(request, requestOptions) {
|
|
73
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
var _a, _b, _c, _d;
|
|
75
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
|
-
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, "order_in_progress_email"),
|
|
77
|
-
method: "POST",
|
|
78
|
-
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),
|
|
79
|
-
contentType: "application/json",
|
|
80
|
-
requestType: "json",
|
|
81
|
-
body: request,
|
|
82
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
|
-
});
|
|
86
|
-
if (_response.ok) {
|
|
87
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
88
|
-
}
|
|
89
|
-
if (_response.error.reason === "status-code") {
|
|
90
|
-
switch (_response.error.statusCode) {
|
|
91
|
-
case 422:
|
|
92
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
93
|
-
default:
|
|
94
|
-
throw new errors.ChrtError({
|
|
95
|
-
statusCode: _response.error.statusCode,
|
|
96
|
-
body: _response.error.body,
|
|
97
|
-
rawResponse: _response.rawResponse,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
switch (_response.error.reason) {
|
|
102
|
-
case "non-json":
|
|
103
|
-
throw new errors.ChrtError({
|
|
104
|
-
statusCode: _response.error.statusCode,
|
|
105
|
-
body: _response.error.rawBody,
|
|
106
|
-
rawResponse: _response.rawResponse,
|
|
107
|
-
});
|
|
108
|
-
case "timeout":
|
|
109
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /order_in_progress_email.");
|
|
110
|
-
case "unknown":
|
|
111
|
-
throw new errors.ChrtError({
|
|
112
|
-
message: _response.error.errorMessage,
|
|
113
|
-
rawResponse: _response.rawResponse,
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* @param {Chrt.EmailReq} request
|
|
120
|
-
* @param {Mirror.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
|
-
*
|
|
122
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* await client.mirror.postOrderCompletedEmail({
|
|
126
|
-
* to: ["to"]
|
|
127
|
-
* })
|
|
128
|
-
*/
|
|
129
|
-
postOrderCompletedEmail(request, requestOptions) {
|
|
130
|
-
return core.HttpResponsePromise.fromPromise(this.__postOrderCompletedEmail(request, requestOptions));
|
|
131
|
-
}
|
|
132
|
-
__postOrderCompletedEmail(request, requestOptions) {
|
|
133
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
-
var _a, _b, _c, _d;
|
|
135
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
136
|
-
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, "order_completed_email"),
|
|
137
|
-
method: "POST",
|
|
138
|
-
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),
|
|
139
|
-
contentType: "application/json",
|
|
140
|
-
requestType: "json",
|
|
141
|
-
body: request,
|
|
142
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
143
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
144
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
145
|
-
});
|
|
146
|
-
if (_response.ok) {
|
|
147
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
148
|
-
}
|
|
149
|
-
if (_response.error.reason === "status-code") {
|
|
150
|
-
switch (_response.error.statusCode) {
|
|
151
|
-
case 422:
|
|
152
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
153
|
-
default:
|
|
154
|
-
throw new errors.ChrtError({
|
|
155
|
-
statusCode: _response.error.statusCode,
|
|
156
|
-
body: _response.error.body,
|
|
157
|
-
rawResponse: _response.rawResponse,
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
switch (_response.error.reason) {
|
|
162
|
-
case "non-json":
|
|
163
|
-
throw new errors.ChrtError({
|
|
164
|
-
statusCode: _response.error.statusCode,
|
|
165
|
-
body: _response.error.rawBody,
|
|
166
|
-
rawResponse: _response.rawResponse,
|
|
167
|
-
});
|
|
168
|
-
case "timeout":
|
|
169
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /order_completed_email.");
|
|
170
|
-
case "unknown":
|
|
171
|
-
throw new errors.ChrtError({
|
|
172
|
-
message: _response.error.errorMessage,
|
|
173
|
-
rawResponse: _response.rawResponse,
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
57
|
/**
|
|
179
58
|
* @param {Mirror.RequestOptions} requestOptions - Request-specific configuration.
|
|
180
59
|
*
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
|
-
import * as Chrt from "../../../index.js";
|
|
7
6
|
export declare namespace OortCourierPayDriverRate {
|
|
8
7
|
interface Options {
|
|
9
8
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -29,66 +28,37 @@ export declare class OortCourierPayDriverRate {
|
|
|
29
28
|
protected readonly _options: OortCourierPayDriverRate.Options;
|
|
30
29
|
constructor(_options?: OortCourierPayDriverRate.Options);
|
|
31
30
|
/**
|
|
32
|
-
* This is for creating a rate sheet
|
|
33
|
-
*
|
|
34
|
-
* @param {Chrt.CourierPayDriverRateSheetClientCreate1} request
|
|
35
31
|
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
32
|
*
|
|
37
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
38
|
-
*
|
|
39
33
|
* @example
|
|
40
|
-
* await client.oortCourierPayDriverRate.
|
|
41
|
-
* schema_version: 1,
|
|
42
|
-
* courier_org_id: "courier_org_id",
|
|
43
|
-
* base_mileage_distance_miles: 1.1,
|
|
44
|
-
* base_mileage_rate_usd_per_instance: 1.1,
|
|
45
|
-
* additional_mileage_rate_usd_per_mile: 1.1,
|
|
46
|
-
* long_distance_surcharge_miles_before_surcharge: 1.1,
|
|
47
|
-
* long_distance_surcharge_rate_usd_per_mile: 1.1,
|
|
48
|
-
* fuel_surchage_rate_usd_per_mile: 1.1,
|
|
49
|
-
* wait_time_before_charge_minutes: 1.1,
|
|
50
|
-
* wait_time_rate_usd_per_minute: 1.1,
|
|
51
|
-
* extra_stop_rate_usd: 1.1,
|
|
52
|
-
* dangerous_goods_rate_usd_per_instance: 1.1,
|
|
53
|
-
* after_hours: 1.1,
|
|
54
|
-
* weekend: 1.1,
|
|
55
|
-
* holiday: 1.1
|
|
56
|
-
* })
|
|
34
|
+
* await client.oortCourierPayDriverRate.getOortCourierPayDriverRateSheetsByCourierOrgId()
|
|
57
35
|
*/
|
|
58
|
-
|
|
59
|
-
private
|
|
36
|
+
getOortCourierPayDriverRateSheetsByCourierOrgId(requestOptions?: OortCourierPayDriverRate.RequestOptions): core.HttpResponsePromise<void>;
|
|
37
|
+
private __getOortCourierPayDriverRateSheetsByCourierOrgId;
|
|
60
38
|
/**
|
|
61
|
-
* Get a list of rate sheets by driver ID, courier org id from JWT
|
|
62
|
-
*
|
|
63
39
|
* @param {string} driverId
|
|
64
40
|
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
41
|
*
|
|
66
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
67
|
-
*
|
|
68
42
|
* @example
|
|
69
|
-
* await client.oortCourierPayDriverRate.
|
|
43
|
+
* await client.oortCourierPayDriverRate.getOortCourierPayDriverRateSheetsByDriverIdDriverId("driver_id")
|
|
70
44
|
*/
|
|
71
|
-
|
|
72
|
-
private
|
|
45
|
+
getOortCourierPayDriverRateSheetsByDriverIdDriverId(driverId: string, requestOptions?: OortCourierPayDriverRate.RequestOptions): core.HttpResponsePromise<void>;
|
|
46
|
+
private __getOortCourierPayDriverRateSheetsByDriverIdDriverId;
|
|
73
47
|
/**
|
|
74
|
-
* This is for getting a list of all rate sheets by shipper org id from the JWT
|
|
75
|
-
*
|
|
76
48
|
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
49
|
*
|
|
78
50
|
* @example
|
|
79
|
-
* await client.oortCourierPayDriverRate.
|
|
51
|
+
* await client.oortCourierPayDriverRate.getOortCourierPayDriverRateSheetsByShipperOrgId()
|
|
80
52
|
*/
|
|
81
|
-
|
|
82
|
-
private
|
|
53
|
+
getOortCourierPayDriverRateSheetsByShipperOrgId(requestOptions?: OortCourierPayDriverRate.RequestOptions): core.HttpResponsePromise<void>;
|
|
54
|
+
private __getOortCourierPayDriverRateSheetsByShipperOrgId;
|
|
83
55
|
/**
|
|
84
|
-
* This is for getting a list of all rate sheets by courier org id from the JWT
|
|
85
|
-
*
|
|
86
56
|
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
57
|
*
|
|
88
58
|
* @example
|
|
89
|
-
* await client.oortCourierPayDriverRate.
|
|
59
|
+
* await client.oortCourierPayDriverRate.postOortCourierPayDriverRateSheetsCreate()
|
|
90
60
|
*/
|
|
91
|
-
|
|
92
|
-
private
|
|
61
|
+
postOortCourierPayDriverRateSheetsCreate(requestOptions?: OortCourierPayDriverRate.RequestOptions): core.HttpResponsePromise<void>;
|
|
62
|
+
private __postOortCourierPayDriverRateSheetsCreate;
|
|
93
63
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
94
64
|
}
|
|
@@ -48,7 +48,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
48
48
|
exports.OortCourierPayDriverRate = void 0;
|
|
49
49
|
const environments = __importStar(require("../../../../environments.js"));
|
|
50
50
|
const core = __importStar(require("../../../../core/index.js"));
|
|
51
|
-
const Chrt = __importStar(require("../../../index.js"));
|
|
52
51
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
52
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
53
|
class OortCourierPayDriverRate {
|
|
@@ -56,63 +55,34 @@ class OortCourierPayDriverRate {
|
|
|
56
55
|
this._options = _options;
|
|
57
56
|
}
|
|
58
57
|
/**
|
|
59
|
-
* This is for creating a rate sheet
|
|
60
|
-
*
|
|
61
|
-
* @param {Chrt.CourierPayDriverRateSheetClientCreate1} request
|
|
62
58
|
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
59
|
*
|
|
64
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
-
*
|
|
66
60
|
* @example
|
|
67
|
-
* await client.oortCourierPayDriverRate.
|
|
68
|
-
* schema_version: 1,
|
|
69
|
-
* courier_org_id: "courier_org_id",
|
|
70
|
-
* base_mileage_distance_miles: 1.1,
|
|
71
|
-
* base_mileage_rate_usd_per_instance: 1.1,
|
|
72
|
-
* additional_mileage_rate_usd_per_mile: 1.1,
|
|
73
|
-
* long_distance_surcharge_miles_before_surcharge: 1.1,
|
|
74
|
-
* long_distance_surcharge_rate_usd_per_mile: 1.1,
|
|
75
|
-
* fuel_surchage_rate_usd_per_mile: 1.1,
|
|
76
|
-
* wait_time_before_charge_minutes: 1.1,
|
|
77
|
-
* wait_time_rate_usd_per_minute: 1.1,
|
|
78
|
-
* extra_stop_rate_usd: 1.1,
|
|
79
|
-
* dangerous_goods_rate_usd_per_instance: 1.1,
|
|
80
|
-
* after_hours: 1.1,
|
|
81
|
-
* weekend: 1.1,
|
|
82
|
-
* holiday: 1.1
|
|
83
|
-
* })
|
|
61
|
+
* await client.oortCourierPayDriverRate.getOortCourierPayDriverRateSheetsByCourierOrgId()
|
|
84
62
|
*/
|
|
85
|
-
|
|
86
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
63
|
+
getOortCourierPayDriverRateSheetsByCourierOrgId(requestOptions) {
|
|
64
|
+
return core.HttpResponsePromise.fromPromise(this.__getOortCourierPayDriverRateSheetsByCourierOrgId(requestOptions));
|
|
87
65
|
}
|
|
88
|
-
|
|
66
|
+
__getOortCourierPayDriverRateSheetsByCourierOrgId(requestOptions) {
|
|
89
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
68
|
var _a, _b, _c, _d;
|
|
91
69
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
92
|
-
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/courier_pay_driver_rate_sheets/
|
|
93
|
-
method: "
|
|
70
|
+
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/courier_pay_driver_rate_sheets/by_courier_org_id"),
|
|
71
|
+
method: "GET",
|
|
94
72
|
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),
|
|
95
|
-
contentType: "application/json",
|
|
96
|
-
requestType: "json",
|
|
97
|
-
body: request,
|
|
98
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
99
74
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
100
75
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
101
76
|
});
|
|
102
77
|
if (_response.ok) {
|
|
103
|
-
return { data:
|
|
78
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
104
79
|
}
|
|
105
80
|
if (_response.error.reason === "status-code") {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
statusCode: _response.error.statusCode,
|
|
112
|
-
body: _response.error.body,
|
|
113
|
-
rawResponse: _response.rawResponse,
|
|
114
|
-
});
|
|
115
|
-
}
|
|
81
|
+
throw new errors.ChrtError({
|
|
82
|
+
statusCode: _response.error.statusCode,
|
|
83
|
+
body: _response.error.body,
|
|
84
|
+
rawResponse: _response.rawResponse,
|
|
85
|
+
});
|
|
116
86
|
}
|
|
117
87
|
switch (_response.error.reason) {
|
|
118
88
|
case "non-json":
|
|
@@ -122,7 +92,7 @@ class OortCourierPayDriverRate {
|
|
|
122
92
|
rawResponse: _response.rawResponse,
|
|
123
93
|
});
|
|
124
94
|
case "timeout":
|
|
125
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
95
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/by_courier_org_id.");
|
|
126
96
|
case "unknown":
|
|
127
97
|
throw new errors.ChrtError({
|
|
128
98
|
message: _response.error.errorMessage,
|
|
@@ -132,20 +102,16 @@ class OortCourierPayDriverRate {
|
|
|
132
102
|
});
|
|
133
103
|
}
|
|
134
104
|
/**
|
|
135
|
-
* Get a list of rate sheets by driver ID, courier org id from JWT
|
|
136
|
-
*
|
|
137
105
|
* @param {string} driverId
|
|
138
106
|
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
139
107
|
*
|
|
140
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
141
|
-
*
|
|
142
108
|
* @example
|
|
143
|
-
* await client.oortCourierPayDriverRate.
|
|
109
|
+
* await client.oortCourierPayDriverRate.getOortCourierPayDriverRateSheetsByDriverIdDriverId("driver_id")
|
|
144
110
|
*/
|
|
145
|
-
|
|
146
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
111
|
+
getOortCourierPayDriverRateSheetsByDriverIdDriverId(driverId, requestOptions) {
|
|
112
|
+
return core.HttpResponsePromise.fromPromise(this.__getOortCourierPayDriverRateSheetsByDriverIdDriverId(driverId, requestOptions));
|
|
147
113
|
}
|
|
148
|
-
|
|
114
|
+
__getOortCourierPayDriverRateSheetsByDriverIdDriverId(driverId, requestOptions) {
|
|
149
115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
116
|
var _a, _b, _c, _d;
|
|
151
117
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -157,19 +123,14 @@ class OortCourierPayDriverRate {
|
|
|
157
123
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
158
124
|
});
|
|
159
125
|
if (_response.ok) {
|
|
160
|
-
return { data:
|
|
126
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
161
127
|
}
|
|
162
128
|
if (_response.error.reason === "status-code") {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
statusCode: _response.error.statusCode,
|
|
169
|
-
body: _response.error.body,
|
|
170
|
-
rawResponse: _response.rawResponse,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
129
|
+
throw new errors.ChrtError({
|
|
130
|
+
statusCode: _response.error.statusCode,
|
|
131
|
+
body: _response.error.body,
|
|
132
|
+
rawResponse: _response.rawResponse,
|
|
133
|
+
});
|
|
173
134
|
}
|
|
174
135
|
switch (_response.error.reason) {
|
|
175
136
|
case "non-json":
|
|
@@ -189,17 +150,15 @@ class OortCourierPayDriverRate {
|
|
|
189
150
|
});
|
|
190
151
|
}
|
|
191
152
|
/**
|
|
192
|
-
* This is for getting a list of all rate sheets by shipper org id from the JWT
|
|
193
|
-
*
|
|
194
153
|
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
154
|
*
|
|
196
155
|
* @example
|
|
197
|
-
* await client.oortCourierPayDriverRate.
|
|
156
|
+
* await client.oortCourierPayDriverRate.getOortCourierPayDriverRateSheetsByShipperOrgId()
|
|
198
157
|
*/
|
|
199
|
-
|
|
200
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
158
|
+
getOortCourierPayDriverRateSheetsByShipperOrgId(requestOptions) {
|
|
159
|
+
return core.HttpResponsePromise.fromPromise(this.__getOortCourierPayDriverRateSheetsByShipperOrgId(requestOptions));
|
|
201
160
|
}
|
|
202
|
-
|
|
161
|
+
__getOortCourierPayDriverRateSheetsByShipperOrgId(requestOptions) {
|
|
203
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
163
|
var _a, _b, _c, _d;
|
|
205
164
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -211,7 +170,7 @@ class OortCourierPayDriverRate {
|
|
|
211
170
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
212
171
|
});
|
|
213
172
|
if (_response.ok) {
|
|
214
|
-
return { data:
|
|
173
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
215
174
|
}
|
|
216
175
|
if (_response.error.reason === "status-code") {
|
|
217
176
|
throw new errors.ChrtError({
|
|
@@ -238,29 +197,27 @@ class OortCourierPayDriverRate {
|
|
|
238
197
|
});
|
|
239
198
|
}
|
|
240
199
|
/**
|
|
241
|
-
* This is for getting a list of all rate sheets by courier org id from the JWT
|
|
242
|
-
*
|
|
243
200
|
* @param {OortCourierPayDriverRate.RequestOptions} requestOptions - Request-specific configuration.
|
|
244
201
|
*
|
|
245
202
|
* @example
|
|
246
|
-
* await client.oortCourierPayDriverRate.
|
|
203
|
+
* await client.oortCourierPayDriverRate.postOortCourierPayDriverRateSheetsCreate()
|
|
247
204
|
*/
|
|
248
|
-
|
|
249
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
205
|
+
postOortCourierPayDriverRateSheetsCreate(requestOptions) {
|
|
206
|
+
return core.HttpResponsePromise.fromPromise(this.__postOortCourierPayDriverRateSheetsCreate(requestOptions));
|
|
250
207
|
}
|
|
251
|
-
|
|
208
|
+
__postOortCourierPayDriverRateSheetsCreate(requestOptions) {
|
|
252
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
253
210
|
var _a, _b, _c, _d;
|
|
254
211
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
255
|
-
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/courier_pay_driver_rate_sheets/
|
|
256
|
-
method: "
|
|
212
|
+
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/courier_pay_driver_rate_sheets/create"),
|
|
213
|
+
method: "POST",
|
|
257
214
|
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),
|
|
258
215
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
259
216
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
260
217
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
261
218
|
});
|
|
262
219
|
if (_response.ok) {
|
|
263
|
-
return { data:
|
|
220
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
264
221
|
}
|
|
265
222
|
if (_response.error.reason === "status-code") {
|
|
266
223
|
throw new errors.ChrtError({
|
|
@@ -277,7 +234,7 @@ class OortCourierPayDriverRate {
|
|
|
277
234
|
rawResponse: _response.rawResponse,
|
|
278
235
|
});
|
|
279
236
|
case "timeout":
|
|
280
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
237
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_rate_sheets/create.");
|
|
281
238
|
case "unknown":
|
|
282
239
|
throw new errors.ChrtError({
|
|
283
240
|
message: _response.error.errorMessage,
|
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -97,31 +97,18 @@ export declare class OortDrivers {
|
|
|
97
97
|
putOortDriversUpdateDriverDetails(request: Chrt.UpdateDriverDetailsReq, requestOptions?: OortDrivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
98
98
|
private __putOortDriversUpdateDriverDetails;
|
|
99
99
|
/**
|
|
100
|
-
* @param {
|
|
101
|
-
* @param {OortDrivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
|
-
*
|
|
103
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* await client.oortDrivers.getOortDriversByDriverId("driver_id")
|
|
107
|
-
*/
|
|
108
|
-
getOortDriversByDriverId(driverId: string, requestOptions?: OortDrivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
109
|
-
private __getOortDriversByDriverId;
|
|
110
|
-
/**
|
|
111
|
-
* @param {Chrt.DriverCreateReq} request
|
|
100
|
+
* @param {Chrt.OrgMemberDetails} request
|
|
112
101
|
* @param {OortDrivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
102
|
*
|
|
114
103
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
115
104
|
*
|
|
116
105
|
* @example
|
|
117
106
|
* await client.oortDrivers.postOortDriversCreate({
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* user_id: "user_id"
|
|
121
|
-
* }
|
|
107
|
+
* role: "role",
|
|
108
|
+
* user_id: "user_id"
|
|
122
109
|
* })
|
|
123
110
|
*/
|
|
124
|
-
postOortDriversCreate(request: Chrt.
|
|
111
|
+
postOortDriversCreate(request: Chrt.OrgMemberDetails, requestOptions?: OortDrivers.RequestOptions): core.HttpResponsePromise<string>;
|
|
125
112
|
private __postOortDriversCreate;
|
|
126
113
|
/**
|
|
127
114
|
* Uses the org_id from the JWT
|
|
@@ -348,72 +348,15 @@ class OortDrivers {
|
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
350
|
/**
|
|
351
|
-
* @param {
|
|
352
|
-
* @param {OortDrivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
353
|
-
*
|
|
354
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
355
|
-
*
|
|
356
|
-
* @example
|
|
357
|
-
* await client.oortDrivers.getOortDriversByDriverId("driver_id")
|
|
358
|
-
*/
|
|
359
|
-
getOortDriversByDriverId(driverId, requestOptions) {
|
|
360
|
-
return core.HttpResponsePromise.fromPromise(this.__getOortDriversByDriverId(driverId, requestOptions));
|
|
361
|
-
}
|
|
362
|
-
__getOortDriversByDriverId(driverId, requestOptions) {
|
|
363
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
-
var _a, _b, _c, _d;
|
|
365
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
366
|
-
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/drivers/by_driver_id/${encodeURIComponent(driverId)}`),
|
|
367
|
-
method: "GET",
|
|
368
|
-
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),
|
|
369
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
370
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
371
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
372
|
-
});
|
|
373
|
-
if (_response.ok) {
|
|
374
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
375
|
-
}
|
|
376
|
-
if (_response.error.reason === "status-code") {
|
|
377
|
-
switch (_response.error.statusCode) {
|
|
378
|
-
case 422:
|
|
379
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
380
|
-
default:
|
|
381
|
-
throw new errors.ChrtError({
|
|
382
|
-
statusCode: _response.error.statusCode,
|
|
383
|
-
body: _response.error.body,
|
|
384
|
-
rawResponse: _response.rawResponse,
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
switch (_response.error.reason) {
|
|
389
|
-
case "non-json":
|
|
390
|
-
throw new errors.ChrtError({
|
|
391
|
-
statusCode: _response.error.statusCode,
|
|
392
|
-
body: _response.error.rawBody,
|
|
393
|
-
rawResponse: _response.rawResponse,
|
|
394
|
-
});
|
|
395
|
-
case "timeout":
|
|
396
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/drivers/by_driver_id/{driver_id}.");
|
|
397
|
-
case "unknown":
|
|
398
|
-
throw new errors.ChrtError({
|
|
399
|
-
message: _response.error.errorMessage,
|
|
400
|
-
rawResponse: _response.rawResponse,
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* @param {Chrt.DriverCreateReq} request
|
|
351
|
+
* @param {Chrt.OrgMemberDetails} request
|
|
407
352
|
* @param {OortDrivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
408
353
|
*
|
|
409
354
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
410
355
|
*
|
|
411
356
|
* @example
|
|
412
357
|
* await client.oortDrivers.postOortDriversCreate({
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
* user_id: "user_id"
|
|
416
|
-
* }
|
|
358
|
+
* role: "role",
|
|
359
|
+
* user_id: "user_id"
|
|
417
360
|
* })
|
|
418
361
|
*/
|
|
419
362
|
postOortDriversCreate(request, requestOptions) {
|