@wix/auto_sdk_events_notifications 1.0.73 → 1.0.75

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 (50) hide show
  1. package/build/cjs/index.d.ts +9 -9
  2. package/build/cjs/index.js +98 -98
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +970 -965
  5. package/build/cjs/index.typings.js +90 -90
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +935 -930
  8. package/build/cjs/meta.js +76 -76
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +975 -0
  11. package/build/cjs/schemas.js +1256 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +9 -9
  14. package/build/es/index.mjs +98 -98
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +970 -965
  17. package/build/es/index.typings.mjs +90 -90
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +935 -930
  20. package/build/es/meta.mjs +76 -76
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +975 -0
  23. package/build/es/schemas.mjs +1214 -0
  24. package/build/es/schemas.mjs.map +1 -0
  25. package/build/internal/cjs/index.d.ts +9 -9
  26. package/build/internal/cjs/index.js +98 -98
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +970 -965
  29. package/build/internal/cjs/index.typings.js +90 -90
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +935 -930
  32. package/build/internal/cjs/meta.js +76 -76
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +975 -0
  35. package/build/internal/cjs/schemas.js +1256 -0
  36. package/build/internal/cjs/schemas.js.map +1 -0
  37. package/build/internal/es/index.d.mts +9 -9
  38. package/build/internal/es/index.mjs +98 -98
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +970 -965
  41. package/build/internal/es/index.typings.mjs +90 -90
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +935 -930
  44. package/build/internal/es/meta.mjs +76 -76
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +975 -0
  47. package/build/internal/es/schemas.mjs +1214 -0
  48. package/build/internal/es/schemas.mjs.map +1 -0
  49. package/package.json +11 -4
  50. package/schemas/package.json +3 -0
@@ -1,14 +1,7 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { TriggerNotificationOptions, ResolveNotificationConfigResponse, UpsertNotificationConfig, UpsertNotificationConfigResponse, NotificationConfigCreatedEnvelope, NotificationConfigUpdatedEnvelope } from './index.typings.js';
2
+ import { ResolveNotificationConfigResponse, UpsertNotificationConfig, UpsertNotificationConfigResponse, TriggerNotificationOptions, NotificationConfigCreatedEnvelope, NotificationConfigUpdatedEnvelope } from './index.typings.js';
3
3
  export { AccountInfo, AccountInfoMetadata, ActionEvent, Address, AddressLocation, AddressStreetOneOf, BaseEventMetadata, CheckIn, CommonAddress, CommonAddressLocation, CommonAddressStreetOneOf, CommonStreetAddress, CommonSubdivision, CouponDiscount, Discount, DiscountItem, DiscountItemDiscountOneOf, DomainEvent, DomainEventBodyOneOf, EmailNotificationConfig, EmailNotificationReminderTime, EmailNotificationReminderTimeWithLiterals, EmailNotificationType, EmailNotificationTypeWithLiterals, EmailTemplate, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventCanceled, EventCopied, EventDeleted, EventGuests, EventMetadata, EventStatus, EventStatusWithLiterals, Fee, FeeName, FeeNameWithLiterals, FeeType, FeeTypeWithLiterals, FormResponse, FormattedAddress, IdentificationData, IdentificationDataIdOneOf, InputValue, Invoice, Item, Link, Location, LocationType, LocationTypeWithLiterals, MapCoordinates, MessageEnvelope, Money, NotificationConfig, Occurrence, OnlineConferencingLogin, OrderCanceled, OrderConfirmed, OrderEmailAdded, OrderGuest, OrderPaid, OrderStatus, OrderStatusWithLiterals, PaidPlanDiscount, PaidPlanDiscountDiscountOneOf, PercentDiscount, PushNotificationType, PushNotificationTypeWithLiterals, Recurrences, ResolveEmailNotificationConfigRequest, ResolveEmailNotificationConfigResponse, ResolveNotificationConfigRequest, RestoreInfo, RsvpGuest, ScheduleConfig, StandardDetails, Status, StatusWithLiterals, StreetAddress, Subdivision, SubdivisionType, SubdivisionTypeWithLiterals, Tax, TaxType, TaxTypeWithLiterals, Ticket, TicketGuest, TicketPdfResolveDelayed, TicketPdfResolved, TriggerNotificationOptionsGuestsOneOf, TriggerNotificationOptionsNotificationOneOf, TriggerNotificationRequest, TriggerNotificationRequestGuestsOneOf, TriggerNotificationRequestNotificationOneOf, TriggerNotificationResponse, UpsertNotificationConfigRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
4
 
5
- declare function triggerNotification$1(httpClient: HttpClient): TriggerNotificationSignature;
6
- interface TriggerNotificationSignature {
7
- /**
8
- * Triggers notification
9
- */
10
- (options: TriggerNotificationOptions): Promise<void>;
11
- }
12
5
  declare function resolveNotificationConfig$1(httpClient: HttpClient): ResolveNotificationConfigSignature;
13
6
  interface ResolveNotificationConfigSignature {
14
7
  /**
@@ -25,12 +18,19 @@ interface UpsertNotificationConfigSignature {
25
18
  */
26
19
  (_id: string, notificationConfig: UpsertNotificationConfig): Promise<NonNullablePaths<UpsertNotificationConfigResponse, `notificationConfig.rsvpConfirmation.notificationType` | `notificationConfig.rsvpConfirmation.reminderTime`, 4>>;
27
20
  }
21
+ declare function triggerNotification$1(httpClient: HttpClient): TriggerNotificationSignature;
22
+ interface TriggerNotificationSignature {
23
+ /**
24
+ * Triggers notification
25
+ */
26
+ (options: TriggerNotificationOptions): Promise<void>;
27
+ }
28
28
  declare const onNotificationConfigCreated$1: EventDefinition<NotificationConfigCreatedEnvelope, "wix.events.notifications.v2.notification_config_created">;
29
29
  declare const onNotificationConfigUpdated$1: EventDefinition<NotificationConfigUpdatedEnvelope, "wix.events.notifications.v2.notification_config_updated">;
30
30
 
31
- declare const triggerNotification: MaybeContext<BuildRESTFunction<typeof triggerNotification$1> & typeof triggerNotification$1>;
32
31
  declare const resolveNotificationConfig: MaybeContext<BuildRESTFunction<typeof resolveNotificationConfig$1> & typeof resolveNotificationConfig$1>;
33
32
  declare const upsertNotificationConfig: MaybeContext<BuildRESTFunction<typeof upsertNotificationConfig$1> & typeof upsertNotificationConfig$1>;
33
+ declare const triggerNotification: MaybeContext<BuildRESTFunction<typeof triggerNotification$1> & typeof triggerNotification$1>;
34
34
  /** */
35
35
  declare const onNotificationConfigCreated: BuildEventDefinition<typeof onNotificationConfigCreated$1> & typeof onNotificationConfigCreated$1;
36
36
  /** */
@@ -57,7 +57,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
57
57
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
58
58
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
59
59
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
60
- function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
60
+ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
61
61
  const domainToMappings = {
62
62
  "api._api_base_domain_": [
63
63
  {
@@ -90,7 +90,7 @@ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
90
90
  };
91
91
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
92
92
  }
93
- function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
93
+ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
94
94
  const domainToMappings = {
95
95
  "api._api_base_domain_": [
96
96
  {
@@ -124,27 +124,6 @@ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
124
124
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
125
125
  }
126
126
  var PACKAGE_NAME = "@wix/auto_sdk_events_notifications";
127
- function triggerNotification(payload) {
128
- function __triggerNotification({ host }) {
129
- const metadata = {
130
- entityFqdn: "wix.events.notifications.v2.notification_config",
131
- method: "POST",
132
- methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
133
- packageName: PACKAGE_NAME,
134
- migrationOptions: {
135
- optInTransformResponse: true
136
- },
137
- url: resolveWixEventsNotificationsV2NotificationServiceUrl({
138
- protoPath: "/v2/notifications/trigger",
139
- data: payload,
140
- host
141
- }),
142
- data: payload
143
- };
144
- return metadata;
145
- }
146
- return __triggerNotification;
147
- }
148
127
  function resolveNotificationConfig(payload) {
149
128
  function __resolveNotificationConfig({ host }) {
150
129
  const metadata = {
@@ -218,6 +197,27 @@ function upsertNotificationConfig(payload) {
218
197
  }
219
198
  return __upsertNotificationConfig;
220
199
  }
200
+ function triggerNotification(payload) {
201
+ function __triggerNotification({ host }) {
202
+ const metadata = {
203
+ entityFqdn: "wix.events.notifications.v2.notification_config",
204
+ method: "POST",
205
+ methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
206
+ packageName: PACKAGE_NAME,
207
+ migrationOptions: {
208
+ optInTransformResponse: true
209
+ },
210
+ url: resolveWixEventsNotificationsV2NotificationServiceUrl({
211
+ protoPath: "/v2/notifications/trigger",
212
+ data: payload,
213
+ host
214
+ }),
215
+ data: payload
216
+ };
217
+ return metadata;
218
+ }
219
+ return __triggerNotification;
220
+ }
221
221
 
222
222
  // src/events-notifications-v2-notification-config-notifications.universal.ts
223
223
  var EmailNotificationType = /* @__PURE__ */ ((EmailNotificationType2) => {
@@ -239,13 +239,11 @@ var EmailNotificationReminderTime = /* @__PURE__ */ ((EmailNotificationReminderT
239
239
  EmailNotificationReminderTime2["BEFORE_30_MINUTES"] = "BEFORE_30_MINUTES";
240
240
  return EmailNotificationReminderTime2;
241
241
  })(EmailNotificationReminderTime || {});
242
- var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
243
- PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
244
- PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
245
- PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
246
- PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
247
- return PushNotificationType2;
248
- })(PushNotificationType || {});
242
+ var LocationType = /* @__PURE__ */ ((LocationType2) => {
243
+ LocationType2["VENUE"] = "VENUE";
244
+ LocationType2["ONLINE"] = "ONLINE";
245
+ return LocationType2;
246
+ })(LocationType || {});
249
247
  var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
250
248
  SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
251
249
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
@@ -256,6 +254,36 @@ var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
256
254
  SubdivisionType2["COUNTRY"] = "COUNTRY";
257
255
  return SubdivisionType2;
258
256
  })(SubdivisionType || {});
257
+ var Status = /* @__PURE__ */ ((Status2) => {
258
+ Status2["ONE_TIME"] = "ONE_TIME";
259
+ Status2["RECURRING"] = "RECURRING";
260
+ Status2["RECURRING_NEXT"] = "RECURRING_NEXT";
261
+ Status2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
262
+ Status2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
263
+ return Status2;
264
+ })(Status || {});
265
+ var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
266
+ EventStatus2["SCHEDULED"] = "SCHEDULED";
267
+ EventStatus2["STARTED"] = "STARTED";
268
+ EventStatus2["ENDED"] = "ENDED";
269
+ EventStatus2["CANCELED"] = "CANCELED";
270
+ return EventStatus2;
271
+ })(EventStatus || {});
272
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
273
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
274
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
275
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
276
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
277
+ WebhookIdentityType2["APP"] = "APP";
278
+ return WebhookIdentityType2;
279
+ })(WebhookIdentityType || {});
280
+ var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
281
+ PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
282
+ PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
283
+ PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
284
+ PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
285
+ return PushNotificationType2;
286
+ })(PushNotificationType || {});
259
287
  var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
260
288
  OrderStatus2["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
261
289
  OrderStatus2["FREE"] = "FREE";
@@ -286,78 +314,39 @@ var FeeType = /* @__PURE__ */ ((FeeType2) => {
286
314
  FeeType2["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
287
315
  return FeeType2;
288
316
  })(FeeType || {});
289
- var LocationType = /* @__PURE__ */ ((LocationType2) => {
290
- LocationType2["VENUE"] = "VENUE";
291
- LocationType2["ONLINE"] = "ONLINE";
292
- return LocationType2;
293
- })(LocationType || {});
294
- var Status = /* @__PURE__ */ ((Status2) => {
295
- Status2["ONE_TIME"] = "ONE_TIME";
296
- Status2["RECURRING"] = "RECURRING";
297
- Status2["RECURRING_NEXT"] = "RECURRING_NEXT";
298
- Status2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
299
- Status2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
300
- return Status2;
301
- })(Status || {});
302
- var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
303
- EventStatus2["SCHEDULED"] = "SCHEDULED";
304
- EventStatus2["STARTED"] = "STARTED";
305
- EventStatus2["ENDED"] = "ENDED";
306
- EventStatus2["CANCELED"] = "CANCELED";
307
- return EventStatus2;
308
- })(EventStatus || {});
309
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
310
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
311
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
312
- WebhookIdentityType2["MEMBER"] = "MEMBER";
313
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
314
- WebhookIdentityType2["APP"] = "APP";
315
- return WebhookIdentityType2;
316
- })(WebhookIdentityType || {});
317
- async function triggerNotification2(options) {
317
+ async function resolveNotificationConfig2(notificationConfigId) {
318
318
  const { httpClient, sideEffects } = arguments[1];
319
319
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
320
- emailNotificationType: options?.emailNotificationType,
321
- pushNotificationType: options?.pushNotificationType,
322
- rsvpGuest: options?.rsvpGuest,
323
- orderGuest: options?.orderGuest,
324
- eventGuests: options?.eventGuests,
325
- ticketGuest: options?.ticketGuest
320
+ notificationConfigId
326
321
  });
327
- const reqOpts = triggerNotification(
322
+ const reqOpts = resolveNotificationConfig(
328
323
  payload
329
324
  );
330
325
  sideEffects?.onSiteCall?.();
331
326
  try {
332
327
  const result = await httpClient.request(reqOpts);
333
328
  sideEffects?.onSuccess?.(result);
329
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
334
330
  } catch (err) {
335
331
  const transformedError = (0, import_transform_error.transformError)(
336
332
  err,
337
333
  {
338
334
  spreadPathsToArguments: {},
339
- explicitPathsToArguments: {
340
- emailNotificationType: "$[0].emailNotificationType",
341
- pushNotificationType: "$[0].pushNotificationType",
342
- rsvpGuest: "$[0].rsvpGuest",
343
- orderGuest: "$[0].orderGuest",
344
- eventGuests: "$[0].eventGuests",
345
- ticketGuest: "$[0].ticketGuest"
346
- },
335
+ explicitPathsToArguments: { notificationConfigId: "$[0]" },
347
336
  singleArgumentUnchanged: false
348
337
  },
349
- ["options"]
338
+ ["notificationConfigId"]
350
339
  );
351
340
  sideEffects?.onError?.(err);
352
341
  throw transformedError;
353
342
  }
354
343
  }
355
- async function resolveNotificationConfig2(notificationConfigId) {
356
- const { httpClient, sideEffects } = arguments[1];
344
+ async function upsertNotificationConfig2(_id, notificationConfig) {
345
+ const { httpClient, sideEffects } = arguments[2];
357
346
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
358
- notificationConfigId
347
+ notificationConfig: { ...notificationConfig, id: _id }
359
348
  });
360
- const reqOpts = resolveNotificationConfig(
349
+ const reqOpts = upsertNotificationConfig(
361
350
  payload
362
351
  );
363
352
  sideEffects?.onSiteCall?.();
@@ -369,38 +358,49 @@ async function resolveNotificationConfig2(notificationConfigId) {
369
358
  const transformedError = (0, import_transform_error.transformError)(
370
359
  err,
371
360
  {
372
- spreadPathsToArguments: {},
373
- explicitPathsToArguments: { notificationConfigId: "$[0]" },
361
+ spreadPathsToArguments: { notificationConfig: "$[1]" },
362
+ explicitPathsToArguments: { "notificationConfig.id": "$[0]" },
374
363
  singleArgumentUnchanged: false
375
364
  },
376
- ["notificationConfigId"]
365
+ ["_id", "notificationConfig"]
377
366
  );
378
367
  sideEffects?.onError?.(err);
379
368
  throw transformedError;
380
369
  }
381
370
  }
382
- async function upsertNotificationConfig2(_id, notificationConfig) {
383
- const { httpClient, sideEffects } = arguments[2];
371
+ async function triggerNotification2(options) {
372
+ const { httpClient, sideEffects } = arguments[1];
384
373
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
385
- notificationConfig: { ...notificationConfig, id: _id }
374
+ emailNotificationType: options?.emailNotificationType,
375
+ pushNotificationType: options?.pushNotificationType,
376
+ rsvpGuest: options?.rsvpGuest,
377
+ orderGuest: options?.orderGuest,
378
+ eventGuests: options?.eventGuests,
379
+ ticketGuest: options?.ticketGuest
386
380
  });
387
- const reqOpts = upsertNotificationConfig(
381
+ const reqOpts = triggerNotification(
388
382
  payload
389
383
  );
390
384
  sideEffects?.onSiteCall?.();
391
385
  try {
392
386
  const result = await httpClient.request(reqOpts);
393
387
  sideEffects?.onSuccess?.(result);
394
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
395
388
  } catch (err) {
396
389
  const transformedError = (0, import_transform_error.transformError)(
397
390
  err,
398
391
  {
399
- spreadPathsToArguments: { notificationConfig: "$[1]" },
400
- explicitPathsToArguments: { "notificationConfig.id": "$[0]" },
392
+ spreadPathsToArguments: {},
393
+ explicitPathsToArguments: {
394
+ emailNotificationType: "$[0].emailNotificationType",
395
+ pushNotificationType: "$[0].pushNotificationType",
396
+ rsvpGuest: "$[0].rsvpGuest",
397
+ orderGuest: "$[0].orderGuest",
398
+ eventGuests: "$[0].eventGuests",
399
+ ticketGuest: "$[0].ticketGuest"
400
+ },
401
401
  singleArgumentUnchanged: false
402
402
  },
403
- ["_id", "notificationConfig"]
403
+ ["options"]
404
404
  );
405
405
  sideEffects?.onError?.(err);
406
406
  throw transformedError;
@@ -408,13 +408,6 @@ async function upsertNotificationConfig2(_id, notificationConfig) {
408
408
  }
409
409
 
410
410
  // src/events-notifications-v2-notification-config-notifications.public.ts
411
- function triggerNotification3(httpClient) {
412
- return (options) => triggerNotification2(
413
- options,
414
- // @ts-ignore
415
- { httpClient }
416
- );
417
- }
418
411
  function resolveNotificationConfig3(httpClient) {
419
412
  return (notificationConfigId) => resolveNotificationConfig2(
420
413
  notificationConfigId,
@@ -430,6 +423,13 @@ function upsertNotificationConfig3(httpClient) {
430
423
  { httpClient }
431
424
  );
432
425
  }
426
+ function triggerNotification3(httpClient) {
427
+ return (options) => triggerNotification2(
428
+ options,
429
+ // @ts-ignore
430
+ { httpClient }
431
+ );
432
+ }
433
433
  var onNotificationConfigCreated = (0, import_sdk_types.EventDefinition)(
434
434
  "wix.events.notifications.v2.notification_config_created",
435
435
  true,
@@ -468,9 +468,9 @@ var onNotificationConfigUpdated = (0, import_sdk_types.EventDefinition)(
468
468
  // src/events-notifications-v2-notification-config-notifications.context.ts
469
469
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
470
470
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
471
- var triggerNotification4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(triggerNotification3);
472
471
  var resolveNotificationConfig4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(resolveNotificationConfig3);
473
472
  var upsertNotificationConfig4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(upsertNotificationConfig3);
473
+ var triggerNotification4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(triggerNotification3);
474
474
  var onNotificationConfigCreated2 = (0, import_event_definition_modules.createEventModule)(
475
475
  onNotificationConfigCreated
476
476
  );