@chrt-inc/typescript-sdk 1.949.0 → 1.953.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/shipping/resources/flights/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +5 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.js +7 -7
- package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.js +7 -7
- package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.js +7 -7
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.js +7 -7
- package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.js +7 -7
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.js +7 -7
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
- 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/shipping/resources/flights/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +5 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.mjs +7 -7
- package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.mjs +7 -7
- package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.mjs +7 -7
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.mjs +7 -7
- package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.mjs +7 -7
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.mjs +7 -7
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +21 -32
|
@@ -33,16 +33,16 @@ export declare class Orders {
|
|
|
33
33
|
/**
|
|
34
34
|
* Returns one mirrored Atlas order by the provider's own order ID with the provider organization expanded. | () -> (AtlasOrderExpanded1)
|
|
35
35
|
*
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
37
37
|
* @param {string} integrationOrderId - Atlas's own ID for the order, as carried on a unified order row
|
|
38
38
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shippingIntegrations.atlas.orders.detailByIntegrationOrderIdV1("
|
|
43
|
+
* await client.shippingIntegrations.atlas.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
44
44
|
*/
|
|
45
|
-
detailByIntegrationOrderIdV1(
|
|
45
|
+
detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.AtlasOrderExpanded1>;
|
|
46
46
|
private __detailByIntegrationOrderIdV1;
|
|
47
47
|
/**
|
|
48
48
|
* Returns one mirrored Atlas order by its Mongo ObjectId with the provider organization expanded. | () -> (AtlasOrderExpanded1)
|
|
@@ -22,24 +22,24 @@ export class Orders {
|
|
|
22
22
|
/**
|
|
23
23
|
* Returns one mirrored Atlas order by the provider's own order ID with the provider organization expanded. | () -> (AtlasOrderExpanded1)
|
|
24
24
|
*
|
|
25
|
-
* @param {string}
|
|
25
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
26
26
|
* @param {string} integrationOrderId - Atlas's own ID for the order, as carried on a unified order row
|
|
27
27
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.shippingIntegrations.atlas.orders.detailByIntegrationOrderIdV1("
|
|
32
|
+
* await client.shippingIntegrations.atlas.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
33
33
|
*/
|
|
34
|
-
detailByIntegrationOrderIdV1(
|
|
35
|
-
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(
|
|
34
|
+
detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
|
|
36
36
|
}
|
|
37
|
-
__detailByIntegrationOrderIdV1(
|
|
37
|
+
__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
var _a, _b, _c, _d;
|
|
40
40
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
41
41
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
|
-
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, `shipping_integrations/atlas/orders/by_integration_order_id/detail/v1/${encodeURIComponent(
|
|
42
|
+
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, `shipping_integrations/atlas/orders/by_integration_order_id/detail/v1/${encodeURIComponent(orgId)}/${encodeURIComponent(integrationOrderId)}`),
|
|
43
43
|
method: "GET",
|
|
44
44
|
headers: _headers,
|
|
45
45
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -70,7 +70,7 @@ export class Orders {
|
|
|
70
70
|
rawResponse: _response.rawResponse,
|
|
71
71
|
});
|
|
72
72
|
case "timeout":
|
|
73
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/atlas/orders/by_integration_order_id/detail/v1/{
|
|
73
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/atlas/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}.");
|
|
74
74
|
case "unknown":
|
|
75
75
|
throw new errors.ChrtError({
|
|
76
76
|
message: _response.error.errorMessage,
|
|
@@ -33,16 +33,16 @@ export declare class Orders {
|
|
|
33
33
|
/**
|
|
34
34
|
* Returns one mirrored CXT order by the provider's own order ID with the provider organization expanded. | () -> (CxtOrderExpanded1)
|
|
35
35
|
*
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
37
37
|
* @param {string} integrationOrderId - CXT's own decimal ID for the order, as carried on a unified order row
|
|
38
38
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shippingIntegrations.cxt.orders.detailByIntegrationOrderIdV1("
|
|
43
|
+
* await client.shippingIntegrations.cxt.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
44
44
|
*/
|
|
45
|
-
detailByIntegrationOrderIdV1(
|
|
45
|
+
detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CxtOrderExpanded1>;
|
|
46
46
|
private __detailByIntegrationOrderIdV1;
|
|
47
47
|
/**
|
|
48
48
|
* Returns one mirrored CXT order by its Mongo ObjectId with the provider organization expanded. | () -> (CxtOrderExpanded1)
|
package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.mjs
CHANGED
|
@@ -22,24 +22,24 @@ export class Orders {
|
|
|
22
22
|
/**
|
|
23
23
|
* Returns one mirrored CXT order by the provider's own order ID with the provider organization expanded. | () -> (CxtOrderExpanded1)
|
|
24
24
|
*
|
|
25
|
-
* @param {string}
|
|
25
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
26
26
|
* @param {string} integrationOrderId - CXT's own decimal ID for the order, as carried on a unified order row
|
|
27
27
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.shippingIntegrations.cxt.orders.detailByIntegrationOrderIdV1("
|
|
32
|
+
* await client.shippingIntegrations.cxt.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
33
33
|
*/
|
|
34
|
-
detailByIntegrationOrderIdV1(
|
|
35
|
-
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(
|
|
34
|
+
detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
|
|
36
36
|
}
|
|
37
|
-
__detailByIntegrationOrderIdV1(
|
|
37
|
+
__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
var _a, _b, _c, _d;
|
|
40
40
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
41
41
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
|
-
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, `shipping_integrations/cxt/orders/by_integration_order_id/detail/v1/${encodeURIComponent(
|
|
42
|
+
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, `shipping_integrations/cxt/orders/by_integration_order_id/detail/v1/${encodeURIComponent(orgId)}/${encodeURIComponent(integrationOrderId)}`),
|
|
43
43
|
method: "GET",
|
|
44
44
|
headers: _headers,
|
|
45
45
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -70,7 +70,7 @@ export class Orders {
|
|
|
70
70
|
rawResponse: _response.rawResponse,
|
|
71
71
|
});
|
|
72
72
|
case "timeout":
|
|
73
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/cxt/orders/by_integration_order_id/detail/v1/{
|
|
73
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/cxt/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}.");
|
|
74
74
|
case "unknown":
|
|
75
75
|
throw new errors.ChrtError({
|
|
76
76
|
message: _response.error.errorMessage,
|
|
@@ -33,16 +33,16 @@ export declare class Orders {
|
|
|
33
33
|
/**
|
|
34
34
|
* Returns one mirrored DispatchScience order by the provider's own order ID. | () -> (DispatchScienceOrder1)
|
|
35
35
|
*
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
37
37
|
* @param {string} integrationOrderId - DispatchScience's own ID for the order (its orderId), as carried on a unified order row
|
|
38
38
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shippingIntegrations.dispatchScience.orders.detailByIntegrationOrderIdV1("
|
|
43
|
+
* await client.shippingIntegrations.dispatchScience.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
44
44
|
*/
|
|
45
|
-
detailByIntegrationOrderIdV1(
|
|
45
|
+
detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.DispatchScienceOrder1>;
|
|
46
46
|
private __detailByIntegrationOrderIdV1;
|
|
47
47
|
/**
|
|
48
48
|
* Returns one mirrored DispatchScience order by its Mongo ObjectId. | () -> (DispatchScienceOrder1)
|
|
@@ -22,24 +22,24 @@ export class Orders {
|
|
|
22
22
|
/**
|
|
23
23
|
* Returns one mirrored DispatchScience order by the provider's own order ID. | () -> (DispatchScienceOrder1)
|
|
24
24
|
*
|
|
25
|
-
* @param {string}
|
|
25
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
26
26
|
* @param {string} integrationOrderId - DispatchScience's own ID for the order (its orderId), as carried on a unified order row
|
|
27
27
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.shippingIntegrations.dispatchScience.orders.detailByIntegrationOrderIdV1("
|
|
32
|
+
* await client.shippingIntegrations.dispatchScience.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
33
33
|
*/
|
|
34
|
-
detailByIntegrationOrderIdV1(
|
|
35
|
-
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(
|
|
34
|
+
detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
|
|
36
36
|
}
|
|
37
|
-
__detailByIntegrationOrderIdV1(
|
|
37
|
+
__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
var _a, _b, _c, _d;
|
|
40
40
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
41
41
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
|
-
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, `shipping_integrations/dispatch_science/orders/by_integration_order_id/detail/v1/${encodeURIComponent(
|
|
42
|
+
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, `shipping_integrations/dispatch_science/orders/by_integration_order_id/detail/v1/${encodeURIComponent(orgId)}/${encodeURIComponent(integrationOrderId)}`),
|
|
43
43
|
method: "GET",
|
|
44
44
|
headers: _headers,
|
|
45
45
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -70,7 +70,7 @@ export class Orders {
|
|
|
70
70
|
rawResponse: _response.rawResponse,
|
|
71
71
|
});
|
|
72
72
|
case "timeout":
|
|
73
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/dispatch_science/orders/by_integration_order_id/detail/v1/{
|
|
73
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/dispatch_science/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}.");
|
|
74
74
|
case "unknown":
|
|
75
75
|
throw new errors.ChrtError({
|
|
76
76
|
message: _response.error.errorMessage,
|
|
@@ -33,16 +33,16 @@ export declare class Orders {
|
|
|
33
33
|
/**
|
|
34
34
|
* Returns one mirrored e-Courier order by the provider's own order number. | () -> (EcourierOrder1)
|
|
35
35
|
*
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
37
37
|
* @param {string} integrationOrderId - e-Courier's own order number for the order, as carried on a unified order row
|
|
38
38
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shippingIntegrations.ecourier.orders.detailByIntegrationOrderIdV1("
|
|
43
|
+
* await client.shippingIntegrations.ecourier.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
44
44
|
*/
|
|
45
|
-
detailByIntegrationOrderIdV1(
|
|
45
|
+
detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.EcourierOrder1>;
|
|
46
46
|
private __detailByIntegrationOrderIdV1;
|
|
47
47
|
/**
|
|
48
48
|
* Returns one mirrored e-Courier order by its Mongo ObjectId. | () -> (EcourierOrder1)
|
|
@@ -22,24 +22,24 @@ export class Orders {
|
|
|
22
22
|
/**
|
|
23
23
|
* Returns one mirrored e-Courier order by the provider's own order number. | () -> (EcourierOrder1)
|
|
24
24
|
*
|
|
25
|
-
* @param {string}
|
|
25
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
26
26
|
* @param {string} integrationOrderId - e-Courier's own order number for the order, as carried on a unified order row
|
|
27
27
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.shippingIntegrations.ecourier.orders.detailByIntegrationOrderIdV1("
|
|
32
|
+
* await client.shippingIntegrations.ecourier.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
33
33
|
*/
|
|
34
|
-
detailByIntegrationOrderIdV1(
|
|
35
|
-
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(
|
|
34
|
+
detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
|
|
36
36
|
}
|
|
37
|
-
__detailByIntegrationOrderIdV1(
|
|
37
|
+
__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
var _a, _b, _c, _d;
|
|
40
40
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
41
41
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
|
-
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, `shipping_integrations/ecourier/orders/by_integration_order_id/detail/v1/${encodeURIComponent(
|
|
42
|
+
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, `shipping_integrations/ecourier/orders/by_integration_order_id/detail/v1/${encodeURIComponent(orgId)}/${encodeURIComponent(integrationOrderId)}`),
|
|
43
43
|
method: "GET",
|
|
44
44
|
headers: _headers,
|
|
45
45
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -70,7 +70,7 @@ export class Orders {
|
|
|
70
70
|
rawResponse: _response.rawResponse,
|
|
71
71
|
});
|
|
72
72
|
case "timeout":
|
|
73
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/ecourier/orders/by_integration_order_id/detail/v1/{
|
|
73
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/ecourier/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}.");
|
|
74
74
|
case "unknown":
|
|
75
75
|
throw new errors.ChrtError({
|
|
76
76
|
message: _response.error.errorMessage,
|
|
@@ -33,16 +33,16 @@ export declare class Orders {
|
|
|
33
33
|
/**
|
|
34
34
|
* Returns one mirrored OnTime360 order by the provider's own order GUID. | () -> (OnTime360Order1)
|
|
35
35
|
*
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
37
37
|
* @param {string} integrationOrderId - OnTime360's own GUID for the order (its ID), as carried on a unified order row
|
|
38
38
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shippingIntegrations.ontime360.orders.detailByIntegrationOrderIdV1("
|
|
43
|
+
* await client.shippingIntegrations.ontime360.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
44
44
|
*/
|
|
45
|
-
detailByIntegrationOrderIdV1(
|
|
45
|
+
detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OnTime360Order1>;
|
|
46
46
|
private __detailByIntegrationOrderIdV1;
|
|
47
47
|
/**
|
|
48
48
|
* Returns one mirrored OnTime360 order by its Mongo ObjectId. | () -> (OnTime360Order1)
|
|
@@ -22,24 +22,24 @@ export class Orders {
|
|
|
22
22
|
/**
|
|
23
23
|
* Returns one mirrored OnTime360 order by the provider's own order GUID. | () -> (OnTime360Order1)
|
|
24
24
|
*
|
|
25
|
-
* @param {string}
|
|
25
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
26
26
|
* @param {string} integrationOrderId - OnTime360's own GUID for the order (its ID), as carried on a unified order row
|
|
27
27
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.shippingIntegrations.ontime360.orders.detailByIntegrationOrderIdV1("
|
|
32
|
+
* await client.shippingIntegrations.ontime360.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
33
33
|
*/
|
|
34
|
-
detailByIntegrationOrderIdV1(
|
|
35
|
-
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(
|
|
34
|
+
detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
|
|
36
36
|
}
|
|
37
|
-
__detailByIntegrationOrderIdV1(
|
|
37
|
+
__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
var _a, _b, _c, _d;
|
|
40
40
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
41
41
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
|
-
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, `shipping_integrations/ontime360/orders/by_integration_order_id/detail/v1/${encodeURIComponent(
|
|
42
|
+
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, `shipping_integrations/ontime360/orders/by_integration_order_id/detail/v1/${encodeURIComponent(orgId)}/${encodeURIComponent(integrationOrderId)}`),
|
|
43
43
|
method: "GET",
|
|
44
44
|
headers: _headers,
|
|
45
45
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -70,7 +70,7 @@ export class Orders {
|
|
|
70
70
|
rawResponse: _response.rawResponse,
|
|
71
71
|
});
|
|
72
72
|
case "timeout":
|
|
73
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/ontime360/orders/by_integration_order_id/detail/v1/{
|
|
73
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/ontime360/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}.");
|
|
74
74
|
case "unknown":
|
|
75
75
|
throw new errors.ChrtError({
|
|
76
76
|
message: _response.error.errorMessage,
|
|
@@ -33,16 +33,16 @@ export declare class Orders {
|
|
|
33
33
|
/**
|
|
34
34
|
* Returns one mirrored Xcelerator order by the provider's own order ID with the provider organization expanded. | () -> (XceleratorOrderExpanded1)
|
|
35
35
|
*
|
|
36
|
-
* @param {string}
|
|
36
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
37
37
|
* @param {string} integrationOrderId - Xcelerator's own ID for the order (its OrderTrackingId), as carried on a unified order row
|
|
38
38
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shippingIntegrations.xcelerator.orders.detailByIntegrationOrderIdV1("
|
|
43
|
+
* await client.shippingIntegrations.xcelerator.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
44
44
|
*/
|
|
45
|
-
detailByIntegrationOrderIdV1(
|
|
45
|
+
detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.XceleratorOrderExpanded1>;
|
|
46
46
|
private __detailByIntegrationOrderIdV1;
|
|
47
47
|
/**
|
|
48
48
|
* Returns one mirrored Xcelerator order by its Mongo ObjectId with the provider organization expanded. | () -> (XceleratorOrderExpanded1)
|
|
@@ -22,24 +22,24 @@ export class Orders {
|
|
|
22
22
|
/**
|
|
23
23
|
* Returns one mirrored Xcelerator order by the provider's own order ID with the provider organization expanded. | () -> (XceleratorOrderExpanded1)
|
|
24
24
|
*
|
|
25
|
-
* @param {string}
|
|
25
|
+
* @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
|
|
26
26
|
* @param {string} integrationOrderId - Xcelerator's own ID for the order (its OrderTrackingId), as carried on a unified order row
|
|
27
27
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.shippingIntegrations.xcelerator.orders.detailByIntegrationOrderIdV1("
|
|
32
|
+
* await client.shippingIntegrations.xcelerator.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
|
|
33
33
|
*/
|
|
34
|
-
detailByIntegrationOrderIdV1(
|
|
35
|
-
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(
|
|
34
|
+
detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
35
|
+
return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
|
|
36
36
|
}
|
|
37
|
-
__detailByIntegrationOrderIdV1(
|
|
37
|
+
__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
var _a, _b, _c, _d;
|
|
40
40
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
41
41
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
42
|
-
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, `shipping_integrations/xcelerator/orders/by_integration_order_id/detail/v1/${encodeURIComponent(
|
|
42
|
+
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, `shipping_integrations/xcelerator/orders/by_integration_order_id/detail/v1/${encodeURIComponent(orgId)}/${encodeURIComponent(integrationOrderId)}`),
|
|
43
43
|
method: "GET",
|
|
44
44
|
headers: _headers,
|
|
45
45
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -70,7 +70,7 @@ export class Orders {
|
|
|
70
70
|
rawResponse: _response.rawResponse,
|
|
71
71
|
});
|
|
72
72
|
case "timeout":
|
|
73
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/xcelerator/orders/by_integration_order_id/detail/v1/{
|
|
73
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/xcelerator/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}.");
|
|
74
74
|
case "unknown":
|
|
75
75
|
throw new errors.ChrtError({
|
|
76
76
|
message: _response.error.errorMessage,
|
|
@@ -63,7 +63,7 @@ export declare class Sessions {
|
|
|
63
63
|
flightLegsV1(request: Chrt.tracking.SessionsFlightLegsV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.FlightLeg1[]>;
|
|
64
64
|
private __flightLegsV1;
|
|
65
65
|
/**
|
|
66
|
-
* Returns the
|
|
66
|
+
* Returns the Cirium positional track for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
|
|
67
67
|
*
|
|
68
68
|
* @param {Chrt.tracking.SessionsFlightTrackV1Request} request
|
|
69
69
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -167,7 +167,7 @@ export class Sessions {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
|
-
* Returns the
|
|
170
|
+
* Returns the Cirium positional track for one of the session's flight legs; pass force_refresh=true to bypass the cache. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
|
|
171
171
|
*
|
|
172
172
|
* @param {Chrt.tracking.SessionsFlightTrackV1Request} request
|
|
173
173
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.953.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.953.0";
|