@wix/auto_sdk_loyalty_social-media 1.0.4 → 1.0.6
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.d.ts +12 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js +17 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js.map +1 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.d.ts +17 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js +121 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js.map +1 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.d.ts +14 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js +66 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js.map +1 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.d.ts +31 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js +34 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js.map +1 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +196 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js +27 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -0
- package/build/{loyalty-socialmedia-v1-followed-channel-social-media.universal-CLHk4ued.d.mts → cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts} +81 -23
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +138 -0
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.d.ts +12 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js +12 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js.map +1 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.d.ts +17 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js +116 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js.map +1 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.d.ts +14 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js +38 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js.map +1 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.d.ts +31 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js +27 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js.map +1 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +196 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js +24 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -0
- package/build/{internal/loyalty-socialmedia-v1-followed-channel-social-media.universal-CLHk4ued.d.mts → es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts} +81 -23
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +110 -0
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.d.ts +12 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js +17 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js.map +1 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.d.ts +17 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js +121 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js.map +1 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.d.ts +14 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js +66 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js.map +1 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.d.ts +31 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js +34 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js.map +1 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +196 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js +27 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -0
- package/build/internal/{loyalty-socialmedia-v1-followed-channel-social-media.universal-CLHk4ued.d.ts → cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts} +81 -23
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +138 -0
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.d.ts +12 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js +12 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js.map +1 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.d.ts +17 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js +116 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js.map +1 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.d.ts +14 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js +38 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js.map +1 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.d.ts +31 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js +27 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js.map +1 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +196 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js +24 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -0
- package/build/{loyalty-socialmedia-v1-followed-channel-social-media.universal-CLHk4ued.d.ts → internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts} +81 -23
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +110 -0
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -0
- package/package.json +13 -14
- package/build/index.d.mts +0 -38
- package/build/index.d.ts +0 -38
- package/build/index.js +0 -259
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -231
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -38
- package/build/internal/index.d.ts +0 -38
- package/build/internal/index.js +0 -259
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -231
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -69
- package/build/internal/meta.d.ts +0 -69
- package/build/internal/meta.js +0 -177
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -149
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -69
- package/build/meta.d.ts +0 -69
- package/build/meta.js +0 -177
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -149
- package/build/meta.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/loyalty-socialmedia-v1-followed-channel-social-media.context.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/loyalty-socialmedia-v1-followed-channel-social-media.context.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wGAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0GAAwF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js"), exports);
|
|
18
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qGAAmF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createFollowedChannel as publicCreateFollowedChannel, listFollowedChannels as publicListFollowedChannels } from './loyalty-socialmedia-v1-followed-channel-social-media.public.js';
|
|
2
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
+
import { onFollowedChannelCreated as publicOnFollowedChannelCreated } from './loyalty-socialmedia-v1-followed-channel-social-media.public.js';
|
|
5
|
+
export declare const createFollowedChannel: MaybeContext<BuildRESTFunction<typeof publicCreateFollowedChannel> & typeof publicCreateFollowedChannel>;
|
|
6
|
+
export declare const listFollowedChannels: MaybeContext<BuildRESTFunction<typeof publicListFollowedChannels> & typeof publicListFollowedChannels>;
|
|
7
|
+
/**
|
|
8
|
+
* Triggered when an account follows a new channel.
|
|
9
|
+
*/
|
|
10
|
+
export declare const onFollowedChannelCreated: ReturnType<typeof createEventModule<typeof publicOnFollowedChannelCreated>>;
|
|
11
|
+
export { Type, WebhookIdentityType, } from './loyalty-socialmedia-v1-followed-channel-social-media.universal.js';
|
|
12
|
+
export { FollowedChannel, CreateFollowedChannelRequest, CreateFollowedChannelResponse, ListFollowedChannelsRequest, ListFollowedChannelsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, FollowedChannelCreatedEnvelope, } from './loyalty-socialmedia-v1-followed-channel-social-media.universal.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.Type = exports.onFollowedChannelCreated = exports.listFollowedChannels = exports.createFollowedChannel = void 0;
|
|
4
|
+
const loyalty_socialmedia_v1_followed_channel_social_media_public_js_1 = require("./loyalty-socialmedia-v1-followed-channel-social-media.public.js");
|
|
5
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
7
|
+
const loyalty_socialmedia_v1_followed_channel_social_media_public_js_2 = require("./loyalty-socialmedia-v1-followed-channel-social-media.public.js");
|
|
8
|
+
exports.createFollowedChannel = (0, rest_modules_1.createRESTModule)(loyalty_socialmedia_v1_followed_channel_social_media_public_js_1.createFollowedChannel);
|
|
9
|
+
exports.listFollowedChannels = (0, rest_modules_1.createRESTModule)(loyalty_socialmedia_v1_followed_channel_social_media_public_js_1.listFollowedChannels);
|
|
10
|
+
/**
|
|
11
|
+
* Triggered when an account follows a new channel.
|
|
12
|
+
*/
|
|
13
|
+
exports.onFollowedChannelCreated = (0, event_definition_modules_1.createEventModule)(loyalty_socialmedia_v1_followed_channel_social_media_public_js_2.onFollowedChannelCreated);
|
|
14
|
+
var loyalty_socialmedia_v1_followed_channel_social_media_universal_js_1 = require("./loyalty-socialmedia-v1-followed-channel-social-media.universal.js");
|
|
15
|
+
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return loyalty_socialmedia_v1_followed_channel_social_media_universal_js_1.Type; } });
|
|
16
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return loyalty_socialmedia_v1_followed_channel_social_media_universal_js_1.WebhookIdentityType; } });
|
|
17
|
+
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.context.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.context.ts"],"names":[],"mappings":";;;AAAA,qJAG0E;AAC1E,gEAAiE;AACjE,wFAA8E;AAE9E,qJAA8I;AAEjI,QAAA,qBAAqB,GAGhB,IAAA,+BAAgB,EAAC,sFAA2B,CAAC,CAAC;AACnD,QAAA,oBAAoB,GAGf,IAAA,+BAAgB,EAAC,qFAA0B,CAAC,CAAC;AAC/D;;GAEG;AACU,QAAA,wBAAwB,GAEjC,IAAA,4CAAiB,EAAC,yFAA8B,CAAC,CAAC;AAEtD,yJAG6E;AAF3E,yJAAA,IAAI,OAAA;AACJ,wKAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an entity for the specified account ID when the account follows a social media channel.
|
|
4
|
+
*
|
|
5
|
+
* Members can only follow enabled channels. A site owner has to enable channels in the dashboard.
|
|
6
|
+
*
|
|
7
|
+
* >**Note:**
|
|
8
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
9
|
+
*/
|
|
10
|
+
export declare function createFollowedChannel(payload: object): RequestOptionsFactory<any>;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a list of social media channels followed by the account. The list is ordered by creation date.
|
|
13
|
+
*
|
|
14
|
+
* >**Note:**
|
|
15
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
16
|
+
*/
|
|
17
|
+
export declare function listFollowedChannels(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listFollowedChannels = exports.createFollowedChannel = void 0;
|
|
4
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
8
|
+
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
9
|
+
function resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl(opts) {
|
|
10
|
+
const domainToMappings = {
|
|
11
|
+
_: [
|
|
12
|
+
{
|
|
13
|
+
srcPath: '/_api/loyalty-social-media',
|
|
14
|
+
destPath: '',
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
'editor._base_domain_': [
|
|
18
|
+
{
|
|
19
|
+
srcPath: '/_api/loyalty-social-media',
|
|
20
|
+
destPath: '',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
'blocks._base_domain_': [
|
|
24
|
+
{
|
|
25
|
+
srcPath: '/_api/loyalty-social-media',
|
|
26
|
+
destPath: '',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
'create.editorx': [
|
|
30
|
+
{
|
|
31
|
+
srcPath: '/_api/loyalty-social-media',
|
|
32
|
+
destPath: '',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
'www.wixapis.com': [
|
|
36
|
+
{
|
|
37
|
+
srcPath: '/loyalty-social-media',
|
|
38
|
+
destPath: '',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
'*.dev.wix-code.com': [
|
|
42
|
+
{
|
|
43
|
+
srcPath: '/_api/loyalty-social-media',
|
|
44
|
+
destPath: '',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
};
|
|
48
|
+
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
49
|
+
}
|
|
50
|
+
const PACKAGE_NAME = '@wix/auto_sdk_loyalty_social-media';
|
|
51
|
+
/**
|
|
52
|
+
* Creates an entity for the specified account ID when the account follows a social media channel.
|
|
53
|
+
*
|
|
54
|
+
* Members can only follow enabled channels. A site owner has to enable channels in the dashboard.
|
|
55
|
+
*
|
|
56
|
+
* >**Note:**
|
|
57
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
58
|
+
*/
|
|
59
|
+
function createFollowedChannel(payload) {
|
|
60
|
+
function __createFollowedChannel({ host }) {
|
|
61
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
62
|
+
{
|
|
63
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
64
|
+
paths: [{ path: 'followedChannel.createdDate' }],
|
|
65
|
+
},
|
|
66
|
+
]);
|
|
67
|
+
const metadata = {
|
|
68
|
+
entityFqdn: 'wix.loyalty.socialmedia.v1.followed_channel',
|
|
69
|
+
method: 'POST',
|
|
70
|
+
methodFqn: 'wix.loyalty.socialmedia.v1.LoyaltySocialMedia.CreateFollowedChannel',
|
|
71
|
+
packageName: PACKAGE_NAME,
|
|
72
|
+
url: resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl({
|
|
73
|
+
protoPath: '/v1/followed-channels',
|
|
74
|
+
data: serializedData,
|
|
75
|
+
host,
|
|
76
|
+
}),
|
|
77
|
+
data: serializedData,
|
|
78
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
79
|
+
{
|
|
80
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
81
|
+
paths: [{ path: 'followedChannel.createdDate' }],
|
|
82
|
+
},
|
|
83
|
+
]),
|
|
84
|
+
};
|
|
85
|
+
return metadata;
|
|
86
|
+
}
|
|
87
|
+
return __createFollowedChannel;
|
|
88
|
+
}
|
|
89
|
+
exports.createFollowedChannel = createFollowedChannel;
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves a list of social media channels followed by the account. The list is ordered by creation date.
|
|
92
|
+
*
|
|
93
|
+
* >**Note:**
|
|
94
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
95
|
+
*/
|
|
96
|
+
function listFollowedChannels(payload) {
|
|
97
|
+
function __listFollowedChannels({ host }) {
|
|
98
|
+
const metadata = {
|
|
99
|
+
entityFqdn: 'wix.loyalty.socialmedia.v1.followed_channel',
|
|
100
|
+
method: 'GET',
|
|
101
|
+
methodFqn: 'wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels',
|
|
102
|
+
packageName: PACKAGE_NAME,
|
|
103
|
+
url: resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl({
|
|
104
|
+
protoPath: '/v1/followed-channels',
|
|
105
|
+
data: payload,
|
|
106
|
+
host,
|
|
107
|
+
}),
|
|
108
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
109
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
110
|
+
{
|
|
111
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
112
|
+
paths: [{ path: 'followedChannels.createdDate' }],
|
|
113
|
+
},
|
|
114
|
+
]),
|
|
115
|
+
};
|
|
116
|
+
return metadata;
|
|
117
|
+
}
|
|
118
|
+
return __listFollowedChannels;
|
|
119
|
+
}
|
|
120
|
+
exports.listFollowedChannels = listFollowedChannels;
|
|
121
|
+
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.http.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.http.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as ambassadorWixLoyaltySocialmediaV1FollowedChannelTypes from './loyalty-socialmedia-v1-followed-channel-social-media.types.js';
|
|
2
|
+
import * as ambassadorWixLoyaltySocialmediaV1FollowedChannelUniversalTypes from './loyalty-socialmedia-v1-followed-channel-social-media.universal.js';
|
|
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 createFollowedChannel(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixLoyaltySocialmediaV1FollowedChannelUniversalTypes.CreateFollowedChannelRequest, ambassadorWixLoyaltySocialmediaV1FollowedChannelTypes.CreateFollowedChannelRequest, ambassadorWixLoyaltySocialmediaV1FollowedChannelUniversalTypes.CreateFollowedChannelResponse, ambassadorWixLoyaltySocialmediaV1FollowedChannelTypes.CreateFollowedChannelResponse>;
|
|
14
|
+
export declare function listFollowedChannels(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixLoyaltySocialmediaV1FollowedChannelUniversalTypes.ListFollowedChannelsRequest, ambassadorWixLoyaltySocialmediaV1FollowedChannelTypes.ListFollowedChannelsRequest, ambassadorWixLoyaltySocialmediaV1FollowedChannelUniversalTypes.ListFollowedChannelsResponse, ambassadorWixLoyaltySocialmediaV1FollowedChannelTypes.ListFollowedChannelsResponse>;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.listFollowedChannels = exports.createFollowedChannel = void 0;
|
|
27
|
+
const ambassadorWixLoyaltySocialmediaV1FollowedChannel = __importStar(require("./loyalty-socialmedia-v1-followed-channel-social-media.http.js"));
|
|
28
|
+
function createFollowedChannel() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixLoyaltySocialmediaV1FollowedChannel.createFollowedChannel(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'POST',
|
|
38
|
+
path: '/v1/followed-channels',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.createFollowedChannel = createFollowedChannel;
|
|
47
|
+
function listFollowedChannels() {
|
|
48
|
+
const payload = {};
|
|
49
|
+
const getRequestOptions = ambassadorWixLoyaltySocialmediaV1FollowedChannel.listFollowedChannels(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'GET',
|
|
57
|
+
path: '/v1/followed-channels',
|
|
58
|
+
pathParams: {},
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.listFollowedChannels = listFollowedChannels;
|
|
66
|
+
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.meta.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iJAAmI;AAsBnI,SAAgB,qBAAqB;IAQnC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,gDAAgD,CAAC,qBAAqB,CACpE,OAAO,CACR,CAAC;IAEJ,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,uBAAuB;QAC7B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,sDA8BC;AAED,SAAgB,oBAAoB;IAQlC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,gDAAgD,CAAC,oBAAoB,CACnE,OAAO,CACR,CAAC;IAEJ,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,KAAK;QACjB,IAAI,EAAE,uBAAuB;QAC7B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,oDA8BC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { FollowedChannel, FollowedChannelCreatedEnvelope, ListFollowedChannelsResponse } from './loyalty-socialmedia-v1-followed-channel-social-media.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function createFollowedChannel(httpClient: HttpClient): CreateFollowedChannelSignature;
|
|
7
|
+
interface CreateFollowedChannelSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates an entity for the specified account ID when the account follows a social media channel.
|
|
10
|
+
*
|
|
11
|
+
* Members can only follow enabled channels. A site owner has to enable channels in the dashboard.
|
|
12
|
+
*
|
|
13
|
+
* >**Note:**
|
|
14
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
15
|
+
* @param - Followed social media channel details.
|
|
16
|
+
* @returns Followed social media channel details.
|
|
17
|
+
*/
|
|
18
|
+
(followedChannel: FollowedChannel): Promise<FollowedChannel>;
|
|
19
|
+
}
|
|
20
|
+
export declare function listFollowedChannels(httpClient: HttpClient): ListFollowedChannelsSignature;
|
|
21
|
+
interface ListFollowedChannelsSignature {
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a list of social media channels followed by the account. The list is ordered by creation date.
|
|
24
|
+
*
|
|
25
|
+
* >**Note:**
|
|
26
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
27
|
+
*/
|
|
28
|
+
(): Promise<ListFollowedChannelsResponse>;
|
|
29
|
+
}
|
|
30
|
+
export declare const onFollowedChannelCreated: EventDefinition<FollowedChannelCreatedEnvelope, "wix.loyalty.socialmedia.v1.followed_channel_created">;
|
|
31
|
+
export { ActionEvent, BaseEventMetadata, CreateFollowedChannelRequest, CreateFollowedChannelResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FollowedChannel, FollowedChannelCreatedEnvelope, IdentificationData, IdentificationDataIdOneOf, ListFollowedChannelsRequest, ListFollowedChannelsResponse, MessageEnvelope, RestoreInfo, Type, WebhookIdentityType, } from './loyalty-socialmedia-v1-followed-channel-social-media.universal.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.Type = exports.onFollowedChannelCreated = exports.listFollowedChannels = exports.createFollowedChannel = exports.__metadata = void 0;
|
|
4
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
7
|
+
const sdk_types_1 = require("@wix/sdk-types");
|
|
8
|
+
const loyalty_socialmedia_v1_followed_channel_social_media_universal_js_1 = require("./loyalty-socialmedia-v1-followed-channel-social-media.universal.js");
|
|
9
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/loyalty' };
|
|
10
|
+
function createFollowedChannel(httpClient) {
|
|
11
|
+
return (followedChannel) => (0, loyalty_socialmedia_v1_followed_channel_social_media_universal_js_1.createFollowedChannel)(followedChannel,
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
{ httpClient });
|
|
14
|
+
}
|
|
15
|
+
exports.createFollowedChannel = createFollowedChannel;
|
|
16
|
+
function listFollowedChannels(httpClient) {
|
|
17
|
+
return () => (0, loyalty_socialmedia_v1_followed_channel_social_media_universal_js_1.listFollowedChannels)(
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
{ httpClient });
|
|
20
|
+
}
|
|
21
|
+
exports.listFollowedChannels = listFollowedChannels;
|
|
22
|
+
exports.onFollowedChannelCreated = (0, sdk_types_1.EventDefinition)('wix.loyalty.socialmedia.v1.followed_channel_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
23
|
+
{
|
|
24
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
25
|
+
paths: [
|
|
26
|
+
{ path: 'entity.createdDate' },
|
|
27
|
+
{ path: 'metadata.eventTime' },
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
])))();
|
|
31
|
+
var loyalty_socialmedia_v1_followed_channel_social_media_universal_js_2 = require("./loyalty-socialmedia-v1-followed-channel-social-media.universal.js");
|
|
32
|
+
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return loyalty_socialmedia_v1_followed_channel_social_media_universal_js_2.Type; } });
|
|
33
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return loyalty_socialmedia_v1_followed_channel_social_media_universal_js_2.WebhookIdentityType; } });
|
|
34
|
+
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.public.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA+E;AAC/E,2JAM6E;AAEhE,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE3D,SAAgB,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,CAAC,eAA6D,EAAE,EAAE,CACvE,IAAA,yFAA8B,EAC5B,eAAe;IACf,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,sDASC;AAgBD,SAAgB,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,wFAA6B;IAC3B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,oDAQC;AAYY,QAAA,wBAAwB,GAAG,IAAA,2BAAe,EACrD,qDAAqD,EACrD,IAAI,EACJ,CAAC,KAAqC,EAAE,EAAE,CACxC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAkC,CAAC;AAEpC,yJAsB6E;AAF3E,yJAAA,IAAI,OAAA;AACJ,wKAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
export interface FollowedChannel {
|
|
2
|
+
/**
|
|
3
|
+
* Followed social media channel ID.
|
|
4
|
+
* @readonly
|
|
5
|
+
* @format GUID
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* ID of the account that has followed a social media channel.
|
|
10
|
+
* @readonly
|
|
11
|
+
* @format GUID
|
|
12
|
+
*/
|
|
13
|
+
accountId?: string;
|
|
14
|
+
/** Followed social media channel type. */
|
|
15
|
+
channel?: Type;
|
|
16
|
+
/**
|
|
17
|
+
* Date when an entity for following a social media channel was created.
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
createdDate?: Date | null;
|
|
21
|
+
}
|
|
22
|
+
export declare enum Type {
|
|
23
|
+
/** Unknown social media channel type. */
|
|
24
|
+
UNKNOWN_CHANNEL = "UNKNOWN_CHANNEL",
|
|
25
|
+
/** Facebook social media channel. */
|
|
26
|
+
FACEBOOK = "FACEBOOK",
|
|
27
|
+
/** Instagram social media channel. */
|
|
28
|
+
INSTAGRAM = "INSTAGRAM",
|
|
29
|
+
/** LinkedIn social media channel. */
|
|
30
|
+
LINKEDIN = "LINKEDIN",
|
|
31
|
+
/** X social media channel. */
|
|
32
|
+
X = "X",
|
|
33
|
+
/** TikTok social media channel. */
|
|
34
|
+
TIKTOK = "TIKTOK"
|
|
35
|
+
}
|
|
36
|
+
export interface CreateFollowedChannelRequest {
|
|
37
|
+
/** Followed social media channel details. */
|
|
38
|
+
followedChannel: FollowedChannel;
|
|
39
|
+
}
|
|
40
|
+
export interface CreateFollowedChannelResponse {
|
|
41
|
+
/** Followed social media channel details. */
|
|
42
|
+
followedChannel?: FollowedChannel;
|
|
43
|
+
}
|
|
44
|
+
export interface ListFollowedChannelsRequest {
|
|
45
|
+
}
|
|
46
|
+
export interface ListFollowedChannelsResponse {
|
|
47
|
+
/**
|
|
48
|
+
* List of followed social media channels.
|
|
49
|
+
* @maxSize 5
|
|
50
|
+
*/
|
|
51
|
+
followedChannels?: FollowedChannel[];
|
|
52
|
+
}
|
|
53
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
54
|
+
createdEvent?: EntityCreatedEvent;
|
|
55
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
56
|
+
deletedEvent?: EntityDeletedEvent;
|
|
57
|
+
actionEvent?: ActionEvent;
|
|
58
|
+
/**
|
|
59
|
+
* Unique event ID.
|
|
60
|
+
* Allows clients to ignore duplicate webhooks.
|
|
61
|
+
*/
|
|
62
|
+
id?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Assumes actions are also always typed to an entity_type
|
|
65
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
66
|
+
*/
|
|
67
|
+
entityFqdn?: string;
|
|
68
|
+
/**
|
|
69
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
70
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
71
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
72
|
+
*/
|
|
73
|
+
slug?: string;
|
|
74
|
+
/** ID of the entity associated with the event. */
|
|
75
|
+
entityId?: string;
|
|
76
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
77
|
+
eventTime?: Date | null;
|
|
78
|
+
/**
|
|
79
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
80
|
+
* (for example, GDPR).
|
|
81
|
+
*/
|
|
82
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
83
|
+
/** If present, indicates the action that triggered the event. */
|
|
84
|
+
originatedFrom?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
87
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
88
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
89
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
90
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
91
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
92
|
+
*/
|
|
93
|
+
entityEventSequence?: string | null;
|
|
94
|
+
}
|
|
95
|
+
/** @oneof */
|
|
96
|
+
export interface DomainEventBodyOneOf {
|
|
97
|
+
createdEvent?: EntityCreatedEvent;
|
|
98
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
99
|
+
deletedEvent?: EntityDeletedEvent;
|
|
100
|
+
actionEvent?: ActionEvent;
|
|
101
|
+
}
|
|
102
|
+
export interface EntityCreatedEvent {
|
|
103
|
+
entityAsJson?: string;
|
|
104
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
105
|
+
restoreInfo?: RestoreInfo;
|
|
106
|
+
}
|
|
107
|
+
export interface RestoreInfo {
|
|
108
|
+
deletedDate?: Date | null;
|
|
109
|
+
}
|
|
110
|
+
export interface EntityUpdatedEvent {
|
|
111
|
+
/**
|
|
112
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
113
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
114
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
115
|
+
*/
|
|
116
|
+
currentEntityAsJson?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface EntityDeletedEvent {
|
|
119
|
+
/** Entity that was deleted */
|
|
120
|
+
deletedEntityAsJson?: string | null;
|
|
121
|
+
}
|
|
122
|
+
export interface ActionEvent {
|
|
123
|
+
bodyAsJson?: string;
|
|
124
|
+
}
|
|
125
|
+
export interface Empty {
|
|
126
|
+
}
|
|
127
|
+
export interface MessageEnvelope {
|
|
128
|
+
/**
|
|
129
|
+
* App instance ID.
|
|
130
|
+
* @format GUID
|
|
131
|
+
*/
|
|
132
|
+
instanceId?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* Event type.
|
|
135
|
+
* @maxLength 150
|
|
136
|
+
*/
|
|
137
|
+
eventType?: string;
|
|
138
|
+
/** The identification type and identity data. */
|
|
139
|
+
identity?: IdentificationData;
|
|
140
|
+
/** Stringify payload. */
|
|
141
|
+
data?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
144
|
+
/**
|
|
145
|
+
* ID of a site visitor that has not logged in to the site.
|
|
146
|
+
* @format GUID
|
|
147
|
+
*/
|
|
148
|
+
anonymousVisitorId?: string;
|
|
149
|
+
/**
|
|
150
|
+
* ID of a site visitor that has logged in to the site.
|
|
151
|
+
* @format GUID
|
|
152
|
+
*/
|
|
153
|
+
memberId?: string;
|
|
154
|
+
/**
|
|
155
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
156
|
+
* @format GUID
|
|
157
|
+
*/
|
|
158
|
+
wixUserId?: string;
|
|
159
|
+
/**
|
|
160
|
+
* ID of an app.
|
|
161
|
+
* @format GUID
|
|
162
|
+
*/
|
|
163
|
+
appId?: string;
|
|
164
|
+
/** @readonly */
|
|
165
|
+
identityType?: WebhookIdentityType;
|
|
166
|
+
}
|
|
167
|
+
/** @oneof */
|
|
168
|
+
export interface IdentificationDataIdOneOf {
|
|
169
|
+
/**
|
|
170
|
+
* ID of a site visitor that has not logged in to the site.
|
|
171
|
+
* @format GUID
|
|
172
|
+
*/
|
|
173
|
+
anonymousVisitorId?: string;
|
|
174
|
+
/**
|
|
175
|
+
* ID of a site visitor that has logged in to the site.
|
|
176
|
+
* @format GUID
|
|
177
|
+
*/
|
|
178
|
+
memberId?: string;
|
|
179
|
+
/**
|
|
180
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
181
|
+
* @format GUID
|
|
182
|
+
*/
|
|
183
|
+
wixUserId?: string;
|
|
184
|
+
/**
|
|
185
|
+
* ID of an app.
|
|
186
|
+
* @format GUID
|
|
187
|
+
*/
|
|
188
|
+
appId?: string;
|
|
189
|
+
}
|
|
190
|
+
export declare enum WebhookIdentityType {
|
|
191
|
+
UNKNOWN = "UNKNOWN",
|
|
192
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
193
|
+
MEMBER = "MEMBER",
|
|
194
|
+
WIX_USER = "WIX_USER",
|
|
195
|
+
APP = "APP"
|
|
196
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.Type = void 0;
|
|
4
|
+
var Type;
|
|
5
|
+
(function (Type) {
|
|
6
|
+
/** Unknown social media channel type. */
|
|
7
|
+
Type["UNKNOWN_CHANNEL"] = "UNKNOWN_CHANNEL";
|
|
8
|
+
/** Facebook social media channel. */
|
|
9
|
+
Type["FACEBOOK"] = "FACEBOOK";
|
|
10
|
+
/** Instagram social media channel. */
|
|
11
|
+
Type["INSTAGRAM"] = "INSTAGRAM";
|
|
12
|
+
/** LinkedIn social media channel. */
|
|
13
|
+
Type["LINKEDIN"] = "LINKEDIN";
|
|
14
|
+
/** X social media channel. */
|
|
15
|
+
Type["X"] = "X";
|
|
16
|
+
/** TikTok social media channel. */
|
|
17
|
+
Type["TIKTOK"] = "TIKTOK";
|
|
18
|
+
})(Type || (exports.Type = Type = {}));
|
|
19
|
+
var WebhookIdentityType;
|
|
20
|
+
(function (WebhookIdentityType) {
|
|
21
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
22
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
23
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
24
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
25
|
+
WebhookIdentityType["APP"] = "APP";
|
|
26
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
27
|
+
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":";;;AAsBA,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAyKD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|