@wix/crm 1.0.5 → 1.0.7

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 (31) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +2 -1
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/ping-notifications-v3-notification.http.d.ts +15 -0
  5. package/build/cjs/src/ping-notifications-v3-notification.http.js +87 -0
  6. package/build/cjs/src/ping-notifications-v3-notification.http.js.map +1 -0
  7. package/build/cjs/src/ping-notifications-v3-notification.public.d.ts +8 -0
  8. package/build/cjs/src/ping-notifications-v3-notification.public.js +14 -0
  9. package/build/cjs/src/ping-notifications-v3-notification.public.js.map +1 -0
  10. package/build/cjs/src/ping-notifications-v3-notification.types.d.ts +97 -0
  11. package/build/cjs/src/ping-notifications-v3-notification.types.js +15 -0
  12. package/build/cjs/src/ping-notifications-v3-notification.types.js.map +1 -0
  13. package/build/cjs/src/ping-notifications-v3-notification.universal.d.ts +128 -0
  14. package/build/cjs/src/ping-notifications-v3-notification.universal.js +130 -0
  15. package/build/cjs/src/ping-notifications-v3-notification.universal.js.map +1 -0
  16. package/build/es/index.d.ts +1 -0
  17. package/build/es/index.js +1 -0
  18. package/build/es/index.js.map +1 -1
  19. package/build/es/src/ping-notifications-v3-notification.http.d.ts +15 -0
  20. package/build/es/src/ping-notifications-v3-notification.http.js +83 -0
  21. package/build/es/src/ping-notifications-v3-notification.http.js.map +1 -0
  22. package/build/es/src/ping-notifications-v3-notification.public.d.ts +8 -0
  23. package/build/es/src/ping-notifications-v3-notification.public.js +9 -0
  24. package/build/es/src/ping-notifications-v3-notification.public.js.map +1 -0
  25. package/build/es/src/ping-notifications-v3-notification.types.d.ts +97 -0
  26. package/build/es/src/ping-notifications-v3-notification.types.js +12 -0
  27. package/build/es/src/ping-notifications-v3-notification.types.js.map +1 -0
  28. package/build/es/src/ping-notifications-v3-notification.universal.d.ts +128 -0
  29. package/build/es/src/ping-notifications-v3-notification.universal.js +107 -0
  30. package/build/es/src/ping-notifications-v3-notification.universal.js.map +1 -0
  31. package/package.json +4 -4
@@ -2,3 +2,4 @@ export * as contacts from './src/contacts-v4-contact.public';
2
2
  export * as extendedFields from './src/contacts-v4-extended-field.public';
3
3
  export * as labels from './src/contacts-v4-label.public';
4
4
  export * as submittedContact from './src/contacts-v4-submit-contact.public';
5
+ export * as notifications from './src/ping-notifications-v3-notification.public';
@@ -19,9 +19,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.submittedContact = exports.labels = exports.extendedFields = exports.contacts = void 0;
22
+ exports.notifications = exports.submittedContact = exports.labels = exports.extendedFields = exports.contacts = void 0;
23
23
  exports.contacts = __importStar(require("./src/contacts-v4-contact.public"));
24
24
  exports.extendedFields = __importStar(require("./src/contacts-v4-extended-field.public"));
25
25
  exports.labels = __importStar(require("./src/contacts-v4-label.public"));
26
26
  exports.submittedContact = __importStar(require("./src/contacts-v4-submit-contact.public"));
27
+ exports.notifications = __importStar(require("./src/ping-notifications-v3-notification.public"));
27
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6EAA6D;AAC7D,0FAA0E;AAC1E,yEAAyD;AACzD,4FAA4E"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6EAA6D;AAC7D,0FAA0E;AAC1E,yEAAyD;AACzD,4FAA4E;AAC5E,iGAAiF"}
@@ -0,0 +1,15 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ import { NotifyRequest, NotifyResponse } from './ping-notifications-v3-notification.types';
3
+ /**
4
+ * Sends notifications based on the template and dynamic values provided.
5
+ *
6
+ * > This feature is not yet available to all users.
7
+ *
8
+ * An app can call this endpoint up to 100,000 times per month for each site.
9
+ *
10
+ * When you [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center, you are given a notification template ID.
11
+ * Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
12
+ * If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
13
+ * The values you specify are incorporated seamlessly in the notifications sent out.
14
+ */
15
+ export declare function notify(payload: NotifyRequest): RequestOptionsFactory<NotifyResponse>;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.notify = void 0;
4
+ const ambassador_1 = require("@wix/metro-runtime/ambassador");
5
+ const metro_runtime_1 = require("@wix/metro-runtime");
6
+ const _arrayDynamicValue = { items: '_dynamicValue' };
7
+ const _dynamicValue = { map: '_mapDynamicValue', array: '_arrayDynamicValue' };
8
+ const _mapDynamicValue = { items: 'Map#_dynamicValue' };
9
+ const _notifyRequest = { dynamicValues: 'Map#_dynamicValue' };
10
+ const _notifyResponse = {};
11
+ function resolveComWixpressPingHubApiV3NotificationsServiceV3Url(opts) {
12
+ const domainToMappings = {
13
+ 'api._api_base_domain_': [
14
+ {
15
+ srcPath: '/notifications-hub-server',
16
+ destPath: '',
17
+ },
18
+ ],
19
+ 'www._base_domain_': [
20
+ {
21
+ srcPath: '/_api/ping/hub',
22
+ destPath: '',
23
+ },
24
+ {
25
+ srcPath: '/_api/ping/notifications',
26
+ destPath: '',
27
+ },
28
+ ],
29
+ 'manage._base_domain_': [
30
+ {
31
+ srcPath: '/_api/ping/hub',
32
+ destPath: '',
33
+ },
34
+ {
35
+ srcPath: '/_api/ping/notifications',
36
+ destPath: '',
37
+ },
38
+ ],
39
+ 'www.wixapis.com': [
40
+ {
41
+ srcPath: '/notifications/v3/notify',
42
+ destPath: '/v3/notify',
43
+ },
44
+ ],
45
+ };
46
+ return (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
47
+ }
48
+ /**
49
+ * Sends notifications based on the template and dynamic values provided.
50
+ *
51
+ * > This feature is not yet available to all users.
52
+ *
53
+ * An app can call this endpoint up to 100,000 times per month for each site.
54
+ *
55
+ * When you [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center, you are given a notification template ID.
56
+ * Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
57
+ * If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
58
+ * The values you specify are incorporated seamlessly in the notifications sent out.
59
+ */
60
+ function notify(payload) {
61
+ const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_notifyRequest, {
62
+ _arrayDynamicValue,
63
+ _dynamicValue,
64
+ _mapDynamicValue,
65
+ });
66
+ const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_notifyResponse, {});
67
+ function __notify({ host }) {
68
+ const serializedData = toReq(payload);
69
+ const metadata = {
70
+ entityFqdn: 'wix.ping.notifications.v3.notification',
71
+ method: 'POST',
72
+ methodFqn: 'com.wixpress.ping.hub.api.v3.NotificationsServiceV3.Notify',
73
+ url: resolveComWixpressPingHubApiV3NotificationsServiceV3Url({
74
+ protoPath: '/v3/notify',
75
+ data: serializedData,
76
+ host,
77
+ }),
78
+ data: serializedData,
79
+ transformResponse: fromRes,
80
+ };
81
+ return metadata;
82
+ }
83
+ __notify.fromReq = fromReq;
84
+ return __notify;
85
+ }
86
+ exports.notify = notify;
87
+ //# sourceMappingURL=ping-notifications-v3-notification.http.js.map
@@ -0,0 +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,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SAAS,QAAQ,CAAC,EAAE,IAAI,EAAO;QAC7B,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,wCAAwC;YACpD,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,4DAA4D;YACvE,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;AA/BD,wBA+BC"}
@@ -0,0 +1,8 @@
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { NotifyOptions } from './ping-notifications-v3-notification.universal';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function notify(httpClient: HttpClient): (notificationTemplateId: string, options?: NotifyOptions | undefined) => Promise<import("./ping-notifications-v3-notification.universal").NotifyResponse>;
7
+ export { TemplateChannel } from './ping-notifications-v3-notification.universal';
8
+ export { Notification, NotifyRequest, DynamicValue, DynamicValueOfTypeOneOf, Money, MapDynamicValue, ArrayDynamicValue, NotifyResponse, NotifyByAppRequest, Overrides, ExcludedAudiences, ChannelsContent, MobileContent, NotifyByAppResponse, NotifyOptions, } from './ping-notifications-v3-notification.universal';
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TemplateChannel = exports.notify = exports.__metadata = void 0;
4
+ const ping_notifications_v3_notification_universal_1 = require("./ping-notifications-v3-notification.universal");
5
+ exports.__metadata = { PACKAGE_NAME: '@wix/crm' };
6
+ function notify(httpClient) {
7
+ return (notificationTemplateId, options) => (0, ping_notifications_v3_notification_universal_1.notify)(notificationTemplateId, options,
8
+ // @ts-ignore
9
+ { httpClient });
10
+ }
11
+ exports.notify = notify;
12
+ var ping_notifications_v3_notification_universal_2 = require("./ping-notifications-v3-notification.universal");
13
+ Object.defineProperty(exports, "TemplateChannel", { enumerable: true, get: function () { return ping_notifications_v3_notification_universal_2.TemplateChannel; } });
14
+ //# sourceMappingURL=ping-notifications-v3-notification.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ping-notifications-v3-notification.public.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.public.ts"],"names":[],"mappings":";;;AACA,iHAGwD;AAE3C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,SAAgB,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,sBAA8B,EAAE,OAAuB,EAAE,EAAE,CACjE,IAAA,qDAAe,EACb,sBAAsB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wBAQC;AAED,+GAAiF;AAAxE,+IAAA,eAAe,OAAA"}
@@ -0,0 +1,97 @@
1
+ export interface Notification {
2
+ /** The id of the notification */
3
+ id?: string;
4
+ }
5
+ export interface NotifyRequest {
6
+ /**
7
+ * Notification template ID. A notification template specifies the text and recipients for notifications.
8
+ * 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.
9
+ */
10
+ notificationTemplateId: string;
11
+ /**
12
+ * Each key is a placeholder name you specify when [creating a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template).
13
+ * The value is an object containing the text to replace the placeholder in the notifications.
14
+ */
15
+ dynamicValues?: Record<string, DynamicValue>;
16
+ }
17
+ export interface DynamicValue extends DynamicValueOfTypeOneOf {
18
+ /** Text to be integrated into the notification. */
19
+ text?: string;
20
+ }
21
+ /** @oneof */
22
+ export interface DynamicValueOfTypeOneOf {
23
+ /** Text to be integrated into the notification. */
24
+ text?: string;
25
+ }
26
+ /**
27
+ * Money.
28
+ * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
29
+ */
30
+ export interface Money {
31
+ /** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative. */
32
+ value?: string;
33
+ /** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */
34
+ currency?: string;
35
+ /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
36
+ formattedValue?: string | null;
37
+ }
38
+ export interface MapDynamicValue {
39
+ /** items */
40
+ items?: Record<string, DynamicValue>;
41
+ }
42
+ export interface ArrayDynamicValue {
43
+ /** items */
44
+ items?: DynamicValue[];
45
+ }
46
+ export interface NotifyResponse {
47
+ /** ID of the batch of notifications triggered by one request. */
48
+ notificationBatchId?: string;
49
+ }
50
+ export interface NotifyByAppRequest {
51
+ /** notification_template_id */
52
+ notificationTemplateId?: string;
53
+ /** app_def_id */
54
+ appDefId?: string;
55
+ /** dynamic_values */
56
+ dynamicValues?: Record<string, DynamicValue>;
57
+ /** template tenant */
58
+ templateTenant?: string | null;
59
+ /** overrides */
60
+ overrides?: Overrides;
61
+ }
62
+ export interface Overrides {
63
+ /** excluded_channels */
64
+ excludedChannels?: TemplateChannel[];
65
+ /** excluded_audiences */
66
+ excludedAudiences?: ExcludedAudiences;
67
+ /** content overrides */
68
+ content?: ChannelsContent;
69
+ }
70
+ export declare enum TemplateChannel {
71
+ WEB_FEED = "WEB_FEED",
72
+ MOBILE_FEED = "MOBILE_FEED",
73
+ MOBILE_PUSH = "MOBILE_PUSH",
74
+ BROWSER = "BROWSER",
75
+ SMS = "SMS",
76
+ EMAIL = "EMAIL",
77
+ KAFKA = "KAFKA",
78
+ VOICE = "VOICE"
79
+ }
80
+ export interface ExcludedAudiences {
81
+ /** audience_key */
82
+ audienceKey?: string[];
83
+ }
84
+ export interface ChannelsContent {
85
+ /** mobile push override */
86
+ mobileContent?: MobileContent;
87
+ }
88
+ export interface MobileContent {
89
+ /** title override of mobile push content */
90
+ title?: string;
91
+ /** body override of mobile push content */
92
+ body?: string;
93
+ }
94
+ export interface NotifyByAppResponse {
95
+ /** notification_batch_id */
96
+ notificationBatchId?: string;
97
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TemplateChannel = void 0;
4
+ var TemplateChannel;
5
+ (function (TemplateChannel) {
6
+ TemplateChannel["WEB_FEED"] = "WEB_FEED";
7
+ TemplateChannel["MOBILE_FEED"] = "MOBILE_FEED";
8
+ TemplateChannel["MOBILE_PUSH"] = "MOBILE_PUSH";
9
+ TemplateChannel["BROWSER"] = "BROWSER";
10
+ TemplateChannel["SMS"] = "SMS";
11
+ TemplateChannel["EMAIL"] = "EMAIL";
12
+ TemplateChannel["KAFKA"] = "KAFKA";
13
+ TemplateChannel["VOICE"] = "VOICE";
14
+ })(TemplateChannel = exports.TemplateChannel || (exports.TemplateChannel = {}));
15
+ //# sourceMappingURL=ping-notifications-v3-notification.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ping-notifications-v3-notification.types.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.types.ts"],"names":[],"mappings":";;;AA+EA,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"}
@@ -0,0 +1,128 @@
1
+ export declare const __debug: {
2
+ verboseLogging: {
3
+ on: () => boolean;
4
+ off: () => boolean;
5
+ };
6
+ };
7
+ export interface Notification {
8
+ /** The id of the notification */
9
+ _id?: string;
10
+ }
11
+ export interface NotifyRequest {
12
+ /**
13
+ * Notification template ID. A notification template specifies the text and recipients for notifications.
14
+ * 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.
15
+ */
16
+ notificationTemplateId: string;
17
+ /**
18
+ * Each key is a placeholder name you specify when [creating a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template).
19
+ * The value is an object containing the text to replace the placeholder in the notifications.
20
+ */
21
+ dynamicValues?: Record<string, DynamicValue>;
22
+ }
23
+ export interface DynamicValue extends DynamicValueOfTypeOneOf {
24
+ /** Text to be integrated into the notification. */
25
+ text?: string;
26
+ }
27
+ /** @oneof */
28
+ export interface DynamicValueOfTypeOneOf {
29
+ /** Text to be integrated into the notification. */
30
+ text?: string;
31
+ }
32
+ /**
33
+ * Money.
34
+ * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
35
+ */
36
+ export interface Money {
37
+ /** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative. */
38
+ value?: string;
39
+ /** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */
40
+ currency?: string;
41
+ /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
42
+ formattedValue?: string | null;
43
+ }
44
+ export interface MapDynamicValue {
45
+ /** items */
46
+ items?: Record<string, DynamicValue>;
47
+ }
48
+ export interface ArrayDynamicValue {
49
+ /** items */
50
+ items?: DynamicValue[];
51
+ }
52
+ export interface NotifyResponse {
53
+ /** ID of the batch of notifications triggered by one request. */
54
+ notificationBatchId?: string;
55
+ }
56
+ export interface NotifyByAppRequest {
57
+ /** notification_template_id */
58
+ notificationTemplateId?: string;
59
+ /** app_def_id */
60
+ appDefId?: string;
61
+ /** dynamic_values */
62
+ dynamicValues?: Record<string, DynamicValue>;
63
+ /** template tenant */
64
+ templateTenant?: string | null;
65
+ /** overrides */
66
+ overrides?: Overrides;
67
+ }
68
+ export interface Overrides {
69
+ /** excluded_channels */
70
+ excludedChannels?: TemplateChannel[];
71
+ /** excluded_audiences */
72
+ excludedAudiences?: ExcludedAudiences;
73
+ /** content overrides */
74
+ content?: ChannelsContent;
75
+ }
76
+ export declare enum TemplateChannel {
77
+ WEB_FEED = "WEB_FEED",
78
+ MOBILE_FEED = "MOBILE_FEED",
79
+ MOBILE_PUSH = "MOBILE_PUSH",
80
+ BROWSER = "BROWSER",
81
+ SMS = "SMS",
82
+ EMAIL = "EMAIL",
83
+ KAFKA = "KAFKA",
84
+ VOICE = "VOICE"
85
+ }
86
+ export interface ExcludedAudiences {
87
+ /** audience_key */
88
+ audienceKey?: string[];
89
+ }
90
+ export interface ChannelsContent {
91
+ /** mobile push override */
92
+ mobileContent?: MobileContent;
93
+ }
94
+ export interface MobileContent {
95
+ /** title override of mobile push content */
96
+ title?: string;
97
+ /** body override of mobile push content */
98
+ body?: string;
99
+ }
100
+ export interface NotifyByAppResponse {
101
+ /** notification_batch_id */
102
+ notificationBatchId?: string;
103
+ }
104
+ /**
105
+ * Sends notifications based on the template and dynamic values provided.
106
+ *
107
+ * > This feature is not yet available to all users.
108
+ *
109
+ * An app can call this endpoint up to 100,000 times per month for each site.
110
+ *
111
+ * When you [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center, you are given a notification template ID.
112
+ * Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
113
+ * If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
114
+ * The values you specify are incorporated seamlessly in the notifications sent out.
115
+ * @param notificationTemplateId - Notification template ID. A notification template specifies the text and recipients for notifications.
116
+ * 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.
117
+ * @public
118
+ * @documentationMaturity preview
119
+ * @requiredField notificationTemplateId
120
+ */
121
+ export declare function notify(notificationTemplateId: string, options?: NotifyOptions): Promise<NotifyResponse>;
122
+ export interface NotifyOptions {
123
+ /**
124
+ * Each key is a placeholder name you specify when [creating a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template).
125
+ * The value is an object containing the text to replace the placeholder in the notifications.
126
+ */
127
+ dynamicValues?: Record<string, DynamicValue>;
128
+ }
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
+ return new (P || (P = Promise))(function (resolve, reject) {
24
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28
+ });
29
+ };
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.notify = exports.TemplateChannel = exports.__debug = void 0;
32
+ const velo_1 = require("@wix/metro-runtime/velo");
33
+ const ambassadorWixPingNotificationsV3Notification = __importStar(require("./ping-notifications-v3-notification.http"));
34
+ let __verbose = false;
35
+ function __log(...args) {
36
+ __verbose && console.log(...args);
37
+ }
38
+ function __inspect(obj) {
39
+ return obj;
40
+ }
41
+ exports.__debug = {
42
+ verboseLogging: {
43
+ on: () => (__verbose = true),
44
+ off: () => (__verbose = false),
45
+ },
46
+ };
47
+ const _toVeloEntity = '$';
48
+ const _fromVeloEntity = '$';
49
+ var TemplateChannel;
50
+ (function (TemplateChannel) {
51
+ TemplateChannel["WEB_FEED"] = "WEB_FEED";
52
+ TemplateChannel["MOBILE_FEED"] = "MOBILE_FEED";
53
+ TemplateChannel["MOBILE_PUSH"] = "MOBILE_PUSH";
54
+ TemplateChannel["BROWSER"] = "BROWSER";
55
+ TemplateChannel["SMS"] = "SMS";
56
+ TemplateChannel["EMAIL"] = "EMAIL";
57
+ TemplateChannel["KAFKA"] = "KAFKA";
58
+ TemplateChannel["VOICE"] = "VOICE";
59
+ })(TemplateChannel = exports.TemplateChannel || (exports.TemplateChannel = {}));
60
+ const _arrayDynamicValue = { items: '_dynamicValue' };
61
+ const _dynamicValue = { map: '_mapDynamicValue', array: '_arrayDynamicValue' };
62
+ const _mapDynamicValue = { items: 'Map#_dynamicValue' };
63
+ const _notifyRequest = { dynamicValues: 'Map#_dynamicValue' };
64
+ const _notifyResponse = {};
65
+ /**
66
+ * Sends notifications based on the template and dynamic values provided.
67
+ *
68
+ * > This feature is not yet available to all users.
69
+ *
70
+ * An app can call this endpoint up to 100,000 times per month for each site.
71
+ *
72
+ * When you [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center, you are given a notification template ID.
73
+ * Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
74
+ * If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
75
+ * The values you specify are incorporated seamlessly in the notifications sent out.
76
+ * @param notificationTemplateId - Notification template ID. A notification template specifies the text and recipients for notifications.
77
+ * 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.
78
+ * @public
79
+ * @documentationMaturity preview
80
+ * @requiredField notificationTemplateId
81
+ */
82
+ function notify(notificationTemplateId, options) {
83
+ var _a, _b, _c;
84
+ return __awaiter(this, arguments, void 0, function* () {
85
+ const requestTransformation = {
86
+ notificationTemplateId: '$[0]',
87
+ dynamicValues: '$[1].dynamicValues',
88
+ };
89
+ const responseTransformation = '$';
90
+ // @ts-ignore
91
+ const { httpClient, sideEffects } = arguments[2];
92
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
93
+ rootSchema: _notifyRequest,
94
+ depSchemas: { _arrayDynamicValue, _dynamicValue, _mapDynamicValue },
95
+ fqdnTransformation: {
96
+ paths: [],
97
+ transformation: _fromVeloEntity,
98
+ },
99
+ customTransformation: requestTransformation,
100
+ });
101
+ const { fromJSON } = (0, velo_1.serializer)({
102
+ rootSchema: _notifyResponse,
103
+ depSchemas: {},
104
+ fqdnTransformation: {
105
+ paths: [],
106
+ transformation: _toVeloEntity,
107
+ },
108
+ customTransformation: responseTransformation,
109
+ });
110
+ const payload = toAmbassadorRequest([notificationTemplateId, options]);
111
+ const reqOpts = ambassadorWixPingNotificationsV3Notification.notify(payload);
112
+ __log(`"Notify" sending request with: ${__inspect(reqOpts)}`);
113
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
114
+ try {
115
+ const result = yield httpClient.request(reqOpts);
116
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
117
+ return fromJSON(result.data);
118
+ }
119
+ catch (err) {
120
+ const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
121
+ 'notificationTemplateId',
122
+ 'options',
123
+ ]);
124
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
125
+ throw transformedError;
126
+ }
127
+ });
128
+ }
129
+ exports.notify = notify;
130
+ //# sourceMappingURL=ping-notifications-v3-notification.universal.js.map
@@ -0,0 +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;AAiF5B,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;AAwBD,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,gBAA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U,+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"}
@@ -2,3 +2,4 @@ export * as contacts from './src/contacts-v4-contact.public';
2
2
  export * as extendedFields from './src/contacts-v4-extended-field.public';
3
3
  export * as labels from './src/contacts-v4-label.public';
4
4
  export * as submittedContact from './src/contacts-v4-submit-contact.public';
5
+ export * as notifications from './src/ping-notifications-v3-notification.public';
package/build/es/index.js CHANGED
@@ -2,4 +2,5 @@ export * as contacts from './src/contacts-v4-contact.public';
2
2
  export * as extendedFields from './src/contacts-v4-extended-field.public';
3
3
  export * as labels from './src/contacts-v4-label.public';
4
4
  export * as submittedContact from './src/contacts-v4-submit-contact.public';
5
+ export * as notifications from './src/ping-notifications-v3-notification.public';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,cAAc,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,MAAM,MAAM,gCAAgC,CAAC;AACzD,OAAO,KAAK,gBAAgB,MAAM,yCAAyC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,cAAc,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,MAAM,MAAM,gCAAgC,CAAC;AACzD,OAAO,KAAK,gBAAgB,MAAM,yCAAyC,CAAC;AAC5E,OAAO,KAAK,aAAa,MAAM,iDAAiD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ import { NotifyRequest, NotifyResponse } from './ping-notifications-v3-notification.types';
3
+ /**
4
+ * Sends notifications based on the template and dynamic values provided.
5
+ *
6
+ * > This feature is not yet available to all users.
7
+ *
8
+ * An app can call this endpoint up to 100,000 times per month for each site.
9
+ *
10
+ * When you [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center, you are given a notification template ID.
11
+ * Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
12
+ * If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
13
+ * The values you specify are incorporated seamlessly in the notifications sent out.
14
+ */
15
+ export declare function notify(payload: NotifyRequest): RequestOptionsFactory<NotifyResponse>;
@@ -0,0 +1,83 @@
1
+ import { serializer } from '@wix/metro-runtime/ambassador';
2
+ import { resolveUrl } from '@wix/metro-runtime';
3
+ const _arrayDynamicValue = { items: '_dynamicValue' };
4
+ const _dynamicValue = { map: '_mapDynamicValue', array: '_arrayDynamicValue' };
5
+ const _mapDynamicValue = { items: 'Map#_dynamicValue' };
6
+ const _notifyRequest = { dynamicValues: 'Map#_dynamicValue' };
7
+ const _notifyResponse = {};
8
+ function resolveComWixpressPingHubApiV3NotificationsServiceV3Url(opts) {
9
+ const domainToMappings = {
10
+ 'api._api_base_domain_': [
11
+ {
12
+ srcPath: '/notifications-hub-server',
13
+ destPath: '',
14
+ },
15
+ ],
16
+ 'www._base_domain_': [
17
+ {
18
+ srcPath: '/_api/ping/hub',
19
+ destPath: '',
20
+ },
21
+ {
22
+ srcPath: '/_api/ping/notifications',
23
+ destPath: '',
24
+ },
25
+ ],
26
+ 'manage._base_domain_': [
27
+ {
28
+ srcPath: '/_api/ping/hub',
29
+ destPath: '',
30
+ },
31
+ {
32
+ srcPath: '/_api/ping/notifications',
33
+ destPath: '',
34
+ },
35
+ ],
36
+ 'www.wixapis.com': [
37
+ {
38
+ srcPath: '/notifications/v3/notify',
39
+ destPath: '/v3/notify',
40
+ },
41
+ ],
42
+ };
43
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
44
+ }
45
+ /**
46
+ * Sends notifications based on the template and dynamic values provided.
47
+ *
48
+ * > This feature is not yet available to all users.
49
+ *
50
+ * An app can call this endpoint up to 100,000 times per month for each site.
51
+ *
52
+ * When you [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center, you are given a notification template ID.
53
+ * Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
54
+ * If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
55
+ * The values you specify are incorporated seamlessly in the notifications sent out.
56
+ */
57
+ export function notify(payload) {
58
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_notifyRequest, {
59
+ _arrayDynamicValue,
60
+ _dynamicValue,
61
+ _mapDynamicValue,
62
+ });
63
+ const { fromJSON: fromRes } = serializer(_notifyResponse, {});
64
+ function __notify({ host }) {
65
+ const serializedData = toReq(payload);
66
+ const metadata = {
67
+ entityFqdn: 'wix.ping.notifications.v3.notification',
68
+ method: 'POST',
69
+ methodFqn: 'com.wixpress.ping.hub.api.v3.NotificationsServiceV3.Notify',
70
+ url: resolveComWixpressPingHubApiV3NotificationsServiceV3Url({
71
+ protoPath: '/v3/notify',
72
+ data: serializedData,
73
+ host,
74
+ }),
75
+ data: serializedData,
76
+ transformResponse: fromRes,
77
+ };
78
+ return metadata;
79
+ }
80
+ __notify.fromReq = fromReq;
81
+ return __notify;
82
+ }
83
+ //# sourceMappingURL=ping-notifications-v3-notification.http.js.map
@@ -0,0 +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;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,YAAY;aACvB;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;;;;;;;GAWG;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,UAAU,EAAE,wCAAwC;YACpD,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,4DAA4D;YACvE,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"}
@@ -0,0 +1,8 @@
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { NotifyOptions } from './ping-notifications-v3-notification.universal';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function notify(httpClient: HttpClient): (notificationTemplateId: string, options?: NotifyOptions | undefined) => Promise<import("./ping-notifications-v3-notification.universal").NotifyResponse>;
7
+ export { TemplateChannel } from './ping-notifications-v3-notification.universal';
8
+ export { Notification, NotifyRequest, DynamicValue, DynamicValueOfTypeOneOf, Money, MapDynamicValue, ArrayDynamicValue, NotifyResponse, NotifyByAppRequest, Overrides, ExcludedAudiences, ChannelsContent, MobileContent, NotifyByAppResponse, NotifyOptions, } from './ping-notifications-v3-notification.universal';
@@ -0,0 +1,9 @@
1
+ import { notify as universalNotify, } from './ping-notifications-v3-notification.universal';
2
+ export const __metadata = { PACKAGE_NAME: '@wix/crm' };
3
+ export function notify(httpClient) {
4
+ return (notificationTemplateId, options) => universalNotify(notificationTemplateId, options,
5
+ // @ts-ignore
6
+ { httpClient });
7
+ }
8
+ export { TemplateChannel } from './ping-notifications-v3-notification.universal';
9
+ //# sourceMappingURL=ping-notifications-v3-notification.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ping-notifications-v3-notification.public.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,IAAI,eAAe,GAE1B,MAAM,gDAAgD,CAAC;AAExD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEvD,MAAM,UAAU,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,sBAA8B,EAAE,OAAuB,EAAE,EAAE,CACjE,eAAe,CACb,sBAAsB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC"}
@@ -0,0 +1,97 @@
1
+ export interface Notification {
2
+ /** The id of the notification */
3
+ id?: string;
4
+ }
5
+ export interface NotifyRequest {
6
+ /**
7
+ * Notification template ID. A notification template specifies the text and recipients for notifications.
8
+ * 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.
9
+ */
10
+ notificationTemplateId: string;
11
+ /**
12
+ * Each key is a placeholder name you specify when [creating a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template).
13
+ * The value is an object containing the text to replace the placeholder in the notifications.
14
+ */
15
+ dynamicValues?: Record<string, DynamicValue>;
16
+ }
17
+ export interface DynamicValue extends DynamicValueOfTypeOneOf {
18
+ /** Text to be integrated into the notification. */
19
+ text?: string;
20
+ }
21
+ /** @oneof */
22
+ export interface DynamicValueOfTypeOneOf {
23
+ /** Text to be integrated into the notification. */
24
+ text?: string;
25
+ }
26
+ /**
27
+ * Money.
28
+ * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
29
+ */
30
+ export interface Money {
31
+ /** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative. */
32
+ value?: string;
33
+ /** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */
34
+ currency?: string;
35
+ /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
36
+ formattedValue?: string | null;
37
+ }
38
+ export interface MapDynamicValue {
39
+ /** items */
40
+ items?: Record<string, DynamicValue>;
41
+ }
42
+ export interface ArrayDynamicValue {
43
+ /** items */
44
+ items?: DynamicValue[];
45
+ }
46
+ export interface NotifyResponse {
47
+ /** ID of the batch of notifications triggered by one request. */
48
+ notificationBatchId?: string;
49
+ }
50
+ export interface NotifyByAppRequest {
51
+ /** notification_template_id */
52
+ notificationTemplateId?: string;
53
+ /** app_def_id */
54
+ appDefId?: string;
55
+ /** dynamic_values */
56
+ dynamicValues?: Record<string, DynamicValue>;
57
+ /** template tenant */
58
+ templateTenant?: string | null;
59
+ /** overrides */
60
+ overrides?: Overrides;
61
+ }
62
+ export interface Overrides {
63
+ /** excluded_channels */
64
+ excludedChannels?: TemplateChannel[];
65
+ /** excluded_audiences */
66
+ excludedAudiences?: ExcludedAudiences;
67
+ /** content overrides */
68
+ content?: ChannelsContent;
69
+ }
70
+ export declare enum TemplateChannel {
71
+ WEB_FEED = "WEB_FEED",
72
+ MOBILE_FEED = "MOBILE_FEED",
73
+ MOBILE_PUSH = "MOBILE_PUSH",
74
+ BROWSER = "BROWSER",
75
+ SMS = "SMS",
76
+ EMAIL = "EMAIL",
77
+ KAFKA = "KAFKA",
78
+ VOICE = "VOICE"
79
+ }
80
+ export interface ExcludedAudiences {
81
+ /** audience_key */
82
+ audienceKey?: string[];
83
+ }
84
+ export interface ChannelsContent {
85
+ /** mobile push override */
86
+ mobileContent?: MobileContent;
87
+ }
88
+ export interface MobileContent {
89
+ /** title override of mobile push content */
90
+ title?: string;
91
+ /** body override of mobile push content */
92
+ body?: string;
93
+ }
94
+ export interface NotifyByAppResponse {
95
+ /** notification_batch_id */
96
+ notificationBatchId?: string;
97
+ }
@@ -0,0 +1,12 @@
1
+ export var TemplateChannel;
2
+ (function (TemplateChannel) {
3
+ TemplateChannel["WEB_FEED"] = "WEB_FEED";
4
+ TemplateChannel["MOBILE_FEED"] = "MOBILE_FEED";
5
+ TemplateChannel["MOBILE_PUSH"] = "MOBILE_PUSH";
6
+ TemplateChannel["BROWSER"] = "BROWSER";
7
+ TemplateChannel["SMS"] = "SMS";
8
+ TemplateChannel["EMAIL"] = "EMAIL";
9
+ TemplateChannel["KAFKA"] = "KAFKA";
10
+ TemplateChannel["VOICE"] = "VOICE";
11
+ })(TemplateChannel || (TemplateChannel = {}));
12
+ //# sourceMappingURL=ping-notifications-v3-notification.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ping-notifications-v3-notification.types.js","sourceRoot":"","sources":["../../../src/ping-notifications-v3-notification.types.ts"],"names":[],"mappings":"AA+EA,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"}
@@ -0,0 +1,128 @@
1
+ export declare const __debug: {
2
+ verboseLogging: {
3
+ on: () => boolean;
4
+ off: () => boolean;
5
+ };
6
+ };
7
+ export interface Notification {
8
+ /** The id of the notification */
9
+ _id?: string;
10
+ }
11
+ export interface NotifyRequest {
12
+ /**
13
+ * Notification template ID. A notification template specifies the text and recipients for notifications.
14
+ * 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.
15
+ */
16
+ notificationTemplateId: string;
17
+ /**
18
+ * Each key is a placeholder name you specify when [creating a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template).
19
+ * The value is an object containing the text to replace the placeholder in the notifications.
20
+ */
21
+ dynamicValues?: Record<string, DynamicValue>;
22
+ }
23
+ export interface DynamicValue extends DynamicValueOfTypeOneOf {
24
+ /** Text to be integrated into the notification. */
25
+ text?: string;
26
+ }
27
+ /** @oneof */
28
+ export interface DynamicValueOfTypeOneOf {
29
+ /** Text to be integrated into the notification. */
30
+ text?: string;
31
+ }
32
+ /**
33
+ * Money.
34
+ * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
35
+ */
36
+ export interface Money {
37
+ /** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative. */
38
+ value?: string;
39
+ /** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */
40
+ currency?: string;
41
+ /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
42
+ formattedValue?: string | null;
43
+ }
44
+ export interface MapDynamicValue {
45
+ /** items */
46
+ items?: Record<string, DynamicValue>;
47
+ }
48
+ export interface ArrayDynamicValue {
49
+ /** items */
50
+ items?: DynamicValue[];
51
+ }
52
+ export interface NotifyResponse {
53
+ /** ID of the batch of notifications triggered by one request. */
54
+ notificationBatchId?: string;
55
+ }
56
+ export interface NotifyByAppRequest {
57
+ /** notification_template_id */
58
+ notificationTemplateId?: string;
59
+ /** app_def_id */
60
+ appDefId?: string;
61
+ /** dynamic_values */
62
+ dynamicValues?: Record<string, DynamicValue>;
63
+ /** template tenant */
64
+ templateTenant?: string | null;
65
+ /** overrides */
66
+ overrides?: Overrides;
67
+ }
68
+ export interface Overrides {
69
+ /** excluded_channels */
70
+ excludedChannels?: TemplateChannel[];
71
+ /** excluded_audiences */
72
+ excludedAudiences?: ExcludedAudiences;
73
+ /** content overrides */
74
+ content?: ChannelsContent;
75
+ }
76
+ export declare enum TemplateChannel {
77
+ WEB_FEED = "WEB_FEED",
78
+ MOBILE_FEED = "MOBILE_FEED",
79
+ MOBILE_PUSH = "MOBILE_PUSH",
80
+ BROWSER = "BROWSER",
81
+ SMS = "SMS",
82
+ EMAIL = "EMAIL",
83
+ KAFKA = "KAFKA",
84
+ VOICE = "VOICE"
85
+ }
86
+ export interface ExcludedAudiences {
87
+ /** audience_key */
88
+ audienceKey?: string[];
89
+ }
90
+ export interface ChannelsContent {
91
+ /** mobile push override */
92
+ mobileContent?: MobileContent;
93
+ }
94
+ export interface MobileContent {
95
+ /** title override of mobile push content */
96
+ title?: string;
97
+ /** body override of mobile push content */
98
+ body?: string;
99
+ }
100
+ export interface NotifyByAppResponse {
101
+ /** notification_batch_id */
102
+ notificationBatchId?: string;
103
+ }
104
+ /**
105
+ * Sends notifications based on the template and dynamic values provided.
106
+ *
107
+ * > This feature is not yet available to all users.
108
+ *
109
+ * An app can call this endpoint up to 100,000 times per month for each site.
110
+ *
111
+ * When you [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center, you are given a notification template ID.
112
+ * Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
113
+ * If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
114
+ * The values you specify are incorporated seamlessly in the notifications sent out.
115
+ * @param notificationTemplateId - Notification template ID. A notification template specifies the text and recipients for notifications.
116
+ * 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.
117
+ * @public
118
+ * @documentationMaturity preview
119
+ * @requiredField notificationTemplateId
120
+ */
121
+ export declare function notify(notificationTemplateId: string, options?: NotifyOptions): Promise<NotifyResponse>;
122
+ export interface NotifyOptions {
123
+ /**
124
+ * Each key is a placeholder name you specify when [creating a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template).
125
+ * The value is an object containing the text to replace the placeholder in the notifications.
126
+ */
127
+ dynamicValues?: Record<string, DynamicValue>;
128
+ }
@@ -0,0 +1,107 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { serializer, transformError } from '@wix/metro-runtime/velo';
11
+ import * as ambassadorWixPingNotificationsV3Notification from './ping-notifications-v3-notification.http';
12
+ let __verbose = false;
13
+ function __log(...args) {
14
+ __verbose && console.log(...args);
15
+ }
16
+ function __inspect(obj) {
17
+ return obj;
18
+ }
19
+ export const __debug = {
20
+ verboseLogging: {
21
+ on: () => (__verbose = true),
22
+ off: () => (__verbose = false),
23
+ },
24
+ };
25
+ const _toVeloEntity = '$';
26
+ const _fromVeloEntity = '$';
27
+ export var TemplateChannel;
28
+ (function (TemplateChannel) {
29
+ TemplateChannel["WEB_FEED"] = "WEB_FEED";
30
+ TemplateChannel["MOBILE_FEED"] = "MOBILE_FEED";
31
+ TemplateChannel["MOBILE_PUSH"] = "MOBILE_PUSH";
32
+ TemplateChannel["BROWSER"] = "BROWSER";
33
+ TemplateChannel["SMS"] = "SMS";
34
+ TemplateChannel["EMAIL"] = "EMAIL";
35
+ TemplateChannel["KAFKA"] = "KAFKA";
36
+ TemplateChannel["VOICE"] = "VOICE";
37
+ })(TemplateChannel || (TemplateChannel = {}));
38
+ const _arrayDynamicValue = { items: '_dynamicValue' };
39
+ const _dynamicValue = { map: '_mapDynamicValue', array: '_arrayDynamicValue' };
40
+ const _mapDynamicValue = { items: 'Map#_dynamicValue' };
41
+ const _notifyRequest = { dynamicValues: 'Map#_dynamicValue' };
42
+ const _notifyResponse = {};
43
+ /**
44
+ * Sends notifications based on the template and dynamic values provided.
45
+ *
46
+ * > This feature is not yet available to all users.
47
+ *
48
+ * An app can call this endpoint up to 100,000 times per month for each site.
49
+ *
50
+ * When you [create a notification template](https://dev.wix.com/api/rest/wix-notifications/notifications/creating-a-notification-template) in the Wix Dev Center, you are given a notification template ID.
51
+ * Call the Notify endpoint with this ID as `notificationTemplateID` to trigger notifications based on the notification template.
52
+ * If the notification template contains placeholders for dynamic values, provide those values as key-value pairs in the `dynamicValues` array.
53
+ * The values you specify are incorporated seamlessly in the notifications sent out.
54
+ * @param notificationTemplateId - Notification template ID. A notification template specifies the text and recipients for notifications.
55
+ * 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.
56
+ * @public
57
+ * @documentationMaturity preview
58
+ * @requiredField notificationTemplateId
59
+ */
60
+ export function notify(notificationTemplateId, options) {
61
+ var _a, _b, _c;
62
+ return __awaiter(this, arguments, void 0, function* () {
63
+ const requestTransformation = {
64
+ notificationTemplateId: '$[0]',
65
+ dynamicValues: '$[1].dynamicValues',
66
+ };
67
+ const responseTransformation = '$';
68
+ // @ts-ignore
69
+ const { httpClient, sideEffects } = arguments[2];
70
+ const { toAmbassadorRequest } = serializer({
71
+ rootSchema: _notifyRequest,
72
+ depSchemas: { _arrayDynamicValue, _dynamicValue, _mapDynamicValue },
73
+ fqdnTransformation: {
74
+ paths: [],
75
+ transformation: _fromVeloEntity,
76
+ },
77
+ customTransformation: requestTransformation,
78
+ });
79
+ const { fromJSON } = serializer({
80
+ rootSchema: _notifyResponse,
81
+ depSchemas: {},
82
+ fqdnTransformation: {
83
+ paths: [],
84
+ transformation: _toVeloEntity,
85
+ },
86
+ customTransformation: responseTransformation,
87
+ });
88
+ const payload = toAmbassadorRequest([notificationTemplateId, options]);
89
+ const reqOpts = ambassadorWixPingNotificationsV3Notification.notify(payload);
90
+ __log(`"Notify" sending request with: ${__inspect(reqOpts)}`);
91
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
92
+ try {
93
+ const result = yield httpClient.request(reqOpts);
94
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
95
+ return fromJSON(result.data);
96
+ }
97
+ catch (err) {
98
+ const transformedError = transformError(err, requestTransformation, [
99
+ 'notificationTemplateId',
100
+ 'options',
101
+ ]);
102
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
103
+ throw transformedError;
104
+ }
105
+ });
106
+ }
107
+ //# sourceMappingURL=ping-notifications-v3-notification.universal.js.map
@@ -0,0 +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;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,gBAAgB,CAAC;SACxB;;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/crm",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -15,8 +15,8 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "@wix/metro-runtime": "^1.0.0",
18
- "@wix/sdk-types": "^1.0.0",
19
- "@wix/motion-edm-autogen-query-wrapper": "^1.0.0"
18
+ "@wix/motion-edm-autogen-query-wrapper": "^1.0.0",
19
+ "@wix/sdk-types": "^1.0.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@wix/typescript-to-service-json": "^1.0.0"
@@ -33,5 +33,5 @@
33
33
  "groupId": "com.wixpress.public-sdk-autogen"
34
34
  }
35
35
  },
36
- "falconPackageHash": "0c3098a243992127dfa2370e89212eaf79af585f87efaa6ed65a4ee7"
36
+ "falconPackageHash": "f93f40ad319d3ceb781c5659da2b1ac55a0a200c77036f0010c78775"
37
37
  }