@chrt-inc/typescript-sdk 1.929.0 → 1.930.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 (180) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shipping/client/Client.d.ts +0 -3
  3. package/dist/cjs/api/resources/shipping/client/Client.js +10 -15
  4. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +6 -3
  5. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +19 -11
  6. package/dist/cjs/api/resources/shipping/resources/flights/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/shipping/resources/flights/client/index.js +15 -0
  8. package/dist/cjs/api/resources/shipping/resources/flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.d.ts +13 -0
  9. package/dist/cjs/api/resources/shipping/resources/flights/client/requests/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -2
  11. package/dist/cjs/api/resources/shipping/resources/index.js +2 -3
  12. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +103 -0
  13. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +442 -0
  14. package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts} +1 -1
  15. package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersDeleteManyDraftsReq.d.ts} +1 -1
  16. package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersTaskGroupOrderingReq.d.ts} +2 -2
  17. package/dist/cjs/api/resources/shipping/resources/orders/{resources/drafts/client/requests/OrdersDraftUpdateReq.d.ts → client/requests/OrdersUpdateDraftReq.d.ts} +2 -2
  18. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +4 -0
  19. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +13 -0
  20. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +59 -0
  21. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.ts +0 -109
  22. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.js +0 -452
  23. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +0 -2
  24. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.ts +0 -4
  25. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/index.d.ts +0 -1
  26. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/index.js +0 -1
  27. package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts +13 -0
  28. package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js +59 -0
  29. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +3 -2
  30. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +11 -7
  31. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.ts +4 -1
  32. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +0 -1
  33. package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +0 -1
  34. package/dist/cjs/api/types/{OrdersDraftDeleteManyRes.d.ts → OrdersDeleteManyDraftsRes.d.ts} +1 -1
  35. package/dist/cjs/api/types/{OrdersDraftUpdateRes.d.ts → OrdersUpdateDraftRes.d.ts} +1 -1
  36. package/dist/cjs/api/types/index.d.ts +2 -9
  37. package/dist/cjs/api/types/index.js +2 -9
  38. package/dist/cjs/version.d.ts +1 -1
  39. package/dist/cjs/version.js +1 -1
  40. package/dist/esm/Client.mjs +2 -2
  41. package/dist/esm/api/resources/shipping/client/Client.d.mts +0 -3
  42. package/dist/esm/api/resources/shipping/client/Client.mjs +0 -5
  43. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +6 -3
  44. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +19 -11
  45. package/dist/esm/api/resources/shipping/resources/flights/client/index.d.mts +1 -0
  46. package/dist/esm/api/resources/shipping/resources/flights/client/index.mjs +1 -1
  47. package/dist/esm/api/resources/shipping/resources/flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.d.mts +13 -0
  48. package/dist/esm/api/resources/shipping/resources/flights/client/requests/index.d.mts +1 -0
  49. package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -2
  50. package/dist/esm/api/resources/shipping/resources/index.mjs +1 -2
  51. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +103 -0
  52. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +442 -0
  53. package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts} +1 -1
  54. package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersDeleteManyDraftsReq.d.mts} +1 -1
  55. package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersTaskGroupOrderingReq.d.mts} +2 -2
  56. package/dist/esm/api/resources/shipping/resources/orders/{resources/drafts/client/requests/OrdersDraftUpdateReq.d.mts → client/requests/OrdersUpdateDraftReq.d.mts} +2 -2
  57. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +4 -0
  58. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +13 -0
  59. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +59 -0
  60. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.mts +0 -109
  61. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.mjs +0 -452
  62. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +0 -2
  63. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.mts +0 -4
  64. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/index.d.mts +0 -1
  65. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/index.mjs +0 -1
  66. package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts +13 -0
  67. package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs +59 -0
  68. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +3 -2
  69. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +11 -7
  70. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.mts +4 -1
  71. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +0 -1
  72. package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +0 -1
  73. package/dist/esm/api/types/{OrdersDraftDeleteManyRes.d.mts → OrdersDeleteManyDraftsRes.d.mts} +1 -1
  74. package/dist/esm/api/types/{OrdersDraftUpdateRes.d.mts → OrdersUpdateDraftRes.d.mts} +1 -1
  75. package/dist/esm/api/types/index.d.mts +2 -9
  76. package/dist/esm/api/types/index.mjs +2 -9
  77. package/dist/esm/version.d.mts +1 -1
  78. package/dist/esm/version.mjs +1 -1
  79. package/package.json +1 -1
  80. package/reference.md +326 -935
  81. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +0 -182
  82. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +0 -720
  83. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/index.d.ts +0 -2
  84. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/index.js +0 -17
  85. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +0 -33
  86. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +0 -37
  87. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.ts +0 -14
  88. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +0 -80
  89. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/index.d.ts +0 -4
  90. package/dist/cjs/api/resources/shipping/resources/orderTemplates/index.d.ts +0 -1
  91. package/dist/cjs/api/resources/shipping/resources/orderTemplates/index.js +0 -17
  92. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.js +0 -5
  93. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.d.ts +0 -46
  94. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.js +0 -127
  95. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.d.ts +0 -1
  96. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.js +0 -2
  97. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.d.ts +0 -1
  98. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.js +0 -17
  99. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.d.ts +0 -2
  100. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.js +0 -38
  101. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.ts +0 -46
  102. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.js +0 -127
  103. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.d.ts +0 -1
  104. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.js +0 -2
  105. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.d.ts +0 -1
  106. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.js +0 -17
  107. package/dist/cjs/api/types/Order1.d.ts +0 -43
  108. package/dist/cjs/api/types/Order1.js +0 -5
  109. package/dist/cjs/api/types/OrderTemplate1.d.ts +0 -35
  110. package/dist/cjs/api/types/OrderTemplate1.js +0 -5
  111. package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +0 -16
  112. package/dist/cjs/api/types/OrderTemplateExpanded1.js +0 -5
  113. package/dist/cjs/api/types/OrderTemplateListRes.d.ts +0 -8
  114. package/dist/cjs/api/types/OrderTemplateListRes.js +0 -5
  115. package/dist/cjs/api/types/OrderTemplateOrgInfo1.d.ts +0 -10
  116. package/dist/cjs/api/types/OrderTemplateOrgInfo1.js +0 -5
  117. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +0 -13
  118. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +0 -15
  119. package/dist/cjs/api/types/OrderTemplateSortByEnum.d.ts +0 -11
  120. package/dist/cjs/api/types/OrderTemplateSortByEnum.js +0 -13
  121. package/dist/cjs/api/types/OrdersDraftDeleteManyRes.js +0 -5
  122. package/dist/cjs/api/types/OrdersDraftUpdateRes.js +0 -5
  123. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +0 -182
  124. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +0 -683
  125. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/index.d.mts +0 -2
  126. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/index.mjs +0 -1
  127. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +0 -33
  128. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +0 -37
  129. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.mts +0 -14
  130. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +0 -80
  131. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/index.d.mts +0 -4
  132. package/dist/esm/api/resources/shipping/resources/orderTemplates/index.d.mts +0 -1
  133. package/dist/esm/api/resources/shipping/resources/orderTemplates/index.mjs +0 -1
  134. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.mjs +0 -4
  135. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.d.mts +0 -46
  136. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.mjs +0 -90
  137. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.d.mts +0 -1
  138. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.mjs +0 -1
  139. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.d.mts +0 -1
  140. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/index.mjs +0 -1
  141. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/index.d.mts +0 -2
  142. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/index.mjs +0 -2
  143. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.mts +0 -46
  144. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.mjs +0 -90
  145. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.d.mts +0 -1
  146. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.mjs +0 -1
  147. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.d.mts +0 -1
  148. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.mjs +0 -1
  149. package/dist/esm/api/types/Order1.d.mts +0 -43
  150. package/dist/esm/api/types/Order1.mjs +0 -4
  151. package/dist/esm/api/types/OrderTemplate1.d.mts +0 -35
  152. package/dist/esm/api/types/OrderTemplate1.mjs +0 -4
  153. package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +0 -16
  154. package/dist/esm/api/types/OrderTemplateExpanded1.mjs +0 -4
  155. package/dist/esm/api/types/OrderTemplateListRes.d.mts +0 -8
  156. package/dist/esm/api/types/OrderTemplateListRes.mjs +0 -4
  157. package/dist/esm/api/types/OrderTemplateOrgInfo1.d.mts +0 -10
  158. package/dist/esm/api/types/OrderTemplateOrgInfo1.mjs +0 -4
  159. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +0 -13
  160. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +0 -12
  161. package/dist/esm/api/types/OrderTemplateSortByEnum.d.mts +0 -11
  162. package/dist/esm/api/types/OrderTemplateSortByEnum.mjs +0 -10
  163. package/dist/esm/api/types/OrdersDraftDeleteManyRes.mjs +0 -4
  164. package/dist/esm/api/types/OrdersDraftUpdateRes.mjs +0 -4
  165. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientCreate1.js → flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.js} +0 -0
  166. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates → flights}/client/requests/index.js +0 -0
  167. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientUpdate1.js → orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js} +0 -0
  168. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.js → orders/client/requests/OrdersDeleteManyDraftsReq.js} +0 -0
  169. /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplatesListV1Request.js → orders/client/requests/OrdersTaskGroupOrderingReq.js} +0 -0
  170. /package/dist/cjs/api/resources/shipping/resources/orders/{resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js → client/requests/OrdersUpdateDraftReq.js} +0 -0
  171. /package/dist/cjs/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.js → types/OrdersDeleteManyDraftsRes.js} +0 -0
  172. /package/dist/cjs/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.js → types/OrdersUpdateDraftRes.js} +0 -0
  173. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientCreate1.mjs → flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.mjs} +0 -0
  174. /package/dist/esm/api/resources/shipping/resources/{orderTemplates → flights}/client/requests/index.mjs +0 -0
  175. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientUpdate1.mjs → orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs} +0 -0
  176. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.mjs → orders/client/requests/OrdersDeleteManyDraftsReq.mjs} +0 -0
  177. /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplatesListV1Request.mjs → orders/client/requests/OrdersTaskGroupOrderingReq.mjs} +0 -0
  178. /package/dist/esm/api/resources/shipping/resources/orders/{resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs → client/requests/OrdersUpdateDraftReq.mjs} +0 -0
  179. /package/dist/esm/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.mjs → types/OrdersDeleteManyDraftsRes.mjs} +0 -0
  180. /package/dist/esm/api/{resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftUpdateReq.mjs → types/OrdersUpdateDraftRes.mjs} +0 -0
@@ -1,17 +0,0 @@
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);
@@ -1,43 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Chrt from "../index.js";
5
- export interface Order1 {
6
- _id: string;
7
- awb_numbers?: string[];
8
- cancelled_at_timestamp?: string | null;
9
- completed_at_timestamp?: string | null;
10
- coordinator_assigned_user_ids?: string[];
11
- coordinator_department_id?: string | null;
12
- coordinator_label?: string | null;
13
- /** Must be a string starting with `org_` */
14
- coordinator_org_id?: string | null;
15
- coordinator_shipper_account_ids?: string[];
16
- coordinator_task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToOrder1[];
17
- /** Must be a string starting with `org_` */
18
- created_by_org_id: string;
19
- /** Must be a string starting with `user_` */
20
- created_by_user_id: string;
21
- /** Client-supplied key for idempotent draft creation */
22
- creation_idempotency_key?: string | null;
23
- draft_started_at_timestamp: string;
24
- exception_at_timestamp?: string | null;
25
- in_progress_at_timestamp?: string | null;
26
- invoice_ids?: string[];
27
- /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
28
- off_chrt_reference_id?: string | null;
29
- off_chrt_shipper_org_data_id?: string | null;
30
- order_classification_by_task_group_type?: Chrt.TaskGroupTypeEnum1 | null;
31
- order_schedule_id?: string | null;
32
- order_schedule_run_idempotency_key?: string | null;
33
- order_template_id?: string | null;
34
- order_template_new_id?: string | null;
35
- schema_version: number;
36
- service_line?: Chrt.ServiceLineEnum;
37
- /** Must be a string starting with `org_` */
38
- shipper_org_id?: string | null;
39
- short_id: string;
40
- staged_at_timestamp?: string | null;
41
- status?: Chrt.OrderStatusEnum1;
42
- task_group_details?: Chrt.OrderTaskGroupExecutorDetails1[];
43
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Chrt from "../index.js";
5
- export interface OrderTemplate1 {
6
- _id: string;
7
- archived_at_timestamp?: string | null;
8
- contact_ids?: string[];
9
- coordinator_label?: string | null;
10
- /** Must be a string starting with `org_` */
11
- coordinator_org_id?: string | null;
12
- coordinator_shipper_account_ids?: string[];
13
- created_at_timestamp: string;
14
- department_id?: string | null;
15
- description?: string | null;
16
- driver_ids?: string[];
17
- executor_org_ids?: string[];
18
- last_edited_at_timestamp: string;
19
- last_used_at_timestamp?: string | null;
20
- name: string;
21
- off_chrt_executor_org_data_ids?: string[];
22
- off_chrt_reference_id_str?: string | null;
23
- off_chrt_shipper_org_data_id?: string | null;
24
- /** Must be a string starting with `org_` */
25
- owned_by_org_id: string;
26
- /** Must be a string starting with `user_` */
27
- owned_by_user_id: string;
28
- schema_version: number;
29
- service_line?: Chrt.ServiceLineEnum;
30
- /** Must be a string starting with `org_` */
31
- shipper_org_id?: string | null;
32
- task_lists_to_apply_at_order_creation?: Chrt.TaskListToApplyToOrder1[];
33
- task_lists_to_apply_at_order_staging?: Chrt.TaskListToApplyToOrder1[];
34
- text?: string | null;
35
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Chrt from "../index.js";
5
- export interface OrderTemplateExpanded1 {
6
- contacts?: Chrt.Contact1[];
7
- coordinator_shipper_accounts?: Chrt.Account1[];
8
- drivers?: Chrt.Driver1[];
9
- executor_orgs?: Chrt.OrderTemplateOrgInfo1[];
10
- off_chrt_executor_orgs?: Chrt.OffChrtOrgData1[];
11
- off_chrt_shipper_org?: Chrt.OffChrtOrgData1 | null;
12
- order_template: Chrt.OrderTemplate1;
13
- orders?: Chrt.Order1[];
14
- orders_total_count?: number;
15
- shipper_org?: Chrt.OrderTemplateOrgInfo1 | null;
16
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Chrt from "../index.js";
5
- export interface OrderTemplateListRes {
6
- items: Chrt.OrderTemplate1[];
7
- total_count: number;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface OrderTemplateOrgInfo1 {
5
- company_name?: string | null;
6
- /** Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters. */
7
- handle?: string | null;
8
- /** Must be a string starting with `org_` */
9
- org_id: string;
10
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type OrderTemplateReferenceColumnEnum1 = "shipper_org_id" | "off_chrt_shipper_org_data_id" | "coordinator_shipper_account_ids" | "executor_org_ids" | "off_chrt_executor_org_data_ids" | "driver_ids" | "contact_ids";
5
- export declare const OrderTemplateReferenceColumnEnum1: {
6
- readonly ShipperOrgId: "shipper_org_id";
7
- readonly OffChrtShipperOrgDataId: "off_chrt_shipper_org_data_id";
8
- readonly CoordinatorShipperAccountIds: "coordinator_shipper_account_ids";
9
- readonly ExecutorOrgIds: "executor_org_ids";
10
- readonly OffChrtExecutorOrgDataIds: "off_chrt_executor_org_data_ids";
11
- readonly DriverIds: "driver_ids";
12
- readonly ContactIds: "contact_ids";
13
- };
@@ -1,15 +0,0 @@
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.OrderTemplateReferenceColumnEnum1 = void 0;
7
- exports.OrderTemplateReferenceColumnEnum1 = {
8
- ShipperOrgId: "shipper_org_id",
9
- OffChrtShipperOrgDataId: "off_chrt_shipper_org_data_id",
10
- CoordinatorShipperAccountIds: "coordinator_shipper_account_ids",
11
- ExecutorOrgIds: "executor_org_ids",
12
- OffChrtExecutorOrgDataIds: "off_chrt_executor_org_data_ids",
13
- DriverIds: "driver_ids",
14
- ContactIds: "contact_ids",
15
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type OrderTemplateSortByEnum = "created_at_timestamp" | "last_edited_at_timestamp" | "last_used_at_timestamp" | "name" | "off_chrt_reference_id_str";
5
- export declare const OrderTemplateSortByEnum: {
6
- readonly CreatedAtTimestamp: "created_at_timestamp";
7
- readonly LastEditedAtTimestamp: "last_edited_at_timestamp";
8
- readonly LastUsedAtTimestamp: "last_used_at_timestamp";
9
- readonly Name: "name";
10
- readonly OffChrtReferenceIdStr: "off_chrt_reference_id_str";
11
- };
@@ -1,13 +0,0 @@
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.OrderTemplateSortByEnum = void 0;
7
- exports.OrderTemplateSortByEnum = {
8
- CreatedAtTimestamp: "created_at_timestamp",
9
- LastEditedAtTimestamp: "last_edited_at_timestamp",
10
- LastUsedAtTimestamp: "last_used_at_timestamp",
11
- Name: "name",
12
- OffChrtReferenceIdStr: "off_chrt_reference_id_str",
13
- };
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,182 +0,0 @@
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 OrderTemplates {
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 OrderTemplates {
31
- protected readonly _options: OrderTemplates.Options;
32
- constructor(_options?: OrderTemplates.Options);
33
- /**
34
- * Archives an order template by setting archived_at_timestamp. | authz: min_org_role=operator | () -> (bool)
35
- *
36
- * @param {string} orderTemplateId
37
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
38
- *
39
- * @throws {@link Chrt.UnprocessableEntityError}
40
- *
41
- * @example
42
- * await client.shipping.orderTemplates.archiveV1("order_template_id")
43
- */
44
- archiveV1(orderTemplateId: string, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<boolean>;
45
- private __archiveV1;
46
- /**
47
- * Retrieves an order template with resolved references, recent orders, and total order count. Unresolvable list references are omitted so the caller can detect dangling ids. | authz: min_org_role=operator | () -> (OrderTemplateExpanded1)
48
- *
49
- * @param {string} orderTemplateId
50
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
51
- *
52
- * @throws {@link Chrt.UnprocessableEntityError}
53
- *
54
- * @example
55
- * await client.shipping.orderTemplates.getExpandedByIdV1("order_template_id")
56
- */
57
- getExpandedByIdV1(orderTemplateId: string, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateExpanded1>;
58
- private __getExpandedByIdV1;
59
- /**
60
- * Lists order templates for the caller's organization with filtering, sorting, pagination, and optional full-text search (name, description, text, off_chrt_reference_id_str). | authz: min_org_role=operator | () -> (OrderTemplateListRes)
61
- *
62
- * @param {Chrt.shipping.OrderTemplatesListV1Request} request
63
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
64
- *
65
- * @throws {@link Chrt.UnprocessableEntityError}
66
- *
67
- * @example
68
- * await client.shipping.orderTemplates.listV1({
69
- * sort_by: "created_at_timestamp",
70
- * sort_order: "asc",
71
- * page: 1,
72
- * page_size: 1,
73
- * search: "search",
74
- * filter_archived: true,
75
- * filter_owned_by_user_id: "filter_owned_by_user_id",
76
- * filter_off_chrt_reference_id_str: "filter_off_chrt_reference_id_str",
77
- * filter_shipper_org_id: "filter_shipper_org_id",
78
- * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
79
- * filter_coordinator_org_id: "filter_coordinator_org_id",
80
- * filter_department_id: "filter_department_id",
81
- * filter_coordinator_label: "filter_coordinator_label",
82
- * filter_driver_id: "filter_driver_id",
83
- * filter_contact_id: "filter_contact_id",
84
- * filter_task_lists_to_apply_at_order_creation_task_list_id: "filter_task_lists_to_apply_at_order_creation_task_list_id",
85
- * filter_task_lists_to_apply_at_order_staging_task_list_id: "filter_task_lists_to_apply_at_order_staging_task_list_id",
86
- * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
87
- * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
88
- * filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
89
- * filter_last_edited_at_timestamp_lte: "2024-01-15T09:30:00Z",
90
- * filter_last_used_at_timestamp_gte: "2024-01-15T09:30:00Z",
91
- * filter_last_used_at_timestamp_lte: "2024-01-15T09:30:00Z"
92
- * })
93
- */
94
- listV1(request?: Chrt.shipping.OrderTemplatesListV1Request, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateListRes>;
95
- private __listV1;
96
- /**
97
- * Removes a (possibly dangling) reference id from a template column. | authz: min_org_role=operator | (OrderTemplateRemoveReferenceReq) -> (bool)
98
- *
99
- * @param {string} orderTemplateId
100
- * @param {Chrt.shipping.OrderTemplateRemoveReferenceReq} request
101
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
102
- *
103
- * @throws {@link Chrt.UnprocessableEntityError}
104
- *
105
- * @example
106
- * await client.shipping.orderTemplates.referencesRemoveV1("order_template_id", {
107
- * column: "shipper_org_id"
108
- * })
109
- */
110
- referencesRemoveV1(orderTemplateId: string, request: Chrt.shipping.OrderTemplateRemoveReferenceReq, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<boolean>;
111
- private __referencesRemoveV1;
112
- /**
113
- * Restores an archived order template by clearing archived_at_timestamp. | authz: min_org_role=operator | () -> (bool)
114
- *
115
- * @param {string} orderTemplateId
116
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
117
- *
118
- * @throws {@link Chrt.UnprocessableEntityError}
119
- *
120
- * @example
121
- * await client.shipping.orderTemplates.unarchiveV1("order_template_id")
122
- */
123
- unarchiveV1(orderTemplateId: string, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<boolean>;
124
- private __unarchiveV1;
125
- /**
126
- * Updates an order template. | authz: min_org_role=operator | (OrderTemplateClientUpdate1) -> (bool)
127
- *
128
- * @param {string} orderTemplateId
129
- * @param {Chrt.shipping.OrderTemplateClientUpdate1} request
130
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
131
- *
132
- * @throws {@link Chrt.UnprocessableEntityError}
133
- *
134
- * @example
135
- * await client.shipping.orderTemplates.updateV1("order_template_id")
136
- */
137
- updateV1(orderTemplateId: string, request?: Chrt.shipping.OrderTemplateClientUpdate1, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<boolean>;
138
- private __updateV1;
139
- /**
140
- * Creates a new order template. | authz: min_org_role=operator | (OrderTemplateClientCreate1) -> (PydanticObjectId)
141
- *
142
- * @param {Chrt.shipping.OrderTemplateClientCreate1} request
143
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
144
- *
145
- * @throws {@link Chrt.UnprocessableEntityError}
146
- *
147
- * @example
148
- * await client.shipping.orderTemplates.createV1({
149
- * name: "name",
150
- * schema_version: 1
151
- * })
152
- */
153
- createV1(request: Chrt.shipping.OrderTemplateClientCreate1, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<string>;
154
- private __createV1;
155
- /**
156
- * Retrieves an order template by ID. | authz: min_org_role=operator | () -> (OrderTemplate1)
157
- *
158
- * @param {string} orderTemplateId
159
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
160
- *
161
- * @throws {@link Chrt.UnprocessableEntityError}
162
- *
163
- * @example
164
- * await client.shipping.orderTemplates.getByIdV1("order_template_id")
165
- */
166
- getByIdV1(orderTemplateId: string, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplate1>;
167
- private __getByIdV1;
168
- /**
169
- * Deletes an order template, but only when no orders were built from it (otherwise archive instead). | authz: min_org_role=operator | () -> (bool)
170
- *
171
- * @param {string} orderTemplateId
172
- * @param {OrderTemplates.RequestOptions} requestOptions - Request-specific configuration.
173
- *
174
- * @throws {@link Chrt.UnprocessableEntityError}
175
- *
176
- * @example
177
- * await client.shipping.orderTemplates.deleteV1("order_template_id")
178
- */
179
- deleteV1(orderTemplateId: string, requestOptions?: OrderTemplates.RequestOptions): core.HttpResponsePromise<boolean>;
180
- private __deleteV1;
181
- protected _getAuthorizationHeader(): Promise<string | undefined>;
182
- }