@wix/notifications 1.0.19 → 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.
Files changed (55) hide show
  1. package/build/cjs/context.d.ts +1 -0
  2. package/build/cjs/{index.typings.js → context.js} +7 -3
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.d.ts +1 -1
  5. package/build/cjs/index.js +6 -2
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1 -1
  8. package/build/cjs/meta.js +6 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +1 -0
  11. package/build/es/context.js +2 -0
  12. package/build/es/context.js.map +1 -0
  13. package/build/es/index.d.ts +1 -1
  14. package/build/es/index.js +1 -1
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +1 -1
  17. package/build/es/meta.js +1 -1
  18. package/build/es/meta.js.map +1 -1
  19. package/context/package.json +6 -0
  20. package/package.json +15 -7
  21. package/build/cjs/index.typings.d.ts +0 -1
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/ping-notifications-v1-public-notification.http.d.ts +0 -4
  24. package/build/cjs/src/ping-notifications-v1-public-notification.http.js +0 -69
  25. package/build/cjs/src/ping-notifications-v1-public-notification.http.js.map +0 -1
  26. package/build/cjs/src/ping-notifications-v1-public-notification.meta.d.ts +0 -13
  27. package/build/cjs/src/ping-notifications-v1-public-notification.meta.js +0 -43
  28. package/build/cjs/src/ping-notifications-v1-public-notification.meta.js.map +0 -1
  29. package/build/cjs/src/ping-notifications-v1-public-notification.public.d.ts +0 -8
  30. package/build/cjs/src/ping-notifications-v1-public-notification.public.js +0 -16
  31. package/build/cjs/src/ping-notifications-v1-public-notification.public.js.map +0 -1
  32. package/build/cjs/src/ping-notifications-v1-public-notification.types.d.ts +0 -77
  33. package/build/cjs/src/ping-notifications-v1-public-notification.types.js +0 -28
  34. package/build/cjs/src/ping-notifications-v1-public-notification.types.js.map +0 -1
  35. package/build/cjs/src/ping-notifications-v1-public-notification.universal.d.ts +0 -109
  36. package/build/cjs/src/ping-notifications-v1-public-notification.universal.js +0 -139
  37. package/build/cjs/src/ping-notifications-v1-public-notification.universal.js.map +0 -1
  38. package/build/es/index.typings.d.ts +0 -1
  39. package/build/es/index.typings.js +0 -2
  40. package/build/es/index.typings.js.map +0 -1
  41. package/build/es/src/ping-notifications-v1-public-notification.http.d.ts +0 -4
  42. package/build/es/src/ping-notifications-v1-public-notification.http.js +0 -65
  43. package/build/es/src/ping-notifications-v1-public-notification.http.js.map +0 -1
  44. package/build/es/src/ping-notifications-v1-public-notification.meta.d.ts +0 -13
  45. package/build/es/src/ping-notifications-v1-public-notification.meta.js +0 -20
  46. package/build/es/src/ping-notifications-v1-public-notification.meta.js.map +0 -1
  47. package/build/es/src/ping-notifications-v1-public-notification.public.d.ts +0 -8
  48. package/build/es/src/ping-notifications-v1-public-notification.public.js +0 -9
  49. package/build/es/src/ping-notifications-v1-public-notification.public.js.map +0 -1
  50. package/build/es/src/ping-notifications-v1-public-notification.types.d.ts +0 -77
  51. package/build/es/src/ping-notifications-v1-public-notification.types.js +0 -25
  52. package/build/es/src/ping-notifications-v1-public-notification.types.js.map +0 -1
  53. package/build/es/src/ping-notifications-v1-public-notification.universal.d.ts +0 -109
  54. package/build/es/src/ping-notifications-v1-public-notification.universal.js +0 -116
  55. package/build/es/src/ping-notifications-v1-public-notification.universal.js.map +0 -1
@@ -0,0 +1 @@
1
+ export * as notifications from '@wix/notifications_notifications/context';
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -20,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
20
24
  };
21
25
  Object.defineProperty(exports, "__esModule", { value: true });
22
26
  exports.notifications = void 0;
23
- exports.notifications = __importStar(require("./src/ping-notifications-v1-public-notification.universal"));
24
- //# sourceMappingURL=index.typings.js.map
27
+ exports.notifications = __importStar(require("@wix/notifications_notifications/context"));
28
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0FAA0E"}
@@ -1 +1 @@
1
- export * as notifications from './src/ping-notifications-v1-public-notification.public';
1
+ export * as notifications from '@wix/notifications_notifications';
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -20,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
20
24
  };
21
25
  Object.defineProperty(exports, "__esModule", { value: true });
22
26
  exports.notifications = void 0;
23
- exports.notifications = __importStar(require("./src/ping-notifications-v1-public-notification.public"));
27
+ exports.notifications = __importStar(require("@wix/notifications_notifications"));
24
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wGAAwF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkE"}
@@ -1 +1 @@
1
- export * as notifications from './src/ping-notifications-v1-public-notification.meta';
1
+ export * as notifications from '@wix/notifications_notifications/meta';
package/build/cjs/meta.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -20,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
20
24
  };
21
25
  Object.defineProperty(exports, "__esModule", { value: true });
22
26
  exports.notifications = void 0;
23
- exports.notifications = __importStar(require("./src/ping-notifications-v1-public-notification.meta"));
27
+ exports.notifications = __importStar(require("@wix/notifications_notifications/meta"));
24
28
  //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,sGAAsF"}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uFAAuE"}
@@ -0,0 +1 @@
1
+ export * as notifications from '@wix/notifications_notifications/context';
@@ -0,0 +1,2 @@
1
+ export * as notifications from '@wix/notifications_notifications/context';
2
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,0CAA0C,CAAC"}
@@ -1 +1 @@
1
- export * as notifications from './src/ping-notifications-v1-public-notification.public';
1
+ export * as notifications from '@wix/notifications_notifications';
package/build/es/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * as notifications from './src/ping-notifications-v1-public-notification.public';
1
+ export * as notifications from '@wix/notifications_notifications';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,wDAAwD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAC"}
@@ -1 +1 @@
1
- export * as notifications from './src/ping-notifications-v1-public-notification.meta';
1
+ export * as notifications from '@wix/notifications_notifications/meta';
package/build/es/meta.js CHANGED
@@ -1,2 +1,2 @@
1
- export * as notifications from './src/ping-notifications-v1-public-notification.meta';
1
+ export * as notifications from '@wix/notifications_notifications/meta';
2
2
  //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sDAAsD,CAAC"}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "../build/es/context.js",
4
+ "main": "../build/cjs/context.js",
5
+ "typings": "../build/cjs/context.d.ts"
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/notifications",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -12,12 +12,15 @@
12
12
  "files": [
13
13
  "build",
14
14
  "frontend/package.json",
15
- "meta"
15
+ "meta",
16
+ "context"
16
17
  ],
17
18
  "dependencies": {
18
- "@wix/metro-runtime": "^1.0.0",
19
- "@wix/motion-edm-autogen-query-wrapper": "^1.0.0",
20
- "@wix/sdk-types": "^1.0.0"
19
+ "@wix/notifications_notifications": "1.0.8"
20
+ },
21
+ "devDependencies": {
22
+ "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
23
+ "typescript": "^5.3.2"
21
24
  },
22
25
  "scripts": {
23
26
  "build": "tsc -b tsconfig.json tsconfig.esm.json",
@@ -25,9 +28,14 @@
25
28
  },
26
29
  "wix": {
27
30
  "artifact": {
31
+ "groupId": "com.wixpress.public-sdk-autogen",
28
32
  "artifactId": "notifications-public-sdk-autogen",
29
- "groupId": "com.wixpress.public-sdk-autogen"
33
+ "isRootPublicSdk": true
34
+ },
35
+ "sdkDependency": {
36
+ "fqdnNamespace": "",
37
+ "fqdn": ""
30
38
  }
31
39
  },
32
- "falconPackageHash": "1cf134568a11c401bf514999b183a0c24f7a5a734896845b6aa6bf6e"
40
+ "falconPackageHash": "1b35d16b9de190920a0a54d848422750d0a2283951c00b776b71e60e"
33
41
  }
@@ -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,2GAA2F"}
@@ -1,4 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- import { PublicNotifyRequest, Empty } from './ping-notifications-v1-public-notification.types';
3
- /** This endpoint allows you to send notifications */
4
- export declare function notify(payload: PublicNotifyRequest): RequestOptionsFactory<Empty>;
@@ -1,69 +0,0 @@
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 _empty = {};
7
- const _publicNotifyRequest = {};
8
- function resolveComWixpressPingHubApiPublicNotificationsServiceUrl(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 (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
44
- }
45
- /** This endpoint allows you to send notifications */
46
- function notify(payload) {
47
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_publicNotifyRequest, {});
48
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_empty, {});
49
- function __notify({ host }) {
50
- const serializedData = toReq(payload);
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: serializedData,
58
- host,
59
- }),
60
- data: serializedData,
61
- transformResponse: fromRes,
62
- };
63
- return metadata;
64
- }
65
- __notify.fromReq = fromReq;
66
- return __notify;
67
- }
68
- exports.notify = notify;
69
- //# 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,8DAA2D;AAC3D,sDAAgD;AAQhD,MAAM,MAAM,GAAG,EAAE,CAAC;AAClB,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC,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,IAAA,0BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,qDAAqD;AACrD,SAAgB,MAAM,CACpB,OAA4B;IAE5B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EACrD,oBAAoB,EACpB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAErD,SAAS,QAAQ,CAAC,EAAE,IAAI,EAAO;QAC7B,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,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,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;AA9BD,wBA8BC"}
@@ -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 declare 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,43 +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
- 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
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.notify = void 0;
23
- const ambassadorWixPingNotificationsV1PublicNotification = __importStar(require("./ping-notifications-v1-public-notification.http"));
24
- function notify() {
25
- const payload = {};
26
- const getRequestOptions = ambassadorWixPingNotificationsV1PublicNotification.notify(payload);
27
- const getUrl = (context) => {
28
- const { url } = getRequestOptions(context);
29
- return url;
30
- };
31
- return {
32
- getUrl,
33
- httpMethod: 'POST',
34
- path: '/api/v1/notify',
35
- pathParams: {},
36
- __requestType: null,
37
- __originalRequestType: null,
38
- __responseType: null,
39
- __originalResponseType: null,
40
- };
41
- }
42
- exports.notify = notify;
43
- //# 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,qIAAuH;AAsBvH,SAAgB,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;AA5BD,wBA4BC"}
@@ -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 | undefined) => 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,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DashboardPages = exports.Channel = exports.Role = exports.notify = exports.__metadata = void 0;
4
- const ping_notifications_v1_public_notification_universal_1 = require("./ping-notifications-v1-public-notification.universal");
5
- exports.__metadata = { PACKAGE_NAME: '@wix/notifications' };
6
- function notify(httpClient) {
7
- return (body, channels, options) => (0, ping_notifications_v1_public_notification_universal_1.notify)(body, channels, options,
8
- // @ts-ignore
9
- { httpClient });
10
- }
11
- exports.notify = notify;
12
- var ping_notifications_v1_public_notification_universal_2 = require("./ping-notifications-v1-public-notification.universal");
13
- Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return ping_notifications_v1_public_notification_universal_2.Role; } });
14
- Object.defineProperty(exports, "Channel", { enumerable: true, get: function () { return ping_notifications_v1_public_notification_universal_2.Channel; } });
15
- Object.defineProperty(exports, "DashboardPages", { enumerable: true, get: function () { return ping_notifications_v1_public_notification_universal_2.DashboardPages; } });
16
- //# 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,+HAI+D;AAElD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAEjE,SAAgB,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,IAAmB,EAAE,QAAmB,EAAE,OAAuB,EAAE,EAAE,CAC3E,IAAA,4DAAe,EACb,IAAI,EACJ,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wBASC;AAED,6HAI+D;AAH7D,2IAAA,IAAI,OAAA;AACJ,8IAAA,OAAO,OAAA;AACP,qJAAA,cAAc,OAAA"}
@@ -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,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DashboardPages = exports.Channel = exports.Role = void 0;
4
- var Role;
5
- (function (Role) {
6
- /** All contributors with any role */
7
- Role["All_Contributors"] = "All_Contributors";
8
- /** Only the owner */
9
- Role["Owner"] = "Owner";
10
- })(Role = exports.Role || (exports.Role = {}));
11
- var Channel;
12
- (function (Channel) {
13
- /** No Default Channel - need to expilicitly decide on channel */
14
- Channel["Undefined"] = "Undefined";
15
- /** The widget inside Wix */
16
- Channel["Dashboard"] = "Dashboard";
17
- /** Mobile push to WixApp */
18
- Channel["Mobile"] = "Mobile";
19
- /** Browser push to the active browser (Chrome/Safari only) */
20
- Channel["Browser"] = "Browser";
21
- })(Channel = exports.Channel || (exports.Channel = {}));
22
- var DashboardPages;
23
- (function (DashboardPages) {
24
- DashboardPages["Undefined_Page"] = "Undefined_Page";
25
- /** goes to business manager home */
26
- DashboardPages["Home"] = "Home";
27
- })(DashboardPages = exports.DashboardPages || (exports.DashboardPages = {}));
28
- //# 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,IAAY,IAKX;AALD,WAAY,IAAI;IACd,qCAAqC;IACrC,6CAAqC,CAAA;IACrC,qBAAqB;IACrB,uBAAe,CAAA;AACjB,CAAC,EALW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAKf;AAcD,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,GAAP,eAAO,KAAP,eAAO,QASlB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mDAAiC,CAAA;IACjC,oCAAoC;IACpC,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
@@ -1,109 +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
- /** Send to site contributors */
13
- toSiteContributors?: ToSiteContributors;
14
- /** Send to contacts */
15
- toContacts?: ToContacts;
16
- /** Send to topic subscribers */
17
- toTopicsSubscribers?: ToTopicsSubscribers;
18
- /** an open url as an action target */
19
- targetUrl?: string | null;
20
- /** target_dashboard_page */
21
- targetDashboardPage?: DashboardPages;
22
- /** The title of the notification */
23
- title?: string | null;
24
- /** The body of the notification */
25
- body?: string | null;
26
- /** The Action of the notification */
27
- action?: string | null;
28
- /** The channel to which send the notification */
29
- channels?: Channel[];
30
- }
31
- /** @oneof */
32
- export interface PublicNotifyRequestRecipientsFilterOneOf {
33
- /** Send to site contributors */
34
- toSiteContributors?: ToSiteContributors;
35
- /** Send to contacts */
36
- toContacts?: ToContacts;
37
- /** Send to topic subscribers */
38
- toTopicsSubscribers?: ToTopicsSubscribers;
39
- }
40
- /** @oneof */
41
- export interface PublicNotifyRequestActionTargetOneOf {
42
- /** an open url as an action target */
43
- targetUrl?: string | null;
44
- /** target_dashboard_page */
45
- targetDashboardPage?: DashboardPages;
46
- }
47
- export interface ToSiteContributors {
48
- /** with_role */
49
- withRole?: Role;
50
- }
51
- export declare enum Role {
52
- /** All contributors with any role */
53
- All_Contributors = "All_Contributors",
54
- /** Only the owner */
55
- Owner = "Owner"
56
- }
57
- export interface ToContacts {
58
- /** contact_ids */
59
- contactIds?: string[];
60
- }
61
- export interface ToTopicsSubscribers {
62
- /** topics */
63
- topics?: string[];
64
- /** excluded_contact_ids */
65
- excludedContactIds?: string[];
66
- }
67
- export declare enum Channel {
68
- /** No Default Channel - need to expilicitly decide on channel */
69
- Undefined = "Undefined",
70
- /** The widget inside Wix */
71
- Dashboard = "Dashboard",
72
- /** Mobile push to WixApp */
73
- Mobile = "Mobile",
74
- /** Browser push to the active browser (Chrome/Safari only) */
75
- Browser = "Browser"
76
- }
77
- export declare enum DashboardPages {
78
- Undefined_Page = "Undefined_Page",
79
- /** goes to business manager home */
80
- Home = "Home"
81
- }
82
- export interface Empty {
83
- }
84
- /**
85
- * This endpoint allows you to send notifications
86
- * @param body - The body of the notification
87
- * @param channels - The channel to which send the notification
88
- * @public
89
- * @documentationMaturity preview
90
- * @requiredField body
91
- * @requiredField channels
92
- */
93
- export declare function notify(body: string | null, channels: Channel[], options?: NotifyOptions): Promise<void>;
94
- export interface NotifyOptions extends PublicNotifyRequestRecipientsFilterOneOf, PublicNotifyRequestActionTargetOneOf {
95
- /** Send to site contributors */
96
- toSiteContributors?: ToSiteContributors;
97
- /** Send to contacts */
98
- toContacts?: ToContacts;
99
- /** Send to topic subscribers */
100
- toTopicsSubscribers?: ToTopicsSubscribers;
101
- /** The title of the notification */
102
- title?: string | null;
103
- /** The Action of the notification */
104
- action?: string | null;
105
- /** an open url as an action target */
106
- targetUrl?: string | null;
107
- /** target_dashboard_page */
108
- targetDashboardPage?: DashboardPages;
109
- }