@wix/auto_sdk_events_notifications 1.0.12 → 1.0.14

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 (134) hide show
  1. package/build/{internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-DIjek3EA.d.mts} +277 -390
  2. package/build/{cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-DIjek3EA.d.ts} +277 -390
  3. package/build/index.d.mts +38 -0
  4. package/build/index.d.ts +38 -0
  5. package/build/index.js +857 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +778 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-DIjek3EA.d.mts} +277 -390
  10. package/build/{es/src/events-notifications-v2-notification-config-notifications.universal.d.ts → internal/events-notifications-v2-notification-config-notifications.universal-DIjek3EA.d.ts} +277 -390
  11. package/build/internal/index.d.mts +38 -0
  12. package/build/internal/index.d.ts +38 -0
  13. package/build/internal/index.js +857 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +778 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +261 -0
  18. package/build/internal/meta.d.ts +261 -0
  19. package/build/internal/meta.js +258 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +229 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +261 -0
  24. package/build/meta.d.ts +261 -0
  25. package/build/meta.js +258 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +229 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +14 -13
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  40. package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js +0 -69
  41. package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  42. package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  43. package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.js +0 -168
  44. package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  45. package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  46. package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.js +0 -87
  47. package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  48. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  49. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js +0 -101
  50. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  51. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3588
  52. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js +0 -570
  53. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  54. package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +0 -730
  55. package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  67. package/build/es/src/events-notifications-v2-notification-config-notifications.context.js +0 -14
  68. package/build/es/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  69. package/build/es/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  70. package/build/es/src/events-notifications-v2-notification-config-notifications.http.js +0 -162
  71. package/build/es/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  72. package/build/es/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  73. package/build/es/src/events-notifications-v2-notification-config-notifications.meta.js +0 -58
  74. package/build/es/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  75. package/build/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  76. package/build/es/src/events-notifications-v2-notification-config-notifications.public.js +0 -43
  77. package/build/es/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  78. package/build/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3588
  79. package/build/es/src/events-notifications-v2-notification-config-notifications.types.js +0 -566
  80. package/build/es/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  81. package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js +0 -700
  82. package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  93. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.js +0 -69
  94. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  95. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  96. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.js +0 -168
  97. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  98. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  99. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.js +0 -87
  100. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  101. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  102. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js +0 -101
  103. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  104. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3588
  105. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js +0 -570
  106. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  107. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +0 -730
  108. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  119. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.js +0 -14
  120. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  121. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  122. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.js +0 -162
  123. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  124. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  125. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.js +0 -58
  126. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  127. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  128. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js +0 -43
  129. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  130. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3588
  131. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js +0 -566
  132. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  133. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js +0 -700
  134. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
@@ -0,0 +1,778 @@
1
+ // src/events-notifications-v2-notification-config-notifications.public.ts
2
+ import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
3
+ import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
4
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
5
+ import { EventDefinition } from "@wix/sdk-types";
6
+
7
+ // src/events-notifications-v2-notification-config-notifications.universal.ts
8
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
9
+ import {
10
+ renameKeysFromSDKRequestToRESTRequest,
11
+ renameKeysFromRESTResponseToSDKResponse
12
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
13
+
14
+ // src/events-notifications-v2-notification-config-notifications.http.ts
15
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
16
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
17
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
18
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
19
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
20
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
21
+ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
22
+ const domainToMappings = {
23
+ "api._api_base_domain_": [
24
+ {
25
+ srcPath: "/events-notifications",
26
+ destPath: ""
27
+ }
28
+ ],
29
+ _: [
30
+ {
31
+ srcPath: "/_api/events-notifications",
32
+ destPath: ""
33
+ }
34
+ ],
35
+ "manage._base_domain_": [
36
+ {
37
+ srcPath: "/_api/events-notifications",
38
+ destPath: ""
39
+ }
40
+ ],
41
+ "www.wixapis.com": [
42
+ {
43
+ srcPath: "/events-notifications",
44
+ destPath: ""
45
+ },
46
+ {
47
+ srcPath: "/events/v2/notifications",
48
+ destPath: "/v2/notifications"
49
+ }
50
+ ]
51
+ };
52
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
53
+ }
54
+ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
55
+ const domainToMappings = {
56
+ "api._api_base_domain_": [
57
+ {
58
+ srcPath: "/events-notifications",
59
+ destPath: ""
60
+ }
61
+ ],
62
+ _: [
63
+ {
64
+ srcPath: "/_api/events-notifications",
65
+ destPath: ""
66
+ }
67
+ ],
68
+ "manage._base_domain_": [
69
+ {
70
+ srcPath: "/_api/events-notifications",
71
+ destPath: ""
72
+ }
73
+ ],
74
+ "www.wixapis.com": [
75
+ {
76
+ srcPath: "/events-notifications",
77
+ destPath: ""
78
+ },
79
+ {
80
+ srcPath: "/events/v2/notifications",
81
+ destPath: "/v2/notifications"
82
+ }
83
+ ]
84
+ };
85
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
86
+ }
87
+ var PACKAGE_NAME = "@wix/auto_sdk_events_notifications";
88
+ function triggerNotification(payload) {
89
+ function __triggerNotification({ host }) {
90
+ const metadata = {
91
+ entityFqdn: "wix.events.notifications.v2.notification_config",
92
+ method: "POST",
93
+ methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
94
+ packageName: PACKAGE_NAME,
95
+ url: resolveWixEventsNotificationsV2NotificationServiceUrl({
96
+ protoPath: "/v2/notifications/trigger",
97
+ data: payload,
98
+ host
99
+ }),
100
+ data: payload
101
+ };
102
+ return metadata;
103
+ }
104
+ return __triggerNotification;
105
+ }
106
+ function resolveNotificationConfig(payload) {
107
+ function __resolveNotificationConfig({ host }) {
108
+ const metadata = {
109
+ entityFqdn: "wix.events.notifications.v2.notification_config",
110
+ method: "GET",
111
+ methodFqn: "wix.events.notifications.v2.NotificationConfigManagement.ResolveNotificationConfig",
112
+ packageName: PACKAGE_NAME,
113
+ url: resolveWixEventsNotificationsV2NotificationConfigManagementUrl({
114
+ protoPath: "/v2/notification-configs/resolve/{notificationConfigId}",
115
+ data: payload,
116
+ host
117
+ }),
118
+ params: toURLSearchParams(payload),
119
+ transformResponse: (payload2) => transformPaths(payload2, [
120
+ {
121
+ transformFn: transformRESTTimestampToSDKTimestamp,
122
+ paths: [
123
+ { path: "notificationConfig.createdDate" },
124
+ { path: "notificationConfig.updatedDate" }
125
+ ]
126
+ }
127
+ ])
128
+ };
129
+ return metadata;
130
+ }
131
+ return __resolveNotificationConfig;
132
+ }
133
+ function upsertNotificationConfig(payload) {
134
+ function __upsertNotificationConfig({ host }) {
135
+ const serializedData = transformPaths(payload, [
136
+ {
137
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
138
+ paths: [{ path: "fieldMask" }]
139
+ },
140
+ {
141
+ transformFn: transformSDKTimestampToRESTTimestamp,
142
+ paths: [
143
+ { path: "notificationConfig.createdDate" },
144
+ { path: "notificationConfig.updatedDate" }
145
+ ]
146
+ }
147
+ ]);
148
+ const metadata = {
149
+ entityFqdn: "wix.events.notifications.v2.notification_config",
150
+ method: "POST",
151
+ methodFqn: "wix.events.notifications.v2.NotificationConfigManagement.UpsertNotificationConfig",
152
+ packageName: PACKAGE_NAME,
153
+ url: resolveWixEventsNotificationsV2NotificationConfigManagementUrl({
154
+ protoPath: "/v2/notification-configs/{notificationConfig.id}",
155
+ data: serializedData,
156
+ host
157
+ }),
158
+ data: serializedData,
159
+ transformResponse: (payload2) => transformPaths(payload2, [
160
+ {
161
+ transformFn: transformRESTTimestampToSDKTimestamp,
162
+ paths: [
163
+ { path: "notificationConfig.createdDate" },
164
+ { path: "notificationConfig.updatedDate" }
165
+ ]
166
+ }
167
+ ])
168
+ };
169
+ return metadata;
170
+ }
171
+ return __upsertNotificationConfig;
172
+ }
173
+
174
+ // src/events-notifications-v2-notification-config-notifications.universal.ts
175
+ var EmailNotificationType = /* @__PURE__ */ ((EmailNotificationType2) => {
176
+ EmailNotificationType2["UNKNOWN_NOTIFICATION_TYPE"] = "UNKNOWN_NOTIFICATION_TYPE";
177
+ EmailNotificationType2["EMAIL_RSVP_CONFIRMATION"] = "EMAIL_RSVP_CONFIRMATION";
178
+ EmailNotificationType2["EMAIL_NEW_SPOTS_AVAILABLE"] = "EMAIL_NEW_SPOTS_AVAILABLE";
179
+ EmailNotificationType2["EMAIL_EVENT_CANCELATION"] = "EMAIL_EVENT_CANCELATION";
180
+ EmailNotificationType2["EMAIL_UPCOMING_EVENT_REMINDER"] = "EMAIL_UPCOMING_EVENT_REMINDER";
181
+ EmailNotificationType2["EMAIL_ORDER_CONFIRMATION"] = "EMAIL_ORDER_CONFIRMATION";
182
+ EmailNotificationType2["EMAIL_TICKET_CONFIRMATION"] = "EMAIL_TICKET_CONFIRMATION";
183
+ EmailNotificationType2["EMAIL_INVOICE"] = "EMAIL_INVOICE";
184
+ return EmailNotificationType2;
185
+ })(EmailNotificationType || {});
186
+ var EmailNotificationReminderTime = /* @__PURE__ */ ((EmailNotificationReminderTime2) => {
187
+ EmailNotificationReminderTime2["UNKNOWN_REMINDER_TIME"] = "UNKNOWN_REMINDER_TIME";
188
+ EmailNotificationReminderTime2["INSTANT"] = "INSTANT";
189
+ EmailNotificationReminderTime2["BEFORE_1_DAY"] = "BEFORE_1_DAY";
190
+ EmailNotificationReminderTime2["BEFORE_3_DAYS"] = "BEFORE_3_DAYS";
191
+ EmailNotificationReminderTime2["BEFORE_1_WEEK"] = "BEFORE_1_WEEK";
192
+ EmailNotificationReminderTime2["BEFORE_1_HOUR"] = "BEFORE_1_HOUR";
193
+ EmailNotificationReminderTime2["BEFORE_30_MINUTES"] = "BEFORE_30_MINUTES";
194
+ return EmailNotificationReminderTime2;
195
+ })(EmailNotificationReminderTime || {});
196
+ var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
197
+ PushNotificationType2["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
198
+ PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
199
+ PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
200
+ PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
201
+ PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
202
+ return PushNotificationType2;
203
+ })(PushNotificationType || {});
204
+ var LocationType = /* @__PURE__ */ ((LocationType2) => {
205
+ LocationType2["VENUE"] = "VENUE";
206
+ LocationType2["ONLINE"] = "ONLINE";
207
+ return LocationType2;
208
+ })(LocationType || {});
209
+ var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
210
+ SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
211
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
212
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
213
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
214
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
215
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
216
+ SubdivisionType2["COUNTRY"] = "COUNTRY";
217
+ return SubdivisionType2;
218
+ })(SubdivisionType || {});
219
+ var Status = /* @__PURE__ */ ((Status2) => {
220
+ Status2["ONE_TIME"] = "ONE_TIME";
221
+ Status2["RECURRING"] = "RECURRING";
222
+ Status2["RECURRING_NEXT"] = "RECURRING_NEXT";
223
+ Status2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
224
+ Status2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
225
+ return Status2;
226
+ })(Status || {});
227
+ var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
228
+ EventStatus2["SCHEDULED"] = "SCHEDULED";
229
+ EventStatus2["STARTED"] = "STARTED";
230
+ EventStatus2["ENDED"] = "ENDED";
231
+ EventStatus2["CANCELED"] = "CANCELED";
232
+ return EventStatus2;
233
+ })(EventStatus || {});
234
+ var EventType = /* @__PURE__ */ ((EventType2) => {
235
+ EventType2["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
236
+ EventType2["RSVP"] = "RSVP";
237
+ EventType2["TICKETS"] = "TICKETS";
238
+ EventType2["EXTERNAL"] = "EXTERNAL";
239
+ EventType2["NO_REGISTRATION"] = "NO_REGISTRATION";
240
+ return EventType2;
241
+ })(EventType || {});
242
+ var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
243
+ RegistrationStatus2["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
244
+ RegistrationStatus2["CLOSED"] = "CLOSED";
245
+ RegistrationStatus2["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
246
+ RegistrationStatus2["OPEN_RSVP"] = "OPEN_RSVP";
247
+ RegistrationStatus2["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
248
+ RegistrationStatus2["OPEN_TICKETS"] = "OPEN_TICKETS";
249
+ RegistrationStatus2["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
250
+ RegistrationStatus2["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
251
+ return RegistrationStatus2;
252
+ })(RegistrationStatus || {});
253
+ var RsvpStatusOptions = /* @__PURE__ */ ((RsvpStatusOptions2) => {
254
+ RsvpStatusOptions2["YES_ONLY"] = "YES_ONLY";
255
+ RsvpStatusOptions2["YES_AND_NO"] = "YES_AND_NO";
256
+ return RsvpStatusOptions2;
257
+ })(RsvpStatusOptions || {});
258
+ var TaxType = /* @__PURE__ */ ((TaxType2) => {
259
+ TaxType2["INCLUDED"] = "INCLUDED";
260
+ TaxType2["ADDED"] = "ADDED";
261
+ TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
262
+ return TaxType2;
263
+ })(TaxType || {});
264
+ var VisitorType = /* @__PURE__ */ ((VisitorType2) => {
265
+ VisitorType2["VISITOR"] = "VISITOR";
266
+ VisitorType2["MEMBER"] = "MEMBER";
267
+ VisitorType2["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
268
+ return VisitorType2;
269
+ })(VisitorType || {});
270
+ var InputControlType = /* @__PURE__ */ ((InputControlType2) => {
271
+ InputControlType2["INPUT"] = "INPUT";
272
+ InputControlType2["TEXTAREA"] = "TEXTAREA";
273
+ InputControlType2["DROPDOWN"] = "DROPDOWN";
274
+ InputControlType2["RADIO"] = "RADIO";
275
+ InputControlType2["CHECKBOX"] = "CHECKBOX";
276
+ InputControlType2["NAME"] = "NAME";
277
+ InputControlType2["GUEST_CONTROL"] = "GUEST_CONTROL";
278
+ InputControlType2["ADDRESS_SHORT"] = "ADDRESS_SHORT";
279
+ InputControlType2["ADDRESS_FULL"] = "ADDRESS_FULL";
280
+ InputControlType2["DATE"] = "DATE";
281
+ return InputControlType2;
282
+ })(InputControlType || {});
283
+ var ValueType = /* @__PURE__ */ ((ValueType2) => {
284
+ ValueType2["TEXT"] = "TEXT";
285
+ ValueType2["NUMBER"] = "NUMBER";
286
+ ValueType2["TEXT_ARRAY"] = "TEXT_ARRAY";
287
+ ValueType2["DATE_TIME"] = "DATE_TIME";
288
+ ValueType2["ADDRESS"] = "ADDRESS";
289
+ return ValueType2;
290
+ })(ValueType || {});
291
+ var ConferenceType = /* @__PURE__ */ ((ConferenceType2) => {
292
+ ConferenceType2["MEETING"] = "MEETING";
293
+ ConferenceType2["WEBINAR"] = "WEBINAR";
294
+ return ConferenceType2;
295
+ })(ConferenceType || {});
296
+ var State = /* @__PURE__ */ ((State2) => {
297
+ State2["MANUAL"] = "MANUAL";
298
+ State2["AUTO"] = "AUTO";
299
+ State2["RECURRING_EVENT"] = "RECURRING_EVENT";
300
+ State2["HIDDEN"] = "HIDDEN";
301
+ return State2;
302
+ })(State || {});
303
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
304
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
305
+ NodeType2["TEXT"] = "TEXT";
306
+ NodeType2["HEADING"] = "HEADING";
307
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
308
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
309
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
310
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
311
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
312
+ NodeType2["VIDEO"] = "VIDEO";
313
+ NodeType2["DIVIDER"] = "DIVIDER";
314
+ NodeType2["FILE"] = "FILE";
315
+ NodeType2["GALLERY"] = "GALLERY";
316
+ NodeType2["GIF"] = "GIF";
317
+ NodeType2["HTML"] = "HTML";
318
+ NodeType2["IMAGE"] = "IMAGE";
319
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
320
+ NodeType2["MAP"] = "MAP";
321
+ NodeType2["POLL"] = "POLL";
322
+ NodeType2["APP_EMBED"] = "APP_EMBED";
323
+ NodeType2["BUTTON"] = "BUTTON";
324
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
325
+ NodeType2["TABLE"] = "TABLE";
326
+ NodeType2["EMBED"] = "EMBED";
327
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
328
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
329
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
330
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
331
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
332
+ NodeType2["EXTERNAL"] = "EXTERNAL";
333
+ NodeType2["AUDIO"] = "AUDIO";
334
+ NodeType2["CAPTION"] = "CAPTION";
335
+ NodeType2["LAYOUT"] = "LAYOUT";
336
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
337
+ return NodeType2;
338
+ })(NodeType || {});
339
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
340
+ WidthType2["CONTENT"] = "CONTENT";
341
+ WidthType2["SMALL"] = "SMALL";
342
+ WidthType2["ORIGINAL"] = "ORIGINAL";
343
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
344
+ return WidthType2;
345
+ })(WidthType || {});
346
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
347
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
348
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
349
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
350
+ return PluginContainerDataAlignment2;
351
+ })(PluginContainerDataAlignment || {});
352
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
353
+ ButtonDataType2["LINK"] = "LINK";
354
+ ButtonDataType2["ACTION"] = "ACTION";
355
+ return ButtonDataType2;
356
+ })(ButtonDataType || {});
357
+ var Target = /* @__PURE__ */ ((Target2) => {
358
+ Target2["SELF"] = "SELF";
359
+ Target2["BLANK"] = "BLANK";
360
+ Target2["PARENT"] = "PARENT";
361
+ Target2["TOP"] = "TOP";
362
+ return Target2;
363
+ })(Target || {});
364
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
365
+ TextAlignment2["AUTO"] = "AUTO";
366
+ TextAlignment2["LEFT"] = "LEFT";
367
+ TextAlignment2["RIGHT"] = "RIGHT";
368
+ TextAlignment2["CENTER"] = "CENTER";
369
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
370
+ return TextAlignment2;
371
+ })(TextAlignment || {});
372
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
373
+ LineStyle2["SINGLE"] = "SINGLE";
374
+ LineStyle2["DOUBLE"] = "DOUBLE";
375
+ LineStyle2["DASHED"] = "DASHED";
376
+ LineStyle2["DOTTED"] = "DOTTED";
377
+ return LineStyle2;
378
+ })(LineStyle || {});
379
+ var Width = /* @__PURE__ */ ((Width2) => {
380
+ Width2["LARGE"] = "LARGE";
381
+ Width2["MEDIUM"] = "MEDIUM";
382
+ Width2["SMALL"] = "SMALL";
383
+ return Width2;
384
+ })(Width || {});
385
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
386
+ Alignment2["CENTER"] = "CENTER";
387
+ Alignment2["LEFT"] = "LEFT";
388
+ Alignment2["RIGHT"] = "RIGHT";
389
+ return Alignment2;
390
+ })(Alignment || {});
391
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
392
+ ViewMode2["NONE"] = "NONE";
393
+ ViewMode2["FULL"] = "FULL";
394
+ ViewMode2["MINI"] = "MINI";
395
+ return ViewMode2;
396
+ })(ViewMode || {});
397
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
398
+ LayoutType2["COLLAGE"] = "COLLAGE";
399
+ LayoutType2["MASONRY"] = "MASONRY";
400
+ LayoutType2["GRID"] = "GRID";
401
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
402
+ LayoutType2["SLIDER"] = "SLIDER";
403
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
404
+ LayoutType2["PANORAMA"] = "PANORAMA";
405
+ LayoutType2["COLUMN"] = "COLUMN";
406
+ LayoutType2["MAGIC"] = "MAGIC";
407
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
408
+ return LayoutType2;
409
+ })(LayoutType || {});
410
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
411
+ Orientation2["ROWS"] = "ROWS";
412
+ Orientation2["COLUMNS"] = "COLUMNS";
413
+ return Orientation2;
414
+ })(Orientation || {});
415
+ var Crop = /* @__PURE__ */ ((Crop2) => {
416
+ Crop2["FILL"] = "FILL";
417
+ Crop2["FIT"] = "FIT";
418
+ return Crop2;
419
+ })(Crop || {});
420
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
421
+ ThumbnailsAlignment2["TOP"] = "TOP";
422
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
423
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
424
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
425
+ ThumbnailsAlignment2["NONE"] = "NONE";
426
+ return ThumbnailsAlignment2;
427
+ })(ThumbnailsAlignment || {});
428
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
429
+ GIFType2["NORMAL"] = "NORMAL";
430
+ GIFType2["STICKER"] = "STICKER";
431
+ return GIFType2;
432
+ })(GIFType || {});
433
+ var Source = /* @__PURE__ */ ((Source2) => {
434
+ Source2["HTML"] = "HTML";
435
+ Source2["ADSENSE"] = "ADSENSE";
436
+ return Source2;
437
+ })(Source || {});
438
+ var Position = /* @__PURE__ */ ((Position2) => {
439
+ Position2["START"] = "START";
440
+ Position2["END"] = "END";
441
+ Position2["TOP"] = "TOP";
442
+ Position2["HIDDEN"] = "HIDDEN";
443
+ return Position2;
444
+ })(Position || {});
445
+ var MapType = /* @__PURE__ */ ((MapType2) => {
446
+ MapType2["ROADMAP"] = "ROADMAP";
447
+ MapType2["SATELITE"] = "SATELITE";
448
+ MapType2["HYBRID"] = "HYBRID";
449
+ MapType2["TERRAIN"] = "TERRAIN";
450
+ return MapType2;
451
+ })(MapType || {});
452
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
453
+ ViewRole2["CREATOR"] = "CREATOR";
454
+ ViewRole2["VOTERS"] = "VOTERS";
455
+ ViewRole2["EVERYONE"] = "EVERYONE";
456
+ return ViewRole2;
457
+ })(ViewRole || {});
458
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
459
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
460
+ VoteRole2["ALL"] = "ALL";
461
+ return VoteRole2;
462
+ })(VoteRole || {});
463
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
464
+ PollLayoutType2["LIST"] = "LIST";
465
+ PollLayoutType2["GRID"] = "GRID";
466
+ return PollLayoutType2;
467
+ })(PollLayoutType || {});
468
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
469
+ PollLayoutDirection2["LTR"] = "LTR";
470
+ PollLayoutDirection2["RTL"] = "RTL";
471
+ return PollLayoutDirection2;
472
+ })(PollLayoutDirection || {});
473
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
474
+ BackgroundType2["COLOR"] = "COLOR";
475
+ BackgroundType2["IMAGE"] = "IMAGE";
476
+ BackgroundType2["GRADIENT"] = "GRADIENT";
477
+ return BackgroundType2;
478
+ })(BackgroundType || {});
479
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
480
+ DecorationType2["BOLD"] = "BOLD";
481
+ DecorationType2["ITALIC"] = "ITALIC";
482
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
483
+ DecorationType2["SPOILER"] = "SPOILER";
484
+ DecorationType2["ANCHOR"] = "ANCHOR";
485
+ DecorationType2["MENTION"] = "MENTION";
486
+ DecorationType2["LINK"] = "LINK";
487
+ DecorationType2["COLOR"] = "COLOR";
488
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
489
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
490
+ return DecorationType2;
491
+ })(DecorationType || {});
492
+ var FontType = /* @__PURE__ */ ((FontType2) => {
493
+ FontType2["PX"] = "PX";
494
+ FontType2["EM"] = "EM";
495
+ return FontType2;
496
+ })(FontType || {});
497
+ var AppType = /* @__PURE__ */ ((AppType2) => {
498
+ AppType2["PRODUCT"] = "PRODUCT";
499
+ AppType2["EVENT"] = "EVENT";
500
+ AppType2["BOOKING"] = "BOOKING";
501
+ return AppType2;
502
+ })(AppType || {});
503
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
504
+ InitialExpandedItems2["FIRST"] = "FIRST";
505
+ InitialExpandedItems2["ALL"] = "ALL";
506
+ InitialExpandedItems2["NONE"] = "NONE";
507
+ return InitialExpandedItems2;
508
+ })(InitialExpandedItems || {});
509
+ var Direction = /* @__PURE__ */ ((Direction2) => {
510
+ Direction2["LTR"] = "LTR";
511
+ Direction2["RTL"] = "RTL";
512
+ return Direction2;
513
+ })(Direction || {});
514
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
515
+ VerticalAlignment2["TOP"] = "TOP";
516
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
517
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
518
+ return VerticalAlignment2;
519
+ })(VerticalAlignment || {});
520
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
521
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
522
+ return NullValue2;
523
+ })(NullValue || {});
524
+ var Type = /* @__PURE__ */ ((Type2) => {
525
+ Type2["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
526
+ Type2["URGENT"] = "URGENT";
527
+ Type2["INFO"] = "INFO";
528
+ Type2["GENERAL"] = "GENERAL";
529
+ return Type2;
530
+ })(Type || {});
531
+ var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
532
+ OrderStatus2["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
533
+ OrderStatus2["FREE"] = "FREE";
534
+ OrderStatus2["PENDING"] = "PENDING";
535
+ OrderStatus2["PAID"] = "PAID";
536
+ OrderStatus2["OFFLINE_PENDING"] = "OFFLINE_PENDING";
537
+ OrderStatus2["INITIATED"] = "INITIATED";
538
+ OrderStatus2["CANCELED"] = "CANCELED";
539
+ OrderStatus2["DECLINED"] = "DECLINED";
540
+ OrderStatus2["AUTHORIZED"] = "AUTHORIZED";
541
+ OrderStatus2["VOIDED"] = "VOIDED";
542
+ OrderStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
543
+ return OrderStatus2;
544
+ })(OrderStatus || {});
545
+ var FeeName = /* @__PURE__ */ ((FeeName2) => {
546
+ FeeName2["WIX_FEE"] = "WIX_FEE";
547
+ return FeeName2;
548
+ })(FeeName || {});
549
+ var FeeType = /* @__PURE__ */ ((FeeType2) => {
550
+ FeeType2["FEE_ADDED"] = "FEE_ADDED";
551
+ FeeType2["FEE_INCLUDED"] = "FEE_INCLUDED";
552
+ FeeType2["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
553
+ return FeeType2;
554
+ })(FeeType || {});
555
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
556
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
557
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
558
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
559
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
560
+ WebhookIdentityType2["APP"] = "APP";
561
+ return WebhookIdentityType2;
562
+ })(WebhookIdentityType || {});
563
+ async function triggerNotification2(options) {
564
+ const { httpClient, sideEffects } = arguments[1];
565
+ const payload = renameKeysFromSDKRequestToRESTRequest({
566
+ emailNotificationType: options?.emailNotificationType,
567
+ pushNotificationType: options?.pushNotificationType,
568
+ rsvpGuest: options?.rsvpGuest,
569
+ orderGuest: options?.orderGuest,
570
+ eventGuests: options?.eventGuests,
571
+ ticketGuest: options?.ticketGuest
572
+ });
573
+ const reqOpts = triggerNotification(
574
+ payload
575
+ );
576
+ sideEffects?.onSiteCall?.();
577
+ try {
578
+ const result = await httpClient.request(reqOpts);
579
+ sideEffects?.onSuccess?.(result);
580
+ } catch (err) {
581
+ const transformedError = sdkTransformError(
582
+ err,
583
+ {
584
+ spreadPathsToArguments: {},
585
+ explicitPathsToArguments: {
586
+ emailNotificationType: "$[0].emailNotificationType",
587
+ pushNotificationType: "$[0].pushNotificationType",
588
+ rsvpGuest: "$[0].rsvpGuest",
589
+ orderGuest: "$[0].orderGuest",
590
+ eventGuests: "$[0].eventGuests",
591
+ ticketGuest: "$[0].ticketGuest"
592
+ },
593
+ singleArgumentUnchanged: false
594
+ },
595
+ ["options"]
596
+ );
597
+ sideEffects?.onError?.(err);
598
+ throw transformedError;
599
+ }
600
+ }
601
+ async function resolveNotificationConfig2(notificationConfigId) {
602
+ const { httpClient, sideEffects } = arguments[1];
603
+ const payload = renameKeysFromSDKRequestToRESTRequest({
604
+ notificationConfigId
605
+ });
606
+ const reqOpts = resolveNotificationConfig(
607
+ payload
608
+ );
609
+ sideEffects?.onSiteCall?.();
610
+ try {
611
+ const result = await httpClient.request(reqOpts);
612
+ sideEffects?.onSuccess?.(result);
613
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
614
+ } catch (err) {
615
+ const transformedError = sdkTransformError(
616
+ err,
617
+ {
618
+ spreadPathsToArguments: {},
619
+ explicitPathsToArguments: { notificationConfigId: "$[0]" },
620
+ singleArgumentUnchanged: false
621
+ },
622
+ ["notificationConfigId"]
623
+ );
624
+ sideEffects?.onError?.(err);
625
+ throw transformedError;
626
+ }
627
+ }
628
+ async function upsertNotificationConfig2(_id, notificationConfig) {
629
+ const { httpClient, sideEffects } = arguments[2];
630
+ const payload = renameKeysFromSDKRequestToRESTRequest({
631
+ notificationConfig: { ...notificationConfig, id: _id }
632
+ });
633
+ const reqOpts = upsertNotificationConfig(
634
+ payload
635
+ );
636
+ sideEffects?.onSiteCall?.();
637
+ try {
638
+ const result = await httpClient.request(reqOpts);
639
+ sideEffects?.onSuccess?.(result);
640
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
641
+ } catch (err) {
642
+ const transformedError = sdkTransformError(
643
+ err,
644
+ {
645
+ spreadPathsToArguments: { notificationConfig: "$[1]" },
646
+ explicitPathsToArguments: { "notificationConfig.id": "$[0]" },
647
+ singleArgumentUnchanged: false
648
+ },
649
+ ["_id", "notificationConfig"]
650
+ );
651
+ sideEffects?.onError?.(err);
652
+ throw transformedError;
653
+ }
654
+ }
655
+
656
+ // src/events-notifications-v2-notification-config-notifications.public.ts
657
+ function triggerNotification3(httpClient) {
658
+ return (options) => triggerNotification2(
659
+ options,
660
+ // @ts-ignore
661
+ { httpClient }
662
+ );
663
+ }
664
+ function resolveNotificationConfig3(httpClient) {
665
+ return (notificationConfigId) => resolveNotificationConfig2(
666
+ notificationConfigId,
667
+ // @ts-ignore
668
+ { httpClient }
669
+ );
670
+ }
671
+ function upsertNotificationConfig3(httpClient) {
672
+ return (_id, notificationConfig) => upsertNotificationConfig2(
673
+ _id,
674
+ notificationConfig,
675
+ // @ts-ignore
676
+ { httpClient }
677
+ );
678
+ }
679
+ var onNotificationConfigCreated = EventDefinition(
680
+ "wix.events.notifications.v2.notification_config_created",
681
+ true,
682
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
683
+ transformPaths2(event, [
684
+ {
685
+ transformFn: transformRESTTimestampToSDKTimestamp2,
686
+ paths: [
687
+ { path: "entity.createdDate" },
688
+ { path: "entity.updatedDate" },
689
+ { path: "metadata.eventTime" }
690
+ ]
691
+ }
692
+ ])
693
+ )
694
+ )();
695
+ var onNotificationConfigUpdated = EventDefinition(
696
+ "wix.events.notifications.v2.notification_config_updated",
697
+ true,
698
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
699
+ transformPaths2(event, [
700
+ {
701
+ transformFn: transformRESTTimestampToSDKTimestamp2,
702
+ paths: [
703
+ { path: "entity.createdDate" },
704
+ { path: "entity.updatedDate" },
705
+ { path: "metadata.eventTime" }
706
+ ]
707
+ }
708
+ ])
709
+ )
710
+ )();
711
+
712
+ // src/events-notifications-v2-notification-config-notifications.context.ts
713
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
714
+ import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
715
+ var triggerNotification4 = /* @__PURE__ */ createRESTModule(triggerNotification3);
716
+ var resolveNotificationConfig4 = /* @__PURE__ */ createRESTModule(resolveNotificationConfig3);
717
+ var upsertNotificationConfig4 = /* @__PURE__ */ createRESTModule(upsertNotificationConfig3);
718
+ var onNotificationConfigCreated2 = createEventModule(onNotificationConfigCreated);
719
+ var onNotificationConfigUpdated2 = createEventModule(onNotificationConfigUpdated);
720
+ export {
721
+ Alignment,
722
+ AppType,
723
+ BackgroundType,
724
+ ButtonDataType,
725
+ ConferenceType,
726
+ Crop,
727
+ DecorationType,
728
+ Direction,
729
+ EmailNotificationReminderTime,
730
+ EmailNotificationType,
731
+ EventStatus,
732
+ EventType,
733
+ FeeName,
734
+ FeeType,
735
+ FontType,
736
+ GIFType,
737
+ InitialExpandedItems,
738
+ InputControlType,
739
+ LayoutType,
740
+ LineStyle,
741
+ LocationType,
742
+ MapType,
743
+ NodeType,
744
+ NullValue,
745
+ OrderStatus,
746
+ Orientation,
747
+ PluginContainerDataAlignment,
748
+ PollLayoutDirection,
749
+ PollLayoutType,
750
+ Position,
751
+ PushNotificationType,
752
+ RegistrationStatus,
753
+ RsvpStatusOptions,
754
+ Source,
755
+ State,
756
+ Status,
757
+ SubdivisionType,
758
+ Target,
759
+ TaxType,
760
+ TextAlignment,
761
+ ThumbnailsAlignment,
762
+ Type,
763
+ ValueType,
764
+ VerticalAlignment,
765
+ ViewMode,
766
+ ViewRole,
767
+ VisitorType,
768
+ VoteRole,
769
+ WebhookIdentityType,
770
+ Width,
771
+ WidthType,
772
+ onNotificationConfigCreated2 as onNotificationConfigCreated,
773
+ onNotificationConfigUpdated2 as onNotificationConfigUpdated,
774
+ resolveNotificationConfig4 as resolveNotificationConfig,
775
+ triggerNotification4 as triggerNotification,
776
+ upsertNotificationConfig4 as upsertNotificationConfig
777
+ };
778
+ //# sourceMappingURL=index.mjs.map