@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,338 @@
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 Orders {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Returns one mirrored Courie order by the provider's own order ID. | () -> (CourieOrder1)
24
+ *
25
+ * @param {string} orgId - CHRT org ID of the other party (executor if caller is coordinator, coordinator if caller is executor)
26
+ * @param {string} integrationOrderId - Courie's own ID for the order, as carried on a unified order row
27
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @throws {@link Chrt.UnprocessableEntityError}
30
+ *
31
+ * @example
32
+ * await client.shippingIntegrations.courie.orders.detailByIntegrationOrderIdV1("org_id", "integration_order_id")
33
+ */
34
+ detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions));
36
+ }
37
+ __detailByIntegrationOrderIdV1(orgId, integrationOrderId, requestOptions) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ var _a, _b, _c, _d;
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
+ 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/courie/orders/by_integration_order_id/detail/v1/${encodeURIComponent(orgId)}/${encodeURIComponent(integrationOrderId)}`),
43
+ method: "GET",
44
+ headers: _headers,
45
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
46
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
47
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
48
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
49
+ });
50
+ if (_response.ok) {
51
+ return { data: _response.body, rawResponse: _response.rawResponse };
52
+ }
53
+ if (_response.error.reason === "status-code") {
54
+ switch (_response.error.statusCode) {
55
+ case 422:
56
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
57
+ default:
58
+ throw new errors.ChrtError({
59
+ statusCode: _response.error.statusCode,
60
+ body: _response.error.body,
61
+ rawResponse: _response.rawResponse,
62
+ });
63
+ }
64
+ }
65
+ switch (_response.error.reason) {
66
+ case "non-json":
67
+ throw new errors.ChrtError({
68
+ statusCode: _response.error.statusCode,
69
+ body: _response.error.rawBody,
70
+ rawResponse: _response.rawResponse,
71
+ });
72
+ case "timeout":
73
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/courie/orders/by_integration_order_id/detail/v1/{org_id}/{integration_order_id}.");
74
+ case "unknown":
75
+ throw new errors.ChrtError({
76
+ message: _response.error.errorMessage,
77
+ rawResponse: _response.rawResponse,
78
+ });
79
+ }
80
+ });
81
+ }
82
+ /**
83
+ * Returns one mirrored Courie order by its Mongo ObjectId. | () -> (CourieOrder1)
84
+ *
85
+ * @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.
86
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
87
+ *
88
+ * @throws {@link Chrt.UnprocessableEntityError}
89
+ *
90
+ * @example
91
+ * await client.shippingIntegrations.courie.orders.detailV1("id")
92
+ */
93
+ detailV1(id, requestOptions) {
94
+ return core.HttpResponsePromise.fromPromise(this.__detailV1(id, requestOptions));
95
+ }
96
+ __detailV1(id, requestOptions) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ var _a, _b, _c, _d;
99
+ 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);
100
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
101
+ 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/orders/detail/v1/${encodeURIComponent(id)}`),
102
+ method: "GET",
103
+ headers: _headers,
104
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
105
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
106
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
107
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
108
+ });
109
+ if (_response.ok) {
110
+ return { data: _response.body, rawResponse: _response.rawResponse };
111
+ }
112
+ if (_response.error.reason === "status-code") {
113
+ switch (_response.error.statusCode) {
114
+ case 422:
115
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
116
+ default:
117
+ throw new errors.ChrtError({
118
+ statusCode: _response.error.statusCode,
119
+ body: _response.error.body,
120
+ rawResponse: _response.rawResponse,
121
+ });
122
+ }
123
+ }
124
+ switch (_response.error.reason) {
125
+ case "non-json":
126
+ throw new errors.ChrtError({
127
+ statusCode: _response.error.statusCode,
128
+ body: _response.error.rawBody,
129
+ rawResponse: _response.rawResponse,
130
+ });
131
+ case "timeout":
132
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/courie/orders/detail/v1/{id}.");
133
+ case "unknown":
134
+ throw new errors.ChrtError({
135
+ message: _response.error.errorMessage,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ }
139
+ });
140
+ }
141
+ /**
142
+ * Lists mirrored Courie orders for the caller's organization with filtering, sorting, and pagination. | () -> (CourieOrderListRes)
143
+ *
144
+ * @param {Chrt.shippingIntegrations.courie.OrdersListV1Request} request
145
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
146
+ *
147
+ * @throws {@link Chrt.UnprocessableEntityError}
148
+ *
149
+ * @example
150
+ * await client.shippingIntegrations.courie.orders.listV1({
151
+ * sort_by: "mirrored_at_timestamp",
152
+ * sort_order: "asc",
153
+ * page: 1,
154
+ * page_size: 1,
155
+ * filter_provider_org_id: ["filter_provider_org_id"],
156
+ * filter_integration_order_id: "filter_integration_order_id",
157
+ * filter_customer_id: "filter_customer_id",
158
+ * filter_provider_status: "CREATED",
159
+ * filter_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
160
+ * filter_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z",
161
+ * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
162
+ * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
163
+ * filter_updated_at_timestamp_gte: "2024-01-15T09:30:00Z",
164
+ * filter_updated_at_timestamp_lte: "2024-01-15T09:30:00Z"
165
+ * })
166
+ */
167
+ listV1(request = {}, requestOptions) {
168
+ return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
169
+ }
170
+ __listV1() {
171
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
172
+ var _a, _b, _c, _d, _e, _f;
173
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_provider_org_id: filterProviderOrgId, filter_integration_order_id: filterIntegrationOrderId, filter_customer_id: filterCustomerId, filter_provider_status: filterProviderStatus, filter_mirrored_at_timestamp_gte: filterMirroredAtTimestampGte, filter_mirrored_at_timestamp_lte: filterMirroredAtTimestampLte, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_updated_at_timestamp_gte: filterUpdatedAtTimestampGte, filter_updated_at_timestamp_lte: filterUpdatedAtTimestampLte, } = request;
174
+ const _queryParams = {};
175
+ if (sortBy !== undefined) {
176
+ _queryParams["sort_by"] = sortBy;
177
+ }
178
+ if (sortOrder !== undefined) {
179
+ _queryParams["sort_order"] = sortOrder;
180
+ }
181
+ if (page !== undefined) {
182
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
183
+ }
184
+ if (pageSize !== undefined) {
185
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
186
+ }
187
+ if (filterProviderOrgId !== undefined) {
188
+ if (Array.isArray(filterProviderOrgId)) {
189
+ _queryParams["filter_provider_org_id"] = filterProviderOrgId.map((item) => item);
190
+ }
191
+ else {
192
+ _queryParams["filter_provider_org_id"] = filterProviderOrgId;
193
+ }
194
+ }
195
+ if (filterIntegrationOrderId !== undefined) {
196
+ _queryParams["filter_integration_order_id"] = filterIntegrationOrderId;
197
+ }
198
+ if (filterCustomerId !== undefined) {
199
+ _queryParams["filter_customer_id"] = filterCustomerId;
200
+ }
201
+ if (filterProviderStatus !== undefined) {
202
+ _queryParams["filter_provider_status"] = filterProviderStatus;
203
+ }
204
+ if (filterMirroredAtTimestampGte !== undefined) {
205
+ _queryParams["filter_mirrored_at_timestamp_gte"] = filterMirroredAtTimestampGte;
206
+ }
207
+ if (filterMirroredAtTimestampLte !== undefined) {
208
+ _queryParams["filter_mirrored_at_timestamp_lte"] = filterMirroredAtTimestampLte;
209
+ }
210
+ if (filterCreatedAtTimestampGte !== undefined) {
211
+ _queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
212
+ }
213
+ if (filterCreatedAtTimestampLte !== undefined) {
214
+ _queryParams["filter_created_at_timestamp_lte"] = filterCreatedAtTimestampLte;
215
+ }
216
+ if (filterUpdatedAtTimestampGte !== undefined) {
217
+ _queryParams["filter_updated_at_timestamp_gte"] = filterUpdatedAtTimestampGte;
218
+ }
219
+ if (filterUpdatedAtTimestampLte !== undefined) {
220
+ _queryParams["filter_updated_at_timestamp_lte"] = filterUpdatedAtTimestampLte;
221
+ }
222
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
223
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
224
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping_integrations/courie/orders/list/v1"),
225
+ method: "GET",
226
+ headers: _headers,
227
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
228
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
229
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
230
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
231
+ });
232
+ if (_response.ok) {
233
+ return { data: _response.body, rawResponse: _response.rawResponse };
234
+ }
235
+ if (_response.error.reason === "status-code") {
236
+ switch (_response.error.statusCode) {
237
+ case 422:
238
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
239
+ default:
240
+ throw new errors.ChrtError({
241
+ statusCode: _response.error.statusCode,
242
+ body: _response.error.body,
243
+ rawResponse: _response.rawResponse,
244
+ });
245
+ }
246
+ }
247
+ switch (_response.error.reason) {
248
+ case "non-json":
249
+ throw new errors.ChrtError({
250
+ statusCode: _response.error.statusCode,
251
+ body: _response.error.rawBody,
252
+ rawResponse: _response.rawResponse,
253
+ });
254
+ case "timeout":
255
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/courie/orders/list/v1.");
256
+ case "unknown":
257
+ throw new errors.ChrtError({
258
+ message: _response.error.errorMessage,
259
+ rawResponse: _response.rawResponse,
260
+ });
261
+ }
262
+ });
263
+ }
264
+ /**
265
+ * 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)
266
+ *
267
+ * @param {Chrt.shippingIntegrations.courie.CourieOrderSyncOneReq} request
268
+ * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
269
+ *
270
+ * @throws {@link Chrt.UnprocessableEntityError}
271
+ *
272
+ * @example
273
+ * await client.shippingIntegrations.courie.orders.syncOneV1({
274
+ * integration_order_id: "integration_order_id",
275
+ * provider_org_id: "provider_org_id"
276
+ * })
277
+ */
278
+ syncOneV1(request, requestOptions) {
279
+ return core.HttpResponsePromise.fromPromise(this.__syncOneV1(request, requestOptions));
280
+ }
281
+ __syncOneV1(request, requestOptions) {
282
+ return __awaiter(this, void 0, void 0, function* () {
283
+ var _a, _b, _c, _d;
284
+ 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);
285
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
286
+ 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/orders/sync_one/v1"),
287
+ method: "POST",
288
+ headers: _headers,
289
+ contentType: "application/json",
290
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
291
+ requestType: "json",
292
+ body: request,
293
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
294
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
295
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
296
+ });
297
+ if (_response.ok) {
298
+ return { data: _response.body, rawResponse: _response.rawResponse };
299
+ }
300
+ if (_response.error.reason === "status-code") {
301
+ switch (_response.error.statusCode) {
302
+ case 422:
303
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
304
+ default:
305
+ throw new errors.ChrtError({
306
+ statusCode: _response.error.statusCode,
307
+ body: _response.error.body,
308
+ rawResponse: _response.rawResponse,
309
+ });
310
+ }
311
+ }
312
+ switch (_response.error.reason) {
313
+ case "non-json":
314
+ throw new errors.ChrtError({
315
+ statusCode: _response.error.statusCode,
316
+ body: _response.error.rawBody,
317
+ rawResponse: _response.rawResponse,
318
+ });
319
+ case "timeout":
320
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping_integrations/courie/orders/sync_one/v1.");
321
+ case "unknown":
322
+ throw new errors.ChrtError({
323
+ message: _response.error.errorMessage,
324
+ rawResponse: _response.rawResponse,
325
+ });
326
+ }
327
+ });
328
+ }
329
+ _getAuthorizationHeader() {
330
+ return __awaiter(this, void 0, void 0, function* () {
331
+ const bearer = yield core.Supplier.get(this._options.token);
332
+ if (bearer != null) {
333
+ return `Bearer ${bearer}`;
334
+ }
335
+ return undefined;
336
+ });
337
+ }
338
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * integration_order_id: "integration_order_id",
8
+ * provider_org_id: "provider_org_id"
9
+ * }
10
+ */
11
+ export interface CourieOrderSyncOneReq {
12
+ integration_order_id: string;
13
+ /** Must be a string starting with `org_` */
14
+ provider_org_id: string;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,51 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * sort_by: "mirrored_at_timestamp",
9
+ * sort_order: "asc",
10
+ * page: 1,
11
+ * page_size: 1,
12
+ * filter_provider_org_id: ["filter_provider_org_id"],
13
+ * filter_integration_order_id: "filter_integration_order_id",
14
+ * filter_customer_id: "filter_customer_id",
15
+ * filter_provider_status: "CREATED",
16
+ * filter_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
17
+ * filter_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z",
18
+ * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
19
+ * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
20
+ * filter_updated_at_timestamp_gte: "2024-01-15T09:30:00Z",
21
+ * filter_updated_at_timestamp_lte: "2024-01-15T09:30:00Z"
22
+ * }
23
+ */
24
+ export interface OrdersListV1Request {
25
+ /** Field to sort by. */
26
+ sort_by?: Chrt.CourieOrderSortByEnum | null;
27
+ /** Sort order (asc or desc). */
28
+ sort_order?: Chrt.SortOrderEnum | null;
29
+ page?: number | null;
30
+ page_size?: number | null;
31
+ /** Filter by provider org ID(s) */
32
+ filter_provider_org_id?: (string | null) | (string | null)[];
33
+ /** Filter by Courie's exact order ID */
34
+ filter_integration_order_id?: string | null;
35
+ /** Filter by the Courie customer the order belongs to */
36
+ filter_customer_id?: string | null;
37
+ /** Filter by Courie's own order status */
38
+ filter_provider_status?: Chrt.CourieOrderStatusEnum1 | null;
39
+ /** Filter mirrored_at_timestamp >= value */
40
+ filter_mirrored_at_timestamp_gte?: string | null;
41
+ /** Filter mirrored_at_timestamp <= value */
42
+ filter_mirrored_at_timestamp_lte?: string | null;
43
+ /** Filter created_at_timestamp >= value */
44
+ filter_created_at_timestamp_gte?: string | null;
45
+ /** Filter created_at_timestamp <= value */
46
+ filter_created_at_timestamp_lte?: string | null;
47
+ /** Filter updated_at_timestamp >= value */
48
+ filter_updated_at_timestamp_gte?: string | null;
49
+ /** Filter updated_at_timestamp <= value */
50
+ filter_updated_at_timestamp_lte?: string | null;
51
+ }
@@ -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 OrdersListV1Request } from "./OrdersListV1Request.mjs";
2
+ export { type CourieOrderSyncOneReq } from "./CourieOrderSyncOneReq.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -2,6 +2,7 @@ export * as connections from "./connections/index.mjs";
2
2
  export * as integrationExecutors from "./integrationExecutors/index.mjs";
3
3
  export * as orders from "./orders/index.mjs";
4
4
  export * as atlas from "./atlas/index.mjs";
5
+ export * as courie from "./courie/index.mjs";
5
6
  export * as cxt from "./cxt/index.mjs";
6
7
  export * as dispatchScience from "./dispatchScience/index.mjs";
7
8
  export * as ecourier from "./ecourier/index.mjs";
@@ -2,6 +2,7 @@ export * as connections from "./connections/index.mjs";
2
2
  export * as integrationExecutors from "./integrationExecutors/index.mjs";
3
3
  export * as orders from "./orders/index.mjs";
4
4
  export * as atlas from "./atlas/index.mjs";
5
+ export * as courie from "./courie/index.mjs";
5
6
  export * as cxt from "./cxt/index.mjs";
6
7
  export * as dispatchScience from "./dispatchScience/index.mjs";
7
8
  export * as ecourier from "./ecourier/index.mjs";
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface CourieAddressResponse1 {
6
+ city?: string | null;
7
+ country?: string | null;
8
+ display?: string | null;
9
+ lngLat?: Chrt.CourieLatLngResponse1 | null;
10
+ postalCode?: string | null;
11
+ state?: string | null;
12
+ streetAddress?: string | null;
13
+ suite?: string | null;
14
+ /** Accepts any additional properties */
15
+ [key: string]: any;
16
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CourieAttemptReasonResponse1 {
5
+ code?: string | null;
6
+ name?: string | null;
7
+ /** Accepts any additional properties */
8
+ [key: string]: any;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The only shape of a Courie credential a user is ever allowed to receive.
6
+ */
7
+ export interface CourieCredsLimited1 {
8
+ _id: string;
9
+ active?: boolean;
10
+ courier_id: string;
11
+ created_at_timestamp: string;
12
+ customer_ids?: string[];
13
+ high_water_mark_timestamp?: string | null;
14
+ notes?: string | null;
15
+ /** Must be a string starting with `org_` */
16
+ org_id: string;
17
+ /** Must be a string starting with `user_` */
18
+ owned_by_user_id: string;
19
+ /** Must be a string starting with `org_` */
20
+ provider_org_id: string;
21
+ schema_version: number;
22
+ shipping_integration: "courie";
23
+ updated_at_timestamp: string;
24
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface CourieCredsListRes {
6
+ items: Chrt.CourieCredsLimited1[];
7
+ total_count: number;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Result of testing whether a stored Courie credential still works.
6
+ */
7
+ export interface CourieCredsTestRes {
8
+ failure_reason?: string | null;
9
+ ok: boolean;
10
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CourieCustomFieldResponse1 {
5
+ name?: string | null;
6
+ type?: string | null;
7
+ value?: string | null;
8
+ /** Accepts any additional properties */
9
+ [key: string]: any;
10
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CourieDriverAnswerResponse1 {
5
+ answer?: string | null;
6
+ photoUrl?: string | null;
7
+ question?: string | null;
8
+ type?: string | null;
9
+ /** Accepts any additional properties */
10
+ [key: string]: any;
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CourieDriverResponse1 {
5
+ firstName?: string | null;
6
+ lastName?: string | null;
7
+ /** Accepts any additional properties */
8
+ [key: string]: any;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CourieLatLngResponse1 {
5
+ latitude?: number | null;
6
+ longitude?: number | null;
7
+ valid?: boolean | null;
8
+ /** Accepts any additional properties */
9
+ [key: string]: any;
10
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CourieLocationScanResponse1 {
5
+ code?: string | null;
6
+ scannedAt?: number | null;
7
+ /** Accepts any additional properties */
8
+ [key: string]: any;
9
+ }