@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
|
@@ -1,579 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.OortShipperContactInfo = void 0;
|
|
49
|
-
const environments = __importStar(require("../../../../environments.js"));
|
|
50
|
-
const core = __importStar(require("../../../../core/index.js"));
|
|
51
|
-
const Chrt = __importStar(require("../../../index.js"));
|
|
52
|
-
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
|
-
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
-
class OortShipperContactInfo {
|
|
55
|
-
constructor(_options = {}) {
|
|
56
|
-
this._options = _options;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Get my own shipper contact info (for authenticated shippers users)
|
|
60
|
-
*
|
|
61
|
-
* @param {OortShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* await client.oortShipperContactInfo.getMyShipperContactInfo()
|
|
65
|
-
*/
|
|
66
|
-
getMyShipperContactInfo(requestOptions) {
|
|
67
|
-
return core.HttpResponsePromise.fromPromise(this.__getMyShipperContactInfo(requestOptions));
|
|
68
|
-
}
|
|
69
|
-
__getMyShipperContactInfo(requestOptions) {
|
|
70
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
var _a, _b, _c, _d;
|
|
72
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
73
|
-
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/shipper_contact_info/self"),
|
|
74
|
-
method: "GET",
|
|
75
|
-
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),
|
|
76
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
77
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
78
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
79
|
-
});
|
|
80
|
-
if (_response.ok) {
|
|
81
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
82
|
-
}
|
|
83
|
-
if (_response.error.reason === "status-code") {
|
|
84
|
-
throw new errors.ChrtError({
|
|
85
|
-
statusCode: _response.error.statusCode,
|
|
86
|
-
body: _response.error.body,
|
|
87
|
-
rawResponse: _response.rawResponse,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
switch (_response.error.reason) {
|
|
91
|
-
case "non-json":
|
|
92
|
-
throw new errors.ChrtError({
|
|
93
|
-
statusCode: _response.error.statusCode,
|
|
94
|
-
body: _response.error.rawBody,
|
|
95
|
-
rawResponse: _response.rawResponse,
|
|
96
|
-
});
|
|
97
|
-
case "timeout":
|
|
98
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/self.");
|
|
99
|
-
case "unknown":
|
|
100
|
-
throw new errors.ChrtError({
|
|
101
|
-
message: _response.error.errorMessage,
|
|
102
|
-
rawResponse: _response.rawResponse,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Get all contacts for my organization which were created by the shipper org (for authenticated shipper orgs)
|
|
109
|
-
*
|
|
110
|
-
* @param {OortShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* await client.oortShipperContactInfo.getContactsForShipperOrg()
|
|
114
|
-
*/
|
|
115
|
-
getContactsForShipperOrg(requestOptions) {
|
|
116
|
-
return core.HttpResponsePromise.fromPromise(this.__getContactsForShipperOrg(requestOptions));
|
|
117
|
-
}
|
|
118
|
-
__getContactsForShipperOrg(requestOptions) {
|
|
119
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
var _a, _b, _c, _d;
|
|
121
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
122
|
-
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/shipper_contact_info/list/for_shipper_org"),
|
|
123
|
-
method: "GET",
|
|
124
|
-
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),
|
|
125
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
126
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
127
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
128
|
-
});
|
|
129
|
-
if (_response.ok) {
|
|
130
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
131
|
-
}
|
|
132
|
-
if (_response.error.reason === "status-code") {
|
|
133
|
-
throw new errors.ChrtError({
|
|
134
|
-
statusCode: _response.error.statusCode,
|
|
135
|
-
body: _response.error.body,
|
|
136
|
-
rawResponse: _response.rawResponse,
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
switch (_response.error.reason) {
|
|
140
|
-
case "non-json":
|
|
141
|
-
throw new errors.ChrtError({
|
|
142
|
-
statusCode: _response.error.statusCode,
|
|
143
|
-
body: _response.error.rawBody,
|
|
144
|
-
rawResponse: _response.rawResponse,
|
|
145
|
-
});
|
|
146
|
-
case "timeout":
|
|
147
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/for_shipper_org.");
|
|
148
|
-
case "unknown":
|
|
149
|
-
throw new errors.ChrtError({
|
|
150
|
-
message: _response.error.errorMessage,
|
|
151
|
-
rawResponse: _response.rawResponse,
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Get all contacts accessible to courier org for a specific on-platform shipper.
|
|
158
|
-
* Returns:
|
|
159
|
-
* 1. Contacts created by the courier org that are linked to the shipper org
|
|
160
|
-
* 2. Contacts created by the shipper org themselves (if courier and shipper are connected)
|
|
161
|
-
*
|
|
162
|
-
* @param {string} shipperOrgId
|
|
163
|
-
* @param {OortShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
164
|
-
*
|
|
165
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
166
|
-
*
|
|
167
|
-
* @example
|
|
168
|
-
* await client.oortShipperContactInfo.getCourierContactsForOnPlatformShipper("shipper_org_id")
|
|
169
|
-
*/
|
|
170
|
-
getCourierContactsForOnPlatformShipper(shipperOrgId, requestOptions) {
|
|
171
|
-
return core.HttpResponsePromise.fromPromise(this.__getCourierContactsForOnPlatformShipper(shipperOrgId, requestOptions));
|
|
172
|
-
}
|
|
173
|
-
__getCourierContactsForOnPlatformShipper(shipperOrgId, requestOptions) {
|
|
174
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
-
var _a, _b, _c, _d;
|
|
176
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
177
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/list/courier_contacts_for_on_platform_shipper/${encodeURIComponent(shipperOrgId)}`),
|
|
178
|
-
method: "GET",
|
|
179
|
-
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),
|
|
180
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
181
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
182
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
183
|
-
});
|
|
184
|
-
if (_response.ok) {
|
|
185
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
186
|
-
}
|
|
187
|
-
if (_response.error.reason === "status-code") {
|
|
188
|
-
switch (_response.error.statusCode) {
|
|
189
|
-
case 422:
|
|
190
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
191
|
-
default:
|
|
192
|
-
throw new errors.ChrtError({
|
|
193
|
-
statusCode: _response.error.statusCode,
|
|
194
|
-
body: _response.error.body,
|
|
195
|
-
rawResponse: _response.rawResponse,
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
switch (_response.error.reason) {
|
|
200
|
-
case "non-json":
|
|
201
|
-
throw new errors.ChrtError({
|
|
202
|
-
statusCode: _response.error.statusCode,
|
|
203
|
-
body: _response.error.rawBody,
|
|
204
|
-
rawResponse: _response.rawResponse,
|
|
205
|
-
});
|
|
206
|
-
case "timeout":
|
|
207
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/courier_contacts_for_on_platform_shipper/{shipper_org_id}.");
|
|
208
|
-
case "unknown":
|
|
209
|
-
throw new errors.ChrtError({
|
|
210
|
-
message: _response.error.errorMessage,
|
|
211
|
-
rawResponse: _response.rawResponse,
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Get all contacts accessible to courier org for a specific off-platform shipper.
|
|
218
|
-
* Returns only contacts created by the courier org since off-platform shippers cannot create their own contacts.
|
|
219
|
-
*
|
|
220
|
-
* @param {string} offChrtShipperOrgConnectionInfoId
|
|
221
|
-
* @param {OortShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
|
-
*
|
|
223
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
224
|
-
*
|
|
225
|
-
* @example
|
|
226
|
-
* await client.oortShipperContactInfo.getCourierContactsForOffPlatformShipper("off_chrt_shipper_org_connection_info_id")
|
|
227
|
-
*/
|
|
228
|
-
getCourierContactsForOffPlatformShipper(offChrtShipperOrgConnectionInfoId, requestOptions) {
|
|
229
|
-
return core.HttpResponsePromise.fromPromise(this.__getCourierContactsForOffPlatformShipper(offChrtShipperOrgConnectionInfoId, requestOptions));
|
|
230
|
-
}
|
|
231
|
-
__getCourierContactsForOffPlatformShipper(offChrtShipperOrgConnectionInfoId, requestOptions) {
|
|
232
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
-
var _a, _b, _c, _d;
|
|
234
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
235
|
-
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/shipper_contact_info/list/courier_contacts_for_off_platform_shipper/${encodeURIComponent(offChrtShipperOrgConnectionInfoId)}`),
|
|
236
|
-
method: "GET",
|
|
237
|
-
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),
|
|
238
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
239
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
240
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
241
|
-
});
|
|
242
|
-
if (_response.ok) {
|
|
243
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
244
|
-
}
|
|
245
|
-
if (_response.error.reason === "status-code") {
|
|
246
|
-
switch (_response.error.statusCode) {
|
|
247
|
-
case 422:
|
|
248
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
249
|
-
default:
|
|
250
|
-
throw new errors.ChrtError({
|
|
251
|
-
statusCode: _response.error.statusCode,
|
|
252
|
-
body: _response.error.body,
|
|
253
|
-
rawResponse: _response.rawResponse,
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
switch (_response.error.reason) {
|
|
258
|
-
case "non-json":
|
|
259
|
-
throw new errors.ChrtError({
|
|
260
|
-
statusCode: _response.error.statusCode,
|
|
261
|
-
body: _response.error.rawBody,
|
|
262
|
-
rawResponse: _response.rawResponse,
|
|
263
|
-
});
|
|
264
|
-
case "timeout":
|
|
265
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/courier_contacts_for_off_platform_shipper/{off_chrt_shipper_org_connection_info_id}.");
|
|
266
|
-
case "unknown":
|
|
267
|
-
throw new errors.ChrtError({
|
|
268
|
-
message: _response.error.errorMessage,
|
|
269
|
-
rawResponse: _response.rawResponse,
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Get a specific shipper contact info by ID
|
|
276
|
-
*
|
|
277
|
-
* @param {string} shipperContactInfoId
|
|
278
|
-
* @param {OortShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
279
|
-
*
|
|
280
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
281
|
-
*
|
|
282
|
-
* @example
|
|
283
|
-
* await client.oortShipperContactInfo.getShipperContactInfoById("shipper_contact_info_id")
|
|
284
|
-
*/
|
|
285
|
-
getShipperContactInfoById(shipperContactInfoId, requestOptions) {
|
|
286
|
-
return core.HttpResponsePromise.fromPromise(this.__getShipperContactInfoById(shipperContactInfoId, requestOptions));
|
|
287
|
-
}
|
|
288
|
-
__getShipperContactInfoById(shipperContactInfoId, requestOptions) {
|
|
289
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
290
|
-
var _a, _b, _c, _d;
|
|
291
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
292
|
-
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/shipper_contact_info/${encodeURIComponent(shipperContactInfoId)}`),
|
|
293
|
-
method: "GET",
|
|
294
|
-
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),
|
|
295
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
296
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
297
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
298
|
-
});
|
|
299
|
-
if (_response.ok) {
|
|
300
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
301
|
-
}
|
|
302
|
-
if (_response.error.reason === "status-code") {
|
|
303
|
-
switch (_response.error.statusCode) {
|
|
304
|
-
case 422:
|
|
305
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
306
|
-
default:
|
|
307
|
-
throw new errors.ChrtError({
|
|
308
|
-
statusCode: _response.error.statusCode,
|
|
309
|
-
body: _response.error.body,
|
|
310
|
-
rawResponse: _response.rawResponse,
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
switch (_response.error.reason) {
|
|
315
|
-
case "non-json":
|
|
316
|
-
throw new errors.ChrtError({
|
|
317
|
-
statusCode: _response.error.statusCode,
|
|
318
|
-
body: _response.error.rawBody,
|
|
319
|
-
rawResponse: _response.rawResponse,
|
|
320
|
-
});
|
|
321
|
-
case "timeout":
|
|
322
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/{shipper_contact_info_id}.");
|
|
323
|
-
case "unknown":
|
|
324
|
-
throw new errors.ChrtError({
|
|
325
|
-
message: _response.error.errorMessage,
|
|
326
|
-
rawResponse: _response.rawResponse,
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Create shipper contact info for on-platform shipper (scenarios 1 & 2)
|
|
333
|
-
*
|
|
334
|
-
* @param {Chrt.ShipperContactInfoClientCreate1} request
|
|
335
|
-
* @param {OortShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
336
|
-
*
|
|
337
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
338
|
-
*
|
|
339
|
-
* @example
|
|
340
|
-
* await client.oortShipperContactInfo.createShipperContactInfoOnPlatform({
|
|
341
|
-
* schema_version: 1
|
|
342
|
-
* })
|
|
343
|
-
*/
|
|
344
|
-
createShipperContactInfoOnPlatform(request, requestOptions) {
|
|
345
|
-
return core.HttpResponsePromise.fromPromise(this.__createShipperContactInfoOnPlatform(request, requestOptions));
|
|
346
|
-
}
|
|
347
|
-
__createShipperContactInfoOnPlatform(request, requestOptions) {
|
|
348
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
-
var _a, _b, _c, _d;
|
|
350
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
351
|
-
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/shipper_contact_info/create/on_platform"),
|
|
352
|
-
method: "POST",
|
|
353
|
-
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),
|
|
354
|
-
contentType: "application/json",
|
|
355
|
-
requestType: "json",
|
|
356
|
-
body: request,
|
|
357
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
358
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
359
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
360
|
-
});
|
|
361
|
-
if (_response.ok) {
|
|
362
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
363
|
-
}
|
|
364
|
-
if (_response.error.reason === "status-code") {
|
|
365
|
-
switch (_response.error.statusCode) {
|
|
366
|
-
case 422:
|
|
367
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
368
|
-
default:
|
|
369
|
-
throw new errors.ChrtError({
|
|
370
|
-
statusCode: _response.error.statusCode,
|
|
371
|
-
body: _response.error.body,
|
|
372
|
-
rawResponse: _response.rawResponse,
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
switch (_response.error.reason) {
|
|
377
|
-
case "non-json":
|
|
378
|
-
throw new errors.ChrtError({
|
|
379
|
-
statusCode: _response.error.statusCode,
|
|
380
|
-
body: _response.error.rawBody,
|
|
381
|
-
rawResponse: _response.rawResponse,
|
|
382
|
-
});
|
|
383
|
-
case "timeout":
|
|
384
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/on_platform.");
|
|
385
|
-
case "unknown":
|
|
386
|
-
throw new errors.ChrtError({
|
|
387
|
-
message: _response.error.errorMessage,
|
|
388
|
-
rawResponse: _response.rawResponse,
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
* Create shipper contact info for off-platform shipper (scenario 3)
|
|
395
|
-
*
|
|
396
|
-
* @param {Chrt.ShipperContactInfoClientCreate1} request
|
|
397
|
-
* @param {OortShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
398
|
-
*
|
|
399
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
400
|
-
*
|
|
401
|
-
* @example
|
|
402
|
-
* await client.oortShipperContactInfo.createShipperContactInfoOffPlatform({
|
|
403
|
-
* schema_version: 1
|
|
404
|
-
* })
|
|
405
|
-
*/
|
|
406
|
-
createShipperContactInfoOffPlatform(request, requestOptions) {
|
|
407
|
-
return core.HttpResponsePromise.fromPromise(this.__createShipperContactInfoOffPlatform(request, requestOptions));
|
|
408
|
-
}
|
|
409
|
-
__createShipperContactInfoOffPlatform(request, requestOptions) {
|
|
410
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
411
|
-
var _a, _b, _c, _d;
|
|
412
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
413
|
-
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/shipper_contact_info/create/off_platform"),
|
|
414
|
-
method: "POST",
|
|
415
|
-
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),
|
|
416
|
-
contentType: "application/json",
|
|
417
|
-
requestType: "json",
|
|
418
|
-
body: request,
|
|
419
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
420
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
421
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
422
|
-
});
|
|
423
|
-
if (_response.ok) {
|
|
424
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
425
|
-
}
|
|
426
|
-
if (_response.error.reason === "status-code") {
|
|
427
|
-
switch (_response.error.statusCode) {
|
|
428
|
-
case 422:
|
|
429
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
430
|
-
default:
|
|
431
|
-
throw new errors.ChrtError({
|
|
432
|
-
statusCode: _response.error.statusCode,
|
|
433
|
-
body: _response.error.body,
|
|
434
|
-
rawResponse: _response.rawResponse,
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
switch (_response.error.reason) {
|
|
439
|
-
case "non-json":
|
|
440
|
-
throw new errors.ChrtError({
|
|
441
|
-
statusCode: _response.error.statusCode,
|
|
442
|
-
body: _response.error.rawBody,
|
|
443
|
-
rawResponse: _response.rawResponse,
|
|
444
|
-
});
|
|
445
|
-
case "timeout":
|
|
446
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/off_platform.");
|
|
447
|
-
case "unknown":
|
|
448
|
-
throw new errors.ChrtError({
|
|
449
|
-
message: _response.error.errorMessage,
|
|
450
|
-
rawResponse: _response.rawResponse,
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
/**
|
|
456
|
-
* @param {string} shipperContactInfoId
|
|
457
|
-
* @param {Chrt.ShipperContactInfoClientUpdate1} request
|
|
458
|
-
* @param {OortShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
459
|
-
*
|
|
460
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
461
|
-
*
|
|
462
|
-
* @example
|
|
463
|
-
* await client.oortShipperContactInfo.updateShipperContactInfo("shipper_contact_info_id")
|
|
464
|
-
*/
|
|
465
|
-
updateShipperContactInfo(shipperContactInfoId, request = {}, requestOptions) {
|
|
466
|
-
return core.HttpResponsePromise.fromPromise(this.__updateShipperContactInfo(shipperContactInfoId, request, requestOptions));
|
|
467
|
-
}
|
|
468
|
-
__updateShipperContactInfo(shipperContactInfoId_1) {
|
|
469
|
-
return __awaiter(this, arguments, void 0, function* (shipperContactInfoId, request = {}, requestOptions) {
|
|
470
|
-
var _a, _b, _c, _d;
|
|
471
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
472
|
-
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/shipper_contact_info/update/${encodeURIComponent(shipperContactInfoId)}`),
|
|
473
|
-
method: "PATCH",
|
|
474
|
-
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),
|
|
475
|
-
contentType: "application/json",
|
|
476
|
-
requestType: "json",
|
|
477
|
-
body: request,
|
|
478
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
479
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
480
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
481
|
-
});
|
|
482
|
-
if (_response.ok) {
|
|
483
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
484
|
-
}
|
|
485
|
-
if (_response.error.reason === "status-code") {
|
|
486
|
-
switch (_response.error.statusCode) {
|
|
487
|
-
case 422:
|
|
488
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
489
|
-
default:
|
|
490
|
-
throw new errors.ChrtError({
|
|
491
|
-
statusCode: _response.error.statusCode,
|
|
492
|
-
body: _response.error.body,
|
|
493
|
-
rawResponse: _response.rawResponse,
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
switch (_response.error.reason) {
|
|
498
|
-
case "non-json":
|
|
499
|
-
throw new errors.ChrtError({
|
|
500
|
-
statusCode: _response.error.statusCode,
|
|
501
|
-
body: _response.error.rawBody,
|
|
502
|
-
rawResponse: _response.rawResponse,
|
|
503
|
-
});
|
|
504
|
-
case "timeout":
|
|
505
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/shipper_contact_info/update/{shipper_contact_info_id}.");
|
|
506
|
-
case "unknown":
|
|
507
|
-
throw new errors.ChrtError({
|
|
508
|
-
message: _response.error.errorMessage,
|
|
509
|
-
rawResponse: _response.rawResponse,
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
/**
|
|
515
|
-
* @param {string} shipperContactInfoId
|
|
516
|
-
* @param {OortShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
517
|
-
*
|
|
518
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
519
|
-
*
|
|
520
|
-
* @example
|
|
521
|
-
* await client.oortShipperContactInfo.deleteShipperContactInfo("shipper_contact_info_id")
|
|
522
|
-
*/
|
|
523
|
-
deleteShipperContactInfo(shipperContactInfoId, requestOptions) {
|
|
524
|
-
return core.HttpResponsePromise.fromPromise(this.__deleteShipperContactInfo(shipperContactInfoId, requestOptions));
|
|
525
|
-
}
|
|
526
|
-
__deleteShipperContactInfo(shipperContactInfoId, requestOptions) {
|
|
527
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
528
|
-
var _a, _b, _c, _d;
|
|
529
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
530
|
-
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/shipper_contact_info/delete/${encodeURIComponent(shipperContactInfoId)}`),
|
|
531
|
-
method: "DELETE",
|
|
532
|
-
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),
|
|
533
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
534
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
535
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
536
|
-
});
|
|
537
|
-
if (_response.ok) {
|
|
538
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
539
|
-
}
|
|
540
|
-
if (_response.error.reason === "status-code") {
|
|
541
|
-
switch (_response.error.statusCode) {
|
|
542
|
-
case 422:
|
|
543
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
544
|
-
default:
|
|
545
|
-
throw new errors.ChrtError({
|
|
546
|
-
statusCode: _response.error.statusCode,
|
|
547
|
-
body: _response.error.body,
|
|
548
|
-
rawResponse: _response.rawResponse,
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
switch (_response.error.reason) {
|
|
553
|
-
case "non-json":
|
|
554
|
-
throw new errors.ChrtError({
|
|
555
|
-
statusCode: _response.error.statusCode,
|
|
556
|
-
body: _response.error.rawBody,
|
|
557
|
-
rawResponse: _response.rawResponse,
|
|
558
|
-
});
|
|
559
|
-
case "timeout":
|
|
560
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_contact_info/delete/{shipper_contact_info_id}.");
|
|
561
|
-
case "unknown":
|
|
562
|
-
throw new errors.ChrtError({
|
|
563
|
-
message: _response.error.errorMessage,
|
|
564
|
-
rawResponse: _response.rawResponse,
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
_getAuthorizationHeader() {
|
|
570
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
571
|
-
const bearer = yield core.Supplier.get(this._options.token);
|
|
572
|
-
if (bearer != null) {
|
|
573
|
-
return `Bearer ${bearer}`;
|
|
574
|
-
}
|
|
575
|
-
return undefined;
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
exports.OortShipperContactInfo = OortShipperContactInfo;
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Chrt from "../../../../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {}
|
|
8
|
-
*/
|
|
9
|
-
export interface ShipperContactInfoClientUpdate1 {
|
|
10
|
-
company_name?: string;
|
|
11
|
-
industry?: string;
|
|
12
|
-
street_address?: Chrt.Feature;
|
|
13
|
-
contact_first_name?: string;
|
|
14
|
-
contact_last_name?: string;
|
|
15
|
-
phone_number_primary?: string;
|
|
16
|
-
phone_number_secondary?: string;
|
|
17
|
-
email_address_primary?: string;
|
|
18
|
-
email_address_secondary?: string;
|
|
19
|
-
job_title?: string;
|
|
20
|
-
notes?: string;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { type ShipperContactInfoClientUpdate1 } from "./ShipperContactInfoClientUpdate1.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./client/index.js";
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./client/index.js"), exports);
|