@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
@@ -20,7 +20,7 @@ export class OperationsTasks {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * 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)
23
+ * 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)
24
24
  *
25
25
  * @param {Chrt.operations.OperationsTasksListV1Request} request
26
26
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -33,7 +33,6 @@ export class OperationsTasks {
33
33
  * sort_order: "asc",
34
34
  * page: 1,
35
35
  * page_size: 1,
36
- * filter_order_id: "filter_order_id",
37
36
  * filter_department_id: "filter_department_id",
38
37
  * filter_assigned_user_id: "filter_assigned_user_id",
39
38
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
@@ -46,7 +45,7 @@ export class OperationsTasks {
46
45
  __listV1() {
47
46
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
48
47
  var _a, _b, _c, _d, _e, _f;
49
- 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;
48
+ 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;
50
49
  const _queryParams = {};
51
50
  if (sortBy !== undefined) {
52
51
  _queryParams["sort_by"] = sortBy;
@@ -60,8 +59,13 @@ export class OperationsTasks {
60
59
  if (pageSize !== undefined) {
61
60
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
62
61
  }
63
- if (filterOrderId !== undefined) {
64
- _queryParams["filter_order_id"] = filterOrderId;
62
+ if (filterOrderIds !== undefined) {
63
+ if (Array.isArray(filterOrderIds)) {
64
+ _queryParams["filter_order_ids"] = filterOrderIds.map((item) => item);
65
+ }
66
+ else {
67
+ _queryParams["filter_order_ids"] = filterOrderIds;
68
+ }
65
69
  }
66
70
  if (filterDepartmentId !== undefined) {
67
71
  _queryParams["filter_department_id"] = filterDepartmentId;
@@ -260,7 +264,7 @@ export class OperationsTasks {
260
264
  });
261
265
  }
262
266
  /**
263
- * Updates scalar fields (title, description, deadline_timestamp) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
267
+ * Updates editable fields (task_type, title, description, deadline_timestamp, tags, assigned_user_ids) on an OperationsTask. | authz: min_org_role=operator | (OperationsTaskClientUpdate1) -> (bool)
264
268
  *
265
269
  * @param {string} taskId
266
270
  * @param {Chrt.operations.OperationsTaskClientUpdate1} request
@@ -390,124 +394,6 @@ export class OperationsTasks {
390
394
  }
391
395
  });
392
396
  }
393
- /**
394
- * 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)
395
- *
396
- * @param {string} taskId
397
- * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
398
- *
399
- * @throws {@link Chrt.UnprocessableEntityError}
400
- *
401
- * @example
402
- * await client.operations.operationsTasks.completeV1("task_id")
403
- */
404
- completeV1(taskId, requestOptions) {
405
- return core.HttpResponsePromise.fromPromise(this.__completeV1(taskId, requestOptions));
406
- }
407
- __completeV1(taskId, requestOptions) {
408
- return __awaiter(this, void 0, void 0, function* () {
409
- var _a, _b, _c, _d;
410
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
411
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
412
- 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)}`),
413
- method: "POST",
414
- headers: _headers,
415
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
416
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
417
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
418
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
419
- });
420
- if (_response.ok) {
421
- return { data: _response.body, rawResponse: _response.rawResponse };
422
- }
423
- if (_response.error.reason === "status-code") {
424
- switch (_response.error.statusCode) {
425
- case 422:
426
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
427
- default:
428
- throw new errors.ChrtError({
429
- statusCode: _response.error.statusCode,
430
- body: _response.error.body,
431
- rawResponse: _response.rawResponse,
432
- });
433
- }
434
- }
435
- switch (_response.error.reason) {
436
- case "non-json":
437
- throw new errors.ChrtError({
438
- statusCode: _response.error.statusCode,
439
- body: _response.error.rawBody,
440
- rawResponse: _response.rawResponse,
441
- });
442
- case "timeout":
443
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_tasks/complete/v1/{task_id}.");
444
- case "unknown":
445
- throw new errors.ChrtError({
446
- message: _response.error.errorMessage,
447
- rawResponse: _response.rawResponse,
448
- });
449
- }
450
- });
451
- }
452
- /**
453
- * 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)
454
- *
455
- * @param {string} taskId
456
- * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
457
- *
458
- * @throws {@link Chrt.UnprocessableEntityError}
459
- *
460
- * @example
461
- * await client.operations.operationsTasks.uncompleteV1("task_id")
462
- */
463
- uncompleteV1(taskId, requestOptions) {
464
- return core.HttpResponsePromise.fromPromise(this.__uncompleteV1(taskId, requestOptions));
465
- }
466
- __uncompleteV1(taskId, requestOptions) {
467
- return __awaiter(this, void 0, void 0, function* () {
468
- var _a, _b, _c, _d;
469
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
470
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
471
- 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)}`),
472
- method: "POST",
473
- headers: _headers,
474
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
475
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
476
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
477
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
478
- });
479
- if (_response.ok) {
480
- return { data: _response.body, rawResponse: _response.rawResponse };
481
- }
482
- if (_response.error.reason === "status-code") {
483
- switch (_response.error.statusCode) {
484
- case 422:
485
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
486
- default:
487
- throw new errors.ChrtError({
488
- statusCode: _response.error.statusCode,
489
- body: _response.error.body,
490
- rawResponse: _response.rawResponse,
491
- });
492
- }
493
- }
494
- switch (_response.error.reason) {
495
- case "non-json":
496
- throw new errors.ChrtError({
497
- statusCode: _response.error.statusCode,
498
- body: _response.error.rawBody,
499
- rawResponse: _response.rawResponse,
500
- });
501
- case "timeout":
502
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_tasks/uncomplete/v1/{task_id}.");
503
- case "unknown":
504
- throw new errors.ChrtError({
505
- message: _response.error.errorMessage,
506
- rawResponse: _response.rawResponse,
507
- });
508
- }
509
- });
510
- }
511
397
  /**
512
398
  * 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)
513
399
  *
@@ -9,7 +9,6 @@ import * as Chrt from "../../../../../../index.mjs";
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.mjs";
10
10
  import { Orders } from "../resources/orders/client/Client.mjs";
11
11
  import { OrderDrafts } from "../resources/orderDrafts/client/Client.mjs";
12
12
  import { OrderSchedules } from "../resources/orderSchedules/client/Client.mjs";
13
+ import { OrderTemplates } from "../resources/orderTemplates/client/Client.mjs";
13
14
  import { TaskGroups } from "../resources/taskGroups/client/Client.mjs";
14
15
  import { Tasks } from "../resources/tasks/client/Client.mjs";
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
  }
@@ -8,6 +8,7 @@ import { TaskArtifacts } from "../resources/taskArtifacts/client/Client.mjs";
8
8
  import { Orders } from "../resources/orders/client/Client.mjs";
9
9
  import { OrderDrafts } from "../resources/orderDrafts/client/Client.mjs";
10
10
  import { OrderSchedules } from "../resources/orderSchedules/client/Client.mjs";
11
+ import { OrderTemplates } from "../resources/orderTemplates/client/Client.mjs";
11
12
  import { TaskGroups } from "../resources/taskGroups/client/Client.mjs";
12
13
  import { Tasks } from "../resources/tasks/client/Client.mjs";
13
14
  export class Shipping {
@@ -42,6 +43,10 @@ export class Shipping {
42
43
  var _a;
43
44
  return ((_a = this._orderSchedules) !== null && _a !== void 0 ? _a : (this._orderSchedules = new OrderSchedules(this._options)));
44
45
  }
46
+ get orderTemplates() {
47
+ var _a;
48
+ return ((_a = this._orderTemplates) !== null && _a !== void 0 ? _a : (this._orderTemplates = new OrderTemplates(this._options)));
49
+ }
45
50
  get taskGroups() {
46
51
  var _a;
47
52
  return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new TaskGroups(this._options)));
@@ -5,6 +5,7 @@ export * as flights from "./flights/index.mjs";
5
5
  export * as taskArtifacts from "./taskArtifacts/index.mjs";
6
6
  export * as orders from "./orders/index.mjs";
7
7
  export * as orderSchedules from "./orderSchedules/index.mjs";
8
+ export * as orderTemplates from "./orderTemplates/index.mjs";
8
9
  export * as taskGroups from "./taskGroups/index.mjs";
9
10
  export * as tasks from "./tasks/index.mjs";
10
11
  export * from "./drivers/client/requests/index.mjs";
@@ -12,5 +13,6 @@ export * from "./taskArtifacts/client/requests/index.mjs";
12
13
  export * from "./orders/client/requests/index.mjs";
13
14
  export * from "./orderDrafts/client/requests/index.mjs";
14
15
  export * from "./orderSchedules/client/requests/index.mjs";
16
+ export * from "./orderTemplates/client/requests/index.mjs";
15
17
  export * from "./taskGroups/client/requests/index.mjs";
16
18
  export * from "./tasks/client/requests/index.mjs";
@@ -5,6 +5,7 @@ export * as flights from "./flights/index.mjs";
5
5
  export * as taskArtifacts from "./taskArtifacts/index.mjs";
6
6
  export * as orders from "./orders/index.mjs";
7
7
  export * as orderSchedules from "./orderSchedules/index.mjs";
8
+ export * as orderTemplates from "./orderTemplates/index.mjs";
8
9
  export * as taskGroups from "./taskGroups/index.mjs";
9
10
  export * as tasks from "./tasks/index.mjs";
10
11
  export * from "./drivers/client/requests/index.mjs";
@@ -12,5 +13,6 @@ export * from "./taskArtifacts/client/requests/index.mjs";
12
13
  export * from "./orders/client/requests/index.mjs";
13
14
  export * from "./orderDrafts/client/requests/index.mjs";
14
15
  export * from "./orderSchedules/client/requests/index.mjs";
16
+ export * from "./orderTemplates/client/requests/index.mjs";
15
17
  export * from "./taskGroups/client/requests/index.mjs";
16
18
  export * from "./tasks/client/requests/index.mjs";
@@ -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
  *
@@ -430,6 +430,74 @@ export class OrderDrafts {
430
430
  }
431
431
  });
432
432
  }
433
+ /**
434
+ * 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])
435
+ *
436
+ * @param {Chrt.shipping.OrderDraftsTypeaheadV1Request} request
437
+ * @param {OrderDrafts.RequestOptions} requestOptions - Request-specific configuration.
438
+ *
439
+ * @throws {@link Chrt.UnprocessableEntityError}
440
+ *
441
+ * @example
442
+ * await client.shipping.orderDrafts.typeaheadV1({
443
+ * query: "query",
444
+ * limit: 1
445
+ * })
446
+ */
447
+ typeaheadV1(request, requestOptions) {
448
+ return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
449
+ }
450
+ __typeaheadV1(request, requestOptions) {
451
+ return __awaiter(this, void 0, void 0, function* () {
452
+ var _a, _b, _c, _d, _e;
453
+ const { query, limit } = request;
454
+ const _queryParams = {};
455
+ _queryParams["query"] = query;
456
+ if (limit !== undefined) {
457
+ _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
458
+ }
459
+ let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
460
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
461
+ 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"),
462
+ method: "GET",
463
+ headers: _headers,
464
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
465
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
466
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
467
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
468
+ });
469
+ if (_response.ok) {
470
+ return { data: _response.body, rawResponse: _response.rawResponse };
471
+ }
472
+ if (_response.error.reason === "status-code") {
473
+ switch (_response.error.statusCode) {
474
+ case 422:
475
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
476
+ default:
477
+ throw new errors.ChrtError({
478
+ statusCode: _response.error.statusCode,
479
+ body: _response.error.body,
480
+ rawResponse: _response.rawResponse,
481
+ });
482
+ }
483
+ }
484
+ switch (_response.error.reason) {
485
+ case "non-json":
486
+ throw new errors.ChrtError({
487
+ statusCode: _response.error.statusCode,
488
+ body: _response.error.rawBody,
489
+ rawResponse: _response.rawResponse,
490
+ });
491
+ case "timeout":
492
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/order_drafts/typeahead/v1.");
493
+ case "unknown":
494
+ throw new errors.ChrtError({
495
+ message: _response.error.errorMessage,
496
+ rawResponse: _response.rawResponse,
497
+ });
498
+ }
499
+ });
500
+ }
433
501
  /**
434
502
  * Validates the draft order for staging and returns requirement results. | () -> (OrderDraftValidationResult)
435
503
  *
@@ -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.mjs";
3
3
  export { type SetTaskGroupOrderingDraftReq } from "./SetTaskGroupOrderingDraftReq.mjs";
4
4
  export { type OrdersDraftDeleteManyReq } from "./OrdersDraftDeleteManyReq.mjs";
5
5
  export { type BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post } from "./BodyPostShippingOrderDraftsImageToTextV1ShippingOrderDraftsImageToTextV1Post.mjs";
6
+ export { type OrderDraftsTypeaheadV1Request } from "./OrderDraftsTypeaheadV1Request.mjs";
@@ -15,5 +15,5 @@ import * as Chrt from "../../../../../../../../index.mjs";
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
  }
@@ -192,74 +192,6 @@ export class Expanded {
192
192
  }
193
193
  });
194
194
  }
195
- /**
196
- * 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])
197
- *
198
- * @param {Chrt.shipping.orderDrafts.ExpandedTypeaheadV1Request} request
199
- * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
200
- *
201
- * @throws {@link Chrt.UnprocessableEntityError}
202
- *
203
- * @example
204
- * await client.shipping.orderDrafts.expanded.typeaheadV1({
205
- * query: "query",
206
- * limit: 1
207
- * })
208
- */
209
- typeaheadV1(request, requestOptions) {
210
- return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
211
- }
212
- __typeaheadV1(request, requestOptions) {
213
- return __awaiter(this, void 0, void 0, function* () {
214
- var _a, _b, _c, _d, _e;
215
- const { query, limit } = request;
216
- const _queryParams = {};
217
- _queryParams["query"] = query;
218
- if (limit !== undefined) {
219
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
220
- }
221
- let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
222
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
223
- 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"),
224
- method: "GET",
225
- headers: _headers,
226
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
227
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
228
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
229
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
230
- });
231
- if (_response.ok) {
232
- return { data: _response.body, rawResponse: _response.rawResponse };
233
- }
234
- if (_response.error.reason === "status-code") {
235
- switch (_response.error.statusCode) {
236
- case 422:
237
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
238
- default:
239
- throw new errors.ChrtError({
240
- statusCode: _response.error.statusCode,
241
- body: _response.error.body,
242
- rawResponse: _response.rawResponse,
243
- });
244
- }
245
- }
246
- switch (_response.error.reason) {
247
- case "non-json":
248
- throw new errors.ChrtError({
249
- statusCode: _response.error.statusCode,
250
- body: _response.error.rawBody,
251
- rawResponse: _response.rawResponse,
252
- });
253
- case "timeout":
254
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/order_drafts/expanded/typeahead/v1.");
255
- case "unknown":
256
- throw new errors.ChrtError({
257
- message: _response.error.errorMessage,
258
- rawResponse: _response.rawResponse,
259
- });
260
- }
261
- });
262
- }
263
195
  _getAuthorizationHeader() {
264
196
  return __awaiter(this, void 0, void 0, function* () {
265
197
  const bearer = yield core.Supplier.get(this._options.token);
@@ -1,2 +1 @@
1
1
  export { type ExpandedListV1Request } from "./ExpandedListV1Request.mjs";
2
- export { type ExpandedTypeaheadV1Request } from "./ExpandedTypeaheadV1Request.mjs";
@@ -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.mjs";
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
  }