@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
@@ -60,8 +60,8 @@ class ChrtClient {
60
60
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
61
61
  "X-Fern-Language": "JavaScript",
62
62
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
63
- "X-Fern-SDK-Version": "1.1000.0",
64
- "User-Agent": "@chrt-inc/typescript-sdk/1.1000.0",
63
+ "X-Fern-SDK-Version": "1.1002.0",
64
+ "User-Agent": "@chrt-inc/typescript-sdk/1.1002.0",
65
65
  "X-Fern-Runtime": core.RUNTIME.type,
66
66
  "X-Fern-Runtime-Version": core.RUNTIME.version,
67
67
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -7,6 +7,7 @@ import { Connections } from "../resources/connections/client/Client.js";
7
7
  import { IntegrationExecutors } from "../resources/integrationExecutors/client/Client.js";
8
8
  import { Orders } from "../resources/orders/client/Client.js";
9
9
  import { Atlas } from "../resources/atlas/client/Client.js";
10
+ import { Courie } from "../resources/courie/client/Client.js";
10
11
  import { Cxt } from "../resources/cxt/client/Client.js";
11
12
  import { DispatchScience } from "../resources/dispatchScience/client/Client.js";
12
13
  import { Ecourier } from "../resources/ecourier/client/Client.js";
@@ -29,6 +30,7 @@ export declare class ShippingIntegrations {
29
30
  protected _integrationExecutors: IntegrationExecutors | undefined;
30
31
  protected _orders: Orders | undefined;
31
32
  protected _atlas: Atlas | undefined;
33
+ protected _courie: Courie | undefined;
32
34
  protected _cxt: Cxt | undefined;
33
35
  protected _dispatchScience: DispatchScience | undefined;
34
36
  protected _ecourier: Ecourier | undefined;
@@ -39,6 +41,7 @@ export declare class ShippingIntegrations {
39
41
  get integrationExecutors(): IntegrationExecutors;
40
42
  get orders(): Orders;
41
43
  get atlas(): Atlas;
44
+ get courie(): Courie;
42
45
  get cxt(): Cxt;
43
46
  get dispatchScience(): DispatchScience;
44
47
  get ecourier(): Ecourier;
@@ -8,11 +8,12 @@ const Client_js_1 = require("../resources/connections/client/Client.js");
8
8
  const Client_js_2 = require("../resources/integrationExecutors/client/Client.js");
9
9
  const Client_js_3 = require("../resources/orders/client/Client.js");
10
10
  const Client_js_4 = require("../resources/atlas/client/Client.js");
11
- const Client_js_5 = require("../resources/cxt/client/Client.js");
12
- const Client_js_6 = require("../resources/dispatchScience/client/Client.js");
13
- const Client_js_7 = require("../resources/ecourier/client/Client.js");
14
- const Client_js_8 = require("../resources/ontime360/client/Client.js");
15
- const Client_js_9 = require("../resources/xcelerator/client/Client.js");
11
+ const Client_js_5 = require("../resources/courie/client/Client.js");
12
+ const Client_js_6 = require("../resources/cxt/client/Client.js");
13
+ const Client_js_7 = require("../resources/dispatchScience/client/Client.js");
14
+ const Client_js_8 = require("../resources/ecourier/client/Client.js");
15
+ const Client_js_9 = require("../resources/ontime360/client/Client.js");
16
+ const Client_js_10 = require("../resources/xcelerator/client/Client.js");
16
17
  class ShippingIntegrations {
17
18
  constructor(_options = {}) {
18
19
  this._options = _options;
@@ -33,25 +34,29 @@ class ShippingIntegrations {
33
34
  var _a;
34
35
  return ((_a = this._atlas) !== null && _a !== void 0 ? _a : (this._atlas = new Client_js_4.Atlas(this._options)));
35
36
  }
37
+ get courie() {
38
+ var _a;
39
+ return ((_a = this._courie) !== null && _a !== void 0 ? _a : (this._courie = new Client_js_5.Courie(this._options)));
40
+ }
36
41
  get cxt() {
37
42
  var _a;
38
- return ((_a = this._cxt) !== null && _a !== void 0 ? _a : (this._cxt = new Client_js_5.Cxt(this._options)));
43
+ return ((_a = this._cxt) !== null && _a !== void 0 ? _a : (this._cxt = new Client_js_6.Cxt(this._options)));
39
44
  }
40
45
  get dispatchScience() {
41
46
  var _a;
42
- return ((_a = this._dispatchScience) !== null && _a !== void 0 ? _a : (this._dispatchScience = new Client_js_6.DispatchScience(this._options)));
47
+ return ((_a = this._dispatchScience) !== null && _a !== void 0 ? _a : (this._dispatchScience = new Client_js_7.DispatchScience(this._options)));
43
48
  }
44
49
  get ecourier() {
45
50
  var _a;
46
- return ((_a = this._ecourier) !== null && _a !== void 0 ? _a : (this._ecourier = new Client_js_7.Ecourier(this._options)));
51
+ return ((_a = this._ecourier) !== null && _a !== void 0 ? _a : (this._ecourier = new Client_js_8.Ecourier(this._options)));
47
52
  }
48
53
  get ontime360() {
49
54
  var _a;
50
- return ((_a = this._ontime360) !== null && _a !== void 0 ? _a : (this._ontime360 = new Client_js_8.Ontime360(this._options)));
55
+ return ((_a = this._ontime360) !== null && _a !== void 0 ? _a : (this._ontime360 = new Client_js_9.Ontime360(this._options)));
51
56
  }
52
57
  get xcelerator() {
53
58
  var _a;
54
- return ((_a = this._xcelerator) !== null && _a !== void 0 ? _a : (this._xcelerator = new Client_js_9.Xcelerator(this._options)));
59
+ return ((_a = this._xcelerator) !== null && _a !== void 0 ? _a : (this._xcelerator = new Client_js_10.Xcelerator(this._options)));
55
60
  }
56
61
  }
57
62
  exports.ShippingIntegrations = ShippingIntegrations;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.js";
5
+ import * as core from "../../../../../../core/index.js";
6
+ import { Creds } from "../resources/creds/client/Client.js";
7
+ import { Orders } from "../resources/orders/client/Client.js";
8
+ export declare namespace Courie {
9
+ interface Options {
10
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
11
+ /** Specify a custom URL to connect the client to. */
12
+ baseUrl?: core.Supplier<string>;
13
+ token?: core.Supplier<core.BearerToken | undefined>;
14
+ /** Additional headers to include in requests. */
15
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
16
+ fetcher?: core.FetchFunction;
17
+ }
18
+ }
19
+ export declare class Courie {
20
+ protected readonly _options: Courie.Options;
21
+ protected _creds: Creds | undefined;
22
+ protected _orders: Orders | undefined;
23
+ constructor(_options?: Courie.Options);
24
+ get creds(): Creds;
25
+ get orders(): Orders;
26
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Courie = void 0;
7
+ const Client_js_1 = require("../resources/creds/client/Client.js");
8
+ const Client_js_2 = require("../resources/orders/client/Client.js");
9
+ class Courie {
10
+ constructor(_options = {}) {
11
+ this._options = _options;
12
+ }
13
+ get creds() {
14
+ var _a;
15
+ return ((_a = this._creds) !== null && _a !== void 0 ? _a : (this._creds = new Client_js_1.Creds(this._options)));
16
+ }
17
+ get orders() {
18
+ var _a;
19
+ return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_2.Orders(this._options)));
20
+ }
21
+ }
22
+ exports.Courie = Courie;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./resources/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,115 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.js";
5
+ import * as core from "../../../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../../../index.js";
7
+ export declare namespace Creds {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class Creds {
31
+ protected readonly _options: Creds.Options;
32
+ constructor(_options?: Creds.Options);
33
+ /**
34
+ * Returns the caller's Courie credential for one provider, without API key. | () -> (CourieCredsLimited1)
35
+ *
36
+ * @param {string} providerOrgId - Must be a string starting with `org_`
37
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.shippingIntegrations.courie.creds.detailV1("provider_org_id")
43
+ */
44
+ detailV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.CourieCredsLimited1>;
45
+ private __detailV1;
46
+ /**
47
+ * Lists the caller's Courie credentials, one per connected provider, without API key. | () -> (CourieCredsListRes)
48
+ *
49
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @example
52
+ * await client.shippingIntegrations.courie.creds.listV1()
53
+ */
54
+ listV1(requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.CourieCredsListRes>;
55
+ private __listV1;
56
+ /**
57
+ * Tests whether stored Courie credentials can authenticate against the provider. | authz: min_org_role=operator | () -> (CourieCredsTestRes)
58
+ *
59
+ * @param {string} providerOrgId - Must be a string starting with `org_`
60
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
61
+ *
62
+ * @throws {@link Chrt.UnprocessableEntityError}
63
+ *
64
+ * @example
65
+ * await client.shippingIntegrations.courie.creds.testV1("provider_org_id")
66
+ */
67
+ testV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.CourieCredsTestRes>;
68
+ private __testV1;
69
+ /**
70
+ * Stores Courie credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (CourieCredsClientCreate1) -> (PydanticObjectId)
71
+ *
72
+ * @param {string} providerOrgId - Must be a string starting with `org_`
73
+ * @param {Chrt.shippingIntegrations.courie.CourieCredsClientCreate1} request
74
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
75
+ *
76
+ * @throws {@link Chrt.UnprocessableEntityError}
77
+ *
78
+ * @example
79
+ * await client.shippingIntegrations.courie.creds.createV1("provider_org_id", {
80
+ * api_key: "api_key",
81
+ * courier_id: "courier_id",
82
+ * schema_version: 1
83
+ * })
84
+ */
85
+ createV1(providerOrgId: string, request: Chrt.shippingIntegrations.courie.CourieCredsClientCreate1, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<string>;
86
+ private __createV1;
87
+ /**
88
+ * Deletes stored Courie credentials for one provider. | authz: min_org_role=administrator | () -> (bool)
89
+ *
90
+ * @param {string} providerOrgId - Must be a string starting with `org_`
91
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @throws {@link Chrt.UnprocessableEntityError}
94
+ *
95
+ * @example
96
+ * await client.shippingIntegrations.courie.creds.deleteV1("provider_org_id")
97
+ */
98
+ deleteV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<boolean>;
99
+ private __deleteV1;
100
+ /**
101
+ * Updates stored Courie credentials for one provider. | authz: min_org_role=administrator | (CourieCredsClientUpdate1) -> (bool)
102
+ *
103
+ * @param {string} providerOrgId - Must be a string starting with `org_`
104
+ * @param {Chrt.shippingIntegrations.courie.CourieCredsClientUpdate1} request
105
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
106
+ *
107
+ * @throws {@link Chrt.UnprocessableEntityError}
108
+ *
109
+ * @example
110
+ * await client.shippingIntegrations.courie.creds.updateV1("provider_org_id")
111
+ */
112
+ updateV1(providerOrgId: string, request?: Chrt.shippingIntegrations.courie.CourieCredsClientUpdate1, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<boolean>;
113
+ private __updateV1;
114
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
115
+ }