@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.
Files changed (46) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +1 -0
  5. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +5 -1
  6. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +3 -0
  7. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.ts +3 -3
  8. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.js +7 -7
  9. package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.d.ts +3 -3
  10. package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.js +7 -7
  11. package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.d.ts +3 -3
  12. package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.js +7 -7
  13. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.ts +3 -3
  14. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.js +7 -7
  15. package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.d.ts +3 -3
  16. package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.js +7 -7
  17. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.ts +3 -3
  18. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.js +7 -7
  19. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -1
  20. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +1 -1
  21. package/dist/cjs/version.d.ts +1 -1
  22. package/dist/cjs/version.js +1 -1
  23. package/dist/esm/Client.mjs +2 -2
  24. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +1 -1
  25. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +1 -1
  26. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +1 -0
  27. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +5 -1
  28. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +3 -0
  29. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.mts +3 -3
  30. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.mjs +7 -7
  31. package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.d.mts +3 -3
  32. package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.mjs +7 -7
  33. package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.d.mts +3 -3
  34. package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.mjs +7 -7
  35. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.mts +3 -3
  36. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.mjs +7 -7
  37. package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.d.mts +3 -3
  38. package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.mjs +7 -7
  39. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.mts +3 -3
  40. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.mjs +7 -7
  41. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -1
  42. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +1 -1
  43. package/dist/esm/version.d.mts +1 -1
  44. package/dist/esm/version.mjs +1 -1
  45. package/package.json +1 -1
  46. 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} providerOrgId - CHRT org ID of the courier whose Atlas instance holds the order
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("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.atlas.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.AtlasOrderExpanded1>;
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} providerOrgId - CHRT org ID of the courier whose Atlas instance holds the order
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("provider_org_id", "integration_order_id")
32
+ * await client.shippingIntegrations.atlas.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
33
33
  */
34
- detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
35
- return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions));
34
+ detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
36
36
  }
37
- __detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
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(providerOrgId)}/${encodeURIComponent(integrationOrderId)}`),
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/{provider_org_id}/{integration_order_id}.");
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} providerOrgId - CHRT org ID of the courier whose CXT instance holds the order
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("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.cxt.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CxtOrderExpanded1>;
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)
@@ -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} providerOrgId - CHRT org ID of the courier whose CXT instance holds the order
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("provider_org_id", "integration_order_id")
32
+ * await client.shippingIntegrations.cxt.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
33
33
  */
34
- detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
35
- return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions));
34
+ detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
36
36
  }
37
- __detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
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(providerOrgId)}/${encodeURIComponent(integrationOrderId)}`),
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/{provider_org_id}/{integration_order_id}.");
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} providerOrgId - CHRT org ID of the courier whose DispatchScience instance holds the order
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("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.dispatchScience.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.DispatchScienceOrder1>;
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} providerOrgId - CHRT org ID of the courier whose DispatchScience instance holds the order
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("provider_org_id", "integration_order_id")
32
+ * await client.shippingIntegrations.dispatchScience.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
33
33
  */
34
- detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
35
- return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions));
34
+ detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
36
36
  }
37
- __detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
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(providerOrgId)}/${encodeURIComponent(integrationOrderId)}`),
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/{provider_org_id}/{integration_order_id}.");
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} providerOrgId - CHRT org ID of the courier whose e-Courier database holds the order
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("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.ecourier.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.EcourierOrder1>;
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} providerOrgId - CHRT org ID of the courier whose e-Courier database holds the order
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("provider_org_id", "integration_order_id")
32
+ * await client.shippingIntegrations.ecourier.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
33
33
  */
34
- detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
35
- return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions));
34
+ detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
36
36
  }
37
- __detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
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(providerOrgId)}/${encodeURIComponent(integrationOrderId)}`),
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/{provider_org_id}/{integration_order_id}.");
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} providerOrgId - CHRT org ID of the courier whose OnTime360 site holds the order
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("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.ontime360.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.OnTime360Order1>;
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} providerOrgId - CHRT org ID of the courier whose OnTime360 site holds the order
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("provider_org_id", "integration_order_id")
32
+ * await client.shippingIntegrations.ontime360.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
33
33
  */
34
- detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
35
- return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions));
34
+ detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
36
36
  }
37
- __detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
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(providerOrgId)}/${encodeURIComponent(integrationOrderId)}`),
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/{provider_org_id}/{integration_order_id}.");
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} providerOrgId - CHRT org ID of the courier whose Xcelerator instance holds the order
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("provider_org_id", "integration_order_id")
43
+ * await client.shippingIntegrations.xcelerator.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
44
  */
45
- detailByIntegrationOrderIdV1(providerOrgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.XceleratorOrderExpanded1>;
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} providerOrgId - CHRT org ID of the courier whose Xcelerator instance holds the order
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("provider_org_id", "integration_order_id")
32
+ * await client.shippingIntegrations.xcelerator.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
33
33
  */
34
- detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
35
- return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions));
34
+ detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
36
36
  }
37
- __detailByIntegrationOrderIdV1(providerOrgId, integrationOrderId, requestOptions) {
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(providerOrgId)}/${encodeURIComponent(integrationOrderId)}`),
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/{provider_org_id}/{integration_order_id}.");
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 raw 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)
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 raw 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)
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.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.949.0";
1
+ export declare const SDK_VERSION = "1.953.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.949.0";
1
+ export const SDK_VERSION = "1.953.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.949.0",
3
+ "version": "1.953.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",