@chrt-inc/typescript-sdk 1.363.0 → 1.378.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 (300) hide show
  1. package/dist/cjs/Client.d.ts +6 -6
  2. package/dist/cjs/Client.js +36 -36
  3. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +1 -1
  4. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +1 -1
  5. package/dist/cjs/api/resources/directoryEntries/client/Client.d.ts +99 -0
  6. package/dist/cjs/api/resources/directoryEntries/client/Client.js +364 -0
  7. package/dist/cjs/api/{types/ShipperContactClientCreate1.d.ts → resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.ts} +11 -7
  8. package/dist/cjs/api/resources/{shipperContactInfo/client/requests/ShipperContactClientUpdate1.d.ts → directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.ts} +2 -2
  9. package/dist/cjs/api/resources/directoryEntries/client/requests/index.d.ts +2 -0
  10. package/dist/cjs/api/resources/drivers/client/Client.d.ts +3 -3
  11. package/dist/cjs/api/resources/index.d.ts +3 -4
  12. package/dist/cjs/api/resources/index.js +4 -5
  13. package/dist/cjs/api/resources/notifications/client/Client.d.ts +12 -41
  14. package/dist/cjs/api/resources/notifications/client/Client.js +16 -169
  15. package/dist/cjs/api/resources/notifications/client/index.d.ts +0 -1
  16. package/dist/cjs/api/resources/notifications/client/index.js +0 -15
  17. package/dist/cjs/api/resources/notifications/index.d.ts +1 -0
  18. package/dist/cjs/api/resources/notifications/index.js +1 -0
  19. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +77 -0
  20. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +252 -0
  21. package/dist/cjs/api/resources/notifications/resources/adHoc/client/index.d.ts +2 -0
  22. package/dist/cjs/api/resources/notifications/resources/adHoc/client/index.js +17 -0
  23. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.ts +18 -0
  24. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/notifications/resources/adHoc/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/notifications/resources/adHoc/index.js +17 -0
  27. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +209 -0
  28. package/dist/cjs/api/resources/{shipperContactInfo → notifications/resources/groups}/client/Client.js +305 -118
  29. package/dist/cjs/api/resources/notifications/resources/groups/client/index.d.ts +2 -0
  30. package/dist/cjs/api/resources/notifications/resources/groups/client/index.js +17 -0
  31. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/GroupsUpdateNameV1Request.d.ts +12 -0
  32. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.ts +14 -0
  33. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/index.js +2 -0
  35. package/dist/cjs/api/resources/notifications/resources/groups/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/notifications/resources/groups/index.js +17 -0
  37. package/dist/cjs/api/resources/notifications/resources/index.d.ts +7 -0
  38. package/dist/cjs/api/resources/notifications/resources/index.js +46 -0
  39. package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.d.ts +67 -0
  40. package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.js +232 -0
  41. package/dist/cjs/api/resources/notifications/resources/userPreferences/client/index.d.ts +2 -0
  42. package/dist/cjs/api/resources/notifications/resources/userPreferences/client/index.js +17 -0
  43. package/dist/cjs/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.ts +15 -0
  44. package/dist/cjs/api/resources/notifications/resources/userPreferences/client/requests/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/notifications/resources/userPreferences/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/notifications/resources/userPreferences/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/notifications/resources/userPreferences/index.js +17 -0
  48. package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.d.ts +74 -0
  49. package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.js +271 -0
  50. package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/index.js +2 -0
  51. package/dist/cjs/api/resources/notifications/resources/webhookSetup/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/notifications/resources/webhookSetup/index.js +17 -0
  53. package/dist/cjs/api/types/BillingLineItemGroupMessageWebhookPayload.d.ts +13 -0
  54. package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.ts +13 -0
  55. package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.js +5 -0
  56. package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.d.ts +11 -0
  57. package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.js +5 -0
  58. package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.d.ts +11 -0
  59. package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.js +5 -0
  60. package/dist/cjs/api/types/{ShipperContact1.d.ts → DirectoryEntry1.d.ts} +4 -6
  61. package/dist/cjs/api/types/DirectoryEntry1.js +5 -0
  62. package/dist/cjs/api/types/{Driver1.d.ts → Driver1Input.d.ts} +1 -1
  63. package/dist/cjs/api/types/Driver1Input.js +5 -0
  64. package/dist/cjs/api/types/Driver1Output.d.ts +27 -0
  65. package/dist/cjs/api/types/Driver1Output.js +5 -0
  66. package/dist/cjs/api/types/NotificationChannelsEnum.d.ts +12 -0
  67. package/dist/cjs/api/types/NotificationChannelsEnum.js +11 -0
  68. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +14 -0
  69. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +10 -0
  70. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +29 -0
  71. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +26 -0
  72. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +20 -0
  73. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +15 -0
  74. package/dist/cjs/api/types/NotificationGroup1.d.ts +18 -0
  75. package/dist/cjs/api/types/NotificationGroup1.js +5 -0
  76. package/dist/cjs/api/types/NotificationGroupLimitedForDriver1.d.ts +23 -0
  77. package/dist/cjs/api/types/NotificationGroupLimitedForDriver1.js +5 -0
  78. package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +18 -0
  79. package/dist/cjs/api/types/NotificationIntentAdHoc1.js +5 -0
  80. package/dist/cjs/api/types/NotificationUserPreferences1.d.ts +15 -0
  81. package/dist/cjs/api/types/NotificationUserPreferences1.js +5 -0
  82. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -1
  83. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  84. package/dist/cjs/api/types/OrgPrivateData1.d.ts +2 -0
  85. package/dist/cjs/api/types/ShippingOrderCancelledWebhookPayload.d.ts +11 -0
  86. package/dist/cjs/api/types/ShippingOrderCancelledWebhookPayload.js +5 -0
  87. package/dist/cjs/api/types/ShippingOrderCompletedWebhookPayload.d.ts +11 -0
  88. package/dist/cjs/api/types/ShippingOrderCompletedWebhookPayload.js +5 -0
  89. package/dist/cjs/api/types/ShippingOrderStagedWebhookPayload.d.ts +11 -0
  90. package/dist/cjs/api/types/ShippingOrderStagedWebhookPayload.js +5 -0
  91. package/dist/cjs/api/types/ShippingTaskAddedWebhookPayload.d.ts +15 -0
  92. package/dist/cjs/api/types/ShippingTaskAddedWebhookPayload.js +5 -0
  93. package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.d.ts +15 -0
  94. package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.js +5 -0
  95. package/dist/cjs/api/types/ShippingTaskDeletedWebhookPayload.d.ts +14 -0
  96. package/dist/cjs/api/types/ShippingTaskDeletedWebhookPayload.js +5 -0
  97. package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.ts +14 -0
  98. package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.js +5 -0
  99. package/dist/cjs/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.ts +15 -0
  100. package/dist/cjs/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.js +5 -0
  101. package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.ts +16 -0
  102. package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.js +5 -0
  103. package/dist/cjs/api/types/ShippingTaskGroupInProgressWebhookPayload.d.ts +13 -0
  104. package/dist/cjs/api/types/ShippingTaskGroupInProgressWebhookPayload.js +5 -0
  105. package/dist/cjs/api/types/ShippingTaskGroupMessageWebhookPayload.d.ts +15 -0
  106. package/dist/cjs/api/types/ShippingTaskGroupMessageWebhookPayload.js +5 -0
  107. package/dist/cjs/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.ts +15 -0
  108. package/dist/cjs/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.js +5 -0
  109. package/dist/cjs/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.ts +14 -0
  110. package/dist/cjs/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.js +5 -0
  111. package/dist/cjs/api/types/ShippingTaskSkippedWebhookPayload.d.ts +15 -0
  112. package/dist/cjs/api/types/ShippingTaskSkippedWebhookPayload.js +5 -0
  113. package/dist/cjs/api/types/Statement1.d.ts +1 -1
  114. package/dist/cjs/api/types/{Task1.d.ts → Task1Input.d.ts} +4 -8
  115. package/dist/cjs/api/types/Task1Input.js +5 -0
  116. package/dist/cjs/api/types/Task1Output.d.ts +36 -0
  117. package/dist/cjs/api/types/Task1Output.js +5 -0
  118. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
  119. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -1
  120. package/dist/cjs/api/types/TaskExpanded.d.ts +2 -2
  121. package/dist/cjs/api/types/TaskGroupExpanded.d.ts +1 -1
  122. package/dist/cjs/api/types/UserPublicData1.d.ts +0 -1
  123. package/dist/cjs/api/types/WebhookAppPortalAccessRes.d.ts +10 -0
  124. package/dist/cjs/api/types/WebhookAppPortalAccessRes.js +5 -0
  125. package/dist/cjs/api/types/index.d.ts +32 -6
  126. package/dist/cjs/api/types/index.js +32 -6
  127. package/dist/cjs/version.d.ts +1 -1
  128. package/dist/cjs/version.js +1 -1
  129. package/dist/esm/Client.d.mts +6 -6
  130. package/dist/esm/Client.mjs +10 -10
  131. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +1 -1
  132. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +1 -1
  133. package/dist/esm/api/resources/directoryEntries/client/Client.d.mts +99 -0
  134. package/dist/esm/api/resources/directoryEntries/client/Client.mjs +327 -0
  135. package/dist/esm/api/{types/ShipperContactClientCreate1.d.mts → resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.mts} +11 -7
  136. package/dist/esm/api/resources/{shipperContactInfo/client/requests/ShipperContactClientUpdate1.d.mts → directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.mts} +2 -2
  137. package/dist/esm/api/resources/directoryEntries/client/requests/index.d.mts +2 -0
  138. package/dist/esm/api/resources/drivers/client/Client.d.mts +3 -3
  139. package/dist/esm/api/resources/index.d.mts +3 -4
  140. package/dist/esm/api/resources/index.mjs +3 -4
  141. package/dist/esm/api/resources/notifications/client/Client.d.mts +12 -41
  142. package/dist/esm/api/resources/notifications/client/Client.mjs +16 -136
  143. package/dist/esm/api/resources/notifications/client/index.d.mts +0 -1
  144. package/dist/esm/api/resources/notifications/client/index.mjs +1 -1
  145. package/dist/esm/api/resources/notifications/index.d.mts +1 -0
  146. package/dist/esm/api/resources/notifications/index.mjs +1 -0
  147. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +77 -0
  148. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +215 -0
  149. package/dist/esm/api/resources/notifications/resources/adHoc/client/index.d.mts +2 -0
  150. package/dist/esm/api/resources/notifications/resources/adHoc/client/index.mjs +1 -0
  151. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.mts +18 -0
  152. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -0
  153. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.mjs +1 -0
  154. package/dist/esm/api/resources/notifications/resources/adHoc/index.d.mts +1 -0
  155. package/dist/esm/api/resources/notifications/resources/adHoc/index.mjs +1 -0
  156. package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +209 -0
  157. package/dist/esm/api/resources/{shipperContactInfo → notifications/resources/groups}/client/Client.mjs +303 -116
  158. package/dist/esm/api/resources/notifications/resources/groups/client/index.d.mts +2 -0
  159. package/dist/esm/api/resources/notifications/resources/groups/client/index.mjs +1 -0
  160. package/dist/esm/api/resources/notifications/resources/groups/client/requests/GroupsUpdateNameV1Request.d.mts +12 -0
  161. package/dist/esm/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.mts +14 -0
  162. package/dist/esm/api/resources/notifications/resources/groups/client/requests/index.d.mts +2 -0
  163. package/dist/esm/api/resources/notifications/resources/groups/client/requests/index.mjs +1 -0
  164. package/dist/esm/api/resources/notifications/resources/groups/index.d.mts +1 -0
  165. package/dist/esm/api/resources/notifications/resources/groups/index.mjs +1 -0
  166. package/dist/esm/api/resources/notifications/resources/index.d.mts +7 -0
  167. package/dist/esm/api/resources/notifications/resources/index.mjs +7 -0
  168. package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.d.mts +67 -0
  169. package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.mjs +195 -0
  170. package/dist/esm/api/resources/notifications/resources/userPreferences/client/index.d.mts +2 -0
  171. package/dist/esm/api/resources/notifications/resources/userPreferences/client/index.mjs +1 -0
  172. package/dist/esm/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.mts +15 -0
  173. package/dist/esm/api/resources/notifications/resources/userPreferences/client/requests/index.d.mts +1 -0
  174. package/dist/esm/api/resources/notifications/resources/userPreferences/client/requests/index.mjs +1 -0
  175. package/dist/esm/api/resources/notifications/resources/userPreferences/index.d.mts +1 -0
  176. package/dist/esm/api/resources/notifications/resources/userPreferences/index.mjs +1 -0
  177. package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.d.mts +74 -0
  178. package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.mjs +234 -0
  179. package/dist/esm/api/resources/notifications/resources/webhookSetup/client/index.d.mts +1 -0
  180. package/dist/esm/api/resources/notifications/resources/webhookSetup/client/index.mjs +1 -0
  181. package/dist/esm/api/resources/notifications/resources/webhookSetup/index.d.mts +1 -0
  182. package/dist/esm/api/resources/notifications/resources/webhookSetup/index.mjs +1 -0
  183. package/dist/esm/api/types/BillingLineItemGroupMessageWebhookPayload.d.mts +13 -0
  184. package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.mts +13 -0
  185. package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.mjs +4 -0
  186. package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.d.mts +11 -0
  187. package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.mjs +4 -0
  188. package/dist/esm/api/types/BillingStatementPaidWebhookPayload.d.mts +11 -0
  189. package/dist/esm/api/types/BillingStatementPaidWebhookPayload.mjs +4 -0
  190. package/dist/esm/api/types/{ShipperContact1.d.mts → DirectoryEntry1.d.mts} +4 -6
  191. package/dist/esm/api/types/DirectoryEntry1.mjs +4 -0
  192. package/dist/esm/api/types/{Driver1.d.mts → Driver1Input.d.mts} +1 -1
  193. package/dist/esm/api/types/Driver1Input.mjs +4 -0
  194. package/dist/esm/api/types/Driver1Output.d.mts +27 -0
  195. package/dist/esm/api/types/Driver1Output.mjs +4 -0
  196. package/dist/esm/api/types/NotificationChannelsEnum.d.mts +12 -0
  197. package/dist/esm/api/types/NotificationChannelsEnum.mjs +8 -0
  198. package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +14 -0
  199. package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +7 -0
  200. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +29 -0
  201. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +23 -0
  202. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +20 -0
  203. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +12 -0
  204. package/dist/esm/api/types/NotificationGroup1.d.mts +18 -0
  205. package/dist/esm/api/types/NotificationGroup1.mjs +4 -0
  206. package/dist/esm/api/types/NotificationGroupLimitedForDriver1.d.mts +23 -0
  207. package/dist/esm/api/types/NotificationGroupLimitedForDriver1.mjs +4 -0
  208. package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +18 -0
  209. package/dist/esm/api/types/NotificationIntentAdHoc1.mjs +4 -0
  210. package/dist/esm/api/types/NotificationUserPreferences1.d.mts +15 -0
  211. package/dist/esm/api/types/NotificationUserPreferences1.mjs +4 -0
  212. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -1
  213. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  214. package/dist/esm/api/types/OrgPrivateData1.d.mts +2 -0
  215. package/dist/esm/api/types/ShippingOrderCancelledWebhookPayload.d.mts +11 -0
  216. package/dist/esm/api/types/ShippingOrderCancelledWebhookPayload.mjs +4 -0
  217. package/dist/esm/api/types/ShippingOrderCompletedWebhookPayload.d.mts +11 -0
  218. package/dist/esm/api/types/ShippingOrderCompletedWebhookPayload.mjs +4 -0
  219. package/dist/esm/api/types/ShippingOrderStagedWebhookPayload.d.mts +11 -0
  220. package/dist/esm/api/types/ShippingOrderStagedWebhookPayload.mjs +4 -0
  221. package/dist/esm/api/types/ShippingTaskAddedWebhookPayload.d.mts +15 -0
  222. package/dist/esm/api/types/ShippingTaskAddedWebhookPayload.mjs +4 -0
  223. package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.d.mts +15 -0
  224. package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.mjs +4 -0
  225. package/dist/esm/api/types/ShippingTaskDeletedWebhookPayload.d.mts +14 -0
  226. package/dist/esm/api/types/ShippingTaskDeletedWebhookPayload.mjs +4 -0
  227. package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.mts +14 -0
  228. package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.mjs +4 -0
  229. package/dist/esm/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.mts +15 -0
  230. package/dist/esm/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.mjs +4 -0
  231. package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.mts +16 -0
  232. package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.mjs +4 -0
  233. package/dist/esm/api/types/ShippingTaskGroupInProgressWebhookPayload.d.mts +13 -0
  234. package/dist/esm/api/types/ShippingTaskGroupInProgressWebhookPayload.mjs +4 -0
  235. package/dist/esm/api/types/ShippingTaskGroupMessageWebhookPayload.d.mts +15 -0
  236. package/dist/esm/api/types/ShippingTaskGroupMessageWebhookPayload.mjs +4 -0
  237. package/dist/esm/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.mts +15 -0
  238. package/dist/esm/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.mjs +4 -0
  239. package/dist/esm/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.mts +14 -0
  240. package/dist/esm/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.mjs +4 -0
  241. package/dist/esm/api/types/ShippingTaskSkippedWebhookPayload.d.mts +15 -0
  242. package/dist/esm/api/types/ShippingTaskSkippedWebhookPayload.mjs +4 -0
  243. package/dist/esm/api/types/Statement1.d.mts +1 -1
  244. package/dist/esm/api/types/{Task1.d.mts → Task1Input.d.mts} +4 -8
  245. package/dist/esm/api/types/Task1Input.mjs +4 -0
  246. package/dist/esm/api/types/Task1Output.d.mts +36 -0
  247. package/dist/esm/api/types/Task1Output.mjs +4 -0
  248. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
  249. package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -1
  250. package/dist/esm/api/types/TaskExpanded.d.mts +2 -2
  251. package/dist/esm/api/types/TaskGroupExpanded.d.mts +1 -1
  252. package/dist/esm/api/types/UserPublicData1.d.mts +0 -1
  253. package/dist/esm/api/types/WebhookAppPortalAccessRes.d.mts +10 -0
  254. package/dist/esm/api/types/WebhookAppPortalAccessRes.mjs +4 -0
  255. package/dist/esm/api/types/index.d.mts +32 -6
  256. package/dist/esm/api/types/index.mjs +32 -6
  257. package/dist/esm/version.d.mts +1 -1
  258. package/dist/esm/version.mjs +1 -1
  259. package/package.json +1 -1
  260. package/reference.md +1786 -754
  261. package/dist/cjs/api/resources/notifications/client/requests/NotificationReq.d.ts +0 -17
  262. package/dist/cjs/api/resources/notifications/client/requests/index.d.ts +0 -1
  263. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +0 -163
  264. package/dist/cjs/api/resources/shipperContactInfo/client/requests/index.d.ts +0 -1
  265. package/dist/cjs/api/types/ChrtEmailRecipient.d.ts +0 -10
  266. package/dist/cjs/api/types/ChrtEmailRecipient.js +0 -12
  267. package/dist/cjs/api/types/NotificationRes.d.ts +0 -10
  268. package/dist/esm/api/resources/notifications/client/requests/NotificationReq.d.mts +0 -17
  269. package/dist/esm/api/resources/notifications/client/requests/index.d.mts +0 -1
  270. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +0 -163
  271. package/dist/esm/api/resources/shipperContactInfo/client/requests/index.d.mts +0 -1
  272. package/dist/esm/api/types/ChrtEmailRecipient.d.mts +0 -10
  273. package/dist/esm/api/types/ChrtEmailRecipient.mjs +0 -9
  274. package/dist/esm/api/types/NotificationRes.d.mts +0 -10
  275. /package/dist/cjs/api/resources/{shipperContactInfo → directoryEntries}/client/index.d.ts +0 -0
  276. /package/dist/cjs/api/resources/{shipperContactInfo → directoryEntries}/client/index.js +0 -0
  277. /package/dist/cjs/api/resources/{notifications/client/requests/NotificationReq.js → directoryEntries/client/requests/DirectoryEntryClientCreate1.js} +0 -0
  278. /package/dist/cjs/api/resources/{shipperContactInfo/client/requests/ShipperContactClientUpdate1.js → directoryEntries/client/requests/DirectoryEntryClientUpdate1.js} +0 -0
  279. /package/dist/cjs/api/resources/{notifications → directoryEntries}/client/requests/index.js +0 -0
  280. /package/dist/cjs/api/resources/{shipperContactInfo → directoryEntries}/index.d.ts +0 -0
  281. /package/dist/cjs/api/resources/{shipperContactInfo → directoryEntries}/index.js +0 -0
  282. /package/dist/cjs/api/{types/Driver1.js → resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.js} +0 -0
  283. /package/dist/cjs/api/resources/{shipperContactInfo → notifications/resources/adHoc}/client/requests/index.js +0 -0
  284. /package/dist/cjs/api/{types/NotificationRes.js → resources/notifications/resources/groups/client/requests/GroupsUpdateNameV1Request.js} +0 -0
  285. /package/dist/cjs/api/{types/ShipperContact1.js → resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.js} +0 -0
  286. /package/dist/cjs/api/{types/ShipperContactClientCreate1.js → resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.js} +0 -0
  287. /package/dist/{esm/api/resources/notifications/client/requests/index.mjs → cjs/api/resources/notifications/resources/webhookSetup/client/index.d.ts} +0 -0
  288. /package/dist/cjs/api/types/{Task1.js → BillingLineItemGroupMessageWebhookPayload.js} +0 -0
  289. /package/dist/esm/api/resources/{shipperContactInfo → directoryEntries}/client/index.d.mts +0 -0
  290. /package/dist/esm/api/resources/{shipperContactInfo → directoryEntries}/client/index.mjs +0 -0
  291. /package/dist/esm/api/resources/{notifications/client/requests/NotificationReq.mjs → directoryEntries/client/requests/DirectoryEntryClientCreate1.mjs} +0 -0
  292. /package/dist/esm/api/resources/{shipperContactInfo/client/requests/ShipperContactClientUpdate1.mjs → directoryEntries/client/requests/DirectoryEntryClientUpdate1.mjs} +0 -0
  293. /package/dist/esm/api/resources/{shipperContactInfo → directoryEntries}/client/requests/index.mjs +0 -0
  294. /package/dist/esm/api/resources/{shipperContactInfo → directoryEntries}/index.d.mts +0 -0
  295. /package/dist/esm/api/resources/{shipperContactInfo → directoryEntries}/index.mjs +0 -0
  296. /package/dist/esm/api/{types/Driver1.mjs → resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.mjs} +0 -0
  297. /package/dist/esm/api/{types/NotificationRes.mjs → resources/notifications/resources/groups/client/requests/GroupsUpdateNameV1Request.mjs} +0 -0
  298. /package/dist/esm/api/{types/ShipperContact1.mjs → resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.mjs} +0 -0
  299. /package/dist/esm/api/{types/ShipperContactClientCreate1.mjs → resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.mjs} +0 -0
  300. /package/dist/esm/api/types/{Task1.mjs → BillingLineItemGroupMessageWebhookPayload.mjs} +0 -0
@@ -0,0 +1,271 @@
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.WebhookSetup = void 0;
49
+ const environments = __importStar(require("../../../../../../environments.js"));
50
+ const core = __importStar(require("../../../../../../core/index.js"));
51
+ const headers_js_1 = require("../../../../../../core/headers.js");
52
+ const errors = __importStar(require("../../../../../../errors/index.js"));
53
+ class WebhookSetup {
54
+ constructor(_options = {}) {
55
+ this._options = _options;
56
+ }
57
+ /**
58
+ * Creates a Svix consumer application for the organization. Each org needs one app, then endpoints can be added and configured via the app portal. Idempotent - returns True if already created. | authz: min_org_role=administrator | () -> (bool)
59
+ *
60
+ * @param {WebhookSetup.RequestOptions} requestOptions - Request-specific configuration.
61
+ *
62
+ * @example
63
+ * await client.notifications.webhookSetup.createAppV1()
64
+ */
65
+ createAppV1(requestOptions) {
66
+ return core.HttpResponsePromise.fromPromise(this.__createAppV1(requestOptions));
67
+ }
68
+ __createAppV1(requestOptions) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ var _a, _b, _c, _d;
71
+ 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);
72
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
73
+ 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, "notifications/webhook_setup/create_app/v1"),
74
+ method: "POST",
75
+ headers: _headers,
76
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
77
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
78
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
79
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
+ });
81
+ if (_response.ok) {
82
+ return { data: _response.body, rawResponse: _response.rawResponse };
83
+ }
84
+ if (_response.error.reason === "status-code") {
85
+ throw new errors.ChrtError({
86
+ statusCode: _response.error.statusCode,
87
+ body: _response.error.body,
88
+ rawResponse: _response.rawResponse,
89
+ });
90
+ }
91
+ switch (_response.error.reason) {
92
+ case "non-json":
93
+ throw new errors.ChrtError({
94
+ statusCode: _response.error.statusCode,
95
+ body: _response.error.rawBody,
96
+ rawResponse: _response.rawResponse,
97
+ });
98
+ case "timeout":
99
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/webhook_setup/create_app/v1.");
100
+ case "unknown":
101
+ throw new errors.ChrtError({
102
+ message: _response.error.errorMessage,
103
+ rawResponse: _response.rawResponse,
104
+ });
105
+ }
106
+ });
107
+ }
108
+ /**
109
+ * Returns a 1-day magic link URL to access the Svix App Portal. The link contains a one-time token - request a fresh link for each portal session. Admins/owners get full access, operators get read-only. | authz: min_org_role=operator | () -> (WebhookAppPortalAccessRes)
110
+ *
111
+ * @param {WebhookSetup.RequestOptions} requestOptions - Request-specific configuration.
112
+ *
113
+ * @example
114
+ * await client.notifications.webhookSetup.appPortalAccessV1()
115
+ */
116
+ appPortalAccessV1(requestOptions) {
117
+ return core.HttpResponsePromise.fromPromise(this.__appPortalAccessV1(requestOptions));
118
+ }
119
+ __appPortalAccessV1(requestOptions) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ var _a, _b, _c, _d;
122
+ 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);
123
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
124
+ 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, "notifications/webhook_setup/app_portal_access/v1"),
125
+ method: "POST",
126
+ headers: _headers,
127
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
128
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
129
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
130
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
131
+ });
132
+ if (_response.ok) {
133
+ return { data: _response.body, rawResponse: _response.rawResponse };
134
+ }
135
+ if (_response.error.reason === "status-code") {
136
+ throw new errors.ChrtError({
137
+ statusCode: _response.error.statusCode,
138
+ body: _response.error.body,
139
+ rawResponse: _response.rawResponse,
140
+ });
141
+ }
142
+ switch (_response.error.reason) {
143
+ case "non-json":
144
+ throw new errors.ChrtError({
145
+ statusCode: _response.error.statusCode,
146
+ body: _response.error.rawBody,
147
+ rawResponse: _response.rawResponse,
148
+ });
149
+ case "timeout":
150
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/webhook_setup/app_portal_access/v1.");
151
+ case "unknown":
152
+ throw new errors.ChrtError({
153
+ message: _response.error.errorMessage,
154
+ rawResponse: _response.rawResponse,
155
+ });
156
+ }
157
+ });
158
+ }
159
+ /**
160
+ * Enables webhook notifications for the organization. Idempotent. | authz: min_org_role=administrator | () -> (bool)
161
+ *
162
+ * @param {WebhookSetup.RequestOptions} requestOptions - Request-specific configuration.
163
+ *
164
+ * @example
165
+ * await client.notifications.webhookSetup.turnOnV1()
166
+ */
167
+ turnOnV1(requestOptions) {
168
+ return core.HttpResponsePromise.fromPromise(this.__turnOnV1(requestOptions));
169
+ }
170
+ __turnOnV1(requestOptions) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ var _a, _b, _c, _d;
173
+ 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);
174
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
175
+ 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, "notifications/webhook_setup/turn_on/v1"),
176
+ method: "PUT",
177
+ headers: _headers,
178
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
179
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
180
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
181
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
182
+ });
183
+ if (_response.ok) {
184
+ return { data: _response.body, rawResponse: _response.rawResponse };
185
+ }
186
+ if (_response.error.reason === "status-code") {
187
+ throw new errors.ChrtError({
188
+ statusCode: _response.error.statusCode,
189
+ body: _response.error.body,
190
+ rawResponse: _response.rawResponse,
191
+ });
192
+ }
193
+ switch (_response.error.reason) {
194
+ case "non-json":
195
+ throw new errors.ChrtError({
196
+ statusCode: _response.error.statusCode,
197
+ body: _response.error.rawBody,
198
+ rawResponse: _response.rawResponse,
199
+ });
200
+ case "timeout":
201
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /notifications/webhook_setup/turn_on/v1.");
202
+ case "unknown":
203
+ throw new errors.ChrtError({
204
+ message: _response.error.errorMessage,
205
+ rawResponse: _response.rawResponse,
206
+ });
207
+ }
208
+ });
209
+ }
210
+ /**
211
+ * Disables webhook notifications for the organization. Idempotent. | authz: min_org_role=administrator | () -> (bool)
212
+ *
213
+ * @param {WebhookSetup.RequestOptions} requestOptions - Request-specific configuration.
214
+ *
215
+ * @example
216
+ * await client.notifications.webhookSetup.turnOffV1()
217
+ */
218
+ turnOffV1(requestOptions) {
219
+ return core.HttpResponsePromise.fromPromise(this.__turnOffV1(requestOptions));
220
+ }
221
+ __turnOffV1(requestOptions) {
222
+ return __awaiter(this, void 0, void 0, function* () {
223
+ var _a, _b, _c, _d;
224
+ 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);
225
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
226
+ 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, "notifications/webhook_setup/turn_off/v1"),
227
+ method: "PUT",
228
+ headers: _headers,
229
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
230
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
231
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
232
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
233
+ });
234
+ if (_response.ok) {
235
+ return { data: _response.body, rawResponse: _response.rawResponse };
236
+ }
237
+ if (_response.error.reason === "status-code") {
238
+ throw new errors.ChrtError({
239
+ statusCode: _response.error.statusCode,
240
+ body: _response.error.body,
241
+ rawResponse: _response.rawResponse,
242
+ });
243
+ }
244
+ switch (_response.error.reason) {
245
+ case "non-json":
246
+ throw new errors.ChrtError({
247
+ statusCode: _response.error.statusCode,
248
+ body: _response.error.rawBody,
249
+ rawResponse: _response.rawResponse,
250
+ });
251
+ case "timeout":
252
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /notifications/webhook_setup/turn_off/v1.");
253
+ case "unknown":
254
+ throw new errors.ChrtError({
255
+ message: _response.error.errorMessage,
256
+ rawResponse: _response.rawResponse,
257
+ });
258
+ }
259
+ });
260
+ }
261
+ _getAuthorizationHeader() {
262
+ return __awaiter(this, void 0, void 0, function* () {
263
+ const bearer = yield core.Supplier.get(this._options.token);
264
+ if (bearer != null) {
265
+ return `Bearer ${bearer}`;
266
+ }
267
+ return undefined;
268
+ });
269
+ }
270
+ }
271
+ exports.WebhookSetup = WebhookSetup;
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface BillingLineItemGroupMessageWebhookPayload {
6
+ event_type?: "billing.line_item_group.message";
7
+ /** UTC timestamp when the event occurred */
8
+ event_timestamp: string;
9
+ /** The message that was added to the line item group */
10
+ message: Chrt.LineItemGroupMessage1;
11
+ /** The line item group the message was added to */
12
+ line_item_group_id: string;
13
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface BillingLineItemGroupS3ObjectAddedWebhookPayload {
6
+ event_type?: "billing.line_item_group.s3_object_added";
7
+ /** UTC timestamp when the event occurred */
8
+ event_timestamp: string;
9
+ /** Metadata for the S3 object that was added */
10
+ s3_object_metadata: Chrt.LineItemGroupS3ObjectMetadata1;
11
+ /** The line item group the S3 object was added to */
12
+ line_item_group_id: 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,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface BillingStatementOpenedWebhookPayload {
6
+ event_type?: "billing.statement.opened";
7
+ /** UTC timestamp when the event occurred */
8
+ event_timestamp: string;
9
+ /** The statement that was opened */
10
+ statement: Chrt.Statement1;
11
+ }
@@ -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,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface BillingStatementPaidWebhookPayload {
6
+ event_type?: "billing.statement.paid";
7
+ /** UTC timestamp when the event occurred */
8
+ event_timestamp: string;
9
+ /** The statement that was paid */
10
+ statement: Chrt.Statement1;
11
+ }
@@ -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 });
@@ -2,16 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- export interface ShipperContact1 {
5
+ export interface DirectoryEntry1 {
6
6
  schema_version: number;
7
7
  /** Must be a string starting with `org_` */
8
- shipper_org_id?: string | null;
9
- /** Must be a string starting with `user_` */
10
- shipper_user_id?: string | null;
11
- off_chrt_shipper_org_id?: string | null;
8
+ entry_org_id?: string | null;
9
+ entry_off_chrt_shipper_org_id?: string | null;
12
10
  company_name?: string | null;
13
11
  industry?: string | null;
14
- street_address?: Chrt.LocationFeature | null;
12
+ location?: Chrt.LocationFeature | null;
15
13
  contact_first_name?: string | null;
16
14
  contact_last_name?: string | null;
17
15
  phone_number_primary?: string | null;
@@ -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 });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- export interface Driver1 {
5
+ export interface Driver1Input {
6
6
  schema_version: number;
7
7
  email_address_primary?: string | null;
8
8
  email_address_secondary?: string | null;
@@ -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,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface Driver1Output {
6
+ schema_version: number;
7
+ email_address_primary?: string | null;
8
+ email_address_secondary?: string | null;
9
+ phone_number_primary?: string | null;
10
+ phone_number_secondary?: string | null;
11
+ first_name?: string | null;
12
+ last_name?: string | null;
13
+ vehicle_types?: Chrt.VehicleTypeEnum[];
14
+ _id: string;
15
+ /** Must be a string starting with `org_` */
16
+ org_id: string;
17
+ /** Must be a string starting with `user_` */
18
+ user_id: string;
19
+ status?: Chrt.DriverStatusEnum;
20
+ available_according_to_driver?: boolean;
21
+ available_according_to_operators?: boolean;
22
+ active_task_group_ids?: string[];
23
+ last_seen_at_location?: Chrt.LocationFeature | null;
24
+ last_seen_at_timestamp?: string | null;
25
+ default_rate_sheet__routed?: string | null;
26
+ default_rate_sheet__on_demand?: string | null;
27
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Notification delivery channels.
6
+ */
7
+ export type NotificationChannelsEnum = "email" | "sms" | "push";
8
+ export declare const NotificationChannelsEnum: {
9
+ readonly Email: "email";
10
+ readonly Sms: "sms";
11
+ readonly Push: "push";
12
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NotificationChannelsEnum = void 0;
7
+ exports.NotificationChannelsEnum = {
8
+ Email: "email",
9
+ Sms: "sms",
10
+ Push: "push",
11
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Limited notification events for ad-hoc per-order notifications.
6
+ *
7
+ * Set per order for any directory entry contact.
8
+ * Limited scope since it can go outside the org, e.g. share order completion but probably not billing events
9
+ */
10
+ export type NotificationEventsForAdHocEnum = "shipping.order.staged" | "shipping.order.completed";
11
+ export declare const NotificationEventsForAdHocEnum: {
12
+ readonly ShippingOrderStaged: "shipping.order.staged";
13
+ readonly ShippingOrderCompleted: "shipping.order.completed";
14
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NotificationEventsForAdHocEnum = void 0;
7
+ exports.NotificationEventsForAdHocEnum = {
8
+ ShippingOrderStaged: "shipping.order.staged",
9
+ ShippingOrderCompleted: "shipping.order.completed",
10
+ };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * All notification events available at the org level.
6
+ * Controlled by Groups that admins configure.
7
+ * Individual users in the group can opt out.
8
+ */
9
+ export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.courier_org_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.s3_object_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.s3_object_added";
10
+ export declare const NotificationEventsForOrgsEnum: {
11
+ readonly ShippingOrderStaged: "shipping.order.staged";
12
+ readonly ShippingOrderCompleted: "shipping.order.completed";
13
+ readonly ShippingOrderCancelled: "shipping.order.cancelled";
14
+ readonly ShippingTaskGroupCourierOrgAssigned: "shipping.task_group.courier_org_assigned";
15
+ readonly ShippingTaskGroupInProgress: "shipping.task_group.in_progress";
16
+ readonly ShippingTaskGroupS3ObjectAdded: "shipping.task_group.s3_object_added";
17
+ readonly ShippingTaskGroupDriverAssigned: "shipping.task_group.driver_assigned";
18
+ readonly ShippingTaskGroupMessage: "shipping.task_group.message";
19
+ readonly ShippingTaskGroupTasksOrderingUpdated: "shipping.task_group.tasks_ordering_updated";
20
+ readonly ShippingTaskGroupFlightInfoUpdated: "shipping.task_group.flight_info_updated";
21
+ readonly ShippingTaskAdded: "shipping.task.added";
22
+ readonly ShippingTaskCompleted: "shipping.task.completed";
23
+ readonly ShippingTaskSkipped: "shipping.task.skipped";
24
+ readonly ShippingTaskDeleted: "shipping.task.deleted";
25
+ readonly BillingStatementOpened: "billing.statement.opened";
26
+ readonly BillingStatementPaid: "billing.statement.paid";
27
+ readonly BillingLineItemGroupMessage: "billing.line_item_group.message";
28
+ readonly BillingLineItemGroupS3ObjectAdded: "billing.line_item_group.s3_object_added";
29
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NotificationEventsForOrgsEnum = void 0;
7
+ exports.NotificationEventsForOrgsEnum = {
8
+ ShippingOrderStaged: "shipping.order.staged",
9
+ ShippingOrderCompleted: "shipping.order.completed",
10
+ ShippingOrderCancelled: "shipping.order.cancelled",
11
+ ShippingTaskGroupCourierOrgAssigned: "shipping.task_group.courier_org_assigned",
12
+ ShippingTaskGroupInProgress: "shipping.task_group.in_progress",
13
+ ShippingTaskGroupS3ObjectAdded: "shipping.task_group.s3_object_added",
14
+ ShippingTaskGroupDriverAssigned: "shipping.task_group.driver_assigned",
15
+ ShippingTaskGroupMessage: "shipping.task_group.message",
16
+ ShippingTaskGroupTasksOrderingUpdated: "shipping.task_group.tasks_ordering_updated",
17
+ ShippingTaskGroupFlightInfoUpdated: "shipping.task_group.flight_info_updated",
18
+ ShippingTaskAdded: "shipping.task.added",
19
+ ShippingTaskCompleted: "shipping.task.completed",
20
+ ShippingTaskSkipped: "shipping.task.skipped",
21
+ ShippingTaskDeleted: "shipping.task.deleted",
22
+ BillingStatementOpened: "billing.statement.opened",
23
+ BillingStatementPaid: "billing.statement.paid",
24
+ BillingLineItemGroupMessage: "billing.line_item_group.message",
25
+ BillingLineItemGroupS3ObjectAdded: "billing.line_item_group.s3_object_added",
26
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Notification events available for user-level opt-in preferences.
6
+ *
7
+ * These are events that relate to a user's direct involvement:
8
+ * - Order events: via `order.created_by_user_id`
9
+ * - TaskGroup events: via `task_group.driver_id`
10
+ */
11
+ export type NotificationEventsForUsersEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated";
12
+ export declare const NotificationEventsForUsersEnum: {
13
+ readonly ShippingOrderStaged: "shipping.order.staged";
14
+ readonly ShippingOrderCompleted: "shipping.order.completed";
15
+ readonly ShippingOrderCancelled: "shipping.order.cancelled";
16
+ readonly ShippingTaskGroupDriverAssigned: "shipping.task_group.driver_assigned";
17
+ readonly ShippingTaskGroupMessage: "shipping.task_group.message";
18
+ readonly ShippingTaskGroupTasksOrderingUpdated: "shipping.task_group.tasks_ordering_updated";
19
+ readonly ShippingTaskGroupFlightInfoUpdated: "shipping.task_group.flight_info_updated";
20
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NotificationEventsForUsersEnum = void 0;
7
+ exports.NotificationEventsForUsersEnum = {
8
+ ShippingOrderStaged: "shipping.order.staged",
9
+ ShippingOrderCompleted: "shipping.order.completed",
10
+ ShippingOrderCancelled: "shipping.order.cancelled",
11
+ ShippingTaskGroupDriverAssigned: "shipping.task_group.driver_assigned",
12
+ ShippingTaskGroupMessage: "shipping.task_group.message",
13
+ ShippingTaskGroupTasksOrderingUpdated: "shipping.task_group.tasks_ordering_updated",
14
+ ShippingTaskGroupFlightInfoUpdated: "shipping.task_group.flight_info_updated",
15
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface NotificationGroup1 {
6
+ schema_version: number;
7
+ group_name: string;
8
+ /** Must be a string starting with `org_` */
9
+ org_id: string;
10
+ created_at_timestamp: string;
11
+ last_edited_at_timestamp: string;
12
+ user_ids?: string[];
13
+ user_ids_opted_out?: string[];
14
+ email_events?: Chrt.NotificationEventsForOrgsEnum[];
15
+ push_events?: Chrt.NotificationEventsForOrgsEnum[];
16
+ sms_events?: Chrt.NotificationEventsForOrgsEnum[];
17
+ _id: string;
18
+ }
@@ -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 });