@chrt-inc/typescript-sdk 1.734.0 → 1.749.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 (224) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +2 -29
  3. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +10 -124
  4. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +2 -3
  5. package/dist/cjs/api/resources/shipping/client/Client.d.ts +3 -0
  6. package/dist/cjs/api/resources/shipping/client/Client.js +9 -4
  7. package/dist/cjs/api/resources/shipping/resources/index.d.ts +2 -0
  8. package/dist/cjs/api/resources/shipping/resources/index.js +3 -1
  9. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +16 -0
  10. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +68 -0
  11. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrderDraftsTypeaheadV1Request.d.ts +16 -0
  12. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts +1 -1
  14. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +0 -16
  15. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +0 -68
  16. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/index.d.ts +0 -1
  17. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +1 -1
  18. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +1 -1
  19. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -1
  20. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +25 -41
  21. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +51 -125
  22. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -4
  23. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/index.d.ts +0 -2
  24. package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.d.ts +64 -0
  25. package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.js +196 -0
  26. package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.d.ts +2 -0
  27. package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.js +17 -0
  28. package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.d.ts +4 -6
  29. package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.d.ts +2 -2
  30. package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.d.ts +2 -0
  31. package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.js +2 -0
  32. package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/draft/index.js +17 -0
  34. package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/index.d.ts +2 -0
  35. package/dist/cjs/api/resources/shipping/resources/orderSchedules/resources/index.js +6 -1
  36. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +170 -0
  37. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.js +662 -0
  38. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/index.d.ts +2 -0
  39. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/index.js +17 -0
  40. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +23 -0
  41. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +24 -0
  42. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.ts +14 -0
  43. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.js +5 -0
  44. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +42 -0
  45. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.js +5 -0
  46. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/index.d.ts +4 -0
  47. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/index.js +2 -0
  48. package/dist/cjs/api/resources/shipping/resources/orderTemplates/index.d.ts +1 -0
  49. package/dist/cjs/api/resources/shipping/resources/orderTemplates/index.js +17 -0
  50. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +16 -0
  51. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +68 -0
  52. package/dist/cjs/api/resources/shipping/resources/{orderDrafts/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts → orders/client/requests/OrdersTypeaheadV1Request.d.ts} +1 -1
  53. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersTypeaheadV1Request.js +5 -0
  54. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -0
  55. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +0 -16
  56. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +0 -68
  57. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.ts +0 -1
  58. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +16 -0
  59. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +68 -0
  60. package/dist/cjs/api/resources/shipping/resources/taskGroups/{resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts → client/requests/TaskGroupsTypeaheadV1Request.d.ts} +1 -1
  61. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupsTypeaheadV1Request.js +5 -0
  62. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/index.d.ts +1 -0
  63. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +0 -16
  64. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +0 -68
  65. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +0 -1
  66. package/dist/cjs/api/types/Cargo1.d.ts +1 -3
  67. package/dist/cjs/api/types/CargoManifest1.d.ts +6 -0
  68. package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +4 -2
  69. package/dist/cjs/api/types/OperationsTaskTypeEnum.js +3 -1
  70. package/dist/cjs/api/types/Order1.d.ts +1 -0
  71. package/dist/cjs/api/types/OrderManifest1.d.ts +2 -2
  72. package/dist/cjs/api/types/OrderSchedule1.d.ts +5 -7
  73. package/dist/cjs/api/types/OrderScheduleAboutRes.d.ts +0 -1
  74. package/dist/cjs/api/types/OrderScheduleOrchestratorScheduleStatus.d.ts +0 -1
  75. package/dist/cjs/api/types/OrderScheduleSortByEnum.d.ts +2 -2
  76. package/dist/cjs/api/types/OrderScheduleSortByEnum.js +1 -1
  77. package/dist/cjs/api/types/OrderScheduleSpec1.d.ts +11 -0
  78. package/dist/cjs/api/types/OrderScheduleSpec1.js +5 -0
  79. package/dist/cjs/api/types/OrderTemplate1.d.ts +24 -0
  80. package/dist/cjs/api/types/OrderTemplate1.js +5 -0
  81. package/dist/cjs/api/types/OrderTemplateExpanded.d.ts +12 -0
  82. package/dist/cjs/api/types/OrderTemplateExpanded.js +5 -0
  83. package/dist/cjs/api/types/OrderTemplateListRes.d.ts +8 -0
  84. package/dist/cjs/api/types/OrderTemplateListRes.js +5 -0
  85. package/dist/cjs/api/types/OrderTemplateOrgRef1.d.ts +10 -0
  86. package/dist/cjs/api/types/OrderTemplateOrgRef1.js +5 -0
  87. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +11 -0
  88. package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +13 -0
  89. package/dist/cjs/api/types/OrderTemplateSortByEnum.d.ts +9 -0
  90. package/dist/cjs/api/types/OrderTemplateSortByEnum.js +11 -0
  91. package/dist/cjs/api/types/OrderTypeaheadResult.d.ts +1 -1
  92. package/dist/cjs/api/types/OrderTypeaheadValue.d.ts +7 -0
  93. package/dist/cjs/api/types/OrderTypeaheadValue.js +5 -0
  94. package/dist/cjs/api/types/Task1.d.ts +2 -4
  95. package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -3
  96. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
  97. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -3
  98. package/dist/cjs/api/types/TaskGroupManifest1.d.ts +1 -1
  99. package/dist/cjs/api/types/TaskManifest1.d.ts +13 -4
  100. package/dist/cjs/api/types/index.d.ts +8 -1
  101. package/dist/cjs/api/types/index.js +8 -1
  102. package/dist/cjs/version.d.ts +1 -1
  103. package/dist/cjs/version.js +1 -1
  104. package/dist/esm/Client.mjs +2 -2
  105. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +2 -29
  106. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +10 -124
  107. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +2 -3
  108. package/dist/esm/api/resources/shipping/client/Client.d.mts +3 -0
  109. package/dist/esm/api/resources/shipping/client/Client.mjs +5 -0
  110. package/dist/esm/api/resources/shipping/resources/index.d.mts +2 -0
  111. package/dist/esm/api/resources/shipping/resources/index.mjs +2 -0
  112. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +16 -0
  113. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +68 -0
  114. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrderDraftsTypeaheadV1Request.d.mts +16 -0
  115. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/index.d.mts +1 -0
  116. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts +1 -1
  117. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +0 -16
  118. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +0 -68
  119. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/index.d.mts +0 -1
  120. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +1 -1
  121. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +1 -1
  122. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -1
  123. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +25 -41
  124. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +49 -123
  125. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -4
  126. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/index.d.mts +0 -2
  127. package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.d.mts +64 -0
  128. package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/Client.mjs +159 -0
  129. package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.d.mts +2 -0
  130. package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/index.mjs +1 -0
  131. package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.d.mts +4 -6
  132. package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.d.mts +2 -2
  133. package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.d.mts +2 -0
  134. package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/client/requests/index.mjs +1 -0
  135. package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/index.d.mts +1 -0
  136. package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/draft/index.mjs +1 -0
  137. package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/index.d.mts +2 -0
  138. package/dist/esm/api/resources/shipping/resources/orderSchedules/resources/index.mjs +2 -0
  139. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +170 -0
  140. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.mjs +625 -0
  141. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/index.d.mts +2 -0
  142. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/index.mjs +1 -0
  143. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +23 -0
  144. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +24 -0
  145. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.mts +14 -0
  146. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.mjs +4 -0
  147. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +42 -0
  148. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.mjs +4 -0
  149. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/index.d.mts +4 -0
  150. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/index.mjs +1 -0
  151. package/dist/esm/api/resources/shipping/resources/orderTemplates/index.d.mts +1 -0
  152. package/dist/esm/api/resources/shipping/resources/orderTemplates/index.mjs +1 -0
  153. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +16 -0
  154. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +68 -0
  155. package/dist/esm/api/resources/shipping/resources/{orderDrafts/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts → orders/client/requests/OrdersTypeaheadV1Request.d.mts} +1 -1
  156. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs +4 -0
  157. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -0
  158. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +0 -16
  159. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +0 -68
  160. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.mts +0 -1
  161. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +16 -0
  162. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +68 -0
  163. package/dist/{cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts → esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupsTypeaheadV1Request.d.mts} +1 -1
  164. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/TaskGroupsTypeaheadV1Request.mjs +4 -0
  165. package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/index.d.mts +1 -0
  166. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +0 -16
  167. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +0 -68
  168. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +0 -1
  169. package/dist/esm/api/types/Cargo1.d.mts +1 -3
  170. package/dist/esm/api/types/CargoManifest1.d.mts +6 -0
  171. package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +4 -2
  172. package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +3 -1
  173. package/dist/esm/api/types/Order1.d.mts +1 -0
  174. package/dist/esm/api/types/OrderManifest1.d.mts +2 -2
  175. package/dist/esm/api/types/OrderSchedule1.d.mts +5 -7
  176. package/dist/esm/api/types/OrderScheduleAboutRes.d.mts +0 -1
  177. package/dist/esm/api/types/OrderScheduleOrchestratorScheduleStatus.d.mts +0 -1
  178. package/dist/esm/api/types/OrderScheduleSortByEnum.d.mts +2 -2
  179. package/dist/esm/api/types/OrderScheduleSortByEnum.mjs +1 -1
  180. package/dist/esm/api/types/OrderScheduleSpec1.d.mts +11 -0
  181. package/dist/esm/api/types/OrderScheduleSpec1.mjs +4 -0
  182. package/dist/esm/api/types/OrderTemplate1.d.mts +24 -0
  183. package/dist/esm/api/types/OrderTemplate1.mjs +4 -0
  184. package/dist/esm/api/types/OrderTemplateExpanded.d.mts +12 -0
  185. package/dist/esm/api/types/OrderTemplateExpanded.mjs +4 -0
  186. package/dist/esm/api/types/OrderTemplateListRes.d.mts +8 -0
  187. package/dist/esm/api/types/OrderTemplateListRes.mjs +4 -0
  188. package/dist/esm/api/types/OrderTemplateOrgRef1.d.mts +10 -0
  189. package/dist/esm/api/types/OrderTemplateOrgRef1.mjs +4 -0
  190. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +11 -0
  191. package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +10 -0
  192. package/dist/esm/api/types/OrderTemplateSortByEnum.d.mts +9 -0
  193. package/dist/esm/api/types/OrderTemplateSortByEnum.mjs +8 -0
  194. package/dist/esm/api/types/OrderTypeaheadResult.d.mts +1 -1
  195. package/dist/esm/api/types/OrderTypeaheadValue.d.mts +7 -0
  196. package/dist/esm/api/types/OrderTypeaheadValue.mjs +4 -0
  197. package/dist/esm/api/types/Task1.d.mts +2 -4
  198. package/dist/esm/api/types/TaskArtifact1.d.mts +1 -3
  199. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
  200. package/dist/esm/api/types/TaskGroup1.d.mts +1 -3
  201. package/dist/esm/api/types/TaskGroupManifest1.d.mts +1 -1
  202. package/dist/esm/api/types/TaskManifest1.d.mts +13 -4
  203. package/dist/esm/api/types/index.d.mts +8 -1
  204. package/dist/esm/api/types/index.mjs +8 -1
  205. package/dist/esm/version.d.mts +1 -1
  206. package/dist/esm/version.mjs +1 -1
  207. package/package.json +1 -1
  208. package/reference.md +857 -319
  209. package/dist/cjs/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.d.ts +0 -10
  210. package/dist/cjs/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.js +0 -12
  211. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +0 -16
  212. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +0 -16
  213. package/dist/esm/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.d.mts +0 -10
  214. package/dist/esm/api/types/OrderScheduleOrchestratorScheduleStatusEnum1.mjs +0 -9
  215. /package/dist/cjs/api/resources/shipping/resources/orderDrafts/{resources/expanded/client/requests/ExpandedTypeaheadV1Request.js → client/requests/OrderDraftsTypeaheadV1Request.js} +0 -0
  216. /package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.js +0 -0
  217. /package/dist/cjs/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.js +0 -0
  218. /package/dist/cjs/api/resources/shipping/resources/{orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js → orderTemplates/client/requests/OrderTemplateClientCreate1.js} +0 -0
  219. /package/dist/cjs/api/resources/shipping/resources/{taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js → orderTemplates/client/requests/OrderTemplateClientUpdate1.js} +0 -0
  220. /package/dist/esm/api/resources/shipping/resources/orderDrafts/{resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs → client/requests/OrderDraftsTypeaheadV1Request.mjs} +0 -0
  221. /package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientCreate1.mjs +0 -0
  222. /package/dist/esm/api/resources/shipping/resources/orderSchedules/{client → resources/draft/client}/requests/OrderScheduleClientUpdate1.mjs +0 -0
  223. /package/dist/esm/api/resources/shipping/resources/{orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs → orderTemplates/client/requests/OrderTemplateClientCreate1.mjs} +0 -0
  224. /package/dist/esm/api/resources/shipping/resources/{taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs → orderTemplates/client/requests/OrderTemplateClientUpdate1.mjs} +0 -0
@@ -56,8 +56,8 @@ class ChrtClient {
56
56
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
57
57
  "X-Fern-Language": "JavaScript",
58
58
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
59
- "X-Fern-SDK-Version": "1.734.0",
60
- "User-Agent": "@chrt-inc/typescript-sdk/1.734.0",
59
+ "X-Fern-SDK-Version": "1.749.0",
60
+ "User-Agent": "@chrt-inc/typescript-sdk/1.749.0",
61
61
  "X-Fern-Runtime": core.RUNTIME.type,
62
62
  "X-Fern-Runtime-Version": core.RUNTIME.version,
63
63
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -31,7 +31,7 @@ export declare class OperationsTasks {
31
31
  protected readonly _options: OperationsTasks.Options;
32
32
  constructor(_options?: OperationsTasks.Options);
33
33
  /**
34
- * Lists OperationsTasks for the caller's organization, with order/department/type/status/tag/assignee/deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
34
+ * Lists OperationsTasks for the caller's organization, with order ids / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
35
35
  *
36
36
  * @param {Chrt.operations.OperationsTasksListV1Request} request
37
37
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -44,7 +44,6 @@ export declare class OperationsTasks {
44
44
  * sort_order: "asc",
45
45
  * page: 1,
46
46
  * page_size: 1,
47
- * filter_order_id: "filter_order_id",
48
47
  * filter_department_id: "filter_department_id",
49
48
  * filter_assigned_user_id: "filter_assigned_user_id",
50
49
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
@@ -80,7 +79,7 @@ export declare class OperationsTasks {
80
79
  deleteV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
81
80
  private __deleteV1;
82
81
  /**
83
- * Updates scalar fields (title, description, deadline_timestamp) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
82
+ * Updates editable fields (task_type, title, description, deadline_timestamp, tags, assigned_user_ids) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
84
83
  *
85
84
  * @param {string} taskId
86
85
  * @param {Chrt.operations.OperationsTaskClientUpdate1} request
@@ -112,32 +111,6 @@ export declare class OperationsTasks {
112
111
  */
113
112
  createV1(request: Chrt.operations.OperationsTaskClientCreate1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<string>;
114
113
  private __createV1;
115
- /**
116
- * Marks an OperationsTask as completed. Idempotent — calling on an already-completed task is a no-op that returns False. | authz: min_org_role=operator | () -> (bool)
117
- *
118
- * @param {string} taskId
119
- * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
120
- *
121
- * @throws {@link Chrt.UnprocessableEntityError}
122
- *
123
- * @example
124
- * await client.operations.operationsTasks.completeV1("task_id")
125
- */
126
- completeV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
127
- private __completeV1;
128
- /**
129
- * Marks a previously-completed OperationsTask as incomplete and clears its completion timestamps. Idempotent — calling on an already-incomplete task is a no-op that returns False. | authz: min_org_role=operator | () -> (bool)
130
- *
131
- * @param {string} taskId
132
- * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
133
- *
134
- * @throws {@link Chrt.UnprocessableEntityError}
135
- *
136
- * @example
137
- * await client.operations.operationsTasks.uncompleteV1("task_id")
138
- */
139
- uncompleteV1(taskId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
140
- private __uncompleteV1;
141
114
  /**
142
115
  * Sets an OperationsTask's status (not_started / in_progress / completed / skipped). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
143
116
  *
@@ -56,7 +56,7 @@ class OperationsTasks {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Lists OperationsTasks for the caller's organization, with order/department/type/status/tag/assignee/deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
59
+ * Lists OperationsTasks for the caller's organization, with order ids / department / type / status / tag / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
60
60
  *
61
61
  * @param {Chrt.operations.OperationsTasksListV1Request} request
62
62
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -69,7 +69,6 @@ class OperationsTasks {
69
69
  * sort_order: "asc",
70
70
  * page: 1,
71
71
  * page_size: 1,
72
- * filter_order_id: "filter_order_id",
73
72
  * filter_department_id: "filter_department_id",
74
73
  * filter_assigned_user_id: "filter_assigned_user_id",
75
74
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
@@ -82,7 +81,7 @@ class OperationsTasks {
82
81
  __listV1() {
83
82
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
84
83
  var _a, _b, _c, _d, _e, _f;
85
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_id: filterOrderId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
84
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_order_ids: filterOrderIds, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_tag: filterTag, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
86
85
  const _queryParams = {};
87
86
  if (sortBy !== undefined) {
88
87
  _queryParams["sort_by"] = sortBy;
@@ -96,8 +95,13 @@ class OperationsTasks {
96
95
  if (pageSize !== undefined) {
97
96
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
98
97
  }
99
- if (filterOrderId !== undefined) {
100
- _queryParams["filter_order_id"] = filterOrderId;
98
+ if (filterOrderIds !== undefined) {
99
+ if (Array.isArray(filterOrderIds)) {
100
+ _queryParams["filter_order_ids"] = filterOrderIds.map((item) => item);
101
+ }
102
+ else {
103
+ _queryParams["filter_order_ids"] = filterOrderIds;
104
+ }
101
105
  }
102
106
  if (filterDepartmentId !== undefined) {
103
107
  _queryParams["filter_department_id"] = filterDepartmentId;
@@ -296,7 +300,7 @@ class OperationsTasks {
296
300
  });
297
301
  }
298
302
  /**
299
- * Updates scalar fields (title, description, deadline_timestamp) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
303
+ * Updates editable fields (task_type, title, description, deadline_timestamp, tags, assigned_user_ids) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
300
304
  *
301
305
  * @param {string} taskId
302
306
  * @param {Chrt.operations.OperationsTaskClientUpdate1} request
@@ -426,124 +430,6 @@ class OperationsTasks {
426
430
  }
427
431
  });
428
432
  }
429
- /**
430
- * Marks an OperationsTask as completed. Idempotent — calling on an already-completed task is a no-op that returns False. | authz: min_org_role=operator | () -> (bool)
431
- *
432
- * @param {string} taskId
433
- * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
434
- *
435
- * @throws {@link Chrt.UnprocessableEntityError}
436
- *
437
- * @example
438
- * await client.operations.operationsTasks.completeV1("task_id")
439
- */
440
- completeV1(taskId, requestOptions) {
441
- return core.HttpResponsePromise.fromPromise(this.__completeV1(taskId, requestOptions));
442
- }
443
- __completeV1(taskId, requestOptions) {
444
- return __awaiter(this, void 0, void 0, function* () {
445
- var _a, _b, _c, _d;
446
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
447
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
448
- 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, `operations/operations_tasks/complete/v1/${encodeURIComponent(taskId)}`),
449
- method: "POST",
450
- headers: _headers,
451
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
452
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
453
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
454
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
455
- });
456
- if (_response.ok) {
457
- return { data: _response.body, rawResponse: _response.rawResponse };
458
- }
459
- if (_response.error.reason === "status-code") {
460
- switch (_response.error.statusCode) {
461
- case 422:
462
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
463
- default:
464
- throw new errors.ChrtError({
465
- statusCode: _response.error.statusCode,
466
- body: _response.error.body,
467
- rawResponse: _response.rawResponse,
468
- });
469
- }
470
- }
471
- switch (_response.error.reason) {
472
- case "non-json":
473
- throw new errors.ChrtError({
474
- statusCode: _response.error.statusCode,
475
- body: _response.error.rawBody,
476
- rawResponse: _response.rawResponse,
477
- });
478
- case "timeout":
479
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_tasks/complete/v1/{task_id}.");
480
- case "unknown":
481
- throw new errors.ChrtError({
482
- message: _response.error.errorMessage,
483
- rawResponse: _response.rawResponse,
484
- });
485
- }
486
- });
487
- }
488
- /**
489
- * Marks a previously-completed OperationsTask as incomplete and clears its completion timestamps. Idempotent — calling on an already-incomplete task is a no-op that returns False. | authz: min_org_role=operator | () -> (bool)
490
- *
491
- * @param {string} taskId
492
- * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
493
- *
494
- * @throws {@link Chrt.UnprocessableEntityError}
495
- *
496
- * @example
497
- * await client.operations.operationsTasks.uncompleteV1("task_id")
498
- */
499
- uncompleteV1(taskId, requestOptions) {
500
- return core.HttpResponsePromise.fromPromise(this.__uncompleteV1(taskId, requestOptions));
501
- }
502
- __uncompleteV1(taskId, requestOptions) {
503
- return __awaiter(this, void 0, void 0, function* () {
504
- var _a, _b, _c, _d;
505
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
506
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
507
- 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, `operations/operations_tasks/uncomplete/v1/${encodeURIComponent(taskId)}`),
508
- method: "POST",
509
- headers: _headers,
510
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
511
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
512
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
513
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
514
- });
515
- if (_response.ok) {
516
- return { data: _response.body, rawResponse: _response.rawResponse };
517
- }
518
- if (_response.error.reason === "status-code") {
519
- switch (_response.error.statusCode) {
520
- case 422:
521
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
522
- default:
523
- throw new errors.ChrtError({
524
- statusCode: _response.error.statusCode,
525
- body: _response.error.body,
526
- rawResponse: _response.rawResponse,
527
- });
528
- }
529
- }
530
- switch (_response.error.reason) {
531
- case "non-json":
532
- throw new errors.ChrtError({
533
- statusCode: _response.error.statusCode,
534
- body: _response.error.rawBody,
535
- rawResponse: _response.rawResponse,
536
- });
537
- case "timeout":
538
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_tasks/uncomplete/v1/{task_id}.");
539
- case "unknown":
540
- throw new errors.ChrtError({
541
- message: _response.error.errorMessage,
542
- rawResponse: _response.rawResponse,
543
- });
544
- }
545
- });
546
- }
547
433
  /**
548
434
  * Sets an OperationsTask's status (not_started / in_progress / completed / skipped). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
549
435
  *
@@ -9,7 +9,6 @@ import * as Chrt from "../../../../../../index.js";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
- * filter_order_id: "filter_order_id",
13
12
  * filter_department_id: "filter_department_id",
14
13
  * filter_assigned_user_id: "filter_assigned_user_id",
15
14
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
@@ -23,8 +22,8 @@ export interface OperationsTasksListV1Request {
23
22
  sort_order?: Chrt.SortOrderEnum | null;
24
23
  page?: number | null;
25
24
  page_size?: number | null;
26
- /** Filter by order id */
27
- filter_order_id?: string | null;
25
+ /** Filter to tasks on any of these order ids (e.g. the order_ids returned by the orders typeahead for a chosen short_id / off-chrt reference) */
26
+ filter_order_ids?: (string | null) | (string | null)[];
28
27
  /** Filter to tasks routed to this department (desk queue) */
29
28
  filter_department_id?: string | null;
30
29
  /** Filter by task type(s). Defaults to all types. */
@@ -10,6 +10,7 @@ import { TaskArtifacts } from "../resources/taskArtifacts/client/Client.js";
10
10
  import { Orders } from "../resources/orders/client/Client.js";
11
11
  import { OrderDrafts } from "../resources/orderDrafts/client/Client.js";
12
12
  import { OrderSchedules } from "../resources/orderSchedules/client/Client.js";
13
+ import { OrderTemplates } from "../resources/orderTemplates/client/Client.js";
13
14
  import { TaskGroups } from "../resources/taskGroups/client/Client.js";
14
15
  import { Tasks } from "../resources/tasks/client/Client.js";
15
16
  export declare namespace Shipping {
@@ -32,6 +33,7 @@ export declare class Shipping {
32
33
  protected _orders: Orders | undefined;
33
34
  protected _orderDrafts: OrderDrafts | undefined;
34
35
  protected _orderSchedules: OrderSchedules | undefined;
36
+ protected _orderTemplates: OrderTemplates | undefined;
35
37
  protected _taskGroups: TaskGroups | undefined;
36
38
  protected _tasks: Tasks | undefined;
37
39
  constructor(_options?: Shipping.Options);
@@ -42,6 +44,7 @@ export declare class Shipping {
42
44
  get orders(): Orders;
43
45
  get orderDrafts(): OrderDrafts;
44
46
  get orderSchedules(): OrderSchedules;
47
+ get orderTemplates(): OrderTemplates;
45
48
  get taskGroups(): TaskGroups;
46
49
  get tasks(): Tasks;
47
50
  }
@@ -11,8 +11,9 @@ const Client_js_4 = require("../resources/taskArtifacts/client/Client.js");
11
11
  const Client_js_5 = require("../resources/orders/client/Client.js");
12
12
  const Client_js_6 = require("../resources/orderDrafts/client/Client.js");
13
13
  const Client_js_7 = require("../resources/orderSchedules/client/Client.js");
14
- const Client_js_8 = require("../resources/taskGroups/client/Client.js");
15
- const Client_js_9 = require("../resources/tasks/client/Client.js");
14
+ const Client_js_8 = require("../resources/orderTemplates/client/Client.js");
15
+ const Client_js_9 = require("../resources/taskGroups/client/Client.js");
16
+ const Client_js_10 = require("../resources/tasks/client/Client.js");
16
17
  class Shipping {
17
18
  constructor(_options = {}) {
18
19
  this._options = _options;
@@ -45,13 +46,17 @@ class Shipping {
45
46
  var _a;
46
47
  return ((_a = this._orderSchedules) !== null && _a !== void 0 ? _a : (this._orderSchedules = new Client_js_7.OrderSchedules(this._options)));
47
48
  }
49
+ get orderTemplates() {
50
+ var _a;
51
+ return ((_a = this._orderTemplates) !== null && _a !== void 0 ? _a : (this._orderTemplates = new Client_js_8.OrderTemplates(this._options)));
52
+ }
48
53
  get taskGroups() {
49
54
  var _a;
50
- return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_8.TaskGroups(this._options)));
55
+ return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_9.TaskGroups(this._options)));
51
56
  }
52
57
  get tasks() {
53
58
  var _a;
54
- return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_9.Tasks(this._options)));
59
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_10.Tasks(this._options)));
55
60
  }
56
61
  }
57
62
  exports.Shipping = Shipping;
@@ -5,6 +5,7 @@ export * as flights from "./flights/index.js";
5
5
  export * as taskArtifacts from "./taskArtifacts/index.js";
6
6
  export * as orders from "./orders/index.js";
7
7
  export * as orderSchedules from "./orderSchedules/index.js";
8
+ export * as orderTemplates from "./orderTemplates/index.js";
8
9
  export * as taskGroups from "./taskGroups/index.js";
9
10
  export * as tasks from "./tasks/index.js";
10
11
  export * from "./drivers/client/requests/index.js";
@@ -12,5 +13,6 @@ export * from "./taskArtifacts/client/requests/index.js";
12
13
  export * from "./orders/client/requests/index.js";
13
14
  export * from "./orderDrafts/client/requests/index.js";
14
15
  export * from "./orderSchedules/client/requests/index.js";
16
+ export * from "./orderTemplates/client/requests/index.js";
15
17
  export * from "./taskGroups/client/requests/index.js";
16
18
  export * from "./tasks/client/requests/index.js";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.tasks = exports.taskGroups = exports.orderSchedules = exports.orders = exports.taskArtifacts = exports.flights = exports.cargos = exports.drivers = exports.orderDrafts = void 0;
39
+ exports.tasks = exports.taskGroups = exports.orderTemplates = exports.orderSchedules = exports.orders = exports.taskArtifacts = exports.flights = exports.cargos = exports.drivers = exports.orderDrafts = void 0;
40
40
  exports.orderDrafts = __importStar(require("./orderDrafts/index.js"));
41
41
  exports.drivers = __importStar(require("./drivers/index.js"));
42
42
  exports.cargos = __importStar(require("./cargos/index.js"));
@@ -44,6 +44,7 @@ exports.flights = __importStar(require("./flights/index.js"));
44
44
  exports.taskArtifacts = __importStar(require("./taskArtifacts/index.js"));
45
45
  exports.orders = __importStar(require("./orders/index.js"));
46
46
  exports.orderSchedules = __importStar(require("./orderSchedules/index.js"));
47
+ exports.orderTemplates = __importStar(require("./orderTemplates/index.js"));
47
48
  exports.taskGroups = __importStar(require("./taskGroups/index.js"));
48
49
  exports.tasks = __importStar(require("./tasks/index.js"));
49
50
  __exportStar(require("./drivers/client/requests/index.js"), exports);
@@ -51,5 +52,6 @@ __exportStar(require("./taskArtifacts/client/requests/index.js"), exports);
51
52
  __exportStar(require("./orders/client/requests/index.js"), exports);
52
53
  __exportStar(require("./orderDrafts/client/requests/index.js"), exports);
53
54
  __exportStar(require("./orderSchedules/client/requests/index.js"), exports);
55
+ __exportStar(require("./orderTemplates/client/requests/index.js"), exports);
54
56
  __exportStar(require("./taskGroups/client/requests/index.js"), exports);
55
57
  __exportStar(require("./tasks/client/requests/index.js"), exports);
@@ -135,6 +135,22 @@ export declare class OrderDrafts {
135
135
  */
136
136
  imageToTextV1(request: Chrt.shipping.BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<string>;
137
137
  private __imageToTextV1;
138
+ /**
139
+ * Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
140
+ *
141
+ * @param {Chrt.shipping.OrderDraftsTypeaheadV1Request} request
142
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
143
+ *
144
+ * @throws {@link Chrt.UnprocessableEntityError}
145
+ *
146
+ * @example
147
+ * await client.shipping.orderDrafts.typeaheadV1({
148
+ * query: "query",
149
+ * limit: 1
150
+ * })
151
+ */
152
+ typeaheadV1(request: Chrt.shipping.OrderDraftsTypeaheadV1Request, requestOptions?: OrderDrafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderTypeaheadResult[]>;
153
+ private __typeaheadV1;
138
154
  /**
139
155
  * Validates the draft order for staging and returns requirement results. | () -> (OrderDraftValidationResult)
140
156
  *
@@ -466,6 +466,74 @@ class OrderDrafts {
466
466
  }
467
467
  });
468
468
  }
469
+ /**
470
+ * Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
471
+ *
472
+ * @param {Chrt.shipping.OrderDraftsTypeaheadV1Request} request
473
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
474
+ *
475
+ * @throws {@link Chrt.UnprocessableEntityError}
476
+ *
477
+ * @example
478
+ * await client.shipping.orderDrafts.typeaheadV1({
479
+ * query: "query",
480
+ * limit: 1
481
+ * })
482
+ */
483
+ typeaheadV1(request, requestOptions) {
484
+ return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
485
+ }
486
+ __typeaheadV1(request, requestOptions) {
487
+ return __awaiter(this, void 0, void 0, function* () {
488
+ var _a, _b, _c, _d, _e;
489
+ const { query, limit } = request;
490
+ const _queryParams = {};
491
+ _queryParams["query"] = query;
492
+ if (limit !== undefined) {
493
+ _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
494
+ }
495
+ let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
496
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
497
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "shipping/order_drafts/typeahead/v1"),
498
+ method: "GET",
499
+ headers: _headers,
500
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
501
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
502
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
503
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
504
+ });
505
+ if (_response.ok) {
506
+ return { data: _response.body, rawResponse: _response.rawResponse };
507
+ }
508
+ if (_response.error.reason === "status-code") {
509
+ switch (_response.error.statusCode) {
510
+ case 422:
511
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
512
+ default:
513
+ throw new errors.ChrtError({
514
+ statusCode: _response.error.statusCode,
515
+ body: _response.error.body,
516
+ rawResponse: _response.rawResponse,
517
+ });
518
+ }
519
+ }
520
+ switch (_response.error.reason) {
521
+ case "non-json":
522
+ throw new errors.ChrtError({
523
+ statusCode: _response.error.statusCode,
524
+ body: _response.error.rawBody,
525
+ rawResponse: _response.rawResponse,
526
+ });
527
+ case "timeout":
528
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/order_drafts/typeahead/v1.");
529
+ case "unknown":
530
+ throw new errors.ChrtError({
531
+ message: _response.error.errorMessage,
532
+ rawResponse: _response.rawResponse,
533
+ });
534
+ }
535
+ });
536
+ }
469
537
  /**
470
538
  * Validates the draft order for staging and returns requirement results. | () -> (OrderDraftValidationResult)
471
539
  *
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * query: "query",
8
+ * limit: 1
9
+ * }
10
+ */
11
+ export interface OrderDraftsTypeaheadV1Request {
12
+ /** Typeahead search query */
13
+ query: string;
14
+ /** Max results per field */
15
+ limit?: number | null;
16
+ }
@@ -3,3 +3,4 @@ export { type OrdersDraftUpdateReq } from "./OrdersDraftUpdateReq.js";
3
3
  export { type SetTaskGroupOrderingDraftReq } from "./SetTaskGroupOrderingDraftReq.js";
4
4
  export { type OrdersDraftDeleteManyReq } from "./OrdersDraftDeleteManyReq.js";
5
5
  export { type BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post } from "./BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post.js";
6
+ export { type OrderDraftsTypeaheadV1Request } from "./OrderDraftsTypeaheadV1Request.js";
@@ -15,5 +15,5 @@ import * as Chrt from "../../../../../../../../index.js";
15
15
  export interface OrderDraftAddCargoReq {
16
16
  order_id: string;
17
17
  cargo: Chrt.CargoClientCreate1;
18
- order_schedule_template_path?: string | null;
18
+ order_schedule_template_path_idempotency_key?: string | null;
19
19
  }
@@ -70,21 +70,5 @@ export declare class Expanded {
70
70
  */
71
71
  listV1(request: Chrt.shipping.orderDrafts.ExpandedListV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftExpandedListRes>;
72
72
  private __listV1;
73
- /**
74
- * Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
75
- *
76
- * @param {Chrt.shipping.orderDrafts.ExpandedTypeaheadV1Request} request
77
- * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
78
- *
79
- * @throws {@link Chrt.UnprocessableEntityError}
80
- *
81
- * @example
82
- * await client.shipping.orderDrafts.expanded.typeaheadV1({
83
- * query: "query",
84
- * limit: 1
85
- * })
86
- */
87
- typeaheadV1(request: Chrt.shipping.orderDrafts.ExpandedTypeaheadV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderTypeaheadResult[]>;
88
- private __typeaheadV1;
89
73
  protected _getAuthorizationHeader(): Promise<string | undefined>;
90
74
  }
@@ -228,74 +228,6 @@ class Expanded {
228
228
  }
229
229
  });
230
230
  }
231
- /**
232
- * Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
233
- *
234
- * @param {Chrt.shipping.orderDrafts.ExpandedTypeaheadV1Request} request
235
- * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
236
- *
237
- * @throws {@link Chrt.UnprocessableEntityError}
238
- *
239
- * @example
240
- * await client.shipping.orderDrafts.expanded.typeaheadV1({
241
- * query: "query",
242
- * limit: 1
243
- * })
244
- */
245
- typeaheadV1(request, requestOptions) {
246
- return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
247
- }
248
- __typeaheadV1(request, requestOptions) {
249
- return __awaiter(this, void 0, void 0, function* () {
250
- var _a, _b, _c, _d, _e;
251
- const { query, limit } = request;
252
- const _queryParams = {};
253
- _queryParams["query"] = query;
254
- if (limit !== undefined) {
255
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
256
- }
257
- let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
258
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
259
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "shipping/order_drafts/expanded/typeahead/v1"),
260
- method: "GET",
261
- headers: _headers,
262
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
263
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
264
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
265
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
266
- });
267
- if (_response.ok) {
268
- return { data: _response.body, rawResponse: _response.rawResponse };
269
- }
270
- if (_response.error.reason === "status-code") {
271
- switch (_response.error.statusCode) {
272
- case 422:
273
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
274
- default:
275
- throw new errors.ChrtError({
276
- statusCode: _response.error.statusCode,
277
- body: _response.error.body,
278
- rawResponse: _response.rawResponse,
279
- });
280
- }
281
- }
282
- switch (_response.error.reason) {
283
- case "non-json":
284
- throw new errors.ChrtError({
285
- statusCode: _response.error.statusCode,
286
- body: _response.error.rawBody,
287
- rawResponse: _response.rawResponse,
288
- });
289
- case "timeout":
290
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/order_drafts/expanded/typeahead/v1.");
291
- case "unknown":
292
- throw new errors.ChrtError({
293
- message: _response.error.errorMessage,
294
- rawResponse: _response.rawResponse,
295
- });
296
- }
297
- });
298
- }
299
231
  _getAuthorizationHeader() {
300
232
  return __awaiter(this, void 0, void 0, function* () {
301
233
  const bearer = yield core.Supplier.get(this._options.token);
@@ -1,2 +1 @@
1
1
  export { type ExpandedListV1Request } from "./ExpandedListV1Request.js";
2
- export { type ExpandedTypeaheadV1Request } from "./ExpandedTypeaheadV1Request.js";
@@ -15,5 +15,5 @@ export interface OrderDraftAddTaskReqV1 {
15
15
  task_group_id: string;
16
16
  task: Chrt.TaskClientCreate1;
17
17
  cargo_ids?: string[] | null;
18
- order_schedule_template_path?: string | null;
18
+ order_schedule_template_path_idempotency_key?: string | null;
19
19
  }
@@ -13,5 +13,5 @@ export interface OrderDraftAddTaskArtifactReq {
13
13
  task_id: string;
14
14
  task_artifact_type: Chrt.TaskArtifactTypeEnum1;
15
15
  expected_scan_payloads?: string[];
16
- order_schedule_template_path?: string | null;
16
+ order_schedule_template_path_idempotency_key?: string | null;
17
17
  }
@@ -12,6 +12,6 @@ import * as Chrt from "../../../../../../../../index.js";
12
12
  export interface OrderDraftAddTaskGroupReq {
13
13
  task_group_type: Chrt.TaskGroupTypeEnum1;
14
14
  order_id: string;
15
- order_schedule_template_path?: string | null;
15
+ order_schedule_template_path_idempotency_key?: string | null;
16
16
  vehicle_type?: Chrt.VehicleTypeEnum | null;
17
17
  }