@chrt-inc/typescript-sdk 1.363.0 → 1.363.1

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
@@ -10,32 +10,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  step((generator = generator.apply(thisArg, _arguments || [])).next());
11
11
  });
12
12
  };
13
- import * as environments from "../../../../environments.mjs";
14
- import * as core from "../../../../core/index.mjs";
15
- import * as Chrt from "../../../index.mjs";
16
- import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
17
- import * as errors from "../../../../errors/index.mjs";
18
- export class ShipperContactInfo {
13
+ import * as environments from "../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../errors/index.mjs";
18
+ export class Groups {
19
19
  constructor(_options = {}) {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves the shipper contact information associated with the caller's ID. | () -> (ShipperContact1)
23
+ * Lists all notification groups for the caller's organization. | authz: min_org_role=operator | () -> (list[NotificationGroup1])
24
24
  *
25
- * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
25
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
27
27
  * @example
28
- * await client.shipperContactInfo.getCallerV1()
28
+ * await client.notifications.groups.listByOrgV1()
29
29
  */
30
- getCallerV1(requestOptions) {
31
- return core.HttpResponsePromise.fromPromise(this.__getCallerV1(requestOptions));
30
+ listByOrgV1(requestOptions) {
31
+ return core.HttpResponsePromise.fromPromise(this.__listByOrgV1(requestOptions));
32
32
  }
33
- __getCallerV1(requestOptions) {
33
+ __listByOrgV1(requestOptions) {
34
34
  return __awaiter(this, void 0, void 0, function* () {
35
35
  var _a, _b, _c, _d;
36
36
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
37
37
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
38
- 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, "oort/shipper_contact_info/self/v1"),
38
+ 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/groups/list_by_org/v1"),
39
39
  method: "GET",
40
40
  headers: _headers,
41
41
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -61,7 +61,7 @@ export class ShipperContactInfo {
61
61
  rawResponse: _response.rawResponse,
62
62
  });
63
63
  case "timeout":
64
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/self/v1.");
64
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/list_by_org/v1.");
65
65
  case "unknown":
66
66
  throw new errors.ChrtError({
67
67
  message: _response.error.errorMessage,
@@ -71,22 +71,25 @@ export class ShipperContactInfo {
71
71
  });
72
72
  }
73
73
  /**
74
- * Lists all shipper contacts for the caller's organization. | () -> (list[ShipperContact1])
74
+ * Retrieves full notification group details including user membership. | authz: min_org_role=operator | () -> (NotificationGroup1)
75
75
  *
76
- * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
76
+ * @param {string} groupId
77
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
78
+ *
79
+ * @throws {@link Chrt.UnprocessableEntityError}
77
80
  *
78
81
  * @example
79
- * await client.shipperContactInfo.listV1()
82
+ * await client.notifications.groups.getForAdministratorV1("group_id")
80
83
  */
81
- listV1(requestOptions) {
82
- return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
84
+ getForAdministratorV1(groupId, requestOptions) {
85
+ return core.HttpResponsePromise.fromPromise(this.__getForAdministratorV1(groupId, requestOptions));
83
86
  }
84
- __listV1(requestOptions) {
87
+ __getForAdministratorV1(groupId, requestOptions) {
85
88
  return __awaiter(this, void 0, void 0, function* () {
86
89
  var _a, _b, _c, _d;
87
90
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
91
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
89
- 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, "oort/shipper_contact_info/list/v1"),
92
+ 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/groups/get_for_administrator/v1/${encodeURIComponent(groupId)}`),
90
93
  method: "GET",
91
94
  headers: _headers,
92
95
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -97,6 +100,65 @@ export class ShipperContactInfo {
97
100
  if (_response.ok) {
98
101
  return { data: _response.body, rawResponse: _response.rawResponse };
99
102
  }
103
+ if (_response.error.reason === "status-code") {
104
+ switch (_response.error.statusCode) {
105
+ case 422:
106
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
107
+ default:
108
+ throw new errors.ChrtError({
109
+ statusCode: _response.error.statusCode,
110
+ body: _response.error.body,
111
+ rawResponse: _response.rawResponse,
112
+ });
113
+ }
114
+ }
115
+ switch (_response.error.reason) {
116
+ case "non-json":
117
+ throw new errors.ChrtError({
118
+ statusCode: _response.error.statusCode,
119
+ body: _response.error.rawBody,
120
+ rawResponse: _response.rawResponse,
121
+ });
122
+ case "timeout":
123
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/get_for_administrator/v1/{group_id}.");
124
+ case "unknown":
125
+ throw new errors.ChrtError({
126
+ message: _response.error.errorMessage,
127
+ rawResponse: _response.rawResponse,
128
+ });
129
+ }
130
+ });
131
+ }
132
+ /**
133
+ * Lists notification groups the caller is a member of. | () -> (list[NotificationGroupLimitedForDriver1])
134
+ *
135
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
136
+ *
137
+ * @example
138
+ * await client.notifications.groups.listByUserV1()
139
+ */
140
+ listByUserV1(requestOptions) {
141
+ return core.HttpResponsePromise.fromPromise(this.__listByUserV1(requestOptions));
142
+ }
143
+ __listByUserV1(requestOptions) {
144
+ return __awaiter(this, void 0, void 0, function* () {
145
+ var _a, _b, _c, _d;
146
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
147
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
148
+ 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/groups/list_by_user/v1"),
149
+ method: "GET",
150
+ headers: _headers,
151
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
152
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
153
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
154
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
155
+ });
156
+ if (_response.ok) {
157
+ return {
158
+ data: _response.body,
159
+ rawResponse: _response.rawResponse,
160
+ };
161
+ }
100
162
  if (_response.error.reason === "status-code") {
101
163
  throw new errors.ChrtError({
102
164
  statusCode: _response.error.statusCode,
@@ -112,7 +174,7 @@ export class ShipperContactInfo {
112
174
  rawResponse: _response.rawResponse,
113
175
  });
114
176
  case "timeout":
115
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/v1.");
177
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/list_by_user/v1.");
116
178
  case "unknown":
117
179
  throw new errors.ChrtError({
118
180
  message: _response.error.errorMessage,
@@ -122,25 +184,25 @@ export class ShipperContactInfo {
122
184
  });
123
185
  }
124
186
  /**
125
- * Lists all shipper contacts accessible to the courier organization for a specific on-platform shipper. | () -> (list[ShipperContact1])
187
+ * Retrieves limited notification group details for a group the caller is a member of. | () -> (NotificationGroupLimitedForDriver1)
126
188
  *
127
- * @param {string} shipperOrgId
128
- * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
189
+ * @param {string} groupId
190
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
129
191
  *
130
192
  * @throws {@link Chrt.UnprocessableEntityError}
131
193
  *
132
194
  * @example
133
- * await client.shipperContactInfo.listCourierContactsV1("shipper_org_id")
195
+ * await client.notifications.groups.getForMemberV1("group_id")
134
196
  */
135
- listCourierContactsV1(shipperOrgId, requestOptions) {
136
- return core.HttpResponsePromise.fromPromise(this.__listCourierContactsV1(shipperOrgId, requestOptions));
197
+ getForMemberV1(groupId, requestOptions) {
198
+ return core.HttpResponsePromise.fromPromise(this.__getForMemberV1(groupId, requestOptions));
137
199
  }
138
- __listCourierContactsV1(shipperOrgId, requestOptions) {
200
+ __getForMemberV1(groupId, requestOptions) {
139
201
  return __awaiter(this, void 0, void 0, function* () {
140
202
  var _a, _b, _c, _d;
141
203
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
142
204
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
143
- 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, `oort/shipper_contact_info/courier_contacts/list/v1/${encodeURIComponent(shipperOrgId)}`),
205
+ 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/groups/get_for_member/v1/${encodeURIComponent(groupId)}`),
144
206
  method: "GET",
145
207
  headers: _headers,
146
208
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -149,7 +211,10 @@ export class ShipperContactInfo {
149
211
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
150
212
  });
151
213
  if (_response.ok) {
152
- return { data: _response.body, rawResponse: _response.rawResponse };
214
+ return {
215
+ data: _response.body,
216
+ rawResponse: _response.rawResponse,
217
+ };
153
218
  }
154
219
  if (_response.error.reason === "status-code") {
155
220
  switch (_response.error.statusCode) {
@@ -171,7 +236,7 @@ export class ShipperContactInfo {
171
236
  rawResponse: _response.rawResponse,
172
237
  });
173
238
  case "timeout":
174
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/courier_contacts/list/v1/{shipper_org_id}.");
239
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/get_for_member/v1/{group_id}.");
175
240
  case "unknown":
176
241
  throw new errors.ChrtError({
177
242
  message: _response.error.errorMessage,
@@ -181,28 +246,34 @@ export class ShipperContactInfo {
181
246
  });
182
247
  }
183
248
  /**
184
- * Lists all shipper contacts accessible to the forwarder organization for a specific on-platform shipper. | () -> (list[ShipperContact1])
249
+ * Creates a new notification group for the organization. | authz: min_org_role=administrator | (NotificationGroupClientCreate1) -> (PydanticObjectId)
185
250
  *
186
- * @param {string} shipperOrgId
187
- * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
251
+ * @param {Chrt.notifications.NotificationGroupClientCreate1} request
252
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
188
253
  *
189
254
  * @throws {@link Chrt.UnprocessableEntityError}
190
255
  *
191
256
  * @example
192
- * await client.shipperContactInfo.listForwarderContactsV1("shipper_org_id")
257
+ * await client.notifications.groups.createV1({
258
+ * schema_version: 1,
259
+ * group_name: "group_name"
260
+ * })
193
261
  */
194
- listForwarderContactsV1(shipperOrgId, requestOptions) {
195
- return core.HttpResponsePromise.fromPromise(this.__listForwarderContactsV1(shipperOrgId, requestOptions));
262
+ createV1(request, requestOptions) {
263
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
196
264
  }
197
- __listForwarderContactsV1(shipperOrgId, requestOptions) {
265
+ __createV1(request, requestOptions) {
198
266
  return __awaiter(this, void 0, void 0, function* () {
199
267
  var _a, _b, _c, _d;
200
268
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
201
269
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
202
- 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, `oort/shipper_contact_info/forwarder_contacts/list/v1/${encodeURIComponent(shipperOrgId)}`),
203
- method: "GET",
270
+ 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/groups/create/v1"),
271
+ method: "POST",
204
272
  headers: _headers,
273
+ contentType: "application/json",
205
274
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
275
+ requestType: "json",
276
+ body: request,
206
277
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
207
278
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
208
279
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -230,7 +301,7 @@ export class ShipperContactInfo {
230
301
  rawResponse: _response.rawResponse,
231
302
  });
232
303
  case "timeout":
233
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/forwarder_contacts/list/v1/{shipper_org_id}.");
304
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/create/v1.");
234
305
  case "unknown":
235
306
  throw new errors.ChrtError({
236
307
  message: _response.error.errorMessage,
@@ -240,28 +311,34 @@ export class ShipperContactInfo {
240
311
  });
241
312
  }
242
313
  /**
243
- * Lists all shipper contacts for a specific off-platform shipper. | () -> (list[ShipperContact1])
314
+ * Updates the name of a notification group. | authz: min_org_role=administrator | () -> (bool)
244
315
  *
245
- * @param {string} offChrtShipperOrgId
246
- * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
316
+ * @param {string} groupId
317
+ * @param {Chrt.notifications.GroupsUpdateNameV1Request} request
318
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
247
319
  *
248
320
  * @throws {@link Chrt.UnprocessableEntityError}
249
321
  *
250
322
  * @example
251
- * await client.shipperContactInfo.listOffPlatformContactsV1("off_chrt_shipper_org_id")
323
+ * await client.notifications.groups.updateNameV1("group_id", {
324
+ * group_name: "group_name"
325
+ * })
252
326
  */
253
- listOffPlatformContactsV1(offChrtShipperOrgId, requestOptions) {
254
- return core.HttpResponsePromise.fromPromise(this.__listOffPlatformContactsV1(offChrtShipperOrgId, requestOptions));
327
+ updateNameV1(groupId, request, requestOptions) {
328
+ return core.HttpResponsePromise.fromPromise(this.__updateNameV1(groupId, request, requestOptions));
255
329
  }
256
- __listOffPlatformContactsV1(offChrtShipperOrgId, requestOptions) {
330
+ __updateNameV1(groupId, request, requestOptions) {
257
331
  return __awaiter(this, void 0, void 0, function* () {
258
332
  var _a, _b, _c, _d;
333
+ const { group_name: groupName } = request;
334
+ const _queryParams = {};
335
+ _queryParams["group_name"] = groupName;
259
336
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
260
337
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
261
- 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, `oort/shipper_contact_info/off_platform_contacts/list/v1/${encodeURIComponent(offChrtShipperOrgId)}`),
262
- method: "GET",
338
+ 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/groups/update_name/v1/${encodeURIComponent(groupId)}`),
339
+ method: "PATCH",
263
340
  headers: _headers,
264
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
341
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
265
342
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
266
343
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
267
344
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -289,7 +366,7 @@ export class ShipperContactInfo {
289
366
  rawResponse: _response.rawResponse,
290
367
  });
291
368
  case "timeout":
292
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/off_platform_contacts/list/v1/{off_chrt_shipper_org_id}.");
369
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /notifications/groups/update_name/v1/{group_id}.");
293
370
  case "unknown":
294
371
  throw new errors.ChrtError({
295
372
  message: _response.error.errorMessage,
@@ -299,26 +376,28 @@ export class ShipperContactInfo {
299
376
  });
300
377
  }
301
378
  /**
302
- * Retrieves a specific shipper contact by ID if authorized to access it. | () -> (ShipperContact1)
379
+ * Adds a notification event to a channel for a group. | authz: min_org_role=administrator | () -> (bool)
303
380
  *
304
- * @param {string} id
305
- * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
381
+ * @param {string} groupId
382
+ * @param {Chrt.NotificationChannelsEnum} channel
383
+ * @param {Chrt.NotificationEventsForOrgsEnum} event
384
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
306
385
  *
307
386
  * @throws {@link Chrt.UnprocessableEntityError}
308
387
  *
309
388
  * @example
310
- * await client.shipperContactInfo.getV1("id")
389
+ * await client.notifications.groups.addEventV1("group_id", "email", "shipping.order.staged")
311
390
  */
312
- getV1(id, requestOptions) {
313
- return core.HttpResponsePromise.fromPromise(this.__getV1(id, requestOptions));
391
+ addEventV1(groupId, channel, event, requestOptions) {
392
+ return core.HttpResponsePromise.fromPromise(this.__addEventV1(groupId, channel, event, requestOptions));
314
393
  }
315
- __getV1(id, requestOptions) {
394
+ __addEventV1(groupId, channel, event, requestOptions) {
316
395
  return __awaiter(this, void 0, void 0, function* () {
317
396
  var _a, _b, _c, _d;
318
397
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
319
398
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
320
- 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, `oort/shipper_contact_info/v1/${encodeURIComponent(id)}`),
321
- method: "GET",
399
+ 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/groups/add_event/v1/${encodeURIComponent(groupId)}/${encodeURIComponent(channel)}/${encodeURIComponent(event)}`),
400
+ method: "POST",
322
401
  headers: _headers,
323
402
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
324
403
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -348,7 +427,7 @@ export class ShipperContactInfo {
348
427
  rawResponse: _response.rawResponse,
349
428
  });
350
429
  case "timeout":
351
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/v1/{id}.");
430
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/add_event/v1/{group_id}/{channel}/{event}.");
352
431
  case "unknown":
353
432
  throw new errors.ChrtError({
354
433
  message: _response.error.errorMessage,
@@ -358,33 +437,30 @@ export class ShipperContactInfo {
358
437
  });
359
438
  }
360
439
  /**
361
- * Creates contact information for an on-platform shipper organization or user. | (ShipperContactClientCreate1) -> (PydanticObjectId)
440
+ * Removes a notification event from a channel for a group. | authz: min_org_role=administrator | () -> (bool)
362
441
  *
363
- * @param {Chrt.ShipperContactClientCreate1} request
364
- * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
442
+ * @param {string} groupId
443
+ * @param {Chrt.NotificationChannelsEnum} channel
444
+ * @param {Chrt.NotificationEventsForOrgsEnum} event
445
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
365
446
  *
366
447
  * @throws {@link Chrt.UnprocessableEntityError}
367
448
  *
368
449
  * @example
369
- * await client.shipperContactInfo.createOnPlatformV1({
370
- * schema_version: 1
371
- * })
450
+ * await client.notifications.groups.removeEventV1("group_id", "email", "shipping.order.staged")
372
451
  */
373
- createOnPlatformV1(request, requestOptions) {
374
- return core.HttpResponsePromise.fromPromise(this.__createOnPlatformV1(request, requestOptions));
452
+ removeEventV1(groupId, channel, event, requestOptions) {
453
+ return core.HttpResponsePromise.fromPromise(this.__removeEventV1(groupId, channel, event, requestOptions));
375
454
  }
376
- __createOnPlatformV1(request, requestOptions) {
455
+ __removeEventV1(groupId, channel, event, requestOptions) {
377
456
  return __awaiter(this, void 0, void 0, function* () {
378
457
  var _a, _b, _c, _d;
379
458
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
380
459
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
381
- 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, "oort/shipper_contact_info/create/on_platform/v1"),
382
- method: "POST",
460
+ 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/groups/remove_event/v1/${encodeURIComponent(groupId)}/${encodeURIComponent(channel)}/${encodeURIComponent(event)}`),
461
+ method: "DELETE",
383
462
  headers: _headers,
384
- contentType: "application/json",
385
463
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
386
- requestType: "json",
387
- body: request,
388
464
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
389
465
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
390
466
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -412,7 +488,7 @@ export class ShipperContactInfo {
412
488
  rawResponse: _response.rawResponse,
413
489
  });
414
490
  case "timeout":
415
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/on_platform/v1.");
491
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /notifications/groups/remove_event/v1/{group_id}/{channel}/{event}.");
416
492
  case "unknown":
417
493
  throw new errors.ChrtError({
418
494
  message: _response.error.errorMessage,
@@ -422,33 +498,29 @@ export class ShipperContactInfo {
422
498
  });
423
499
  }
424
500
  /**
425
- * Creates contact information for an off-platform shipper using connection info. | (ShipperContactClientCreate1) -> (PydanticObjectId)
501
+ * Adds a user to a notification group. | authz: min_org_role=administrator | () -> (bool)
426
502
  *
427
- * @param {Chrt.ShipperContactClientCreate1} request
428
- * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
503
+ * @param {string} groupId
504
+ * @param {string} userId
505
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
429
506
  *
430
507
  * @throws {@link Chrt.UnprocessableEntityError}
431
508
  *
432
509
  * @example
433
- * await client.shipperContactInfo.createOffPlatformV1({
434
- * schema_version: 1
435
- * })
510
+ * await client.notifications.groups.addUserV1("group_id", "user_id")
436
511
  */
437
- createOffPlatformV1(request, requestOptions) {
438
- return core.HttpResponsePromise.fromPromise(this.__createOffPlatformV1(request, requestOptions));
512
+ addUserV1(groupId, userId, requestOptions) {
513
+ return core.HttpResponsePromise.fromPromise(this.__addUserV1(groupId, userId, requestOptions));
439
514
  }
440
- __createOffPlatformV1(request, requestOptions) {
515
+ __addUserV1(groupId, userId, requestOptions) {
441
516
  return __awaiter(this, void 0, void 0, function* () {
442
517
  var _a, _b, _c, _d;
443
518
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
444
519
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
445
- 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, "oort/shipper_contact_info/create/off_platform/v1"),
520
+ 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/groups/add_user/v1/${encodeURIComponent(groupId)}/${encodeURIComponent(userId)}`),
446
521
  method: "POST",
447
522
  headers: _headers,
448
- contentType: "application/json",
449
523
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
450
- requestType: "json",
451
- body: request,
452
524
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
453
525
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
454
526
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -476,7 +548,7 @@ export class ShipperContactInfo {
476
548
  rawResponse: _response.rawResponse,
477
549
  });
478
550
  case "timeout":
479
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/off_platform/v1.");
551
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/add_user/v1/{group_id}/{user_id}.");
480
552
  case "unknown":
481
553
  throw new errors.ChrtError({
482
554
  message: _response.error.errorMessage,
@@ -486,32 +558,29 @@ export class ShipperContactInfo {
486
558
  });
487
559
  }
488
560
  /**
489
- * Updates existing shipper contact information owned by the caller's organization. | (ShipperContactClientUpdate1) -> (bool)
561
+ * Removes a user from a notification group. | authz: min_org_role=administrator | () -> (bool)
490
562
  *
491
- * @param {string} shipperContactInfoId
492
- * @param {Chrt.ShipperContactClientUpdate1} request
493
- * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
563
+ * @param {string} groupId
564
+ * @param {string} userId
565
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
494
566
  *
495
567
  * @throws {@link Chrt.UnprocessableEntityError}
496
568
  *
497
569
  * @example
498
- * await client.shipperContactInfo.updateV1("shipper_contact_info_id")
570
+ * await client.notifications.groups.removeUserV1("group_id", "user_id")
499
571
  */
500
- updateV1(shipperContactInfoId, request = {}, requestOptions) {
501
- return core.HttpResponsePromise.fromPromise(this.__updateV1(shipperContactInfoId, request, requestOptions));
572
+ removeUserV1(groupId, userId, requestOptions) {
573
+ return core.HttpResponsePromise.fromPromise(this.__removeUserV1(groupId, userId, requestOptions));
502
574
  }
503
- __updateV1(shipperContactInfoId_1) {
504
- return __awaiter(this, arguments, void 0, function* (shipperContactInfoId, request = {}, requestOptions) {
575
+ __removeUserV1(groupId, userId, requestOptions) {
576
+ return __awaiter(this, void 0, void 0, function* () {
505
577
  var _a, _b, _c, _d;
506
578
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
507
579
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
508
- 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, `oort/shipper_contact_info/update/v1/${encodeURIComponent(shipperContactInfoId)}`),
509
- method: "PATCH",
580
+ 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/groups/remove_user/v1/${encodeURIComponent(groupId)}/${encodeURIComponent(userId)}`),
581
+ method: "DELETE",
510
582
  headers: _headers,
511
- contentType: "application/json",
512
583
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
513
- requestType: "json",
514
- body: request,
515
584
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
516
585
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
517
586
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -539,7 +608,7 @@ export class ShipperContactInfo {
539
608
  rawResponse: _response.rawResponse,
540
609
  });
541
610
  case "timeout":
542
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/shipper_contact_info/update/v1/{shipper_contact_info_id}.");
611
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /notifications/groups/remove_user/v1/{group_id}/{user_id}.");
543
612
  case "unknown":
544
613
  throw new errors.ChrtError({
545
614
  message: _response.error.errorMessage,
@@ -549,25 +618,25 @@ export class ShipperContactInfo {
549
618
  });
550
619
  }
551
620
  /**
552
- * Deletes shipper contact information owned by the caller's organization. | () -> (bool)
621
+ * Deletes a notification group. | authz: min_org_role=administrator | () -> (bool)
553
622
  *
554
- * @param {string} id
555
- * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
623
+ * @param {string} groupId
624
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
556
625
  *
557
626
  * @throws {@link Chrt.UnprocessableEntityError}
558
627
  *
559
628
  * @example
560
- * await client.shipperContactInfo.deleteV1("id")
629
+ * await client.notifications.groups.deleteV1("group_id")
561
630
  */
562
- deleteV1(id, requestOptions) {
563
- return core.HttpResponsePromise.fromPromise(this.__deleteV1(id, requestOptions));
631
+ deleteV1(groupId, requestOptions) {
632
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(groupId, requestOptions));
564
633
  }
565
- __deleteV1(id, requestOptions) {
634
+ __deleteV1(groupId, requestOptions) {
566
635
  return __awaiter(this, void 0, void 0, function* () {
567
636
  var _a, _b, _c, _d;
568
637
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
569
638
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
570
- 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, `oort/shipper_contact_info/delete/v1/${encodeURIComponent(id)}`),
639
+ 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/groups/delete/v1/${encodeURIComponent(groupId)}`),
571
640
  method: "DELETE",
572
641
  headers: _headers,
573
642
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -598,7 +667,125 @@ export class ShipperContactInfo {
598
667
  rawResponse: _response.rawResponse,
599
668
  });
600
669
  case "timeout":
601
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_contact_info/delete/v1/{id}.");
670
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /notifications/groups/delete/v1/{group_id}.");
671
+ case "unknown":
672
+ throw new errors.ChrtError({
673
+ message: _response.error.errorMessage,
674
+ rawResponse: _response.rawResponse,
675
+ });
676
+ }
677
+ });
678
+ }
679
+ /**
680
+ * Opts the caller back into notifications for a group they were opted out of. | () -> (bool)
681
+ *
682
+ * @param {string} groupId
683
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
684
+ *
685
+ * @throws {@link Chrt.UnprocessableEntityError}
686
+ *
687
+ * @example
688
+ * await client.notifications.groups.userOptInV1("group_id")
689
+ */
690
+ userOptInV1(groupId, requestOptions) {
691
+ return core.HttpResponsePromise.fromPromise(this.__userOptInV1(groupId, requestOptions));
692
+ }
693
+ __userOptInV1(groupId, requestOptions) {
694
+ return __awaiter(this, void 0, void 0, function* () {
695
+ var _a, _b, _c, _d;
696
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
697
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
698
+ 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/groups/user_opt_in/v1/${encodeURIComponent(groupId)}`),
699
+ method: "POST",
700
+ headers: _headers,
701
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
702
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
703
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
704
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
705
+ });
706
+ if (_response.ok) {
707
+ return { data: _response.body, rawResponse: _response.rawResponse };
708
+ }
709
+ if (_response.error.reason === "status-code") {
710
+ switch (_response.error.statusCode) {
711
+ case 422:
712
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
713
+ default:
714
+ throw new errors.ChrtError({
715
+ statusCode: _response.error.statusCode,
716
+ body: _response.error.body,
717
+ rawResponse: _response.rawResponse,
718
+ });
719
+ }
720
+ }
721
+ switch (_response.error.reason) {
722
+ case "non-json":
723
+ throw new errors.ChrtError({
724
+ statusCode: _response.error.statusCode,
725
+ body: _response.error.rawBody,
726
+ rawResponse: _response.rawResponse,
727
+ });
728
+ case "timeout":
729
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/user_opt_in/v1/{group_id}.");
730
+ case "unknown":
731
+ throw new errors.ChrtError({
732
+ message: _response.error.errorMessage,
733
+ rawResponse: _response.rawResponse,
734
+ });
735
+ }
736
+ });
737
+ }
738
+ /**
739
+ * Opts the caller out of notifications for a group. | () -> (bool)
740
+ *
741
+ * @param {string} groupId
742
+ * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
743
+ *
744
+ * @throws {@link Chrt.UnprocessableEntityError}
745
+ *
746
+ * @example
747
+ * await client.notifications.groups.userOptOutV1("group_id")
748
+ */
749
+ userOptOutV1(groupId, requestOptions) {
750
+ return core.HttpResponsePromise.fromPromise(this.__userOptOutV1(groupId, requestOptions));
751
+ }
752
+ __userOptOutV1(groupId, requestOptions) {
753
+ return __awaiter(this, void 0, void 0, function* () {
754
+ var _a, _b, _c, _d;
755
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
756
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
757
+ 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/groups/user_opt_out/v1/${encodeURIComponent(groupId)}`),
758
+ method: "POST",
759
+ headers: _headers,
760
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
761
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
762
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
763
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
764
+ });
765
+ if (_response.ok) {
766
+ return { data: _response.body, rawResponse: _response.rawResponse };
767
+ }
768
+ if (_response.error.reason === "status-code") {
769
+ switch (_response.error.statusCode) {
770
+ case 422:
771
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
772
+ default:
773
+ throw new errors.ChrtError({
774
+ statusCode: _response.error.statusCode,
775
+ body: _response.error.body,
776
+ rawResponse: _response.rawResponse,
777
+ });
778
+ }
779
+ }
780
+ switch (_response.error.reason) {
781
+ case "non-json":
782
+ throw new errors.ChrtError({
783
+ statusCode: _response.error.statusCode,
784
+ body: _response.error.rawBody,
785
+ rawResponse: _response.rawResponse,
786
+ });
787
+ case "timeout":
788
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/user_opt_out/v1/{group_id}.");
602
789
  case "unknown":
603
790
  throw new errors.ChrtError({
604
791
  message: _response.error.errorMessage,