@chrt-inc/typescript-sdk 1.530.0 → 1.539.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 (355) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/billing/index.d.ts +1 -1
  4. package/dist/cjs/api/resources/billing/index.js +1 -1
  5. package/dist/cjs/api/resources/billing/resources/index.d.ts +1 -2
  6. package/dist/cjs/api/resources/billing/resources/index.js +2 -3
  7. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +1 -0
  8. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +5 -1
  9. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListForCourierOrgV1Request.d.ts +3 -0
  10. package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.d.ts +3 -2
  11. package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.js +7 -3
  12. package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetsListByOrgV1Request.d.ts +6 -2
  13. package/dist/cjs/api/resources/billing/resources/rateSheets/index.d.ts +0 -1
  14. package/dist/cjs/api/resources/billing/resources/rateSheets/index.js +0 -1
  15. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +8 -2
  16. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +28 -4
  17. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +10 -1
  18. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +10 -1
  19. package/dist/cjs/api/resources/index.d.ts +2 -2
  20. package/dist/cjs/api/resources/index.js +3 -3
  21. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +7 -3
  22. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +23 -11
  23. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.d.ts +14 -0
  24. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +18 -6
  26. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.js +71 -36
  27. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/GroupsListByOrgV1Request.d.ts +14 -0
  28. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.d.ts +14 -0
  29. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/index.d.ts +2 -0
  30. package/dist/cjs/api/resources/orgs/client/Client.d.ts +11 -3
  31. package/dist/cjs/api/resources/orgs/client/Client.js +51 -16
  32. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +23 -0
  33. package/dist/cjs/api/resources/orgs/client/requests/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +27 -9
  35. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +105 -48
  36. package/dist/cjs/api/resources/orgs/resources/connections/client/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/orgs/resources/connections/client/index.js +15 -0
  38. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.d.ts +14 -0
  39. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.js +5 -0
  40. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.d.ts +14 -0
  41. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.js +5 -0
  42. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.ts +14 -0
  43. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.js +5 -0
  44. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +3 -0
  45. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/orgs/resources/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/orgs/resources/index.js +1 -0
  48. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.ts +9 -3
  49. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.js +35 -16
  50. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.d.ts +14 -0
  51. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.js +5 -0
  52. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/shipping/index.d.ts +1 -1
  54. package/dist/cjs/api/resources/shipping/index.js +1 -1
  55. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +14 -8
  56. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +58 -24
  57. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +11 -4
  58. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +17 -6
  59. package/dist/cjs/api/resources/shipping/resources/index.d.ts +3 -3
  60. package/dist/cjs/api/resources/shipping/resources/index.js +4 -4
  61. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.ts +3 -0
  62. package/dist/cjs/api/resources/shipping/resources/orderDrafts/index.d.ts +1 -1
  63. package/dist/cjs/api/resources/shipping/resources/orderDrafts/index.js +1 -1
  64. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +1 -1
  65. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +1 -1
  66. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.ts +3 -2
  67. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/index.d.ts +0 -1
  68. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/index.js +0 -1
  69. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.d.ts +1 -2
  70. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.js +2 -3
  71. package/dist/cjs/api/resources/shipping/resources/orders/index.d.ts +1 -1
  72. package/dist/cjs/api/resources/shipping/resources/orders/index.js +1 -1
  73. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +22 -4
  74. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +82 -6
  75. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.ts +6 -2
  76. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +6 -2
  77. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts +16 -0
  78. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js +5 -0
  79. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.ts +1 -0
  80. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/index.d.ts +0 -1
  81. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/index.js +0 -1
  82. package/dist/cjs/api/resources/shipping/resources/orders/resources/index.d.ts +0 -1
  83. package/dist/cjs/api/resources/shipping/resources/orders/resources/index.js +0 -1
  84. package/dist/cjs/api/resources/shipping/resources/taskGroups/index.d.ts +1 -1
  85. package/dist/cjs/api/resources/shipping/resources/taskGroups/index.js +1 -1
  86. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +22 -4
  87. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +82 -6
  88. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.ts +6 -2
  89. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.ts +6 -2
  90. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts +16 -0
  91. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js +5 -0
  92. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +1 -0
  93. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/index.d.ts +0 -1
  94. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/index.js +0 -1
  95. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +1 -2
  96. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +2 -3
  97. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +5 -20
  98. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +15 -79
  99. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +10 -1
  100. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +0 -1
  101. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +1 -18
  102. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +5 -77
  103. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +4 -1
  104. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +0 -1
  105. package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.d.ts +12 -3
  106. package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.js +47 -16
  107. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.d.ts +24 -0
  108. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.js +5 -0
  109. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/index.d.ts +1 -0
  110. package/dist/cjs/api/types/CourierConnectionListRes.d.ts +8 -0
  111. package/dist/cjs/api/types/CourierConnectionListRes.js +5 -0
  112. package/dist/cjs/api/types/DeviceLimitedForList1.d.ts +1 -0
  113. package/dist/cjs/api/types/DeviceListRes.d.ts +1 -1
  114. package/dist/cjs/api/types/DevicePausedTimeWindow1.d.ts +7 -0
  115. package/dist/cjs/api/types/DevicePausedTimeWindow1.js +5 -0
  116. package/dist/cjs/api/types/{DeviceSearchRes.d.ts → DirectoryEntryListRes.d.ts} +2 -2
  117. package/dist/cjs/api/types/DirectoryEntryListRes.js +5 -0
  118. package/dist/cjs/api/types/DirectoryEntrySortByEnum.d.ts +9 -0
  119. package/dist/cjs/api/types/DirectoryEntrySortByEnum.js +11 -0
  120. package/dist/cjs/api/types/{SessionSearchRes.d.ts → DriverListRes.d.ts} +2 -2
  121. package/dist/cjs/api/types/DriverListRes.js +5 -0
  122. package/dist/cjs/api/types/ForwarderConnectionListRes.d.ts +8 -0
  123. package/dist/cjs/api/types/ForwarderConnectionListRes.js +5 -0
  124. package/dist/cjs/api/types/LineItemGroupListRes.d.ts +1 -1
  125. package/dist/cjs/api/types/NotificationAdHocListRes.d.ts +8 -0
  126. package/dist/cjs/api/types/NotificationAdHocListRes.js +5 -0
  127. package/dist/cjs/api/types/NotificationGroupListRes.d.ts +8 -0
  128. package/dist/cjs/api/types/NotificationGroupListRes.js +5 -0
  129. package/dist/cjs/api/types/NotificationGroupUserListRes.d.ts +8 -0
  130. package/dist/cjs/api/types/NotificationGroupUserListRes.js +5 -0
  131. package/dist/cjs/api/types/OffChrtShipperOrgListRes.d.ts +8 -0
  132. package/dist/cjs/api/types/OffChrtShipperOrgListRes.js +5 -0
  133. package/dist/cjs/api/types/OrderDraftExpandedListRes.d.ts +1 -1
  134. package/dist/cjs/api/types/OrdersExpandedListRes.d.ts +1 -1
  135. package/dist/cjs/api/types/OrgMemberListRes.d.ts +8 -0
  136. package/dist/cjs/api/types/OrgMemberListRes.js +5 -0
  137. package/dist/cjs/api/types/OrgMemberSortByEnum.d.ts +8 -0
  138. package/dist/cjs/api/types/OrgMemberSortByEnum.js +10 -0
  139. package/dist/cjs/api/types/OrgMembersAndDriversListRes.d.ts +8 -0
  140. package/dist/cjs/api/types/OrgMembersAndDriversListRes.js +5 -0
  141. package/dist/cjs/api/types/RateSheetListResponse.d.ts +1 -1
  142. package/dist/cjs/api/types/SessionListRes.d.ts +1 -1
  143. package/dist/cjs/api/types/ShipperConnectionListRes.d.ts +8 -0
  144. package/dist/cjs/api/types/ShipperConnectionListRes.js +5 -0
  145. package/dist/cjs/api/types/StatementsExpandedListRes.d.ts +1 -1
  146. package/dist/cjs/api/types/StatementsListRes.d.ts +1 -1
  147. package/dist/cjs/api/types/TaskGroupExpandedListRes.d.ts +1 -1
  148. package/dist/cjs/api/types/index.d.ts +14 -2
  149. package/dist/cjs/api/types/index.js +14 -2
  150. package/dist/cjs/version.d.ts +1 -1
  151. package/dist/cjs/version.js +1 -1
  152. package/dist/esm/Client.mjs +2 -2
  153. package/dist/esm/api/resources/billing/index.d.mts +1 -1
  154. package/dist/esm/api/resources/billing/index.mjs +1 -1
  155. package/dist/esm/api/resources/billing/resources/index.d.mts +1 -2
  156. package/dist/esm/api/resources/billing/resources/index.mjs +1 -2
  157. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +1 -0
  158. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +5 -1
  159. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListForCourierOrgV1Request.d.mts +3 -0
  160. package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.d.mts +3 -2
  161. package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.mjs +7 -3
  162. package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetsListByOrgV1Request.d.mts +6 -2
  163. package/dist/esm/api/resources/billing/resources/rateSheets/index.d.mts +0 -1
  164. package/dist/esm/api/resources/billing/resources/rateSheets/index.mjs +0 -1
  165. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +8 -2
  166. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +28 -4
  167. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +10 -1
  168. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +10 -1
  169. package/dist/esm/api/resources/index.d.mts +2 -2
  170. package/dist/esm/api/resources/index.mjs +2 -2
  171. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +7 -3
  172. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +23 -11
  173. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.d.mts +14 -0
  174. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -0
  175. package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +18 -6
  176. package/dist/esm/api/resources/notifications/resources/groups/client/Client.mjs +71 -36
  177. package/dist/esm/api/resources/notifications/resources/groups/client/requests/GroupsListByOrgV1Request.d.mts +14 -0
  178. package/dist/esm/api/resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.d.mts +14 -0
  179. package/dist/esm/api/resources/notifications/resources/groups/client/requests/index.d.mts +2 -0
  180. package/dist/esm/api/resources/orgs/client/Client.d.mts +11 -3
  181. package/dist/esm/api/resources/orgs/client/Client.mjs +51 -16
  182. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +23 -0
  183. package/dist/esm/api/resources/orgs/client/requests/index.d.mts +1 -0
  184. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +27 -9
  185. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +105 -48
  186. package/dist/esm/api/resources/orgs/resources/connections/client/index.d.mts +1 -0
  187. package/dist/esm/api/resources/orgs/resources/connections/client/index.mjs +1 -1
  188. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.d.mts +14 -0
  189. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.mjs +4 -0
  190. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.d.mts +14 -0
  191. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.mjs +4 -0
  192. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.mts +14 -0
  193. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.mjs +4 -0
  194. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +3 -0
  195. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.mjs +1 -0
  196. package/dist/esm/api/resources/orgs/resources/index.d.mts +1 -0
  197. package/dist/esm/api/resources/orgs/resources/index.mjs +1 -0
  198. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.mts +9 -3
  199. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.mjs +35 -16
  200. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.d.mts +14 -0
  201. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.mjs +4 -0
  202. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/index.d.mts +1 -0
  203. package/dist/esm/api/resources/shipping/index.d.mts +1 -1
  204. package/dist/esm/api/resources/shipping/index.mjs +1 -1
  205. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +14 -8
  206. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +58 -24
  207. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +11 -4
  208. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +17 -6
  209. package/dist/esm/api/resources/shipping/resources/index.d.mts +3 -3
  210. package/dist/esm/api/resources/shipping/resources/index.mjs +3 -3
  211. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.mts +3 -0
  212. package/dist/esm/api/resources/shipping/resources/orderDrafts/index.d.mts +1 -1
  213. package/dist/esm/api/resources/shipping/resources/orderDrafts/index.mjs +1 -1
  214. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +1 -1
  215. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +1 -1
  216. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.mts +3 -2
  217. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/index.d.mts +0 -1
  218. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/index.mjs +0 -1
  219. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.d.mts +1 -2
  220. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.mjs +1 -2
  221. package/dist/esm/api/resources/shipping/resources/orders/index.d.mts +1 -1
  222. package/dist/esm/api/resources/shipping/resources/orders/index.mjs +1 -1
  223. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +22 -4
  224. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +82 -6
  225. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.mts +6 -2
  226. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +6 -2
  227. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +16 -0
  228. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs +4 -0
  229. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.mts +1 -0
  230. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/index.d.mts +0 -1
  231. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/index.mjs +0 -1
  232. package/dist/esm/api/resources/shipping/resources/orders/resources/index.d.mts +0 -1
  233. package/dist/esm/api/resources/shipping/resources/orders/resources/index.mjs +0 -1
  234. package/dist/esm/api/resources/shipping/resources/taskGroups/index.d.mts +1 -1
  235. package/dist/esm/api/resources/shipping/resources/taskGroups/index.mjs +1 -1
  236. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +22 -4
  237. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +82 -6
  238. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.mts +6 -2
  239. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.mts +6 -2
  240. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +16 -0
  241. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs +4 -0
  242. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +1 -0
  243. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/index.d.mts +0 -1
  244. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/index.mjs +0 -1
  245. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +1 -2
  246. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +1 -2
  247. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +5 -20
  248. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +15 -79
  249. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +10 -1
  250. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +0 -1
  251. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +1 -18
  252. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +5 -77
  253. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +4 -1
  254. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +0 -1
  255. package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.d.mts +12 -3
  256. package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.mjs +47 -16
  257. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.d.mts +24 -0
  258. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.mjs +4 -0
  259. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/index.d.mts +1 -0
  260. package/dist/esm/api/types/CourierConnectionListRes.d.mts +8 -0
  261. package/dist/esm/api/types/CourierConnectionListRes.mjs +4 -0
  262. package/dist/esm/api/types/DeviceLimitedForList1.d.mts +1 -0
  263. package/dist/esm/api/types/DeviceListRes.d.mts +1 -1
  264. package/dist/esm/api/types/DevicePausedTimeWindow1.d.mts +7 -0
  265. package/dist/esm/api/types/DevicePausedTimeWindow1.mjs +4 -0
  266. package/dist/esm/api/types/{DeviceSearchRes.d.mts → DirectoryEntryListRes.d.mts} +2 -2
  267. package/dist/esm/api/types/DirectoryEntryListRes.mjs +4 -0
  268. package/dist/esm/api/types/DirectoryEntrySortByEnum.d.mts +9 -0
  269. package/dist/esm/api/types/DirectoryEntrySortByEnum.mjs +8 -0
  270. package/dist/esm/api/types/{SessionSearchRes.d.mts → DriverListRes.d.mts} +2 -2
  271. package/dist/esm/api/types/DriverListRes.mjs +4 -0
  272. package/dist/esm/api/types/ForwarderConnectionListRes.d.mts +8 -0
  273. package/dist/esm/api/types/ForwarderConnectionListRes.mjs +4 -0
  274. package/dist/esm/api/types/LineItemGroupListRes.d.mts +1 -1
  275. package/dist/esm/api/types/NotificationAdHocListRes.d.mts +8 -0
  276. package/dist/esm/api/types/NotificationAdHocListRes.mjs +4 -0
  277. package/dist/esm/api/types/NotificationGroupListRes.d.mts +8 -0
  278. package/dist/esm/api/types/NotificationGroupListRes.mjs +4 -0
  279. package/dist/esm/api/types/NotificationGroupUserListRes.d.mts +8 -0
  280. package/dist/esm/api/types/NotificationGroupUserListRes.mjs +4 -0
  281. package/dist/esm/api/types/OffChrtShipperOrgListRes.d.mts +8 -0
  282. package/dist/esm/api/types/OffChrtShipperOrgListRes.mjs +4 -0
  283. package/dist/esm/api/types/OrderDraftExpandedListRes.d.mts +1 -1
  284. package/dist/esm/api/types/OrdersExpandedListRes.d.mts +1 -1
  285. package/dist/esm/api/types/OrgMemberListRes.d.mts +8 -0
  286. package/dist/esm/api/types/OrgMemberListRes.mjs +4 -0
  287. package/dist/esm/api/types/OrgMemberSortByEnum.d.mts +8 -0
  288. package/dist/esm/api/types/OrgMemberSortByEnum.mjs +7 -0
  289. package/dist/esm/api/types/OrgMembersAndDriversListRes.d.mts +8 -0
  290. package/dist/esm/api/types/OrgMembersAndDriversListRes.mjs +4 -0
  291. package/dist/esm/api/types/RateSheetListResponse.d.mts +1 -1
  292. package/dist/esm/api/types/SessionListRes.d.mts +1 -1
  293. package/dist/esm/api/types/ShipperConnectionListRes.d.mts +8 -0
  294. package/dist/esm/api/types/ShipperConnectionListRes.mjs +4 -0
  295. package/dist/esm/api/types/StatementsExpandedListRes.d.mts +1 -1
  296. package/dist/esm/api/types/StatementsListRes.d.mts +1 -1
  297. package/dist/esm/api/types/TaskGroupExpandedListRes.d.mts +1 -1
  298. package/dist/esm/api/types/index.d.mts +14 -2
  299. package/dist/esm/api/types/index.mjs +14 -2
  300. package/dist/esm/version.d.mts +1 -1
  301. package/dist/esm/version.mjs +1 -1
  302. package/package.json +1 -1
  303. package/reference.md +302 -180
  304. package/dist/cjs/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.d.ts +0 -8
  305. package/dist/cjs/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.js +0 -10
  306. package/dist/cjs/api/resources/billing/resources/rateSheets/types/index.d.ts +0 -1
  307. package/dist/cjs/api/resources/billing/resources/rateSheets/types/index.js +0 -17
  308. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.ts +0 -8
  309. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.js +0 -10
  310. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.d.ts +0 -1
  311. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.js +0 -17
  312. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.d.ts +0 -8
  313. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.js +0 -10
  314. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.d.ts +0 -8
  315. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.js +0 -10
  316. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/index.d.ts +0 -2
  317. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/index.js +0 -18
  318. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.d.ts +0 -8
  319. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.js +0 -10
  320. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.d.ts +0 -8
  321. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.js +0 -10
  322. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.ts +0 -2
  323. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.js +0 -18
  324. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesSearchV1Request.d.ts +0 -21
  325. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsSearchV1Request.d.ts +0 -21
  326. package/dist/esm/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.d.mts +0 -8
  327. package/dist/esm/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.mjs +0 -7
  328. package/dist/esm/api/resources/billing/resources/rateSheets/types/index.d.mts +0 -1
  329. package/dist/esm/api/resources/billing/resources/rateSheets/types/index.mjs +0 -1
  330. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.mts +0 -8
  331. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.mjs +0 -7
  332. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.d.mts +0 -1
  333. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.mjs +0 -1
  334. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.d.mts +0 -8
  335. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.mjs +0 -7
  336. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.d.mts +0 -8
  337. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.mjs +0 -7
  338. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/index.d.mts +0 -2
  339. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/index.mjs +0 -2
  340. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.d.mts +0 -8
  341. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.mjs +0 -7
  342. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.d.mts +0 -8
  343. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.mjs +0 -7
  344. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.mts +0 -2
  345. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.mjs +0 -2
  346. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesSearchV1Request.d.mts +0 -21
  347. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsSearchV1Request.d.mts +0 -21
  348. /package/dist/cjs/api/resources/{tracking/resources/devices/client/requests/DevicesSearchV1Request.js → notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.js} +0 -0
  349. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionsSearchV1Request.js → notifications/resources/groups/client/requests/GroupsListByOrgV1Request.js} +0 -0
  350. /package/dist/cjs/api/{types/DeviceSearchRes.js → resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.js} +0 -0
  351. /package/dist/cjs/api/{types/SessionSearchRes.js → resources/orgs/client/requests/OrgsListMembersV1Request.js} +0 -0
  352. /package/dist/esm/api/resources/{tracking/resources/devices/client/requests/DevicesSearchV1Request.mjs → notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.mjs} +0 -0
  353. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionsSearchV1Request.mjs → notifications/resources/groups/client/requests/GroupsListByOrgV1Request.mjs} +0 -0
  354. /package/dist/esm/api/{types/DeviceSearchRes.mjs → resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.mjs} +0 -0
  355. /package/dist/esm/api/{types/SessionSearchRes.mjs → resources/orgs/client/requests/OrgsListMembersV1Request.mjs} +0 -0
@@ -1,9 +1,8 @@
1
- export * as expanded from "./expanded/index.js";
2
- export * from "./expanded/types/index.js";
3
1
  export * as taskGroup from "./taskGroup/index.js";
4
2
  export * as task from "./task/index.js";
5
3
  export * as taskArtifact from "./taskArtifact/index.js";
6
4
  export * as cargo from "./cargo/index.js";
5
+ export * as expanded from "./expanded/index.js";
7
6
  export * from "./taskGroup/client/requests/index.js";
8
7
  export * from "./task/client/requests/index.js";
9
8
  export * from "./taskArtifact/client/requests/index.js";
@@ -36,13 +36,12 @@ 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.cargo = exports.taskArtifact = exports.task = exports.taskGroup = exports.expanded = void 0;
40
- exports.expanded = __importStar(require("./expanded/index.js"));
41
- __exportStar(require("./expanded/types/index.js"), exports);
39
+ exports.expanded = exports.cargo = exports.taskArtifact = exports.task = exports.taskGroup = void 0;
42
40
  exports.taskGroup = __importStar(require("./taskGroup/index.js"));
43
41
  exports.task = __importStar(require("./task/index.js"));
44
42
  exports.taskArtifact = __importStar(require("./taskArtifact/index.js"));
45
43
  exports.cargo = __importStar(require("./cargo/index.js"));
44
+ exports.expanded = __importStar(require("./expanded/index.js"));
46
45
  __exportStar(require("./taskGroup/client/requests/index.js"), exports);
47
46
  __exportStar(require("./task/client/requests/index.js"), exports);
48
47
  __exportStar(require("./taskArtifact/client/requests/index.js"), exports);
@@ -1,2 +1,2 @@
1
- export * from "./resources/index.js";
2
1
  export * from "./client/index.js";
2
+ export * from "./resources/index.js";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./resources/index.js"), exports);
18
17
  __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./resources/index.js"), exports);
@@ -59,7 +59,7 @@ export declare class Expanded {
59
59
  forForwarderOperatorsV1(orderIdOrShortId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrderExpanded>;
60
60
  private __forForwarderOperatorsV1;
61
61
  /**
62
- * Lists expanded orders for forwarder operators with filtering, sorting, and pagination. | authz: allowed_org_types=[forwarder], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
62
+ * Lists expanded orders for forwarder operators with filtering, sorting, pagination, and optional search. | authz: allowed_org_types=[forwarder], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
63
63
  *
64
64
  * @param {Chrt.shipping.orders.ExpandedListForForwarderOperatorsV1Request} request
65
65
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
@@ -69,9 +69,10 @@ export declare class Expanded {
69
69
  * @example
70
70
  * await client.shipping.orders.expanded.listForForwarderOperatorsV1({
71
71
  * sort_by: "draft_started_at_timestamp",
72
- * sort_order: "ascending",
72
+ * sort_order: "asc",
73
73
  * page: 1,
74
74
  * page_size: 1,
75
+ * search: "search",
75
76
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
76
77
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
77
78
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -90,7 +91,7 @@ export declare class Expanded {
90
91
  listForForwarderOperatorsV1(request: Chrt.shipping.orders.ExpandedListForForwarderOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrdersExpandedListRes>;
91
92
  private __listForForwarderOperatorsV1;
92
93
  /**
93
- * Lists expanded orders for shipper operators with filtering, sorting, and pagination. | authz: allowed_org_types=[shipper], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
94
+ * Lists expanded orders for shipper operators with filtering, sorting, pagination, and optional search. | authz: allowed_org_types=[shipper], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
94
95
  *
95
96
  * @param {Chrt.shipping.orders.ExpandedListForShipperOperatorsV1Request} request
96
97
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
@@ -100,9 +101,10 @@ export declare class Expanded {
100
101
  * @example
101
102
  * await client.shipping.orders.expanded.listForShipperOperatorsV1({
102
103
  * sort_by: "draft_started_at_timestamp",
103
- * sort_order: "ascending",
104
+ * sort_order: "asc",
104
105
  * page: 1,
105
106
  * page_size: 1,
107
+ * search: "search",
106
108
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
107
109
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
108
110
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -120,5 +122,21 @@ export declare class Expanded {
120
122
  */
121
123
  listForShipperOperatorsV1(request: Chrt.shipping.orders.ExpandedListForShipperOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.OrdersExpandedListRes>;
122
124
  private __listForShipperOperatorsV1;
125
+ /**
126
+ * Returns distinct order short_id values matching the query via case-insensitive regex. Searches non-draft orders visible to the caller's org. | authz: allowed_org_types=[forwarder, shipper], min_org_role=operator | () -> (list[str])
127
+ *
128
+ * @param {Chrt.shipping.orders.ExpandedTypeaheadV1Request} request
129
+ * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
130
+ *
131
+ * @throws {@link Chrt.UnprocessableEntityError}
132
+ *
133
+ * @example
134
+ * await client.shipping.orders.expanded.typeaheadV1({
135
+ * query: "query",
136
+ * limit: 1
137
+ * })
138
+ */
139
+ typeaheadV1(request: Chrt.shipping.orders.ExpandedTypeaheadV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<string[]>;
140
+ private __typeaheadV1;
123
141
  protected _getAuthorizationHeader(): Promise<string | undefined>;
124
142
  }
@@ -182,7 +182,7 @@ class Expanded {
182
182
  });
183
183
  }
184
184
  /**
185
- * Lists expanded orders for forwarder operators with filtering, sorting, and pagination. | authz: allowed_org_types=[forwarder], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
185
+ * Lists expanded orders for forwarder operators with filtering, sorting, pagination, and optional search. | authz: allowed_org_types=[forwarder], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
186
186
  *
187
187
  * @param {Chrt.shipping.orders.ExpandedListForForwarderOperatorsV1Request} request
188
188
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
@@ -192,9 +192,10 @@ class Expanded {
192
192
  * @example
193
193
  * await client.shipping.orders.expanded.listForForwarderOperatorsV1({
194
194
  * sort_by: "draft_started_at_timestamp",
195
- * sort_order: "ascending",
195
+ * sort_order: "asc",
196
196
  * page: 1,
197
197
  * page_size: 1,
198
+ * search: "search",
198
199
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
199
200
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
200
201
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -216,7 +217,7 @@ class Expanded {
216
217
  __listForForwarderOperatorsV1(request, requestOptions) {
217
218
  return __awaiter(this, void 0, void 0, function* () {
218
219
  var _a, _b, _c, _d, _e, _f;
219
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled_at_timestamp_lte: filterOrderCancelledAtTimestampLte, filter_order_cancelled_at_timestamp_gte: filterOrderCancelledAtTimestampGte, body: _body, } = request;
220
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled_at_timestamp_lte: filterOrderCancelledAtTimestampLte, filter_order_cancelled_at_timestamp_gte: filterOrderCancelledAtTimestampGte, body: _body, } = request;
220
221
  const _queryParams = {};
221
222
  if (sortBy !== undefined) {
222
223
  _queryParams["sort_by"] = sortBy;
@@ -230,6 +231,9 @@ class Expanded {
230
231
  if (pageSize !== undefined) {
231
232
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
232
233
  }
234
+ if (search !== undefined) {
235
+ _queryParams["search"] = search;
236
+ }
233
237
  if (filterStatus !== undefined) {
234
238
  if (Array.isArray(filterStatus)) {
235
239
  _queryParams["filter_status"] = filterStatus.map((item) => item);
@@ -320,7 +324,7 @@ class Expanded {
320
324
  });
321
325
  }
322
326
  /**
323
- * Lists expanded orders for shipper operators with filtering, sorting, and pagination. | authz: allowed_org_types=[shipper], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
327
+ * Lists expanded orders for shipper operators with filtering, sorting, pagination, and optional search. | authz: allowed_org_types=[shipper], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (OrdersExpandedListRes)
324
328
  *
325
329
  * @param {Chrt.shipping.orders.ExpandedListForShipperOperatorsV1Request} request
326
330
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
@@ -330,9 +334,10 @@ class Expanded {
330
334
  * @example
331
335
  * await client.shipping.orders.expanded.listForShipperOperatorsV1({
332
336
  * sort_by: "draft_started_at_timestamp",
333
- * sort_order: "ascending",
337
+ * sort_order: "asc",
334
338
  * page: 1,
335
339
  * page_size: 1,
340
+ * search: "search",
336
341
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
337
342
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
338
343
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -354,7 +359,7 @@ class Expanded {
354
359
  __listForShipperOperatorsV1(request, requestOptions) {
355
360
  return __awaiter(this, void 0, void 0, function* () {
356
361
  var _a, _b, _c, _d, _e, _f;
357
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled_at_timestamp_lte: filterOrderCancelledAtTimestampLte, filter_order_cancelled_at_timestamp_gte: filterOrderCancelledAtTimestampGte, body: _body, } = request;
362
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_order_cancelled_at_timestamp_lte: filterOrderCancelledAtTimestampLte, filter_order_cancelled_at_timestamp_gte: filterOrderCancelledAtTimestampGte, body: _body, } = request;
358
363
  const _queryParams = {};
359
364
  if (sortBy !== undefined) {
360
365
  _queryParams["sort_by"] = sortBy;
@@ -368,6 +373,9 @@ class Expanded {
368
373
  if (pageSize !== undefined) {
369
374
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
370
375
  }
376
+ if (search !== undefined) {
377
+ _queryParams["search"] = search;
378
+ }
371
379
  if (filterStatus !== undefined) {
372
380
  if (Array.isArray(filterStatus)) {
373
381
  _queryParams["filter_status"] = filterStatus.map((item) => item);
@@ -457,6 +465,74 @@ class Expanded {
457
465
  }
458
466
  });
459
467
  }
468
+ /**
469
+ * Returns distinct order short_id values matching the query via case-insensitive regex. Searches non-draft orders visible to the caller's org. | authz: allowed_org_types=[forwarder, shipper], min_org_role=operator | () -> (list[str])
470
+ *
471
+ * @param {Chrt.shipping.orders.ExpandedTypeaheadV1Request} request
472
+ * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
473
+ *
474
+ * @throws {@link Chrt.UnprocessableEntityError}
475
+ *
476
+ * @example
477
+ * await client.shipping.orders.expanded.typeaheadV1({
478
+ * query: "query",
479
+ * limit: 1
480
+ * })
481
+ */
482
+ typeaheadV1(request, requestOptions) {
483
+ return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
484
+ }
485
+ __typeaheadV1(request, requestOptions) {
486
+ return __awaiter(this, void 0, void 0, function* () {
487
+ var _a, _b, _c, _d, _e;
488
+ const { query, limit } = request;
489
+ const _queryParams = {};
490
+ _queryParams["query"] = query;
491
+ if (limit !== undefined) {
492
+ _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
493
+ }
494
+ 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);
495
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
496
+ 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/orders/expanded/typeahead/v1"),
497
+ method: "GET",
498
+ headers: _headers,
499
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
500
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
501
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
502
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
503
+ });
504
+ if (_response.ok) {
505
+ return { data: _response.body, rawResponse: _response.rawResponse };
506
+ }
507
+ if (_response.error.reason === "status-code") {
508
+ switch (_response.error.statusCode) {
509
+ case 422:
510
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
511
+ default:
512
+ throw new errors.ChrtError({
513
+ statusCode: _response.error.statusCode,
514
+ body: _response.error.body,
515
+ rawResponse: _response.rawResponse,
516
+ });
517
+ }
518
+ }
519
+ switch (_response.error.reason) {
520
+ case "non-json":
521
+ throw new errors.ChrtError({
522
+ statusCode: _response.error.statusCode,
523
+ body: _response.error.rawBody,
524
+ rawResponse: _response.rawResponse,
525
+ });
526
+ case "timeout":
527
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/orders/expanded/typeahead/v1.");
528
+ case "unknown":
529
+ throw new errors.ChrtError({
530
+ message: _response.error.errorMessage,
531
+ rawResponse: _response.rawResponse,
532
+ });
533
+ }
534
+ });
535
+ }
460
536
  _getAuthorizationHeader() {
461
537
  return __awaiter(this, void 0, void 0, function* () {
462
538
  const bearer = yield core.Supplier.get(this._options.token);
@@ -6,9 +6,10 @@ import * as Chrt from "../../../../../../../../index.js";
6
6
  * @example
7
7
  * {
8
8
  * sort_by: "draft_started_at_timestamp",
9
- * sort_order: "ascending",
9
+ * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * search: "search",
12
13
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
13
14
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
14
15
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -26,9 +27,12 @@ import * as Chrt from "../../../../../../../../index.js";
26
27
  */
27
28
  export interface ExpandedListForForwarderOperatorsV1Request {
28
29
  sort_by?: Chrt.OrderSortByEnum | null;
29
- sort_order?: Chrt.shipping.orders.ExpandedListForForwarderOperatorsV1RequestSortOrder | null;
30
+ /** Sort order (asc or desc) */
31
+ sort_order?: Chrt.SortOrderEnum | null;
30
32
  page?: number | null;
31
33
  page_size?: number | null;
34
+ /** Full-text search query (searches order short_id) */
35
+ search?: string | null;
32
36
  filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
33
37
  filter_draft_started_at_timestamp_lte?: string | null;
34
38
  filter_draft_started_at_timestamp_gte?: string | null;
@@ -6,9 +6,10 @@ import * as Chrt from "../../../../../../../../index.js";
6
6
  * @example
7
7
  * {
8
8
  * sort_by: "draft_started_at_timestamp",
9
- * sort_order: "ascending",
9
+ * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * search: "search",
12
13
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
13
14
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
14
15
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -26,9 +27,12 @@ import * as Chrt from "../../../../../../../../index.js";
26
27
  */
27
28
  export interface ExpandedListForShipperOperatorsV1Request {
28
29
  sort_by?: Chrt.OrderSortByEnum | null;
29
- sort_order?: Chrt.shipping.orders.ExpandedListForShipperOperatorsV1RequestSortOrder | null;
30
+ /** Sort order (asc or desc) */
31
+ sort_order?: Chrt.SortOrderEnum | null;
30
32
  page?: number | null;
31
33
  page_size?: number | null;
34
+ /** Full-text search query (searches order short_id) */
35
+ search?: string | null;
32
36
  filter_status?: (Chrt.OrderStatusEnum1 | null) | (Chrt.OrderStatusEnum1 | null)[];
33
37
  filter_draft_started_at_timestamp_lte?: string | null;
34
38
  filter_draft_started_at_timestamp_gte?: string | null;
@@ -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 ExpandedTypeaheadV1Request {
12
+ /** Typeahead search query */
13
+ query: string;
14
+ /** Max results */
15
+ limit?: number | null;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  export { type ExpandedListForForwarderOperatorsV1Request } from "./ExpandedListForForwarderOperatorsV1Request.js";
2
2
  export { type ExpandedListForShipperOperatorsV1Request } from "./ExpandedListForShipperOperatorsV1Request.js";
3
+ export { type ExpandedTypeaheadV1Request } from "./ExpandedTypeaheadV1Request.js";
@@ -1,2 +1 @@
1
- export * from "./types/index.js";
2
1
  export * from "./client/index.js";
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types/index.js"), exports);
18
17
  __exportStar(require("./client/index.js"), exports);
@@ -1,3 +1,2 @@
1
1
  export * as expanded from "./expanded/index.js";
2
- export * from "./expanded/types/index.js";
3
2
  export * from "./expanded/client/requests/index.js";
@@ -38,5 +38,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.expanded = void 0;
40
40
  exports.expanded = __importStar(require("./expanded/index.js"));
41
- __exportStar(require("./expanded/types/index.js"), exports);
42
41
  __exportStar(require("./expanded/client/requests/index.js"), exports);
@@ -1,2 +1,2 @@
1
- export * from "./resources/index.js";
2
1
  export * from "./client/index.js";
2
+ export * from "./resources/index.js";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./resources/index.js"), exports);
18
17
  __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./resources/index.js"), exports);
@@ -87,7 +87,7 @@ export declare class Expanded {
87
87
  forForwarderOperatorsV1(taskGroupId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpanded>;
88
88
  private __forForwarderOperatorsV1;
89
89
  /**
90
- * Lists expanded task groups for courier operators with filtering, sorting, and pagination. | authz_personas=[courier_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
90
+ * Lists expanded task groups for courier operators with filtering, sorting, pagination, and optional full-text search. | authz_personas=[courier_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
91
91
  *
92
92
  * @param {Chrt.shipping.taskGroups.ExpandedListForCourierOperatorsV1Request} request
93
93
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
@@ -97,9 +97,10 @@ export declare class Expanded {
97
97
  * @example
98
98
  * await client.shipping.taskGroups.expanded.listForCourierOperatorsV1({
99
99
  * sort_by: "draft_started_at_timestamp",
100
- * sort_order: "ascending",
100
+ * sort_order: "asc",
101
101
  * page: 1,
102
102
  * page_size: 1,
103
+ * search: "search",
103
104
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
104
105
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
105
106
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -118,7 +119,7 @@ export declare class Expanded {
118
119
  listForCourierOperatorsV1(request: Chrt.shipping.taskGroups.ExpandedListForCourierOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedListRes>;
119
120
  private __listForCourierOperatorsV1;
120
121
  /**
121
- * Lists expanded task groups for courier driver with filtering, sorting, and pagination. | authz_personas=[courier_driver] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
122
+ * Lists expanded task groups for courier driver with filtering, sorting, pagination, and optional full-text search. | authz_personas=[courier_driver] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
122
123
  *
123
124
  * @param {Chrt.shipping.taskGroups.ExpandedListForCourierDriverV1Request} request
124
125
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
@@ -128,9 +129,10 @@ export declare class Expanded {
128
129
  * @example
129
130
  * await client.shipping.taskGroups.expanded.listForCourierDriverV1({
130
131
  * sort_by: "draft_started_at_timestamp",
131
- * sort_order: "ascending",
132
+ * sort_order: "asc",
132
133
  * page: 1,
133
134
  * page_size: 1,
135
+ * search: "search",
134
136
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
135
137
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
136
138
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -148,5 +150,21 @@ export declare class Expanded {
148
150
  */
149
151
  listForCourierDriverV1(request: Chrt.shipping.taskGroups.ExpandedListForCourierDriverV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedListRes>;
150
152
  private __listForCourierDriverV1;
153
+ /**
154
+ * Returns distinct order_short_id values matching the query via case-insensitive regex. Searches non-draft task groups belonging to the caller's courier org. | authz: allowed_org_types=[courier], min_org_role=driver | () -> (list[str])
155
+ *
156
+ * @param {Chrt.shipping.taskGroups.ExpandedTypeaheadV1Request} request
157
+ * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
158
+ *
159
+ * @throws {@link Chrt.UnprocessableEntityError}
160
+ *
161
+ * @example
162
+ * await client.shipping.taskGroups.expanded.typeaheadV1({
163
+ * query: "query",
164
+ * limit: 1
165
+ * })
166
+ */
167
+ typeaheadV1(request: Chrt.shipping.taskGroups.ExpandedTypeaheadV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<string[]>;
168
+ private __typeaheadV1;
151
169
  protected _getAuthorizationHeader(): Promise<string | undefined>;
152
170
  }
@@ -308,7 +308,7 @@ class Expanded {
308
308
  });
309
309
  }
310
310
  /**
311
- * Lists expanded task groups for courier operators with filtering, sorting, and pagination. | authz_personas=[courier_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
311
+ * Lists expanded task groups for courier operators with filtering, sorting, pagination, and optional full-text search. | authz_personas=[courier_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
312
312
  *
313
313
  * @param {Chrt.shipping.taskGroups.ExpandedListForCourierOperatorsV1Request} request
314
314
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
@@ -318,9 +318,10 @@ class Expanded {
318
318
  * @example
319
319
  * await client.shipping.taskGroups.expanded.listForCourierOperatorsV1({
320
320
  * sort_by: "draft_started_at_timestamp",
321
- * sort_order: "ascending",
321
+ * sort_order: "asc",
322
322
  * page: 1,
323
323
  * page_size: 1,
324
+ * search: "search",
324
325
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
325
326
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
326
327
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -342,7 +343,7 @@ class Expanded {
342
343
  __listForCourierOperatorsV1(request, requestOptions) {
343
344
  return __awaiter(this, void 0, void 0, function* () {
344
345
  var _a, _b, _c, _d, _e, _f;
345
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
346
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
346
347
  const _queryParams = {};
347
348
  if (sortBy !== undefined) {
348
349
  _queryParams["sort_by"] = sortBy;
@@ -356,6 +357,9 @@ class Expanded {
356
357
  if (pageSize !== undefined) {
357
358
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
358
359
  }
360
+ if (search !== undefined) {
361
+ _queryParams["search"] = search;
362
+ }
359
363
  if (filterStatus !== undefined) {
360
364
  if (Array.isArray(filterStatus)) {
361
365
  _queryParams["filter_status"] = filterStatus.map((item) => item);
@@ -446,7 +450,7 @@ class Expanded {
446
450
  });
447
451
  }
448
452
  /**
449
- * Lists expanded task groups for courier driver with filtering, sorting, and pagination. | authz_personas=[courier_driver] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
453
+ * Lists expanded task groups for courier driver with filtering, sorting, pagination, and optional full-text search. | authz_personas=[courier_driver] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
450
454
  *
451
455
  * @param {Chrt.shipping.taskGroups.ExpandedListForCourierDriverV1Request} request
452
456
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
@@ -456,9 +460,10 @@ class Expanded {
456
460
  * @example
457
461
  * await client.shipping.taskGroups.expanded.listForCourierDriverV1({
458
462
  * sort_by: "draft_started_at_timestamp",
459
- * sort_order: "ascending",
463
+ * sort_order: "asc",
460
464
  * page: 1,
461
465
  * page_size: 1,
466
+ * search: "search",
462
467
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
463
468
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
464
469
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -480,7 +485,7 @@ class Expanded {
480
485
  __listForCourierDriverV1(request, requestOptions) {
481
486
  return __awaiter(this, void 0, void 0, function* () {
482
487
  var _a, _b, _c, _d, _e, _f;
483
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
488
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
484
489
  const _queryParams = {};
485
490
  if (sortBy !== undefined) {
486
491
  _queryParams["sort_by"] = sortBy;
@@ -494,6 +499,9 @@ class Expanded {
494
499
  if (pageSize !== undefined) {
495
500
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
496
501
  }
502
+ if (search !== undefined) {
503
+ _queryParams["search"] = search;
504
+ }
497
505
  if (filterStatus !== undefined) {
498
506
  if (Array.isArray(filterStatus)) {
499
507
  _queryParams["filter_status"] = filterStatus.map((item) => item);
@@ -583,6 +591,74 @@ class Expanded {
583
591
  }
584
592
  });
585
593
  }
594
+ /**
595
+ * Returns distinct order_short_id values matching the query via case-insensitive regex. Searches non-draft task groups belonging to the caller's courier org. | authz: allowed_org_types=[courier], min_org_role=driver | () -> (list[str])
596
+ *
597
+ * @param {Chrt.shipping.taskGroups.ExpandedTypeaheadV1Request} request
598
+ * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
599
+ *
600
+ * @throws {@link Chrt.UnprocessableEntityError}
601
+ *
602
+ * @example
603
+ * await client.shipping.taskGroups.expanded.typeaheadV1({
604
+ * query: "query",
605
+ * limit: 1
606
+ * })
607
+ */
608
+ typeaheadV1(request, requestOptions) {
609
+ return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
610
+ }
611
+ __typeaheadV1(request, requestOptions) {
612
+ return __awaiter(this, void 0, void 0, function* () {
613
+ var _a, _b, _c, _d, _e;
614
+ const { query, limit } = request;
615
+ const _queryParams = {};
616
+ _queryParams["query"] = query;
617
+ if (limit !== undefined) {
618
+ _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
619
+ }
620
+ 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);
621
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
622
+ 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/task_groups/expanded/typeahead/v1"),
623
+ method: "GET",
624
+ headers: _headers,
625
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
626
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
627
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
628
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
629
+ });
630
+ if (_response.ok) {
631
+ return { data: _response.body, rawResponse: _response.rawResponse };
632
+ }
633
+ if (_response.error.reason === "status-code") {
634
+ switch (_response.error.statusCode) {
635
+ case 422:
636
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
637
+ default:
638
+ throw new errors.ChrtError({
639
+ statusCode: _response.error.statusCode,
640
+ body: _response.error.body,
641
+ rawResponse: _response.rawResponse,
642
+ });
643
+ }
644
+ }
645
+ switch (_response.error.reason) {
646
+ case "non-json":
647
+ throw new errors.ChrtError({
648
+ statusCode: _response.error.statusCode,
649
+ body: _response.error.rawBody,
650
+ rawResponse: _response.rawResponse,
651
+ });
652
+ case "timeout":
653
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/task_groups/expanded/typeahead/v1.");
654
+ case "unknown":
655
+ throw new errors.ChrtError({
656
+ message: _response.error.errorMessage,
657
+ rawResponse: _response.rawResponse,
658
+ });
659
+ }
660
+ });
661
+ }
586
662
  _getAuthorizationHeader() {
587
663
  return __awaiter(this, void 0, void 0, function* () {
588
664
  const bearer = yield core.Supplier.get(this._options.token);
@@ -6,9 +6,10 @@ import * as Chrt from "../../../../../../../../index.js";
6
6
  * @example
7
7
  * {
8
8
  * sort_by: "draft_started_at_timestamp",
9
- * sort_order: "ascending",
9
+ * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * search: "search",
12
13
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
13
14
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
14
15
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -26,9 +27,12 @@ import * as Chrt from "../../../../../../../../index.js";
26
27
  */
27
28
  export interface ExpandedListForCourierDriverV1Request {
28
29
  sort_by?: Chrt.TaskGroupSortByEnum | null;
29
- sort_order?: Chrt.shipping.taskGroups.ExpandedListForCourierDriverV1RequestSortOrder | null;
30
+ /** Sort order (asc or desc) */
31
+ sort_order?: Chrt.SortOrderEnum | null;
30
32
  page?: number | null;
31
33
  page_size?: number | null;
34
+ /** Full-text search query (searches order_short_id, flight_number) */
35
+ search?: string | null;
32
36
  filter_status?: (Chrt.TaskGroupStatusEnum1 | null) | (Chrt.TaskGroupStatusEnum1 | null)[];
33
37
  filter_draft_started_at_timestamp_lte?: string | null;
34
38
  filter_draft_started_at_timestamp_gte?: string | null;