@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
|
@@ -67,8 +67,6 @@ export class Orgs {
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
* Get the org public data for the org from JWT
|
|
71
|
-
*
|
|
72
70
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
71
|
*
|
|
74
72
|
* @example
|
|
@@ -116,17 +114,14 @@ export class Orgs {
|
|
|
116
114
|
});
|
|
117
115
|
}
|
|
118
116
|
/**
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* @param {Chrt.CreateOrgPublicDataReq} request
|
|
117
|
+
* @param {Chrt.PostOrgPublicDataReq} request
|
|
122
118
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
119
|
*
|
|
124
120
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
125
121
|
*
|
|
126
122
|
* @example
|
|
127
123
|
* await client.orgs.postOrgsPublicData({
|
|
128
|
-
* handle: "handle"
|
|
129
|
-
* company_name: "company_name"
|
|
124
|
+
* handle: "handle"
|
|
130
125
|
* })
|
|
131
126
|
*/
|
|
132
127
|
postOrgsPublicData(request, requestOptions) {
|
|
@@ -178,229 +173,6 @@ export class Orgs {
|
|
|
178
173
|
}
|
|
179
174
|
});
|
|
180
175
|
}
|
|
181
|
-
/**
|
|
182
|
-
* Update handle or company_name for an org
|
|
183
|
-
*
|
|
184
|
-
* @param {Chrt.UpdateOrgPublicDataReq} request
|
|
185
|
-
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
|
-
*
|
|
187
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
188
|
-
*
|
|
189
|
-
* @example
|
|
190
|
-
* await client.orgs.patchOrgsPublicData()
|
|
191
|
-
*/
|
|
192
|
-
patchOrgsPublicData(request = {}, requestOptions) {
|
|
193
|
-
return core.HttpResponsePromise.fromPromise(this.__patchOrgsPublicData(request, requestOptions));
|
|
194
|
-
}
|
|
195
|
-
__patchOrgsPublicData() {
|
|
196
|
-
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
197
|
-
var _a, _b, _c, _d;
|
|
198
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
199
|
-
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, "orgs/public_data"),
|
|
200
|
-
method: "PATCH",
|
|
201
|
-
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
202
|
-
contentType: "application/json",
|
|
203
|
-
requestType: "json",
|
|
204
|
-
body: request,
|
|
205
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
206
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
207
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
208
|
-
});
|
|
209
|
-
if (_response.ok) {
|
|
210
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
211
|
-
}
|
|
212
|
-
if (_response.error.reason === "status-code") {
|
|
213
|
-
switch (_response.error.statusCode) {
|
|
214
|
-
case 422:
|
|
215
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
216
|
-
default:
|
|
217
|
-
throw new errors.ChrtError({
|
|
218
|
-
statusCode: _response.error.statusCode,
|
|
219
|
-
body: _response.error.body,
|
|
220
|
-
rawResponse: _response.rawResponse,
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
switch (_response.error.reason) {
|
|
225
|
-
case "non-json":
|
|
226
|
-
throw new errors.ChrtError({
|
|
227
|
-
statusCode: _response.error.statusCode,
|
|
228
|
-
body: _response.error.rawBody,
|
|
229
|
-
rawResponse: _response.rawResponse,
|
|
230
|
-
});
|
|
231
|
-
case "timeout":
|
|
232
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/public_data.");
|
|
233
|
-
case "unknown":
|
|
234
|
-
throw new errors.ChrtError({
|
|
235
|
-
message: _response.error.errorMessage,
|
|
236
|
-
rawResponse: _response.rawResponse,
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Get the org public data for the org from org_id
|
|
243
|
-
*
|
|
244
|
-
* @param {string} orgId
|
|
245
|
-
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
246
|
-
*
|
|
247
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
248
|
-
*
|
|
249
|
-
* @example
|
|
250
|
-
* await client.orgs.getOrgsPublicDataByOrgId("org_id")
|
|
251
|
-
*/
|
|
252
|
-
getOrgsPublicDataByOrgId(orgId, requestOptions) {
|
|
253
|
-
return core.HttpResponsePromise.fromPromise(this.__getOrgsPublicDataByOrgId(orgId, requestOptions));
|
|
254
|
-
}
|
|
255
|
-
__getOrgsPublicDataByOrgId(orgId, requestOptions) {
|
|
256
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
-
var _a, _b, _c, _d;
|
|
258
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
259
|
-
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, `orgs/public_data/${encodeURIComponent(orgId)}`),
|
|
260
|
-
method: "GET",
|
|
261
|
-
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
262
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
263
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
264
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
265
|
-
});
|
|
266
|
-
if (_response.ok) {
|
|
267
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
268
|
-
}
|
|
269
|
-
if (_response.error.reason === "status-code") {
|
|
270
|
-
switch (_response.error.statusCode) {
|
|
271
|
-
case 422:
|
|
272
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
273
|
-
default:
|
|
274
|
-
throw new errors.ChrtError({
|
|
275
|
-
statusCode: _response.error.statusCode,
|
|
276
|
-
body: _response.error.body,
|
|
277
|
-
rawResponse: _response.rawResponse,
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
switch (_response.error.reason) {
|
|
282
|
-
case "non-json":
|
|
283
|
-
throw new errors.ChrtError({
|
|
284
|
-
statusCode: _response.error.statusCode,
|
|
285
|
-
body: _response.error.rawBody,
|
|
286
|
-
rawResponse: _response.rawResponse,
|
|
287
|
-
});
|
|
288
|
-
case "timeout":
|
|
289
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data/{org_id}.");
|
|
290
|
-
case "unknown":
|
|
291
|
-
throw new errors.ChrtError({
|
|
292
|
-
message: _response.error.errorMessage,
|
|
293
|
-
rawResponse: _response.rawResponse,
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* Get the handle for the org from JWT
|
|
300
|
-
*
|
|
301
|
-
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
302
|
-
*
|
|
303
|
-
* @example
|
|
304
|
-
* await client.orgs.getOrgsHandle()
|
|
305
|
-
*/
|
|
306
|
-
getOrgsHandle(requestOptions) {
|
|
307
|
-
return core.HttpResponsePromise.fromPromise(this.__getOrgsHandle(requestOptions));
|
|
308
|
-
}
|
|
309
|
-
__getOrgsHandle(requestOptions) {
|
|
310
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
-
var _a, _b, _c, _d;
|
|
312
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
313
|
-
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, "orgs/handle"),
|
|
314
|
-
method: "GET",
|
|
315
|
-
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
316
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
317
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
318
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
319
|
-
});
|
|
320
|
-
if (_response.ok) {
|
|
321
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
322
|
-
}
|
|
323
|
-
if (_response.error.reason === "status-code") {
|
|
324
|
-
throw new errors.ChrtError({
|
|
325
|
-
statusCode: _response.error.statusCode,
|
|
326
|
-
body: _response.error.body,
|
|
327
|
-
rawResponse: _response.rawResponse,
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
switch (_response.error.reason) {
|
|
331
|
-
case "non-json":
|
|
332
|
-
throw new errors.ChrtError({
|
|
333
|
-
statusCode: _response.error.statusCode,
|
|
334
|
-
body: _response.error.rawBody,
|
|
335
|
-
rawResponse: _response.rawResponse,
|
|
336
|
-
});
|
|
337
|
-
case "timeout":
|
|
338
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle.");
|
|
339
|
-
case "unknown":
|
|
340
|
-
throw new errors.ChrtError({
|
|
341
|
-
message: _response.error.errorMessage,
|
|
342
|
-
rawResponse: _response.rawResponse,
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* Check if a handle is available, returns true if it is, false if it is not
|
|
349
|
-
*
|
|
350
|
-
* @param {string} handle
|
|
351
|
-
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
352
|
-
*
|
|
353
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
354
|
-
*
|
|
355
|
-
* @example
|
|
356
|
-
* await client.orgs.getHandleAvailability("handle")
|
|
357
|
-
*/
|
|
358
|
-
getHandleAvailability(handle, requestOptions) {
|
|
359
|
-
return core.HttpResponsePromise.fromPromise(this.__getHandleAvailability(handle, requestOptions));
|
|
360
|
-
}
|
|
361
|
-
__getHandleAvailability(handle, requestOptions) {
|
|
362
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
363
|
-
var _a, _b, _c, _d;
|
|
364
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
365
|
-
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, `orgs/handle/availability/${encodeURIComponent(handle)}`),
|
|
366
|
-
method: "GET",
|
|
367
|
-
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
368
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
369
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
370
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
371
|
-
});
|
|
372
|
-
if (_response.ok) {
|
|
373
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
374
|
-
}
|
|
375
|
-
if (_response.error.reason === "status-code") {
|
|
376
|
-
switch (_response.error.statusCode) {
|
|
377
|
-
case 422:
|
|
378
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
379
|
-
default:
|
|
380
|
-
throw new errors.ChrtError({
|
|
381
|
-
statusCode: _response.error.statusCode,
|
|
382
|
-
body: _response.error.body,
|
|
383
|
-
rawResponse: _response.rawResponse,
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
switch (_response.error.reason) {
|
|
388
|
-
case "non-json":
|
|
389
|
-
throw new errors.ChrtError({
|
|
390
|
-
statusCode: _response.error.statusCode,
|
|
391
|
-
body: _response.error.rawBody,
|
|
392
|
-
rawResponse: _response.rawResponse,
|
|
393
|
-
});
|
|
394
|
-
case "timeout":
|
|
395
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/availability/{handle}.");
|
|
396
|
-
case "unknown":
|
|
397
|
-
throw new errors.ChrtError({
|
|
398
|
-
message: _response.error.errorMessage,
|
|
399
|
-
rawResponse: _response.rawResponse,
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
176
|
_getAuthorizationHeader() {
|
|
405
177
|
return __awaiter(this, void 0, void 0, function* () {
|
|
406
178
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { type
|
|
2
|
-
export { type UpdateOrgPublicDataReq } from "./UpdateOrgPublicDataReq.mjs";
|
|
1
|
+
export { type PostOrgPublicDataReq } from "./PostOrgPublicDataReq.mjs";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../index.mjs";
|
|
7
|
+
export declare namespace Profiles {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional headers to include in the request. */
|
|
25
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare class Profiles {
|
|
29
|
+
protected readonly _options: Profiles.Options;
|
|
30
|
+
constructor(_options?: Profiles.Options);
|
|
31
|
+
/**
|
|
32
|
+
* ...
|
|
33
|
+
*
|
|
34
|
+
* @param {Chrt.GetCourierProfileRequest} request
|
|
35
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.profiles.getCourierProfile()
|
|
41
|
+
*/
|
|
42
|
+
getCourierProfile(request?: Chrt.GetCourierProfileRequest, requestOptions?: Profiles.RequestOptions): core.HttpResponsePromise<Chrt.CourierProfileRes2>;
|
|
43
|
+
private __getCourierProfile;
|
|
44
|
+
/**
|
|
45
|
+
* @param {Chrt.CourierProfileCreate2} request
|
|
46
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.profiles.postCourierProfile({
|
|
52
|
+
* schema_version: 1,
|
|
53
|
+
* owner_name: "owner_name"
|
|
54
|
+
* })
|
|
55
|
+
*/
|
|
56
|
+
postCourierProfile(request: Chrt.CourierProfileCreate2, requestOptions?: Profiles.RequestOptions): core.HttpResponsePromise<string>;
|
|
57
|
+
private __postCourierProfile;
|
|
58
|
+
/**
|
|
59
|
+
* @param {Chrt.GetHandleIsAvailableRequest} request
|
|
60
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.profiles.getHandleIsAvailable({
|
|
66
|
+
* handle: "handle"
|
|
67
|
+
* })
|
|
68
|
+
*/
|
|
69
|
+
getHandleIsAvailable(request: Chrt.GetHandleIsAvailableRequest, requestOptions?: Profiles.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
70
|
+
private __getHandleIsAvailable;
|
|
71
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
72
|
+
}
|
|
@@ -15,29 +15,40 @@ import * as core from "../../../../core/index.mjs";
|
|
|
15
15
|
import * as Chrt from "../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
-
export class
|
|
18
|
+
export class Profiles {
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* ...
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.GetCourierProfileRequest} request
|
|
26
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
27
|
*
|
|
26
28
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
27
29
|
*
|
|
28
30
|
* @example
|
|
29
|
-
* await client.
|
|
31
|
+
* await client.profiles.getCourierProfile()
|
|
30
32
|
*/
|
|
31
|
-
|
|
32
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
33
|
+
getCourierProfile(request = {}, requestOptions) {
|
|
34
|
+
return core.HttpResponsePromise.fromPromise(this.__getCourierProfile(request, requestOptions));
|
|
33
35
|
}
|
|
34
|
-
|
|
35
|
-
return __awaiter(this,
|
|
36
|
+
__getCourierProfile() {
|
|
37
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
36
38
|
var _a, _b, _c, _d;
|
|
39
|
+
const { handle, type: type_ } = request;
|
|
40
|
+
const _queryParams = {};
|
|
41
|
+
if (handle != null) {
|
|
42
|
+
_queryParams["handle"] = handle;
|
|
43
|
+
}
|
|
44
|
+
if (type_ != null) {
|
|
45
|
+
_queryParams["type"] = type_;
|
|
46
|
+
}
|
|
37
47
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
38
|
-
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,
|
|
48
|
+
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, "profiles/courier_profile"),
|
|
39
49
|
method: "GET",
|
|
40
50
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
51
|
+
queryParameters: _queryParams,
|
|
41
52
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
42
53
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
43
54
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -65,7 +76,7 @@ export class OortCourierPayDriverPayouts {
|
|
|
65
76
|
rawResponse: _response.rawResponse,
|
|
66
77
|
});
|
|
67
78
|
case "timeout":
|
|
68
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /
|
|
79
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /profiles/courier_profile.");
|
|
69
80
|
case "unknown":
|
|
70
81
|
throw new errors.ChrtError({
|
|
71
82
|
message: _response.error.errorMessage,
|
|
@@ -75,24 +86,30 @@ export class OortCourierPayDriverPayouts {
|
|
|
75
86
|
});
|
|
76
87
|
}
|
|
77
88
|
/**
|
|
78
|
-
* @param {
|
|
79
|
-
* @param {
|
|
89
|
+
* @param {Chrt.CourierProfileCreate2} request
|
|
90
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
91
|
*
|
|
81
92
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
82
93
|
*
|
|
83
94
|
* @example
|
|
84
|
-
* await client.
|
|
95
|
+
* await client.profiles.postCourierProfile({
|
|
96
|
+
* schema_version: 1,
|
|
97
|
+
* owner_name: "owner_name"
|
|
98
|
+
* })
|
|
85
99
|
*/
|
|
86
|
-
|
|
87
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
100
|
+
postCourierProfile(request, requestOptions) {
|
|
101
|
+
return core.HttpResponsePromise.fromPromise(this.__postCourierProfile(request, requestOptions));
|
|
88
102
|
}
|
|
89
|
-
|
|
103
|
+
__postCourierProfile(request, requestOptions) {
|
|
90
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
91
105
|
var _a, _b, _c, _d;
|
|
92
106
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
93
|
-
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,
|
|
94
|
-
method: "
|
|
107
|
+
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, "profiles/courier_profile"),
|
|
108
|
+
method: "POST",
|
|
95
109
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
110
|
+
contentType: "application/json",
|
|
111
|
+
requestType: "json",
|
|
112
|
+
body: request,
|
|
96
113
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
97
114
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
98
115
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -120,7 +137,7 @@ export class OortCourierPayDriverPayouts {
|
|
|
120
137
|
rawResponse: _response.rawResponse,
|
|
121
138
|
});
|
|
122
139
|
case "timeout":
|
|
123
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
140
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /profiles/courier_profile.");
|
|
124
141
|
case "unknown":
|
|
125
142
|
throw new errors.ChrtError({
|
|
126
143
|
message: _response.error.errorMessage,
|
|
@@ -130,32 +147,30 @@ export class OortCourierPayDriverPayouts {
|
|
|
130
147
|
});
|
|
131
148
|
}
|
|
132
149
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* @param {Chrt.CourierPayDriverPayoutClientCreate1} request
|
|
136
|
-
* @param {OortCourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
150
|
+
* @param {Chrt.GetHandleIsAvailableRequest} request
|
|
151
|
+
* @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
152
|
*
|
|
138
153
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
139
154
|
*
|
|
140
155
|
* @example
|
|
141
|
-
* await client.
|
|
142
|
-
*
|
|
143
|
-
* line_item_group_ids: ["line_item_group_ids"]
|
|
156
|
+
* await client.profiles.getHandleIsAvailable({
|
|
157
|
+
* handle: "handle"
|
|
144
158
|
* })
|
|
145
159
|
*/
|
|
146
|
-
|
|
147
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
160
|
+
getHandleIsAvailable(request, requestOptions) {
|
|
161
|
+
return core.HttpResponsePromise.fromPromise(this.__getHandleIsAvailable(request, requestOptions));
|
|
148
162
|
}
|
|
149
|
-
|
|
163
|
+
__getHandleIsAvailable(request, requestOptions) {
|
|
150
164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
165
|
var _a, _b, _c, _d;
|
|
166
|
+
const { handle } = request;
|
|
167
|
+
const _queryParams = {};
|
|
168
|
+
_queryParams["handle"] = handle;
|
|
152
169
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
153
|
-
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, "
|
|
154
|
-
method: "
|
|
170
|
+
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, "profiles/handle_is_available"),
|
|
171
|
+
method: "GET",
|
|
155
172
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
156
|
-
|
|
157
|
-
requestType: "json",
|
|
158
|
-
body: request,
|
|
173
|
+
queryParameters: _queryParams,
|
|
159
174
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
160
175
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
161
176
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -183,7 +198,7 @@ export class OortCourierPayDriverPayouts {
|
|
|
183
198
|
rawResponse: _response.rawResponse,
|
|
184
199
|
});
|
|
185
200
|
case "timeout":
|
|
186
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
201
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /profiles/handle_is_available.");
|
|
187
202
|
case "unknown":
|
|
188
203
|
throw new errors.ChrtError({
|
|
189
204
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* schema_version: 1,
|
|
9
|
+
* owner_name: "owner_name"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CourierProfileCreate2 {
|
|
13
|
+
schema_version: number;
|
|
14
|
+
/** Must be a string starting with `user_` */
|
|
15
|
+
user_id?: string;
|
|
16
|
+
/** Must be a string starting with `org_` */
|
|
17
|
+
org_id?: string;
|
|
18
|
+
owner_name: string;
|
|
19
|
+
org_name?: string;
|
|
20
|
+
email_address?: Chrt.EmailAddress1[];
|
|
21
|
+
phone_number?: Chrt.PhoneNumber1[];
|
|
22
|
+
year_founded?: number;
|
|
23
|
+
owner_bio?: string;
|
|
24
|
+
org_bio?: string;
|
|
25
|
+
tagline?: string;
|
|
26
|
+
social_links?: Chrt.SocialLinks;
|
|
27
|
+
services?: Chrt.CourierServiceEnum[];
|
|
28
|
+
vehicles?: Chrt.Vehicle1Input[];
|
|
29
|
+
industries?: Record<string, string | undefined>;
|
|
30
|
+
states?: Chrt.CourierState[];
|
|
31
|
+
cities?: Chrt.CourierCity[];
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* handle: "handle"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface GetHandleIsAvailableRequest {
|
|
11
|
+
/**
|
|
12
|
+
* The handle to check for availability
|
|
13
|
+
*/
|
|
14
|
+
handle: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Type.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Type.mjs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../../../index.mjs";
|
|
5
|
-
export type PydanticResponse = Chrt.LineItem1 | Chrt.Cargo1 | Chrt.CargoTypeEnum1 | Chrt.Driver1 | Chrt.Expense1 | Chrt.Incident1 | Chrt.IncidentEnum1 | Chrt.Insurance1 | Chrt.Milestone1 | Chrt.MilestoneTypeEnum1 | Chrt.Order1 | Chrt.PriceNameEnum | Chrt.PayablesInvoice1 | Chrt.
|
|
5
|
+
export type PydanticResponse = Chrt.LineItem1 | Chrt.Cargo1 | Chrt.CargoTypeEnum1 | Chrt.Driver1 | Chrt.Expense1 | Chrt.Incident1 | Chrt.IncidentEnum1 | Chrt.Insurance1 | Chrt.Milestone1 | Chrt.MilestoneTypeEnum1 | Chrt.Order1 | Chrt.PriceNameEnum | Chrt.PayablesInvoice1 | Chrt.RateSheet1 | Chrt.RouteTypeEnum1 | Chrt.ReceivablesInvoice1 | Chrt.Route1 | Chrt.StripeConnectInvoice1 | Chrt.Task1 | Chrt.TaskActionEnum1 | Chrt.TaskGroup1 | Chrt.Tracker1 | Chrt.TrackerSession1 | Chrt.AppModelsDbOortVehicle1Vehicle1 | Chrt.ShipperCourierConnection1 | Chrt.ShipperOrgInfo1 | Chrt.ShipperUserInfo1
|
|
6
6
|
/**
|
|
7
7
|
* Must be a string starting with `org_` */
|
|
8
8
|
| string;
|
|
@@ -34,7 +34,7 @@ export declare class Users {
|
|
|
34
34
|
* @example
|
|
35
35
|
* await client.users.getUserPublicData()
|
|
36
36
|
*/
|
|
37
|
-
getUserPublicData(requestOptions?: Users.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
37
|
+
getUserPublicData(requestOptions?: Users.RequestOptions): core.HttpResponsePromise<Chrt.UserPublicData5>;
|
|
38
38
|
private __getUserPublicData;
|
|
39
39
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
40
40
|
}
|