@chrt-inc/typescript-sdk 1.675.0 → 1.676.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 (220) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.ts +1 -0
  3. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.js +1 -0
  4. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.ts +1 -0
  5. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.d.ts +1 -0
  6. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +1 -0
  7. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.ts +1 -0
  8. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +1 -0
  9. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +1 -0
  10. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.ts +1 -0
  11. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +2 -0
  12. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +2 -0
  13. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +1 -0
  14. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +1 -0
  15. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -0
  16. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +2 -0
  17. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.ts +1 -0
  18. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.ts +1 -0
  19. package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +6 -0
  20. package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +6 -0
  21. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.ts +2 -0
  22. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.ts +2 -0
  23. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.ts +2 -0
  24. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +2 -0
  25. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +2 -0
  26. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +2 -0
  27. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +2 -1
  28. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +2 -1
  29. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +2 -1
  30. package/dist/cjs/api/resources/orgs/client/Client.d.ts +1 -0
  31. package/dist/cjs/api/resources/orgs/client/Client.js +1 -0
  32. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +1 -0
  33. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +1 -0
  34. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +1 -0
  35. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +1 -0
  36. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +1 -1
  37. package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +1 -1
  38. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.d.ts +2 -0
  39. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/Client.js +2 -0
  40. package/dist/cjs/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.ts +2 -0
  41. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -0
  42. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +2 -0
  43. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +1 -0
  44. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +1 -0
  45. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.d.ts +3 -3
  46. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.js +3 -3
  47. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +3 -3
  48. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +3 -3
  49. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +1 -1
  50. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +1 -1
  51. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +2 -0
  52. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +2 -0
  53. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +1 -0
  54. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +1 -0
  55. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.ts +1 -1
  56. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.js +1 -1
  57. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +18 -2
  58. package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +66 -2
  59. package/dist/cjs/api/resources/shipping/resources/tasks/index.d.ts +1 -0
  60. package/dist/cjs/api/resources/shipping/resources/tasks/index.js +1 -0
  61. package/dist/cjs/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/Client.d.ts +50 -0
  62. package/dist/cjs/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/Client.js +133 -0
  63. package/dist/cjs/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/index.d.ts +2 -0
  64. package/dist/cjs/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/index.js +17 -0
  65. package/dist/cjs/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/requests/AddExecutorOrgNoteReq.d.ts +13 -0
  66. package/dist/cjs/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/requests/AddExecutorOrgNoteReq.js +5 -0
  67. package/dist/cjs/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/requests/index.d.ts +1 -0
  68. package/dist/cjs/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/requests/index.js +2 -0
  69. package/dist/cjs/api/resources/shipping/resources/tasks/resources/executorOrgNotes/index.d.ts +1 -0
  70. package/dist/cjs/api/resources/shipping/resources/tasks/resources/executorOrgNotes/index.js +17 -0
  71. package/dist/cjs/api/resources/shipping/resources/tasks/resources/index.d.ts +2 -0
  72. package/dist/cjs/api/resources/shipping/resources/tasks/resources/index.js +41 -0
  73. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +8 -8
  74. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +8 -8
  75. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +1 -1
  76. package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +1 -1
  77. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +6 -6
  78. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +6 -6
  79. package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.d.ts +3 -3
  80. package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.js +3 -3
  81. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.ts +3 -3
  82. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.js +3 -3
  83. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.ts +2 -2
  84. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.js +2 -2
  85. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +1 -1
  86. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +1 -1
  87. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +2 -2
  88. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +2 -2
  89. package/dist/cjs/api/types/ListingListingDriverInvitedToBidWebhookPayload.d.ts +16 -0
  90. package/dist/cjs/api/types/ListingListingDriverInvitedToBidWebhookPayload.js +5 -0
  91. package/dist/cjs/api/types/ListingListingProviderInvitedToBidWebhookPayload.d.ts +16 -0
  92. package/dist/cjs/api/types/ListingListingProviderInvitedToBidWebhookPayload.js +5 -0
  93. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +5 -1
  94. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +4 -0
  95. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +4 -1
  96. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +3 -0
  97. package/dist/cjs/api/types/OperationsCaseGroupAssignedWebhookPayload.d.ts +16 -0
  98. package/dist/cjs/api/types/OperationsCaseGroupAssignedWebhookPayload.js +5 -0
  99. package/dist/cjs/api/types/OperationsCaseOperatorAssignedWebhookPayload.d.ts +14 -0
  100. package/dist/cjs/api/types/OperationsCaseOperatorAssignedWebhookPayload.js +5 -0
  101. package/dist/cjs/api/types/Task1.d.ts +2 -0
  102. package/dist/cjs/api/types/TaskExecutorOrgNote1.d.ts +11 -0
  103. package/dist/cjs/api/types/TaskExecutorOrgNote1.js +5 -0
  104. package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
  105. package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
  106. package/dist/cjs/api/types/index.d.ts +5 -0
  107. package/dist/cjs/api/types/index.js +5 -0
  108. package/dist/cjs/version.d.ts +1 -1
  109. package/dist/cjs/version.js +1 -1
  110. package/dist/esm/Client.mjs +2 -2
  111. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.mts +1 -0
  112. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.mjs +1 -0
  113. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.mts +1 -0
  114. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.d.mts +1 -0
  115. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +1 -0
  116. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.mts +1 -0
  117. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +1 -0
  118. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +1 -0
  119. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.mts +1 -0
  120. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +2 -0
  121. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +2 -0
  122. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +1 -0
  123. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +1 -0
  124. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -0
  125. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +2 -0
  126. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.mts +1 -0
  127. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.mts +1 -0
  128. package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +6 -0
  129. package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +6 -0
  130. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.mts +2 -0
  131. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.mts +2 -0
  132. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.mts +2 -0
  133. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +2 -0
  134. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +2 -0
  135. package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +2 -0
  136. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +2 -1
  137. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +2 -1
  138. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +2 -1
  139. package/dist/esm/api/resources/orgs/client/Client.d.mts +1 -0
  140. package/dist/esm/api/resources/orgs/client/Client.mjs +1 -0
  141. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +1 -0
  142. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +1 -0
  143. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +1 -0
  144. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +1 -0
  145. package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +1 -1
  146. package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +1 -1
  147. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.d.mts +2 -0
  148. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/Client.mjs +2 -0
  149. package/dist/esm/api/resources/shipping/resources/orderSchedules/client/requests/OrderSchedulesListV1Request.d.mts +2 -0
  150. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -0
  151. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +2 -0
  152. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +1 -0
  153. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +1 -0
  154. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.d.mts +3 -3
  155. package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.mjs +3 -3
  156. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +3 -3
  157. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +3 -3
  158. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +1 -1
  159. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +1 -1
  160. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +2 -0
  161. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +2 -0
  162. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +1 -0
  163. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +1 -0
  164. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.mts +1 -1
  165. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.mjs +1 -1
  166. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +18 -2
  167. package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +66 -2
  168. package/dist/esm/api/resources/shipping/resources/tasks/index.d.mts +1 -0
  169. package/dist/esm/api/resources/shipping/resources/tasks/index.mjs +1 -0
  170. package/dist/esm/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/Client.d.mts +50 -0
  171. package/dist/esm/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/Client.mjs +96 -0
  172. package/dist/esm/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/index.d.mts +2 -0
  173. package/dist/esm/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/index.mjs +1 -0
  174. package/dist/esm/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/requests/AddExecutorOrgNoteReq.d.mts +13 -0
  175. package/dist/esm/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/requests/AddExecutorOrgNoteReq.mjs +4 -0
  176. package/dist/esm/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/requests/index.d.mts +1 -0
  177. package/dist/esm/api/resources/shipping/resources/tasks/resources/executorOrgNotes/client/requests/index.mjs +1 -0
  178. package/dist/esm/api/resources/shipping/resources/tasks/resources/executorOrgNotes/index.d.mts +1 -0
  179. package/dist/esm/api/resources/shipping/resources/tasks/resources/executorOrgNotes/index.mjs +1 -0
  180. package/dist/esm/api/resources/shipping/resources/tasks/resources/index.d.mts +2 -0
  181. package/dist/esm/api/resources/shipping/resources/tasks/resources/index.mjs +2 -0
  182. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +8 -8
  183. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +8 -8
  184. package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +1 -1
  185. package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +1 -1
  186. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +6 -6
  187. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +6 -6
  188. package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.d.mts +3 -3
  189. package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.mjs +3 -3
  190. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.mts +3 -3
  191. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.mjs +3 -3
  192. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.mts +2 -2
  193. package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.mjs +2 -2
  194. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +1 -1
  195. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +1 -1
  196. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +2 -2
  197. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +2 -2
  198. package/dist/esm/api/types/ListingListingDriverInvitedToBidWebhookPayload.d.mts +16 -0
  199. package/dist/esm/api/types/ListingListingDriverInvitedToBidWebhookPayload.mjs +4 -0
  200. package/dist/esm/api/types/ListingListingProviderInvitedToBidWebhookPayload.d.mts +16 -0
  201. package/dist/esm/api/types/ListingListingProviderInvitedToBidWebhookPayload.mjs +4 -0
  202. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +5 -1
  203. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +4 -0
  204. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +4 -1
  205. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +3 -0
  206. package/dist/esm/api/types/OperationsCaseGroupAssignedWebhookPayload.d.mts +16 -0
  207. package/dist/esm/api/types/OperationsCaseGroupAssignedWebhookPayload.mjs +4 -0
  208. package/dist/esm/api/types/OperationsCaseOperatorAssignedWebhookPayload.d.mts +14 -0
  209. package/dist/esm/api/types/OperationsCaseOperatorAssignedWebhookPayload.mjs +4 -0
  210. package/dist/esm/api/types/Task1.d.mts +2 -0
  211. package/dist/esm/api/types/TaskExecutorOrgNote1.d.mts +11 -0
  212. package/dist/esm/api/types/TaskExecutorOrgNote1.mjs +4 -0
  213. package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
  214. package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
  215. package/dist/esm/api/types/index.d.mts +5 -0
  216. package/dist/esm/api/types/index.mjs +5 -0
  217. package/dist/esm/version.d.mts +1 -1
  218. package/dist/esm/version.mjs +1 -1
  219. package/package.json +1 -1
  220. package/reference.md +199 -37
@@ -34,7 +34,7 @@ export declare class TaskArtifacts {
34
34
  constructor(_options?: TaskArtifacts.Options);
35
35
  get s3Object(): S3Object;
36
36
  /**
37
- * Adds a new task artifact to a task. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | (AddTaskArtifactReq) -> (PydanticObjectId)
37
+ * Adds a new task artifact to a task. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators] | (AddTaskArtifactReq) -> (PydanticObjectId)
38
38
  *
39
39
  * @param {string} taskId
40
40
  * @param {Chrt.shipping.AddTaskArtifactReq} request
@@ -54,7 +54,7 @@ export declare class TaskArtifacts {
54
54
  addToTaskV1(taskId: string, request: Chrt.shipping.AddTaskArtifactReq, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<string>;
55
55
  private __addToTaskV1;
56
56
  /**
57
- * Marks a task artifact as COMPLETED. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | () -> (bool)
57
+ * Marks a task artifact as COMPLETED. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators] | () -> (bool)
58
58
  *
59
59
  * @param {string} taskArtifactId
60
60
  * @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
@@ -67,7 +67,7 @@ export declare class TaskArtifacts {
67
67
  completeV1(taskArtifactId: string, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<boolean>;
68
68
  private __completeV1;
69
69
  /**
70
- * Marks a task artifact as SKIPPED. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | () -> (bool)
70
+ * Marks a task artifact as SKIPPED. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators] | () -> (bool)
71
71
  *
72
72
  * @param {string} taskArtifactId
73
73
  * @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
@@ -25,7 +25,7 @@ export class TaskArtifacts {
25
25
  return ((_a = this._s3Object) !== null && _a !== void 0 ? _a : (this._s3Object = new S3Object(this._options)));
26
26
  }
27
27
  /**
28
- * Adds a new task artifact to a task. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | (AddTaskArtifactReq) -> (PydanticObjectId)
28
+ * Adds a new task artifact to a task. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators] | (AddTaskArtifactReq) -> (PydanticObjectId)
29
29
  *
30
30
  * @param {string} taskId
31
31
  * @param {Chrt.shipping.AddTaskArtifactReq} request
@@ -94,7 +94,7 @@ export class TaskArtifacts {
94
94
  });
95
95
  }
96
96
  /**
97
- * Marks a task artifact as COMPLETED. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | () -> (bool)
97
+ * Marks a task artifact as COMPLETED. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators] | () -> (bool)
98
98
  *
99
99
  * @param {string} taskArtifactId
100
100
  * @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
@@ -153,7 +153,7 @@ export class TaskArtifacts {
153
153
  });
154
154
  }
155
155
  /**
156
- * Marks a task artifact as SKIPPED. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | () -> (bool)
156
+ * Marks a task artifact as SKIPPED. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators] | () -> (bool)
157
157
  *
158
158
  * @param {string} taskArtifactId
159
159
  * @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class S3Object {
31
31
  protected readonly _options: S3Object.Options;
32
32
  constructor(_options?: S3Object.Options);
33
33
  /**
34
- * Retrieves the metadata for a task artifact S3 object, including blurhash for placeholder loading. | authz_personas=[courier_driver, courier_org_operators, shipper_org_operators, forwarder_org_operators] | () -> (TaskArtifactS3ObjectMetadata1)
34
+ * Retrieves the metadata for a task artifact S3 object, including blurhash for placeholder loading. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | () -> (TaskArtifactS3ObjectMetadata1)
35
35
  *
36
36
  * @param {string} taskArtifactS3ObjectMetadataId
37
37
  * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
@@ -44,13 +44,13 @@ export declare class S3Object {
44
44
  getS3ObjectMetadataV1(taskArtifactS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<Chrt.TaskArtifactS3ObjectMetadata1>;
45
45
  private __getS3ObjectMetadataV1;
46
46
  /**
47
- * Streams a task artifact S3 object file from storage. | authz_personas=[courier_driver, courier_org_operators, shipper_org_operators, forwarder_org_operators] | () -> (binary)
47
+ * Streams a task artifact S3 object file from storage. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | () -> (binary)
48
48
  * @throws {@link Chrt.UnprocessableEntityError}
49
49
  */
50
50
  getV1(taskArtifactS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
51
51
  private __getV1;
52
52
  /**
53
- * Uploads a file (image, PDF, etc.) to a task artifact. Automatic blurhash generation for images. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
53
+ * Uploads a file (image, PDF, etc.) to a task artifact. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
54
54
  *
55
55
  * @param {string} taskArtifactId
56
56
  * @param {Chrt.shipping.taskArtifacts.BodyPostTaskArtifactsS3ObjectAddV1ShippingTaskArtifactsS3ObjectAddV1TaskArtifactIdPost} request
@@ -20,7 +20,7 @@ export class S3Object {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves the metadata for a task artifact S3 object, including blurhash for placeholder loading. | authz_personas=[courier_driver, courier_org_operators, shipper_org_operators, forwarder_org_operators] | () -> (TaskArtifactS3ObjectMetadata1)
23
+ * Retrieves the metadata for a task artifact S3 object, including blurhash for placeholder loading. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | () -> (TaskArtifactS3ObjectMetadata1)
24
24
  *
25
25
  * @param {string} taskArtifactS3ObjectMetadataId
26
26
  * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
@@ -79,7 +79,7 @@ export class S3Object {
79
79
  });
80
80
  }
81
81
  /**
82
- * Streams a task artifact S3 object file from storage. | authz_personas=[courier_driver, courier_org_operators, shipper_org_operators, forwarder_org_operators] | () -> (binary)
82
+ * Streams a task artifact S3 object file from storage. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | () -> (binary)
83
83
  * @throws {@link Chrt.UnprocessableEntityError}
84
84
  */
85
85
  getV1(taskArtifactS3ObjectMetadataId, requestOptions) {
@@ -132,7 +132,7 @@ export class S3Object {
132
132
  });
133
133
  }
134
134
  /**
135
- * Uploads a file (image, PDF, etc.) to a task artifact. Automatic blurhash generation for images. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
135
+ * Uploads a file (image, PDF, etc.) to a task artifact. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
136
136
  *
137
137
  * @param {string} taskArtifactId
138
138
  * @param {Chrt.shipping.taskArtifacts.BodyPostTaskArtifactsS3ObjectAddV1ShippingTaskArtifactsS3ObjectAddV1TaskArtifactIdPost} request
@@ -139,7 +139,7 @@ export declare class TaskGroups {
139
139
  setFlightInfoV1(taskGroupId: string, request: Chrt.SetFlightInfoReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
140
140
  private __setFlightInfoV1;
141
141
  /**
142
- * Adds a message to a task group's message log. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (AddMessageReq) -> (bool)
142
+ * Adds a message to a task group's message log. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (AddMessageReq) -> (bool)
143
143
  *
144
144
  * @param {string} taskGroupId
145
145
  * @param {Chrt.shipping.AddMessageReq} request
@@ -468,7 +468,7 @@ export class TaskGroups {
468
468
  });
469
469
  }
470
470
  /**
471
- * Adds a message to a task group's message log. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (AddMessageReq) -> (bool)
471
+ * Adds a message to a task group's message log. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (AddMessageReq) -> (bool)
472
472
  *
473
473
  * @param {string} taskGroupId
474
474
  * @param {Chrt.shipping.AddMessageReq} request
@@ -101,6 +101,7 @@ export declare class Expanded {
101
101
  * page: 1,
102
102
  * page_size: 1,
103
103
  * search: "search",
104
+ * filter_status: ["draft"],
104
105
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
105
106
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
106
107
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -138,6 +139,7 @@ export declare class Expanded {
138
139
  * page: 1,
139
140
  * page_size: 1,
140
141
  * search: "search",
142
+ * filter_status: ["draft"],
141
143
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
142
144
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
143
145
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -286,6 +286,7 @@ export class Expanded {
286
286
  * page: 1,
287
287
  * page_size: 1,
288
288
  * search: "search",
289
+ * filter_status: ["draft"],
289
290
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
290
291
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
291
292
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -448,6 +449,7 @@ export class Expanded {
448
449
  * page: 1,
449
450
  * page_size: 1,
450
451
  * search: "search",
452
+ * filter_status: ["draft"],
451
453
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
452
454
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
453
455
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
10
10
  * page: 1,
11
11
  * page_size: 1,
12
12
  * search: "search",
13
+ * filter_status: ["draft"],
13
14
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
14
15
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
15
16
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
10
10
  * page: 1,
11
11
  * page_size: 1,
12
12
  * search: "search",
13
+ * filter_status: ["draft"],
13
14
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
14
15
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
15
16
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -50,7 +50,7 @@ export declare class S3Object {
50
50
  getV1(taskGroupS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
51
51
  private __getV1;
52
52
  /**
53
- * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
53
+ * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
54
54
  *
55
55
  * @param {string} taskGroupId
56
56
  * @param {Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1ShippingTaskGroupsS3ObjectAddV1TaskGroupIdPost} request
@@ -132,7 +132,7 @@ export class S3Object {
132
132
  });
133
133
  }
134
134
  /**
135
- * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
135
+ * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
136
136
  *
137
137
  * @param {string} taskGroupId
138
138
  * @param {Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1ShippingTaskGroupsS3ObjectAddV1TaskGroupIdPost} request
@@ -4,6 +4,7 @@
4
4
  import * as environments from "../../../../../../environments.mjs";
5
5
  import * as core from "../../../../../../core/index.mjs";
6
6
  import * as Chrt from "../../../../../index.mjs";
7
+ import { ExecutorOrgNotes } from "../resources/executorOrgNotes/client/Client.mjs";
7
8
  export declare namespace Tasks {
8
9
  interface Options {
9
10
  environment?: core.Supplier<environments.ChrtEnvironment | string>;
@@ -29,7 +30,9 @@ export declare namespace Tasks {
29
30
  }
30
31
  export declare class Tasks {
31
32
  protected readonly _options: Tasks.Options;
33
+ protected _executorOrgNotes: ExecutorOrgNotes | undefined;
32
34
  constructor(_options?: Tasks.Options);
35
+ get executorOrgNotes(): ExecutorOrgNotes;
33
36
  /**
34
37
  * Adds a new task to a task group at a specific index. | authz_personas=[lig_owner_operators] | (AddTaskToGroupReq) -> (PydanticObjectId)
35
38
  *
@@ -65,7 +68,7 @@ export declare class Tasks {
65
68
  updateV1(taskId: string, request: Chrt.TaskClientUpdate1, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<string>;
66
69
  private __updateV1;
67
70
  /**
68
- * Marks a task as COMPLETED. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators] (depending on type) | () -> (bool)
71
+ * Marks a task as COMPLETED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
69
72
  *
70
73
  * @param {string} taskId
71
74
  * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -78,7 +81,7 @@ export declare class Tasks {
78
81
  completeV1(taskId: string, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
79
82
  private __completeV1;
80
83
  /**
81
- * Marks a task as SKIPPED. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators] (depending on type) | () -> (bool)
84
+ * Marks a task as SKIPPED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
82
85
  *
83
86
  * @param {string} taskId
84
87
  * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -90,6 +93,19 @@ export declare class Tasks {
90
93
  */
91
94
  skipV1(taskId: string, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
92
95
  private __skipV1;
96
+ /**
97
+ * Marks a task as ATTEMPT. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
98
+ *
99
+ * @param {string} taskId
100
+ * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
101
+ *
102
+ * @throws {@link Chrt.UnprocessableEntityError}
103
+ *
104
+ * @example
105
+ * await client.shipping.tasks.attemptV1("task_id")
106
+ */
107
+ attemptV1(taskId: string, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<boolean>;
108
+ private __attemptV1;
93
109
  /**
94
110
  * Deletes a task. Task must be in STAGED status. | authz_personas=[lig_owner_operators] | () -> (bool)
95
111
  *
@@ -15,10 +15,15 @@ import * as core from "../../../../../../core/index.mjs";
15
15
  import * as Chrt from "../../../../../index.mjs";
16
16
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
17
  import * as errors from "../../../../../../errors/index.mjs";
18
+ import { ExecutorOrgNotes } from "../resources/executorOrgNotes/client/Client.mjs";
18
19
  export class Tasks {
19
20
  constructor(_options = {}) {
20
21
  this._options = _options;
21
22
  }
23
+ get executorOrgNotes() {
24
+ var _a;
25
+ return ((_a = this._executorOrgNotes) !== null && _a !== void 0 ? _a : (this._executorOrgNotes = new ExecutorOrgNotes(this._options)));
26
+ }
22
27
  /**
23
28
  * Adds a new task to a task group at a specific index. | authz_personas=[lig_owner_operators] | (AddTaskToGroupReq) -> (PydanticObjectId)
24
29
  *
@@ -152,7 +157,7 @@ export class Tasks {
152
157
  });
153
158
  }
154
159
  /**
155
- * Marks a task as COMPLETED. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators] (depending on type) | () -> (bool)
160
+ * Marks a task as COMPLETED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
156
161
  *
157
162
  * @param {string} taskId
158
163
  * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -211,7 +216,7 @@ export class Tasks {
211
216
  });
212
217
  }
213
218
  /**
214
- * Marks a task as SKIPPED. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators] (depending on type) | () -> (bool)
219
+ * Marks a task as SKIPPED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
215
220
  *
216
221
  * @param {string} taskId
217
222
  * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -269,6 +274,65 @@ export class Tasks {
269
274
  }
270
275
  });
271
276
  }
277
+ /**
278
+ * Marks a task as ATTEMPT. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
279
+ *
280
+ * @param {string} taskId
281
+ * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
282
+ *
283
+ * @throws {@link Chrt.UnprocessableEntityError}
284
+ *
285
+ * @example
286
+ * await client.shipping.tasks.attemptV1("task_id")
287
+ */
288
+ attemptV1(taskId, requestOptions) {
289
+ return core.HttpResponsePromise.fromPromise(this.__attemptV1(taskId, requestOptions));
290
+ }
291
+ __attemptV1(taskId, requestOptions) {
292
+ return __awaiter(this, void 0, void 0, function* () {
293
+ var _a, _b, _c, _d;
294
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
295
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
296
+ 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/attempt/v1/${encodeURIComponent(taskId)}`),
297
+ method: "PUT",
298
+ headers: _headers,
299
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
300
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
301
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
302
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
303
+ });
304
+ if (_response.ok) {
305
+ return { data: _response.body, rawResponse: _response.rawResponse };
306
+ }
307
+ if (_response.error.reason === "status-code") {
308
+ switch (_response.error.statusCode) {
309
+ case 422:
310
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
311
+ default:
312
+ throw new errors.ChrtError({
313
+ statusCode: _response.error.statusCode,
314
+ body: _response.error.body,
315
+ rawResponse: _response.rawResponse,
316
+ });
317
+ }
318
+ }
319
+ switch (_response.error.reason) {
320
+ case "non-json":
321
+ throw new errors.ChrtError({
322
+ statusCode: _response.error.statusCode,
323
+ body: _response.error.rawBody,
324
+ rawResponse: _response.rawResponse,
325
+ });
326
+ case "timeout":
327
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/tasks/attempt/v1/{task_id}.");
328
+ case "unknown":
329
+ throw new errors.ChrtError({
330
+ message: _response.error.errorMessage,
331
+ rawResponse: _response.rawResponse,
332
+ });
333
+ }
334
+ });
335
+ }
272
336
  /**
273
337
  * Deletes a task. Task must be in STAGED status. | authz_personas=[lig_owner_operators] | () -> (bool)
274
338
  *
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1,50 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../../../index.mjs";
7
+ export declare namespace ExecutorOrgNotes {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class ExecutorOrgNotes {
31
+ protected readonly _options: ExecutorOrgNotes.Options;
32
+ constructor(_options?: ExecutorOrgNotes.Options);
33
+ /**
34
+ * Adds an executor-side note to a task. | authz_personas=[driver_for_executor, executor_org_operators] | (AddExecutorOrgNoteReq) -> (bool)
35
+ *
36
+ * @param {string} taskId
37
+ * @param {Chrt.shipping.tasks.AddExecutorOrgNoteReq} request
38
+ * @param {ExecutorOrgNotes.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Chrt.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.shipping.tasks.executorOrgNotes.addV1("task_id", {
44
+ * note: "note"
45
+ * })
46
+ */
47
+ addV1(taskId: string, request: Chrt.shipping.tasks.AddExecutorOrgNoteReq, requestOptions?: ExecutorOrgNotes.RequestOptions): core.HttpResponsePromise<boolean>;
48
+ private __addV1;
49
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
50
+ }
@@ -0,0 +1,96 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../../../errors/index.mjs";
18
+ export class ExecutorOrgNotes {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Adds an executor-side note to a task. | authz_personas=[driver_for_executor, executor_org_operators] | (AddExecutorOrgNoteReq) -> (bool)
24
+ *
25
+ * @param {string} taskId
26
+ * @param {Chrt.shipping.tasks.AddExecutorOrgNoteReq} request
27
+ * @param {ExecutorOrgNotes.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @throws {@link Chrt.UnprocessableEntityError}
30
+ *
31
+ * @example
32
+ * await client.shipping.tasks.executorOrgNotes.addV1("task_id", {
33
+ * note: "note"
34
+ * })
35
+ */
36
+ addV1(taskId, request, requestOptions) {
37
+ return core.HttpResponsePromise.fromPromise(this.__addV1(taskId, request, requestOptions));
38
+ }
39
+ __addV1(taskId, request, requestOptions) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ var _a, _b, _c, _d;
42
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
43
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
44
+ 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/executor_org_notes/add/v1/${encodeURIComponent(taskId)}`),
45
+ method: "POST",
46
+ headers: _headers,
47
+ contentType: "application/json",
48
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
49
+ requestType: "json",
50
+ body: request,
51
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
52
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
53
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
54
+ });
55
+ if (_response.ok) {
56
+ return { data: _response.body, rawResponse: _response.rawResponse };
57
+ }
58
+ if (_response.error.reason === "status-code") {
59
+ switch (_response.error.statusCode) {
60
+ case 422:
61
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
62
+ default:
63
+ throw new errors.ChrtError({
64
+ statusCode: _response.error.statusCode,
65
+ body: _response.error.body,
66
+ rawResponse: _response.rawResponse,
67
+ });
68
+ }
69
+ }
70
+ switch (_response.error.reason) {
71
+ case "non-json":
72
+ throw new errors.ChrtError({
73
+ statusCode: _response.error.statusCode,
74
+ body: _response.error.rawBody,
75
+ rawResponse: _response.rawResponse,
76
+ });
77
+ case "timeout":
78
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/tasks/executor_org_notes/add/v1/{task_id}.");
79
+ case "unknown":
80
+ throw new errors.ChrtError({
81
+ message: _response.error.errorMessage,
82
+ rawResponse: _response.rawResponse,
83
+ });
84
+ }
85
+ });
86
+ }
87
+ _getAuthorizationHeader() {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ const bearer = yield core.Supplier.get(this._options.token);
90
+ if (bearer != null) {
91
+ return `Bearer ${bearer}`;
92
+ }
93
+ return undefined;
94
+ });
95
+ }
96
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * note: "note"
8
+ * }
9
+ */
10
+ export interface AddExecutorOrgNoteReq {
11
+ /** Executor-side note to add */
12
+ note: string;
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1 @@
1
+ export { type AddExecutorOrgNoteReq } from "./AddExecutorOrgNoteReq.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as executorOrgNotes from "./executorOrgNotes/index.mjs";
2
+ export * from "./executorOrgNotes/client/requests/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as executorOrgNotes from "./executorOrgNotes/index.mjs";
2
+ export * from "./executorOrgNotes/client/requests/index.mjs";