@wix/notifications 1.0.36 → 1.0.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/notifications",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/notifications_notifications": "1.0.21",
21
+ "@wix/notifications_notifications": "1.0.22",
22
22
  "@wix/notifications_notifications-v-3": "1.0.5"
23
23
  },
24
24
  "devDependencies": {
@@ -44,5 +44,5 @@
44
44
  "fqdn": ""
45
45
  }
46
46
  },
47
- "falconPackageHash": "f97486a3f7ba50b7db50da996139a33fd6c7f959013da8f970c644a2"
47
+ "falconPackageHash": "afc21544e8dd18a5efa66f0f24020ccfe194b3589c3b09ff2a7fb511"
48
48
  }
@@ -413,38 +413,28 @@ interface Public_notification {
413
413
  _id?: string | null;
414
414
  }
415
415
  interface PublicNotifyRequest extends PublicNotifyRequestRecipientsFilterOneOf, PublicNotifyRequestActionTargetOneOf {
416
- /** List of site contributors to notify. */
416
+ /** Send to [site contributors]((https://support.wix.com/en/article/roles-permissions-overview)). This includes site administrators, website managers, and back office managers. */
417
417
  toSiteContributors?: ToSiteContributors;
418
- /** List of contacts to notify. */
418
+ /** Send to [site contacts](https://support.wix.com/en/article/about-your-contact-list). */
419
419
  toContacts?: ToContacts;
420
420
  /** URL to navigate to when the `action` text is clicked. */
421
421
  targetUrl?: string | null;
422
- /** URL of Dashboard page to navigate to when the `action` text is clicked. */
422
+ /** Dashboard page to open when the notification action is clicked. */
423
423
  targetDashboardPage?: DashboardPages;
424
- /**
425
- * Notification title. Only displayed on mobile and browser notifications.
426
- *
427
- * Max: 512 characters
428
- */
424
+ /** Title of the notification. Max: 512 characters. */
429
425
  title?: string | null;
430
426
  /**
431
- * Contents of the notification.
432
- *
427
+ * Body of the notification. This contains the main content of the notification.
433
428
  * Max: 512 characters
434
429
  */
435
430
  body?: string | null;
436
- /**
437
- * Clickable text that links to the `targetUrl` or `targetDashboardPage`. For example, "Click this!".
438
- *
439
- * Max: 512 characters
440
- */
431
+ /** Title of the notification action. Clicking the action refers the user to a target URL or a dashboard page. */
441
432
  action?: string | null;
442
433
  /**
443
- * The channels to send the notification on. One or more of:
444
- *
434
+ * Channel through which users receive the notification.
445
435
  * - `"Mobile"`: Sends the notification to the Wix App.
446
- * - `"Dashboard"`: Sends the notification to the contributor's Wix Dashboard.
447
- * - `"Browser"`: Sends the notification to the contributor's browser.
436
+ * - `"Dashboard"`: Sends the notification to the collaborator's Wix Dashboard.
437
+ * - `"Browser"`: Sends the notification to the collaborator's browser.
448
438
  */
449
439
  channels?: Channel[];
450
440
  }
@@ -459,15 +449,14 @@ interface PublicNotifyRequestRecipientsFilterOneOf {
459
449
  interface PublicNotifyRequestActionTargetOneOf {
460
450
  /** URL to navigate to when the `action` text is clicked. */
461
451
  targetUrl?: string | null;
462
- /** URL of Dashboard page to navigate to when the `action` text is clicked. */
452
+ /** Dashboard page to open when the notification action is clicked. */
463
453
  targetDashboardPage?: DashboardPages;
464
454
  }
465
455
  interface ToSiteContributors {
466
456
  /**
467
- * Roles to receive the notification. One of:
468
- *
469
- * - `"All_Contributors"`: All site contributors (default).
470
- * - `"Owner"`: Only the site owner.
457
+ * Role assigned to site contributors. Only contributors with the specified roles receive the notification:
458
+ * - `"All_Contributors"`: All site collaborators (default).
459
+ * - `"Owner"`: Site owner only.
471
460
  */
472
461
  withRole?: Role;
473
462
  }
@@ -478,13 +467,13 @@ declare enum Role {
478
467
  Owner = "Owner"
479
468
  }
480
469
  interface ToContacts {
481
- /** List of contact IDs. */
470
+ /** Contacts that receive the notification. */
482
471
  contactIds?: string[];
483
472
  }
484
473
  interface ToTopicsSubscribers {
485
- /** List of topics. */
474
+ /** Notification topics to which the recipients have subscribed. Only contacts who subscribed to the specified topics receive the notification. */
486
475
  topics?: string[];
487
- /** List of contact IDs to exclude from notification. */
476
+ /** Excluded contact IDs. Contacts with these IDs don't receive the notification. */
488
477
  excludedContactIds?: string[];
489
478
  }
490
479
  declare enum Channel {
@@ -509,21 +498,17 @@ interface NotifyOptions$1 extends PublicNotifyRequestRecipientsFilterOneOf, Publ
509
498
  toSiteContributors?: ToSiteContributors;
510
499
  /** List of contacts to notify. */
511
500
  toContacts?: ToContacts;
512
- /**
513
- * Notification title. Only displayed on mobile and browser notifications.
514
- *
515
- * Max: 512 characters
516
- */
501
+ /** Title of the notification. Max: 512 characters. */
517
502
  title?: string | null;
518
503
  /**
519
- * Clickable text that links to the `targetUrl` or `targetDashboardPage`. For example, "Click this!".
504
+ * Title of the notification action. Clicking the action refers the user to a target URL or a dashboard page.
520
505
  *
521
- * Max: 512 characters
506
+ * Max: 512 characters.
522
507
  */
523
508
  action?: string | null;
524
- /** URL to navigate to when the `action` text is clicked. */
509
+ /** External URL to open when the notification action is clicked. */
525
510
  targetUrl?: string | null;
526
- /** URL of Dashboard page to navigate to when the `action` text is clicked. */
511
+ /** Dashboard page to open when the notification action is clicked. */
527
512
  targetDashboardPage?: DashboardPages;
528
513
  }
529
514
 
@@ -539,14 +524,11 @@ interface NotifySignature$1 {
539
524
  *
540
525
  * List the recipients for the notification in the `toContacts`, `toSiteContributors`, and `toTopicsSubscribers` parameters.
541
526
  * @param - Notification options.
542
- * @param - The body of the notification.
543
- *
544
- * Max: 512 characters
545
- * @param - The channels to send the notification on. One or more of:
546
- *
527
+ * @param - Body of the notification. This contains the main content of the notification.
528
+ * @param - Channel through which users receive the notification.
547
529
  * - `"Mobile"`: Sends the notification to the Wix App.
548
- * - `"Dashboard"`: Sends the notification to the contributor's Wix Dashboard.
549
- * - `"Browser"`: Sends the notification to the contributor's browser.
530
+ * - `"Dashboard"`: Sends the notification to the collaborator's Wix Dashboard.
531
+ * - `"Browser"`: Sends the notification to the collaborator's browser.
550
532
  * @returns Fulfilled when the send notification request is received.
551
533
  */
552
534
  (body: string | null, channels: Channel[], options?: NotifyOptions$1 | undefined): Promise<void>;
@@ -413,38 +413,28 @@ interface Public_notification {
413
413
  _id?: string | null;
414
414
  }
415
415
  interface PublicNotifyRequest extends PublicNotifyRequestRecipientsFilterOneOf, PublicNotifyRequestActionTargetOneOf {
416
- /** List of site contributors to notify. */
416
+ /** Send to [site contributors]((https://support.wix.com/en/article/roles-permissions-overview)). This includes site administrators, website managers, and back office managers. */
417
417
  toSiteContributors?: ToSiteContributors;
418
- /** List of contacts to notify. */
418
+ /** Send to [site contacts](https://support.wix.com/en/article/about-your-contact-list). */
419
419
  toContacts?: ToContacts;
420
420
  /** URL to navigate to when the `action` text is clicked. */
421
421
  targetUrl?: string | null;
422
- /** URL of Dashboard page to navigate to when the `action` text is clicked. */
422
+ /** Dashboard page to open when the notification action is clicked. */
423
423
  targetDashboardPage?: DashboardPages;
424
- /**
425
- * Notification title. Only displayed on mobile and browser notifications.
426
- *
427
- * Max: 512 characters
428
- */
424
+ /** Title of the notification. Max: 512 characters. */
429
425
  title?: string | null;
430
426
  /**
431
- * Contents of the notification.
432
- *
427
+ * Body of the notification. This contains the main content of the notification.
433
428
  * Max: 512 characters
434
429
  */
435
430
  body?: string | null;
436
- /**
437
- * Clickable text that links to the `targetUrl` or `targetDashboardPage`. For example, "Click this!".
438
- *
439
- * Max: 512 characters
440
- */
431
+ /** Title of the notification action. Clicking the action refers the user to a target URL or a dashboard page. */
441
432
  action?: string | null;
442
433
  /**
443
- * The channels to send the notification on. One or more of:
444
- *
434
+ * Channel through which users receive the notification.
445
435
  * - `"Mobile"`: Sends the notification to the Wix App.
446
- * - `"Dashboard"`: Sends the notification to the contributor's Wix Dashboard.
447
- * - `"Browser"`: Sends the notification to the contributor's browser.
436
+ * - `"Dashboard"`: Sends the notification to the collaborator's Wix Dashboard.
437
+ * - `"Browser"`: Sends the notification to the collaborator's browser.
448
438
  */
449
439
  channels?: Channel[];
450
440
  }
@@ -459,15 +449,14 @@ interface PublicNotifyRequestRecipientsFilterOneOf {
459
449
  interface PublicNotifyRequestActionTargetOneOf {
460
450
  /** URL to navigate to when the `action` text is clicked. */
461
451
  targetUrl?: string | null;
462
- /** URL of Dashboard page to navigate to when the `action` text is clicked. */
452
+ /** Dashboard page to open when the notification action is clicked. */
463
453
  targetDashboardPage?: DashboardPages;
464
454
  }
465
455
  interface ToSiteContributors {
466
456
  /**
467
- * Roles to receive the notification. One of:
468
- *
469
- * - `"All_Contributors"`: All site contributors (default).
470
- * - `"Owner"`: Only the site owner.
457
+ * Role assigned to site contributors. Only contributors with the specified roles receive the notification:
458
+ * - `"All_Contributors"`: All site collaborators (default).
459
+ * - `"Owner"`: Site owner only.
471
460
  */
472
461
  withRole?: Role;
473
462
  }
@@ -478,13 +467,13 @@ declare enum Role {
478
467
  Owner = "Owner"
479
468
  }
480
469
  interface ToContacts {
481
- /** List of contact IDs. */
470
+ /** Contacts that receive the notification. */
482
471
  contactIds?: string[];
483
472
  }
484
473
  interface ToTopicsSubscribers {
485
- /** List of topics. */
474
+ /** Notification topics to which the recipients have subscribed. Only contacts who subscribed to the specified topics receive the notification. */
486
475
  topics?: string[];
487
- /** List of contact IDs to exclude from notification. */
476
+ /** Excluded contact IDs. Contacts with these IDs don't receive the notification. */
488
477
  excludedContactIds?: string[];
489
478
  }
490
479
  declare enum Channel {
@@ -509,21 +498,17 @@ interface NotifyOptions$1 extends PublicNotifyRequestRecipientsFilterOneOf, Publ
509
498
  toSiteContributors?: ToSiteContributors;
510
499
  /** List of contacts to notify. */
511
500
  toContacts?: ToContacts;
512
- /**
513
- * Notification title. Only displayed on mobile and browser notifications.
514
- *
515
- * Max: 512 characters
516
- */
501
+ /** Title of the notification. Max: 512 characters. */
517
502
  title?: string | null;
518
503
  /**
519
- * Clickable text that links to the `targetUrl` or `targetDashboardPage`. For example, "Click this!".
504
+ * Title of the notification action. Clicking the action refers the user to a target URL or a dashboard page.
520
505
  *
521
- * Max: 512 characters
506
+ * Max: 512 characters.
522
507
  */
523
508
  action?: string | null;
524
- /** URL to navigate to when the `action` text is clicked. */
509
+ /** External URL to open when the notification action is clicked. */
525
510
  targetUrl?: string | null;
526
- /** URL of Dashboard page to navigate to when the `action` text is clicked. */
511
+ /** Dashboard page to open when the notification action is clicked. */
527
512
  targetDashboardPage?: DashboardPages;
528
513
  }
529
514
 
@@ -539,14 +524,11 @@ interface NotifySignature$1 {
539
524
  *
540
525
  * List the recipients for the notification in the `toContacts`, `toSiteContributors`, and `toTopicsSubscribers` parameters.
541
526
  * @param - Notification options.
542
- * @param - The body of the notification.
543
- *
544
- * Max: 512 characters
545
- * @param - The channels to send the notification on. One or more of:
546
- *
527
+ * @param - Body of the notification. This contains the main content of the notification.
528
+ * @param - Channel through which users receive the notification.
547
529
  * - `"Mobile"`: Sends the notification to the Wix App.
548
- * - `"Dashboard"`: Sends the notification to the contributor's Wix Dashboard.
549
- * - `"Browser"`: Sends the notification to the contributor's browser.
530
+ * - `"Dashboard"`: Sends the notification to the collaborator's Wix Dashboard.
531
+ * - `"Browser"`: Sends the notification to the collaborator's browser.
550
532
  * @returns Fulfilled when the send notification request is received.
551
533
  */
552
534
  (body: string | null, channels: Channel[], options?: NotifyOptions$1 | undefined): Promise<void>;
@@ -63,38 +63,28 @@ interface Empty$1 {
63
63
  }
64
64
 
65
65
  interface PublicNotifyRequest extends PublicNotifyRequestRecipientsFilterOneOf, PublicNotifyRequestActionTargetOneOf {
66
- /** List of site contributors to notify. */
66
+ /** Send to [site contributors]((https://support.wix.com/en/article/roles-permissions-overview)). This includes site administrators, website managers, and back office managers. */
67
67
  toSiteContributors?: ToSiteContributors;
68
- /** List of contacts to notify. */
68
+ /** Send to [site contacts](https://support.wix.com/en/article/about-your-contact-list). */
69
69
  toContacts?: ToContacts;
70
70
  /** URL to navigate to when the `action` text is clicked. */
71
71
  targetUrl?: string | null;
72
- /** URL of Dashboard page to navigate to when the `action` text is clicked. */
72
+ /** Dashboard page to open when the notification action is clicked. */
73
73
  targetDashboardPage?: DashboardPages;
74
- /**
75
- * Notification title. Only displayed on mobile and browser notifications.
76
- *
77
- * Max: 512 characters
78
- */
74
+ /** Title of the notification. Max: 512 characters. */
79
75
  title?: string | null;
80
76
  /**
81
- * Contents of the notification.
82
- *
77
+ * Body of the notification. This contains the main content of the notification.
83
78
  * Max: 512 characters
84
79
  */
85
80
  body?: string | null;
86
- /**
87
- * Clickable text that links to the `targetUrl` or `targetDashboardPage`. For example, "Click this!".
88
- *
89
- * Max: 512 characters
90
- */
81
+ /** Title of the notification action. Clicking the action refers the user to a target URL or a dashboard page. */
91
82
  action?: string | null;
92
83
  /**
93
- * The channels to send the notification on. One or more of:
94
- *
84
+ * Channel through which users receive the notification.
95
85
  * - `"Mobile"`: Sends the notification to the Wix App.
96
- * - `"Dashboard"`: Sends the notification to the contributor's Wix Dashboard.
97
- * - `"Browser"`: Sends the notification to the contributor's browser.
86
+ * - `"Dashboard"`: Sends the notification to the collaborator's Wix Dashboard.
87
+ * - `"Browser"`: Sends the notification to the collaborator's browser.
98
88
  */
99
89
  channels?: Channel[];
100
90
  }
@@ -109,15 +99,14 @@ interface PublicNotifyRequestRecipientsFilterOneOf {
109
99
  interface PublicNotifyRequestActionTargetOneOf {
110
100
  /** URL to navigate to when the `action` text is clicked. */
111
101
  targetUrl?: string | null;
112
- /** URL of Dashboard page to navigate to when the `action` text is clicked. */
102
+ /** Dashboard page to open when the notification action is clicked. */
113
103
  targetDashboardPage?: DashboardPages;
114
104
  }
115
105
  interface ToSiteContributors {
116
106
  /**
117
- * Roles to receive the notification. One of:
118
- *
119
- * - `"All_Contributors"`: All site contributors (default).
120
- * - `"Owner"`: Only the site owner.
107
+ * Role assigned to site contributors. Only contributors with the specified roles receive the notification:
108
+ * - `"All_Contributors"`: All site collaborators (default).
109
+ * - `"Owner"`: Site owner only.
121
110
  */
122
111
  withRole?: Role;
123
112
  }
@@ -128,7 +117,7 @@ declare enum Role {
128
117
  Owner = "Owner"
129
118
  }
130
119
  interface ToContacts {
131
- /** List of contact IDs. */
120
+ /** Contacts that receive the notification. */
132
121
  contactIds?: string[];
133
122
  }
134
123
  declare enum Channel {