@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
@@ -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
@@ -504,7 +504,7 @@ class TaskGroups {
504
504
  });
505
505
  }
506
506
  /**
507
- * 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)
507
+ * 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)
508
508
  *
509
509
  * @param {string} taskGroupId
510
510
  * @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",
@@ -322,6 +322,7 @@ class Expanded {
322
322
  * page: 1,
323
323
  * page_size: 1,
324
324
  * search: "search",
325
+ * filter_status: ["draft"],
325
326
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
326
327
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
327
328
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -484,6 +485,7 @@ class Expanded {
484
485
  * page: 1,
485
486
  * page_size: 1,
486
487
  * search: "search",
488
+ * filter_status: ["draft"],
487
489
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
488
490
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
489
491
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../../../index.js";
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.js";
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
@@ -168,7 +168,7 @@ class S3Object {
168
168
  });
169
169
  }
170
170
  /**
171
- * 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)
171
+ * 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)
172
172
  *
173
173
  * @param {string} taskGroupId
174
174
  * @param {Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1ShippingTaskGroupsS3ObjectAddV1TaskGroupIdPost} request
@@ -4,6 +4,7 @@
4
4
  import * as environments from "../../../../../../environments.js";
5
5
  import * as core from "../../../../../../core/index.js";
6
6
  import * as Chrt from "../../../../../index.js";
7
+ import { ExecutorOrgNotes } from "../resources/executorOrgNotes/client/Client.js";
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
  *
@@ -51,10 +51,15 @@ const core = __importStar(require("../../../../../../core/index.js"));
51
51
  const Chrt = __importStar(require("../../../../../index.js"));
52
52
  const headers_js_1 = require("../../../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../../../errors/index.js"));
54
+ const Client_js_1 = require("../resources/executorOrgNotes/client/Client.js");
54
55
  class Tasks {
55
56
  constructor(_options = {}) {
56
57
  this._options = _options;
57
58
  }
59
+ get executorOrgNotes() {
60
+ var _a;
61
+ return ((_a = this._executorOrgNotes) !== null && _a !== void 0 ? _a : (this._executorOrgNotes = new Client_js_1.ExecutorOrgNotes(this._options)));
62
+ }
58
63
  /**
59
64
  * Adds a new task to a task group at a specific index. | authz_personas=[lig_owner_operators] | (AddTaskToGroupReq) -> (PydanticObjectId)
60
65
  *
@@ -188,7 +193,7 @@ class Tasks {
188
193
  });
189
194
  }
190
195
  /**
191
- * Marks a task as COMPLETED. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators] (depending on type) | () -> (bool)
196
+ * Marks a task as COMPLETED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
192
197
  *
193
198
  * @param {string} taskId
194
199
  * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -247,7 +252,7 @@ class Tasks {
247
252
  });
248
253
  }
249
254
  /**
250
- * Marks a task as SKIPPED. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators] (depending on type) | () -> (bool)
255
+ * Marks a task as SKIPPED. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
251
256
  *
252
257
  * @param {string} taskId
253
258
  * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
@@ -305,6 +310,65 @@ class Tasks {
305
310
  }
306
311
  });
307
312
  }
313
+ /**
314
+ * Marks a task as ATTEMPT. | authz_personas=[driver_for_executor, coordinator_org_operators, executor_org_operators] (depending on type) | () -> (bool)
315
+ *
316
+ * @param {string} taskId
317
+ * @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
318
+ *
319
+ * @throws {@link Chrt.UnprocessableEntityError}
320
+ *
321
+ * @example
322
+ * await client.shipping.tasks.attemptV1("task_id")
323
+ */
324
+ attemptV1(taskId, requestOptions) {
325
+ return core.HttpResponsePromise.fromPromise(this.__attemptV1(taskId, requestOptions));
326
+ }
327
+ __attemptV1(taskId, requestOptions) {
328
+ return __awaiter(this, void 0, void 0, function* () {
329
+ var _a, _b, _c, _d;
330
+ 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);
331
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
332
+ 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)}`),
333
+ method: "PUT",
334
+ headers: _headers,
335
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
336
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
337
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
338
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
339
+ });
340
+ if (_response.ok) {
341
+ return { data: _response.body, rawResponse: _response.rawResponse };
342
+ }
343
+ if (_response.error.reason === "status-code") {
344
+ switch (_response.error.statusCode) {
345
+ case 422:
346
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
347
+ default:
348
+ throw new errors.ChrtError({
349
+ statusCode: _response.error.statusCode,
350
+ body: _response.error.body,
351
+ rawResponse: _response.rawResponse,
352
+ });
353
+ }
354
+ }
355
+ switch (_response.error.reason) {
356
+ case "non-json":
357
+ throw new errors.ChrtError({
358
+ statusCode: _response.error.statusCode,
359
+ body: _response.error.rawBody,
360
+ rawResponse: _response.rawResponse,
361
+ });
362
+ case "timeout":
363
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/tasks/attempt/v1/{task_id}.");
364
+ case "unknown":
365
+ throw new errors.ChrtError({
366
+ message: _response.error.errorMessage,
367
+ rawResponse: _response.rawResponse,
368
+ });
369
+ }
370
+ });
371
+ }
308
372
  /**
309
373
  * Deletes a task. Task must be in STAGED status. | authz_personas=[lig_owner_operators] | () -> (bool)
310
374
  *
@@ -1 +1,2 @@
1
1
  export * from "./client/index.js";
2
+ export * from "./resources/index.js";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,50 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.js";
5
+ import * as core from "../../../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../../../index.js";
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,133 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.ExecutorOrgNotes = void 0;
49
+ const environments = __importStar(require("../../../../../../../../environments.js"));
50
+ const core = __importStar(require("../../../../../../../../core/index.js"));
51
+ const Chrt = __importStar(require("../../../../../../../index.js"));
52
+ const headers_js_1 = require("../../../../../../../../core/headers.js");
53
+ const errors = __importStar(require("../../../../../../../../errors/index.js"));
54
+ class ExecutorOrgNotes {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Adds an executor-side note to a task. | authz_personas=[driver_for_executor, executor_org_operators] | (AddExecutorOrgNoteReq) -> (bool)
60
+ *
61
+ * @param {string} taskId
62
+ * @param {Chrt.shipping.tasks.AddExecutorOrgNoteReq} request
63
+ * @param {ExecutorOrgNotes.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link Chrt.UnprocessableEntityError}
66
+ *
67
+ * @example
68
+ * await client.shipping.tasks.executorOrgNotes.addV1("task_id", {
69
+ * note: "note"
70
+ * })
71
+ */
72
+ addV1(taskId, request, requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__addV1(taskId, request, requestOptions));
74
+ }
75
+ __addV1(taskId, request, requestOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ var _a, _b, _c, _d;
78
+ 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);
79
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
80
+ 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)}`),
81
+ method: "POST",
82
+ headers: _headers,
83
+ contentType: "application/json",
84
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
85
+ requestType: "json",
86
+ body: request,
87
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
88
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
89
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
90
+ });
91
+ if (_response.ok) {
92
+ return { data: _response.body, rawResponse: _response.rawResponse };
93
+ }
94
+ if (_response.error.reason === "status-code") {
95
+ switch (_response.error.statusCode) {
96
+ case 422:
97
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
98
+ default:
99
+ throw new errors.ChrtError({
100
+ statusCode: _response.error.statusCode,
101
+ body: _response.error.body,
102
+ rawResponse: _response.rawResponse,
103
+ });
104
+ }
105
+ }
106
+ switch (_response.error.reason) {
107
+ case "non-json":
108
+ throw new errors.ChrtError({
109
+ statusCode: _response.error.statusCode,
110
+ body: _response.error.rawBody,
111
+ rawResponse: _response.rawResponse,
112
+ });
113
+ case "timeout":
114
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/tasks/executor_org_notes/add/v1/{task_id}.");
115
+ case "unknown":
116
+ throw new errors.ChrtError({
117
+ message: _response.error.errorMessage,
118
+ rawResponse: _response.rawResponse,
119
+ });
120
+ }
121
+ });
122
+ }
123
+ _getAuthorizationHeader() {
124
+ return __awaiter(this, void 0, void 0, function* () {
125
+ const bearer = yield core.Supplier.get(this._options.token);
126
+ if (bearer != null) {
127
+ return `Bearer ${bearer}`;
128
+ }
129
+ return undefined;
130
+ });
131
+ }
132
+ }
133
+ exports.ExecutorOrgNotes = ExecutorOrgNotes;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type AddExecutorOrgNoteReq } from "./AddExecutorOrgNoteReq.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * as executorOrgNotes from "./executorOrgNotes/index.js";
2
+ export * from "./executorOrgNotes/client/requests/index.js";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.executorOrgNotes = void 0;
40
+ exports.executorOrgNotes = __importStar(require("./executorOrgNotes/index.js"));
41
+ __exportStar(require("./executorOrgNotes/client/requests/index.js"), exports);
@@ -47,7 +47,7 @@ export declare class Devices {
47
47
  registerToOrgV1(request: Chrt.tracking.DeviceClientCreate1, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<string>;
48
48
  private __registerToOrgV1;
49
49
  /**
50
- * Updates a device's type, comments, and/or off_chrt_reference_id. Use __set_to_None flags to explicitly clear Optional fields. | (DeviceClientUpdate1) -> (bool)
50
+ * Updates a device's type, comments, and/or off_chrt_reference_id. Use __set_to_None flags to explicitly clear Optional fields. | auth: api_key | (DeviceClientUpdate1) -> (bool)
51
51
  *
52
52
  * @param {Chrt.tracking.DeviceClientUpdate1} request
53
53
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -62,7 +62,7 @@ export declare class Devices {
62
62
  updateV1(request: Chrt.tracking.DeviceClientUpdate1, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
63
63
  private __updateV1;
64
64
  /**
65
- * Archives a device by setting archived=True. Device must not have an active session — terminate it first. | () -> (bool)
65
+ * Archives a device by setting archived=True. Device must not have an active session — terminate it first. | auth: api_key | () -> (bool)
66
66
  *
67
67
  * @param {Chrt.tracking.DevicesArchiveV1Request} request
68
68
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -77,7 +77,7 @@ export declare class Devices {
77
77
  archiveV1(request: Chrt.tracking.DevicesArchiveV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
78
78
  private __archiveV1;
79
79
  /**
80
- * Pauses a device and opens a new pause time window. | () -> (bool)
80
+ * Pauses a device and opens a new pause time window. | auth: api_key | () -> (bool)
81
81
  *
82
82
  * @param {Chrt.tracking.DevicesPauseV1Request} request
83
83
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -92,7 +92,7 @@ export declare class Devices {
92
92
  pauseV1(request: Chrt.tracking.DevicesPauseV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
93
93
  private __pauseV1;
94
94
  /**
95
- * Unpauses a device. Closes the open pause time window. | () -> (bool)
95
+ * Unpauses a device. Closes the open pause time window. | auth: api_key | () -> (bool)
96
96
  *
97
97
  * @param {Chrt.tracking.DevicesUnpauseV1Request} request
98
98
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -107,7 +107,7 @@ export declare class Devices {
107
107
  unpauseV1(request: Chrt.tracking.DevicesUnpauseV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
108
108
  private __unpauseV1;
109
109
  /**
110
- * Adds and/or removes org_ids from a device's shared_with_org_ids list. Removal overrides addition. | (DevicesUpdateSharedOrgsReq1) -> (bool)
110
+ * Adds and/or removes org_ids from a device's shared_with_org_ids list. Removal overrides addition. | auth: api_key | (DevicesUpdateSharedOrgsReq1) -> (bool)
111
111
  *
112
112
  * @param {Chrt.tracking.DevicesUpdateSharedOrgsReq1} request
113
113
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -122,7 +122,7 @@ export declare class Devices {
122
122
  updateSharedOrgsV1(request: Chrt.tracking.DevicesUpdateSharedOrgsReq1, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
123
123
  private __updateSharedOrgsV1;
124
124
  /**
125
- * Retrieves a single device by its ID with expanded sessions and cargos. Access restricted to the caller's organization or shared organizations. | authz: min_org_role=operator | () -> (DeviceExpandedRes)
125
+ * Retrieves a single device by its ID with expanded sessions and cargos. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (DeviceExpandedRes)
126
126
  *
127
127
  * @param {Chrt.tracking.DevicesGetV1Request} request
128
128
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -137,7 +137,7 @@ export declare class Devices {
137
137
  getV1(request: Chrt.tracking.DevicesGetV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.DeviceExpandedRes>;
138
138
  private __getV1;
139
139
  /**
140
- * Lists devices with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (DeviceListRes)
140
+ * Lists devices with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (DeviceListRes)
141
141
  *
142
142
  * @param {Chrt.tracking.DevicesListV1Request} request
143
143
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -170,7 +170,7 @@ export declare class Devices {
170
170
  listV1(request?: Chrt.tracking.DevicesListV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.DeviceListRes>;
171
171
  private __listV1;
172
172
  /**
173
- * Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching devices. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
173
+ * Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching devices. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
174
174
  *
175
175
  * @param {Chrt.tracking.DevicesTypeaheadV1Request} request
176
176
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.