@novu/api 0.0.1-alpha.192 → 0.0.1-alpha.195

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 (407) hide show
  1. package/funcs/adminIdempotencyGet.js +1 -1
  2. package/funcs/adminIdempotencyPost.js +1 -1
  3. package/funcs/cancel.js +1 -1
  4. package/funcs/integrationsCreate.js +1 -1
  5. package/funcs/integrationsDelete.js +1 -1
  6. package/funcs/integrationsList.js +1 -1
  7. package/funcs/integrationsListActive.js +1 -1
  8. package/funcs/integrationsSetAsPrimary.js +1 -1
  9. package/funcs/integrationsUpdate.js +1 -1
  10. package/funcs/integrationsWebhooksRetrieve.js +1 -1
  11. package/funcs/messagesDelete.js +1 -1
  12. package/funcs/messagesDeleteByTransactionId.js +1 -1
  13. package/funcs/messagesRetrieve.js +1 -1
  14. package/funcs/notificationsList.js +1 -1
  15. package/funcs/notificationsRetrieve.js +1 -1
  16. package/funcs/notificationsStatsGraph.js +1 -1
  17. package/funcs/notificationsStatsRetrieve.js +1 -1
  18. package/funcs/subscribersAuthenticationChatAccessOauth.js +1 -1
  19. package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +1 -1
  20. package/funcs/subscribersCreate.js +1 -1
  21. package/funcs/subscribersCreateBulk.js +1 -1
  22. package/funcs/subscribersCredentialsAppend.js +1 -1
  23. package/funcs/subscribersCredentialsDelete.js +1 -1
  24. package/funcs/subscribersCredentialsUpdate.js +1 -1
  25. package/funcs/subscribersDelete.js +1 -1
  26. package/funcs/subscribersList.js +1 -1
  27. package/funcs/subscribersMessagesMarkAll.js +1 -1
  28. package/funcs/subscribersMessagesMarkAllAs.js +1 -1
  29. package/funcs/subscribersMessagesUpdateAsSeen.js +1 -1
  30. package/funcs/subscribersNotificationsFeed.js +1 -1
  31. package/funcs/subscribersNotificationsUnseenCount.js +1 -1
  32. package/funcs/subscribersPreferencesList.js +1 -1
  33. package/funcs/subscribersPreferencesRetrieveByLevel.js +1 -1
  34. package/funcs/subscribersPreferencesUpdate.js +1 -1
  35. package/funcs/subscribersPreferencesUpdateGlobal.js +1 -1
  36. package/funcs/subscribersPropertiesUpdateOnlineFlag.js +1 -1
  37. package/funcs/subscribersRetrieve.js +1 -1
  38. package/funcs/subscribersUpdate.js +1 -1
  39. package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js +1 -1
  40. package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js +1 -1
  41. package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js +1 -1
  42. package/funcs/topicsCreate.js +1 -1
  43. package/funcs/topicsDelete.js +1 -1
  44. package/funcs/topicsList.js +1 -1
  45. package/funcs/topicsRename.js +1 -1
  46. package/funcs/topicsRetrieve.js +1 -1
  47. package/funcs/topicsSubscribersAssign.js +1 -1
  48. package/funcs/topicsSubscribersRemove.js +1 -1
  49. package/funcs/topicsSubscribersRetrieve.js +1 -1
  50. package/funcs/trigger.js +1 -1
  51. package/funcs/triggerBroadcast.js +1 -1
  52. package/funcs/triggerBulk.js +1 -1
  53. package/hooks/novu-custom-hook.js +2 -2
  54. package/hooks/novu-custom-hook.js.map +1 -1
  55. package/lib/config.d.ts +3 -3
  56. package/lib/config.js +3 -3
  57. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +4 -83
  58. package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
  59. package/models/components/activitynotificationexecutiondetailresponsedto.js +7 -56
  60. package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
  61. package/models/components/activitynotificationjobresponsedto.d.ts +3 -3
  62. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
  63. package/models/components/activitynotificationjobresponsedto.js +3 -3
  64. package/models/components/activitynotificationjobresponsedto.js.map +1 -1
  65. package/models/components/activitynotificationresponsedto.d.ts +112 -0
  66. package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
  67. package/models/components/activitynotificationresponsedto.js +94 -1
  68. package/models/components/activitynotificationresponsedto.js.map +1 -1
  69. package/models/components/activitynotificationstepresponsedto.d.ts +139 -3
  70. package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
  71. package/models/components/activitynotificationstepresponsedto.js +117 -4
  72. package/models/components/activitynotificationstepresponsedto.js.map +1 -1
  73. package/models/components/activitynotificationtemplateresponsedto.d.ts +3 -3
  74. package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
  75. package/models/components/activitynotificationtemplateresponsedto.js +3 -3
  76. package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
  77. package/models/components/{builderfieldtype.d.ts → builderfieldtypeenum.d.ts} +8 -8
  78. package/models/components/builderfieldtypeenum.d.ts.map +1 -0
  79. package/models/components/{builderfieldtype.js → builderfieldtypeenum.js} +12 -12
  80. package/models/components/builderfieldtypeenum.js.map +1 -0
  81. package/models/components/{digestwitheventsdto.d.ts → digestmetadatadto.d.ts} +47 -14
  82. package/models/components/digestmetadatadto.d.ts.map +1 -0
  83. package/models/components/{digestwitheventsdto.js → digestmetadatadto.js} +32 -17
  84. package/models/components/digestmetadatadto.js.map +1 -0
  85. package/models/components/digesttimedconfigdto.d.ts +106 -0
  86. package/models/components/digesttimedconfigdto.d.ts.map +1 -0
  87. package/models/components/digesttimedconfigdto.js +99 -0
  88. package/models/components/digesttimedconfigdto.js.map +1 -0
  89. package/models/components/digesttypeenum.d.ts +37 -0
  90. package/models/components/digesttypeenum.d.ts.map +1 -0
  91. package/models/components/digesttypeenum.js +54 -0
  92. package/models/components/digesttypeenum.js.map +1 -0
  93. package/models/components/digestunitenum.d.ts +46 -0
  94. package/models/components/digestunitenum.d.ts.map +1 -0
  95. package/models/components/digestunitenum.js +57 -0
  96. package/models/components/digestunitenum.js.map +1 -0
  97. package/models/components/executiondetailssourceenum.d.ts +40 -0
  98. package/models/components/executiondetailssourceenum.d.ts.map +1 -0
  99. package/models/components/executiondetailssourceenum.js +55 -0
  100. package/models/components/executiondetailssourceenum.js.map +1 -0
  101. package/models/components/executiondetailsstatusenum.d.ts +46 -0
  102. package/models/components/executiondetailsstatusenum.d.ts.map +1 -0
  103. package/models/components/executiondetailsstatusenum.js +57 -0
  104. package/models/components/executiondetailsstatusenum.js.map +1 -0
  105. package/models/components/index.d.ts +14 -5
  106. package/models/components/index.d.ts.map +1 -1
  107. package/models/components/index.js +14 -5
  108. package/models/components/index.js.map +1 -1
  109. package/models/components/monthlytypeenum.d.ts +34 -0
  110. package/models/components/monthlytypeenum.d.ts.map +1 -0
  111. package/models/components/monthlytypeenum.js +53 -0
  112. package/models/components/monthlytypeenum.js.map +1 -0
  113. package/models/components/notificationstepdata.d.ts +113 -0
  114. package/models/components/notificationstepdata.d.ts.map +1 -0
  115. package/models/components/notificationstepdata.js +142 -0
  116. package/models/components/notificationstepdata.js.map +1 -0
  117. package/models/components/notificationstepdto.d.ts +116 -0
  118. package/models/components/notificationstepdto.d.ts.map +1 -0
  119. package/models/components/notificationstepdto.js +145 -0
  120. package/models/components/notificationstepdto.js.map +1 -0
  121. package/models/components/notificationtrigger.d.ts +8 -26
  122. package/models/components/notificationtrigger.d.ts.map +1 -1
  123. package/models/components/notificationtrigger.js +13 -16
  124. package/models/components/notificationtrigger.js.map +1 -1
  125. package/models/components/notificationtriggerdto.d.ts +77 -0
  126. package/models/components/notificationtriggerdto.d.ts.map +1 -0
  127. package/models/components/notificationtriggerdto.js +89 -0
  128. package/models/components/notificationtriggerdto.js.map +1 -0
  129. package/models/components/ordinalenum.d.ts +46 -0
  130. package/models/components/ordinalenum.d.ts.map +1 -0
  131. package/models/components/{stepfilter.js → ordinalenum.js} +23 -20
  132. package/models/components/ordinalenum.js.map +1 -0
  133. package/models/components/ordinalvalueenum.d.ts +58 -0
  134. package/models/components/ordinalvalueenum.d.ts.map +1 -0
  135. package/models/components/ordinalvalueenum.js +61 -0
  136. package/models/components/ordinalvalueenum.js.map +1 -0
  137. package/models/components/replycallback.d.ts +37 -0
  138. package/models/components/replycallback.d.ts.map +1 -0
  139. package/models/components/replycallback.js +61 -0
  140. package/models/components/replycallback.js.map +1 -0
  141. package/models/components/stepfilterdto.d.ts +2 -2
  142. package/models/components/stepfilterdto.d.ts.map +1 -1
  143. package/models/components/stepfilterdto.js +3 -3
  144. package/models/components/stepfilterdto.js.map +1 -1
  145. package/models/components/timedconfig.d.ts +8 -8
  146. package/models/components/timedconfig.d.ts.map +1 -1
  147. package/models/components/timedconfig.js +13 -14
  148. package/models/components/timedconfig.js.map +1 -1
  149. package/models/components/workflowresponse.d.ts +3 -3
  150. package/models/components/workflowresponse.d.ts.map +1 -1
  151. package/models/components/workflowresponse.js +3 -3
  152. package/models/components/workflowresponse.js.map +1 -1
  153. package/models/operations/eventscontrollerbroadcasteventtoall.d.ts +1 -1
  154. package/models/operations/eventscontrollerbroadcasteventtoall.js +3 -3
  155. package/models/operations/eventscontrollercancel.d.ts +1 -1
  156. package/models/operations/eventscontrollercancel.js +3 -3
  157. package/models/operations/eventscontrollertrigger.d.ts +1 -1
  158. package/models/operations/eventscontrollertrigger.js +3 -3
  159. package/models/operations/eventscontrollertriggerbulk.d.ts +1 -1
  160. package/models/operations/eventscontrollertriggerbulk.js +3 -3
  161. package/models/operations/integrationscontrollercreateintegration.d.ts +1 -1
  162. package/models/operations/integrationscontrollercreateintegration.js +3 -3
  163. package/models/operations/integrationscontrollergetactiveintegrations.d.ts +1 -1
  164. package/models/operations/integrationscontrollergetactiveintegrations.js +3 -3
  165. package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts +1 -1
  166. package/models/operations/integrationscontrollergetwebhooksupportstatus.js +3 -3
  167. package/models/operations/integrationscontrollerlistintegrations.d.ts +1 -1
  168. package/models/operations/integrationscontrollerlistintegrations.js +3 -3
  169. package/models/operations/integrationscontrollerremoveintegration.d.ts +1 -1
  170. package/models/operations/integrationscontrollerremoveintegration.js +3 -3
  171. package/models/operations/integrationscontrollersetintegrationasprimary.d.ts +1 -1
  172. package/models/operations/integrationscontrollersetintegrationasprimary.js +3 -3
  173. package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts +1 -1
  174. package/models/operations/integrationscontrollerupdateintegrationbyid.js +3 -3
  175. package/models/operations/messagescontrollerdeletemessage.d.ts +1 -1
  176. package/models/operations/messagescontrollerdeletemessage.js +3 -3
  177. package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +1 -1
  178. package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +3 -3
  179. package/models/operations/messagescontrollergetmessages.d.ts +1 -1
  180. package/models/operations/messagescontrollergetmessages.js +3 -3
  181. package/models/operations/notificationscontrollergetactivitygraphstats.d.ts +1 -1
  182. package/models/operations/notificationscontrollergetactivitygraphstats.js +3 -3
  183. package/models/operations/notificationscontrollergetactivitystats.d.ts +1 -1
  184. package/models/operations/notificationscontrollergetactivitystats.js +3 -3
  185. package/models/operations/notificationscontrollergetnotification.d.ts +1 -1
  186. package/models/operations/notificationscontrollergetnotification.js +3 -3
  187. package/models/operations/notificationscontrollerlistnotifications.d.ts +1 -1
  188. package/models/operations/notificationscontrollerlistnotifications.js +3 -3
  189. package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +1 -1
  190. package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +3 -3
  191. package/models/operations/subscriberscontrollerchataccessoauth.d.ts +1 -1
  192. package/models/operations/subscriberscontrollerchataccessoauth.js +3 -3
  193. package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +1 -1
  194. package/models/operations/subscriberscontrollerchatoauthcallback.js +3 -3
  195. package/models/operations/subscriberscontrollercreatesubscriber.d.ts +1 -1
  196. package/models/operations/subscriberscontrollercreatesubscriber.js +3 -3
  197. package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +1 -1
  198. package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +3 -3
  199. package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +1 -1
  200. package/models/operations/subscriberscontrollergetnotificationsfeed.js +3 -3
  201. package/models/operations/subscriberscontrollergetsubscriber.d.ts +1 -1
  202. package/models/operations/subscriberscontrollergetsubscriber.js +3 -3
  203. package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +1 -1
  204. package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +3 -3
  205. package/models/operations/subscriberscontrollergetunseencount.d.ts +1 -1
  206. package/models/operations/subscriberscontrollergetunseencount.js +3 -3
  207. package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +1 -1
  208. package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +3 -3
  209. package/models/operations/subscriberscontrollerlistsubscribers.d.ts +1 -1
  210. package/models/operations/subscriberscontrollerlistsubscribers.js +3 -3
  211. package/models/operations/subscriberscontrollermarkactionasseen.d.ts +1 -1
  212. package/models/operations/subscriberscontrollermarkactionasseen.js +3 -3
  213. package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +1 -1
  214. package/models/operations/subscriberscontrollermarkallunreadasread.js +3 -3
  215. package/models/operations/subscriberscontrollermarkmessagesas.d.ts +1 -1
  216. package/models/operations/subscriberscontrollermarkmessagesas.js +3 -3
  217. package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +1 -1
  218. package/models/operations/subscriberscontrollermodifysubscriberchannel.js +3 -3
  219. package/models/operations/subscriberscontrollerremovesubscriber.d.ts +1 -1
  220. package/models/operations/subscriberscontrollerremovesubscriber.js +3 -3
  221. package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +1 -1
  222. package/models/operations/subscriberscontrollerupdatesubscriber.js +3 -3
  223. package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +1 -1
  224. package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +3 -3
  225. package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +1 -1
  226. package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +3 -3
  227. package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +1 -1
  228. package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +3 -3
  229. package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +1 -1
  230. package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +3 -3
  231. package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.d.ts +1 -1
  232. package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.js +3 -3
  233. package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.d.ts +1 -1
  234. package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.js +3 -3
  235. package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.d.ts +1 -1
  236. package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.js +3 -3
  237. package/models/operations/testingcontrolleridempotency.d.ts +1 -1
  238. package/models/operations/testingcontrolleridempotency.js +3 -3
  239. package/models/operations/testingcontrolleridempotencyget.d.ts +1 -1
  240. package/models/operations/testingcontrolleridempotencyget.js +3 -3
  241. package/models/operations/topicscontrollerassign.d.ts +1 -1
  242. package/models/operations/topicscontrollerassign.js +3 -3
  243. package/models/operations/topicscontrollercreatetopic.d.ts +1 -1
  244. package/models/operations/topicscontrollercreatetopic.js +3 -3
  245. package/models/operations/topicscontrollerdeletetopic.d.ts +1 -1
  246. package/models/operations/topicscontrollerdeletetopic.js +3 -3
  247. package/models/operations/topicscontrollergettopic.d.ts +1 -1
  248. package/models/operations/topicscontrollergettopic.js +3 -3
  249. package/models/operations/topicscontrollergettopicsubscriber.d.ts +1 -1
  250. package/models/operations/topicscontrollergettopicsubscriber.js +3 -3
  251. package/models/operations/topicscontrollerlisttopics.d.ts +1 -1
  252. package/models/operations/topicscontrollerlisttopics.js +3 -3
  253. package/models/operations/topicscontrollerremovesubscribers.d.ts +1 -1
  254. package/models/operations/topicscontrollerremovesubscribers.js +3 -3
  255. package/models/operations/topicscontrollerrenametopic.d.ts +1 -1
  256. package/models/operations/topicscontrollerrenametopic.js +3 -3
  257. package/package.json +1 -1
  258. package/src/funcs/adminIdempotencyGet.ts +3 -3
  259. package/src/funcs/adminIdempotencyPost.ts +3 -3
  260. package/src/funcs/cancel.ts +3 -3
  261. package/src/funcs/integrationsCreate.ts +3 -3
  262. package/src/funcs/integrationsDelete.ts +3 -3
  263. package/src/funcs/integrationsList.ts +3 -3
  264. package/src/funcs/integrationsListActive.ts +3 -3
  265. package/src/funcs/integrationsSetAsPrimary.ts +3 -3
  266. package/src/funcs/integrationsUpdate.ts +3 -3
  267. package/src/funcs/integrationsWebhooksRetrieve.ts +3 -3
  268. package/src/funcs/messagesDelete.ts +3 -3
  269. package/src/funcs/messagesDeleteByTransactionId.ts +3 -3
  270. package/src/funcs/messagesRetrieve.ts +3 -3
  271. package/src/funcs/notificationsList.ts +3 -3
  272. package/src/funcs/notificationsRetrieve.ts +3 -3
  273. package/src/funcs/notificationsStatsGraph.ts +3 -3
  274. package/src/funcs/notificationsStatsRetrieve.ts +3 -3
  275. package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +3 -3
  276. package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +3 -3
  277. package/src/funcs/subscribersCreate.ts +3 -3
  278. package/src/funcs/subscribersCreateBulk.ts +3 -3
  279. package/src/funcs/subscribersCredentialsAppend.ts +3 -3
  280. package/src/funcs/subscribersCredentialsDelete.ts +3 -3
  281. package/src/funcs/subscribersCredentialsUpdate.ts +3 -3
  282. package/src/funcs/subscribersDelete.ts +3 -3
  283. package/src/funcs/subscribersList.ts +3 -3
  284. package/src/funcs/subscribersMessagesMarkAll.ts +3 -3
  285. package/src/funcs/subscribersMessagesMarkAllAs.ts +3 -3
  286. package/src/funcs/subscribersMessagesUpdateAsSeen.ts +3 -3
  287. package/src/funcs/subscribersNotificationsFeed.ts +3 -3
  288. package/src/funcs/subscribersNotificationsUnseenCount.ts +3 -3
  289. package/src/funcs/subscribersPreferencesList.ts +3 -3
  290. package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +3 -3
  291. package/src/funcs/subscribersPreferencesUpdate.ts +3 -3
  292. package/src/funcs/subscribersPreferencesUpdateGlobal.ts +3 -3
  293. package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +3 -3
  294. package/src/funcs/subscribersRetrieve.ts +3 -3
  295. package/src/funcs/subscribersUpdate.ts +3 -3
  296. package/src/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.ts +3 -3
  297. package/src/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.ts +3 -3
  298. package/src/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.ts +3 -3
  299. package/src/funcs/topicsCreate.ts +3 -3
  300. package/src/funcs/topicsDelete.ts +3 -3
  301. package/src/funcs/topicsList.ts +3 -3
  302. package/src/funcs/topicsRename.ts +3 -3
  303. package/src/funcs/topicsRetrieve.ts +3 -3
  304. package/src/funcs/topicsSubscribersAssign.ts +3 -3
  305. package/src/funcs/topicsSubscribersRemove.ts +3 -3
  306. package/src/funcs/topicsSubscribersRetrieve.ts +3 -3
  307. package/src/funcs/trigger.ts +3 -3
  308. package/src/funcs/triggerBroadcast.ts +3 -3
  309. package/src/funcs/triggerBulk.ts +3 -3
  310. package/src/hooks/novu-custom-hook.ts +2 -2
  311. package/src/lib/config.ts +3 -3
  312. package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +16 -81
  313. package/src/models/components/activitynotificationjobresponsedto.ts +9 -9
  314. package/src/models/components/activitynotificationresponsedto.ts +228 -0
  315. package/src/models/components/activitynotificationstepresponsedto.ts +294 -9
  316. package/src/models/components/activitynotificationtemplateresponsedto.ts +9 -9
  317. package/src/models/components/builderfieldtypeenum.ts +39 -0
  318. package/src/models/components/digestmetadatadto.ts +185 -0
  319. package/src/models/components/digesttimedconfigdto.ts +157 -0
  320. package/src/models/components/digesttypeenum.ts +40 -0
  321. package/src/models/components/digestunitenum.ts +43 -0
  322. package/src/models/components/executiondetailssourceenum.ts +43 -0
  323. package/src/models/components/executiondetailsstatusenum.ts +45 -0
  324. package/src/models/components/index.ts +14 -5
  325. package/src/models/components/monthlytypeenum.ts +39 -0
  326. package/src/models/components/notificationstepdata.ts +287 -0
  327. package/src/models/components/notificationstepdto.ts +297 -0
  328. package/src/models/components/notificationtrigger.ts +18 -33
  329. package/src/models/components/notificationtriggerdto.ts +130 -0
  330. package/src/models/components/ordinalenum.ts +41 -0
  331. package/src/models/components/ordinalvalueenum.ts +47 -0
  332. package/src/models/components/replycallback.ts +72 -0
  333. package/src/models/components/stepfilterdto.ts +7 -7
  334. package/src/models/components/timedconfig.ts +16 -14
  335. package/src/models/components/workflowresponse.ts +9 -9
  336. package/src/models/operations/eventscontrollerbroadcasteventtoall.ts +4 -4
  337. package/src/models/operations/eventscontrollercancel.ts +4 -4
  338. package/src/models/operations/eventscontrollertrigger.ts +4 -4
  339. package/src/models/operations/eventscontrollertriggerbulk.ts +4 -4
  340. package/src/models/operations/integrationscontrollercreateintegration.ts +4 -4
  341. package/src/models/operations/integrationscontrollergetactiveintegrations.ts +4 -4
  342. package/src/models/operations/integrationscontrollergetwebhooksupportstatus.ts +4 -4
  343. package/src/models/operations/integrationscontrollerlistintegrations.ts +4 -4
  344. package/src/models/operations/integrationscontrollerremoveintegration.ts +4 -4
  345. package/src/models/operations/integrationscontrollersetintegrationasprimary.ts +4 -4
  346. package/src/models/operations/integrationscontrollerupdateintegrationbyid.ts +4 -4
  347. package/src/models/operations/messagescontrollerdeletemessage.ts +4 -4
  348. package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +4 -4
  349. package/src/models/operations/messagescontrollergetmessages.ts +4 -4
  350. package/src/models/operations/notificationscontrollergetactivitygraphstats.ts +4 -4
  351. package/src/models/operations/notificationscontrollergetactivitystats.ts +4 -4
  352. package/src/models/operations/notificationscontrollergetnotification.ts +4 -4
  353. package/src/models/operations/notificationscontrollerlistnotifications.ts +4 -4
  354. package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +4 -4
  355. package/src/models/operations/subscriberscontrollerchataccessoauth.ts +4 -4
  356. package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +4 -4
  357. package/src/models/operations/subscriberscontrollercreatesubscriber.ts +4 -4
  358. package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +4 -4
  359. package/src/models/operations/subscriberscontrollergetnotificationsfeed.ts +4 -4
  360. package/src/models/operations/subscriberscontrollergetsubscriber.ts +4 -4
  361. package/src/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.ts +4 -4
  362. package/src/models/operations/subscriberscontrollergetunseencount.ts +4 -4
  363. package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +4 -4
  364. package/src/models/operations/subscriberscontrollerlistsubscribers.ts +4 -4
  365. package/src/models/operations/subscriberscontrollermarkactionasseen.ts +4 -4
  366. package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -4
  367. package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -4
  368. package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +4 -4
  369. package/src/models/operations/subscriberscontrollerremovesubscriber.ts +4 -4
  370. package/src/models/operations/subscriberscontrollerupdatesubscriber.ts +4 -4
  371. package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +4 -4
  372. package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +4 -4
  373. package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +4 -4
  374. package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +4 -4
  375. package/src/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.ts +4 -4
  376. package/src/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.ts +4 -4
  377. package/src/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.ts +4 -4
  378. package/src/models/operations/testingcontrolleridempotency.ts +4 -4
  379. package/src/models/operations/testingcontrolleridempotencyget.ts +4 -4
  380. package/src/models/operations/topicscontrollerassign.ts +4 -4
  381. package/src/models/operations/topicscontrollercreatetopic.ts +4 -4
  382. package/src/models/operations/topicscontrollerdeletetopic.ts +4 -4
  383. package/src/models/operations/topicscontrollergettopic.ts +4 -4
  384. package/src/models/operations/topicscontrollergettopicsubscriber.ts +4 -4
  385. package/src/models/operations/topicscontrollerlisttopics.ts +4 -4
  386. package/src/models/operations/topicscontrollerremovesubscribers.ts +4 -4
  387. package/src/models/operations/topicscontrollerrenametopic.ts +4 -4
  388. package/models/components/builderfieldtype.d.ts.map +0 -1
  389. package/models/components/builderfieldtype.js.map +0 -1
  390. package/models/components/digestwitheventsdto.d.ts.map +0 -1
  391. package/models/components/digestwitheventsdto.js.map +0 -1
  392. package/models/components/notificationstep.d.ts +0 -121
  393. package/models/components/notificationstep.d.ts.map +0 -1
  394. package/models/components/notificationstep.js +0 -190
  395. package/models/components/notificationstep.js.map +0 -1
  396. package/models/components/notificationstepvariant.d.ts +0 -118
  397. package/models/components/notificationstepvariant.d.ts.map +0 -1
  398. package/models/components/notificationstepvariant.js +0 -189
  399. package/models/components/notificationstepvariant.js.map +0 -1
  400. package/models/components/stepfilter.d.ts +0 -25
  401. package/models/components/stepfilter.d.ts.map +0 -1
  402. package/models/components/stepfilter.js.map +0 -1
  403. package/src/models/components/builderfieldtype.ts +0 -39
  404. package/src/models/components/digestwitheventsdto.ts +0 -127
  405. package/src/models/components/notificationstep.ts +0 -341
  406. package/src/models/components/notificationstepvariant.ts +0 -358
  407. package/src/models/components/stepfilter.ts +0 -54
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.notificationStepDataFromJSON = exports.notificationStepDataToJSON = exports.NotificationStepData$ = exports.NotificationStepData$outboundSchema = exports.NotificationStepData$inboundSchema = exports.notificationStepDataMetadataFromJSON = exports.notificationStepDataMetadataToJSON = exports.NotificationStepDataMetadata$ = exports.NotificationStepDataMetadata$outboundSchema = exports.NotificationStepDataMetadata$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ const schemas_js_1 = require("../../lib/schemas.js");
33
+ const delayregularmetadata_js_1 = require("./delayregularmetadata.js");
34
+ const delayscheduledmetadata_js_1 = require("./delayscheduledmetadata.js");
35
+ const digestregularmetadata_js_1 = require("./digestregularmetadata.js");
36
+ const digesttimedmetadata_js_1 = require("./digesttimedmetadata.js");
37
+ const messagetemplate_js_1 = require("./messagetemplate.js");
38
+ const replycallback_js_1 = require("./replycallback.js");
39
+ const stepfilterdto_js_1 = require("./stepfilterdto.js");
40
+ /** @internal */
41
+ exports.NotificationStepDataMetadata$inboundSchema = z.union([
42
+ delayscheduledmetadata_js_1.DelayScheduledMetadata$inboundSchema,
43
+ delayregularmetadata_js_1.DelayRegularMetadata$inboundSchema,
44
+ digesttimedmetadata_js_1.DigestTimedMetadata$inboundSchema,
45
+ digestregularmetadata_js_1.DigestRegularMetadata$inboundSchema,
46
+ ]);
47
+ /** @internal */
48
+ exports.NotificationStepDataMetadata$outboundSchema = z.union([
49
+ delayscheduledmetadata_js_1.DelayScheduledMetadata$outboundSchema,
50
+ delayregularmetadata_js_1.DelayRegularMetadata$outboundSchema,
51
+ digesttimedmetadata_js_1.DigestTimedMetadata$outboundSchema,
52
+ digestregularmetadata_js_1.DigestRegularMetadata$outboundSchema,
53
+ ]);
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ var NotificationStepDataMetadata$;
59
+ (function (NotificationStepDataMetadata$) {
60
+ /** @deprecated use `NotificationStepDataMetadata$inboundSchema` instead. */
61
+ NotificationStepDataMetadata$.inboundSchema = exports.NotificationStepDataMetadata$inboundSchema;
62
+ /** @deprecated use `NotificationStepDataMetadata$outboundSchema` instead. */
63
+ NotificationStepDataMetadata$.outboundSchema = exports.NotificationStepDataMetadata$outboundSchema;
64
+ })(NotificationStepDataMetadata$ || (exports.NotificationStepDataMetadata$ = NotificationStepDataMetadata$ = {}));
65
+ function notificationStepDataMetadataToJSON(notificationStepDataMetadata) {
66
+ return JSON.stringify(exports.NotificationStepDataMetadata$outboundSchema.parse(notificationStepDataMetadata));
67
+ }
68
+ exports.notificationStepDataMetadataToJSON = notificationStepDataMetadataToJSON;
69
+ function notificationStepDataMetadataFromJSON(jsonString) {
70
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationStepDataMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationStepDataMetadata' from JSON`);
71
+ }
72
+ exports.notificationStepDataMetadataFromJSON = notificationStepDataMetadataFromJSON;
73
+ /** @internal */
74
+ exports.NotificationStepData$inboundSchema = z.object({
75
+ _id: z.string().optional(),
76
+ uuid: z.string().optional(),
77
+ name: z.string().optional(),
78
+ _templateId: z.string().optional(),
79
+ active: z.boolean().optional(),
80
+ shouldStopOnFail: z.boolean().optional(),
81
+ template: messagetemplate_js_1.MessageTemplate$inboundSchema.optional(),
82
+ filters: z.array(stepfilterdto_js_1.StepFilterDto$inboundSchema).optional(),
83
+ _parentId: z.string().optional(),
84
+ metadata: z.union([
85
+ delayscheduledmetadata_js_1.DelayScheduledMetadata$inboundSchema,
86
+ delayregularmetadata_js_1.DelayRegularMetadata$inboundSchema,
87
+ digesttimedmetadata_js_1.DigestTimedMetadata$inboundSchema,
88
+ digestregularmetadata_js_1.DigestRegularMetadata$inboundSchema,
89
+ ]).optional(),
90
+ replyCallback: replycallback_js_1.ReplyCallback$inboundSchema.optional(),
91
+ }).transform((v) => {
92
+ return (0, primitives_js_1.remap)(v, {
93
+ "_id": "id",
94
+ "_templateId": "templateId",
95
+ "_parentId": "parentId",
96
+ });
97
+ });
98
+ /** @internal */
99
+ exports.NotificationStepData$outboundSchema = z.object({
100
+ id: z.string().optional(),
101
+ uuid: z.string().optional(),
102
+ name: z.string().optional(),
103
+ templateId: z.string().optional(),
104
+ active: z.boolean().optional(),
105
+ shouldStopOnFail: z.boolean().optional(),
106
+ template: messagetemplate_js_1.MessageTemplate$outboundSchema.optional(),
107
+ filters: z.array(stepfilterdto_js_1.StepFilterDto$outboundSchema).optional(),
108
+ parentId: z.string().optional(),
109
+ metadata: z.union([
110
+ delayscheduledmetadata_js_1.DelayScheduledMetadata$outboundSchema,
111
+ delayregularmetadata_js_1.DelayRegularMetadata$outboundSchema,
112
+ digesttimedmetadata_js_1.DigestTimedMetadata$outboundSchema,
113
+ digestregularmetadata_js_1.DigestRegularMetadata$outboundSchema,
114
+ ]).optional(),
115
+ replyCallback: replycallback_js_1.ReplyCallback$outboundSchema.optional(),
116
+ }).transform((v) => {
117
+ return (0, primitives_js_1.remap)(v, {
118
+ id: "_id",
119
+ templateId: "_templateId",
120
+ parentId: "_parentId",
121
+ });
122
+ });
123
+ /**
124
+ * @internal
125
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
126
+ */
127
+ var NotificationStepData$;
128
+ (function (NotificationStepData$) {
129
+ /** @deprecated use `NotificationStepData$inboundSchema` instead. */
130
+ NotificationStepData$.inboundSchema = exports.NotificationStepData$inboundSchema;
131
+ /** @deprecated use `NotificationStepData$outboundSchema` instead. */
132
+ NotificationStepData$.outboundSchema = exports.NotificationStepData$outboundSchema;
133
+ })(NotificationStepData$ || (exports.NotificationStepData$ = NotificationStepData$ = {}));
134
+ function notificationStepDataToJSON(notificationStepData) {
135
+ return JSON.stringify(exports.NotificationStepData$outboundSchema.parse(notificationStepData));
136
+ }
137
+ exports.notificationStepDataToJSON = notificationStepDataToJSON;
138
+ function notificationStepDataFromJSON(jsonString) {
139
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationStepData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationStepData' from JSON`);
140
+ }
141
+ exports.notificationStepDataFromJSON = notificationStepDataFromJSON;
142
+ //# sourceMappingURL=notificationstepdata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationstepdata.js","sourceRoot":"","sources":["../../src/models/components/notificationstepdata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,uEAKmC;AACnC,2EAKqC;AACrC,yEAKoC;AACpC,qEAKkC;AAClC,6DAK8B;AAC9B,yDAK4B;AAC5B,yDAK4B;AA+D5B,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,gEAAoC;IACpC,4DAAkC;IAClC,0DAAiC;IACjC,8DAAmC;CACpC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,KAAK,CAAC;IACV,iEAAqC;IACrC,6DAAmC;IACnC,2DAAkC;IAClC,+DAAoC;CACrC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,kDAA0C,CAAC;IACxE,6EAA6E;IAChE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,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAND,gEAMC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC;AARD,oEAQC"}
@@ -0,0 +1,116 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { DelayRegularMetadata, DelayRegularMetadata$Outbound } from "./delayregularmetadata.js";
5
+ import { DelayScheduledMetadata, DelayScheduledMetadata$Outbound } from "./delayscheduledmetadata.js";
6
+ import { DigestRegularMetadata, DigestRegularMetadata$Outbound } from "./digestregularmetadata.js";
7
+ import { DigestTimedMetadata, DigestTimedMetadata$Outbound } from "./digesttimedmetadata.js";
8
+ import { MessageTemplate, MessageTemplate$Outbound } from "./messagetemplate.js";
9
+ import { NotificationStepData, NotificationStepData$Outbound } from "./notificationstepdata.js";
10
+ import { ReplyCallback, ReplyCallback$Outbound } from "./replycallback.js";
11
+ import { StepFilterDto, StepFilterDto$Outbound } from "./stepfilterdto.js";
12
+ /**
13
+ * Metadata associated with the workflow step. Can vary based on the type of step.
14
+ */
15
+ export type NotificationStepDtoMetadata = DelayScheduledMetadata | DelayRegularMetadata | DigestTimedMetadata | DigestRegularMetadata;
16
+ export type NotificationStepDto = {
17
+ /**
18
+ * Unique identifier for the notification step.
19
+ */
20
+ id?: string | undefined;
21
+ /**
22
+ * Universally unique identifier for the notification step.
23
+ */
24
+ uuid?: string | undefined;
25
+ /**
26
+ * Name of the notification step.
27
+ */
28
+ name?: string | undefined;
29
+ /**
30
+ * ID of the template associated with this notification step.
31
+ */
32
+ templateId?: string | undefined;
33
+ /**
34
+ * Indicates whether the notification step is active.
35
+ */
36
+ active?: boolean | undefined;
37
+ /**
38
+ * Determines if the process should stop on failure.
39
+ */
40
+ shouldStopOnFail?: boolean | undefined;
41
+ /**
42
+ * Message template used in this notification step.
43
+ */
44
+ template?: MessageTemplate | undefined;
45
+ /**
46
+ * Filters applied to this notification step.
47
+ */
48
+ filters?: Array<StepFilterDto> | undefined;
49
+ /**
50
+ * ID of the parent notification step, if applicable.
51
+ */
52
+ parentId?: string | undefined;
53
+ /**
54
+ * Metadata associated with the workflow step. Can vary based on the type of step.
55
+ */
56
+ metadata?: DelayScheduledMetadata | DelayRegularMetadata | DigestTimedMetadata | DigestRegularMetadata | undefined;
57
+ /**
58
+ * Callback information for replies, including whether it is active and the callback URL.
59
+ */
60
+ replyCallback?: ReplyCallback | undefined;
61
+ variants?: Array<NotificationStepData> | undefined;
62
+ };
63
+ /** @internal */
64
+ export declare const NotificationStepDtoMetadata$inboundSchema: z.ZodType<NotificationStepDtoMetadata, z.ZodTypeDef, unknown>;
65
+ /** @internal */
66
+ export type NotificationStepDtoMetadata$Outbound = DelayScheduledMetadata$Outbound | DelayRegularMetadata$Outbound | DigestTimedMetadata$Outbound | DigestRegularMetadata$Outbound;
67
+ /** @internal */
68
+ export declare const NotificationStepDtoMetadata$outboundSchema: z.ZodType<NotificationStepDtoMetadata$Outbound, z.ZodTypeDef, NotificationStepDtoMetadata>;
69
+ /**
70
+ * @internal
71
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
72
+ */
73
+ export declare namespace NotificationStepDtoMetadata$ {
74
+ /** @deprecated use `NotificationStepDtoMetadata$inboundSchema` instead. */
75
+ const inboundSchema: z.ZodType<NotificationStepDtoMetadata, z.ZodTypeDef, unknown>;
76
+ /** @deprecated use `NotificationStepDtoMetadata$outboundSchema` instead. */
77
+ const outboundSchema: z.ZodType<NotificationStepDtoMetadata$Outbound, z.ZodTypeDef, NotificationStepDtoMetadata>;
78
+ /** @deprecated use `NotificationStepDtoMetadata$Outbound` instead. */
79
+ type Outbound = NotificationStepDtoMetadata$Outbound;
80
+ }
81
+ export declare function notificationStepDtoMetadataToJSON(notificationStepDtoMetadata: NotificationStepDtoMetadata): string;
82
+ export declare function notificationStepDtoMetadataFromJSON(jsonString: string): SafeParseResult<NotificationStepDtoMetadata, SDKValidationError>;
83
+ /** @internal */
84
+ export declare const NotificationStepDto$inboundSchema: z.ZodType<NotificationStepDto, z.ZodTypeDef, unknown>;
85
+ /** @internal */
86
+ export type NotificationStepDto$Outbound = {
87
+ _id?: string | undefined;
88
+ uuid?: string | undefined;
89
+ name?: string | undefined;
90
+ _templateId?: string | undefined;
91
+ active?: boolean | undefined;
92
+ shouldStopOnFail?: boolean | undefined;
93
+ template?: MessageTemplate$Outbound | undefined;
94
+ filters?: Array<StepFilterDto$Outbound> | undefined;
95
+ _parentId?: string | undefined;
96
+ metadata?: DelayScheduledMetadata$Outbound | DelayRegularMetadata$Outbound | DigestTimedMetadata$Outbound | DigestRegularMetadata$Outbound | undefined;
97
+ replyCallback?: ReplyCallback$Outbound | undefined;
98
+ variants?: Array<NotificationStepData$Outbound> | undefined;
99
+ };
100
+ /** @internal */
101
+ export declare const NotificationStepDto$outboundSchema: z.ZodType<NotificationStepDto$Outbound, z.ZodTypeDef, NotificationStepDto>;
102
+ /**
103
+ * @internal
104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
105
+ */
106
+ export declare namespace NotificationStepDto$ {
107
+ /** @deprecated use `NotificationStepDto$inboundSchema` instead. */
108
+ const inboundSchema: z.ZodType<NotificationStepDto, z.ZodTypeDef, unknown>;
109
+ /** @deprecated use `NotificationStepDto$outboundSchema` instead. */
110
+ const outboundSchema: z.ZodType<NotificationStepDto$Outbound, z.ZodTypeDef, NotificationStepDto>;
111
+ /** @deprecated use `NotificationStepDto$Outbound` instead. */
112
+ type Outbound = NotificationStepDto$Outbound;
113
+ }
114
+ export declare function notificationStepDtoToJSON(notificationStepDto: NotificationStepDto): string;
115
+ export declare function notificationStepDtoFromJSON(jsonString: string): SafeParseResult<NotificationStepDto, SDKValidationError>;
116
+ //# sourceMappingURL=notificationstepdto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationstepdto.d.ts","sourceRoot":"","sources":["../../src/models/components/notificationstepdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,2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AAC,EAAE,KAAK,CAAC,6BAA6B,CAAC,GAAG,SAAS,CAAC;CAC7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAyBnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.notificationStepDtoFromJSON = exports.notificationStepDtoToJSON = exports.NotificationStepDto$ = exports.NotificationStepDto$outboundSchema = exports.NotificationStepDto$inboundSchema = exports.notificationStepDtoMetadataFromJSON = exports.notificationStepDtoMetadataToJSON = exports.NotificationStepDtoMetadata$ = exports.NotificationStepDtoMetadata$outboundSchema = exports.NotificationStepDtoMetadata$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ const schemas_js_1 = require("../../lib/schemas.js");
33
+ const delayregularmetadata_js_1 = require("./delayregularmetadata.js");
34
+ const delayscheduledmetadata_js_1 = require("./delayscheduledmetadata.js");
35
+ const digestregularmetadata_js_1 = require("./digestregularmetadata.js");
36
+ const digesttimedmetadata_js_1 = require("./digesttimedmetadata.js");
37
+ const messagetemplate_js_1 = require("./messagetemplate.js");
38
+ const notificationstepdata_js_1 = require("./notificationstepdata.js");
39
+ const replycallback_js_1 = require("./replycallback.js");
40
+ const stepfilterdto_js_1 = require("./stepfilterdto.js");
41
+ /** @internal */
42
+ exports.NotificationStepDtoMetadata$inboundSchema = z.union([
43
+ delayscheduledmetadata_js_1.DelayScheduledMetadata$inboundSchema,
44
+ delayregularmetadata_js_1.DelayRegularMetadata$inboundSchema,
45
+ digesttimedmetadata_js_1.DigestTimedMetadata$inboundSchema,
46
+ digestregularmetadata_js_1.DigestRegularMetadata$inboundSchema,
47
+ ]);
48
+ /** @internal */
49
+ exports.NotificationStepDtoMetadata$outboundSchema = z.union([
50
+ delayscheduledmetadata_js_1.DelayScheduledMetadata$outboundSchema,
51
+ delayregularmetadata_js_1.DelayRegularMetadata$outboundSchema,
52
+ digesttimedmetadata_js_1.DigestTimedMetadata$outboundSchema,
53
+ digestregularmetadata_js_1.DigestRegularMetadata$outboundSchema,
54
+ ]);
55
+ /**
56
+ * @internal
57
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
+ */
59
+ var NotificationStepDtoMetadata$;
60
+ (function (NotificationStepDtoMetadata$) {
61
+ /** @deprecated use `NotificationStepDtoMetadata$inboundSchema` instead. */
62
+ NotificationStepDtoMetadata$.inboundSchema = exports.NotificationStepDtoMetadata$inboundSchema;
63
+ /** @deprecated use `NotificationStepDtoMetadata$outboundSchema` instead. */
64
+ NotificationStepDtoMetadata$.outboundSchema = exports.NotificationStepDtoMetadata$outboundSchema;
65
+ })(NotificationStepDtoMetadata$ || (exports.NotificationStepDtoMetadata$ = NotificationStepDtoMetadata$ = {}));
66
+ function notificationStepDtoMetadataToJSON(notificationStepDtoMetadata) {
67
+ return JSON.stringify(exports.NotificationStepDtoMetadata$outboundSchema.parse(notificationStepDtoMetadata));
68
+ }
69
+ exports.notificationStepDtoMetadataToJSON = notificationStepDtoMetadataToJSON;
70
+ function notificationStepDtoMetadataFromJSON(jsonString) {
71
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationStepDtoMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationStepDtoMetadata' from JSON`);
72
+ }
73
+ exports.notificationStepDtoMetadataFromJSON = notificationStepDtoMetadataFromJSON;
74
+ /** @internal */
75
+ exports.NotificationStepDto$inboundSchema = z.object({
76
+ _id: z.string().optional(),
77
+ uuid: z.string().optional(),
78
+ name: z.string().optional(),
79
+ _templateId: z.string().optional(),
80
+ active: z.boolean().optional(),
81
+ shouldStopOnFail: z.boolean().optional(),
82
+ template: messagetemplate_js_1.MessageTemplate$inboundSchema.optional(),
83
+ filters: z.array(stepfilterdto_js_1.StepFilterDto$inboundSchema).optional(),
84
+ _parentId: z.string().optional(),
85
+ metadata: z.union([
86
+ delayscheduledmetadata_js_1.DelayScheduledMetadata$inboundSchema,
87
+ delayregularmetadata_js_1.DelayRegularMetadata$inboundSchema,
88
+ digesttimedmetadata_js_1.DigestTimedMetadata$inboundSchema,
89
+ digestregularmetadata_js_1.DigestRegularMetadata$inboundSchema,
90
+ ]).optional(),
91
+ replyCallback: replycallback_js_1.ReplyCallback$inboundSchema.optional(),
92
+ variants: z.array(notificationstepdata_js_1.NotificationStepData$inboundSchema).optional(),
93
+ }).transform((v) => {
94
+ return (0, primitives_js_1.remap)(v, {
95
+ "_id": "id",
96
+ "_templateId": "templateId",
97
+ "_parentId": "parentId",
98
+ });
99
+ });
100
+ /** @internal */
101
+ exports.NotificationStepDto$outboundSchema = z.object({
102
+ id: z.string().optional(),
103
+ uuid: z.string().optional(),
104
+ name: z.string().optional(),
105
+ templateId: z.string().optional(),
106
+ active: z.boolean().optional(),
107
+ shouldStopOnFail: z.boolean().optional(),
108
+ template: messagetemplate_js_1.MessageTemplate$outboundSchema.optional(),
109
+ filters: z.array(stepfilterdto_js_1.StepFilterDto$outboundSchema).optional(),
110
+ parentId: z.string().optional(),
111
+ metadata: z.union([
112
+ delayscheduledmetadata_js_1.DelayScheduledMetadata$outboundSchema,
113
+ delayregularmetadata_js_1.DelayRegularMetadata$outboundSchema,
114
+ digesttimedmetadata_js_1.DigestTimedMetadata$outboundSchema,
115
+ digestregularmetadata_js_1.DigestRegularMetadata$outboundSchema,
116
+ ]).optional(),
117
+ replyCallback: replycallback_js_1.ReplyCallback$outboundSchema.optional(),
118
+ variants: z.array(notificationstepdata_js_1.NotificationStepData$outboundSchema).optional(),
119
+ }).transform((v) => {
120
+ return (0, primitives_js_1.remap)(v, {
121
+ id: "_id",
122
+ templateId: "_templateId",
123
+ parentId: "_parentId",
124
+ });
125
+ });
126
+ /**
127
+ * @internal
128
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
129
+ */
130
+ var NotificationStepDto$;
131
+ (function (NotificationStepDto$) {
132
+ /** @deprecated use `NotificationStepDto$inboundSchema` instead. */
133
+ NotificationStepDto$.inboundSchema = exports.NotificationStepDto$inboundSchema;
134
+ /** @deprecated use `NotificationStepDto$outboundSchema` instead. */
135
+ NotificationStepDto$.outboundSchema = exports.NotificationStepDto$outboundSchema;
136
+ })(NotificationStepDto$ || (exports.NotificationStepDto$ = NotificationStepDto$ = {}));
137
+ function notificationStepDtoToJSON(notificationStepDto) {
138
+ return JSON.stringify(exports.NotificationStepDto$outboundSchema.parse(notificationStepDto));
139
+ }
140
+ exports.notificationStepDtoToJSON = notificationStepDtoToJSON;
141
+ function notificationStepDtoFromJSON(jsonString) {
142
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationStepDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationStepDto' from JSON`);
143
+ }
144
+ exports.notificationStepDtoFromJSON = notificationStepDtoFromJSON;
145
+ //# sourceMappingURL=notificationstepdto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationstepdto.js","sourceRoot":"","sources":["../../src/models/components/notificationstepdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,uEAKmC;AACnC,2EAKqC;AACrC,yEAKoC;AACpC,qEAKkC;AAClC,6DAK8B;AAC9B,uEAKmC;AACnC,yDAK4B;AAC5B,yDAK4B;AAgE5B,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,KAAK,CAAC;IACV,gEAAoC;IACpC,4DAAkC;IAClC,0DAAiC;IACjC,8DAAmC;CACpC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,iEAAqC;IACrC,6DAAmC;IACnC,2DAAkC;IAClC,+DAAoC;CACrC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC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C,CAAC,EAAE;QACf,EAAE,EAAE,KAAK;QACT,UAAU,EAAE,aAAa;QACzB,QAAQ,EAAE,WAAW;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAND,8DAMC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC;AARD,kEAQC"}
@@ -3,48 +3,30 @@ import { ClosedEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  import { NotificationTriggerVariable, NotificationTriggerVariable$Outbound } from "./notificationtriggervariable.js";
6
- /**
7
- * Type of the trigger
8
- */
9
- export declare const Type: {
6
+ export declare const NotificationTriggerType: {
10
7
  readonly Event: "event";
11
8
  };
12
- /**
13
- * Type of the trigger
14
- */
15
- export type Type = ClosedEnum<typeof Type>;
9
+ export type NotificationTriggerType = ClosedEnum<typeof NotificationTriggerType>;
16
10
  export type NotificationTrigger = {
17
- /**
18
- * Type of the trigger
19
- */
20
- type: Type;
21
- /**
22
- * Identifier of the trigger
23
- */
11
+ type: NotificationTriggerType;
24
12
  identifier: string;
25
- /**
26
- * Variables of the trigger
27
- */
28
13
  variables: Array<NotificationTriggerVariable>;
29
- /**
30
- * Subscriber variables of the trigger
31
- */
32
14
  subscriberVariables?: Array<NotificationTriggerVariable> | undefined;
33
15
  };
34
16
  /** @internal */
35
- export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
17
+ export declare const NotificationTriggerType$inboundSchema: z.ZodNativeEnum<typeof NotificationTriggerType>;
36
18
  /** @internal */
37
- export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
19
+ export declare const NotificationTriggerType$outboundSchema: z.ZodNativeEnum<typeof NotificationTriggerType>;
38
20
  /**
39
21
  * @internal
40
22
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
23
  */
42
- export declare namespace Type$ {
43
- /** @deprecated use `Type$inboundSchema` instead. */
24
+ export declare namespace NotificationTriggerType$ {
25
+ /** @deprecated use `NotificationTriggerType$inboundSchema` instead. */
44
26
  const inboundSchema: z.ZodNativeEnum<{
45
27
  readonly Event: "event";
46
28
  }>;
47
- /** @deprecated use `Type$outboundSchema` instead. */
29
+ /** @deprecated use `NotificationTriggerType$outboundSchema` instead. */
48
30
  const outboundSchema: z.ZodNativeEnum<{
49
31
  readonly Event: "event";
50
32
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"notificationtrigger.d.ts","sourceRoot":"","sources":["../../src/models/components/notificationtrigger.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,IAAI;;CAEP,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,I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DAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
1
+ {"version":3,"file":"notificationtrigger.d.ts","sourceRoot":"","sources":["../../src/models/components/notificationtrigger.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,uBAAuB;;CAE1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAC9C,mBAAmB,CAAC,EAAE,KAAK,CAAC,2BAA2B,CAAC,GAAG,SAAS,CAAC;CACtE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,aAAa,CACjE,OAAO,uBAAuB,CACS,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,aAAa,CAClE,OAAO,uBAAuB,CACS,CAAC;AAE1C;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa;;MAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc;;MAAyC,CAAC;CACtE;AAED,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACvD,mBAAmB,CAAC,EAAE,KAAK,CAAC,oCAAoC,CAAC,GAAG,SAAS,CAAC;CAC/E,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAOnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -26,34 +26,31 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.notificationTriggerFromJSON = exports.notificationTriggerToJSON = exports.NotificationTrigger$ = exports.NotificationTrigger$outboundSchema = exports.NotificationTrigger$inboundSchema = exports.Type$ = exports.Type$outboundSchema = exports.Type$inboundSchema = exports.Type = void 0;
29
+ exports.notificationTriggerFromJSON = exports.notificationTriggerToJSON = exports.NotificationTrigger$ = exports.NotificationTrigger$outboundSchema = exports.NotificationTrigger$inboundSchema = exports.NotificationTriggerType$ = exports.NotificationTriggerType$outboundSchema = exports.NotificationTriggerType$inboundSchema = exports.NotificationTriggerType = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const schemas_js_1 = require("../../lib/schemas.js");
32
32
  const notificationtriggervariable_js_1 = require("./notificationtriggervariable.js");
33
- /**
34
- * Type of the trigger
35
- */
36
- exports.Type = {
33
+ exports.NotificationTriggerType = {
37
34
  Event: "event",
38
35
  };
39
36
  /** @internal */
40
- exports.Type$inboundSchema = z.nativeEnum(exports.Type);
37
+ exports.NotificationTriggerType$inboundSchema = z.nativeEnum(exports.NotificationTriggerType);
41
38
  /** @internal */
42
- exports.Type$outboundSchema = exports.Type$inboundSchema;
39
+ exports.NotificationTriggerType$outboundSchema = exports.NotificationTriggerType$inboundSchema;
43
40
  /**
44
41
  * @internal
45
42
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
43
  */
47
- var Type$;
48
- (function (Type$) {
49
- /** @deprecated use `Type$inboundSchema` instead. */
50
- Type$.inboundSchema = exports.Type$inboundSchema;
51
- /** @deprecated use `Type$outboundSchema` instead. */
52
- Type$.outboundSchema = exports.Type$outboundSchema;
53
- })(Type$ || (exports.Type$ = Type$ = {}));
44
+ var NotificationTriggerType$;
45
+ (function (NotificationTriggerType$) {
46
+ /** @deprecated use `NotificationTriggerType$inboundSchema` instead. */
47
+ NotificationTriggerType$.inboundSchema = exports.NotificationTriggerType$inboundSchema;
48
+ /** @deprecated use `NotificationTriggerType$outboundSchema` instead. */
49
+ NotificationTriggerType$.outboundSchema = exports.NotificationTriggerType$outboundSchema;
50
+ })(NotificationTriggerType$ || (exports.NotificationTriggerType$ = NotificationTriggerType$ = {}));
54
51
  /** @internal */
55
52
  exports.NotificationTrigger$inboundSchema = z.object({
56
- type: exports.Type$inboundSchema,
53
+ type: exports.NotificationTriggerType$inboundSchema,
57
54
  identifier: z.string(),
58
55
  variables: z.array(notificationtriggervariable_js_1.NotificationTriggerVariable$inboundSchema),
59
56
  subscriberVariables: z.array(notificationtriggervariable_js_1.NotificationTriggerVariable$inboundSchema)
@@ -61,7 +58,7 @@ exports.NotificationTrigger$inboundSchema = z.object({
61
58
  });
62
59
  /** @internal */
63
60
  exports.NotificationTrigger$outboundSchema = z.object({
64
- type: exports.Type$outboundSchema,
61
+ type: exports.NotificationTriggerType$outboundSchema,
65
62
  identifier: z.string(),
66
63
  variables: z.array(notificationtriggervariable_js_1.NotificationTriggerVariable$outboundSchema),
67
64
  subscriberVariables: z.array(notificationtriggervariable_js_1.NotificationTriggerVariable$outboundSchema)
@@ -1 +1 @@
1
- {"version":3,"file":"notificationtrigger.js","sourceRoot":"","sources":["../../src/models/components/notificationtrigger.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAIjD,qFAK0C;AAE1C;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AAyBX,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,CAAC,CAAC,UAAU,CAC1E,YAAI,CACL,CAAC;AAEF,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,0BAAkB,CAAC;AAErB;;;GAGG;AACH,IAAiB,KAAK,CAKrB;AALD,WAAiB,KAAK;IACpB,oDAAoD;IACvC,mBAAa,GAAG,0BAAkB,CAAC;IAChD,qDAAqD;IACxC,oBAAc,GAAG,2BAAmB,CAAC;AACpD,CAAC,EALgB,KAAK,qBAAL,KAAK,QAKrB;AAED,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,0BAAkB;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,0EAAyC,CAAC;IAC7D,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,0EAAyC,CAAC;SACpE,QAAQ,EAAE;CACd,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,2BAAmB;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,2EAA0C,CAAC;IAC9D,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,2EAA0C,CAAC;SACrE,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAND,8DAMC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC;AARD,kEAQC"}
1
+ {"version":3,"file":"notificationtrigger.js","sourceRoot":"","sources":["../../src/models/components/notificationtrigger.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAIjD,qFAK0C;AAE7B,QAAA,uBAAuB,GAAG;IACrC,KAAK,EAAE,OAAO;CACN,CAAC;AAYX,gB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AmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAND,8DAMC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC;AARD,kEAQC"}
@@ -0,0 +1,77 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { NotificationTriggerVariable, NotificationTriggerVariable$Outbound } from "./notificationtriggervariable.js";
6
+ /**
7
+ * Type of the trigger
8
+ */
9
+ export declare const Type: {
10
+ readonly Event: "event";
11
+ };
12
+ /**
13
+ * Type of the trigger
14
+ */
15
+ export type Type = ClosedEnum<typeof Type>;
16
+ export type NotificationTriggerDto = {
17
+ /**
18
+ * Type of the trigger
19
+ */
20
+ type: Type;
21
+ /**
22
+ * Identifier of the trigger
23
+ */
24
+ identifier: string;
25
+ /**
26
+ * Variables of the trigger
27
+ */
28
+ variables: Array<NotificationTriggerVariable>;
29
+ /**
30
+ * Subscriber variables of the trigger
31
+ */
32
+ subscriberVariables?: Array<NotificationTriggerVariable> | undefined;
33
+ };
34
+ /** @internal */
35
+ export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
36
+ /** @internal */
37
+ export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
38
+ /**
39
+ * @internal
40
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
+ */
42
+ export declare namespace Type$ {
43
+ /** @deprecated use `Type$inboundSchema` instead. */
44
+ const inboundSchema: z.ZodNativeEnum<{
45
+ readonly Event: "event";
46
+ }>;
47
+ /** @deprecated use `Type$outboundSchema` instead. */
48
+ const outboundSchema: z.ZodNativeEnum<{
49
+ readonly Event: "event";
50
+ }>;
51
+ }
52
+ /** @internal */
53
+ export declare const NotificationTriggerDto$inboundSchema: z.ZodType<NotificationTriggerDto, z.ZodTypeDef, unknown>;
54
+ /** @internal */
55
+ export type NotificationTriggerDto$Outbound = {
56
+ type: string;
57
+ identifier: string;
58
+ variables: Array<NotificationTriggerVariable$Outbound>;
59
+ subscriberVariables?: Array<NotificationTriggerVariable$Outbound> | undefined;
60
+ };
61
+ /** @internal */
62
+ export declare const NotificationTriggerDto$outboundSchema: z.ZodType<NotificationTriggerDto$Outbound, z.ZodTypeDef, NotificationTriggerDto>;
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ export declare namespace NotificationTriggerDto$ {
68
+ /** @deprecated use `NotificationTriggerDto$inboundSchema` instead. */
69
+ const inboundSchema: z.ZodType<NotificationTriggerDto, z.ZodTypeDef, unknown>;
70
+ /** @deprecated use `NotificationTriggerDto$outboundSchema` instead. */
71
+ const outboundSchema: z.ZodType<NotificationTriggerDto$Outbound, z.ZodTypeDef, NotificationTriggerDto>;
72
+ /** @deprecated use `NotificationTriggerDto$Outbound` instead. */
73
+ type Outbound = NotificationTriggerDto$Outbound;
74
+ }
75
+ export declare function notificationTriggerDtoToJSON(notificationTriggerDto: NotificationTriggerDto): string;
76
+ export declare function notificationTriggerDtoFromJSON(jsonString: string): SafeParseResult<NotificationTriggerDto, SDKValidationError>;
77
+ //# sourceMappingURL=notificationtriggerdto.d.ts.map