@wix/notifications 1.0.4 → 1.0.5
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/build/cjs/src/ping-notifications-v3-notification.http.d.ts +0 -31
- package/build/cjs/src/ping-notifications-v3-notification.http.js +0 -31
- package/build/cjs/src/ping-notifications-v3-notification.http.js.map +1 -1
- package/build/cjs/src/ping-notifications-v3-notification.universal.d.ts +0 -31
- package/build/cjs/src/ping-notifications-v3-notification.universal.js +0 -31
- package/build/cjs/src/ping-notifications-v3-notification.universal.js.map +1 -1
- package/build/es/src/ping-notifications-v3-notification.http.d.ts +0 -31
- package/build/es/src/ping-notifications-v3-notification.http.js +0 -31
- package/build/es/src/ping-notifications-v3-notification.http.js.map +1 -1
- package/build/es/src/ping-notifications-v3-notification.universal.d.ts +0 -31
- package/build/es/src/ping-notifications-v3-notification.universal.js +0 -31
- package/build/es/src/ping-notifications-v3-notification.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -10,36 +10,5 @@ import { NotifyRequest, NotifyResponse } from './ping-notifications-v3-notificat
|
|
|
10
10
|
* Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
|
|
11
11
|
* If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
|
|
12
12
|
* The values you specify are incorporated seamlessly in the notifications sent out.
|
|
13
|
-
*
|
|
14
|
-
* For example, if your notification template looks like this:
|
|
15
|
-
*
|
|
16
|
-
* > **Title:** New {{roomType}} reservation.
|
|
17
|
-
* >
|
|
18
|
-
* > **Message:** {{customerName}} just made a new {{roomType}} reservation for {{dayOfWeek}}.
|
|
19
|
-
*
|
|
20
|
-
* You can pass the following values:
|
|
21
|
-
*
|
|
22
|
-
* ```json
|
|
23
|
-
* {
|
|
24
|
-
* "notificationTemplateId": "<YOUR_NOTIFICATION_ID>",
|
|
25
|
-
* "dynamicValues": {
|
|
26
|
-
* "roomType": {
|
|
27
|
-
* "text": "studio"
|
|
28
|
-
* },
|
|
29
|
-
* "customerName": {
|
|
30
|
-
* "text": "Sally Jones"
|
|
31
|
-
* },
|
|
32
|
-
* "dayOfWeek": {
|
|
33
|
-
* "text": "Friday"
|
|
34
|
-
* }
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* This will cause the following text to be sent in notifications to the recipients defined in the Wix Dev Center:
|
|
40
|
-
*
|
|
41
|
-
* > **Title:** New studio reservation.
|
|
42
|
-
* >
|
|
43
|
-
* > **Message:** Sally Jones just made a new studio reservation for Friday.
|
|
44
13
|
*/
|
|
45
14
|
export declare function notify(payload: NotifyRequest): RequestOptionsFactory<NotifyResponse>;
|
|
@@ -49,37 +49,6 @@ function resolveComWixpressPingHubApiV3NotificationsServiceV3Url(opts) {
|
|
|
49
49
|
* Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
|
|
50
50
|
* If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
|
|
51
51
|
* The values you specify are incorporated seamlessly in the notifications sent out.
|
|
52
|
-
*
|
|
53
|
-
* For example, if your notification template looks like this:
|
|
54
|
-
*
|
|
55
|
-
* > **Title:** New {{roomType}} reservation.
|
|
56
|
-
* >
|
|
57
|
-
* > **Message:** {{customerName}} just made a new {{roomType}} reservation for {{dayOfWeek}}.
|
|
58
|
-
*
|
|
59
|
-
* You can pass the following values:
|
|
60
|
-
*
|
|
61
|
-
* ```json
|
|
62
|
-
* {
|
|
63
|
-
* "notificationTemplateId": "<YOUR_NOTIFICATION_ID>",
|
|
64
|
-
* "dynamicValues": {
|
|
65
|
-
* "roomType": {
|
|
66
|
-
* "text": "studio"
|
|
67
|
-
* },
|
|
68
|
-
* "customerName": {
|
|
69
|
-
* "text": "Sally Jones"
|
|
70
|
-
* },
|
|
71
|
-
* "dayOfWeek": {
|
|
72
|
-
* "text": "Friday"
|
|
73
|
-
* }
|
|
74
|
-
* }
|
|
75
|
-
* }
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* This will cause the following text to be sent in notifications to the recipients defined in the Wix Dev Center:
|
|
79
|
-
*
|
|
80
|
-
* > **Title:** New studio reservation.
|
|
81
|
-
* >
|
|
82
|
-
* > **Message:** Sally Jones just made a new studio reservation for Friday.
|
|
83
52
|
*/
|
|
84
53
|
function notify(payload) {
|
|
85
54
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_notifyRequest, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-notifications-v3-notification.http.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAQhD,MAAM,kBAAkB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACtD,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;AAC/E,MAAM,gBAAgB,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC;AACxD,MAAM,cAAc,GAAG,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;AAC9D,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,SAAS,uDAAuD,CAC9D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,0BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"ping-notifications-v3-notification.http.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAQhD,MAAM,kBAAkB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACtD,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;AAC/E,MAAM,gBAAgB,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC;AACxD,MAAM,cAAc,GAAG,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;AAC9D,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,SAAS,uDAAuD,CAC9D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,0BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,MAAM,CACpB,OAAsB;IAEtB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EAAC,cAAc,EAAE;QACtE,kBAAkB;QAClB,aAAa;QACb,gBAAgB;KACjB,CAAC,CAAC;IACH,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAE9D,SAAS,QAAQ,CAAC,EAAE,IAAI,EAAO;QAC7B,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,uDAAuD,CAAC;gBAC3D,SAAS,EAAE,YAAY;gBACvB,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;IAE3B,OAAO,QAAQ,CAAC;AAClB,CAAC;AA7BD,wBA6BC"}
|
|
@@ -97,37 +97,6 @@ export interface NotifyByAppResponse {
|
|
|
97
97
|
* Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
|
|
98
98
|
* If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
|
|
99
99
|
* The values you specify are incorporated seamlessly in the notifications sent out.
|
|
100
|
-
*
|
|
101
|
-
* For example, if your notification template looks like this:
|
|
102
|
-
*
|
|
103
|
-
* > **Title:** New {{roomType}} reservation.
|
|
104
|
-
* >
|
|
105
|
-
* > **Message:** {{customerName}} just made a new {{roomType}} reservation for {{dayOfWeek}}.
|
|
106
|
-
*
|
|
107
|
-
* You can pass the following values:
|
|
108
|
-
*
|
|
109
|
-
* ```json
|
|
110
|
-
* {
|
|
111
|
-
* "notificationTemplateId": "<YOUR_NOTIFICATION_ID>",
|
|
112
|
-
* "dynamicValues": {
|
|
113
|
-
* "roomType": {
|
|
114
|
-
* "text": "studio"
|
|
115
|
-
* },
|
|
116
|
-
* "customerName": {
|
|
117
|
-
* "text": "Sally Jones"
|
|
118
|
-
* },
|
|
119
|
-
* "dayOfWeek": {
|
|
120
|
-
* "text": "Friday"
|
|
121
|
-
* }
|
|
122
|
-
* }
|
|
123
|
-
* }
|
|
124
|
-
* ```
|
|
125
|
-
*
|
|
126
|
-
* This will cause the following text to be sent in notifications to the recipients defined in the Wix Dev Center:
|
|
127
|
-
*
|
|
128
|
-
* > **Title:** New studio reservation.
|
|
129
|
-
* >
|
|
130
|
-
* > **Message:** Sally Jones just made a new studio reservation for Friday.
|
|
131
100
|
* @param notificationTemplateId - Notification template ID. A notification template specifies the text and recipients for notifications.
|
|
132
101
|
* To obtain a notification template ID, [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center.
|
|
133
102
|
* @public
|
|
@@ -72,37 +72,6 @@ const _notifyResponse = {};
|
|
|
72
72
|
* Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
|
|
73
73
|
* If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
|
|
74
74
|
* The values you specify are incorporated seamlessly in the notifications sent out.
|
|
75
|
-
*
|
|
76
|
-
* For example, if your notification template looks like this:
|
|
77
|
-
*
|
|
78
|
-
* > **Title:** New {{roomType}} reservation.
|
|
79
|
-
* >
|
|
80
|
-
* > **Message:** {{customerName}} just made a new {{roomType}} reservation for {{dayOfWeek}}.
|
|
81
|
-
*
|
|
82
|
-
* You can pass the following values:
|
|
83
|
-
*
|
|
84
|
-
* ```json
|
|
85
|
-
* {
|
|
86
|
-
* "notificationTemplateId": "<YOUR_NOTIFICATION_ID>",
|
|
87
|
-
* "dynamicValues": {
|
|
88
|
-
* "roomType": {
|
|
89
|
-
* "text": "studio"
|
|
90
|
-
* },
|
|
91
|
-
* "customerName": {
|
|
92
|
-
* "text": "Sally Jones"
|
|
93
|
-
* },
|
|
94
|
-
* "dayOfWeek": {
|
|
95
|
-
* "text": "Friday"
|
|
96
|
-
* }
|
|
97
|
-
* }
|
|
98
|
-
* }
|
|
99
|
-
* ```
|
|
100
|
-
*
|
|
101
|
-
* This will cause the following text to be sent in notifications to the recipients defined in the Wix Dev Center:
|
|
102
|
-
*
|
|
103
|
-
* > **Title:** New studio reservation.
|
|
104
|
-
* >
|
|
105
|
-
* > **Message:** Sally Jones just made a new studio reservation for Friday.
|
|
106
75
|
* @param notificationTemplateId - Notification template ID. A notification template specifies the text and recipients for notifications.
|
|
107
76
|
* To obtain a notification template ID, [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center.
|
|
108
77
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-notifications-v3-notification.universal.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,wHAA0G;AAE1G,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA6E5B,IAAY,eASX;AATD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;IAC3B,8CAA2B,CAAA;IAC3B,sCAAmB,CAAA;IACnB,8BAAW,CAAA;IACX,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,kCAAe,CAAA;AACjB,CAAC,EATW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAS1B;AAYD,MAAM,kBAAkB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACtD,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;AAC/E,MAAM,gBAAgB,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC;AACxD,MAAM,cAAc,GAAG,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;AAC9D,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B
|
|
1
|
+
{"version":3,"file":"ping-notifications-v3-notification.universal.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,wHAA0G;AAE1G,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA6E5B,IAAY,eASX;AATD,WAAY,eAAe;IACzB,wCAAqB,CAAA;I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AAE;gBACT,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC;QAEvE,MAAM,OAAO,GAAG,4CAA4C,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAE7E,KAAK,CAAC,kCAAkC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE9D,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,wBAAwB;gBACxB,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAzDD,wBAyDC"}
|
|
@@ -10,36 +10,5 @@ import { NotifyRequest, NotifyResponse } from './ping-notifications-v3-notificat
|
|
|
10
10
|
* Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
|
|
11
11
|
* If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
|
|
12
12
|
* The values you specify are incorporated seamlessly in the notifications sent out.
|
|
13
|
-
*
|
|
14
|
-
* For example, if your notification template looks like this:
|
|
15
|
-
*
|
|
16
|
-
* > **Title:** New {{roomType}} reservation.
|
|
17
|
-
* >
|
|
18
|
-
* > **Message:** {{customerName}} just made a new {{roomType}} reservation for {{dayOfWeek}}.
|
|
19
|
-
*
|
|
20
|
-
* You can pass the following values:
|
|
21
|
-
*
|
|
22
|
-
* ```json
|
|
23
|
-
* {
|
|
24
|
-
* "notificationTemplateId": "<YOUR_NOTIFICATION_ID>",
|
|
25
|
-
* "dynamicValues": {
|
|
26
|
-
* "roomType": {
|
|
27
|
-
* "text": "studio"
|
|
28
|
-
* },
|
|
29
|
-
* "customerName": {
|
|
30
|
-
* "text": "Sally Jones"
|
|
31
|
-
* },
|
|
32
|
-
* "dayOfWeek": {
|
|
33
|
-
* "text": "Friday"
|
|
34
|
-
* }
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* This will cause the following text to be sent in notifications to the recipients defined in the Wix Dev Center:
|
|
40
|
-
*
|
|
41
|
-
* > **Title:** New studio reservation.
|
|
42
|
-
* >
|
|
43
|
-
* > **Message:** Sally Jones just made a new studio reservation for Friday.
|
|
44
13
|
*/
|
|
45
14
|
export declare function notify(payload: NotifyRequest): RequestOptionsFactory<NotifyResponse>;
|
|
@@ -46,37 +46,6 @@ function resolveComWixpressPingHubApiV3NotificationsServiceV3Url(opts) {
|
|
|
46
46
|
* Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
|
|
47
47
|
* If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
|
|
48
48
|
* The values you specify are incorporated seamlessly in the notifications sent out.
|
|
49
|
-
*
|
|
50
|
-
* For example, if your notification template looks like this:
|
|
51
|
-
*
|
|
52
|
-
* > **Title:** New {{roomType}} reservation.
|
|
53
|
-
* >
|
|
54
|
-
* > **Message:** {{customerName}} just made a new {{roomType}} reservation for {{dayOfWeek}}.
|
|
55
|
-
*
|
|
56
|
-
* You can pass the following values:
|
|
57
|
-
*
|
|
58
|
-
* ```json
|
|
59
|
-
* {
|
|
60
|
-
* "notificationTemplateId": "<YOUR_NOTIFICATION_ID>",
|
|
61
|
-
* "dynamicValues": {
|
|
62
|
-
* "roomType": {
|
|
63
|
-
* "text": "studio"
|
|
64
|
-
* },
|
|
65
|
-
* "customerName": {
|
|
66
|
-
* "text": "Sally Jones"
|
|
67
|
-
* },
|
|
68
|
-
* "dayOfWeek": {
|
|
69
|
-
* "text": "Friday"
|
|
70
|
-
* }
|
|
71
|
-
* }
|
|
72
|
-
* }
|
|
73
|
-
* ```
|
|
74
|
-
*
|
|
75
|
-
* This will cause the following text to be sent in notifications to the recipients defined in the Wix Dev Center:
|
|
76
|
-
*
|
|
77
|
-
* > **Title:** New studio reservation.
|
|
78
|
-
* >
|
|
79
|
-
* > **Message:** Sally Jones just made a new studio reservation for Friday.
|
|
80
49
|
*/
|
|
81
50
|
export function notify(payload) {
|
|
82
51
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_notifyRequest, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-notifications-v3-notification.http.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQhD,MAAM,kBAAkB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACtD,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;AAC/E,MAAM,gBAAgB,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC;AACxD,MAAM,cAAc,GAAG,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;AAC9D,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,SAAS,uDAAuD,CAC9D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"ping-notifications-v3-notification.http.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQhD,MAAM,kBAAkB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACtD,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;AAC/E,MAAM,gBAAgB,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC;AACxD,MAAM,cAAc,GAAG,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;AAC9D,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,SAAS,uDAAuD,CAC9D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,MAAM,CACpB,OAAsB;IAEtB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,cAAc,EAAE;QACtE,kBAAkB;QAClB,aAAa;QACb,gBAAgB;KACjB,CAAC,CAAC;IACH,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAE9D,SAAS,QAAQ,CAAC,EAAE,IAAI,EAAO;QAC7B,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,uDAAuD,CAAC;gBAC3D,SAAS,EAAE,YAAY;gBACvB,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;IAE3B,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -97,37 +97,6 @@ export interface NotifyByAppResponse {
|
|
|
97
97
|
* Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
|
|
98
98
|
* If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
|
|
99
99
|
* The values you specify are incorporated seamlessly in the notifications sent out.
|
|
100
|
-
*
|
|
101
|
-
* For example, if your notification template looks like this:
|
|
102
|
-
*
|
|
103
|
-
* > **Title:** New {{roomType}} reservation.
|
|
104
|
-
* >
|
|
105
|
-
* > **Message:** {{customerName}} just made a new {{roomType}} reservation for {{dayOfWeek}}.
|
|
106
|
-
*
|
|
107
|
-
* You can pass the following values:
|
|
108
|
-
*
|
|
109
|
-
* ```json
|
|
110
|
-
* {
|
|
111
|
-
* "notificationTemplateId": "<YOUR_NOTIFICATION_ID>",
|
|
112
|
-
* "dynamicValues": {
|
|
113
|
-
* "roomType": {
|
|
114
|
-
* "text": "studio"
|
|
115
|
-
* },
|
|
116
|
-
* "customerName": {
|
|
117
|
-
* "text": "Sally Jones"
|
|
118
|
-
* },
|
|
119
|
-
* "dayOfWeek": {
|
|
120
|
-
* "text": "Friday"
|
|
121
|
-
* }
|
|
122
|
-
* }
|
|
123
|
-
* }
|
|
124
|
-
* ```
|
|
125
|
-
*
|
|
126
|
-
* This will cause the following text to be sent in notifications to the recipients defined in the Wix Dev Center:
|
|
127
|
-
*
|
|
128
|
-
* > **Title:** New studio reservation.
|
|
129
|
-
* >
|
|
130
|
-
* > **Message:** Sally Jones just made a new studio reservation for Friday.
|
|
131
100
|
* @param notificationTemplateId - Notification template ID. A notification template specifies the text and recipients for notifications.
|
|
132
101
|
* To obtain a notification template ID, [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center.
|
|
133
102
|
* @public
|
|
@@ -50,37 +50,6 @@ const _notifyResponse = {};
|
|
|
50
50
|
* Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
|
|
51
51
|
* If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
|
|
52
52
|
* The values you specify are incorporated seamlessly in the notifications sent out.
|
|
53
|
-
*
|
|
54
|
-
* For example, if your notification template looks like this:
|
|
55
|
-
*
|
|
56
|
-
* > **Title:** New {{roomType}} reservation.
|
|
57
|
-
* >
|
|
58
|
-
* > **Message:** {{customerName}} just made a new {{roomType}} reservation for {{dayOfWeek}}.
|
|
59
|
-
*
|
|
60
|
-
* You can pass the following values:
|
|
61
|
-
*
|
|
62
|
-
* ```json
|
|
63
|
-
* {
|
|
64
|
-
* "notificationTemplateId": "<YOUR_NOTIFICATION_ID>",
|
|
65
|
-
* "dynamicValues": {
|
|
66
|
-
* "roomType": {
|
|
67
|
-
* "text": "studio"
|
|
68
|
-
* },
|
|
69
|
-
* "customerName": {
|
|
70
|
-
* "text": "Sally Jones"
|
|
71
|
-
* },
|
|
72
|
-
* "dayOfWeek": {
|
|
73
|
-
* "text": "Friday"
|
|
74
|
-
* }
|
|
75
|
-
* }
|
|
76
|
-
* }
|
|
77
|
-
* ```
|
|
78
|
-
*
|
|
79
|
-
* This will cause the following text to be sent in notifications to the recipients defined in the Wix Dev Center:
|
|
80
|
-
*
|
|
81
|
-
* > **Title:** New studio reservation.
|
|
82
|
-
* >
|
|
83
|
-
* > **Message:** Sally Jones just made a new studio reservation for Friday.
|
|
84
53
|
* @param notificationTemplateId - Notification template ID. A notification template specifies the text and recipients for notifications.
|
|
85
54
|
* To obtain a notification template ID, [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center.
|
|
86
55
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping-notifications-v3-notification.universal.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,4CAA4C,MAAM,2CAA2C,CAAC;AAE1G,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA6E5B,MAAM,CAAN,IAAY,eASX;AATD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;IAC3B,8CAA2B,CAAA;IAC3B,sCAAmB,CAAA;IACnB,8BAAW,CAAA;IACX,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,kCAAe,CAAA;AACjB,CAAC,EATW,eAAe,KAAf,eAAe,QAS1B;AAYD,MAAM,kBAAkB,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACtD,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;AAC/E,MAAM,gBAAgB,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC;AACxD,MAAM,cAAc,GAAG,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;AAC9D,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B
|
|
1
|
+
{"version":3,"file":"ping-notifications-v3-notification.universal.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,4CAA4C,MAAM,2CAA2C,CAAC;AAE1G,IAAI,SAAS,GAAG,KA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AE;gBAClE,wBAAwB;gBACxB,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/notifications",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "2cba9951d63aa335e96aef18aeeb84160fc50b06888847a00f5dce4a"
|
|
37
37
|
}
|