@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.
- package/funcs/adminIdempotencyGet.js +1 -1
- package/funcs/adminIdempotencyPost.js +1 -1
- package/funcs/cancel.js +1 -1
- package/funcs/integrationsCreate.js +1 -1
- package/funcs/integrationsDelete.js +1 -1
- package/funcs/integrationsList.js +1 -1
- package/funcs/integrationsListActive.js +1 -1
- package/funcs/integrationsSetAsPrimary.js +1 -1
- package/funcs/integrationsUpdate.js +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +1 -1
- package/funcs/messagesDelete.js +1 -1
- package/funcs/messagesDeleteByTransactionId.js +1 -1
- package/funcs/messagesRetrieve.js +1 -1
- package/funcs/notificationsList.js +1 -1
- package/funcs/notificationsRetrieve.js +1 -1
- package/funcs/notificationsStatsGraph.js +1 -1
- package/funcs/notificationsStatsRetrieve.js +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +1 -1
- package/funcs/subscribersCreate.js +1 -1
- package/funcs/subscribersCreateBulk.js +1 -1
- package/funcs/subscribersCredentialsAppend.js +1 -1
- package/funcs/subscribersCredentialsDelete.js +1 -1
- package/funcs/subscribersCredentialsUpdate.js +1 -1
- package/funcs/subscribersDelete.js +1 -1
- package/funcs/subscribersList.js +1 -1
- package/funcs/subscribersMessagesMarkAll.js +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +1 -1
- package/funcs/subscribersNotificationsFeed.js +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +1 -1
- package/funcs/subscribersPreferencesList.js +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +1 -1
- package/funcs/subscribersPreferencesUpdate.js +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +1 -1
- package/funcs/subscribersRetrieve.js +1 -1
- package/funcs/subscribersUpdate.js +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js +1 -1
- package/funcs/topicsCreate.js +1 -1
- package/funcs/topicsDelete.js +1 -1
- package/funcs/topicsList.js +1 -1
- package/funcs/topicsRename.js +1 -1
- package/funcs/topicsRetrieve.js +1 -1
- package/funcs/topicsSubscribersAssign.js +1 -1
- package/funcs/topicsSubscribersRemove.js +1 -1
- package/funcs/topicsSubscribersRetrieve.js +1 -1
- package/funcs/trigger.js +1 -1
- package/funcs/triggerBroadcast.js +1 -1
- package/funcs/triggerBulk.js +1 -1
- package/hooks/novu-custom-hook.js +2 -2
- package/hooks/novu-custom-hook.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +4 -83
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.js +7 -56
- package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +3 -3
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +3 -3
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/activitynotificationresponsedto.d.ts +112 -0
- package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationresponsedto.js +94 -1
- package/models/components/activitynotificationresponsedto.js.map +1 -1
- package/models/components/activitynotificationstepresponsedto.d.ts +139 -3
- package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationstepresponsedto.js +117 -4
- package/models/components/activitynotificationstepresponsedto.js.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.d.ts +3 -3
- package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.js +3 -3
- package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
- package/models/components/{builderfieldtype.d.ts → builderfieldtypeenum.d.ts} +8 -8
- package/models/components/builderfieldtypeenum.d.ts.map +1 -0
- package/models/components/{builderfieldtype.js → builderfieldtypeenum.js} +12 -12
- package/models/components/builderfieldtypeenum.js.map +1 -0
- package/models/components/{digestwitheventsdto.d.ts → digestmetadatadto.d.ts} +47 -14
- package/models/components/digestmetadatadto.d.ts.map +1 -0
- package/models/components/{digestwitheventsdto.js → digestmetadatadto.js} +32 -17
- package/models/components/digestmetadatadto.js.map +1 -0
- package/models/components/digesttimedconfigdto.d.ts +106 -0
- package/models/components/digesttimedconfigdto.d.ts.map +1 -0
- package/models/components/digesttimedconfigdto.js +99 -0
- package/models/components/digesttimedconfigdto.js.map +1 -0
- package/models/components/digesttypeenum.d.ts +37 -0
- package/models/components/digesttypeenum.d.ts.map +1 -0
- package/models/components/digesttypeenum.js +54 -0
- package/models/components/digesttypeenum.js.map +1 -0
- package/models/components/digestunitenum.d.ts +46 -0
- package/models/components/digestunitenum.d.ts.map +1 -0
- package/models/components/digestunitenum.js +57 -0
- package/models/components/digestunitenum.js.map +1 -0
- package/models/components/executiondetailssourceenum.d.ts +40 -0
- package/models/components/executiondetailssourceenum.d.ts.map +1 -0
- package/models/components/executiondetailssourceenum.js +55 -0
- package/models/components/executiondetailssourceenum.js.map +1 -0
- package/models/components/executiondetailsstatusenum.d.ts +46 -0
- package/models/components/executiondetailsstatusenum.d.ts.map +1 -0
- package/models/components/executiondetailsstatusenum.js +57 -0
- package/models/components/executiondetailsstatusenum.js.map +1 -0
- package/models/components/index.d.ts +14 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -5
- package/models/components/index.js.map +1 -1
- package/models/components/monthlytypeenum.d.ts +34 -0
- package/models/components/monthlytypeenum.d.ts.map +1 -0
- package/models/components/monthlytypeenum.js +53 -0
- package/models/components/monthlytypeenum.js.map +1 -0
- package/models/components/notificationstepdata.d.ts +113 -0
- package/models/components/notificationstepdata.d.ts.map +1 -0
- package/models/components/notificationstepdata.js +142 -0
- package/models/components/notificationstepdata.js.map +1 -0
- package/models/components/notificationstepdto.d.ts +116 -0
- package/models/components/notificationstepdto.d.ts.map +1 -0
- package/models/components/notificationstepdto.js +145 -0
- package/models/components/notificationstepdto.js.map +1 -0
- package/models/components/notificationtrigger.d.ts +8 -26
- package/models/components/notificationtrigger.d.ts.map +1 -1
- package/models/components/notificationtrigger.js +13 -16
- package/models/components/notificationtrigger.js.map +1 -1
- package/models/components/notificationtriggerdto.d.ts +77 -0
- package/models/components/notificationtriggerdto.d.ts.map +1 -0
- package/models/components/notificationtriggerdto.js +89 -0
- package/models/components/notificationtriggerdto.js.map +1 -0
- package/models/components/ordinalenum.d.ts +46 -0
- package/models/components/ordinalenum.d.ts.map +1 -0
- package/models/components/{stepfilter.js → ordinalenum.js} +23 -20
- package/models/components/ordinalenum.js.map +1 -0
- package/models/components/ordinalvalueenum.d.ts +58 -0
- package/models/components/ordinalvalueenum.d.ts.map +1 -0
- package/models/components/ordinalvalueenum.js +61 -0
- package/models/components/ordinalvalueenum.js.map +1 -0
- package/models/components/replycallback.d.ts +37 -0
- package/models/components/replycallback.d.ts.map +1 -0
- package/models/components/replycallback.js +61 -0
- package/models/components/replycallback.js.map +1 -0
- package/models/components/stepfilterdto.d.ts +2 -2
- package/models/components/stepfilterdto.d.ts.map +1 -1
- package/models/components/stepfilterdto.js +3 -3
- package/models/components/stepfilterdto.js.map +1 -1
- package/models/components/timedconfig.d.ts +8 -8
- package/models/components/timedconfig.d.ts.map +1 -1
- package/models/components/timedconfig.js +13 -14
- package/models/components/timedconfig.js.map +1 -1
- package/models/components/workflowresponse.d.ts +3 -3
- package/models/components/workflowresponse.d.ts.map +1 -1
- package/models/components/workflowresponse.js +3 -3
- package/models/components/workflowresponse.js.map +1 -1
- package/models/operations/eventscontrollerbroadcasteventtoall.d.ts +1 -1
- package/models/operations/eventscontrollerbroadcasteventtoall.js +3 -3
- package/models/operations/eventscontrollercancel.d.ts +1 -1
- package/models/operations/eventscontrollercancel.js +3 -3
- package/models/operations/eventscontrollertrigger.d.ts +1 -1
- package/models/operations/eventscontrollertrigger.js +3 -3
- package/models/operations/eventscontrollertriggerbulk.d.ts +1 -1
- package/models/operations/eventscontrollertriggerbulk.js +3 -3
- package/models/operations/integrationscontrollercreateintegration.d.ts +1 -1
- package/models/operations/integrationscontrollercreateintegration.js +3 -3
- package/models/operations/integrationscontrollergetactiveintegrations.d.ts +1 -1
- package/models/operations/integrationscontrollergetactiveintegrations.js +3 -3
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts +1 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js +3 -3
- package/models/operations/integrationscontrollerlistintegrations.d.ts +1 -1
- package/models/operations/integrationscontrollerlistintegrations.js +3 -3
- package/models/operations/integrationscontrollerremoveintegration.d.ts +1 -1
- package/models/operations/integrationscontrollerremoveintegration.js +3 -3
- package/models/operations/integrationscontrollersetintegrationasprimary.d.ts +1 -1
- package/models/operations/integrationscontrollersetintegrationasprimary.js +3 -3
- package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts +1 -1
- package/models/operations/integrationscontrollerupdateintegrationbyid.js +3 -3
- package/models/operations/messagescontrollerdeletemessage.d.ts +1 -1
- package/models/operations/messagescontrollerdeletemessage.js +3 -3
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +3 -3
- package/models/operations/messagescontrollergetmessages.d.ts +1 -1
- package/models/operations/messagescontrollergetmessages.js +3 -3
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts +1 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.js +3 -3
- package/models/operations/notificationscontrollergetactivitystats.d.ts +1 -1
- package/models/operations/notificationscontrollergetactivitystats.js +3 -3
- package/models/operations/notificationscontrollergetnotification.d.ts +1 -1
- package/models/operations/notificationscontrollergetnotification.js +3 -3
- package/models/operations/notificationscontrollerlistnotifications.d.ts +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +3 -3
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +3 -3
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts +1 -1
- package/models/operations/subscriberscontrollerchataccessoauth.js +3 -3
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +1 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.js +3 -3
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts +1 -1
- package/models/operations/subscriberscontrollercreatesubscriber.js +3 -3
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +3 -3
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +1 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.js +3 -3
- package/models/operations/subscriberscontrollergetsubscriber.d.ts +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.js +3 -3
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +3 -3
- package/models/operations/subscriberscontrollergetunseencount.d.ts +1 -1
- package/models/operations/subscriberscontrollergetunseencount.js +3 -3
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +1 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +3 -3
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts +1 -1
- package/models/operations/subscriberscontrollerlistsubscribers.js +3 -3
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.js +3 -3
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.js +3 -3
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.js +3 -3
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +1 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js +3 -3
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts +1 -1
- package/models/operations/subscriberscontrollerremovesubscriber.js +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.js +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +3 -3
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.d.ts +1 -1
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.js +3 -3
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.d.ts +1 -1
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.js +3 -3
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.d.ts +1 -1
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.js +3 -3
- package/models/operations/testingcontrolleridempotency.d.ts +1 -1
- package/models/operations/testingcontrolleridempotency.js +3 -3
- package/models/operations/testingcontrolleridempotencyget.d.ts +1 -1
- package/models/operations/testingcontrolleridempotencyget.js +3 -3
- package/models/operations/topicscontrollerassign.d.ts +1 -1
- package/models/operations/topicscontrollerassign.js +3 -3
- package/models/operations/topicscontrollercreatetopic.d.ts +1 -1
- package/models/operations/topicscontrollercreatetopic.js +3 -3
- package/models/operations/topicscontrollerdeletetopic.d.ts +1 -1
- package/models/operations/topicscontrollerdeletetopic.js +3 -3
- package/models/operations/topicscontrollergettopic.d.ts +1 -1
- package/models/operations/topicscontrollergettopic.js +3 -3
- package/models/operations/topicscontrollergettopicsubscriber.d.ts +1 -1
- package/models/operations/topicscontrollergettopicsubscriber.js +3 -3
- package/models/operations/topicscontrollerlisttopics.d.ts +1 -1
- package/models/operations/topicscontrollerlisttopics.js +3 -3
- package/models/operations/topicscontrollerremovesubscribers.d.ts +1 -1
- package/models/operations/topicscontrollerremovesubscribers.js +3 -3
- package/models/operations/topicscontrollerrenametopic.d.ts +1 -1
- package/models/operations/topicscontrollerrenametopic.js +3 -3
- package/package.json +1 -1
- package/src/funcs/adminIdempotencyGet.ts +3 -3
- package/src/funcs/adminIdempotencyPost.ts +3 -3
- package/src/funcs/cancel.ts +3 -3
- package/src/funcs/integrationsCreate.ts +3 -3
- package/src/funcs/integrationsDelete.ts +3 -3
- package/src/funcs/integrationsList.ts +3 -3
- package/src/funcs/integrationsListActive.ts +3 -3
- package/src/funcs/integrationsSetAsPrimary.ts +3 -3
- package/src/funcs/integrationsUpdate.ts +3 -3
- package/src/funcs/integrationsWebhooksRetrieve.ts +3 -3
- package/src/funcs/messagesDelete.ts +3 -3
- package/src/funcs/messagesDeleteByTransactionId.ts +3 -3
- package/src/funcs/messagesRetrieve.ts +3 -3
- package/src/funcs/notificationsList.ts +3 -3
- package/src/funcs/notificationsRetrieve.ts +3 -3
- package/src/funcs/notificationsStatsGraph.ts +3 -3
- package/src/funcs/notificationsStatsRetrieve.ts +3 -3
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +3 -3
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +3 -3
- package/src/funcs/subscribersCreate.ts +3 -3
- package/src/funcs/subscribersCreateBulk.ts +3 -3
- package/src/funcs/subscribersCredentialsAppend.ts +3 -3
- package/src/funcs/subscribersCredentialsDelete.ts +3 -3
- package/src/funcs/subscribersCredentialsUpdate.ts +3 -3
- package/src/funcs/subscribersDelete.ts +3 -3
- package/src/funcs/subscribersList.ts +3 -3
- package/src/funcs/subscribersMessagesMarkAll.ts +3 -3
- package/src/funcs/subscribersMessagesMarkAllAs.ts +3 -3
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +3 -3
- package/src/funcs/subscribersNotificationsFeed.ts +3 -3
- package/src/funcs/subscribersNotificationsUnseenCount.ts +3 -3
- package/src/funcs/subscribersPreferencesList.ts +3 -3
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +3 -3
- package/src/funcs/subscribersPreferencesUpdate.ts +3 -3
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +3 -3
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +3 -3
- package/src/funcs/subscribersRetrieve.ts +3 -3
- package/src/funcs/subscribersUpdate.ts +3 -3
- package/src/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.ts +3 -3
- package/src/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.ts +3 -3
- package/src/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.ts +3 -3
- package/src/funcs/topicsCreate.ts +3 -3
- package/src/funcs/topicsDelete.ts +3 -3
- package/src/funcs/topicsList.ts +3 -3
- package/src/funcs/topicsRename.ts +3 -3
- package/src/funcs/topicsRetrieve.ts +3 -3
- package/src/funcs/topicsSubscribersAssign.ts +3 -3
- package/src/funcs/topicsSubscribersRemove.ts +3 -3
- package/src/funcs/topicsSubscribersRetrieve.ts +3 -3
- package/src/funcs/trigger.ts +3 -3
- package/src/funcs/triggerBroadcast.ts +3 -3
- package/src/funcs/triggerBulk.ts +3 -3
- package/src/hooks/novu-custom-hook.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +16 -81
- package/src/models/components/activitynotificationjobresponsedto.ts +9 -9
- package/src/models/components/activitynotificationresponsedto.ts +228 -0
- package/src/models/components/activitynotificationstepresponsedto.ts +294 -9
- package/src/models/components/activitynotificationtemplateresponsedto.ts +9 -9
- package/src/models/components/builderfieldtypeenum.ts +39 -0
- package/src/models/components/digestmetadatadto.ts +185 -0
- package/src/models/components/digesttimedconfigdto.ts +157 -0
- package/src/models/components/digesttypeenum.ts +40 -0
- package/src/models/components/digestunitenum.ts +43 -0
- package/src/models/components/executiondetailssourceenum.ts +43 -0
- package/src/models/components/executiondetailsstatusenum.ts +45 -0
- package/src/models/components/index.ts +14 -5
- package/src/models/components/monthlytypeenum.ts +39 -0
- package/src/models/components/notificationstepdata.ts +287 -0
- package/src/models/components/notificationstepdto.ts +297 -0
- package/src/models/components/notificationtrigger.ts +18 -33
- package/src/models/components/notificationtriggerdto.ts +130 -0
- package/src/models/components/ordinalenum.ts +41 -0
- package/src/models/components/ordinalvalueenum.ts +47 -0
- package/src/models/components/replycallback.ts +72 -0
- package/src/models/components/stepfilterdto.ts +7 -7
- package/src/models/components/timedconfig.ts +16 -14
- package/src/models/components/workflowresponse.ts +9 -9
- package/src/models/operations/eventscontrollerbroadcasteventtoall.ts +4 -4
- package/src/models/operations/eventscontrollercancel.ts +4 -4
- package/src/models/operations/eventscontrollertrigger.ts +4 -4
- package/src/models/operations/eventscontrollertriggerbulk.ts +4 -4
- package/src/models/operations/integrationscontrollercreateintegration.ts +4 -4
- package/src/models/operations/integrationscontrollergetactiveintegrations.ts +4 -4
- package/src/models/operations/integrationscontrollergetwebhooksupportstatus.ts +4 -4
- package/src/models/operations/integrationscontrollerlistintegrations.ts +4 -4
- package/src/models/operations/integrationscontrollerremoveintegration.ts +4 -4
- package/src/models/operations/integrationscontrollersetintegrationasprimary.ts +4 -4
- package/src/models/operations/integrationscontrollerupdateintegrationbyid.ts +4 -4
- package/src/models/operations/messagescontrollerdeletemessage.ts +4 -4
- package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +4 -4
- package/src/models/operations/messagescontrollergetmessages.ts +4 -4
- package/src/models/operations/notificationscontrollergetactivitygraphstats.ts +4 -4
- package/src/models/operations/notificationscontrollergetactivitystats.ts +4 -4
- package/src/models/operations/notificationscontrollergetnotification.ts +4 -4
- package/src/models/operations/notificationscontrollerlistnotifications.ts +4 -4
- package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +4 -4
- package/src/models/operations/subscriberscontrollerchataccessoauth.ts +4 -4
- package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +4 -4
- package/src/models/operations/subscriberscontrollercreatesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +4 -4
- package/src/models/operations/subscriberscontrollergetnotificationsfeed.ts +4 -4
- package/src/models/operations/subscriberscontrollergetsubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.ts +4 -4
- package/src/models/operations/subscriberscontrollergetunseencount.ts +4 -4
- package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +4 -4
- package/src/models/operations/subscriberscontrollerlistsubscribers.ts +4 -4
- package/src/models/operations/subscriberscontrollermarkactionasseen.ts +4 -4
- package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -4
- package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -4
- package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +4 -4
- package/src/models/operations/subscriberscontrollerremovesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +4 -4
- package/src/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.ts +4 -4
- package/src/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.ts +4 -4
- package/src/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.ts +4 -4
- package/src/models/operations/testingcontrolleridempotency.ts +4 -4
- package/src/models/operations/testingcontrolleridempotencyget.ts +4 -4
- package/src/models/operations/topicscontrollerassign.ts +4 -4
- package/src/models/operations/topicscontrollercreatetopic.ts +4 -4
- package/src/models/operations/topicscontrollerdeletetopic.ts +4 -4
- package/src/models/operations/topicscontrollergettopic.ts +4 -4
- package/src/models/operations/topicscontrollergettopicsubscriber.ts +4 -4
- package/src/models/operations/topicscontrollerlisttopics.ts +4 -4
- package/src/models/operations/topicscontrollerremovesubscribers.ts +4 -4
- package/src/models/operations/topicscontrollerrenametopic.ts +4 -4
- package/models/components/builderfieldtype.d.ts.map +0 -1
- package/models/components/builderfieldtype.js.map +0 -1
- package/models/components/digestwitheventsdto.d.ts.map +0 -1
- package/models/components/digestwitheventsdto.js.map +0 -1
- package/models/components/notificationstep.d.ts +0 -121
- package/models/components/notificationstep.d.ts.map +0 -1
- package/models/components/notificationstep.js +0 -190
- package/models/components/notificationstep.js.map +0 -1
- package/models/components/notificationstepvariant.d.ts +0 -118
- package/models/components/notificationstepvariant.d.ts.map +0 -1
- package/models/components/notificationstepvariant.js +0 -189
- package/models/components/notificationstepvariant.js.map +0 -1
- package/models/components/stepfilter.d.ts +0 -25
- package/models/components/stepfilter.d.ts.map +0 -1
- package/models/components/stepfilter.js.map +0 -1
- package/src/models/components/builderfieldtype.ts +0 -39
- package/src/models/components/digestwitheventsdto.ts +0 -127
- package/src/models/components/notificationstep.ts +0 -341
- package/src/models/components/notificationstepvariant.ts +0 -358
- package/src/models/components/stepfilter.ts +0 -54
|
@@ -31,6 +31,21 @@ import {
|
|
|
31
31
|
StepTypeEnum$outboundSchema,
|
|
32
32
|
} from "./steptypeenum.js";
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Payload of the notification
|
|
36
|
+
*/
|
|
37
|
+
export type ActivityNotificationResponseDtoPayload = {};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Controls associated with the notification
|
|
41
|
+
*/
|
|
42
|
+
export type Controls = {};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* To field for subscriber definition
|
|
46
|
+
*/
|
|
47
|
+
export type ActivityNotificationResponseDtoTo = {};
|
|
48
|
+
|
|
34
49
|
export type ActivityNotificationResponseDto = {
|
|
35
50
|
/**
|
|
36
51
|
* Unique identifier of the notification
|
|
@@ -44,14 +59,30 @@ export type ActivityNotificationResponseDto = {
|
|
|
44
59
|
* Organization ID of the notification
|
|
45
60
|
*/
|
|
46
61
|
organizationId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Subscriber ID of the notification
|
|
64
|
+
*/
|
|
65
|
+
subscriberId: string;
|
|
47
66
|
/**
|
|
48
67
|
* Transaction ID of the notification
|
|
49
68
|
*/
|
|
50
69
|
transactionId: string;
|
|
70
|
+
/**
|
|
71
|
+
* Template ID of the notification
|
|
72
|
+
*/
|
|
73
|
+
templateId?: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Digested Notification ID
|
|
76
|
+
*/
|
|
77
|
+
digestedNotificationId?: string | undefined;
|
|
51
78
|
/**
|
|
52
79
|
* Creation time of the notification
|
|
53
80
|
*/
|
|
54
81
|
createdAt?: string | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Last updated time of the notification
|
|
84
|
+
*/
|
|
85
|
+
updatedAt?: string | undefined;
|
|
55
86
|
channels?: Array<StepTypeEnum> | undefined;
|
|
56
87
|
/**
|
|
57
88
|
* Subscriber of the notification
|
|
@@ -65,8 +96,173 @@ export type ActivityNotificationResponseDto = {
|
|
|
65
96
|
* Jobs of the notification
|
|
66
97
|
*/
|
|
67
98
|
jobs?: Array<ActivityNotificationJobResponseDto> | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Payload of the notification
|
|
101
|
+
*/
|
|
102
|
+
payload?: ActivityNotificationResponseDtoPayload | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Tags associated with the notification
|
|
105
|
+
*/
|
|
106
|
+
tags?: Array<string> | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Controls associated with the notification
|
|
109
|
+
*/
|
|
110
|
+
controls?: Controls | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* To field for subscriber definition
|
|
113
|
+
*/
|
|
114
|
+
to?: ActivityNotificationResponseDtoTo | undefined;
|
|
68
115
|
};
|
|
69
116
|
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const ActivityNotificationResponseDtoPayload$inboundSchema: z.ZodType<
|
|
119
|
+
ActivityNotificationResponseDtoPayload,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
unknown
|
|
122
|
+
> = z.object({});
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export type ActivityNotificationResponseDtoPayload$Outbound = {};
|
|
126
|
+
|
|
127
|
+
/** @internal */
|
|
128
|
+
export const ActivityNotificationResponseDtoPayload$outboundSchema: z.ZodType<
|
|
129
|
+
ActivityNotificationResponseDtoPayload$Outbound,
|
|
130
|
+
z.ZodTypeDef,
|
|
131
|
+
ActivityNotificationResponseDtoPayload
|
|
132
|
+
> = z.object({});
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
|
+
*/
|
|
138
|
+
export namespace ActivityNotificationResponseDtoPayload$ {
|
|
139
|
+
/** @deprecated use `ActivityNotificationResponseDtoPayload$inboundSchema` instead. */
|
|
140
|
+
export const inboundSchema =
|
|
141
|
+
ActivityNotificationResponseDtoPayload$inboundSchema;
|
|
142
|
+
/** @deprecated use `ActivityNotificationResponseDtoPayload$outboundSchema` instead. */
|
|
143
|
+
export const outboundSchema =
|
|
144
|
+
ActivityNotificationResponseDtoPayload$outboundSchema;
|
|
145
|
+
/** @deprecated use `ActivityNotificationResponseDtoPayload$Outbound` instead. */
|
|
146
|
+
export type Outbound = ActivityNotificationResponseDtoPayload$Outbound;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function activityNotificationResponseDtoPayloadToJSON(
|
|
150
|
+
activityNotificationResponseDtoPayload:
|
|
151
|
+
ActivityNotificationResponseDtoPayload,
|
|
152
|
+
): string {
|
|
153
|
+
return JSON.stringify(
|
|
154
|
+
ActivityNotificationResponseDtoPayload$outboundSchema.parse(
|
|
155
|
+
activityNotificationResponseDtoPayload,
|
|
156
|
+
),
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function activityNotificationResponseDtoPayloadFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<ActivityNotificationResponseDtoPayload, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) =>
|
|
166
|
+
ActivityNotificationResponseDtoPayload$inboundSchema.parse(JSON.parse(x)),
|
|
167
|
+
`Failed to parse 'ActivityNotificationResponseDtoPayload' from JSON`,
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** @internal */
|
|
172
|
+
export const Controls$inboundSchema: z.ZodType<
|
|
173
|
+
Controls,
|
|
174
|
+
z.ZodTypeDef,
|
|
175
|
+
unknown
|
|
176
|
+
> = z.object({});
|
|
177
|
+
|
|
178
|
+
/** @internal */
|
|
179
|
+
export type Controls$Outbound = {};
|
|
180
|
+
|
|
181
|
+
/** @internal */
|
|
182
|
+
export const Controls$outboundSchema: z.ZodType<
|
|
183
|
+
Controls$Outbound,
|
|
184
|
+
z.ZodTypeDef,
|
|
185
|
+
Controls
|
|
186
|
+
> = z.object({});
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @internal
|
|
190
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
191
|
+
*/
|
|
192
|
+
export namespace Controls$ {
|
|
193
|
+
/** @deprecated use `Controls$inboundSchema` instead. */
|
|
194
|
+
export const inboundSchema = Controls$inboundSchema;
|
|
195
|
+
/** @deprecated use `Controls$outboundSchema` instead. */
|
|
196
|
+
export const outboundSchema = Controls$outboundSchema;
|
|
197
|
+
/** @deprecated use `Controls$Outbound` instead. */
|
|
198
|
+
export type Outbound = Controls$Outbound;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export function controlsToJSON(controls: Controls): string {
|
|
202
|
+
return JSON.stringify(Controls$outboundSchema.parse(controls));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export function controlsFromJSON(
|
|
206
|
+
jsonString: string,
|
|
207
|
+
): SafeParseResult<Controls, SDKValidationError> {
|
|
208
|
+
return safeParse(
|
|
209
|
+
jsonString,
|
|
210
|
+
(x) => Controls$inboundSchema.parse(JSON.parse(x)),
|
|
211
|
+
`Failed to parse 'Controls' from JSON`,
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/** @internal */
|
|
216
|
+
export const ActivityNotificationResponseDtoTo$inboundSchema: z.ZodType<
|
|
217
|
+
ActivityNotificationResponseDtoTo,
|
|
218
|
+
z.ZodTypeDef,
|
|
219
|
+
unknown
|
|
220
|
+
> = z.object({});
|
|
221
|
+
|
|
222
|
+
/** @internal */
|
|
223
|
+
export type ActivityNotificationResponseDtoTo$Outbound = {};
|
|
224
|
+
|
|
225
|
+
/** @internal */
|
|
226
|
+
export const ActivityNotificationResponseDtoTo$outboundSchema: z.ZodType<
|
|
227
|
+
ActivityNotificationResponseDtoTo$Outbound,
|
|
228
|
+
z.ZodTypeDef,
|
|
229
|
+
ActivityNotificationResponseDtoTo
|
|
230
|
+
> = z.object({});
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
235
|
+
*/
|
|
236
|
+
export namespace ActivityNotificationResponseDtoTo$ {
|
|
237
|
+
/** @deprecated use `ActivityNotificationResponseDtoTo$inboundSchema` instead. */
|
|
238
|
+
export const inboundSchema = ActivityNotificationResponseDtoTo$inboundSchema;
|
|
239
|
+
/** @deprecated use `ActivityNotificationResponseDtoTo$outboundSchema` instead. */
|
|
240
|
+
export const outboundSchema =
|
|
241
|
+
ActivityNotificationResponseDtoTo$outboundSchema;
|
|
242
|
+
/** @deprecated use `ActivityNotificationResponseDtoTo$Outbound` instead. */
|
|
243
|
+
export type Outbound = ActivityNotificationResponseDtoTo$Outbound;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export function activityNotificationResponseDtoToToJSON(
|
|
247
|
+
activityNotificationResponseDtoTo: ActivityNotificationResponseDtoTo,
|
|
248
|
+
): string {
|
|
249
|
+
return JSON.stringify(
|
|
250
|
+
ActivityNotificationResponseDtoTo$outboundSchema.parse(
|
|
251
|
+
activityNotificationResponseDtoTo,
|
|
252
|
+
),
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export function activityNotificationResponseDtoToFromJSON(
|
|
257
|
+
jsonString: string,
|
|
258
|
+
): SafeParseResult<ActivityNotificationResponseDtoTo, SDKValidationError> {
|
|
259
|
+
return safeParse(
|
|
260
|
+
jsonString,
|
|
261
|
+
(x) => ActivityNotificationResponseDtoTo$inboundSchema.parse(JSON.parse(x)),
|
|
262
|
+
`Failed to parse 'ActivityNotificationResponseDtoTo' from JSON`,
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
|
|
70
266
|
/** @internal */
|
|
71
267
|
export const ActivityNotificationResponseDto$inboundSchema: z.ZodType<
|
|
72
268
|
ActivityNotificationResponseDto,
|
|
@@ -76,18 +272,30 @@ export const ActivityNotificationResponseDto$inboundSchema: z.ZodType<
|
|
|
76
272
|
_id: z.string().optional(),
|
|
77
273
|
_environmentId: z.string(),
|
|
78
274
|
_organizationId: z.string(),
|
|
275
|
+
_subscriberId: z.string(),
|
|
79
276
|
transactionId: z.string(),
|
|
277
|
+
_templateId: z.string().optional(),
|
|
278
|
+
_digestedNotificationId: z.string().optional(),
|
|
80
279
|
createdAt: z.string().optional(),
|
|
280
|
+
updatedAt: z.string().optional(),
|
|
81
281
|
channels: z.array(StepTypeEnum$inboundSchema).optional(),
|
|
82
282
|
subscriber: ActivityNotificationSubscriberResponseDto$inboundSchema
|
|
83
283
|
.optional(),
|
|
84
284
|
template: ActivityNotificationTemplateResponseDto$inboundSchema.optional(),
|
|
85
285
|
jobs: z.array(ActivityNotificationJobResponseDto$inboundSchema).optional(),
|
|
286
|
+
payload: z.lazy(() => ActivityNotificationResponseDtoPayload$inboundSchema)
|
|
287
|
+
.optional(),
|
|
288
|
+
tags: z.array(z.string()).optional(),
|
|
289
|
+
controls: z.lazy(() => Controls$inboundSchema).optional(),
|
|
290
|
+
to: z.lazy(() => ActivityNotificationResponseDtoTo$inboundSchema).optional(),
|
|
86
291
|
}).transform((v) => {
|
|
87
292
|
return remap$(v, {
|
|
88
293
|
"_id": "id",
|
|
89
294
|
"_environmentId": "environmentId",
|
|
90
295
|
"_organizationId": "organizationId",
|
|
296
|
+
"_subscriberId": "subscriberId",
|
|
297
|
+
"_templateId": "templateId",
|
|
298
|
+
"_digestedNotificationId": "digestedNotificationId",
|
|
91
299
|
});
|
|
92
300
|
});
|
|
93
301
|
|
|
@@ -96,12 +304,20 @@ export type ActivityNotificationResponseDto$Outbound = {
|
|
|
96
304
|
_id?: string | undefined;
|
|
97
305
|
_environmentId: string;
|
|
98
306
|
_organizationId: string;
|
|
307
|
+
_subscriberId: string;
|
|
99
308
|
transactionId: string;
|
|
309
|
+
_templateId?: string | undefined;
|
|
310
|
+
_digestedNotificationId?: string | undefined;
|
|
100
311
|
createdAt?: string | undefined;
|
|
312
|
+
updatedAt?: string | undefined;
|
|
101
313
|
channels?: Array<string> | undefined;
|
|
102
314
|
subscriber?: ActivityNotificationSubscriberResponseDto$Outbound | undefined;
|
|
103
315
|
template?: ActivityNotificationTemplateResponseDto$Outbound | undefined;
|
|
104
316
|
jobs?: Array<ActivityNotificationJobResponseDto$Outbound> | undefined;
|
|
317
|
+
payload?: ActivityNotificationResponseDtoPayload$Outbound | undefined;
|
|
318
|
+
tags?: Array<string> | undefined;
|
|
319
|
+
controls?: Controls$Outbound | undefined;
|
|
320
|
+
to?: ActivityNotificationResponseDtoTo$Outbound | undefined;
|
|
105
321
|
};
|
|
106
322
|
|
|
107
323
|
/** @internal */
|
|
@@ -113,18 +329,30 @@ export const ActivityNotificationResponseDto$outboundSchema: z.ZodType<
|
|
|
113
329
|
id: z.string().optional(),
|
|
114
330
|
environmentId: z.string(),
|
|
115
331
|
organizationId: z.string(),
|
|
332
|
+
subscriberId: z.string(),
|
|
116
333
|
transactionId: z.string(),
|
|
334
|
+
templateId: z.string().optional(),
|
|
335
|
+
digestedNotificationId: z.string().optional(),
|
|
117
336
|
createdAt: z.string().optional(),
|
|
337
|
+
updatedAt: z.string().optional(),
|
|
118
338
|
channels: z.array(StepTypeEnum$outboundSchema).optional(),
|
|
119
339
|
subscriber: ActivityNotificationSubscriberResponseDto$outboundSchema
|
|
120
340
|
.optional(),
|
|
121
341
|
template: ActivityNotificationTemplateResponseDto$outboundSchema.optional(),
|
|
122
342
|
jobs: z.array(ActivityNotificationJobResponseDto$outboundSchema).optional(),
|
|
343
|
+
payload: z.lazy(() => ActivityNotificationResponseDtoPayload$outboundSchema)
|
|
344
|
+
.optional(),
|
|
345
|
+
tags: z.array(z.string()).optional(),
|
|
346
|
+
controls: z.lazy(() => Controls$outboundSchema).optional(),
|
|
347
|
+
to: z.lazy(() => ActivityNotificationResponseDtoTo$outboundSchema).optional(),
|
|
123
348
|
}).transform((v) => {
|
|
124
349
|
return remap$(v, {
|
|
125
350
|
id: "_id",
|
|
126
351
|
environmentId: "_environmentId",
|
|
127
352
|
organizationId: "_organizationId",
|
|
353
|
+
subscriberId: "_subscriberId",
|
|
354
|
+
templateId: "_templateId",
|
|
355
|
+
digestedNotificationId: "_digestedNotificationId",
|
|
128
356
|
});
|
|
129
357
|
});
|
|
130
358
|
|
|
@@ -14,11 +14,31 @@ import {
|
|
|
14
14
|
MessageTemplateDto$outboundSchema,
|
|
15
15
|
} from "./messagetemplatedto.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
17
|
+
StepFilterDto,
|
|
18
|
+
StepFilterDto$inboundSchema,
|
|
19
|
+
StepFilterDto$Outbound,
|
|
20
|
+
StepFilterDto$outboundSchema,
|
|
21
|
+
} from "./stepfilterdto.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Reply callback settings
|
|
25
|
+
*/
|
|
26
|
+
export type ActivityNotificationStepResponseDtoReplyCallback = {};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Control variables
|
|
30
|
+
*/
|
|
31
|
+
export type ControlVariables = {};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Metadata for the workflow step
|
|
35
|
+
*/
|
|
36
|
+
export type Metadata = {};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Step issues
|
|
40
|
+
*/
|
|
41
|
+
export type Issues = {};
|
|
22
42
|
|
|
23
43
|
export type ActivityNotificationStepResponseDto = {
|
|
24
44
|
/**
|
|
@@ -29,16 +49,243 @@ export type ActivityNotificationStepResponseDto = {
|
|
|
29
49
|
* Whether the step is active or not
|
|
30
50
|
*/
|
|
31
51
|
active: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Reply callback settings
|
|
54
|
+
*/
|
|
55
|
+
replyCallback?: ActivityNotificationStepResponseDtoReplyCallback | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Control variables
|
|
58
|
+
*/
|
|
59
|
+
controlVariables?: ControlVariables | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Metadata for the workflow step
|
|
62
|
+
*/
|
|
63
|
+
metadata?: Metadata | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Step issues
|
|
66
|
+
*/
|
|
67
|
+
issues?: Issues | undefined;
|
|
32
68
|
/**
|
|
33
69
|
* Filter criteria for the step
|
|
34
70
|
*/
|
|
35
|
-
filters: Array<
|
|
71
|
+
filters: Array<StepFilterDto>;
|
|
36
72
|
/**
|
|
37
73
|
* Optional template for the step
|
|
38
74
|
*/
|
|
39
75
|
template?: MessageTemplateDto | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Variants of the step
|
|
78
|
+
*/
|
|
79
|
+
variants?: Array<ActivityNotificationStepResponseDto> | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* The identifier for the template associated with this step
|
|
82
|
+
*/
|
|
83
|
+
templateId: string;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the step
|
|
86
|
+
*/
|
|
87
|
+
name?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* The unique identifier for the parent step
|
|
90
|
+
*/
|
|
91
|
+
parentId?: string | null | undefined;
|
|
40
92
|
};
|
|
41
93
|
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const ActivityNotificationStepResponseDtoReplyCallback$inboundSchema:
|
|
96
|
+
z.ZodType<
|
|
97
|
+
ActivityNotificationStepResponseDtoReplyCallback,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
unknown
|
|
100
|
+
> = z.object({});
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export type ActivityNotificationStepResponseDtoReplyCallback$Outbound = {};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const ActivityNotificationStepResponseDtoReplyCallback$outboundSchema:
|
|
107
|
+
z.ZodType<
|
|
108
|
+
ActivityNotificationStepResponseDtoReplyCallback$Outbound,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
ActivityNotificationStepResponseDtoReplyCallback
|
|
111
|
+
> = z.object({});
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
116
|
+
*/
|
|
117
|
+
export namespace ActivityNotificationStepResponseDtoReplyCallback$ {
|
|
118
|
+
/** @deprecated use `ActivityNotificationStepResponseDtoReplyCallback$inboundSchema` instead. */
|
|
119
|
+
export const inboundSchema =
|
|
120
|
+
ActivityNotificationStepResponseDtoReplyCallback$inboundSchema;
|
|
121
|
+
/** @deprecated use `ActivityNotificationStepResponseDtoReplyCallback$outboundSchema` instead. */
|
|
122
|
+
export const outboundSchema =
|
|
123
|
+
ActivityNotificationStepResponseDtoReplyCallback$outboundSchema;
|
|
124
|
+
/** @deprecated use `ActivityNotificationStepResponseDtoReplyCallback$Outbound` instead. */
|
|
125
|
+
export type Outbound =
|
|
126
|
+
ActivityNotificationStepResponseDtoReplyCallback$Outbound;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function activityNotificationStepResponseDtoReplyCallbackToJSON(
|
|
130
|
+
activityNotificationStepResponseDtoReplyCallback:
|
|
131
|
+
ActivityNotificationStepResponseDtoReplyCallback,
|
|
132
|
+
): string {
|
|
133
|
+
return JSON.stringify(
|
|
134
|
+
ActivityNotificationStepResponseDtoReplyCallback$outboundSchema.parse(
|
|
135
|
+
activityNotificationStepResponseDtoReplyCallback,
|
|
136
|
+
),
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function activityNotificationStepResponseDtoReplyCallbackFromJSON(
|
|
141
|
+
jsonString: string,
|
|
142
|
+
): SafeParseResult<
|
|
143
|
+
ActivityNotificationStepResponseDtoReplyCallback,
|
|
144
|
+
SDKValidationError
|
|
145
|
+
> {
|
|
146
|
+
return safeParse(
|
|
147
|
+
jsonString,
|
|
148
|
+
(x) =>
|
|
149
|
+
ActivityNotificationStepResponseDtoReplyCallback$inboundSchema.parse(
|
|
150
|
+
JSON.parse(x),
|
|
151
|
+
),
|
|
152
|
+
`Failed to parse 'ActivityNotificationStepResponseDtoReplyCallback' from JSON`,
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** @internal */
|
|
157
|
+
export const ControlVariables$inboundSchema: z.ZodType<
|
|
158
|
+
ControlVariables,
|
|
159
|
+
z.ZodTypeDef,
|
|
160
|
+
unknown
|
|
161
|
+
> = z.object({});
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export type ControlVariables$Outbound = {};
|
|
165
|
+
|
|
166
|
+
/** @internal */
|
|
167
|
+
export const ControlVariables$outboundSchema: z.ZodType<
|
|
168
|
+
ControlVariables$Outbound,
|
|
169
|
+
z.ZodTypeDef,
|
|
170
|
+
ControlVariables
|
|
171
|
+
> = z.object({});
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
176
|
+
*/
|
|
177
|
+
export namespace ControlVariables$ {
|
|
178
|
+
/** @deprecated use `ControlVariables$inboundSchema` instead. */
|
|
179
|
+
export const inboundSchema = ControlVariables$inboundSchema;
|
|
180
|
+
/** @deprecated use `ControlVariables$outboundSchema` instead. */
|
|
181
|
+
export const outboundSchema = ControlVariables$outboundSchema;
|
|
182
|
+
/** @deprecated use `ControlVariables$Outbound` instead. */
|
|
183
|
+
export type Outbound = ControlVariables$Outbound;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export function controlVariablesToJSON(
|
|
187
|
+
controlVariables: ControlVariables,
|
|
188
|
+
): string {
|
|
189
|
+
return JSON.stringify(
|
|
190
|
+
ControlVariables$outboundSchema.parse(controlVariables),
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export function controlVariablesFromJSON(
|
|
195
|
+
jsonString: string,
|
|
196
|
+
): SafeParseResult<ControlVariables, SDKValidationError> {
|
|
197
|
+
return safeParse(
|
|
198
|
+
jsonString,
|
|
199
|
+
(x) => ControlVariables$inboundSchema.parse(JSON.parse(x)),
|
|
200
|
+
`Failed to parse 'ControlVariables' from JSON`,
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/** @internal */
|
|
205
|
+
export const Metadata$inboundSchema: z.ZodType<
|
|
206
|
+
Metadata,
|
|
207
|
+
z.ZodTypeDef,
|
|
208
|
+
unknown
|
|
209
|
+
> = z.object({});
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export type Metadata$Outbound = {};
|
|
213
|
+
|
|
214
|
+
/** @internal */
|
|
215
|
+
export const Metadata$outboundSchema: z.ZodType<
|
|
216
|
+
Metadata$Outbound,
|
|
217
|
+
z.ZodTypeDef,
|
|
218
|
+
Metadata
|
|
219
|
+
> = z.object({});
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
224
|
+
*/
|
|
225
|
+
export namespace Metadata$ {
|
|
226
|
+
/** @deprecated use `Metadata$inboundSchema` instead. */
|
|
227
|
+
export const inboundSchema = Metadata$inboundSchema;
|
|
228
|
+
/** @deprecated use `Metadata$outboundSchema` instead. */
|
|
229
|
+
export const outboundSchema = Metadata$outboundSchema;
|
|
230
|
+
/** @deprecated use `Metadata$Outbound` instead. */
|
|
231
|
+
export type Outbound = Metadata$Outbound;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export function metadataToJSON(metadata: Metadata): string {
|
|
235
|
+
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export function metadataFromJSON(
|
|
239
|
+
jsonString: string,
|
|
240
|
+
): SafeParseResult<Metadata, SDKValidationError> {
|
|
241
|
+
return safeParse(
|
|
242
|
+
jsonString,
|
|
243
|
+
(x) => Metadata$inboundSchema.parse(JSON.parse(x)),
|
|
244
|
+
`Failed to parse 'Metadata' from JSON`,
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/** @internal */
|
|
249
|
+
export const Issues$inboundSchema: z.ZodType<Issues, z.ZodTypeDef, unknown> = z
|
|
250
|
+
.object({});
|
|
251
|
+
|
|
252
|
+
/** @internal */
|
|
253
|
+
export type Issues$Outbound = {};
|
|
254
|
+
|
|
255
|
+
/** @internal */
|
|
256
|
+
export const Issues$outboundSchema: z.ZodType<
|
|
257
|
+
Issues$Outbound,
|
|
258
|
+
z.ZodTypeDef,
|
|
259
|
+
Issues
|
|
260
|
+
> = z.object({});
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @internal
|
|
264
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
265
|
+
*/
|
|
266
|
+
export namespace Issues$ {
|
|
267
|
+
/** @deprecated use `Issues$inboundSchema` instead. */
|
|
268
|
+
export const inboundSchema = Issues$inboundSchema;
|
|
269
|
+
/** @deprecated use `Issues$outboundSchema` instead. */
|
|
270
|
+
export const outboundSchema = Issues$outboundSchema;
|
|
271
|
+
/** @deprecated use `Issues$Outbound` instead. */
|
|
272
|
+
export type Outbound = Issues$Outbound;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export function issuesToJSON(issues: Issues): string {
|
|
276
|
+
return JSON.stringify(Issues$outboundSchema.parse(issues));
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export function issuesFromJSON(
|
|
280
|
+
jsonString: string,
|
|
281
|
+
): SafeParseResult<Issues, SDKValidationError> {
|
|
282
|
+
return safeParse(
|
|
283
|
+
jsonString,
|
|
284
|
+
(x) => Issues$inboundSchema.parse(JSON.parse(x)),
|
|
285
|
+
`Failed to parse 'Issues' from JSON`,
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
|
|
42
289
|
/** @internal */
|
|
43
290
|
export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
|
|
44
291
|
ActivityNotificationStepResponseDto,
|
|
@@ -47,11 +294,25 @@ export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
|
|
|
47
294
|
> = z.object({
|
|
48
295
|
_id: z.string(),
|
|
49
296
|
active: z.boolean(),
|
|
50
|
-
|
|
297
|
+
replyCallback: z.lazy(() =>
|
|
298
|
+
ActivityNotificationStepResponseDtoReplyCallback$inboundSchema
|
|
299
|
+
).optional(),
|
|
300
|
+
controlVariables: z.lazy(() => ControlVariables$inboundSchema).optional(),
|
|
301
|
+
metadata: z.lazy(() => Metadata$inboundSchema).optional(),
|
|
302
|
+
issues: z.lazy(() => Issues$inboundSchema).optional(),
|
|
303
|
+
filters: z.array(StepFilterDto$inboundSchema),
|
|
51
304
|
template: MessageTemplateDto$inboundSchema.optional(),
|
|
305
|
+
variants: z.array(
|
|
306
|
+
z.lazy(() => ActivityNotificationStepResponseDto$inboundSchema),
|
|
307
|
+
).optional(),
|
|
308
|
+
_templateId: z.string(),
|
|
309
|
+
name: z.string().optional(),
|
|
310
|
+
_parentId: z.nullable(z.string()).optional(),
|
|
52
311
|
}).transform((v) => {
|
|
53
312
|
return remap$(v, {
|
|
54
313
|
"_id": "id",
|
|
314
|
+
"_templateId": "templateId",
|
|
315
|
+
"_parentId": "parentId",
|
|
55
316
|
});
|
|
56
317
|
});
|
|
57
318
|
|
|
@@ -59,8 +320,18 @@ export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
|
|
|
59
320
|
export type ActivityNotificationStepResponseDto$Outbound = {
|
|
60
321
|
_id: string;
|
|
61
322
|
active: boolean;
|
|
62
|
-
|
|
323
|
+
replyCallback?:
|
|
324
|
+
| ActivityNotificationStepResponseDtoReplyCallback$Outbound
|
|
325
|
+
| undefined;
|
|
326
|
+
controlVariables?: ControlVariables$Outbound | undefined;
|
|
327
|
+
metadata?: Metadata$Outbound | undefined;
|
|
328
|
+
issues?: Issues$Outbound | undefined;
|
|
329
|
+
filters: Array<StepFilterDto$Outbound>;
|
|
63
330
|
template?: MessageTemplateDto$Outbound | undefined;
|
|
331
|
+
variants?: Array<ActivityNotificationStepResponseDto$Outbound> | undefined;
|
|
332
|
+
_templateId: string;
|
|
333
|
+
name?: string | undefined;
|
|
334
|
+
_parentId?: string | null | undefined;
|
|
64
335
|
};
|
|
65
336
|
|
|
66
337
|
/** @internal */
|
|
@@ -71,11 +342,25 @@ export const ActivityNotificationStepResponseDto$outboundSchema: z.ZodType<
|
|
|
71
342
|
> = z.object({
|
|
72
343
|
id: z.string(),
|
|
73
344
|
active: z.boolean(),
|
|
74
|
-
|
|
345
|
+
replyCallback: z.lazy(() =>
|
|
346
|
+
ActivityNotificationStepResponseDtoReplyCallback$outboundSchema
|
|
347
|
+
).optional(),
|
|
348
|
+
controlVariables: z.lazy(() => ControlVariables$outboundSchema).optional(),
|
|
349
|
+
metadata: z.lazy(() => Metadata$outboundSchema).optional(),
|
|
350
|
+
issues: z.lazy(() => Issues$outboundSchema).optional(),
|
|
351
|
+
filters: z.array(StepFilterDto$outboundSchema),
|
|
75
352
|
template: MessageTemplateDto$outboundSchema.optional(),
|
|
353
|
+
variants: z.array(
|
|
354
|
+
z.lazy(() => ActivityNotificationStepResponseDto$outboundSchema),
|
|
355
|
+
).optional(),
|
|
356
|
+
templateId: z.string(),
|
|
357
|
+
name: z.string().optional(),
|
|
358
|
+
parentId: z.nullable(z.string()).optional(),
|
|
76
359
|
}).transform((v) => {
|
|
77
360
|
return remap$(v, {
|
|
78
361
|
id: "_id",
|
|
362
|
+
templateId: "_templateId",
|
|
363
|
+
parentId: "_parentId",
|
|
79
364
|
});
|
|
80
365
|
});
|
|
81
366
|
|