@chrt-inc/typescript-sdk 1.925.0 → 1.929.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 (212) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +3 -1
  5. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +11 -3
  6. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -0
  7. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -0
  8. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +6 -1
  9. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +30 -2
  10. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +17 -0
  11. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientUpdate1.d.ts +1 -0
  12. package/dist/cjs/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.ts +1 -0
  13. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +19 -2
  14. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +74 -5
  15. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCompleteReq.d.ts +10 -0
  16. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.d.ts +12 -0
  17. package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +2 -0
  18. package/dist/cjs/api/resources/tracking/client/Client.d.ts +6 -0
  19. package/dist/cjs/api/resources/tracking/client/Client.js +16 -6
  20. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/Client.d.ts +140 -0
  21. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/Client.js +494 -0
  22. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/index.d.ts +2 -0
  23. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/index.js +17 -0
  24. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.d.ts +45 -0
  25. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.d.ts +28 -0
  26. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.d.ts +14 -0
  27. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.js +5 -0
  28. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/index.d.ts +3 -0
  29. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/index.js +2 -0
  30. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/index.js +17 -0
  32. package/dist/cjs/api/resources/tracking/resources/index.d.ts +4 -0
  33. package/dist/cjs/api/resources/tracking/resources/index.js +5 -1
  34. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/Client.d.ts +117 -0
  35. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/Client.js +393 -0
  36. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/index.d.ts +2 -0
  37. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/index.js +17 -0
  38. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.d.ts +12 -0
  39. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.js +5 -0
  40. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.d.ts +13 -0
  41. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.js +5 -0
  42. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.d.ts +10 -0
  43. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.js +5 -0
  44. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.ts +3 -0
  45. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/tracking/resources/sessionGeofences/index.js +17 -0
  48. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +8 -8
  49. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +5 -5
  50. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionClientUpdate1.d.ts → SessionClientUpdate2.d.ts} +1 -5
  51. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate2.js +5 -0
  52. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionClientCreate1.d.ts → SessionsCreateV1Req.d.ts} +3 -3
  53. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsCreateV1Req.js +5 -0
  54. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +2 -2
  55. package/dist/cjs/api/types/BillingInvoiceApprovedWebhookPayload.d.ts +10 -0
  56. package/dist/cjs/api/types/BillingInvoiceApprovedWebhookPayload.js +5 -0
  57. package/dist/cjs/api/types/DeviceExpandedRes.d.ts +2 -2
  58. package/dist/cjs/api/types/GeofencePointLocationFeature1.d.ts +14 -0
  59. package/dist/cjs/api/types/GeofencePointLocationFeature1.js +5 -0
  60. package/dist/cjs/api/types/GeofenceTemplateListRes.d.ts +8 -0
  61. package/dist/cjs/api/types/GeofenceTemplateListRes.js +5 -0
  62. package/dist/cjs/api/types/GeofenceTemplateSortByEnum.d.ts +10 -0
  63. package/dist/cjs/api/types/GeofenceTemplateSortByEnum.js +12 -0
  64. package/dist/cjs/api/types/InvoiceExpandedRes.d.ts +1 -1
  65. package/dist/cjs/api/types/InvoiceLineItemExpandedRes.d.ts +12 -0
  66. package/dist/cjs/api/types/InvoiceLineItemExpandedRes.js +5 -0
  67. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +2 -2
  68. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -1
  69. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +3 -2
  70. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +2 -1
  71. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +3 -2
  72. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +2 -1
  73. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -0
  74. package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +1 -0
  75. package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +37 -0
  76. package/dist/cjs/api/types/OrderTemplateNewExpanded1.js +5 -0
  77. package/dist/cjs/api/types/OrderTemplateNewListRes.d.ts +1 -1
  78. package/dist/cjs/api/types/OrderTemplateNewTaskGroupExpanded1.d.ts +10 -0
  79. package/dist/cjs/api/types/OrderTemplateNewTaskGroupExpanded1.js +5 -0
  80. package/dist/cjs/api/types/Point.d.ts +1 -0
  81. package/dist/cjs/api/types/{Session1.d.ts → Session2.d.ts} +2 -4
  82. package/dist/cjs/api/types/Session2.js +5 -0
  83. package/dist/cjs/api/types/SessionGeofence1.d.ts +12 -0
  84. package/dist/cjs/api/types/SessionGeofence1.js +5 -0
  85. package/dist/cjs/api/types/SessionGeofenceBase1.d.ts +9 -0
  86. package/dist/cjs/api/types/SessionGeofenceBase1.js +5 -0
  87. package/dist/cjs/api/types/SessionGeofenceClientCreate1.d.ts +9 -0
  88. package/dist/cjs/api/types/SessionGeofenceClientCreate1.js +5 -0
  89. package/dist/cjs/api/types/SessionGeofenceTemplate1.d.ts +19 -0
  90. package/dist/cjs/api/types/SessionGeofenceTemplate1.js +5 -0
  91. package/dist/cjs/api/types/SessionListRes.d.ts +1 -1
  92. package/dist/cjs/api/types/Task1.d.ts +1 -0
  93. package/dist/cjs/api/types/TaskListToApplyToOrderExpanded.d.ts +8 -0
  94. package/dist/cjs/api/types/TaskListToApplyToOrderExpanded.js +5 -0
  95. package/dist/cjs/api/types/TrackingSessionGeofenceEnteredWebhookPayload.d.ts +14 -0
  96. package/dist/cjs/api/types/TrackingSessionGeofenceEnteredWebhookPayload.js +5 -0
  97. package/dist/cjs/api/types/index.d.ts +14 -2
  98. package/dist/cjs/api/types/index.js +14 -2
  99. package/dist/cjs/version.d.ts +1 -1
  100. package/dist/cjs/version.js +1 -1
  101. package/dist/esm/Client.mjs +2 -2
  102. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +1 -1
  103. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +1 -1
  104. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +3 -1
  105. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +11 -3
  106. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -0
  107. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -0
  108. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +6 -1
  109. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +30 -2
  110. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +17 -0
  111. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientUpdate1.d.mts +1 -0
  112. package/dist/esm/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.mts +1 -0
  113. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +19 -2
  114. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +74 -5
  115. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCompleteReq.d.mts +10 -0
  116. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.d.mts +12 -0
  117. package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +2 -0
  118. package/dist/esm/api/resources/tracking/client/Client.d.mts +6 -0
  119. package/dist/esm/api/resources/tracking/client/Client.mjs +10 -0
  120. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/Client.d.mts +140 -0
  121. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/Client.mjs +457 -0
  122. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/index.d.mts +2 -0
  123. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/index.mjs +1 -0
  124. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.d.mts +45 -0
  125. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.d.mts +28 -0
  126. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.d.mts +14 -0
  127. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.mjs +4 -0
  128. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/index.d.mts +3 -0
  129. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/index.mjs +1 -0
  130. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/index.d.mts +1 -0
  131. package/dist/esm/api/resources/tracking/resources/geofenceTemplates/index.mjs +1 -0
  132. package/dist/esm/api/resources/tracking/resources/index.d.mts +4 -0
  133. package/dist/esm/api/resources/tracking/resources/index.mjs +4 -0
  134. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/Client.d.mts +117 -0
  135. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/Client.mjs +356 -0
  136. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/index.d.mts +2 -0
  137. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/index.mjs +1 -0
  138. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.d.mts +12 -0
  139. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.mjs +4 -0
  140. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.d.mts +13 -0
  141. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.mjs +4 -0
  142. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.d.mts +10 -0
  143. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.mjs +4 -0
  144. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.mts +3 -0
  145. package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/index.mjs +1 -0
  146. package/dist/esm/api/resources/tracking/resources/sessionGeofences/index.d.mts +1 -0
  147. package/dist/esm/api/resources/tracking/resources/sessionGeofences/index.mjs +1 -0
  148. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +8 -8
  149. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +5 -5
  150. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionClientUpdate1.d.mts → SessionClientUpdate2.d.mts} +1 -5
  151. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate2.mjs +4 -0
  152. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionClientCreate1.d.mts → SessionsCreateV1Req.d.mts} +3 -3
  153. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsCreateV1Req.mjs +4 -0
  154. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +2 -2
  155. package/dist/esm/api/types/BillingInvoiceApprovedWebhookPayload.d.mts +10 -0
  156. package/dist/esm/api/types/BillingInvoiceApprovedWebhookPayload.mjs +4 -0
  157. package/dist/esm/api/types/DeviceExpandedRes.d.mts +2 -2
  158. package/dist/esm/api/types/GeofencePointLocationFeature1.d.mts +14 -0
  159. package/dist/esm/api/types/GeofencePointLocationFeature1.mjs +4 -0
  160. package/dist/esm/api/types/GeofenceTemplateListRes.d.mts +8 -0
  161. package/dist/esm/api/types/GeofenceTemplateListRes.mjs +4 -0
  162. package/dist/esm/api/types/GeofenceTemplateSortByEnum.d.mts +10 -0
  163. package/dist/esm/api/types/GeofenceTemplateSortByEnum.mjs +9 -0
  164. package/dist/esm/api/types/InvoiceExpandedRes.d.mts +1 -1
  165. package/dist/esm/api/types/InvoiceLineItemExpandedRes.d.mts +12 -0
  166. package/dist/esm/api/types/InvoiceLineItemExpandedRes.mjs +4 -0
  167. package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +2 -2
  168. package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -1
  169. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +3 -2
  170. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +2 -1
  171. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +3 -2
  172. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +2 -1
  173. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -0
  174. package/dist/esm/api/types/OrderExpandedForProvider.d.mts +1 -0
  175. package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +37 -0
  176. package/dist/esm/api/types/OrderTemplateNewExpanded1.mjs +4 -0
  177. package/dist/esm/api/types/OrderTemplateNewListRes.d.mts +1 -1
  178. package/dist/esm/api/types/OrderTemplateNewTaskGroupExpanded1.d.mts +10 -0
  179. package/dist/esm/api/types/OrderTemplateNewTaskGroupExpanded1.mjs +4 -0
  180. package/dist/esm/api/types/Point.d.mts +1 -0
  181. package/dist/esm/api/types/{Session1.d.mts → Session2.d.mts} +2 -4
  182. package/dist/esm/api/types/Session2.mjs +4 -0
  183. package/dist/esm/api/types/SessionGeofence1.d.mts +12 -0
  184. package/dist/esm/api/types/SessionGeofence1.mjs +4 -0
  185. package/dist/esm/api/types/SessionGeofenceBase1.d.mts +9 -0
  186. package/dist/esm/api/types/SessionGeofenceBase1.mjs +4 -0
  187. package/dist/esm/api/types/SessionGeofenceClientCreate1.d.mts +9 -0
  188. package/dist/esm/api/types/SessionGeofenceClientCreate1.mjs +4 -0
  189. package/dist/esm/api/types/SessionGeofenceTemplate1.d.mts +19 -0
  190. package/dist/esm/api/types/SessionGeofenceTemplate1.mjs +4 -0
  191. package/dist/esm/api/types/SessionListRes.d.mts +1 -1
  192. package/dist/esm/api/types/Task1.d.mts +1 -0
  193. package/dist/esm/api/types/TaskListToApplyToOrderExpanded.d.mts +8 -0
  194. package/dist/esm/api/types/TaskListToApplyToOrderExpanded.mjs +4 -0
  195. package/dist/esm/api/types/TrackingSessionGeofenceEnteredWebhookPayload.d.mts +14 -0
  196. package/dist/esm/api/types/TrackingSessionGeofenceEnteredWebhookPayload.mjs +4 -0
  197. package/dist/esm/api/types/index.d.mts +14 -2
  198. package/dist/esm/api/types/index.mjs +14 -2
  199. package/dist/esm/version.d.mts +1 -1
  200. package/dist/esm/version.mjs +1 -1
  201. package/package.json +1 -1
  202. package/reference.md +982 -100
  203. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +0 -10
  204. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +0 -10
  205. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionClientCreate1.js → shipping/resources/tasks/client/requests/TaskCompleteReq.js} +0 -0
  206. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionClientUpdate1.js → shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.js} +0 -0
  207. /package/dist/cjs/api/{types/Session1.js → resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.js} +0 -0
  208. /package/dist/cjs/api/{types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.js} +0 -0
  209. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionClientCreate1.mjs → shipping/resources/tasks/client/requests/TaskCompleteReq.mjs} +0 -0
  210. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionClientUpdate1.mjs → shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.mjs} +0 -0
  211. /package/dist/esm/api/{types/Session1.mjs → resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.mjs} +0 -0
  212. /package/dist/esm/api/{types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.mjs} +0 -0
@@ -59,8 +59,8 @@ class ChrtClient {
59
59
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
62
- "X-Fern-SDK-Version": "1.925.0",
63
- "User-Agent": "@chrt-inc/typescript-sdk/1.925.0",
62
+ "X-Fern-SDK-Version": "1.929.0",
63
+ "User-Agent": "@chrt-inc/typescript-sdk/1.929.0",
64
64
  "X-Fern-Runtime": core.RUNTIME.type,
65
65
  "X-Fern-Runtime-Version": core.RUNTIME.version,
66
66
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -74,7 +74,7 @@ export declare class Invoices {
74
74
  deleteV1(invoiceId: string, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<boolean>;
75
75
  private __deleteV1;
76
76
  /**
77
- * Retrieves an owner-scoped invoice with its line items, counterparty organization data, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExpandedRes)
77
+ * Retrieves an owner-scoped invoice with line-item orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExpandedRes)
78
78
  *
79
79
  * @param {string} invoiceId
80
80
  * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
@@ -240,7 +240,7 @@ class Invoices {
240
240
  });
241
241
  }
242
242
  /**
243
- * Retrieves an owner-scoped invoice with its line items, counterparty organization data, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExpandedRes)
243
+ * Retrieves an owner-scoped invoice with line-item orders, counterparties, and accounts expanded. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (InvoiceExpandedRes)
244
244
  *
245
245
  * @param {string} invoiceId
246
246
  * @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
@@ -95,6 +95,7 @@ export declare class OperationsTasks {
95
95
  * filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
96
96
  * filter_department_id: "filter_department_id",
97
97
  * filter_assigned_user_id: "filter_assigned_user_id",
98
+ * filter_source_task_list_id: "filter_source_task_list_id",
98
99
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
99
100
  * filter_deadline_lte: "2024-01-15T09:30:00Z"
100
101
  * })
@@ -102,7 +103,7 @@ export declare class OperationsTasks {
102
103
  expandedListV1(request?: Chrt.operations.OperationsTasksExpandedListV1Request, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskExpandedListRes>;
103
104
  private __expandedListV1;
104
105
  /**
105
- * Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
106
+ * Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / source task list / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
106
107
  *
107
108
  * @param {Chrt.operations.OperationsTasksListV1Request} request
108
109
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -120,6 +121,7 @@ export declare class OperationsTasks {
120
121
  * filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
121
122
  * filter_department_id: "filter_department_id",
122
123
  * filter_assigned_user_id: "filter_assigned_user_id",
124
+ * filter_source_task_list_id: "filter_source_task_list_id",
123
125
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
124
126
  * filter_deadline_lte: "2024-01-15T09:30:00Z"
125
127
  * })
@@ -267,6 +267,7 @@ class OperationsTasks {
267
267
  * filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
268
268
  * filter_department_id: "filter_department_id",
269
269
  * filter_assigned_user_id: "filter_assigned_user_id",
270
+ * filter_source_task_list_id: "filter_source_task_list_id",
270
271
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
271
272
  * filter_deadline_lte: "2024-01-15T09:30:00Z"
272
273
  * })
@@ -277,7 +278,7 @@ class OperationsTasks {
277
278
  __expandedListV1() {
278
279
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
279
280
  var _a, _b, _c, _d, _e, _f;
280
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
281
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_source_task_list_id: filterSourceTaskListId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
281
282
  const _queryParams = {};
282
283
  if (sortBy !== undefined) {
283
284
  _queryParams["sort_by"] = sortBy;
@@ -330,6 +331,9 @@ class OperationsTasks {
330
331
  if (filterAssignedUserId !== undefined) {
331
332
  _queryParams["filter_assigned_user_id"] = filterAssignedUserId;
332
333
  }
334
+ if (filterSourceTaskListId !== undefined) {
335
+ _queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
336
+ }
333
337
  if (filterDeadlineGte !== undefined) {
334
338
  _queryParams["filter_deadline_gte"] = filterDeadlineGte;
335
339
  }
@@ -379,7 +383,7 @@ class OperationsTasks {
379
383
  });
380
384
  }
381
385
  /**
382
- * Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
386
+ * Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / source task list / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
383
387
  *
384
388
  * @param {Chrt.operations.OperationsTasksListV1Request} request
385
389
  * @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -397,6 +401,7 @@ class OperationsTasks {
397
401
  * filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
398
402
  * filter_department_id: "filter_department_id",
399
403
  * filter_assigned_user_id: "filter_assigned_user_id",
404
+ * filter_source_task_list_id: "filter_source_task_list_id",
400
405
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
401
406
  * filter_deadline_lte: "2024-01-15T09:30:00Z"
402
407
  * })
@@ -407,7 +412,7 @@ class OperationsTasks {
407
412
  __listV1() {
408
413
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
409
414
  var _a, _b, _c, _d, _e, _f;
410
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
415
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_source_task_list_id: filterSourceTaskListId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
411
416
  const _queryParams = {};
412
417
  if (sortBy !== undefined) {
413
418
  _queryParams["sort_by"] = sortBy;
@@ -460,6 +465,9 @@ class OperationsTasks {
460
465
  if (filterAssignedUserId !== undefined) {
461
466
  _queryParams["filter_assigned_user_id"] = filterAssignedUserId;
462
467
  }
468
+ if (filterSourceTaskListId !== undefined) {
469
+ _queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
470
+ }
463
471
  if (filterDeadlineGte !== undefined) {
464
472
  _queryParams["filter_deadline_gte"] = filterDeadlineGte;
465
473
  }
@@ -14,6 +14,7 @@ import * as Chrt from "../../../../../../index.js";
14
14
  * filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
15
15
  * filter_department_id: "filter_department_id",
16
16
  * filter_assigned_user_id: "filter_assigned_user_id",
17
+ * filter_source_task_list_id: "filter_source_task_list_id",
17
18
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
18
19
  * filter_deadline_lte: "2024-01-15T09:30:00Z"
19
20
  * }
@@ -41,6 +42,8 @@ export interface OperationsTasksExpandedListV1Request {
41
42
  filter_status?: (Chrt.OperationsTaskStatusEnum | null) | (Chrt.OperationsTaskStatusEnum | null)[];
42
43
  /** Filter to tasks this user is directly assigned to */
43
44
  filter_assigned_user_id?: string | null;
45
+ /** Filter to tasks created from this OperationsTaskList */
46
+ filter_source_task_list_id?: string | null;
44
47
  /** Filter to tasks with deadline >= this timestamp */
45
48
  filter_deadline_gte?: string | null;
46
49
  /** Filter to tasks with deadline <= this timestamp */
@@ -14,6 +14,7 @@ import * as Chrt from "../../../../../../index.js";
14
14
  * filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
15
15
  * filter_department_id: "filter_department_id",
16
16
  * filter_assigned_user_id: "filter_assigned_user_id",
17
+ * filter_source_task_list_id: "filter_source_task_list_id",
17
18
  * filter_deadline_gte: "2024-01-15T09:30:00Z",
18
19
  * filter_deadline_lte: "2024-01-15T09:30:00Z"
19
20
  * }
@@ -41,6 +42,8 @@ export interface OperationsTasksListV1Request {
41
42
  filter_status?: (Chrt.OperationsTaskStatusEnum | null) | (Chrt.OperationsTaskStatusEnum | null)[];
42
43
  /** Filter to tasks this user is directly assigned to */
43
44
  filter_assigned_user_id?: string | null;
45
+ /** Filter to tasks created from this OperationsTaskList */
46
+ filter_source_task_list_id?: string | null;
44
47
  /** Filter to tasks with deadline >= this timestamp */
45
48
  filter_deadline_gte?: string | null;
46
49
  /** Filter to tasks with deadline <= this timestamp */
@@ -88,7 +88,7 @@ export declare class OrderTemplatesNew {
88
88
  resolveDateparserV1(request: Chrt.shipping.OrderTemplateNewDateparserResolveReq, requestOptions?: OrderTemplatesNew.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateNewDateparserResolveRes>;
89
89
  private __resolveDateparserV1;
90
90
  /**
91
- * Lists order templates for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
91
+ * Lists order templates with filtering, sorting, pagination, full-text search, and party/account expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
92
92
  *
93
93
  * @param {Chrt.shipping.OrderTemplatesNewListV1Request} request
94
94
  * @param {OrderTemplatesNew.RequestOptions} requestOptions - Request-specific configuration.
@@ -101,8 +101,13 @@ export declare class OrderTemplatesNew {
101
101
  * sort_order: "asc",
102
102
  * page: 1,
103
103
  * page_size: 1,
104
+ * search: "search",
104
105
  * filter_archived: true,
105
106
  * filter_owned_by_user_id: "filter_owned_by_user_id",
107
+ * filter_executor_org_id: "filter_executor_org_id",
108
+ * filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
109
+ * filter_shipper_org_id: "filter_shipper_org_id",
110
+ * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
106
111
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
107
112
  * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
108
113
  * filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -268,7 +268,7 @@ class OrderTemplatesNew {
268
268
  });
269
269
  }
270
270
  /**
271
- * Lists order templates for the caller's organization with filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
271
+ * Lists order templates with filtering, sorting, pagination, full-text search, and party/account expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
272
272
  *
273
273
  * @param {Chrt.shipping.OrderTemplatesNewListV1Request} request
274
274
  * @param {OrderTemplatesNew.RequestOptions} requestOptions - Request-specific configuration.
@@ -281,8 +281,13 @@ class OrderTemplatesNew {
281
281
  * sort_order: "asc",
282
282
  * page: 1,
283
283
  * page_size: 1,
284
+ * search: "search",
284
285
  * filter_archived: true,
285
286
  * filter_owned_by_user_id: "filter_owned_by_user_id",
287
+ * filter_executor_org_id: "filter_executor_org_id",
288
+ * filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
289
+ * filter_shipper_org_id: "filter_shipper_org_id",
290
+ * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
286
291
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
287
292
  * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
288
293
  * filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -297,7 +302,7 @@ class OrderTemplatesNew {
297
302
  __listV1() {
298
303
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
299
304
  var _a, _b, _c, _d, _e, _f, _g;
300
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
305
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
301
306
  const _queryParams = {};
302
307
  if (sortBy !== undefined) {
303
308
  _queryParams["sort_by"] = sortBy;
@@ -311,12 +316,35 @@ class OrderTemplatesNew {
311
316
  if (pageSize !== undefined) {
312
317
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
313
318
  }
319
+ if (search !== undefined) {
320
+ _queryParams["search"] = search;
321
+ }
314
322
  if (filterArchived !== undefined) {
315
323
  _queryParams["filter_archived"] = (_c = filterArchived === null || filterArchived === void 0 ? void 0 : filterArchived.toString()) !== null && _c !== void 0 ? _c : null;
316
324
  }
317
325
  if (filterOwnedByUserId !== undefined) {
318
326
  _queryParams["filter_owned_by_user_id"] = filterOwnedByUserId;
319
327
  }
328
+ if (filterExecutorOrgId !== undefined) {
329
+ _queryParams["filter_executor_org_id"] = filterExecutorOrgId;
330
+ }
331
+ if (filterOffChrtExecutorOrgDataId !== undefined) {
332
+ _queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
333
+ }
334
+ if (filterShipperOrgId !== undefined) {
335
+ _queryParams["filter_shipper_org_id"] = filterShipperOrgId;
336
+ }
337
+ if (filterOffChrtShipperOrgDataId !== undefined) {
338
+ _queryParams["filter_off_chrt_shipper_org_data_id"] = filterOffChrtShipperOrgDataId;
339
+ }
340
+ if (filterCoordinatorShipperAccountIds !== undefined) {
341
+ if (Array.isArray(filterCoordinatorShipperAccountIds)) {
342
+ _queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds.map((item) => item);
343
+ }
344
+ else {
345
+ _queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
346
+ }
347
+ }
320
348
  if (filterCreatedAtTimestampGte !== undefined) {
321
349
  _queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
322
350
  }
@@ -9,8 +9,13 @@ import * as Chrt from "../../../../../../index.js";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * search: "search",
12
13
  * filter_archived: true,
13
14
  * filter_owned_by_user_id: "filter_owned_by_user_id",
15
+ * filter_executor_org_id: "filter_executor_org_id",
16
+ * filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
17
+ * filter_shipper_org_id: "filter_shipper_org_id",
18
+ * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
14
19
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
15
20
  * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
16
21
  * filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -26,10 +31,22 @@ export interface OrderTemplatesNewListV1Request {
26
31
  sort_order?: Chrt.SortOrderEnum | null;
27
32
  page?: number | null;
28
33
  page_size?: number | null;
34
+ /** Full-text search query for template name or description. */
35
+ search?: string | null;
29
36
  /** Include archived templates instead of active templates. */
30
37
  filter_archived?: boolean | null;
31
38
  /** Filter by the user that created the template. */
32
39
  filter_owned_by_user_id?: string | null;
40
+ /** Filter by an on-CHRT executor organization ID. */
41
+ filter_executor_org_id?: string | null;
42
+ /** Filter by an off-CHRT executor organization data ID. */
43
+ filter_off_chrt_executor_org_data_id?: string | null;
44
+ /** Filter by an on-CHRT shipper organization ID. */
45
+ filter_shipper_org_id?: string | null;
46
+ /** Filter by an off-CHRT shipper organization data ID. */
47
+ filter_off_chrt_shipper_org_data_id?: string | null;
48
+ /** Filter by coordinator shipper account ID(s) assigned to template tasks. */
49
+ filter_coordinator_shipper_account_ids?: (string | null) | (string | null)[];
33
50
  /** Filter created_at_timestamp >= value (inclusive). */
34
51
  filter_created_at_timestamp_gte?: string | null;
35
52
  /** Filter created_at_timestamp <= value (inclusive). */
@@ -12,6 +12,7 @@ export interface OrderTemplateNewTaskClientUpdate1 {
12
12
  coordinator_shipper_account_ids?: string[];
13
13
  datetime_windows_dateparser_str?: Chrt.OrderTemplateNewDateTimeWindow1[];
14
14
  location?: Chrt.LocationFeature | null;
15
+ location__set_to_None?: boolean;
15
16
  order_placer_comments?: string | null;
16
17
  order_placer_comments__set_to_None?: boolean;
17
18
  }
@@ -12,6 +12,7 @@ export interface TaskClientUpdate1 {
12
12
  coordinator_shipper_account_ids?: string[];
13
13
  datetime_windows?: Chrt.DateTimeWindow1[];
14
14
  location?: Chrt.LocationFeature | null;
15
+ location__set_to_None?: boolean;
15
16
  order_placer_comments?: string | null;
16
17
  order_placer_comments__set_to_None?: boolean;
17
18
  }
@@ -48,9 +48,10 @@ export declare class Tasks {
48
48
  attemptV1(taskId: string, request?: Chrt.shipping.AttemptTaskReq, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
49
49
  private __attemptV1;
50
50
  /**
51
- * Marks a task as COMPLETED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
51
+ * Marks a task as COMPLETED, optionally recording a client-supplied completion timestamp no more than five minutes in the future. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | (TaskCompleteReq) -> (bool)
52
52
  *
53
53
  * @param {string} taskId
54
+ * @param {Chrt.shipping.TaskCompleteReq} request
54
55
  * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
55
56
  *
56
57
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -58,8 +59,24 @@ export declare class Tasks {
58
59
  * @example
59
60
  * await client.shipping.tasks.completeV1("task_id")
60
61
  */
61
- completeV1(taskId: string, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
62
+ completeV1(taskId: string, request?: Chrt.shipping.TaskCompleteReq, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
62
63
  private __completeV1;
64
+ /**
65
+ * Corrects a completed task's completion timestamp. The driver may correct only their own completion; authorized operators may override it. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | (TaskCompletionTimestampUpdateReq) -> (bool)
66
+ *
67
+ * @param {string} taskId
68
+ * @param {Chrt.shipping.TaskCompletionTimestampUpdateReq} request
69
+ * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
70
+ *
71
+ * @throws {@link Chrt.UnprocessableEntityError}
72
+ *
73
+ * @example
74
+ * await client.shipping.tasks.updateCompletionTimestampV1("task_id", {
75
+ * completed_at_timestamp: "2024-01-15T09:30:00Z"
76
+ * })
77
+ */
78
+ updateCompletionTimestampV1(taskId: string, request: Chrt.shipping.TaskCompletionTimestampUpdateReq, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
79
+ private __updateCompletionTimestampV1;
63
80
  /**
64
81
  * Overrides a draft or staged task location from a contact or coordinator shipper account and associates the reference. | authz_personas=[draft_creator_org_operator, order_creator_org_operators, task_group_operating_org_operators, coordinator_org_operators] | (TaskLocationFromReferenceReq) -> (PydanticObjectId)
65
82
  *
@@ -124,9 +124,10 @@ class Tasks {
124
124
  });
125
125
  }
126
126
  /**
127
- * Marks a task as COMPLETED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
127
+ * Marks a task as COMPLETED, optionally recording a client-supplied completion timestamp no more than five minutes in the future. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | (TaskCompleteReq) -> (bool)
128
128
  *
129
129
  * @param {string} taskId
130
+ * @param {Chrt.shipping.TaskCompleteReq} request
130
131
  * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
131
132
  *
132
133
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -134,18 +135,21 @@ class Tasks {
134
135
  * @example
135
136
  * await client.shipping.tasks.completeV1("task_id")
136
137
  */
137
- completeV1(taskId, requestOptions) {
138
- return core.HttpResponsePromise.fromPromise(this.__completeV1(taskId, requestOptions));
138
+ completeV1(taskId, request = {}, requestOptions) {
139
+ return core.HttpResponsePromise.fromPromise(this.__completeV1(taskId, request, requestOptions));
139
140
  }
140
- __completeV1(taskId, requestOptions) {
141
- return __awaiter(this, void 0, void 0, function* () {
141
+ __completeV1(taskId_1) {
142
+ return __awaiter(this, arguments, void 0, function* (taskId, request = {}, requestOptions) {
142
143
  var _a, _b, _c, _d;
143
144
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
144
145
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
145
146
  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, `shipping/tasks/complete/v1/${encodeURIComponent(taskId)}`),
146
147
  method: "PUT",
147
148
  headers: _headers,
149
+ contentType: "application/json",
148
150
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
151
+ requestType: "json",
152
+ body: request,
149
153
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
150
154
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
151
155
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -182,6 +186,71 @@ class Tasks {
182
186
  }
183
187
  });
184
188
  }
189
+ /**
190
+ * Corrects a completed task's completion timestamp. The driver may correct only their own completion; authorized operators may override it. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | (TaskCompletionTimestampUpdateReq) -> (bool)
191
+ *
192
+ * @param {string} taskId
193
+ * @param {Chrt.shipping.TaskCompletionTimestampUpdateReq} request
194
+ * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
195
+ *
196
+ * @throws {@link Chrt.UnprocessableEntityError}
197
+ *
198
+ * @example
199
+ * await client.shipping.tasks.updateCompletionTimestampV1("task_id", {
200
+ * completed_at_timestamp: "2024-01-15T09:30:00Z"
201
+ * })
202
+ */
203
+ updateCompletionTimestampV1(taskId, request, requestOptions) {
204
+ return core.HttpResponsePromise.fromPromise(this.__updateCompletionTimestampV1(taskId, request, requestOptions));
205
+ }
206
+ __updateCompletionTimestampV1(taskId, request, requestOptions) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ var _a, _b, _c, _d;
209
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
210
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
211
+ 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, `shipping/tasks/completion_timestamp/update/v1/${encodeURIComponent(taskId)}`),
212
+ method: "PATCH",
213
+ headers: _headers,
214
+ contentType: "application/json",
215
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
216
+ requestType: "json",
217
+ body: request,
218
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
219
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
220
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
221
+ });
222
+ if (_response.ok) {
223
+ return { data: _response.body, rawResponse: _response.rawResponse };
224
+ }
225
+ if (_response.error.reason === "status-code") {
226
+ switch (_response.error.statusCode) {
227
+ case 422:
228
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
229
+ default:
230
+ throw new errors.ChrtError({
231
+ statusCode: _response.error.statusCode,
232
+ body: _response.error.body,
233
+ rawResponse: _response.rawResponse,
234
+ });
235
+ }
236
+ }
237
+ switch (_response.error.reason) {
238
+ case "non-json":
239
+ throw new errors.ChrtError({
240
+ statusCode: _response.error.statusCode,
241
+ body: _response.error.rawBody,
242
+ rawResponse: _response.rawResponse,
243
+ });
244
+ case "timeout":
245
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/tasks/completion_timestamp/update/v1/{task_id}.");
246
+ case "unknown":
247
+ throw new errors.ChrtError({
248
+ message: _response.error.errorMessage,
249
+ rawResponse: _response.rawResponse,
250
+ });
251
+ }
252
+ });
253
+ }
185
254
  /**
186
255
  * Overrides a draft or staged task location from a contact or coordinator shipper account and associates the reference. | authz_personas=[draft_creator_org_operator, order_creator_org_operators, task_group_operating_org_operators, coordinator_org_operators] | (TaskLocationFromReferenceReq) -> (PydanticObjectId)
187
256
  *
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface TaskCompleteReq {
9
+ completed_at_timestamp?: string | null;
10
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * completed_at_timestamp: "2024-01-15T09:30:00Z"
8
+ * }
9
+ */
10
+ export interface TaskCompletionTimestampUpdateReq {
11
+ completed_at_timestamp: string;
12
+ }
@@ -1,3 +1,5 @@
1
1
  export { type AttemptTaskReq } from "./AttemptTaskReq.js";
2
+ export { type TaskCompleteReq } from "./TaskCompleteReq.js";
3
+ export { type TaskCompletionTimestampUpdateReq } from "./TaskCompletionTimestampUpdateReq.js";
2
4
  export { type TaskLocationFromReferenceReq } from "./TaskLocationFromReferenceReq.js";
3
5
  export { type WaitTimeOverrideReq } from "./WaitTimeOverrideReq.js";
@@ -5,7 +5,9 @@ import * as environments from "../../../../environments.js";
5
5
  import * as core from "../../../../core/index.js";
6
6
  import { Devices } from "../resources/devices/client/Client.js";
7
7
  import { Driver } from "../resources/driver/client/Client.js";
8
+ import { GeofenceTemplates } from "../resources/geofenceTemplates/client/Client.js";
8
9
  import { Sessions } from "../resources/sessions/client/Client.js";
10
+ import { SessionGeofences } from "../resources/sessionGeofences/client/Client.js";
9
11
  import { SharingSettings } from "../resources/sharingSettings/client/Client.js";
10
12
  import { Timeseries } from "../resources/timeseries/client/Client.js";
11
13
  export declare namespace Tracking {
@@ -23,13 +25,17 @@ export declare class Tracking {
23
25
  protected readonly _options: Tracking.Options;
24
26
  protected _devices: Devices | undefined;
25
27
  protected _driver: Driver | undefined;
28
+ protected _geofenceTemplates: GeofenceTemplates | undefined;
26
29
  protected _sessions: Sessions | undefined;
30
+ protected _sessionGeofences: SessionGeofences | undefined;
27
31
  protected _sharingSettings: SharingSettings | undefined;
28
32
  protected _timeseries: Timeseries | undefined;
29
33
  constructor(_options?: Tracking.Options);
30
34
  get devices(): Devices;
31
35
  get driver(): Driver;
36
+ get geofenceTemplates(): GeofenceTemplates;
32
37
  get sessions(): Sessions;
38
+ get sessionGeofences(): SessionGeofences;
33
39
  get sharingSettings(): SharingSettings;
34
40
  get timeseries(): Timeseries;
35
41
  }
@@ -6,9 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Tracking = void 0;
7
7
  const Client_js_1 = require("../resources/devices/client/Client.js");
8
8
  const Client_js_2 = require("../resources/driver/client/Client.js");
9
- const Client_js_3 = require("../resources/sessions/client/Client.js");
10
- const Client_js_4 = require("../resources/sharingSettings/client/Client.js");
11
- const Client_js_5 = require("../resources/timeseries/client/Client.js");
9
+ const Client_js_3 = require("../resources/geofenceTemplates/client/Client.js");
10
+ const Client_js_4 = require("../resources/sessions/client/Client.js");
11
+ const Client_js_5 = require("../resources/sessionGeofences/client/Client.js");
12
+ const Client_js_6 = require("../resources/sharingSettings/client/Client.js");
13
+ const Client_js_7 = require("../resources/timeseries/client/Client.js");
12
14
  class Tracking {
13
15
  constructor(_options = {}) {
14
16
  this._options = _options;
@@ -21,17 +23,25 @@ class Tracking {
21
23
  var _a;
22
24
  return ((_a = this._driver) !== null && _a !== void 0 ? _a : (this._driver = new Client_js_2.Driver(this._options)));
23
25
  }
26
+ get geofenceTemplates() {
27
+ var _a;
28
+ return ((_a = this._geofenceTemplates) !== null && _a !== void 0 ? _a : (this._geofenceTemplates = new Client_js_3.GeofenceTemplates(this._options)));
29
+ }
24
30
  get sessions() {
25
31
  var _a;
26
- return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_js_3.Sessions(this._options)));
32
+ return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_js_4.Sessions(this._options)));
33
+ }
34
+ get sessionGeofences() {
35
+ var _a;
36
+ return ((_a = this._sessionGeofences) !== null && _a !== void 0 ? _a : (this._sessionGeofences = new Client_js_5.SessionGeofences(this._options)));
27
37
  }
28
38
  get sharingSettings() {
29
39
  var _a;
30
- return ((_a = this._sharingSettings) !== null && _a !== void 0 ? _a : (this._sharingSettings = new Client_js_4.SharingSettings(this._options)));
40
+ return ((_a = this._sharingSettings) !== null && _a !== void 0 ? _a : (this._sharingSettings = new Client_js_6.SharingSettings(this._options)));
31
41
  }
32
42
  get timeseries() {
33
43
  var _a;
34
- return ((_a = this._timeseries) !== null && _a !== void 0 ? _a : (this._timeseries = new Client_js_5.Timeseries(this._options)));
44
+ return ((_a = this._timeseries) !== null && _a !== void 0 ? _a : (this._timeseries = new Client_js_7.Timeseries(this._options)));
35
45
  }
36
46
  }
37
47
  exports.Tracking = Tracking;