@chrt-inc/typescript-sdk 1.935.0 → 1.949.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/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/shippingIntegrations/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/shippingIntegrations/client/Client.js +22 -12
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.ts +0 -16
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.js +0 -71
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/Client.d.ts +26 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/Client.js +22 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/index.js +18 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.d.ts +119 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.js +430 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.d.ts +26 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.d.ts +15 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/index.js +43 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.ts +104 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.js +371 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.d.ts +15 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.d.ts +48 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/index.js +3 -1
- package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.d.ts +44 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.js +121 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.d.ts +35 -2
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.js +152 -4
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.d.ts +54 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.ts +6 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.ts +6 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.ts +0 -16
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.js +0 -71
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/EcourierCredsLimited1.d.ts +29 -0
- package/dist/cjs/api/types/EcourierCredsLimited1.js +5 -0
- package/dist/cjs/api/types/EcourierCredsListRes.d.ts +8 -0
- package/dist/cjs/api/types/EcourierCredsListRes.js +5 -0
- package/dist/cjs/api/types/EcourierCredsTestRes.d.ts +11 -0
- package/dist/cjs/api/types/EcourierCredsTestRes.js +5 -0
- package/dist/cjs/api/types/EcourierOrder1.d.ts +19 -0
- package/dist/cjs/api/types/EcourierOrder1.js +5 -0
- package/dist/cjs/api/types/EcourierOrderCustomerResponse1.d.ts +16 -0
- package/dist/cjs/api/types/EcourierOrderCustomerResponse1.js +5 -0
- package/dist/cjs/api/types/EcourierOrderListRes.d.ts +8 -0
- package/dist/cjs/api/types/EcourierOrderListRes.js +5 -0
- package/dist/cjs/api/types/EcourierOrderResponse1.d.ts +43 -0
- package/dist/cjs/api/types/EcourierOrderResponse1.js +5 -0
- package/dist/cjs/api/types/EcourierOrderSortByEnum.d.ts +10 -0
- package/dist/cjs/api/types/EcourierOrderSortByEnum.js +12 -0
- package/dist/cjs/api/types/EcourierOrderStopResponse1.d.ts +27 -0
- package/dist/cjs/api/types/EcourierOrderStopResponse1.js +5 -0
- package/dist/cjs/api/types/FraytWebhookResponse.d.ts +7 -0
- package/dist/cjs/api/types/FraytWebhookResponse.js +5 -0
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +6 -1
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +5 -0
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +6 -1
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +5 -0
- package/dist/cjs/api/types/OrgShippingIntegrationEnum1.d.ts +2 -1
- package/dist/cjs/api/types/OrgShippingIntegrationEnum1.js +1 -0
- package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutor.d.ts +17 -0
- package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutor.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutorListRes.d.ts +8 -0
- package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutorListRes.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.d.ts +8 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.js +10 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderExpanded1.d.ts +3 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderSortByEnum.d.ts +2 -1
- package/dist/cjs/api/types/ShippingIntegrationOrderSortByEnum.js +1 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChange1.d.ts +17 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChange1.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedReq.d.ts +12 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedReq.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedRes.d.ts +6 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedRes.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.d.ts +37 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.js +16 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.d.ts +5 -1
- package/dist/cjs/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/index.d.ts +17 -0
- package/dist/cjs/api/types/index.js +17 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/shippingIntegrations/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/shippingIntegrations/client/Client.mjs +10 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.mts +0 -16
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.mjs +0 -71
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/Client.d.mts +26 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/Client.mjs +18 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/index.mjs +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.d.mts +119 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.mjs +393 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.d.mts +26 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.d.mts +15 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/index.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.mts +104 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.mjs +334 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.d.mts +15 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.d.mts +48 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.d.mts +44 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.mjs +84 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.d.mts +35 -2
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.mjs +152 -4
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.d.mts +54 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.mts +6 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.mts +6 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.mts +0 -16
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.mjs +0 -71
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/EcourierCredsLimited1.d.mts +29 -0
- package/dist/esm/api/types/EcourierCredsLimited1.mjs +4 -0
- package/dist/esm/api/types/EcourierCredsListRes.d.mts +8 -0
- package/dist/esm/api/types/EcourierCredsListRes.mjs +4 -0
- package/dist/esm/api/types/EcourierCredsTestRes.d.mts +11 -0
- package/dist/esm/api/types/EcourierCredsTestRes.mjs +4 -0
- package/dist/esm/api/types/EcourierOrder1.d.mts +19 -0
- package/dist/esm/api/types/EcourierOrder1.mjs +4 -0
- package/dist/esm/api/types/EcourierOrderCustomerResponse1.d.mts +16 -0
- package/dist/esm/api/types/EcourierOrderCustomerResponse1.mjs +4 -0
- package/dist/esm/api/types/EcourierOrderListRes.d.mts +8 -0
- package/dist/esm/api/types/EcourierOrderListRes.mjs +4 -0
- package/dist/esm/api/types/EcourierOrderResponse1.d.mts +43 -0
- package/dist/esm/api/types/EcourierOrderResponse1.mjs +4 -0
- package/dist/esm/api/types/EcourierOrderSortByEnum.d.mts +10 -0
- package/dist/esm/api/types/EcourierOrderSortByEnum.mjs +9 -0
- package/dist/esm/api/types/EcourierOrderStopResponse1.d.mts +27 -0
- package/dist/esm/api/types/EcourierOrderStopResponse1.mjs +4 -0
- package/dist/esm/api/types/FraytWebhookResponse.d.mts +7 -0
- package/dist/esm/api/types/FraytWebhookResponse.mjs +4 -0
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +6 -1
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +5 -0
- package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +6 -1
- package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +5 -0
- package/dist/esm/api/types/OrgShippingIntegrationEnum1.d.mts +2 -1
- package/dist/esm/api/types/OrgShippingIntegrationEnum1.mjs +1 -0
- package/dist/esm/api/types/ShippingIntegrationIntegrationExecutor.d.mts +17 -0
- package/dist/esm/api/types/ShippingIntegrationIntegrationExecutor.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationIntegrationExecutorListRes.d.mts +8 -0
- package/dist/esm/api/types/ShippingIntegrationIntegrationExecutorListRes.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.d.mts +8 -0
- package/dist/esm/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.mjs +7 -0
- package/dist/esm/api/types/ShippingIntegrationOrderExpanded1.d.mts +3 -0
- package/dist/esm/api/types/ShippingIntegrationOrderSortByEnum.d.mts +2 -1
- package/dist/esm/api/types/ShippingIntegrationOrderSortByEnum.mjs +1 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChange1.d.mts +17 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChange1.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedReq.d.mts +12 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedReq.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedRes.d.mts +6 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedRes.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.d.mts +37 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.mjs +13 -0
- package/dist/esm/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.d.mts +5 -1
- package/dist/esm/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.mjs +4 -1
- package/dist/esm/api/types/index.d.mts +17 -0
- package/dist/esm/api/types/index.mjs +17 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +848 -162
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +0 -16
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +0 -16
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +0 -16
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +0 -16
- /package/dist/cjs/api/resources/shippingIntegrations/resources/{atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.js → ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/shippingIntegrations/resources/{xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.js → ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.js} +0 -0
- /package/dist/esm/api/resources/shippingIntegrations/resources/{atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs → ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/shippingIntegrations/resources/{xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs → ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -60,8 +60,8 @@ class ChrtClient {
|
|
|
60
60
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "1.
|
|
64
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
63
|
+
"X-Fern-SDK-Version": "1.949.0",
|
|
64
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.949.0",
|
|
65
65
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
66
66
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
67
67
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
6
|
import { Connections } from "../resources/connections/client/Client.js";
|
|
7
|
+
import { IntegrationExecutors } from "../resources/integrationExecutors/client/Client.js";
|
|
7
8
|
import { Orders } from "../resources/orders/client/Client.js";
|
|
8
9
|
import { Atlas } from "../resources/atlas/client/Client.js";
|
|
9
10
|
import { Cxt } from "../resources/cxt/client/Client.js";
|
|
10
11
|
import { DispatchScience } from "../resources/dispatchScience/client/Client.js";
|
|
12
|
+
import { Ecourier } from "../resources/ecourier/client/Client.js";
|
|
11
13
|
import { Ontime360 } from "../resources/ontime360/client/Client.js";
|
|
12
14
|
import { Xcelerator } from "../resources/xcelerator/client/Client.js";
|
|
13
15
|
export declare namespace ShippingIntegrations {
|
|
@@ -24,18 +26,22 @@ export declare namespace ShippingIntegrations {
|
|
|
24
26
|
export declare class ShippingIntegrations {
|
|
25
27
|
protected readonly _options: ShippingIntegrations.Options;
|
|
26
28
|
protected _connections: Connections | undefined;
|
|
29
|
+
protected _integrationExecutors: IntegrationExecutors | undefined;
|
|
27
30
|
protected _orders: Orders | undefined;
|
|
28
31
|
protected _atlas: Atlas | undefined;
|
|
29
32
|
protected _cxt: Cxt | undefined;
|
|
30
33
|
protected _dispatchScience: DispatchScience | undefined;
|
|
34
|
+
protected _ecourier: Ecourier | undefined;
|
|
31
35
|
protected _ontime360: Ontime360 | undefined;
|
|
32
36
|
protected _xcelerator: Xcelerator | undefined;
|
|
33
37
|
constructor(_options?: ShippingIntegrations.Options);
|
|
34
38
|
get connections(): Connections;
|
|
39
|
+
get integrationExecutors(): IntegrationExecutors;
|
|
35
40
|
get orders(): Orders;
|
|
36
41
|
get atlas(): Atlas;
|
|
37
42
|
get cxt(): Cxt;
|
|
38
43
|
get dispatchScience(): DispatchScience;
|
|
44
|
+
get ecourier(): Ecourier;
|
|
39
45
|
get ontime360(): Ontime360;
|
|
40
46
|
get xcelerator(): Xcelerator;
|
|
41
47
|
}
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ShippingIntegrations = void 0;
|
|
7
7
|
const Client_js_1 = require("../resources/connections/client/Client.js");
|
|
8
|
-
const Client_js_2 = require("../resources/
|
|
9
|
-
const Client_js_3 = require("../resources/
|
|
10
|
-
const Client_js_4 = require("../resources/
|
|
11
|
-
const Client_js_5 = require("../resources/
|
|
12
|
-
const Client_js_6 = require("../resources/
|
|
13
|
-
const Client_js_7 = require("../resources/
|
|
8
|
+
const Client_js_2 = require("../resources/integrationExecutors/client/Client.js");
|
|
9
|
+
const Client_js_3 = require("../resources/orders/client/Client.js");
|
|
10
|
+
const Client_js_4 = require("../resources/atlas/client/Client.js");
|
|
11
|
+
const Client_js_5 = require("../resources/cxt/client/Client.js");
|
|
12
|
+
const Client_js_6 = require("../resources/dispatchScience/client/Client.js");
|
|
13
|
+
const Client_js_7 = require("../resources/ecourier/client/Client.js");
|
|
14
|
+
const Client_js_8 = require("../resources/ontime360/client/Client.js");
|
|
15
|
+
const Client_js_9 = require("../resources/xcelerator/client/Client.js");
|
|
14
16
|
class ShippingIntegrations {
|
|
15
17
|
constructor(_options = {}) {
|
|
16
18
|
this._options = _options;
|
|
@@ -19,29 +21,37 @@ class ShippingIntegrations {
|
|
|
19
21
|
var _a;
|
|
20
22
|
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_1.Connections(this._options)));
|
|
21
23
|
}
|
|
24
|
+
get integrationExecutors() {
|
|
25
|
+
var _a;
|
|
26
|
+
return ((_a = this._integrationExecutors) !== null && _a !== void 0 ? _a : (this._integrationExecutors = new Client_js_2.IntegrationExecutors(this._options)));
|
|
27
|
+
}
|
|
22
28
|
get orders() {
|
|
23
29
|
var _a;
|
|
24
|
-
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new
|
|
30
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_3.Orders(this._options)));
|
|
25
31
|
}
|
|
26
32
|
get atlas() {
|
|
27
33
|
var _a;
|
|
28
|
-
return ((_a = this._atlas) !== null && _a !== void 0 ? _a : (this._atlas = new
|
|
34
|
+
return ((_a = this._atlas) !== null && _a !== void 0 ? _a : (this._atlas = new Client_js_4.Atlas(this._options)));
|
|
29
35
|
}
|
|
30
36
|
get cxt() {
|
|
31
37
|
var _a;
|
|
32
|
-
return ((_a = this._cxt) !== null && _a !== void 0 ? _a : (this._cxt = new
|
|
38
|
+
return ((_a = this._cxt) !== null && _a !== void 0 ? _a : (this._cxt = new Client_js_5.Cxt(this._options)));
|
|
33
39
|
}
|
|
34
40
|
get dispatchScience() {
|
|
35
41
|
var _a;
|
|
36
|
-
return ((_a = this._dispatchScience) !== null && _a !== void 0 ? _a : (this._dispatchScience = new
|
|
42
|
+
return ((_a = this._dispatchScience) !== null && _a !== void 0 ? _a : (this._dispatchScience = new Client_js_6.DispatchScience(this._options)));
|
|
43
|
+
}
|
|
44
|
+
get ecourier() {
|
|
45
|
+
var _a;
|
|
46
|
+
return ((_a = this._ecourier) !== null && _a !== void 0 ? _a : (this._ecourier = new Client_js_7.Ecourier(this._options)));
|
|
37
47
|
}
|
|
38
48
|
get ontime360() {
|
|
39
49
|
var _a;
|
|
40
|
-
return ((_a = this._ontime360) !== null && _a !== void 0 ? _a : (this._ontime360 = new
|
|
50
|
+
return ((_a = this._ontime360) !== null && _a !== void 0 ? _a : (this._ontime360 = new Client_js_8.Ontime360(this._options)));
|
|
41
51
|
}
|
|
42
52
|
get xcelerator() {
|
|
43
53
|
var _a;
|
|
44
|
-
return ((_a = this._xcelerator) !== null && _a !== void 0 ? _a : (this._xcelerator = new
|
|
54
|
+
return ((_a = this._xcelerator) !== null && _a !== void 0 ? _a : (this._xcelerator = new Client_js_9.Xcelerator(this._options)));
|
|
45
55
|
}
|
|
46
56
|
}
|
|
47
57
|
exports.ShippingIntegrations = ShippingIntegrations;
|
|
@@ -100,21 +100,5 @@ export declare class Orders {
|
|
|
100
100
|
*/
|
|
101
101
|
syncOneV1(request: Chrt.shippingIntegrations.atlas.AtlasOrderSyncOneReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.AtlasOrder1>;
|
|
102
102
|
private __syncOneV1;
|
|
103
|
-
/**
|
|
104
|
-
* Returns distinct Atlas integration order IDs matching the query via case-insensitive regex within the caller's organization. | authz: caller's organization scope | () -> (list[ShippingIntegrationOrderTypeaheadResult])
|
|
105
|
-
*
|
|
106
|
-
* @param {Chrt.shippingIntegrations.atlas.OrdersTypeaheadV1Request} request
|
|
107
|
-
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
|
-
*
|
|
109
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* await client.shippingIntegrations.atlas.orders.typeaheadV1({
|
|
113
|
-
* query: "query",
|
|
114
|
-
* limit: 1
|
|
115
|
-
* })
|
|
116
|
-
*/
|
|
117
|
-
typeaheadV1(request: Chrt.shippingIntegrations.atlas.OrdersTypeaheadV1Request, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.ShippingIntegrationOrderTypeaheadResult[]>;
|
|
118
|
-
private __typeaheadV1;
|
|
119
103
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
120
104
|
}
|
|
@@ -358,77 +358,6 @@ class Orders {
|
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
|
-
/**
|
|
362
|
-
* Returns distinct Atlas integration order IDs matching the query via case-insensitive regex within the caller's organization. | authz: caller's organization scope | () -> (list[ShippingIntegrationOrderTypeaheadResult])
|
|
363
|
-
*
|
|
364
|
-
* @param {Chrt.shippingIntegrations.atlas.OrdersTypeaheadV1Request} request
|
|
365
|
-
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
366
|
-
*
|
|
367
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
368
|
-
*
|
|
369
|
-
* @example
|
|
370
|
-
* await client.shippingIntegrations.atlas.orders.typeaheadV1({
|
|
371
|
-
* query: "query",
|
|
372
|
-
* limit: 1
|
|
373
|
-
* })
|
|
374
|
-
*/
|
|
375
|
-
typeaheadV1(request, requestOptions) {
|
|
376
|
-
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
377
|
-
}
|
|
378
|
-
__typeaheadV1(request, requestOptions) {
|
|
379
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
-
var _a, _b, _c, _d, _e;
|
|
381
|
-
const { query, limit } = request;
|
|
382
|
-
const _queryParams = {};
|
|
383
|
-
_queryParams["query"] = query;
|
|
384
|
-
if (limit !== undefined) {
|
|
385
|
-
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
386
|
-
}
|
|
387
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
388
|
-
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
389
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "shipping_integrations/atlas/orders/typeahead/v1"),
|
|
390
|
-
method: "GET",
|
|
391
|
-
headers: _headers,
|
|
392
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
393
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
394
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
395
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
396
|
-
});
|
|
397
|
-
if (_response.ok) {
|
|
398
|
-
return {
|
|
399
|
-
data: _response.body,
|
|
400
|
-
rawResponse: _response.rawResponse,
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
if (_response.error.reason === "status-code") {
|
|
404
|
-
switch (_response.error.statusCode) {
|
|
405
|
-
case 422:
|
|
406
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
407
|
-
default:
|
|
408
|
-
throw new errors.ChrtError({
|
|
409
|
-
statusCode: _response.error.statusCode,
|
|
410
|
-
body: _response.error.body,
|
|
411
|
-
rawResponse: _response.rawResponse,
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
switch (_response.error.reason) {
|
|
416
|
-
case "non-json":
|
|
417
|
-
throw new errors.ChrtError({
|
|
418
|
-
statusCode: _response.error.statusCode,
|
|
419
|
-
body: _response.error.rawBody,
|
|
420
|
-
rawResponse: _response.rawResponse,
|
|
421
|
-
});
|
|
422
|
-
case "timeout":
|
|
423
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/atlas/orders/typeahead/v1.");
|
|
424
|
-
case "unknown":
|
|
425
|
-
throw new errors.ChrtError({
|
|
426
|
-
message: _response.error.errorMessage,
|
|
427
|
-
rawResponse: _response.rawResponse,
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
361
|
_getAuthorizationHeader() {
|
|
433
362
|
return __awaiter(this, void 0, void 0, function* () {
|
|
434
363
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import { Creds } from "../resources/creds/client/Client.js";
|
|
7
|
+
import { Orders } from "../resources/orders/client/Client.js";
|
|
8
|
+
export declare namespace Ecourier {
|
|
9
|
+
interface Options {
|
|
10
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
11
|
+
/** Specify a custom URL to connect the client to. */
|
|
12
|
+
baseUrl?: core.Supplier<string>;
|
|
13
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
16
|
+
fetcher?: core.FetchFunction;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare class Ecourier {
|
|
20
|
+
protected readonly _options: Ecourier.Options;
|
|
21
|
+
protected _creds: Creds | undefined;
|
|
22
|
+
protected _orders: Orders | undefined;
|
|
23
|
+
constructor(_options?: Ecourier.Options);
|
|
24
|
+
get creds(): Creds;
|
|
25
|
+
get orders(): Orders;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Ecourier = void 0;
|
|
7
|
+
const Client_js_1 = require("../resources/creds/client/Client.js");
|
|
8
|
+
const Client_js_2 = require("../resources/orders/client/Client.js");
|
|
9
|
+
class Ecourier {
|
|
10
|
+
constructor(_options = {}) {
|
|
11
|
+
this._options = _options;
|
|
12
|
+
}
|
|
13
|
+
get creds() {
|
|
14
|
+
var _a;
|
|
15
|
+
return ((_a = this._creds) !== null && _a !== void 0 ? _a : (this._creds = new Client_js_1.Creds(this._options)));
|
|
16
|
+
}
|
|
17
|
+
get orders() {
|
|
18
|
+
var _a;
|
|
19
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_2.Orders(this._options)));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Ecourier = Ecourier;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.js";
|
|
7
|
+
export declare namespace Creds {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Creds {
|
|
31
|
+
protected readonly _options: Creds.Options;
|
|
32
|
+
constructor(_options?: Creds.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Returns the caller's e-Courier credential for one provider, without the password or session token. | () -> (EcourierCredsLimited1)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} providerOrgId - Must be a string starting with `org_`
|
|
37
|
+
* @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.shippingIntegrations.ecourier.creds.detailV1("provider_org_id")
|
|
43
|
+
*/
|
|
44
|
+
detailV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.EcourierCredsLimited1>;
|
|
45
|
+
private __detailV1;
|
|
46
|
+
/**
|
|
47
|
+
* Lists the caller's e-Courier credentials, one per connected provider, without the password or session token. | () -> (EcourierCredsListRes)
|
|
48
|
+
*
|
|
49
|
+
* @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.shippingIntegrations.ecourier.creds.listV1()
|
|
53
|
+
*/
|
|
54
|
+
listV1(requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.EcourierCredsListRes>;
|
|
55
|
+
private __listV1;
|
|
56
|
+
/**
|
|
57
|
+
* Confirms the caller's stored e-Courier credentials for one provider can still log in, and reports which customer the credential is scoped to. | authz: min_org_role=operator | () -> (EcourierCredsTestRes)
|
|
58
|
+
*
|
|
59
|
+
* @param {string} providerOrgId - Must be a string starting with `org_`
|
|
60
|
+
* @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.shippingIntegrations.ecourier.creds.testV1("provider_org_id")
|
|
66
|
+
*/
|
|
67
|
+
testV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.EcourierCredsTestRes>;
|
|
68
|
+
private __testV1;
|
|
69
|
+
/**
|
|
70
|
+
* Stores e-Courier credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (EcourierCredsClientCreate1) -> (PydanticObjectId)
|
|
71
|
+
*
|
|
72
|
+
* @param {string} providerOrgId - Must be a string starting with `org_`
|
|
73
|
+
* @param {Chrt.shippingIntegrations.ecourier.EcourierCredsClientCreate1} request
|
|
74
|
+
* @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* await client.shippingIntegrations.ecourier.creds.createV1("provider_org_id", {
|
|
80
|
+
* base_url: "https://bigtex.e-courier.com",
|
|
81
|
+
* ecourier_customer_code: "ecourier_customer_code",
|
|
82
|
+
* ecourier_customer_id: "ecourier_customer_id",
|
|
83
|
+
* ecourier_database: "ecourier_database",
|
|
84
|
+
* password: "password",
|
|
85
|
+
* schema_version: 1,
|
|
86
|
+
* username: "username"
|
|
87
|
+
* })
|
|
88
|
+
*/
|
|
89
|
+
createV1(providerOrgId: string, request: Chrt.shippingIntegrations.ecourier.EcourierCredsClientCreate1, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<string>;
|
|
90
|
+
private __createV1;
|
|
91
|
+
/**
|
|
92
|
+
* Deletes the caller's e-Courier credentials for one provider, stopping future syncs. | authz: min_org_role=administrator | () -> (bool)
|
|
93
|
+
*
|
|
94
|
+
* @param {string} providerOrgId - Must be a string starting with `org_`
|
|
95
|
+
* @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* await client.shippingIntegrations.ecourier.creds.deleteV1("provider_org_id")
|
|
101
|
+
*/
|
|
102
|
+
deleteV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
103
|
+
private __deleteV1;
|
|
104
|
+
/**
|
|
105
|
+
* Updates the caller's e-Courier credentials for one provider. | authz: min_org_role=administrator | (EcourierCredsClientUpdate1) -> (bool)
|
|
106
|
+
*
|
|
107
|
+
* @param {string} providerOrgId - Must be a string starting with `org_`
|
|
108
|
+
* @param {Chrt.shippingIntegrations.ecourier.EcourierCredsClientUpdate1} request
|
|
109
|
+
* @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* await client.shippingIntegrations.ecourier.creds.updateV1("provider_org_id")
|
|
115
|
+
*/
|
|
116
|
+
updateV1(providerOrgId: string, request?: Chrt.shippingIntegrations.ecourier.EcourierCredsClientUpdate1, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
117
|
+
private __updateV1;
|
|
118
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
119
|
+
}
|