@chrt-inc/typescript-sdk 1.296.0 → 1.302.0
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/README.md +49 -35
- package/dist/cjs/Client.d.ts +39 -33
- package/dist/cjs/Client.js +75 -65
- package/dist/cjs/api/resources/connections/client/Client.d.ts +20 -4
- package/dist/cjs/api/resources/connections/client/Client.js +67 -6
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +4 -4
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/index.js +0 -15
- package/dist/cjs/api/resources/{taskGroups/resources/full → connections/resources/connectionToForwarder}/client/Client.d.ts +12 -20
- package/dist/cjs/api/resources/connections/resources/connectionToForwarder/client/Client.js +132 -0
- package/dist/cjs/api/resources/connections/resources/connectionToShipper/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/connections/resources/connectionToShipper/client/Client.js +132 -0
- package/dist/cjs/api/resources/connections/resources/index.d.ts +2 -1
- package/dist/cjs/api/resources/connections/resources/index.js +3 -5
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +6 -6
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/index.js +0 -15
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +314 -0
- package/dist/cjs/api/resources/index.d.ts +22 -21
- package/dist/cjs/api/resources/index.js +23 -22
- package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +100 -0
- package/dist/cjs/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/client/Client.js +30 -30
- package/dist/cjs/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.d.ts → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts} +3 -3
- package/dist/cjs/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.d.ts → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/offChrtShipperOrg/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/client/Client.d.ts +14 -88
- package/dist/cjs/api/resources/orders/client/Client.js +19 -314
- package/dist/cjs/api/resources/orders/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/orders/client/index.js +0 -15
- package/dist/cjs/api/resources/orders/resources/draft/client/Client.d.ts +261 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/Client.js +1014 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/requests/OrderDraftAddTaskArtifactReq.d.ts +15 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/requests/OrderDraftAddTaskGroupReq.d.ts +17 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/requests/OrderDraftAddTaskReqV1.d.ts +18 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/requests/OrderDraftAssociateCargoWithTaskReq.d.ts +16 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/requests/OrderDraftCreateCargoReq.d.ts +18 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/requests/OrderDraftUpdateCargoReq.d.ts +15 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/requests/OrderDraftUpdateTaskReq.d.ts +15 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/requests/OrdersDraftUpdateReq.d.ts +17 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/requests/OrdersNewDraftReq.d.ts +14 -0
- package/dist/cjs/api/resources/orders/resources/draft/client/requests/index.d.ts +9 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/Client.d.ts +61 -0
- package/dist/cjs/api/resources/{taskGroups/resources/full → orders/resources/draft/resources/expanded}/client/Client.js +50 -38
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedListReq.d.ts +21 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedReq.d.ts +21 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/expanded/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/draft/resources/index.js +41 -0
- package/dist/cjs/api/resources/orders/resources/{full → expanded}/client/Client.d.ts +18 -23
- package/dist/cjs/api/resources/{milestones → orders/resources/expanded}/client/Client.js +28 -41
- package/dist/cjs/api/resources/orders/resources/expandedList/client/Client.d.ts +78 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/Client.js +291 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/requests/ExpandedListPostOrderCreatorExpandedListV1Request.d.ts +30 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/requests/ExpandedListPostShipperExpandedListV1Request.d.ts +28 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/resources/expandedList/index.js +17 -0
- package/dist/cjs/api/resources/orders/resources/index.d.ts +5 -1
- package/dist/cjs/api/resources/orders/resources/index.js +9 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +8 -8
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/{CourierOrgConnectionInfoClientCreate1.d.ts → CourierOrgInfoForConnectionsClientCreate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/{shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts → courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +8 -8
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/{ShipperOrgConnectionInfoClientCreate1.d.ts → ShipperOrgInfoForConnectionsClientCreate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/{courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts → shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +43 -12
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +151 -22
- package/dist/{esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts → cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.ts} +1 -1
- package/dist/{esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts → cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.ts +18 -0
- package/dist/cjs/api/resources/orgProfiles/client/requests/ForwarderOrgProfileClientUpdate1.d.ts +12 -0
- package/dist/cjs/api/resources/orgProfiles/client/requests/index.d.ts +4 -2
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +25 -36
- package/dist/cjs/api/resources/orgs/client/Client.js +52 -104
- package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +5 -4
- package/dist/cjs/api/resources/payments/client/Client.d.ts +27 -27
- package/dist/cjs/api/resources/payments/client/Client.js +83 -83
- package/dist/cjs/api/resources/payments/client/requests/GenerateInvoiceReq.d.ts +2 -2
- package/dist/cjs/api/resources/payments/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +10 -10
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/{ShipperContactInfoClientUpdate1.d.ts → ShipperContactClientUpdate1.d.ts} +1 -1
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/requests/ListPaymentsByCourierReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/Client.d.ts +133 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/Client.js +507 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/index.js +17 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/requests/ListStatementsByCourierReq.d.ts +16 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/requests/ListStatementsByShipperReq.d.ts +15 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperPayCourierStatements/index.js +17 -0
- package/dist/cjs/api/resources/{milestoneNotifications → taskArtifactNotifications}/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/{milestoneNotifications → taskArtifactNotifications}/client/Client.js +14 -14
- package/dist/cjs/api/resources/taskArtifactNotifications/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifactNotifications/client/index.js +17 -0
- package/dist/cjs/api/resources/{milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts → taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.d.ts} +2 -2
- package/dist/cjs/api/resources/taskArtifactNotifications/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifactNotifications/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifactNotifications/index.js +17 -0
- package/dist/cjs/api/resources/{milestones → taskArtifacts}/client/Client.d.ts +32 -17
- package/dist/cjs/api/resources/taskArtifacts/client/Client.js +268 -0
- package/dist/cjs/api/resources/taskArtifacts/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifacts/client/index.js +17 -0
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.ts +19 -0
- package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.ts +14 -0
- package/dist/cjs/api/resources/taskArtifacts/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifacts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/taskArtifacts/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifacts/index.js +18 -0
- package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/blurhash/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/blurhash/client/Client.js +8 -8
- package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/client/index.js +2 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/blurhash/index.js +17 -0
- package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/images/client/Client.d.ts +17 -18
- package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/images/client/Client.js +44 -49
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/index.js +17 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.ts +13 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskArtifacts/resources/images/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +11 -70
- package/dist/cjs/api/resources/taskGroups/client/Client.js +15 -309
- package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.d.ts +76 -0
- package/dist/cjs/api/resources/{orders/resources/full → taskGroups/resources/expanded}/client/Client.js +78 -44
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/TaskGroupExpandedForShipperReq.d.ts +20 -0
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/expanded/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/resources/expanded/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/Client.js +326 -0
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierAdministratorV1Request.d.ts +40 -0
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierDriverV1Request.d.ts +40 -0
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/resources/expandedList/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/resources/index.d.ts +4 -1
- package/dist/cjs/api/resources/taskGroups/resources/index.js +8 -2
- package/dist/cjs/api/types/Cargo1.d.ts +12 -0
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -0
- package/dist/cjs/api/types/CargoClientUpdate1.d.ts +15 -0
- package/dist/cjs/api/types/CargoStatusEnum1.d.ts +3 -2
- package/dist/cjs/api/types/CargoStatusEnum1.js +2 -1
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +30 -0
- package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +15 -0
- package/dist/cjs/api/types/CourierConnectionRes.d.ts +8 -0
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +1 -1
- package/dist/cjs/api/types/{CourierOrgConnectionInfo1.d.ts → CourierOrgInfoForConnections1.d.ts} +1 -1
- package/dist/cjs/api/types/{CourierOrgProfile3.d.ts → CourierOrgProfile1.d.ts} +1 -1
- package/dist/cjs/api/types/{CourierPayDriverPayout1.d.ts → CourierPayDriverStatement1.d.ts} +7 -7
- package/dist/cjs/api/types/CourierPayDriverStatementClientCreate1.d.ts +7 -0
- package/dist/cjs/api/types/CourierPayDriverStatementClientUpdate1.d.ts +13 -0
- package/dist/cjs/api/{resources/connections/resources/connectionToCourier/client/requests → types}/CreateConnectionReq.d.ts +0 -6
- package/dist/cjs/api/types/CreateShipperPayCourierStatementReq.d.ts +6 -0
- package/dist/cjs/api/types/Driver1.d.ts +1 -1
- package/dist/cjs/api/types/FlightTaskActionEnum1.d.ts +17 -0
- package/dist/cjs/api/types/FlightTaskActionEnum1.js +15 -0
- package/dist/cjs/api/types/ForwarderConnectionRes.d.ts +8 -0
- package/dist/cjs/api/types/ForwarderOrgInfoForConnections1.d.ts +22 -0
- package/dist/cjs/api/types/ForwarderOrgProfile1.d.ts +12 -0
- package/dist/cjs/api/types/GetShipperPayCourierPaymentsForShipperRes.d.ts +1 -1
- package/dist/cjs/api/types/GetShipperPayCourierStatementsForShipperRes.d.ts +7 -0
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/LocationProperties.d.ts +0 -1
- package/dist/cjs/api/types/{OffChrtShipperOrgInfo1.d.ts → OffChrtShipperOrg1.d.ts} +3 -3
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +29 -0
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.js +24 -0
- package/dist/cjs/api/types/Order1.d.ts +11 -10
- package/dist/cjs/api/types/OrderDraftExpandedListRes.d.ts +11 -0
- package/dist/cjs/api/types/OrderDraftExpandedRes.d.ts +13 -0
- package/dist/cjs/api/types/OrderExpandedForOrderCreator.d.ts +16 -0
- package/dist/cjs/api/types/OrderExpandedForOrderCreator.js +5 -0
- package/dist/cjs/api/types/OrderExpandedForOrderCreatorReq.d.ts +14 -0
- package/dist/cjs/api/types/OrderExpandedForOrderCreatorReq.js +5 -0
- package/dist/cjs/api/types/OrderExpandedForShipper.d.ts +16 -0
- package/dist/cjs/api/types/OrderExpandedForShipper.js +5 -0
- package/dist/cjs/api/types/OrderExpandedForShipperReq.d.ts +14 -0
- package/dist/cjs/api/types/OrderExpandedForShipperReq.js +5 -0
- package/dist/cjs/api/types/OrderExpandedListSortFieldEnum.d.ts +11 -0
- package/dist/cjs/api/types/OrderExpandedListSortFieldEnum.js +10 -0
- package/dist/cjs/api/types/OrderStatusEnum1.d.ts +4 -3
- package/dist/cjs/api/types/OrderStatusEnum1.js +3 -2
- package/dist/cjs/api/types/OrdersDraftUpdateRes.d.ts +12 -0
- package/dist/cjs/api/types/OrdersDraftUpdateRes.js +5 -0
- package/dist/cjs/api/types/OrdersExpandedForOrderCreatorRes.d.ts +11 -0
- package/dist/cjs/api/types/OrdersExpandedForOrderCreatorRes.js +5 -0
- package/dist/cjs/api/types/OrdersExpandedForShipperRes.d.ts +11 -0
- package/dist/cjs/api/types/OrdersExpandedForShipperRes.js +5 -0
- package/dist/cjs/api/types/{CreateOrderRes.d.ts → OrdersNewDraftRes.d.ts} +1 -1
- package/dist/cjs/api/types/OrdersNewDraftRes.js +5 -0
- package/dist/cjs/api/types/OrgProfileRes1.d.ts +8 -0
- package/dist/cjs/api/types/OrgProfileRes1.js +5 -0
- package/dist/cjs/api/types/{OrgPublicData2.d.ts → OrgPublicData1.d.ts} +2 -4
- package/dist/cjs/api/types/OrgPublicData1.js +5 -0
- package/dist/cjs/api/types/OrgTypeEnum.d.ts +9 -0
- package/dist/cjs/api/types/{OrderCreatedByTypeEnum.js → OrgTypeEnum.js} +4 -4
- package/dist/cjs/api/types/ShipperConnectionRes.d.ts +8 -0
- package/dist/cjs/api/types/ShipperConnectionRes.js +5 -0
- package/dist/cjs/api/types/{ShipperContactInfo1.d.ts → ShipperContact1.d.ts} +6 -6
- package/dist/cjs/api/types/ShipperContact1.js +5 -0
- package/dist/cjs/api/types/{ShipperContactInfoClientCreate1.d.ts → ShipperContactClientCreate1.d.ts} +6 -6
- package/dist/cjs/api/types/ShipperContactClientCreate1.js +5 -0
- package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +1 -1
- package/dist/cjs/api/types/{ShipperOrgConnectionInfo1.d.ts → ShipperOrgInfoForConnections1.d.ts} +1 -1
- package/dist/cjs/api/types/ShipperOrgInfoForConnections1.js +5 -0
- package/dist/cjs/api/types/ShipperPayCourierLineItemGroup1.d.ts +1 -1
- package/dist/cjs/api/types/ShipperPayCourierLineItemGroupServerCreate1.d.ts +1 -1
- package/dist/cjs/api/types/ShipperPayCourierRateSheet1.d.ts +1 -1
- package/dist/cjs/api/types/{ShipperPayCourierPayment1.d.ts → ShipperPayCourierStatement1.d.ts} +4 -4
- package/dist/cjs/api/types/ShipperPayCourierStatement1.js +5 -0
- package/dist/cjs/api/types/SortOrderEnum.d.ts +11 -0
- package/dist/cjs/api/types/SortOrderEnum.js +10 -0
- package/dist/cjs/api/types/StatementPreviewResponse.d.ts +10 -0
- package/dist/cjs/api/types/StatementPreviewResponse.js +5 -0
- package/dist/cjs/api/types/{PayoutStatusEnum.d.ts → StatementStatusEnum.d.ts} +2 -2
- package/dist/cjs/api/types/{PayoutStatusEnum.js → StatementStatusEnum.js} +2 -2
- package/dist/cjs/api/types/Task1.d.ts +19 -8
- package/dist/cjs/api/types/TaskArtifact1.d.ts +31 -0
- package/dist/cjs/api/types/TaskArtifact1.js +5 -0
- package/dist/cjs/api/types/{MilestoneNotificationPreferences1.d.ts → TaskArtifactNotificationPreferences1.d.ts} +3 -3
- package/dist/cjs/api/types/TaskArtifactNotificationPreferences1.js +5 -0
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +12 -0
- package/dist/cjs/api/types/TaskArtifactTypeEnum1.d.ts +9 -0
- package/dist/cjs/api/types/{OrderDispatchTypeEnum.js → TaskArtifactTypeEnum1.js} +5 -5
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +3 -4
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +15 -0
- package/dist/cjs/api/types/TaskClientUpdate1.js +5 -0
- package/dist/cjs/api/types/TaskDraftExpanded.d.ts +10 -0
- package/dist/cjs/api/types/TaskDraftExpanded.js +5 -0
- package/dist/cjs/api/types/TaskExpanded.d.ts +3 -3
- package/dist/cjs/api/types/TaskGroup1.d.ts +16 -8
- package/dist/cjs/api/types/TaskGroupDraftExpanded.d.ts +10 -0
- package/dist/cjs/api/types/TaskGroupDraftExpanded.js +5 -0
- package/dist/cjs/api/types/TaskGroupExpandedForCourierAdministrator.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroupExpandedForCourierAdministratorReq.d.ts +19 -0
- package/dist/cjs/api/types/TaskGroupExpandedForCourierAdministratorReq.js +5 -0
- package/dist/cjs/api/types/TaskGroupExpandedForCourierDriver.d.ts +3 -1
- package/dist/cjs/api/types/TaskGroupExpandedForCourierDriverReq.d.ts +19 -0
- package/dist/cjs/api/types/TaskGroupExpandedForCourierDriverReq.js +5 -0
- package/dist/cjs/api/types/TaskGroupExpandedForShipper.d.ts +18 -0
- package/dist/cjs/api/types/TaskGroupExpandedForShipper.js +5 -0
- package/dist/cjs/api/types/TaskGroupExpandedSortFieldEnum.d.ts +12 -0
- package/dist/cjs/api/types/TaskGroupExpandedSortFieldEnum.js +11 -0
- package/dist/cjs/api/types/{StripeConnectAccountEvent.d.ts → TaskGroupMessage1.d.ts} +5 -5
- package/dist/cjs/api/types/TaskGroupMessage1.js +5 -0
- package/dist/cjs/api/types/TaskGroupMileage1.d.ts +9 -0
- package/dist/cjs/api/types/TaskGroupMileage1.js +5 -0
- package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +4 -2
- package/dist/cjs/api/types/TaskGroupStatusEnum1.js +3 -1
- package/dist/cjs/api/types/TaskGroupTypeEnum1.d.ts +9 -0
- package/dist/cjs/api/types/TaskGroupTypeEnum1.js +11 -0
- package/dist/cjs/api/types/TaskGroupsExpandedForCourierAdministratorRes.d.ts +4 -0
- package/dist/cjs/api/types/TaskGroupsExpandedForCourierDriverRes.d.ts +4 -0
- package/dist/cjs/api/types/TaskStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/TaskStatusEnum1.js +12 -0
- package/dist/cjs/api/types/TimeWindow1.d.ts +7 -0
- package/dist/cjs/api/types/TimeWindow1.js +5 -0
- package/dist/cjs/api/types/index.d.ts +56 -38
- package/dist/cjs/api/types/index.js +56 -38
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +39 -33
- package/dist/esm/Client.mjs +55 -45
- package/dist/esm/api/resources/connections/client/Client.d.mts +20 -4
- package/dist/esm/api/resources/connections/client/Client.mjs +67 -6
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +4 -4
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/index.d.mts +0 -1
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/index.mjs +1 -1
- package/dist/esm/api/resources/{taskGroups/resources/full → connections/resources/connectionToForwarder}/client/Client.d.mts +12 -20
- package/dist/esm/api/resources/connections/resources/connectionToForwarder/client/Client.mjs +95 -0
- package/dist/esm/api/resources/connections/resources/connectionToShipper/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/connections/resources/connectionToShipper/client/Client.mjs +95 -0
- package/dist/esm/api/resources/connections/resources/index.d.mts +2 -1
- package/dist/esm/api/resources/connections/resources/index.mjs +2 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +6 -6
- package/dist/esm/api/resources/courierPayDriverPayouts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/index.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +277 -0
- package/dist/esm/api/resources/index.d.mts +22 -21
- package/dist/esm/api/resources/index.mjs +22 -21
- package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +100 -0
- package/dist/esm/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/client/Client.mjs +28 -28
- package/dist/esm/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.d.mts → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts} +3 -3
- package/dist/esm/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.d.mts → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/offChrtShipperOrg/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/client/Client.d.mts +14 -88
- package/dist/esm/api/resources/orders/client/Client.mjs +19 -314
- package/dist/esm/api/resources/orders/client/index.d.mts +0 -1
- package/dist/esm/api/resources/orders/client/index.mjs +1 -1
- package/dist/esm/api/resources/orders/resources/draft/client/Client.d.mts +261 -0
- package/dist/esm/api/resources/orders/resources/draft/client/Client.mjs +977 -0
- package/dist/esm/api/resources/orders/resources/draft/client/requests/OrderDraftAddTaskArtifactReq.d.mts +15 -0
- package/dist/esm/api/resources/orders/resources/draft/client/requests/OrderDraftAddTaskGroupReq.d.mts +17 -0
- package/dist/esm/api/resources/orders/resources/draft/client/requests/OrderDraftAddTaskReqV1.d.mts +18 -0
- package/dist/esm/api/resources/orders/resources/draft/client/requests/OrderDraftAssociateCargoWithTaskReq.d.mts +16 -0
- package/dist/esm/api/resources/orders/resources/draft/client/requests/OrderDraftCreateCargoReq.d.mts +18 -0
- package/dist/esm/api/resources/orders/resources/draft/client/requests/OrderDraftUpdateCargoReq.d.mts +15 -0
- package/dist/esm/api/resources/orders/resources/draft/client/requests/OrderDraftUpdateTaskReq.d.mts +15 -0
- package/dist/esm/api/resources/orders/resources/draft/client/requests/OrdersDraftUpdateReq.d.mts +17 -0
- package/dist/esm/api/resources/orders/resources/draft/client/requests/OrdersNewDraftReq.d.mts +14 -0
- package/dist/esm/api/resources/orders/resources/draft/client/requests/index.d.mts +9 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/Client.d.mts +61 -0
- package/dist/esm/api/resources/{taskGroups/resources/full → orders/resources/draft/resources/expanded}/client/Client.mjs +48 -36
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedListReq.d.mts +21 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedReq.d.mts +21 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/expanded/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/draft/resources/index.mjs +2 -0
- package/dist/esm/api/resources/orders/resources/{full → expanded}/client/Client.d.mts +18 -23
- package/dist/esm/api/resources/{milestones → orders/resources/expanded}/client/Client.mjs +26 -39
- package/dist/esm/api/resources/orders/resources/expandedList/client/Client.d.mts +78 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/Client.mjs +254 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/requests/ExpandedListPostOrderCreatorExpandedListV1Request.d.mts +30 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/requests/ExpandedListPostShipperExpandedListV1Request.d.mts +28 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/expandedList/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/expandedList/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/expandedList/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/index.d.mts +5 -1
- package/dist/esm/api/resources/orders/resources/index.mjs +5 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +8 -8
- package/dist/esm/api/resources/orgConnectionInfos/resources/{shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts → courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/{CourierOrgConnectionInfoClientUpdate1.d.mts → CourierOrgInfoForConnectionsClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +8 -8
- package/dist/esm/api/resources/orgConnectionInfos/resources/{courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts → shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/{ShipperOrgConnectionInfoClientUpdate1.d.mts → ShipperOrgInfoForConnectionsClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +43 -12
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +151 -22
- package/dist/{cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts → esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.mts} +1 -1
- package/dist/{cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts → esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.mts +18 -0
- package/dist/esm/api/resources/orgProfiles/client/requests/ForwarderOrgProfileClientUpdate1.d.mts +12 -0
- package/dist/esm/api/resources/orgProfiles/client/requests/index.d.mts +4 -2
- package/dist/esm/api/resources/orgs/client/Client.d.mts +25 -36
- package/dist/esm/api/resources/orgs/client/Client.mjs +52 -104
- package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +5 -4
- package/dist/esm/api/resources/payments/client/Client.d.mts +27 -27
- package/dist/esm/api/resources/payments/client/Client.mjs +83 -83
- package/dist/esm/api/resources/payments/client/requests/GenerateInvoiceReq.d.mts +2 -2
- package/dist/esm/api/resources/payments/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +10 -10
- package/dist/esm/api/resources/shipperContactInfo/client/requests/{ShipperContactInfoClientUpdate1.d.mts → ShipperContactClientUpdate1.d.mts} +1 -1
- package/dist/esm/api/resources/shipperContactInfo/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipperPayCourierPayments/client/requests/ListPaymentsByCourierReq.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/requests/ShipperPayCourierRateSheetClientUpdate1.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierStatements/client/Client.d.mts +133 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/Client.mjs +470 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/requests/ListStatementsByCourierReq.d.mts +16 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/requests/ListStatementsByShipperReq.d.mts +15 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperPayCourierStatements/index.mjs +1 -0
- package/dist/esm/api/resources/{milestoneNotifications → taskArtifactNotifications}/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/{milestoneNotifications → taskArtifactNotifications}/client/Client.mjs +12 -12
- package/dist/esm/api/resources/taskArtifactNotifications/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifactNotifications/client/index.mjs +1 -0
- package/dist/esm/api/resources/{milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts → taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.d.mts} +2 -2
- package/dist/esm/api/resources/taskArtifactNotifications/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifactNotifications/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifactNotifications/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifactNotifications/index.mjs +1 -0
- package/dist/esm/api/resources/{milestones → taskArtifacts}/client/Client.d.mts +32 -17
- package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +231 -0
- package/dist/esm/api/resources/taskArtifacts/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifacts/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.mts +19 -0
- package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.mts +14 -0
- package/dist/esm/api/resources/taskArtifacts/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifacts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifacts/index.mjs +2 -0
- package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/blurhash/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/blurhash/client/Client.mjs +8 -8
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/blurhash/index.mjs +1 -0
- package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/images/client/Client.d.mts +17 -18
- package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/images/client/Client.mjs +44 -49
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.mts +13 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/index.d.mts +1 -0
- package/dist/esm/api/resources/taskArtifacts/resources/images/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +11 -70
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +15 -309
- package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.d.mts +76 -0
- package/dist/esm/api/resources/{orders/resources/full → taskGroups/resources/expanded}/client/Client.mjs +76 -42
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/TaskGroupExpandedForShipperReq.d.mts +20 -0
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/expanded/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/expanded/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/Client.mjs +289 -0
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierAdministratorV1Request.d.mts +40 -0
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierDriverV1Request.d.mts +40 -0
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/taskGroups/resources/expandedList/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/expandedList/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/expandedList/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/index.d.mts +4 -1
- package/dist/esm/api/resources/taskGroups/resources/index.mjs +4 -1
- package/dist/esm/api/types/Cargo1.d.mts +12 -0
- package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -0
- package/dist/esm/api/types/CargoClientUpdate1.d.mts +15 -0
- package/dist/esm/api/types/CargoStatusEnum1.d.mts +3 -2
- package/dist/esm/api/types/CargoStatusEnum1.mjs +2 -1
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +30 -0
- package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +12 -0
- package/dist/esm/api/types/CourierConnectionRes.d.mts +8 -0
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +1 -1
- package/dist/esm/api/types/{CourierOrgConnectionInfo1.d.mts → CourierOrgInfoForConnections1.d.mts} +1 -1
- package/dist/esm/api/types/{CourierOrgProfile3.d.mts → CourierOrgProfile1.d.mts} +1 -1
- package/dist/esm/api/types/{CourierPayDriverPayout1.d.mts → CourierPayDriverStatement1.d.mts} +7 -7
- package/dist/esm/api/types/CourierPayDriverStatementClientCreate1.d.mts +7 -0
- package/dist/esm/api/types/CourierPayDriverStatementClientUpdate1.d.mts +13 -0
- package/dist/esm/api/{resources/connections/resources/connectionToCourier/client/requests → types}/CreateConnectionReq.d.mts +0 -6
- package/dist/esm/api/types/CreateShipperPayCourierStatementReq.d.mts +6 -0
- package/dist/esm/api/types/Driver1.d.mts +1 -1
- package/dist/esm/api/types/FlightTaskActionEnum1.d.mts +17 -0
- package/dist/esm/api/types/FlightTaskActionEnum1.mjs +12 -0
- package/dist/esm/api/types/ForwarderConnectionRes.d.mts +8 -0
- package/dist/esm/api/types/ForwarderOrgInfoForConnections1.d.mts +22 -0
- package/dist/esm/api/types/ForwarderOrgProfile1.d.mts +12 -0
- package/dist/esm/api/types/GetShipperPayCourierPaymentsForShipperRes.d.mts +1 -1
- package/dist/esm/api/types/GetShipperPayCourierStatementsForShipperRes.d.mts +7 -0
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/LocationProperties.d.mts +0 -1
- package/dist/esm/api/types/{OffChrtShipperOrgInfo1.d.mts → OffChrtShipperOrg1.d.mts} +3 -3
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +29 -0
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.mjs +21 -0
- package/dist/esm/api/types/Order1.d.mts +11 -10
- package/dist/esm/api/types/OrderDraftExpandedListRes.d.mts +11 -0
- package/dist/esm/api/types/OrderDraftExpandedRes.d.mts +13 -0
- package/dist/esm/api/types/OrderExpandedForOrderCreator.d.mts +16 -0
- package/dist/esm/api/types/OrderExpandedForOrderCreator.mjs +4 -0
- package/dist/esm/api/types/OrderExpandedForOrderCreatorReq.d.mts +14 -0
- package/dist/esm/api/types/OrderExpandedForOrderCreatorReq.mjs +4 -0
- package/dist/esm/api/types/OrderExpandedForShipper.d.mts +16 -0
- package/dist/esm/api/types/OrderExpandedForShipper.mjs +4 -0
- package/dist/esm/api/types/OrderExpandedForShipperReq.d.mts +14 -0
- package/dist/esm/api/types/OrderExpandedForShipperReq.mjs +4 -0
- package/dist/esm/api/types/OrderExpandedListSortFieldEnum.d.mts +11 -0
- package/dist/esm/api/types/OrderExpandedListSortFieldEnum.mjs +7 -0
- package/dist/esm/api/types/OrderStatusEnum1.d.mts +4 -3
- package/dist/esm/api/types/OrderStatusEnum1.mjs +3 -2
- package/dist/esm/api/types/OrdersDraftUpdateRes.d.mts +12 -0
- package/dist/esm/api/types/OrdersDraftUpdateRes.mjs +4 -0
- package/dist/esm/api/types/OrdersExpandedForOrderCreatorRes.d.mts +11 -0
- package/dist/esm/api/types/OrdersExpandedForOrderCreatorRes.mjs +4 -0
- package/dist/esm/api/types/OrdersExpandedForShipperRes.d.mts +11 -0
- package/dist/esm/api/types/OrdersExpandedForShipperRes.mjs +4 -0
- package/dist/esm/api/types/{CreateOrderRes.d.mts → OrdersNewDraftRes.d.mts} +1 -1
- package/dist/esm/api/types/OrdersNewDraftRes.mjs +4 -0
- package/dist/esm/api/types/OrgProfileRes1.d.mts +8 -0
- package/dist/esm/api/types/OrgProfileRes1.mjs +4 -0
- package/dist/esm/api/types/{OrgPublicData2.d.mts → OrgPublicData1.d.mts} +2 -4
- package/dist/esm/api/types/OrgPublicData1.mjs +4 -0
- package/dist/esm/api/types/OrgTypeEnum.d.mts +9 -0
- package/dist/esm/api/types/{OrderCreatedByTypeEnum.mjs → OrgTypeEnum.mjs} +3 -3
- package/dist/esm/api/types/ShipperConnectionRes.d.mts +8 -0
- package/dist/esm/api/types/ShipperConnectionRes.mjs +4 -0
- package/dist/esm/api/types/{ShipperContactInfo1.d.mts → ShipperContact1.d.mts} +6 -6
- package/dist/esm/api/types/ShipperContact1.mjs +4 -0
- package/dist/esm/api/types/{ShipperContactInfoClientCreate1.d.mts → ShipperContactClientCreate1.d.mts} +6 -6
- package/dist/esm/api/types/ShipperContactClientCreate1.mjs +4 -0
- package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +1 -1
- package/dist/esm/api/types/{ShipperOrgConnectionInfo1.d.mts → ShipperOrgInfoForConnections1.d.mts} +1 -1
- package/dist/esm/api/types/ShipperOrgInfoForConnections1.mjs +4 -0
- package/dist/esm/api/types/ShipperPayCourierLineItemGroup1.d.mts +1 -1
- package/dist/esm/api/types/ShipperPayCourierLineItemGroupServerCreate1.d.mts +1 -1
- package/dist/esm/api/types/ShipperPayCourierRateSheet1.d.mts +1 -1
- package/dist/esm/api/types/{ShipperPayCourierPayment1.d.mts → ShipperPayCourierStatement1.d.mts} +4 -4
- package/dist/esm/api/types/ShipperPayCourierStatement1.mjs +4 -0
- package/dist/esm/api/types/SortOrderEnum.d.mts +11 -0
- package/dist/{cjs/api/types/OrderClientCreate1.d.ts → esm/api/types/SortOrderEnum.mjs} +4 -3
- package/dist/esm/api/types/StatementPreviewResponse.d.mts +10 -0
- package/dist/esm/api/types/StatementPreviewResponse.mjs +4 -0
- package/dist/esm/api/types/{PayoutStatusEnum.d.mts → StatementStatusEnum.d.mts} +2 -2
- package/dist/esm/api/types/{PayoutStatusEnum.mjs → StatementStatusEnum.mjs} +1 -1
- package/dist/esm/api/types/Task1.d.mts +19 -8
- package/dist/esm/api/types/TaskArtifact1.d.mts +31 -0
- package/dist/esm/api/types/TaskArtifact1.mjs +4 -0
- package/dist/esm/api/types/{MilestoneNotificationPreferences1.d.mts → TaskArtifactNotificationPreferences1.d.mts} +3 -3
- package/dist/esm/api/types/TaskArtifactNotificationPreferences1.mjs +4 -0
- package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/TaskArtifactTypeEnum1.d.mts +9 -0
- package/dist/esm/api/types/TaskArtifactTypeEnum1.mjs +8 -0
- package/dist/esm/api/types/TaskClientCreate1.d.mts +3 -4
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +15 -0
- package/dist/esm/api/types/TaskClientUpdate1.mjs +4 -0
- package/dist/esm/api/types/TaskDraftExpanded.d.mts +10 -0
- package/dist/esm/api/types/TaskDraftExpanded.mjs +4 -0
- package/dist/esm/api/types/TaskExpanded.d.mts +3 -3
- package/dist/esm/api/types/TaskGroup1.d.mts +16 -8
- package/dist/esm/api/types/{TaskGroupExpanded.d.mts → TaskGroupDraftExpanded.d.mts} +3 -6
- package/dist/esm/api/types/TaskGroupDraftExpanded.mjs +4 -0
- package/dist/esm/api/types/TaskGroupExpandedForCourierAdministrator.d.mts +2 -2
- package/dist/esm/api/types/TaskGroupExpandedForCourierAdministratorReq.d.mts +19 -0
- package/dist/esm/api/types/TaskGroupExpandedForCourierAdministratorReq.mjs +4 -0
- package/dist/esm/api/types/TaskGroupExpandedForCourierDriver.d.mts +3 -1
- package/dist/esm/api/types/TaskGroupExpandedForCourierDriverReq.d.mts +19 -0
- package/dist/esm/api/types/TaskGroupExpandedForCourierDriverReq.mjs +4 -0
- package/dist/esm/api/types/TaskGroupExpandedForShipper.d.mts +18 -0
- package/dist/esm/api/types/TaskGroupExpandedForShipper.mjs +4 -0
- package/dist/esm/api/types/TaskGroupExpandedSortFieldEnum.d.mts +12 -0
- package/dist/esm/api/types/TaskGroupExpandedSortFieldEnum.mjs +8 -0
- package/dist/esm/api/types/{StripeConnectAccountEvent.d.mts → TaskGroupMessage1.d.mts} +5 -5
- package/dist/esm/api/types/TaskGroupMessage1.mjs +4 -0
- package/dist/esm/api/types/TaskGroupMileage1.d.mts +9 -0
- package/dist/esm/api/types/TaskGroupMileage1.mjs +4 -0
- package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +4 -2
- package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +3 -1
- package/dist/esm/api/types/TaskGroupTypeEnum1.d.mts +9 -0
- package/dist/esm/api/types/TaskGroupTypeEnum1.mjs +8 -0
- package/dist/esm/api/types/TaskGroupsExpandedForCourierAdministratorRes.d.mts +4 -0
- package/dist/esm/api/types/TaskGroupsExpandedForCourierDriverRes.d.mts +4 -0
- package/dist/esm/api/types/TaskStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/TaskStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/TimeWindow1.d.mts +7 -0
- package/dist/esm/api/types/TimeWindow1.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +56 -38
- package/dist/esm/api/types/index.mjs +56 -38
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +3052 -1158
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +0 -14
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.d.ts +0 -14
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +0 -16
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +0 -14
- package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.d.ts +0 -15
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.d.ts +0 -100
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +0 -45
- package/dist/cjs/api/resources/orders/client/requests/OrdersExpandedReq.d.ts +0 -19
- package/dist/cjs/api/resources/orders/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/taskGroups/client/requests/TaskGroupExpandedForCourierAdministratorReq.d.ts +0 -34
- package/dist/cjs/api/resources/taskGroups/client/requests/TaskGroupExpandedForCourierDriverReq.d.ts +0 -32
- package/dist/cjs/api/types/Expense1.d.ts +0 -13
- package/dist/cjs/api/types/GetOrderFullRes.d.ts +0 -11
- package/dist/cjs/api/types/GetOrderRes.d.ts +0 -7
- package/dist/cjs/api/types/Milestone1.d.ts +0 -27
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +0 -9
- package/dist/cjs/api/types/MilestoneTypeEnum1.d.ts +0 -14
- package/dist/cjs/api/types/MilestoneTypeEnum1.js +0 -16
- package/dist/cjs/api/types/MultipleTaskGroupsDetailsResponse.d.ts +0 -7
- package/dist/cjs/api/types/MultipleTaskGroupsWithTasks.d.ts +0 -7
- package/dist/cjs/api/types/ObcNfoTaskActionEnum.d.ts +0 -38
- package/dist/cjs/api/types/ObcNfoTaskActionEnum.js +0 -40
- package/dist/cjs/api/types/OrderCreatedByTypeEnum.d.ts +0 -9
- package/dist/cjs/api/types/OrderDispatchTypeEnum.d.ts +0 -9
- package/dist/cjs/api/types/OrderExpanded.d.ts +0 -11
- package/dist/cjs/api/types/OrdersExpandedRes.d.ts +0 -10
- package/dist/cjs/api/types/StripeConnectAccountEventEnum.d.ts +0 -8
- package/dist/cjs/api/types/StripeConnectAccountEventEnum.js +0 -10
- package/dist/cjs/api/types/TaskActionEnum1.d.ts +0 -14
- package/dist/cjs/api/types/TaskActionEnum1.js +0 -16
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +0 -13
- package/dist/cjs/api/types/TaskGroupDetailsResponse.d.ts +0 -8
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +0 -13
- package/dist/cjs/api/types/TaskGroupWithDetails.d.ts +0 -8
- package/dist/cjs/api/types/TaskGroupWithTasks.d.ts +0 -8
- package/dist/cjs/api/types/TaskWithDetails.d.ts +0 -9
- package/dist/cjs/api/types/TransportTypeEnum.d.ts +0 -11
- package/dist/cjs/api/types/TransportTypeEnum.js +0 -13
- package/dist/cjs/api/types/UpdateTaskGroupRes.d.ts +0 -6
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +0 -14
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.d.mts +0 -14
- package/dist/esm/api/resources/courierPayDriverPayouts/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/milestoneNotifications/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +0 -16
- package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +0 -14
- package/dist/esm/api/resources/milestones/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.d.mts +0 -15
- package/dist/esm/api/resources/milestones/resources/images/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.d.mts +0 -100
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +0 -45
- package/dist/esm/api/resources/orders/client/requests/OrdersExpandedReq.d.mts +0 -19
- package/dist/esm/api/resources/orders/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/taskGroups/client/requests/TaskGroupExpandedForCourierAdministratorReq.d.mts +0 -34
- package/dist/esm/api/resources/taskGroups/client/requests/TaskGroupExpandedForCourierDriverReq.d.mts +0 -32
- package/dist/esm/api/types/Expense1.d.mts +0 -13
- package/dist/esm/api/types/GetOrderFullRes.d.mts +0 -11
- package/dist/esm/api/types/GetOrderRes.d.mts +0 -7
- package/dist/esm/api/types/Milestone1.d.mts +0 -27
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +0 -9
- package/dist/esm/api/types/MilestoneTypeEnum1.d.mts +0 -14
- package/dist/esm/api/types/MilestoneTypeEnum1.mjs +0 -13
- package/dist/esm/api/types/MultipleTaskGroupsDetailsResponse.d.mts +0 -7
- package/dist/esm/api/types/MultipleTaskGroupsWithTasks.d.mts +0 -7
- package/dist/esm/api/types/ObcNfoTaskActionEnum.d.mts +0 -38
- package/dist/esm/api/types/ObcNfoTaskActionEnum.mjs +0 -37
- package/dist/esm/api/types/OrderClientCreate1.d.mts +0 -6
- package/dist/esm/api/types/OrderCreatedByTypeEnum.d.mts +0 -9
- package/dist/esm/api/types/OrderDispatchTypeEnum.d.mts +0 -9
- package/dist/esm/api/types/OrderDispatchTypeEnum.mjs +0 -8
- package/dist/esm/api/types/OrderExpanded.d.mts +0 -11
- package/dist/esm/api/types/OrdersExpandedRes.d.mts +0 -10
- package/dist/esm/api/types/StripeConnectAccountEventEnum.d.mts +0 -8
- package/dist/esm/api/types/StripeConnectAccountEventEnum.mjs +0 -7
- package/dist/esm/api/types/TaskActionEnum1.d.mts +0 -14
- package/dist/esm/api/types/TaskActionEnum1.mjs +0 -13
- package/dist/esm/api/types/TaskCreateBundle.d.mts +0 -13
- package/dist/esm/api/types/TaskGroupDetailsResponse.d.mts +0 -8
- package/dist/esm/api/types/TaskGroupWithDetails.d.mts +0 -8
- package/dist/esm/api/types/TaskGroupWithTasks.d.mts +0 -8
- package/dist/esm/api/types/TaskWithDetails.d.mts +0 -9
- package/dist/esm/api/types/TransportTypeEnum.d.mts +0 -11
- package/dist/esm/api/types/TransportTypeEnum.mjs +0 -10
- package/dist/esm/api/types/UpdateTaskGroupRes.d.mts +0 -6
- /package/dist/cjs/api/resources/{milestones/resources/blurhash → connections/resources/connectionToForwarder}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/connections/resources/{connectionToCourier/client/requests → connectionToForwarder/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications → connections/resources/connectionToForwarder}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications → connections/resources/connectionToForwarder}/index.js +0 -0
- /package/dist/cjs/api/resources/{orders/resources/full → connections/resources/connectionToShipper}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverPayouts/client/requests → connections/resources/connectionToShipper/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/blurhash → connections/resources/connectionToShipper}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/blurhash → connections/resources/connectionToShipper}/index.js +0 -0
- /package/dist/cjs/api/resources/{taskGroups/resources/full → courierPayDriverStatements}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications/client/requests → courierPayDriverStatements/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images → courierPayDriverStatements}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images → courierPayDriverStatements}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications → offChrtShipperOrg}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications → offChrtShipperOrg}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{connections/resources/connectionToCourier/client/requests/CreateConnectionReq.js → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.js → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{milestones → offChrtShipperOrg}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones → orders/resources/draft}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones → orders/resources/draft}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.js → orders/resources/draft/client/requests/OrderDraftAddTaskArtifactReq.js} +0 -0
- /package/dist/cjs/api/resources/{milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.js → orders/resources/draft/client/requests/OrderDraftAddTaskGroupReq.js} +0 -0
- /package/dist/cjs/api/resources/{milestones/client/requests/MilestoneAddToTaskReq.js → orders/resources/draft/client/requests/OrderDraftAddTaskReqV1.js} +0 -0
- /package/dist/cjs/api/resources/{milestones/client/requests/MilestoneUpdateReq.js → orders/resources/draft/client/requests/OrderDraftAssociateCargoWithTaskReq.js} +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images/client/requests/BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.js → orders/resources/draft/client/requests/OrderDraftCreateCargoReq.js} +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.js → orders/resources/draft/client/requests/OrderDraftUpdateCargoReq.js} +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.js → orders/resources/draft/client/requests/OrderDraftUpdateTaskReq.js} +0 -0
- /package/dist/cjs/api/resources/orders/{client/requests/CreateOrderReq.js → resources/draft/client/requests/OrdersDraftUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/orders/{client/requests/OrdersExpandedReq.js → resources/draft/client/requests/OrdersNewDraftReq.js} +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/blurhash/client → orders/resources/draft/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones → orders/resources/draft}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones → orders/resources/draft}/index.js +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images → orders/resources/draft/resources/expanded}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images → orders/resources/draft/resources/expanded}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.js → orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedListReq.js} +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.js → orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedReq.js} +0 -0
- /package/dist/cjs/api/resources/{milestones/resources/images → orders/resources/draft/resources/expanded}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/orders/resources/{full → draft/resources/expanded}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/orders/resources/{full → draft/resources/expanded}/index.js +0 -0
- /package/dist/{esm/api/resources/connections/resources/connectionToCourier/client/requests/index.mjs → cjs/api/resources/orders/resources/expanded/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo/client/requests → orders/resources/expanded/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{taskGroups/resources/full → orders/resources/expanded}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{taskGroups/resources/full → orders/resources/expanded}/index.js +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo → orders/resources/expandedList}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{offChrtShipperOrgInfo → orders/resources/expandedList}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.js → orders/resources/expandedList/client/requests/ExpandedListPostOrderCreatorExpandedListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.js → orders/resources/expandedList/client/requests/ExpandedListPostShipperExpandedListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/orders/{client → resources/expandedList/client}/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{orgProfiles/client/requests/CourierOrgProfileClientCreate3.js → orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{orgProfiles/client/requests/CourierOrgProfileClientUpdate3.js → orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.js → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{taskGroups/client/requests/TaskGroupExpandedForCourierAdministratorReq.js → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{taskGroups/client/requests/TaskGroupExpandedForCourierDriverReq.js → orgProfiles/client/requests/CourierOrgProfileClientCreate1.js} +0 -0
- /package/dist/cjs/api/{types/CourierOrgConnectionInfo1.js → resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/CourierOrgProfile3.js → resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.js} +0 -0
- /package/dist/cjs/api/{types/CourierPayDriverPayout1.js → resources/orgProfiles/client/requests/ForwarderOrgProfileClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/CreateOrderRes.js → resources/shipperContactInfo/client/requests/ShipperContactClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/Expense1.js → resources/shipperPayCourierStatements/client/requests/ListStatementsByCourierReq.js} +0 -0
- /package/dist/cjs/api/{types/GetOrderFullRes.js → resources/shipperPayCourierStatements/client/requests/ListStatementsByShipperReq.js} +0 -0
- /package/dist/cjs/api/resources/{orders/resources/full/client → shipperPayCourierStatements/client/requests}/index.js +0 -0
- /package/dist/cjs/api/{types/GetOrderRes.js → resources/taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{taskGroups/resources/full/client → taskArtifactNotifications/client/requests}/index.js +0 -0
- /package/dist/cjs/api/{types/Milestone1.js → resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.js} +0 -0
- /package/dist/cjs/api/{types/MilestoneClientCreate1.js → resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.js} +0 -0
- /package/dist/{esm/api/resources/courierPayDriverPayouts/client/requests/index.mjs → cjs/api/resources/taskArtifacts/resources/blurhash/client/index.d.ts} +0 -0
- /package/dist/cjs/api/{types/MilestoneNotificationPreferences1.js → resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.js} +0 -0
- /package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{milestones → taskArtifacts}/resources/index.js +0 -0
- /package/dist/cjs/api/{types/MultipleTaskGroupsDetailsResponse.js → resources/taskGroups/resources/expanded/client/requests/TaskGroupExpandedForShipperReq.js} +0 -0
- /package/dist/cjs/api/{types/MultipleTaskGroupsWithTasks.js → resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierAdministratorV1Request.js} +0 -0
- /package/dist/cjs/api/{types/OffChrtShipperOrgInfo1.js → resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierDriverV1Request.js} +0 -0
- /package/dist/cjs/api/types/{OrderClientCreate1.js → CargoClientUpdate1.js} +0 -0
- /package/dist/cjs/api/types/{OrderExpanded.js → CourierConnectionRes.js} +0 -0
- /package/dist/cjs/api/types/{OrdersExpandedRes.js → CourierOrgInfoForConnections1.js} +0 -0
- /package/dist/cjs/api/types/{OrgPublicData2.js → CourierOrgProfile1.js} +0 -0
- /package/dist/cjs/api/types/{ShipperContactInfo1.js → CourierPayDriverStatement1.js} +0 -0
- /package/dist/cjs/api/types/{ShipperContactInfoClientCreate1.js → CourierPayDriverStatementClientCreate1.js} +0 -0
- /package/dist/cjs/api/types/{ShipperOrgConnectionInfo1.js → CourierPayDriverStatementClientUpdate1.js} +0 -0
- /package/dist/cjs/api/types/{ShipperPayCourierPayment1.js → CreateConnectionReq.js} +0 -0
- /package/dist/cjs/api/types/{StripeConnectAccountEvent.js → CreateShipperPayCourierStatementReq.js} +0 -0
- /package/dist/cjs/api/types/{TaskCreateBundle.js → ForwarderConnectionRes.js} +0 -0
- /package/dist/cjs/api/types/{TaskGroupDetailsResponse.js → ForwarderOrgInfoForConnections1.js} +0 -0
- /package/dist/cjs/api/types/{TaskGroupExpanded.js → ForwarderOrgProfile1.js} +0 -0
- /package/dist/cjs/api/types/{TaskGroupWithDetails.js → GetShipperPayCourierStatementsForShipperRes.js} +0 -0
- /package/dist/cjs/api/types/{TaskGroupWithTasks.js → OffChrtShipperOrg1.js} +0 -0
- /package/dist/cjs/api/types/{TaskWithDetails.js → OrderDraftExpandedListRes.js} +0 -0
- /package/dist/cjs/api/types/{UpdateTaskGroupRes.js → OrderDraftExpandedRes.js} +0 -0
- /package/dist/esm/api/resources/{milestones/resources/blurhash → connections/resources/connectionToForwarder}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications/client/requests → connections/resources/connectionToForwarder/client}/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications → connections/resources/connectionToForwarder}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications → connections/resources/connectionToForwarder}/index.mjs +0 -0
- /package/dist/esm/api/resources/{orders/resources/full → connections/resources/connectionToShipper}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones/client/requests → connections/resources/connectionToShipper/client}/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestones/resources/blurhash → connections/resources/connectionToShipper}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones/resources/blurhash → connections/resources/connectionToShipper}/index.mjs +0 -0
- /package/dist/esm/api/resources/{taskGroups/resources/full → courierPayDriverStatements}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones/resources/blurhash → courierPayDriverStatements}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images → courierPayDriverStatements}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images → courierPayDriverStatements}/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications → offChrtShipperOrg}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications → offChrtShipperOrg}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{connections/resources/connectionToCourier/client/requests/CreateConnectionReq.mjs → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.mjs → offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images → offChrtShipperOrg}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo → offChrtShipperOrg}/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestones → orders/resources/draft}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones → orders/resources/draft}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{courierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientUpdate1.mjs → orders/resources/draft/client/requests/OrderDraftAddTaskArtifactReq.mjs} +0 -0
- /package/dist/esm/api/resources/{milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.mjs → orders/resources/draft/client/requests/OrderDraftAddTaskGroupReq.mjs} +0 -0
- /package/dist/esm/api/resources/{milestones/client/requests/MilestoneAddToTaskReq.mjs → orders/resources/draft/client/requests/OrderDraftAddTaskReqV1.mjs} +0 -0
- /package/dist/esm/api/resources/{milestones/client/requests/MilestoneUpdateReq.mjs → orders/resources/draft/client/requests/OrderDraftAssociateCargoWithTaskReq.mjs} +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images/client/requests/BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.mjs → orders/resources/draft/client/requests/OrderDraftCreateCargoReq.mjs} +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientCreate1.mjs → orders/resources/draft/client/requests/OrderDraftUpdateCargoReq.mjs} +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo/client/requests/OffChrtShipperOrgInfoClientUpdate1.mjs → orders/resources/draft/client/requests/OrderDraftUpdateTaskReq.mjs} +0 -0
- /package/dist/esm/api/resources/orders/{client/requests/CreateOrderReq.mjs → resources/draft/client/requests/OrdersDraftUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/orders/{client/requests/OrdersExpandedReq.mjs → resources/draft/client/requests/OrdersNewDraftReq.mjs} +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo → orders/resources/draft}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestones → orders/resources/draft}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones → orders/resources/draft}/index.mjs +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images → orders/resources/draft/resources/expanded}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones/resources/images → orders/resources/draft/resources/expanded}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.mjs → orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedListReq.mjs} +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.mjs → orders/resources/draft/resources/expanded/client/requests/OrderDraftExpandedReq.mjs} +0 -0
- /package/dist/esm/api/resources/orders/{client → resources/draft/resources/expanded/client}/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/orders/resources/{full → draft/resources/expanded}/index.d.mts +0 -0
- /package/dist/esm/api/resources/orders/resources/{full → draft/resources/expanded}/index.mjs +0 -0
- /package/dist/esm/api/resources/orders/resources/{full/client/index.mjs → expanded/client/index.d.mts} +0 -0
- /package/dist/esm/api/resources/{taskGroups/resources/full → orders/resources/expanded}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{taskGroups/resources/full → orders/resources/expanded}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{taskGroups/resources/full → orders/resources/expanded}/index.mjs +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo → orders/resources/expandedList}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{offChrtShipperOrgInfo → orders/resources/expandedList}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.mjs → orders/resources/expandedList/client/requests/ExpandedListPostOrderCreatorExpandedListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/{orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.mjs → orders/resources/expandedList/client/requests/ExpandedListPostShipperExpandedListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/{orgProfiles/client/requests/CourierOrgProfileClientCreate3.mjs → orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{orgProfiles/client/requests/CourierOrgProfileClientUpdate3.mjs → orgConnectionInfos/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.mjs → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{taskGroups/client/requests/TaskGroupExpandedForCourierAdministratorReq.mjs → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{taskGroups/client/requests/TaskGroupExpandedForCourierDriverReq.mjs → orgProfiles/client/requests/CourierOrgProfileClientCreate1.mjs} +0 -0
- /package/dist/esm/api/{types/CourierOrgConnectionInfo1.mjs → resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/CourierOrgProfile3.mjs → resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.mjs} +0 -0
- /package/dist/esm/api/{types/CourierPayDriverPayout1.mjs → resources/orgProfiles/client/requests/ForwarderOrgProfileClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/CreateOrderRes.mjs → resources/shipperContactInfo/client/requests/ShipperContactClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/Expense1.mjs → resources/shipperPayCourierStatements/client/requests/ListStatementsByCourierReq.mjs} +0 -0
- /package/dist/esm/api/{types/GetOrderFullRes.mjs → resources/shipperPayCourierStatements/client/requests/ListStatementsByShipperReq.mjs} +0 -0
- /package/dist/esm/api/{types/GetOrderRes.mjs → resources/taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.mjs} +0 -0
- /package/dist/esm/api/{types/Milestone1.mjs → resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.mjs} +0 -0
- /package/dist/esm/api/{types/MilestoneClientCreate1.mjs → resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.mjs} +0 -0
- /package/dist/esm/api/{types/MilestoneNotificationPreferences1.mjs → resources/taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.mjs} +0 -0
- /package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/index.d.mts +0 -0
- /package/dist/esm/api/resources/{milestones → taskArtifacts}/resources/index.mjs +0 -0
- /package/dist/esm/api/{types/MultipleTaskGroupsDetailsResponse.mjs → resources/taskGroups/resources/expanded/client/requests/TaskGroupExpandedForShipperReq.mjs} +0 -0
- /package/dist/esm/api/{types/MultipleTaskGroupsWithTasks.mjs → resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierAdministratorV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/OffChrtShipperOrgInfo1.mjs → resources/taskGroups/resources/expandedList/client/requests/ExpandedListForCourierDriverV1Request.mjs} +0 -0
- /package/dist/esm/api/types/{OrderClientCreate1.mjs → CargoClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/types/{OrderExpanded.mjs → CourierConnectionRes.mjs} +0 -0
- /package/dist/esm/api/types/{OrdersExpandedRes.mjs → CourierOrgInfoForConnections1.mjs} +0 -0
- /package/dist/esm/api/types/{OrgPublicData2.mjs → CourierOrgProfile1.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperContactInfo1.mjs → CourierPayDriverStatement1.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperContactInfoClientCreate1.mjs → CourierPayDriverStatementClientCreate1.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperOrgConnectionInfo1.mjs → CourierPayDriverStatementClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperPayCourierPayment1.mjs → CreateConnectionReq.mjs} +0 -0
- /package/dist/esm/api/types/{StripeConnectAccountEvent.mjs → CreateShipperPayCourierStatementReq.mjs} +0 -0
- /package/dist/esm/api/types/{TaskCreateBundle.mjs → ForwarderConnectionRes.mjs} +0 -0
- /package/dist/esm/api/types/{TaskGroupDetailsResponse.mjs → ForwarderOrgInfoForConnections1.mjs} +0 -0
- /package/dist/esm/api/types/{TaskGroupExpanded.mjs → ForwarderOrgProfile1.mjs} +0 -0
- /package/dist/esm/api/types/{TaskGroupWithDetails.mjs → GetShipperPayCourierStatementsForShipperRes.mjs} +0 -0
- /package/dist/esm/api/types/{TaskGroupWithTasks.mjs → OffChrtShipperOrg1.mjs} +0 -0
- /package/dist/esm/api/types/{TaskWithDetails.mjs → OrderDraftExpandedListRes.mjs} +0 -0
- /package/dist/esm/api/types/{UpdateTaskGroupRes.mjs → OrderDraftExpandedRes.mjs} +0 -0
|
@@ -56,33 +56,25 @@ class Payments {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Creates a Stripe
|
|
59
|
+
* Creates a Stripe Connect account for the organization to receive payments. Idempotent - returns existing account if already created.
|
|
60
60
|
*
|
|
61
|
-
* @param {Chrt.CreateCheckoutSessionReq} request
|
|
62
61
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
62
|
*
|
|
64
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
-
*
|
|
66
63
|
* @example
|
|
67
|
-
* await client.payments.
|
|
68
|
-
* price_name: "courier_ops_100_usd_per_month"
|
|
69
|
-
* })
|
|
64
|
+
* await client.payments.createConnectAccountV1()
|
|
70
65
|
*/
|
|
71
|
-
|
|
72
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
66
|
+
createConnectAccountV1(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__createConnectAccountV1(requestOptions));
|
|
73
68
|
}
|
|
74
|
-
|
|
69
|
+
__createConnectAccountV1(requestOptions) {
|
|
75
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
71
|
var _a, _b, _c, _d;
|
|
77
72
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
78
73
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
79
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "
|
|
74
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "create-connect-account/v1"),
|
|
80
75
|
method: "POST",
|
|
81
76
|
headers: _headers,
|
|
82
|
-
contentType: "application/json",
|
|
83
77
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
84
|
-
requestType: "json",
|
|
85
|
-
body: request,
|
|
86
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
87
79
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
88
80
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -91,16 +83,11 @@ class Payments {
|
|
|
91
83
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
92
84
|
}
|
|
93
85
|
if (_response.error.reason === "status-code") {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
statusCode: _response.error.statusCode,
|
|
100
|
-
body: _response.error.body,
|
|
101
|
-
rawResponse: _response.rawResponse,
|
|
102
|
-
});
|
|
103
|
-
}
|
|
86
|
+
throw new errors.ChrtError({
|
|
87
|
+
statusCode: _response.error.statusCode,
|
|
88
|
+
body: _response.error.body,
|
|
89
|
+
rawResponse: _response.rawResponse,
|
|
90
|
+
});
|
|
104
91
|
}
|
|
105
92
|
switch (_response.error.reason) {
|
|
106
93
|
case "non-json":
|
|
@@ -110,7 +97,7 @@ class Payments {
|
|
|
110
97
|
rawResponse: _response.rawResponse,
|
|
111
98
|
});
|
|
112
99
|
case "timeout":
|
|
113
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /
|
|
100
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /create-connect-account/v1.");
|
|
114
101
|
case "unknown":
|
|
115
102
|
throw new errors.ChrtError({
|
|
116
103
|
message: _response.error.errorMessage,
|
|
@@ -120,23 +107,23 @@ class Payments {
|
|
|
120
107
|
});
|
|
121
108
|
}
|
|
122
109
|
/**
|
|
123
|
-
*
|
|
110
|
+
* Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup.
|
|
124
111
|
*
|
|
125
112
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
126
113
|
*
|
|
127
114
|
* @example
|
|
128
|
-
* await client.payments.
|
|
115
|
+
* await client.payments.createConnectAccountLinkV1()
|
|
129
116
|
*/
|
|
130
|
-
|
|
131
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
117
|
+
createConnectAccountLinkV1(requestOptions) {
|
|
118
|
+
return core.HttpResponsePromise.fromPromise(this.__createConnectAccountLinkV1(requestOptions));
|
|
132
119
|
}
|
|
133
|
-
|
|
120
|
+
__createConnectAccountLinkV1(requestOptions) {
|
|
134
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
122
|
var _a, _b, _c, _d;
|
|
136
123
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
137
124
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
138
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "
|
|
139
|
-
method: "
|
|
125
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "create-connect-account-link/v1"),
|
|
126
|
+
method: "POST",
|
|
140
127
|
headers: _headers,
|
|
141
128
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
142
129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -161,7 +148,7 @@ class Payments {
|
|
|
161
148
|
rawResponse: _response.rawResponse,
|
|
162
149
|
});
|
|
163
150
|
case "timeout":
|
|
164
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
151
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /create-connect-account-link/v1.");
|
|
165
152
|
case "unknown":
|
|
166
153
|
throw new errors.ChrtError({
|
|
167
154
|
message: _response.error.errorMessage,
|
|
@@ -171,25 +158,33 @@ class Payments {
|
|
|
171
158
|
});
|
|
172
159
|
}
|
|
173
160
|
/**
|
|
174
|
-
*
|
|
161
|
+
* Generates and sends a Stripe invoice for a shipper statement to a courier organization's Connect account. Applies a 10% application fee.
|
|
175
162
|
*
|
|
163
|
+
* @param {Chrt.GenerateInvoiceReq} request
|
|
176
164
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
177
165
|
*
|
|
166
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
167
|
+
*
|
|
178
168
|
* @example
|
|
179
|
-
* await client.payments.
|
|
169
|
+
* await client.payments.generateInvoiceV1({
|
|
170
|
+
* shipper_pay_courier_statement_id: "shipper_pay_courier_statement_id"
|
|
171
|
+
* })
|
|
180
172
|
*/
|
|
181
|
-
|
|
182
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
173
|
+
generateInvoiceV1(request, requestOptions) {
|
|
174
|
+
return core.HttpResponsePromise.fromPromise(this.__generateInvoiceV1(request, requestOptions));
|
|
183
175
|
}
|
|
184
|
-
|
|
176
|
+
__generateInvoiceV1(request, requestOptions) {
|
|
185
177
|
return __awaiter(this, void 0, void 0, function* () {
|
|
186
178
|
var _a, _b, _c, _d;
|
|
187
179
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
188
180
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
189
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "
|
|
181
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "generate-invoice/v1"),
|
|
190
182
|
method: "POST",
|
|
191
183
|
headers: _headers,
|
|
184
|
+
contentType: "application/json",
|
|
192
185
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
186
|
+
requestType: "json",
|
|
187
|
+
body: request,
|
|
193
188
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
194
189
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
195
190
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -198,11 +193,16 @@ class Payments {
|
|
|
198
193
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
199
194
|
}
|
|
200
195
|
if (_response.error.reason === "status-code") {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
196
|
+
switch (_response.error.statusCode) {
|
|
197
|
+
case 422:
|
|
198
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
199
|
+
default:
|
|
200
|
+
throw new errors.ChrtError({
|
|
201
|
+
statusCode: _response.error.statusCode,
|
|
202
|
+
body: _response.error.body,
|
|
203
|
+
rawResponse: _response.rawResponse,
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
206
|
}
|
|
207
207
|
switch (_response.error.reason) {
|
|
208
208
|
case "non-json":
|
|
@@ -212,7 +212,7 @@ class Payments {
|
|
|
212
212
|
rawResponse: _response.rawResponse,
|
|
213
213
|
});
|
|
214
214
|
case "timeout":
|
|
215
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /
|
|
215
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /generate-invoice/v1.");
|
|
216
216
|
case "unknown":
|
|
217
217
|
throw new errors.ChrtError({
|
|
218
218
|
message: _response.error.errorMessage,
|
|
@@ -222,25 +222,33 @@ class Payments {
|
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
|
-
* Creates
|
|
225
|
+
* Creates a Stripe checkout session for a subscription with pricing based on the selected plan.
|
|
226
226
|
*
|
|
227
|
+
* @param {Chrt.CreateCheckoutSessionReq} request
|
|
227
228
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
228
229
|
*
|
|
230
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
231
|
+
*
|
|
229
232
|
* @example
|
|
230
|
-
* await client.payments.
|
|
233
|
+
* await client.payments.createCheckoutSessionV1({
|
|
234
|
+
* price_name: "courier_ops_100_usd_per_month"
|
|
235
|
+
* })
|
|
231
236
|
*/
|
|
232
|
-
|
|
233
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
237
|
+
createCheckoutSessionV1(request, requestOptions) {
|
|
238
|
+
return core.HttpResponsePromise.fromPromise(this.__createCheckoutSessionV1(request, requestOptions));
|
|
234
239
|
}
|
|
235
|
-
|
|
240
|
+
__createCheckoutSessionV1(request, requestOptions) {
|
|
236
241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
237
242
|
var _a, _b, _c, _d;
|
|
238
243
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
239
244
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
240
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "
|
|
245
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "create-checkout-session/v1"),
|
|
241
246
|
method: "POST",
|
|
242
247
|
headers: _headers,
|
|
248
|
+
contentType: "application/json",
|
|
243
249
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
250
|
+
requestType: "json",
|
|
251
|
+
body: request,
|
|
244
252
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
245
253
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
246
254
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -249,11 +257,16 @@ class Payments {
|
|
|
249
257
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
250
258
|
}
|
|
251
259
|
if (_response.error.reason === "status-code") {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
260
|
+
switch (_response.error.statusCode) {
|
|
261
|
+
case 422:
|
|
262
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
263
|
+
default:
|
|
264
|
+
throw new errors.ChrtError({
|
|
265
|
+
statusCode: _response.error.statusCode,
|
|
266
|
+
body: _response.error.body,
|
|
267
|
+
rawResponse: _response.rawResponse,
|
|
268
|
+
});
|
|
269
|
+
}
|
|
257
270
|
}
|
|
258
271
|
switch (_response.error.reason) {
|
|
259
272
|
case "non-json":
|
|
@@ -263,7 +276,7 @@ class Payments {
|
|
|
263
276
|
rawResponse: _response.rawResponse,
|
|
264
277
|
});
|
|
265
278
|
case "timeout":
|
|
266
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /
|
|
279
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /create-checkout-session/v1.");
|
|
267
280
|
case "unknown":
|
|
268
281
|
throw new errors.ChrtError({
|
|
269
282
|
message: _response.error.errorMessage,
|
|
@@ -273,33 +286,25 @@ class Payments {
|
|
|
273
286
|
});
|
|
274
287
|
}
|
|
275
288
|
/**
|
|
276
|
-
*
|
|
289
|
+
* Synchronizes subscription data from Stripe to the authentication service for the current user.
|
|
277
290
|
*
|
|
278
|
-
* @param {Chrt.GenerateInvoiceReq} request
|
|
279
291
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
280
292
|
*
|
|
281
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
282
|
-
*
|
|
283
293
|
* @example
|
|
284
|
-
* await client.payments.
|
|
285
|
-
* shipper_pay_courier_payment_id: "shipper_pay_courier_payment_id"
|
|
286
|
-
* })
|
|
294
|
+
* await client.payments.syncStripeToClerkV1()
|
|
287
295
|
*/
|
|
288
|
-
|
|
289
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
296
|
+
syncStripeToClerkV1(requestOptions) {
|
|
297
|
+
return core.HttpResponsePromise.fromPromise(this.__syncStripeToClerkV1(requestOptions));
|
|
290
298
|
}
|
|
291
|
-
|
|
299
|
+
__syncStripeToClerkV1(requestOptions) {
|
|
292
300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
293
301
|
var _a, _b, _c, _d;
|
|
294
302
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
295
303
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
296
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "
|
|
297
|
-
method: "
|
|
304
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "sync_stripe_to_clerk/v1"),
|
|
305
|
+
method: "GET",
|
|
298
306
|
headers: _headers,
|
|
299
|
-
contentType: "application/json",
|
|
300
307
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
301
|
-
requestType: "json",
|
|
302
|
-
body: request,
|
|
303
308
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
304
309
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
305
310
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -308,16 +313,11 @@ class Payments {
|
|
|
308
313
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
309
314
|
}
|
|
310
315
|
if (_response.error.reason === "status-code") {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
statusCode: _response.error.statusCode,
|
|
317
|
-
body: _response.error.body,
|
|
318
|
-
rawResponse: _response.rawResponse,
|
|
319
|
-
});
|
|
320
|
-
}
|
|
316
|
+
throw new errors.ChrtError({
|
|
317
|
+
statusCode: _response.error.statusCode,
|
|
318
|
+
body: _response.error.body,
|
|
319
|
+
rawResponse: _response.rawResponse,
|
|
320
|
+
});
|
|
321
321
|
}
|
|
322
322
|
switch (_response.error.reason) {
|
|
323
323
|
case "non-json":
|
|
@@ -327,7 +327,7 @@ class Payments {
|
|
|
327
327
|
rawResponse: _response.rawResponse,
|
|
328
328
|
});
|
|
329
329
|
case "timeout":
|
|
330
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
330
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /sync_stripe_to_clerk/v1.");
|
|
331
331
|
case "unknown":
|
|
332
332
|
throw new errors.ChrtError({
|
|
333
333
|
message: _response.error.errorMessage,
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
7
|
+
* shipper_pay_courier_statement_id: "shipper_pay_courier_statement_id"
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface GenerateInvoiceReq {
|
|
11
|
-
|
|
11
|
+
shipper_pay_courier_statement_id: string;
|
|
12
12
|
days_until_due?: number;
|
|
13
13
|
description?: string;
|
|
14
14
|
}
|
|
@@ -38,7 +38,7 @@ export declare class ShipperContactInfo {
|
|
|
38
38
|
* @example
|
|
39
39
|
* await client.shipperContactInfo.getByJwtUserIdV1()
|
|
40
40
|
*/
|
|
41
|
-
getByJwtUserIdV1(requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
41
|
+
getByJwtUserIdV1(requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1>;
|
|
42
42
|
private __getByJwtUserIdV1;
|
|
43
43
|
/**
|
|
44
44
|
* Lists all shipper contacts created by the authenticated organization.
|
|
@@ -48,7 +48,7 @@ export declare class ShipperContactInfo {
|
|
|
48
48
|
* @example
|
|
49
49
|
* await client.shipperContactInfo.listByJwtOrgIdV1()
|
|
50
50
|
*/
|
|
51
|
-
listByJwtOrgIdV1(requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
51
|
+
listByJwtOrgIdV1(requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1[]>;
|
|
52
52
|
private __listByJwtOrgIdV1;
|
|
53
53
|
/**
|
|
54
54
|
* Lists all shipper contacts accessible to the courier organization for a specific on-platform shipper.
|
|
@@ -61,21 +61,21 @@ export declare class ShipperContactInfo {
|
|
|
61
61
|
* @example
|
|
62
62
|
* await client.shipperContactInfo.listCourierContactsByShipperOrgIdV1("shipper_org_id")
|
|
63
63
|
*/
|
|
64
|
-
listCourierContactsByShipperOrgIdV1(shipperOrgId: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
64
|
+
listCourierContactsByShipperOrgIdV1(shipperOrgId: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1[]>;
|
|
65
65
|
private __listCourierContactsByShipperOrgIdV1;
|
|
66
66
|
/**
|
|
67
67
|
* Lists all shipper contacts for a specific off-platform shipper connection.
|
|
68
68
|
*
|
|
69
|
-
* @param {string}
|
|
69
|
+
* @param {string} offChrtShipperOrgId
|
|
70
70
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
|
-
* await client.shipperContactInfo.
|
|
75
|
+
* await client.shipperContactInfo.listByOffChrtShipperOrgIdV1("off_chrt_shipper_org_id")
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
private
|
|
77
|
+
listByOffChrtShipperOrgIdV1(offChrtShipperOrgId: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1[]>;
|
|
78
|
+
private __listByOffChrtShipperOrgIdV1;
|
|
79
79
|
/**
|
|
80
80
|
* Retrieves a specific shipper contact by ID if authorized to access it.
|
|
81
81
|
*
|
|
@@ -87,12 +87,12 @@ export declare class ShipperContactInfo {
|
|
|
87
87
|
* @example
|
|
88
88
|
* await client.shipperContactInfo.getByIdV1("id")
|
|
89
89
|
*/
|
|
90
|
-
getByIdV1(id: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
90
|
+
getByIdV1(id: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContact1>;
|
|
91
91
|
private __getByIdV1;
|
|
92
92
|
/**
|
|
93
93
|
* Creates contact information for an on-platform shipper organization or user.
|
|
94
94
|
*
|
|
95
|
-
* @param {Chrt.
|
|
95
|
+
* @param {Chrt.ShipperContactClientCreate1} request
|
|
96
96
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
97
|
*
|
|
98
98
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -102,12 +102,12 @@ export declare class ShipperContactInfo {
|
|
|
102
102
|
* schema_version: 1
|
|
103
103
|
* })
|
|
104
104
|
*/
|
|
105
|
-
createOnPlatformV1(request: Chrt.
|
|
105
|
+
createOnPlatformV1(request: Chrt.ShipperContactClientCreate1, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<string>;
|
|
106
106
|
private __createOnPlatformV1;
|
|
107
107
|
/**
|
|
108
108
|
* Creates contact information for an off-platform shipper using connection info.
|
|
109
109
|
*
|
|
110
|
-
* @param {Chrt.
|
|
110
|
+
* @param {Chrt.ShipperContactClientCreate1} request
|
|
111
111
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
112
|
*
|
|
113
113
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -117,13 +117,13 @@ export declare class ShipperContactInfo {
|
|
|
117
117
|
* schema_version: 1
|
|
118
118
|
* })
|
|
119
119
|
*/
|
|
120
|
-
createOffPlatformV1(request: Chrt.
|
|
120
|
+
createOffPlatformV1(request: Chrt.ShipperContactClientCreate1, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<string>;
|
|
121
121
|
private __createOffPlatformV1;
|
|
122
122
|
/**
|
|
123
123
|
* Updates existing shipper contact information owned by the authenticated organization.
|
|
124
124
|
*
|
|
125
125
|
* @param {string} shipperContactInfoId
|
|
126
|
-
* @param {Chrt.
|
|
126
|
+
* @param {Chrt.ShipperContactClientUpdate1} request
|
|
127
127
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
128
|
*
|
|
129
129
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -131,7 +131,7 @@ export declare class ShipperContactInfo {
|
|
|
131
131
|
* @example
|
|
132
132
|
* await client.shipperContactInfo.updateV1("shipper_contact_info_id")
|
|
133
133
|
*/
|
|
134
|
-
updateV1(shipperContactInfoId: string, request?: Chrt.
|
|
134
|
+
updateV1(shipperContactInfoId: string, request?: Chrt.ShipperContactClientUpdate1, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
135
135
|
private __updateV1;
|
|
136
136
|
/**
|
|
137
137
|
* Deletes shipper contact information owned by the authenticated organization.
|
|
@@ -219,23 +219,23 @@ class ShipperContactInfo {
|
|
|
219
219
|
/**
|
|
220
220
|
* Lists all shipper contacts for a specific off-platform shipper connection.
|
|
221
221
|
*
|
|
222
|
-
* @param {string}
|
|
222
|
+
* @param {string} offChrtShipperOrgId
|
|
223
223
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
224
224
|
*
|
|
225
225
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
226
226
|
*
|
|
227
227
|
* @example
|
|
228
|
-
* await client.shipperContactInfo.
|
|
228
|
+
* await client.shipperContactInfo.listByOffChrtShipperOrgIdV1("off_chrt_shipper_org_id")
|
|
229
229
|
*/
|
|
230
|
-
|
|
231
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
230
|
+
listByOffChrtShipperOrgIdV1(offChrtShipperOrgId, requestOptions) {
|
|
231
|
+
return core.HttpResponsePromise.fromPromise(this.__listByOffChrtShipperOrgIdV1(offChrtShipperOrgId, requestOptions));
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
__listByOffChrtShipperOrgIdV1(offChrtShipperOrgId, requestOptions) {
|
|
234
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
235
|
var _a, _b, _c, _d;
|
|
236
236
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
237
237
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
238
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/list/v1/${encodeURIComponent(
|
|
238
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/list/v1/${encodeURIComponent(offChrtShipperOrgId)}`),
|
|
239
239
|
method: "GET",
|
|
240
240
|
headers: _headers,
|
|
241
241
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -266,7 +266,7 @@ class ShipperContactInfo {
|
|
|
266
266
|
rawResponse: _response.rawResponse,
|
|
267
267
|
});
|
|
268
268
|
case "timeout":
|
|
269
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/v1/{
|
|
269
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/v1/{off_chrt_shipper_org_id}.");
|
|
270
270
|
case "unknown":
|
|
271
271
|
throw new errors.ChrtError({
|
|
272
272
|
message: _response.error.errorMessage,
|
|
@@ -337,7 +337,7 @@ class ShipperContactInfo {
|
|
|
337
337
|
/**
|
|
338
338
|
* Creates contact information for an on-platform shipper organization or user.
|
|
339
339
|
*
|
|
340
|
-
* @param {Chrt.
|
|
340
|
+
* @param {Chrt.ShipperContactClientCreate1} request
|
|
341
341
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
342
342
|
*
|
|
343
343
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -401,7 +401,7 @@ class ShipperContactInfo {
|
|
|
401
401
|
/**
|
|
402
402
|
* Creates contact information for an off-platform shipper using connection info.
|
|
403
403
|
*
|
|
404
|
-
* @param {Chrt.
|
|
404
|
+
* @param {Chrt.ShipperContactClientCreate1} request
|
|
405
405
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
406
406
|
*
|
|
407
407
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -466,7 +466,7 @@ class ShipperContactInfo {
|
|
|
466
466
|
* Updates existing shipper contact information owned by the authenticated organization.
|
|
467
467
|
*
|
|
468
468
|
* @param {string} shipperContactInfoId
|
|
469
|
-
* @param {Chrt.
|
|
469
|
+
* @param {Chrt.ShipperContactClientUpdate1} request
|
|
470
470
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
471
471
|
*
|
|
472
472
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -6,7 +6,7 @@ import * as Chrt from "../../../../index.js";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface ShipperContactClientUpdate1 {
|
|
10
10
|
company_name?: string | null;
|
|
11
11
|
industry?: string | null;
|
|
12
12
|
street_address?: Chrt.LocationFeature | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type ShipperContactClientUpdate1 } from "./ShipperContactClientUpdate1.js";
|
|
@@ -41,7 +41,7 @@ export declare class ShipperPayCourierPayments {
|
|
|
41
41
|
* @example
|
|
42
42
|
* await client.shipperPayCourierPayments.getByIdV1("shipper_pay_courier_payment_id")
|
|
43
43
|
*/
|
|
44
|
-
getByIdV1(shipperPayCourierPaymentId: string, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
44
|
+
getByIdV1(shipperPayCourierPaymentId: string, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierStatement1>;
|
|
45
45
|
private __getByIdV1;
|
|
46
46
|
/**
|
|
47
47
|
* Deletes a shipper-to-courier payment record if invoice not yet created.
|
|
@@ -67,7 +67,7 @@ export declare class ShipperPayCourierPayments {
|
|
|
67
67
|
* @example
|
|
68
68
|
* await client.shipperPayCourierPayments.getByOrderIdOrShortIdV1("order_id_or_short_id")
|
|
69
69
|
*/
|
|
70
|
-
getByOrderIdOrShortIdV1(orderIdOrShortId: string, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
70
|
+
getByOrderIdOrShortIdV1(orderIdOrShortId: string, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierStatement1>;
|
|
71
71
|
private __getByOrderIdOrShortIdV1;
|
|
72
72
|
/**
|
|
73
73
|
* Lists shipper pay courier payments by shipper org ID with status filtering and Stripe sync.
|
|
@@ -12,5 +12,5 @@ export interface ListPaymentsByCourierReq {
|
|
|
12
12
|
statuses: Chrt.StripeConnectInvoiceStatusEnum[];
|
|
13
13
|
/** Must be a string starting with `org_` */
|
|
14
14
|
shipper_org_id?: string | null;
|
|
15
|
-
|
|
15
|
+
off_chrt_shipper_org_id?: string | null;
|
|
16
16
|
}
|
|
@@ -29,7 +29,7 @@ export interface ShipperPayCourierRateSheetClientCreate1 {
|
|
|
29
29
|
route_types?: Chrt.RouteTypeEnum1[] | null;
|
|
30
30
|
/** Must be a string starting with `org_` */
|
|
31
31
|
shipper_org_id?: string | null;
|
|
32
|
-
|
|
32
|
+
off_chrt_shipper_org_id?: string | null;
|
|
33
33
|
comments?: string | null;
|
|
34
34
|
base_mileage_distance_miles: number;
|
|
35
35
|
base_mileage_rate_usd_per_instance: number;
|
|
@@ -13,7 +13,7 @@ export interface ShipperPayCourierRateSheetClientUpdate1 {
|
|
|
13
13
|
route_types?: Chrt.RouteTypeEnum1[] | null;
|
|
14
14
|
/** Must be a string starting with `org_` */
|
|
15
15
|
shipper_org_id?: string | null;
|
|
16
|
-
|
|
16
|
+
off_chrt_shipper_org_id?: string | null;
|
|
17
17
|
comments?: string | null;
|
|
18
18
|
base_mileage_distance_miles?: number | null;
|
|
19
19
|
base_mileage_rate_usd_per_instance?: number | null;
|