@wix/notifications 1.0.20 → 1.0.21
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/context.d.ts +1 -1
- package/build/cjs/context.js +1 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -1
- package/build/es/context.js +1 -1
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -1
- package/build/es/meta.js +1 -1
- package/build/es/meta.js.map +1 -1
- package/package.json +11 -9
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -28
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/ping-notifications-v1-public-notification.context.d.ts +0 -3
- package/build/cjs/src/ping-notifications-v1-public-notification.context.js +0 -16
- package/build/cjs/src/ping-notifications-v1-public-notification.context.js.map +0 -1
- package/build/cjs/src/ping-notifications-v1-public-notification.http.d.ts +0 -13
- package/build/cjs/src/ping-notifications-v1-public-notification.http.js +0 -70
- package/build/cjs/src/ping-notifications-v1-public-notification.http.js.map +0 -1
- package/build/cjs/src/ping-notifications-v1-public-notification.meta.d.ts +0 -13
- package/build/cjs/src/ping-notifications-v1-public-notification.meta.js +0 -47
- package/build/cjs/src/ping-notifications-v1-public-notification.meta.js.map +0 -1
- package/build/cjs/src/ping-notifications-v1-public-notification.public.d.ts +0 -8
- package/build/cjs/src/ping-notifications-v1-public-notification.public.js +0 -16
- package/build/cjs/src/ping-notifications-v1-public-notification.public.js.map +0 -1
- package/build/cjs/src/ping-notifications-v1-public-notification.types.d.ts +0 -77
- package/build/cjs/src/ping-notifications-v1-public-notification.types.js +0 -28
- package/build/cjs/src/ping-notifications-v1-public-notification.types.js.map +0 -1
- package/build/cjs/src/ping-notifications-v1-public-notification.universal.d.ts +0 -155
- package/build/cjs/src/ping-notifications-v1-public-notification.universal.js +0 -169
- package/build/cjs/src/ping-notifications-v1-public-notification.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/ping-notifications-v1-public-notification.context.d.ts +0 -3
- package/build/es/src/ping-notifications-v1-public-notification.context.js +0 -12
- package/build/es/src/ping-notifications-v1-public-notification.context.js.map +0 -1
- package/build/es/src/ping-notifications-v1-public-notification.http.d.ts +0 -13
- package/build/es/src/ping-notifications-v1-public-notification.http.js +0 -66
- package/build/es/src/ping-notifications-v1-public-notification.http.js.map +0 -1
- package/build/es/src/ping-notifications-v1-public-notification.meta.d.ts +0 -13
- package/build/es/src/ping-notifications-v1-public-notification.meta.js +0 -20
- package/build/es/src/ping-notifications-v1-public-notification.meta.js.map +0 -1
- package/build/es/src/ping-notifications-v1-public-notification.public.d.ts +0 -8
- package/build/es/src/ping-notifications-v1-public-notification.public.js +0 -9
- package/build/es/src/ping-notifications-v1-public-notification.public.js.map +0 -1
- package/build/es/src/ping-notifications-v1-public-notification.types.d.ts +0 -77
- package/build/es/src/ping-notifications-v1-public-notification.types.js +0 -25
- package/build/es/src/ping-notifications-v1-public-notification.types.js.map +0 -1
- package/build/es/src/ping-notifications-v1-public-notification.universal.d.ts +0 -155
- package/build/es/src/ping-notifications-v1-public-notification.universal.js +0 -142
- package/build/es/src/ping-notifications-v1-public-notification.universal.js.map +0 -1
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
export declare const __debug: {
|
|
2
|
-
verboseLogging: {
|
|
3
|
-
on: () => boolean;
|
|
4
|
-
off: () => boolean;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export interface Public_notification {
|
|
8
|
-
/** id */
|
|
9
|
-
_id?: string | null;
|
|
10
|
-
}
|
|
11
|
-
export interface PublicNotifyRequest extends PublicNotifyRequestRecipientsFilterOneOf, PublicNotifyRequestActionTargetOneOf {
|
|
12
|
-
/** List of site contributors to notify. */
|
|
13
|
-
toSiteContributors?: ToSiteContributors;
|
|
14
|
-
/** List of contacts to notify. */
|
|
15
|
-
toContacts?: ToContacts;
|
|
16
|
-
/** Notify contacts who are subscribed to specific topics. */
|
|
17
|
-
toTopicsSubscribers?: ToTopicsSubscribers;
|
|
18
|
-
/** URL to navigate to when the `action` text is clicked. */
|
|
19
|
-
targetUrl?: string | null;
|
|
20
|
-
/** URL of Dashboard page to navigate to when the `action` text is clicked. */
|
|
21
|
-
targetDashboardPage?: DashboardPages;
|
|
22
|
-
/**
|
|
23
|
-
* Notification title. Only displayed on mobile and browser notifications.
|
|
24
|
-
*
|
|
25
|
-
* Max: 512 characters
|
|
26
|
-
*/
|
|
27
|
-
title?: string | null;
|
|
28
|
-
/**
|
|
29
|
-
* Contents of the notification.
|
|
30
|
-
*
|
|
31
|
-
* Max: 512 characters
|
|
32
|
-
*/
|
|
33
|
-
body?: string | null;
|
|
34
|
-
/**
|
|
35
|
-
* Clickable text that links to the `targetUrl` or `targetDashboardPage`. For example, "Click this!".
|
|
36
|
-
*
|
|
37
|
-
* Max: 512 characters
|
|
38
|
-
*/
|
|
39
|
-
action?: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* The channels to send the notification on. One or more of:
|
|
42
|
-
*
|
|
43
|
-
* - `"Mobile"`: Sends the notification to the Wix App.
|
|
44
|
-
* - `"Dashboard"`: Sends the notification to the contributor's Wix Dashboard.
|
|
45
|
-
* - `"Browser"`: Sends the notification to the contributor's browser.
|
|
46
|
-
*/
|
|
47
|
-
channels?: Channel[];
|
|
48
|
-
}
|
|
49
|
-
/** @oneof */
|
|
50
|
-
export interface PublicNotifyRequestRecipientsFilterOneOf {
|
|
51
|
-
/** List of site contributors to notify. */
|
|
52
|
-
toSiteContributors?: ToSiteContributors;
|
|
53
|
-
/** List of contacts to notify. */
|
|
54
|
-
toContacts?: ToContacts;
|
|
55
|
-
/** Notify contacts who are subscribed to specific topics. */
|
|
56
|
-
toTopicsSubscribers?: ToTopicsSubscribers;
|
|
57
|
-
}
|
|
58
|
-
/** @oneof */
|
|
59
|
-
export interface PublicNotifyRequestActionTargetOneOf {
|
|
60
|
-
/** URL to navigate to when the `action` text is clicked. */
|
|
61
|
-
targetUrl?: string | null;
|
|
62
|
-
/** URL of Dashboard page to navigate to when the `action` text is clicked. */
|
|
63
|
-
targetDashboardPage?: DashboardPages;
|
|
64
|
-
}
|
|
65
|
-
export interface ToSiteContributors {
|
|
66
|
-
/**
|
|
67
|
-
* Roles to receive the notification. One of:
|
|
68
|
-
*
|
|
69
|
-
* - `"All_Contributors"`: All site contributors (default).
|
|
70
|
-
* - `"Owner"`: Only the site owner.
|
|
71
|
-
*/
|
|
72
|
-
withRole?: Role;
|
|
73
|
-
}
|
|
74
|
-
export declare enum Role {
|
|
75
|
-
/** All contributors with any role */
|
|
76
|
-
All_Contributors = "All_Contributors",
|
|
77
|
-
/** Only the owner */
|
|
78
|
-
Owner = "Owner"
|
|
79
|
-
}
|
|
80
|
-
export interface ToContacts {
|
|
81
|
-
/** List of contact IDs. */
|
|
82
|
-
contactIds?: string[];
|
|
83
|
-
}
|
|
84
|
-
export interface ToTopicsSubscribers {
|
|
85
|
-
/** List of topics. */
|
|
86
|
-
topics?: string[];
|
|
87
|
-
/** List of contact IDs to exclude from notification. */
|
|
88
|
-
excludedContactIds?: string[];
|
|
89
|
-
}
|
|
90
|
-
export declare enum Channel {
|
|
91
|
-
/** No Default Channel - need to expilicitly decide on channel */
|
|
92
|
-
Undefined = "Undefined",
|
|
93
|
-
/** The widget inside Wix */
|
|
94
|
-
Dashboard = "Dashboard",
|
|
95
|
-
/** Mobile push to WixApp */
|
|
96
|
-
Mobile = "Mobile",
|
|
97
|
-
/** Browser push to the active browser (Chrome/Safari only) */
|
|
98
|
-
Browser = "Browser"
|
|
99
|
-
}
|
|
100
|
-
export declare enum DashboardPages {
|
|
101
|
-
Undefined_Page = "Undefined_Page",
|
|
102
|
-
/** goes to business manager home */
|
|
103
|
-
Home = "Home"
|
|
104
|
-
}
|
|
105
|
-
export interface Empty {
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Sends a notification.
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* The `notify()` function sends a [notification](https://support.wix.com/en/article/about-your-dashboard-notifications) to the specified recipients on the specified channels.
|
|
112
|
-
*
|
|
113
|
-
* List the the channels for the notification in the `channels` parameter .
|
|
114
|
-
*
|
|
115
|
-
* List the recipients for the notification in the `toContacts`, `toSiteContributors`, and `toTopicsSubscribers` parameters.
|
|
116
|
-
* @public
|
|
117
|
-
* @documentationMaturity preview
|
|
118
|
-
* @requiredField body
|
|
119
|
-
* @requiredField channels
|
|
120
|
-
* @param options - Notification options.
|
|
121
|
-
* @param body - The body of the notification.
|
|
122
|
-
*
|
|
123
|
-
* Max: 512 characters
|
|
124
|
-
* @param channels - The channels to send the notification on. One or more of:
|
|
125
|
-
*
|
|
126
|
-
* - `"Mobile"`: Sends the notification to the Wix App.
|
|
127
|
-
* - `"Dashboard"`: Sends the notification to the contributor's Wix Dashboard.
|
|
128
|
-
* - `"Browser"`: Sends the notification to the contributor's browser.
|
|
129
|
-
* @returns Fulfilled when the send notification request is received.
|
|
130
|
-
*/
|
|
131
|
-
export declare function notify(body: string | null, channels: Channel[], options?: NotifyOptions): Promise<void>;
|
|
132
|
-
export interface NotifyOptions extends PublicNotifyRequestRecipientsFilterOneOf, PublicNotifyRequestActionTargetOneOf {
|
|
133
|
-
/** List of site contributors to notify. */
|
|
134
|
-
toSiteContributors?: ToSiteContributors;
|
|
135
|
-
/** List of contacts to notify. */
|
|
136
|
-
toContacts?: ToContacts;
|
|
137
|
-
/** Notify contacts who are subscribed to specific topics. */
|
|
138
|
-
toTopicsSubscribers?: ToTopicsSubscribers;
|
|
139
|
-
/**
|
|
140
|
-
* Notification title. Only displayed on mobile and browser notifications.
|
|
141
|
-
*
|
|
142
|
-
* Max: 512 characters
|
|
143
|
-
*/
|
|
144
|
-
title?: string | null;
|
|
145
|
-
/**
|
|
146
|
-
* Clickable text that links to the `targetUrl` or `targetDashboardPage`. For example, "Click this!".
|
|
147
|
-
*
|
|
148
|
-
* Max: 512 characters
|
|
149
|
-
*/
|
|
150
|
-
action?: string | null;
|
|
151
|
-
/** URL to navigate to when the `action` text is clicked. */
|
|
152
|
-
targetUrl?: string | null;
|
|
153
|
-
/** URL of Dashboard page to navigate to when the `action` text is clicked. */
|
|
154
|
-
targetDashboardPage?: DashboardPages;
|
|
155
|
-
}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.notify = exports.DashboardPages = exports.Channel = exports.Role = exports.__debug = void 0;
|
|
36
|
-
const velo_1 = require("@wix/metro-runtime/velo");
|
|
37
|
-
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
38
|
-
const ambassadorWixPingNotificationsV1PublicNotification = __importStar(require("./ping-notifications-v1-public-notification.http"));
|
|
39
|
-
let __verbose = false;
|
|
40
|
-
function __log(...args) {
|
|
41
|
-
__verbose && console.log(...args);
|
|
42
|
-
}
|
|
43
|
-
function __inspect(obj) {
|
|
44
|
-
return obj;
|
|
45
|
-
}
|
|
46
|
-
exports.__debug = {
|
|
47
|
-
verboseLogging: {
|
|
48
|
-
on: () => (__verbose = true),
|
|
49
|
-
off: () => (__verbose = false),
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
const _toVeloEntity = '$';
|
|
53
|
-
const _fromVeloEntity = '$';
|
|
54
|
-
var Role;
|
|
55
|
-
(function (Role) {
|
|
56
|
-
/** All contributors with any role */
|
|
57
|
-
Role["All_Contributors"] = "All_Contributors";
|
|
58
|
-
/** Only the owner */
|
|
59
|
-
Role["Owner"] = "Owner";
|
|
60
|
-
})(Role || (exports.Role = Role = {}));
|
|
61
|
-
var Channel;
|
|
62
|
-
(function (Channel) {
|
|
63
|
-
/** No Default Channel - need to expilicitly decide on channel */
|
|
64
|
-
Channel["Undefined"] = "Undefined";
|
|
65
|
-
/** The widget inside Wix */
|
|
66
|
-
Channel["Dashboard"] = "Dashboard";
|
|
67
|
-
/** Mobile push to WixApp */
|
|
68
|
-
Channel["Mobile"] = "Mobile";
|
|
69
|
-
/** Browser push to the active browser (Chrome/Safari only) */
|
|
70
|
-
Channel["Browser"] = "Browser";
|
|
71
|
-
})(Channel || (exports.Channel = Channel = {}));
|
|
72
|
-
var DashboardPages;
|
|
73
|
-
(function (DashboardPages) {
|
|
74
|
-
DashboardPages["Undefined_Page"] = "Undefined_Page";
|
|
75
|
-
/** goes to business manager home */
|
|
76
|
-
DashboardPages["Home"] = "Home";
|
|
77
|
-
})(DashboardPages || (exports.DashboardPages = DashboardPages = {}));
|
|
78
|
-
const _empty = {};
|
|
79
|
-
const _publicNotifyRequest = {};
|
|
80
|
-
/**
|
|
81
|
-
* Sends a notification.
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* The `notify()` function sends a [notification](https://support.wix.com/en/article/about-your-dashboard-notifications) to the specified recipients on the specified channels.
|
|
85
|
-
*
|
|
86
|
-
* List the the channels for the notification in the `channels` parameter .
|
|
87
|
-
*
|
|
88
|
-
* List the recipients for the notification in the `toContacts`, `toSiteContributors`, and `toTopicsSubscribers` parameters.
|
|
89
|
-
* @public
|
|
90
|
-
* @documentationMaturity preview
|
|
91
|
-
* @requiredField body
|
|
92
|
-
* @requiredField channels
|
|
93
|
-
* @param options - Notification options.
|
|
94
|
-
* @param body - The body of the notification.
|
|
95
|
-
*
|
|
96
|
-
* Max: 512 characters
|
|
97
|
-
* @param channels - The channels to send the notification on. One or more of:
|
|
98
|
-
*
|
|
99
|
-
* - `"Mobile"`: Sends the notification to the Wix App.
|
|
100
|
-
* - `"Dashboard"`: Sends the notification to the contributor's Wix Dashboard.
|
|
101
|
-
* - `"Browser"`: Sends the notification to the contributor's browser.
|
|
102
|
-
* @returns Fulfilled when the send notification request is received.
|
|
103
|
-
*/
|
|
104
|
-
function notify(body, channels, options) {
|
|
105
|
-
var _a, _b, _c;
|
|
106
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
107
|
-
const requestTransformation = {
|
|
108
|
-
body: '$[0]',
|
|
109
|
-
channels: '$[1]',
|
|
110
|
-
toSiteContributors: '$[2].toSiteContributors',
|
|
111
|
-
toContacts: '$[2].toContacts',
|
|
112
|
-
toTopicsSubscribers: '$[2].toTopicsSubscribers',
|
|
113
|
-
title: '$[2].title',
|
|
114
|
-
action: '$[2].action',
|
|
115
|
-
targetUrl: '$[2].targetUrl',
|
|
116
|
-
targetDashboardPage: '$[2].targetDashboardPage',
|
|
117
|
-
};
|
|
118
|
-
const responseTransformation = '$';
|
|
119
|
-
// @ts-ignore
|
|
120
|
-
const { httpClient, sideEffects } = arguments[3];
|
|
121
|
-
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
122
|
-
rootSchema: _publicNotifyRequest,
|
|
123
|
-
depSchemas: {},
|
|
124
|
-
fqdnTransformation: {
|
|
125
|
-
paths: [],
|
|
126
|
-
transformation: _fromVeloEntity,
|
|
127
|
-
},
|
|
128
|
-
customTransformation: requestTransformation,
|
|
129
|
-
});
|
|
130
|
-
const { fromJSON } = (0, velo_1.serializer)({
|
|
131
|
-
rootSchema: _empty,
|
|
132
|
-
depSchemas: {},
|
|
133
|
-
fqdnTransformation: {
|
|
134
|
-
paths: [],
|
|
135
|
-
transformation: _toVeloEntity,
|
|
136
|
-
},
|
|
137
|
-
customTransformation: responseTransformation,
|
|
138
|
-
});
|
|
139
|
-
const payload = toAmbassadorRequest([body, channels, options]);
|
|
140
|
-
const reqOpts = ambassadorWixPingNotificationsV1PublicNotification.notify(payload);
|
|
141
|
-
__log(`"Notify" sending request with: ${__inspect(reqOpts)}`);
|
|
142
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
143
|
-
try {
|
|
144
|
-
const result = yield httpClient.request(reqOpts);
|
|
145
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
146
|
-
}
|
|
147
|
-
catch (err) {
|
|
148
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
149
|
-
spreadPathsToArguments: {},
|
|
150
|
-
explicitPathsToArguments: {
|
|
151
|
-
body: '$[0]',
|
|
152
|
-
channels: '$[1]',
|
|
153
|
-
toSiteContributors: '$[2].toSiteContributors',
|
|
154
|
-
toContacts: '$[2].toContacts',
|
|
155
|
-
toTopicsSubscribers: '$[2].toTopicsSubscribers',
|
|
156
|
-
title: '$[2].title',
|
|
157
|
-
action: '$[2].action',
|
|
158
|
-
targetUrl: '$[2].targetUrl',
|
|
159
|
-
targetDashboardPage: '$[2].targetDashboardPage',
|
|
160
|
-
},
|
|
161
|
-
singleArgumentUnchanged: false,
|
|
162
|
-
}, ['body', 'channels', 'options']);
|
|
163
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
164
|
-
throw transformedError;
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
exports.notify = notify;
|
|
169
|
-
//# sourceMappingURL=ping-notifications-v1-public-notification.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ping-notifications-v1-public-notification.universal.js","sourceRoot":"","sources":["../../../src/ping-notifications-v1-public-notification.universal.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as notifications from './src/ping-notifications-v1-public-notification.universal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,2DAA2D,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { notify as publicNotify } from './ping-notifications-v1-public-notification.public';
|
|
2
|
-
export const notify = (...args) => {
|
|
3
|
-
// @ts-expect-error
|
|
4
|
-
if (!globalThis.__wix_context__) {
|
|
5
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
6
|
-
}
|
|
7
|
-
// @ts-expect-error
|
|
8
|
-
return globalThis.__wix_context__
|
|
9
|
-
.initWixModules(publicNotify)
|
|
10
|
-
.apply(undefined, args);
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=ping-notifications-v1-public-notification.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ping-notifications-v1-public-notification.context.js","sourceRoot":"","sources":["../../../src/ping-notifications-v1-public-notification.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAG5F,MAAM,CAAC,MAAM,MAAM,GAA2C,CAC5D,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,YAAY,CAAC;SAC5B,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { PublicNotifyRequest, Empty } from './ping-notifications-v1-public-notification.types';
|
|
3
|
-
/**
|
|
4
|
-
* Sends a notification.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* The `notify()` function sends a [notification](https://support.wix.com/en/article/about-your-dashboard-notifications) to the specified recipients on the specified channels.
|
|
8
|
-
*
|
|
9
|
-
* List the the channels for the notification in the `channels` parameter .
|
|
10
|
-
*
|
|
11
|
-
* List the recipients for the notification in the `toContacts`, `toSiteContributors`, and `toTopicsSubscribers` parameters.
|
|
12
|
-
*/
|
|
13
|
-
export declare function notify(payload: PublicNotifyRequest): RequestOptionsFactory<Empty>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { resolveUrl } from '@wix/metro-runtime';
|
|
2
|
-
function resolveComWixpressPingHubApiPublicNotificationsServiceUrl(opts) {
|
|
3
|
-
const domainToMappings = {
|
|
4
|
-
'api._api_base_domain_': [
|
|
5
|
-
{
|
|
6
|
-
srcPath: '/notifications-hub-server',
|
|
7
|
-
destPath: '',
|
|
8
|
-
},
|
|
9
|
-
],
|
|
10
|
-
'www._base_domain_': [
|
|
11
|
-
{
|
|
12
|
-
srcPath: '/_api/ping/hub',
|
|
13
|
-
destPath: '',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
srcPath: '/_api/ping/notifications',
|
|
17
|
-
destPath: '',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
'manage._base_domain_': [
|
|
21
|
-
{
|
|
22
|
-
srcPath: '/_api/ping/hub',
|
|
23
|
-
destPath: '',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
srcPath: '/_api/ping/notifications',
|
|
27
|
-
destPath: '',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
'www.wixapis.com': [
|
|
31
|
-
{
|
|
32
|
-
srcPath: '/notifications/v3/notify',
|
|
33
|
-
destPath: '/v3/notify',
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
};
|
|
37
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Sends a notification.
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* The `notify()` function sends a [notification](https://support.wix.com/en/article/about-your-dashboard-notifications) to the specified recipients on the specified channels.
|
|
44
|
-
*
|
|
45
|
-
* List the the channels for the notification in the `channels` parameter .
|
|
46
|
-
*
|
|
47
|
-
* List the recipients for the notification in the `toContacts`, `toSiteContributors`, and `toTopicsSubscribers` parameters.
|
|
48
|
-
*/
|
|
49
|
-
export function notify(payload) {
|
|
50
|
-
function __notify({ host }) {
|
|
51
|
-
const metadata = {
|
|
52
|
-
entityFqdn: 'wix.ping.notifications.v1.public_notification',
|
|
53
|
-
method: 'POST',
|
|
54
|
-
methodFqn: 'com.wixpress.ping.hub.api.PublicNotificationsService.Notify',
|
|
55
|
-
url: resolveComWixpressPingHubApiPublicNotificationsServiceUrl({
|
|
56
|
-
protoPath: '/api/v1/notify',
|
|
57
|
-
data: payload,
|
|
58
|
-
host,
|
|
59
|
-
}),
|
|
60
|
-
data: payload,
|
|
61
|
-
};
|
|
62
|
-
return metadata;
|
|
63
|
-
}
|
|
64
|
-
return __notify;
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=ping-notifications-v1-public-notification.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ping-notifications-v1-public-notification.http.js","sourceRoot":"","sources":["../../../src/ping-notifications-v1-public-notification.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQhD,SAAS,yDAAyD,CAChE,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;;;;;;;;;GASG;AACH,MAAM,UAAU,MAAM,CACpB,OAA4B;IAE5B,SAAS,QAAQ,CAAC,EAAE,IAAI,EAAO;QAC7B,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,+CAA+C;YAC3D,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,6DAA6D;YACxE,GAAG,EAAE,yDAAyD,CAAC;gBAC7D,SAAS,EAAE,gBAAgB;gBAC3B,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixPingNotificationsV1PublicNotificationTypes from './ping-notifications-v1-public-notification.types';
|
|
2
|
-
import * as ambassadorWixPingNotificationsV1PublicNotificationUniversalTypes from './ping-notifications-v1-public-notification.universal';
|
|
3
|
-
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
-
getUrl: (context: any) => string;
|
|
5
|
-
httpMethod: K;
|
|
6
|
-
path: string;
|
|
7
|
-
pathParams: M;
|
|
8
|
-
__requestType: T;
|
|
9
|
-
__originalRequestType: S;
|
|
10
|
-
__responseType: Q;
|
|
11
|
-
__originalResponseType: R;
|
|
12
|
-
};
|
|
13
|
-
export declare function notify(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixPingNotificationsV1PublicNotificationUniversalTypes.PublicNotifyRequest, ambassadorWixPingNotificationsV1PublicNotificationTypes.PublicNotifyRequest, ambassadorWixPingNotificationsV1PublicNotificationUniversalTypes.Empty, ambassadorWixPingNotificationsV1PublicNotificationTypes.Empty>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixPingNotificationsV1PublicNotification from './ping-notifications-v1-public-notification.http';
|
|
2
|
-
export function notify() {
|
|
3
|
-
const payload = {};
|
|
4
|
-
const getRequestOptions = ambassadorWixPingNotificationsV1PublicNotification.notify(payload);
|
|
5
|
-
const getUrl = (context) => {
|
|
6
|
-
const { url } = getRequestOptions(context);
|
|
7
|
-
return url;
|
|
8
|
-
};
|
|
9
|
-
return {
|
|
10
|
-
getUrl,
|
|
11
|
-
httpMethod: 'POST',
|
|
12
|
-
path: '/api/v1/notify',
|
|
13
|
-
pathParams: {},
|
|
14
|
-
__requestType: null,
|
|
15
|
-
__originalRequestType: null,
|
|
16
|
-
__responseType: null,
|
|
17
|
-
__originalResponseType: null,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=ping-notifications-v1-public-notification.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ping-notifications-v1-public-notification.meta.js","sourceRoot":"","sources":["../../../src/ping-notifications-v1-public-notification.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kDAAkD,MAAM,kDAAkD,CAAC;AAsBvH,MAAM,UAAU,MAAM;IAQpB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,kDAAkD,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAErE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { Channel, NotifyOptions } from './ping-notifications-v1-public-notification.universal';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function notify(httpClient: HttpClient): (body: string | null, channels: Channel[], options?: NotifyOptions) => Promise<void>;
|
|
7
|
-
export { Role, Channel, DashboardPages, } from './ping-notifications-v1-public-notification.universal';
|
|
8
|
-
export { Public_notification, PublicNotifyRequest, PublicNotifyRequestRecipientsFilterOneOf, PublicNotifyRequestActionTargetOneOf, ToSiteContributors, ToContacts, ToTopicsSubscribers, Empty, NotifyOptions, } from './ping-notifications-v1-public-notification.universal';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { notify as universalNotify, } from './ping-notifications-v1-public-notification.universal';
|
|
2
|
-
export const __metadata = { PACKAGE_NAME: '@wix/notifications' };
|
|
3
|
-
export function notify(httpClient) {
|
|
4
|
-
return (body, channels, options) => universalNotify(body, channels, options,
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
{ httpClient });
|
|
7
|
-
}
|
|
8
|
-
export { Role, Channel, DashboardPages, } from './ping-notifications-v1-public-notification.universal';
|
|
9
|
-
//# sourceMappingURL=ping-notifications-v1-public-notification.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ping-notifications-v1-public-notification.public.js","sourceRoot":"","sources":["../../../src/ping-notifications-v1-public-notification.public.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,MAAM,IAAI,eAAe,GAC1B,MAAM,uDAAuD,CAAC;AAE/D,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAEjE,MAAM,UAAU,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,IAAmB,EAAE,QAAmB,EAAE,OAAuB,EAAE,EAAE,CAC3E,eAAe,CACb,IAAI,EACJ,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,IAAI,EACJ,OAAO,EACP,cAAc,GACf,MAAM,uDAAuD,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export interface Public_notification {
|
|
2
|
-
/** id */
|
|
3
|
-
id?: string | null;
|
|
4
|
-
}
|
|
5
|
-
export interface PublicNotifyRequest extends PublicNotifyRequestRecipientsFilterOneOf, PublicNotifyRequestActionTargetOneOf {
|
|
6
|
-
/** Send to site contributors */
|
|
7
|
-
toSiteContributors?: ToSiteContributors;
|
|
8
|
-
/** Send to contacts */
|
|
9
|
-
toContacts?: ToContacts;
|
|
10
|
-
/** Send to topic subscribers */
|
|
11
|
-
toTopicsSubscribers?: ToTopicsSubscribers;
|
|
12
|
-
/** an open url as an action target */
|
|
13
|
-
targetUrl?: string | null;
|
|
14
|
-
/** target_dashboard_page */
|
|
15
|
-
targetDashboardPage?: DashboardPages;
|
|
16
|
-
/** The title of the notification */
|
|
17
|
-
title?: string | null;
|
|
18
|
-
/** The body of the notification */
|
|
19
|
-
body?: string | null;
|
|
20
|
-
/** The Action of the notification */
|
|
21
|
-
action?: string | null;
|
|
22
|
-
/** The channel to which send the notification */
|
|
23
|
-
channels?: Channel[];
|
|
24
|
-
}
|
|
25
|
-
/** @oneof */
|
|
26
|
-
export interface PublicNotifyRequestRecipientsFilterOneOf {
|
|
27
|
-
/** Send to site contributors */
|
|
28
|
-
toSiteContributors?: ToSiteContributors;
|
|
29
|
-
/** Send to contacts */
|
|
30
|
-
toContacts?: ToContacts;
|
|
31
|
-
/** Send to topic subscribers */
|
|
32
|
-
toTopicsSubscribers?: ToTopicsSubscribers;
|
|
33
|
-
}
|
|
34
|
-
/** @oneof */
|
|
35
|
-
export interface PublicNotifyRequestActionTargetOneOf {
|
|
36
|
-
/** an open url as an action target */
|
|
37
|
-
targetUrl?: string | null;
|
|
38
|
-
/** target_dashboard_page */
|
|
39
|
-
targetDashboardPage?: DashboardPages;
|
|
40
|
-
}
|
|
41
|
-
export interface ToSiteContributors {
|
|
42
|
-
/** with_role */
|
|
43
|
-
withRole?: Role;
|
|
44
|
-
}
|
|
45
|
-
export declare enum Role {
|
|
46
|
-
/** All contributors with any role */
|
|
47
|
-
All_Contributors = "All_Contributors",
|
|
48
|
-
/** Only the owner */
|
|
49
|
-
Owner = "Owner"
|
|
50
|
-
}
|
|
51
|
-
export interface ToContacts {
|
|
52
|
-
/** contact_ids */
|
|
53
|
-
contactIds?: string[];
|
|
54
|
-
}
|
|
55
|
-
export interface ToTopicsSubscribers {
|
|
56
|
-
/** topics */
|
|
57
|
-
topics?: string[];
|
|
58
|
-
/** excluded_contact_ids */
|
|
59
|
-
excludedContactIds?: string[];
|
|
60
|
-
}
|
|
61
|
-
export declare enum Channel {
|
|
62
|
-
/** No Default Channel - need to expilicitly decide on channel */
|
|
63
|
-
Undefined = "Undefined",
|
|
64
|
-
/** The widget inside Wix */
|
|
65
|
-
Dashboard = "Dashboard",
|
|
66
|
-
/** Mobile push to WixApp */
|
|
67
|
-
Mobile = "Mobile",
|
|
68
|
-
/** Browser push to the active browser (Chrome/Safari only) */
|
|
69
|
-
Browser = "Browser"
|
|
70
|
-
}
|
|
71
|
-
export declare enum DashboardPages {
|
|
72
|
-
Undefined_Page = "Undefined_Page",
|
|
73
|
-
/** goes to business manager home */
|
|
74
|
-
Home = "Home"
|
|
75
|
-
}
|
|
76
|
-
export interface Empty {
|
|
77
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export var Role;
|
|
2
|
-
(function (Role) {
|
|
3
|
-
/** All contributors with any role */
|
|
4
|
-
Role["All_Contributors"] = "All_Contributors";
|
|
5
|
-
/** Only the owner */
|
|
6
|
-
Role["Owner"] = "Owner";
|
|
7
|
-
})(Role || (Role = {}));
|
|
8
|
-
export var Channel;
|
|
9
|
-
(function (Channel) {
|
|
10
|
-
/** No Default Channel - need to expilicitly decide on channel */
|
|
11
|
-
Channel["Undefined"] = "Undefined";
|
|
12
|
-
/** The widget inside Wix */
|
|
13
|
-
Channel["Dashboard"] = "Dashboard";
|
|
14
|
-
/** Mobile push to WixApp */
|
|
15
|
-
Channel["Mobile"] = "Mobile";
|
|
16
|
-
/** Browser push to the active browser (Chrome/Safari only) */
|
|
17
|
-
Channel["Browser"] = "Browser";
|
|
18
|
-
})(Channel || (Channel = {}));
|
|
19
|
-
export var DashboardPages;
|
|
20
|
-
(function (DashboardPages) {
|
|
21
|
-
DashboardPages["Undefined_Page"] = "Undefined_Page";
|
|
22
|
-
/** goes to business manager home */
|
|
23
|
-
DashboardPages["Home"] = "Home";
|
|
24
|
-
})(DashboardPages || (DashboardPages = {}));
|
|
25
|
-
//# sourceMappingURL=ping-notifications-v1-public-notification.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ping-notifications-v1-public-notification.types.js","sourceRoot":"","sources":["../../../src/ping-notifications-v1-public-notification.types.ts"],"names":[],"mappings":"AAmDA,MAAM,CAAN,IAAY,IAKX;AALD,WAAY,IAAI;IACd,qCAAqC;IACrC,6CAAqC,CAAA;IACrC,qBAAqB;IACrB,uBAAe,CAAA;AACjB,CAAC,EALW,IAAI,KAAJ,IAAI,QAKf;AAcD,MAAM,CAAN,IAAY,OASX;AATD,WAAY,OAAO;IACjB,iEAAiE;IACjE,kCAAuB,CAAA;IACvB,4BAA4B;IAC5B,kCAAuB,CAAA;IACvB,4BAA4B;IAC5B,4BAAiB,CAAA;IACjB,8DAA8D;IAC9D,8BAAmB,CAAA;AACrB,CAAC,EATW,OAAO,KAAP,OAAO,QASlB;AAED,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mDAAiC,CAAA;IACjC,oCAAoC;IACpC,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB"}
|