@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.
Files changed (61) hide show
  1. package/build/cjs/context.d.ts +1 -1
  2. package/build/cjs/context.js +1 -1
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +1 -1
  5. package/build/cjs/index.js +1 -1
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1 -1
  8. package/build/cjs/meta.js +1 -1
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +1 -1
  11. package/build/es/context.js +1 -1
  12. package/build/es/context.js.map +1 -1
  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/package.json +11 -9
  20. package/build/cjs/index.typings.d.ts +0 -1
  21. package/build/cjs/index.typings.js +0 -28
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/ping-notifications-v1-public-notification.context.d.ts +0 -3
  24. package/build/cjs/src/ping-notifications-v1-public-notification.context.js +0 -16
  25. package/build/cjs/src/ping-notifications-v1-public-notification.context.js.map +0 -1
  26. package/build/cjs/src/ping-notifications-v1-public-notification.http.d.ts +0 -13
  27. package/build/cjs/src/ping-notifications-v1-public-notification.http.js +0 -70
  28. package/build/cjs/src/ping-notifications-v1-public-notification.http.js.map +0 -1
  29. package/build/cjs/src/ping-notifications-v1-public-notification.meta.d.ts +0 -13
  30. package/build/cjs/src/ping-notifications-v1-public-notification.meta.js +0 -47
  31. package/build/cjs/src/ping-notifications-v1-public-notification.meta.js.map +0 -1
  32. package/build/cjs/src/ping-notifications-v1-public-notification.public.d.ts +0 -8
  33. package/build/cjs/src/ping-notifications-v1-public-notification.public.js +0 -16
  34. package/build/cjs/src/ping-notifications-v1-public-notification.public.js.map +0 -1
  35. package/build/cjs/src/ping-notifications-v1-public-notification.types.d.ts +0 -77
  36. package/build/cjs/src/ping-notifications-v1-public-notification.types.js +0 -28
  37. package/build/cjs/src/ping-notifications-v1-public-notification.types.js.map +0 -1
  38. package/build/cjs/src/ping-notifications-v1-public-notification.universal.d.ts +0 -155
  39. package/build/cjs/src/ping-notifications-v1-public-notification.universal.js +0 -169
  40. package/build/cjs/src/ping-notifications-v1-public-notification.universal.js.map +0 -1
  41. package/build/es/index.typings.d.ts +0 -1
  42. package/build/es/index.typings.js +0 -2
  43. package/build/es/index.typings.js.map +0 -1
  44. package/build/es/src/ping-notifications-v1-public-notification.context.d.ts +0 -3
  45. package/build/es/src/ping-notifications-v1-public-notification.context.js +0 -12
  46. package/build/es/src/ping-notifications-v1-public-notification.context.js.map +0 -1
  47. package/build/es/src/ping-notifications-v1-public-notification.http.d.ts +0 -13
  48. package/build/es/src/ping-notifications-v1-public-notification.http.js +0 -66
  49. package/build/es/src/ping-notifications-v1-public-notification.http.js.map +0 -1
  50. package/build/es/src/ping-notifications-v1-public-notification.meta.d.ts +0 -13
  51. package/build/es/src/ping-notifications-v1-public-notification.meta.js +0 -20
  52. package/build/es/src/ping-notifications-v1-public-notification.meta.js.map +0 -1
  53. package/build/es/src/ping-notifications-v1-public-notification.public.d.ts +0 -8
  54. package/build/es/src/ping-notifications-v1-public-notification.public.js +0 -9
  55. package/build/es/src/ping-notifications-v1-public-notification.public.js.map +0 -1
  56. package/build/es/src/ping-notifications-v1-public-notification.types.d.ts +0 -77
  57. package/build/es/src/ping-notifications-v1-public-notification.types.js +0 -25
  58. package/build/es/src/ping-notifications-v1-public-notification.types.js.map +0 -1
  59. package/build/es/src/ping-notifications-v1-public-notification.universal.d.ts +0 -155
  60. package/build/es/src/ping-notifications-v1-public-notification.universal.js +0 -142
  61. package/build/es/src/ping-notifications-v1-public-notification.universal.js.map +0 -1
@@ -1 +1 @@
1
- export * as notifications from './src/ping-notifications-v1-public-notification.context';
1
+ export * as notifications from '@wix/notifications_notifications/context';
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.notifications = void 0;
27
- exports.notifications = __importStar(require("./src/ping-notifications-v1-public-notification.context"));
27
+ exports.notifications = __importStar(require("@wix/notifications_notifications/context"));
28
28
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yGAAyF"}
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';
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.notifications = void 0;
27
- exports.notifications = __importStar(require("./src/ping-notifications-v1-public-notification.public"));
27
+ exports.notifications = __importStar(require("@wix/notifications_notifications"));
28
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
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.notifications = void 0;
27
- exports.notifications = __importStar(require("./src/ping-notifications-v1-public-notification.meta"));
27
+ exports.notifications = __importStar(require("@wix/notifications_notifications/meta"));
28
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"}
@@ -1 +1 @@
1
- export * as notifications from './src/ping-notifications-v1-public-notification.context';
1
+ export * as notifications from '@wix/notifications_notifications/context';
@@ -1,2 +1,2 @@
1
- export * as notifications from './src/ping-notifications-v1-public-notification.context';
1
+ export * as notifications from '@wix/notifications_notifications/context';
2
2
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,yDAAyD,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/notifications",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -16,14 +16,11 @@
16
16
  "context"
17
17
  ],
18
18
  "dependencies": {
19
- "@wix/metro-runtime": "^1.1528.0",
20
- "@wix/sdk-types": "^1.5.3",
21
- "@wix/sdk-runtime": "^0.2.7",
22
- "@wix/motion-edm-autogen-query-wrapper": "^1.0.37"
19
+ "@wix/notifications_notifications": "1.0.8"
23
20
  },
24
21
  "devDependencies": {
25
- "typescript": "^5.3.2",
26
- "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz"
22
+ "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
23
+ "typescript": "^5.3.2"
27
24
  },
28
25
  "scripts": {
29
26
  "build": "tsc -b tsconfig.json tsconfig.esm.json",
@@ -31,9 +28,14 @@
31
28
  },
32
29
  "wix": {
33
30
  "artifact": {
31
+ "groupId": "com.wixpress.public-sdk-autogen",
34
32
  "artifactId": "notifications-public-sdk-autogen",
35
- "groupId": "com.wixpress.public-sdk-autogen"
33
+ "isRootPublicSdk": true
34
+ },
35
+ "sdkDependency": {
36
+ "fqdnNamespace": "",
37
+ "fqdn": ""
36
38
  }
37
39
  },
38
- "falconPackageHash": "4595bd0be8aa35a2c3bae9e199ac95f747bdf0e72c799914516cf9d8"
40
+ "falconPackageHash": "1b35d16b9de190920a0a54d848422750d0a2283951c00b776b71e60e"
39
41
  }
@@ -1 +0,0 @@
1
- export * as notifications from './src/ping-notifications-v1-public-notification.universal';
@@ -1,28 +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
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.notifications = void 0;
27
- exports.notifications = __importStar(require("./src/ping-notifications-v1-public-notification.universal"));
28
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2GAA2F"}
@@ -1,3 +0,0 @@
1
- import { notify as publicNotify } from './ping-notifications-v1-public-notification.public';
2
- import { BuildRESTFunction } from '@wix/sdk-types';
3
- export declare const notify: BuildRESTFunction<typeof publicNotify>;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.notify = void 0;
4
- const ping_notifications_v1_public_notification_public_1 = require("./ping-notifications-v1-public-notification.public");
5
- const notify = (...args) => {
6
- // @ts-expect-error
7
- if (!globalThis.__wix_context__) {
8
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
9
- }
10
- // @ts-expect-error
11
- return globalThis.__wix_context__
12
- .initWixModules(ping_notifications_v1_public_notification_public_1.notify)
13
- .apply(undefined, args);
14
- };
15
- exports.notify = notify;
16
- //# 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,yHAA4F;AAGrF,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,yDAAY,CAAC;SAC5B,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,MAAM,UAajB"}
@@ -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,70 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.notify = void 0;
4
- const metro_runtime_1 = require("@wix/metro-runtime");
5
- function resolveComWixpressPingHubApiPublicNotificationsServiceUrl(opts) {
6
- const domainToMappings = {
7
- 'api._api_base_domain_': [
8
- {
9
- srcPath: '/notifications-hub-server',
10
- destPath: '',
11
- },
12
- ],
13
- 'www._base_domain_': [
14
- {
15
- srcPath: '/_api/ping/hub',
16
- destPath: '',
17
- },
18
- {
19
- srcPath: '/_api/ping/notifications',
20
- destPath: '',
21
- },
22
- ],
23
- 'manage._base_domain_': [
24
- {
25
- srcPath: '/_api/ping/hub',
26
- destPath: '',
27
- },
28
- {
29
- srcPath: '/_api/ping/notifications',
30
- destPath: '',
31
- },
32
- ],
33
- 'www.wixapis.com': [
34
- {
35
- srcPath: '/notifications/v3/notify',
36
- destPath: '/v3/notify',
37
- },
38
- ],
39
- };
40
- return (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
41
- }
42
- /**
43
- * Sends a notification.
44
- *
45
- *
46
- * The `notify()` function sends a [notification](https://support.wix.com/en/article/about-your-dashboard-notifications) to the specified recipients on the specified channels.
47
- *
48
- * List the the channels for the notification in the `channels` parameter .
49
- *
50
- * List the recipients for the notification in the `toContacts`, `toSiteContributors`, and `toTopicsSubscribers` parameters.
51
- */
52
- function notify(payload) {
53
- function __notify({ host }) {
54
- const metadata = {
55
- entityFqdn: 'wix.ping.notifications.v1.public_notification',
56
- method: 'POST',
57
- methodFqn: 'com.wixpress.ping.hub.api.PublicNotificationsService.Notify',
58
- url: resolveComWixpressPingHubApiPublicNotificationsServiceUrl({
59
- protoPath: '/api/v1/notify',
60
- data: payload,
61
- host,
62
- }),
63
- data: payload,
64
- };
65
- return metadata;
66
- }
67
- return __notify;
68
- }
69
- exports.notify = notify;
70
- //# 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,sDAAgD;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,IAAA,0BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,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;AApBD,wBAoBC"}
@@ -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,47 +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
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.notify = void 0;
27
- const ambassadorWixPingNotificationsV1PublicNotification = __importStar(require("./ping-notifications-v1-public-notification.http"));
28
- function notify() {
29
- const payload = {};
30
- const getRequestOptions = ambassadorWixPingNotificationsV1PublicNotification.notify(payload);
31
- const getUrl = (context) => {
32
- const { url } = getRequestOptions(context);
33
- return url;
34
- };
35
- return {
36
- getUrl,
37
- httpMethod: 'POST',
38
- path: '/api/v1/notify',
39
- pathParams: {},
40
- __requestType: null,
41
- __originalRequestType: null,
42
- __responseType: null,
43
- __originalResponseType: null,
44
- };
45
- }
46
- exports.notify = notify;
47
- //# 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) => 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 = 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 = 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 = 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,oBAAJ,IAAI,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,uBAAP,OAAO,QASlB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mDAAiC,CAAA;IACjC,oCAAoC;IACpC,+BAAa,CAAA;AACf,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}