@chrt-inc/typescript-sdk 1.1000.0 → 1.1002.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 (190) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shippingIntegrations/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/shippingIntegrations/client/Client.js +15 -10
  4. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/client/Client.d.ts +26 -0
  5. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/client/Client.js +22 -0
  6. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/client/index.js +2 -0
  8. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/index.js +18 -0
  10. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/client/Client.d.ts +115 -0
  11. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/client/Client.js +426 -0
  12. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/client/index.d.ts +2 -0
  13. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/client/index.js +17 -0
  14. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/CourieCredsClientCreate1.d.ts +18 -0
  15. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/CourieCredsClientCreate1.js +5 -0
  16. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/CourieCredsClientUpdate1.d.ts +15 -0
  17. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/CourieCredsClientUpdate1.js +5 -0
  18. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/index.js +2 -0
  20. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/creds/index.js +17 -0
  22. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/index.d.ts +4 -0
  23. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/index.js +43 -0
  24. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/client/Client.d.ts +105 -0
  25. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/client/Client.js +375 -0
  26. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/client/index.d.ts +2 -0
  27. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/client/index.js +17 -0
  28. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/CourieOrderSyncOneReq.d.ts +15 -0
  29. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/CourieOrderSyncOneReq.js +5 -0
  30. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/OrdersListV1Request.d.ts +51 -0
  31. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/OrdersListV1Request.js +5 -0
  32. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/index.d.ts +2 -0
  33. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/index.js +2 -0
  34. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/shippingIntegrations/resources/courie/resources/orders/index.js +17 -0
  36. package/dist/cjs/api/resources/shippingIntegrations/resources/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/shippingIntegrations/resources/index.js +2 -1
  38. package/dist/cjs/api/types/CourieAddressResponse1.d.ts +16 -0
  39. package/dist/cjs/api/types/CourieAddressResponse1.js +5 -0
  40. package/dist/cjs/api/types/CourieAttemptReasonResponse1.d.ts +9 -0
  41. package/dist/cjs/api/types/CourieAttemptReasonResponse1.js +5 -0
  42. package/dist/cjs/api/types/CourieCredsLimited1.d.ts +24 -0
  43. package/dist/cjs/api/types/CourieCredsLimited1.js +5 -0
  44. package/dist/cjs/api/types/CourieCredsListRes.d.ts +8 -0
  45. package/dist/cjs/api/types/CourieCredsListRes.js +5 -0
  46. package/dist/cjs/api/types/CourieCredsTestRes.d.ts +10 -0
  47. package/dist/cjs/api/types/CourieCredsTestRes.js +5 -0
  48. package/dist/cjs/api/types/CourieCustomFieldResponse1.d.ts +10 -0
  49. package/dist/cjs/api/types/CourieCustomFieldResponse1.js +5 -0
  50. package/dist/cjs/api/types/CourieDriverAnswerResponse1.d.ts +11 -0
  51. package/dist/cjs/api/types/CourieDriverAnswerResponse1.js +5 -0
  52. package/dist/cjs/api/types/CourieDriverResponse1.d.ts +9 -0
  53. package/dist/cjs/api/types/CourieDriverResponse1.js +5 -0
  54. package/dist/cjs/api/types/CourieLatLngResponse1.d.ts +10 -0
  55. package/dist/cjs/api/types/CourieLatLngResponse1.js +5 -0
  56. package/dist/cjs/api/types/CourieLocationScanResponse1.d.ts +9 -0
  57. package/dist/cjs/api/types/CourieLocationScanResponse1.js +5 -0
  58. package/dist/cjs/api/types/CourieOrder1.d.ts +19 -0
  59. package/dist/cjs/api/types/CourieOrder1.js +5 -0
  60. package/dist/cjs/api/types/CourieOrderEventEnum1.d.ts +18 -0
  61. package/dist/cjs/api/types/CourieOrderEventEnum1.js +14 -0
  62. package/dist/cjs/api/types/CourieOrderEventResponse1.d.ts +11 -0
  63. package/dist/cjs/api/types/CourieOrderEventResponse1.js +5 -0
  64. package/dist/cjs/api/types/CourieOrderListRes.d.ts +8 -0
  65. package/dist/cjs/api/types/CourieOrderListRes.js +5 -0
  66. package/dist/cjs/api/types/CourieOrderResponse1.d.ts +42 -0
  67. package/dist/cjs/api/types/CourieOrderResponse1.js +5 -0
  68. package/dist/cjs/api/types/CourieOrderSortByEnum.d.ts +10 -0
  69. package/dist/cjs/api/types/CourieOrderSortByEnum.js +12 -0
  70. package/dist/cjs/api/types/CourieOrderStatusEnum1.d.ts +21 -0
  71. package/dist/cjs/api/types/CourieOrderStatusEnum1.js +16 -0
  72. package/dist/cjs/api/types/CouriePackageItemResponse1.d.ts +19 -0
  73. package/dist/cjs/api/types/CouriePackageItemResponse1.js +5 -0
  74. package/dist/cjs/api/types/CouriePackageResponse1.d.ts +9 -0
  75. package/dist/cjs/api/types/CouriePackageResponse1.js +5 -0
  76. package/dist/cjs/api/types/CourieProofOfDeliveryResponse1.d.ts +11 -0
  77. package/dist/cjs/api/types/CourieProofOfDeliveryResponse1.js +5 -0
  78. package/dist/cjs/api/types/CourieStopAttemptResponse1.d.ts +10 -0
  79. package/dist/cjs/api/types/CourieStopAttemptResponse1.js +5 -0
  80. package/dist/cjs/api/types/CourieStopResponse1.d.ts +29 -0
  81. package/dist/cjs/api/types/CourieStopResponse1.js +5 -0
  82. package/dist/cjs/api/types/CourieStopTypeEnum1.d.ts +8 -0
  83. package/dist/cjs/api/types/CourieStopTypeEnum1.js +10 -0
  84. package/dist/cjs/api/types/DriverComplianceDocumentS3ObjectMetadata1.d.ts +2 -0
  85. package/dist/cjs/api/types/OrderInternalMessageS3ObjectMetadata1.d.ts +2 -0
  86. package/dist/cjs/api/types/OrgComplianceDocumentS3ObjectMetadata1.d.ts +2 -0
  87. package/dist/cjs/api/types/OrgShippingIntegrationEnum1.d.ts +2 -1
  88. package/dist/cjs/api/types/OrgShippingIntegrationEnum1.js +1 -0
  89. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +2 -0
  90. package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.d.ts +2 -0
  91. package/dist/cjs/api/types/index.d.ts +23 -0
  92. package/dist/cjs/api/types/index.js +23 -0
  93. package/dist/cjs/version.d.ts +1 -1
  94. package/dist/cjs/version.js +1 -1
  95. package/dist/esm/Client.mjs +2 -2
  96. package/dist/esm/api/resources/shippingIntegrations/client/Client.d.mts +3 -0
  97. package/dist/esm/api/resources/shippingIntegrations/client/Client.mjs +5 -0
  98. package/dist/esm/api/resources/shippingIntegrations/resources/courie/client/Client.d.mts +26 -0
  99. package/dist/esm/api/resources/shippingIntegrations/resources/courie/client/Client.mjs +18 -0
  100. package/dist/esm/api/resources/shippingIntegrations/resources/courie/client/index.d.mts +1 -0
  101. package/dist/esm/api/resources/shippingIntegrations/resources/courie/client/index.mjs +1 -0
  102. package/dist/esm/api/resources/shippingIntegrations/resources/courie/index.d.mts +2 -0
  103. package/dist/esm/api/resources/shippingIntegrations/resources/courie/index.mjs +2 -0
  104. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/client/Client.d.mts +115 -0
  105. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/client/Client.mjs +389 -0
  106. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/client/index.d.mts +2 -0
  107. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/client/index.mjs +1 -0
  108. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/CourieCredsClientCreate1.d.mts +18 -0
  109. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/CourieCredsClientCreate1.mjs +4 -0
  110. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/CourieCredsClientUpdate1.d.mts +15 -0
  111. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/CourieCredsClientUpdate1.mjs +4 -0
  112. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/index.d.mts +2 -0
  113. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/client/requests/index.mjs +1 -0
  114. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/index.d.mts +1 -0
  115. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/creds/index.mjs +1 -0
  116. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/index.d.mts +4 -0
  117. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/index.mjs +4 -0
  118. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/client/Client.d.mts +105 -0
  119. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/client/Client.mjs +338 -0
  120. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/client/index.d.mts +2 -0
  121. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/client/index.mjs +1 -0
  122. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/CourieOrderSyncOneReq.d.mts +15 -0
  123. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/CourieOrderSyncOneReq.mjs +4 -0
  124. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/OrdersListV1Request.d.mts +51 -0
  125. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/OrdersListV1Request.mjs +4 -0
  126. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/index.d.mts +2 -0
  127. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/client/requests/index.mjs +1 -0
  128. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/index.d.mts +1 -0
  129. package/dist/esm/api/resources/shippingIntegrations/resources/courie/resources/orders/index.mjs +1 -0
  130. package/dist/esm/api/resources/shippingIntegrations/resources/index.d.mts +1 -0
  131. package/dist/esm/api/resources/shippingIntegrations/resources/index.mjs +1 -0
  132. package/dist/esm/api/types/CourieAddressResponse1.d.mts +16 -0
  133. package/dist/esm/api/types/CourieAddressResponse1.mjs +4 -0
  134. package/dist/esm/api/types/CourieAttemptReasonResponse1.d.mts +9 -0
  135. package/dist/esm/api/types/CourieAttemptReasonResponse1.mjs +4 -0
  136. package/dist/esm/api/types/CourieCredsLimited1.d.mts +24 -0
  137. package/dist/esm/api/types/CourieCredsLimited1.mjs +4 -0
  138. package/dist/esm/api/types/CourieCredsListRes.d.mts +8 -0
  139. package/dist/esm/api/types/CourieCredsListRes.mjs +4 -0
  140. package/dist/esm/api/types/CourieCredsTestRes.d.mts +10 -0
  141. package/dist/esm/api/types/CourieCredsTestRes.mjs +4 -0
  142. package/dist/esm/api/types/CourieCustomFieldResponse1.d.mts +10 -0
  143. package/dist/esm/api/types/CourieCustomFieldResponse1.mjs +4 -0
  144. package/dist/esm/api/types/CourieDriverAnswerResponse1.d.mts +11 -0
  145. package/dist/esm/api/types/CourieDriverAnswerResponse1.mjs +4 -0
  146. package/dist/esm/api/types/CourieDriverResponse1.d.mts +9 -0
  147. package/dist/esm/api/types/CourieDriverResponse1.mjs +4 -0
  148. package/dist/esm/api/types/CourieLatLngResponse1.d.mts +10 -0
  149. package/dist/esm/api/types/CourieLatLngResponse1.mjs +4 -0
  150. package/dist/esm/api/types/CourieLocationScanResponse1.d.mts +9 -0
  151. package/dist/esm/api/types/CourieLocationScanResponse1.mjs +4 -0
  152. package/dist/esm/api/types/CourieOrder1.d.mts +19 -0
  153. package/dist/esm/api/types/CourieOrder1.mjs +4 -0
  154. package/dist/esm/api/types/CourieOrderEventEnum1.d.mts +18 -0
  155. package/dist/esm/api/types/CourieOrderEventEnum1.mjs +11 -0
  156. package/dist/esm/api/types/CourieOrderEventResponse1.d.mts +11 -0
  157. package/dist/esm/api/types/CourieOrderEventResponse1.mjs +4 -0
  158. package/dist/esm/api/types/CourieOrderListRes.d.mts +8 -0
  159. package/dist/esm/api/types/CourieOrderListRes.mjs +4 -0
  160. package/dist/esm/api/types/CourieOrderResponse1.d.mts +42 -0
  161. package/dist/esm/api/types/CourieOrderResponse1.mjs +4 -0
  162. package/dist/esm/api/types/CourieOrderSortByEnum.d.mts +10 -0
  163. package/dist/esm/api/types/CourieOrderSortByEnum.mjs +9 -0
  164. package/dist/esm/api/types/CourieOrderStatusEnum1.d.mts +21 -0
  165. package/dist/esm/api/types/CourieOrderStatusEnum1.mjs +13 -0
  166. package/dist/esm/api/types/CouriePackageItemResponse1.d.mts +19 -0
  167. package/dist/esm/api/types/CouriePackageItemResponse1.mjs +4 -0
  168. package/dist/esm/api/types/CouriePackageResponse1.d.mts +9 -0
  169. package/dist/esm/api/types/CouriePackageResponse1.mjs +4 -0
  170. package/dist/esm/api/types/CourieProofOfDeliveryResponse1.d.mts +11 -0
  171. package/dist/esm/api/types/CourieProofOfDeliveryResponse1.mjs +4 -0
  172. package/dist/esm/api/types/CourieStopAttemptResponse1.d.mts +10 -0
  173. package/dist/esm/api/types/CourieStopAttemptResponse1.mjs +4 -0
  174. package/dist/esm/api/types/CourieStopResponse1.d.mts +29 -0
  175. package/dist/esm/api/types/CourieStopResponse1.mjs +4 -0
  176. package/dist/esm/api/types/CourieStopTypeEnum1.d.mts +8 -0
  177. package/dist/esm/api/types/CourieStopTypeEnum1.mjs +7 -0
  178. package/dist/esm/api/types/DriverComplianceDocumentS3ObjectMetadata1.d.mts +2 -0
  179. package/dist/esm/api/types/OrderInternalMessageS3ObjectMetadata1.d.mts +2 -0
  180. package/dist/esm/api/types/OrgComplianceDocumentS3ObjectMetadata1.d.mts +2 -0
  181. package/dist/esm/api/types/OrgShippingIntegrationEnum1.d.mts +2 -1
  182. package/dist/esm/api/types/OrgShippingIntegrationEnum1.mjs +1 -0
  183. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +2 -0
  184. package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.d.mts +2 -0
  185. package/dist/esm/api/types/index.d.mts +23 -0
  186. package/dist/esm/api/types/index.mjs +23 -0
  187. package/dist/esm/version.d.mts +1 -1
  188. package/dist/esm/version.mjs +1 -1
  189. package/package.json +1 -1
  190. package/reference.md +672 -0
@@ -0,0 +1,389 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../../../errors/index.mjs";
18
+ export class Creds {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Returns the caller's Courie credential for one provider, without API key. | () -> (CourieCredsLimited1)
24
+ *
25
+ * @param {string} providerOrgId - Must be a string starting with `org_`
26
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.shippingIntegrations.courie.creds.detailV1("provider_org_id")
32
+ */
33
+ detailV1(providerOrgId, requestOptions) {
34
+ return core.HttpResponsePromise.fromPromise(this.__detailV1(providerOrgId, requestOptions));
35
+ }
36
+ __detailV1(providerOrgId, requestOptions) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ var _a, _b, _c, _d;
39
+ 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);
40
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
41
+ 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/courie/creds/detail/v1/${encodeURIComponent(providerOrgId)}`),
42
+ method: "GET",
43
+ headers: _headers,
44
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
45
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
46
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
47
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
48
+ });
49
+ if (_response.ok) {
50
+ return { data: _response.body, rawResponse: _response.rawResponse };
51
+ }
52
+ if (_response.error.reason === "status-code") {
53
+ switch (_response.error.statusCode) {
54
+ case 422:
55
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
56
+ default:
57
+ throw new errors.ChrtError({
58
+ statusCode: _response.error.statusCode,
59
+ body: _response.error.body,
60
+ rawResponse: _response.rawResponse,
61
+ });
62
+ }
63
+ }
64
+ switch (_response.error.reason) {
65
+ case "non-json":
66
+ throw new errors.ChrtError({
67
+ statusCode: _response.error.statusCode,
68
+ body: _response.error.rawBody,
69
+ rawResponse: _response.rawResponse,
70
+ });
71
+ case "timeout":
72
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/courie/creds/detail/v1/{provider_org_id}.");
73
+ case "unknown":
74
+ throw new errors.ChrtError({
75
+ message: _response.error.errorMessage,
76
+ rawResponse: _response.rawResponse,
77
+ });
78
+ }
79
+ });
80
+ }
81
+ /**
82
+ * Lists the caller's Courie credentials, one per connected provider, without API key. | () -> (CourieCredsListRes)
83
+ *
84
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
85
+ *
86
+ * @example
87
+ * await client.shippingIntegrations.courie.creds.listV1()
88
+ */
89
+ listV1(requestOptions) {
90
+ return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
91
+ }
92
+ __listV1(requestOptions) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ var _a, _b, _c, _d;
95
+ 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);
96
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
97
+ 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/courie/creds/list/v1"),
98
+ method: "GET",
99
+ headers: _headers,
100
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
101
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
102
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
103
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
+ });
105
+ if (_response.ok) {
106
+ return { data: _response.body, rawResponse: _response.rawResponse };
107
+ }
108
+ if (_response.error.reason === "status-code") {
109
+ throw new errors.ChrtError({
110
+ statusCode: _response.error.statusCode,
111
+ body: _response.error.body,
112
+ rawResponse: _response.rawResponse,
113
+ });
114
+ }
115
+ switch (_response.error.reason) {
116
+ case "non-json":
117
+ throw new errors.ChrtError({
118
+ statusCode: _response.error.statusCode,
119
+ body: _response.error.rawBody,
120
+ rawResponse: _response.rawResponse,
121
+ });
122
+ case "timeout":
123
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/courie/creds/list/v1.");
124
+ case "unknown":
125
+ throw new errors.ChrtError({
126
+ message: _response.error.errorMessage,
127
+ rawResponse: _response.rawResponse,
128
+ });
129
+ }
130
+ });
131
+ }
132
+ /**
133
+ * Tests whether stored Courie credentials can authenticate against the provider. | authz: min_org_role=operator | () -> (CourieCredsTestRes)
134
+ *
135
+ * @param {string} providerOrgId - Must be a string starting with `org_`
136
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
137
+ *
138
+ * @throws {@link Chrt.UnprocessableEntityError}
139
+ *
140
+ * @example
141
+ * await client.shippingIntegrations.courie.creds.testV1("provider_org_id")
142
+ */
143
+ testV1(providerOrgId, requestOptions) {
144
+ return core.HttpResponsePromise.fromPromise(this.__testV1(providerOrgId, requestOptions));
145
+ }
146
+ __testV1(providerOrgId, requestOptions) {
147
+ return __awaiter(this, void 0, void 0, function* () {
148
+ var _a, _b, _c, _d;
149
+ 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);
150
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
151
+ 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/courie/creds/test/v1/${encodeURIComponent(providerOrgId)}`),
152
+ method: "POST",
153
+ headers: _headers,
154
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
155
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
156
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
157
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
158
+ });
159
+ if (_response.ok) {
160
+ return { data: _response.body, rawResponse: _response.rawResponse };
161
+ }
162
+ if (_response.error.reason === "status-code") {
163
+ switch (_response.error.statusCode) {
164
+ case 422:
165
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
166
+ default:
167
+ throw new errors.ChrtError({
168
+ statusCode: _response.error.statusCode,
169
+ body: _response.error.body,
170
+ rawResponse: _response.rawResponse,
171
+ });
172
+ }
173
+ }
174
+ switch (_response.error.reason) {
175
+ case "non-json":
176
+ throw new errors.ChrtError({
177
+ statusCode: _response.error.statusCode,
178
+ body: _response.error.rawBody,
179
+ rawResponse: _response.rawResponse,
180
+ });
181
+ case "timeout":
182
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping_integrations/courie/creds/test/v1/{provider_org_id}.");
183
+ case "unknown":
184
+ throw new errors.ChrtError({
185
+ message: _response.error.errorMessage,
186
+ rawResponse: _response.rawResponse,
187
+ });
188
+ }
189
+ });
190
+ }
191
+ /**
192
+ * Stores Courie credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (CourieCredsClientCreate1) -> (PydanticObjectId)
193
+ *
194
+ * @param {string} providerOrgId - Must be a string starting with `org_`
195
+ * @param {Chrt.shippingIntegrations.courie.CourieCredsClientCreate1} request
196
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
197
+ *
198
+ * @throws {@link Chrt.UnprocessableEntityError}
199
+ *
200
+ * @example
201
+ * await client.shippingIntegrations.courie.creds.createV1("provider_org_id", {
202
+ * api_key: "api_key",
203
+ * courier_id: "courier_id",
204
+ * schema_version: 1
205
+ * })
206
+ */
207
+ createV1(providerOrgId, request, requestOptions) {
208
+ return core.HttpResponsePromise.fromPromise(this.__createV1(providerOrgId, request, requestOptions));
209
+ }
210
+ __createV1(providerOrgId, request, requestOptions) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ var _a, _b, _c, _d;
213
+ 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);
214
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
215
+ 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/courie/creds/v1/${encodeURIComponent(providerOrgId)}`),
216
+ method: "POST",
217
+ headers: _headers,
218
+ contentType: "application/json",
219
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
220
+ requestType: "json",
221
+ body: request,
222
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
223
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
224
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
225
+ });
226
+ if (_response.ok) {
227
+ return { data: _response.body, rawResponse: _response.rawResponse };
228
+ }
229
+ if (_response.error.reason === "status-code") {
230
+ switch (_response.error.statusCode) {
231
+ case 422:
232
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
233
+ default:
234
+ throw new errors.ChrtError({
235
+ statusCode: _response.error.statusCode,
236
+ body: _response.error.body,
237
+ rawResponse: _response.rawResponse,
238
+ });
239
+ }
240
+ }
241
+ switch (_response.error.reason) {
242
+ case "non-json":
243
+ throw new errors.ChrtError({
244
+ statusCode: _response.error.statusCode,
245
+ body: _response.error.rawBody,
246
+ rawResponse: _response.rawResponse,
247
+ });
248
+ case "timeout":
249
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping_integrations/courie/creds/v1/{provider_org_id}.");
250
+ case "unknown":
251
+ throw new errors.ChrtError({
252
+ message: _response.error.errorMessage,
253
+ rawResponse: _response.rawResponse,
254
+ });
255
+ }
256
+ });
257
+ }
258
+ /**
259
+ * Deletes stored Courie credentials for one provider. | authz: min_org_role=administrator | () -> (bool)
260
+ *
261
+ * @param {string} providerOrgId - Must be a string starting with `org_`
262
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
263
+ *
264
+ * @throws {@link Chrt.UnprocessableEntityError}
265
+ *
266
+ * @example
267
+ * await client.shippingIntegrations.courie.creds.deleteV1("provider_org_id")
268
+ */
269
+ deleteV1(providerOrgId, requestOptions) {
270
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(providerOrgId, requestOptions));
271
+ }
272
+ __deleteV1(providerOrgId, requestOptions) {
273
+ return __awaiter(this, void 0, void 0, function* () {
274
+ var _a, _b, _c, _d;
275
+ 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);
276
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
277
+ 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/courie/creds/v1/${encodeURIComponent(providerOrgId)}`),
278
+ method: "DELETE",
279
+ headers: _headers,
280
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
281
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
282
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
283
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
284
+ });
285
+ if (_response.ok) {
286
+ return { data: _response.body, rawResponse: _response.rawResponse };
287
+ }
288
+ if (_response.error.reason === "status-code") {
289
+ switch (_response.error.statusCode) {
290
+ case 422:
291
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
292
+ default:
293
+ throw new errors.ChrtError({
294
+ statusCode: _response.error.statusCode,
295
+ body: _response.error.body,
296
+ rawResponse: _response.rawResponse,
297
+ });
298
+ }
299
+ }
300
+ switch (_response.error.reason) {
301
+ case "non-json":
302
+ throw new errors.ChrtError({
303
+ statusCode: _response.error.statusCode,
304
+ body: _response.error.rawBody,
305
+ rawResponse: _response.rawResponse,
306
+ });
307
+ case "timeout":
308
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping_integrations/courie/creds/v1/{provider_org_id}.");
309
+ case "unknown":
310
+ throw new errors.ChrtError({
311
+ message: _response.error.errorMessage,
312
+ rawResponse: _response.rawResponse,
313
+ });
314
+ }
315
+ });
316
+ }
317
+ /**
318
+ * Updates stored Courie credentials for one provider. | authz: min_org_role=administrator | (CourieCredsClientUpdate1) -> (bool)
319
+ *
320
+ * @param {string} providerOrgId - Must be a string starting with `org_`
321
+ * @param {Chrt.shippingIntegrations.courie.CourieCredsClientUpdate1} request
322
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
323
+ *
324
+ * @throws {@link Chrt.UnprocessableEntityError}
325
+ *
326
+ * @example
327
+ * await client.shippingIntegrations.courie.creds.updateV1("provider_org_id")
328
+ */
329
+ updateV1(providerOrgId, request = {}, requestOptions) {
330
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(providerOrgId, request, requestOptions));
331
+ }
332
+ __updateV1(providerOrgId_1) {
333
+ return __awaiter(this, arguments, void 0, function* (providerOrgId, request = {}, requestOptions) {
334
+ var _a, _b, _c, _d;
335
+ 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);
336
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
337
+ 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/courie/creds/v1/${encodeURIComponent(providerOrgId)}`),
338
+ method: "PATCH",
339
+ headers: _headers,
340
+ contentType: "application/json",
341
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
342
+ requestType: "json",
343
+ body: request,
344
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
345
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
346
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
347
+ });
348
+ if (_response.ok) {
349
+ return { data: _response.body, rawResponse: _response.rawResponse };
350
+ }
351
+ if (_response.error.reason === "status-code") {
352
+ switch (_response.error.statusCode) {
353
+ case 422:
354
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
355
+ default:
356
+ throw new errors.ChrtError({
357
+ statusCode: _response.error.statusCode,
358
+ body: _response.error.body,
359
+ rawResponse: _response.rawResponse,
360
+ });
361
+ }
362
+ }
363
+ switch (_response.error.reason) {
364
+ case "non-json":
365
+ throw new errors.ChrtError({
366
+ statusCode: _response.error.statusCode,
367
+ body: _response.error.rawBody,
368
+ rawResponse: _response.rawResponse,
369
+ });
370
+ case "timeout":
371
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping_integrations/courie/creds/v1/{provider_org_id}.");
372
+ case "unknown":
373
+ throw new errors.ChrtError({
374
+ message: _response.error.errorMessage,
375
+ rawResponse: _response.rawResponse,
376
+ });
377
+ }
378
+ });
379
+ }
380
+ _getAuthorizationHeader() {
381
+ return __awaiter(this, void 0, void 0, function* () {
382
+ const bearer = yield core.Supplier.get(this._options.token);
383
+ if (bearer != null) {
384
+ return `Bearer ${bearer}`;
385
+ }
386
+ return undefined;
387
+ });
388
+ }
389
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * api_key: "api_key",
8
+ * courier_id: "courier_id",
9
+ * schema_version: 1
10
+ * }
11
+ */
12
+ export interface CourieCredsClientCreate1 {
13
+ api_key: string;
14
+ courier_id: string;
15
+ customer_ids?: string[];
16
+ notes?: string | null;
17
+ schema_version: number;
18
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface CourieCredsClientUpdate1 {
9
+ api_key?: string | null;
10
+ api_key__set_to_None?: boolean;
11
+ courier_id?: string | null;
12
+ customer_ids?: string[];
13
+ notes?: string | null;
14
+ notes__set_to_None?: boolean;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,2 @@
1
+ export { type CourieCredsClientCreate1 } from "./CourieCredsClientCreate1.mjs";
2
+ export { type CourieCredsClientUpdate1 } from "./CourieCredsClientUpdate1.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1,4 @@
1
+ export * as creds from "./creds/index.mjs";
2
+ export * as orders from "./orders/index.mjs";
3
+ export * from "./creds/client/requests/index.mjs";
4
+ export * from "./orders/client/requests/index.mjs";
@@ -0,0 +1,4 @@
1
+ export * as creds from "./creds/index.mjs";
2
+ export * as orders from "./orders/index.mjs";
3
+ export * from "./creds/client/requests/index.mjs";
4
+ export * from "./orders/client/requests/index.mjs";
@@ -0,0 +1,105 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../../../index.mjs";
7
+ export declare namespace Orders {
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 Orders {
31
+ protected readonly _options: Orders.Options;
32
+ constructor(_options?: Orders.Options);
33
+ /**
34
+ * Returns one mirrored Courie order by the provider's own order ID. | () -> (CourieOrder1)
35
+ *
36
+ * @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
37
+ * @param {string} integrationOrderId - Courie's own ID for the order, as carried on a unified order row
38
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Chrt.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.shippingIntegrations.courie.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
44
+ */
45
+ detailByIntegrationOrderIdV1(orgId: string, integrationOrderId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CourieOrder1>;
46
+ private __detailByIntegrationOrderIdV1;
47
+ /**
48
+ * Returns one mirrored Courie order by its Mongo ObjectId. | () -> (CourieOrder1)
49
+ *
50
+ * @param {string} id - Mongo ObjectId of the mirror document. Courie's own order ID is the integration_order_id, accepted by the by_integration_order_id route.
51
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
52
+ *
53
+ * @throws {@link Chrt.UnprocessableEntityError}
54
+ *
55
+ * @example
56
+ * await client.shippingIntegrations.courie.orders.detailV1("id")
57
+ */
58
+ detailV1(id: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CourieOrder1>;
59
+ private __detailV1;
60
+ /**
61
+ * Lists mirrored Courie orders for the caller's organization with filtering, sorting, and pagination. | () -> (CourieOrderListRes)
62
+ *
63
+ * @param {Chrt.shippingIntegrations.courie.OrdersListV1Request} request
64
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
65
+ *
66
+ * @throws {@link Chrt.UnprocessableEntityError}
67
+ *
68
+ * @example
69
+ * await client.shippingIntegrations.courie.orders.listV1({
70
+ * sort_by: "mirrored_at_timestamp",
71
+ * sort_order: "asc",
72
+ * page: 1,
73
+ * page_size: 1,
74
+ * filter_provider_org_id: ["filter_provider_org_id"],
75
+ * filter_integration_order_id: "filter_integration_order_id",
76
+ * filter_customer_id: "filter_customer_id",
77
+ * filter_provider_status: "CREATED",
78
+ * filter_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
79
+ * filter_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z",
80
+ * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
81
+ * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
82
+ * filter_updated_at_timestamp_gte: "2024-01-15T09:30:00Z",
83
+ * filter_updated_at_timestamp_lte: "2024-01-15T09:30:00Z"
84
+ * })
85
+ */
86
+ listV1(request?: Chrt.shippingIntegrations.courie.OrdersListV1Request, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CourieOrderListRes>;
87
+ private __listV1;
88
+ /**
89
+ * Fetches and mirrors one Courie order by the provider's own order ID, updating the unified order list alongside it. | authz: min_org_role=operator | (CourieOrderSyncOneReq) -> (CourieOrder1)
90
+ *
91
+ * @param {Chrt.shippingIntegrations.courie.CourieOrderSyncOneReq} request
92
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
93
+ *
94
+ * @throws {@link Chrt.UnprocessableEntityError}
95
+ *
96
+ * @example
97
+ * await client.shippingIntegrations.courie.orders.syncOneV1({
98
+ * integration_order_id: "integration_order_id",
99
+ * provider_org_id: "provider_org_id"
100
+ * })
101
+ */
102
+ syncOneV1(request: Chrt.shippingIntegrations.courie.CourieOrderSyncOneReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CourieOrder1>;
103
+ private __syncOneV1;
104
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
105
+ }