@wix/auto_sdk_loyalty_social-media 1.0.7 → 1.0.9
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/index.d.mts +38 -0
- package/build/index.d.ts +38 -0
- package/build/index.js +259 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +231 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +38 -0
- package/build/internal/index.d.ts +38 -0
- package/build/internal/index.js +259 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +231 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/{cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts → loyalty-socialmedia-v1-followed-channel-social-media.universal-BT5wtFYd.d.mts} +29 -83
- package/build/internal/{es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts → loyalty-socialmedia-v1-followed-channel-social-media.universal-BT5wtFYd.d.ts} +29 -83
- package/build/internal/meta.d.mts +71 -0
- package/build/internal/meta.d.ts +71 -0
- package/build/internal/meta.js +177 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +149 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts → loyalty-socialmedia-v1-followed-channel-social-media.universal-BT5wtFYd.d.mts} +29 -83
- package/build/{es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts → loyalty-socialmedia-v1-followed-channel-social-media.universal-BT5wtFYd.d.ts} +29 -83
- package/build/meta.d.mts +71 -0
- package/build/meta.d.ts +71 -0
- package/build/meta.js +177 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +149 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.d.ts +0 -12
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js +0 -17
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js.map +0 -1
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.d.ts +0 -17
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js +0 -121
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js.map +0 -1
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.d.ts +0 -14
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js +0 -66
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js.map +0 -1
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.d.ts +0 -31
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js +0 -34
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js.map +0 -1
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +0 -188
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js +0 -27
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +0 -1
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +0 -138
- package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.d.ts +0 -12
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js +0 -12
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js.map +0 -1
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.d.ts +0 -17
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js +0 -116
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js.map +0 -1
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.d.ts +0 -14
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js +0 -38
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js.map +0 -1
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.d.ts +0 -31
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js +0 -27
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js.map +0 -1
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +0 -188
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js +0 -24
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +0 -1
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +0 -110
- package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.d.ts +0 -12
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js +0 -17
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js.map +0 -1
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.d.ts +0 -17
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js +0 -121
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js.map +0 -1
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.d.ts +0 -14
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js +0 -66
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.d.ts +0 -31
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js +0 -34
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js.map +0 -1
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +0 -188
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js +0 -27
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +0 -1
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +0 -138
- package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.d.ts +0 -12
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js +0 -12
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.context.js.map +0 -1
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.d.ts +0 -17
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js +0 -116
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.http.js.map +0 -1
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.d.ts +0 -14
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js +0 -38
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js.map +0 -1
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.d.ts +0 -31
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js +0 -27
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.public.js.map +0 -1
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +0 -188
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js +0 -24
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +0 -1
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +0 -110
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,yEAAyE,CAAC"}
|
package/build/es/meta.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js';
|
package/build/es/meta.js
DELETED
package/build/es/meta.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,oEAAoE,CAAC"}
|
package/build/es/package.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createFollowedChannel as publicCreateFollowedChannel, listFollowedChannels as publicListFollowedChannels, } from './loyalty-socialmedia-v1-followed-channel-social-media.public.js';
|
|
2
|
-
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
-
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
4
|
-
import { onFollowedChannelCreated as publicOnFollowedChannelCreated } from './loyalty-socialmedia-v1-followed-channel-social-media.public.js';
|
|
5
|
-
export const createFollowedChannel = /*#__PURE__*/ createRESTModule(publicCreateFollowedChannel);
|
|
6
|
-
export const listFollowedChannels = /*#__PURE__*/ createRESTModule(publicListFollowedChannels);
|
|
7
|
-
/**
|
|
8
|
-
* Triggered when an account follows a new channel.
|
|
9
|
-
*/
|
|
10
|
-
export const onFollowedChannelCreated = createEventModule(publicOnFollowedChannelCreated);
|
|
11
|
-
export { Type, WebhookIdentityType, } from './loyalty-socialmedia-v1-followed-channel-social-media.universal.js';
|
|
12
|
-
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,OAAO,EACL,qBAAqB,IAAI,2BAA2B,EACpD,oBAAoB,IAAI,0BAA0B,GACnD,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,wBAAwB,IAAI,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAE9I,MAAM,CAAC,MAAM,qBAAqB,GAG9B,aAAa,CAAC,gBAAgB,CAAC,2BAA2B,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAG7B,aAAa,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;AAC/D;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAEjC,iBAAiB,CAAC,8BAA8B,CAAC,CAAC;AAEtD,OAAO,EACL,IAAI,EACJ,mBAAmB,GACpB,MAAM,qEAAqE,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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>;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
|
|
2
|
-
import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
3
|
-
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
4
|
-
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
|
-
import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
|
|
6
|
-
function resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl(opts) {
|
|
7
|
-
const domainToMappings = {
|
|
8
|
-
_: [
|
|
9
|
-
{
|
|
10
|
-
srcPath: '/_api/loyalty-social-media',
|
|
11
|
-
destPath: '',
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
'editor._base_domain_': [
|
|
15
|
-
{
|
|
16
|
-
srcPath: '/_api/loyalty-social-media',
|
|
17
|
-
destPath: '',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
'blocks._base_domain_': [
|
|
21
|
-
{
|
|
22
|
-
srcPath: '/_api/loyalty-social-media',
|
|
23
|
-
destPath: '',
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
'create.editorx': [
|
|
27
|
-
{
|
|
28
|
-
srcPath: '/_api/loyalty-social-media',
|
|
29
|
-
destPath: '',
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
'www.wixapis.com': [
|
|
33
|
-
{
|
|
34
|
-
srcPath: '/loyalty-social-media',
|
|
35
|
-
destPath: '',
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
'*.dev.wix-code.com': [
|
|
39
|
-
{
|
|
40
|
-
srcPath: '/_api/loyalty-social-media',
|
|
41
|
-
destPath: '',
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
};
|
|
45
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
46
|
-
}
|
|
47
|
-
const PACKAGE_NAME = '@wix/auto_sdk_loyalty_social-media';
|
|
48
|
-
/**
|
|
49
|
-
* Creates an entity for the specified account ID when the account follows a social media channel.
|
|
50
|
-
*
|
|
51
|
-
* Members can only follow enabled channels. A site owner has to enable channels in the dashboard.
|
|
52
|
-
*
|
|
53
|
-
* >**Note:**
|
|
54
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
55
|
-
*/
|
|
56
|
-
export function createFollowedChannel(payload) {
|
|
57
|
-
function __createFollowedChannel({ host }) {
|
|
58
|
-
const serializedData = transformPaths(payload, [
|
|
59
|
-
{
|
|
60
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
61
|
-
paths: [{ path: 'followedChannel.createdDate' }],
|
|
62
|
-
},
|
|
63
|
-
]);
|
|
64
|
-
const metadata = {
|
|
65
|
-
entityFqdn: 'wix.loyalty.socialmedia.v1.followed_channel',
|
|
66
|
-
method: 'POST',
|
|
67
|
-
methodFqn: 'wix.loyalty.socialmedia.v1.LoyaltySocialMedia.CreateFollowedChannel',
|
|
68
|
-
packageName: PACKAGE_NAME,
|
|
69
|
-
url: resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl({
|
|
70
|
-
protoPath: '/v1/followed-channels',
|
|
71
|
-
data: serializedData,
|
|
72
|
-
host,
|
|
73
|
-
}),
|
|
74
|
-
data: serializedData,
|
|
75
|
-
transformResponse: (payload) => transformPaths(payload, [
|
|
76
|
-
{
|
|
77
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
78
|
-
paths: [{ path: 'followedChannel.createdDate' }],
|
|
79
|
-
},
|
|
80
|
-
]),
|
|
81
|
-
};
|
|
82
|
-
return metadata;
|
|
83
|
-
}
|
|
84
|
-
return __createFollowedChannel;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Retrieves a list of social media channels followed by the account. The list is ordered by creation date.
|
|
88
|
-
*
|
|
89
|
-
* >**Note:**
|
|
90
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
91
|
-
*/
|
|
92
|
-
export function listFollowedChannels(payload) {
|
|
93
|
-
function __listFollowedChannels({ host }) {
|
|
94
|
-
const metadata = {
|
|
95
|
-
entityFqdn: 'wix.loyalty.socialmedia.v1.followed_channel',
|
|
96
|
-
method: 'GET',
|
|
97
|
-
methodFqn: 'wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels',
|
|
98
|
-
packageName: PACKAGE_NAME,
|
|
99
|
-
url: resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl({
|
|
100
|
-
protoPath: '/v1/followed-channels',
|
|
101
|
-
data: payload,
|
|
102
|
-
host,
|
|
103
|
-
}),
|
|
104
|
-
params: toURLSearchParams(payload),
|
|
105
|
-
transformResponse: (payload) => transformPaths(payload, [
|
|
106
|
-
{
|
|
107
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
108
|
-
paths: [{ path: 'followedChannels.createdDate' }],
|
|
109
|
-
},
|
|
110
|
-
]),
|
|
111
|
-
};
|
|
112
|
-
return metadata;
|
|
113
|
-
}
|
|
114
|
-
return __listFollowedChannels;
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,mDAAmD,CAC1D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,oCAAoC,CAAC;AAE1D;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAe;IAEf,SAAS,uBAAuB,CAAC,EAAE,IAAI,EAAO;QAC5C,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE;YAC7C;gBACE,WAAW,EAAE,oCAAoC;gBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;aACjD;SACF,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,6CAA6C;YACzD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,qEAAqE;YACvE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,mDAAmD,CAAC;gBACvD,SAAS,EAAE,uBAAuB;gBAClC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;iBACjD;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,uBAAuB,CAAC;AACjC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAClC,OAAe;IAEf,SAAS,sBAAsB,CAAC,EAAE,IAAI,EAAO;QAC3C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,6CAA6C;YACzD,MAAM,EAAE,KAAY;YACpB,SAAS,EACP,oEAAoE;YACtE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,mDAAmD,CAAC;gBACvD,SAAS,EAAE,uBAAuB;gBAClC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC;iBAClD;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixLoyaltySocialmediaV1FollowedChannel from './loyalty-socialmedia-v1-followed-channel-social-media.http.js';
|
|
2
|
-
export function createFollowedChannel() {
|
|
3
|
-
const payload = {};
|
|
4
|
-
const getRequestOptions = ambassadorWixLoyaltySocialmediaV1FollowedChannel.createFollowedChannel(payload);
|
|
5
|
-
const getUrl = (context) => {
|
|
6
|
-
const { url } = getRequestOptions(context);
|
|
7
|
-
return url;
|
|
8
|
-
};
|
|
9
|
-
return {
|
|
10
|
-
getUrl,
|
|
11
|
-
httpMethod: 'POST',
|
|
12
|
-
path: '/v1/followed-channels',
|
|
13
|
-
pathParams: {},
|
|
14
|
-
__requestType: null,
|
|
15
|
-
__originalRequestType: null,
|
|
16
|
-
__responseType: null,
|
|
17
|
-
__originalResponseType: null,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function listFollowedChannels() {
|
|
21
|
-
const payload = {};
|
|
22
|
-
const getRequestOptions = ambassadorWixLoyaltySocialmediaV1FollowedChannel.listFollowedChannels(payload);
|
|
23
|
-
const getUrl = (context) => {
|
|
24
|
-
const { url } = getRequestOptions(context);
|
|
25
|
-
return url;
|
|
26
|
-
};
|
|
27
|
-
return {
|
|
28
|
-
getUrl,
|
|
29
|
-
httpMethod: 'GET',
|
|
30
|
-
path: '/v1/followed-channels',
|
|
31
|
-
pathParams: {},
|
|
32
|
-
__requestType: null,
|
|
33
|
-
__originalRequestType: null,
|
|
34
|
-
__responseType: null,
|
|
35
|
-
__originalResponseType: null,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,OAAO,KAAK,gDAAgD,MAAM,gEAAgE,CAAC;AAsBnI,MAAM,UAAU,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;AAED,MAAM,UAAU,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"}
|
|
@@ -1,31 +0,0 @@
|
|
|
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';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
2
|
-
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
3
|
-
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
4
|
-
import { EventDefinition } from '@wix/sdk-types';
|
|
5
|
-
import { createFollowedChannel as universalCreateFollowedChannel, listFollowedChannels as universalListFollowedChannels, } from './loyalty-socialmedia-v1-followed-channel-social-media.universal.js';
|
|
6
|
-
export const __metadata = { PACKAGE_NAME: '@wix/loyalty' };
|
|
7
|
-
export function createFollowedChannel(httpClient) {
|
|
8
|
-
return (followedChannel) => universalCreateFollowedChannel(followedChannel,
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
{ httpClient });
|
|
11
|
-
}
|
|
12
|
-
export function listFollowedChannels(httpClient) {
|
|
13
|
-
return () => universalListFollowedChannels(
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
{ httpClient });
|
|
16
|
-
}
|
|
17
|
-
export const onFollowedChannelCreated = EventDefinition('wix.loyalty.socialmedia.v1.followed_channel_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
18
|
-
{
|
|
19
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
20
|
-
paths: [
|
|
21
|
-
{ path: 'entity.createdDate' },
|
|
22
|
-
{ path: 'metadata.eventTime' },
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
])))();
|
|
26
|
-
export { Type, WebhookIdentityType, } from './loyalty-socialmedia-v1-followed-channel-social-media.universal.js';
|
|
27
|
-
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAgC,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAIL,qBAAqB,IAAI,8BAA8B,EACvD,oBAAoB,IAAI,6BAA6B,GACtD,MAAM,qEAAqE,CAAC;AAE7E,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE3D,MAAM,UAAU,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,CAAC,eAA6D,EAAE,EAAE,CACvE,8BAA8B,CAC5B,eAAe;IACf,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAgBD,MAAM,UAAU,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,6BAA6B;IAC3B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAYD,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CACrD,qDAAqD,EACrD,IAAI,EACJ,CAAC,KAAqC,EAAE,EAAE,CACxC,uCAAuC,CACrC,cAAc,CAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,oCAAoC;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,OAAO,EAoBL,IAAI,EACJ,mBAAmB,GACpB,MAAM,qEAAqE,CAAC"}
|
|
@@ -1,188 +0,0 @@
|
|
|
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
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
59
|
-
id?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
62
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
63
|
-
*/
|
|
64
|
-
entityFqdn?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
67
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
68
|
-
*/
|
|
69
|
-
slug?: string;
|
|
70
|
-
/** ID of the entity associated with the event. */
|
|
71
|
-
entityId?: string;
|
|
72
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
73
|
-
eventTime?: Date | null;
|
|
74
|
-
/**
|
|
75
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
76
|
-
* (for example, GDPR).
|
|
77
|
-
*/
|
|
78
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
79
|
-
/** If present, indicates the action that triggered the event. */
|
|
80
|
-
originatedFrom?: string | null;
|
|
81
|
-
/**
|
|
82
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
83
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
84
|
-
*/
|
|
85
|
-
entityEventSequence?: string | null;
|
|
86
|
-
}
|
|
87
|
-
/** @oneof */
|
|
88
|
-
export interface DomainEventBodyOneOf {
|
|
89
|
-
createdEvent?: EntityCreatedEvent;
|
|
90
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
91
|
-
deletedEvent?: EntityDeletedEvent;
|
|
92
|
-
actionEvent?: ActionEvent;
|
|
93
|
-
}
|
|
94
|
-
export interface EntityCreatedEvent {
|
|
95
|
-
entityAsJson?: string;
|
|
96
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
97
|
-
restoreInfo?: RestoreInfo;
|
|
98
|
-
}
|
|
99
|
-
export interface RestoreInfo {
|
|
100
|
-
deletedDate?: Date | null;
|
|
101
|
-
}
|
|
102
|
-
export interface EntityUpdatedEvent {
|
|
103
|
-
/**
|
|
104
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
105
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
106
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
107
|
-
*/
|
|
108
|
-
currentEntityAsJson?: string;
|
|
109
|
-
}
|
|
110
|
-
export interface EntityDeletedEvent {
|
|
111
|
-
/** Entity that was deleted. */
|
|
112
|
-
deletedEntityAsJson?: string | null;
|
|
113
|
-
}
|
|
114
|
-
export interface ActionEvent {
|
|
115
|
-
bodyAsJson?: string;
|
|
116
|
-
}
|
|
117
|
-
export interface Empty {
|
|
118
|
-
}
|
|
119
|
-
export interface MessageEnvelope {
|
|
120
|
-
/**
|
|
121
|
-
* App instance ID.
|
|
122
|
-
* @format GUID
|
|
123
|
-
*/
|
|
124
|
-
instanceId?: string | null;
|
|
125
|
-
/**
|
|
126
|
-
* Event type.
|
|
127
|
-
* @maxLength 150
|
|
128
|
-
*/
|
|
129
|
-
eventType?: string;
|
|
130
|
-
/** The identification type and identity data. */
|
|
131
|
-
identity?: IdentificationData;
|
|
132
|
-
/** Stringify payload. */
|
|
133
|
-
data?: string;
|
|
134
|
-
}
|
|
135
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
136
|
-
/**
|
|
137
|
-
* ID of a site visitor that has not logged in to the site.
|
|
138
|
-
* @format GUID
|
|
139
|
-
*/
|
|
140
|
-
anonymousVisitorId?: string;
|
|
141
|
-
/**
|
|
142
|
-
* ID of a site visitor that has logged in to the site.
|
|
143
|
-
* @format GUID
|
|
144
|
-
*/
|
|
145
|
-
memberId?: string;
|
|
146
|
-
/**
|
|
147
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
148
|
-
* @format GUID
|
|
149
|
-
*/
|
|
150
|
-
wixUserId?: string;
|
|
151
|
-
/**
|
|
152
|
-
* ID of an app.
|
|
153
|
-
* @format GUID
|
|
154
|
-
*/
|
|
155
|
-
appId?: string;
|
|
156
|
-
/** @readonly */
|
|
157
|
-
identityType?: WebhookIdentityType;
|
|
158
|
-
}
|
|
159
|
-
/** @oneof */
|
|
160
|
-
export interface IdentificationDataIdOneOf {
|
|
161
|
-
/**
|
|
162
|
-
* ID of a site visitor that has not logged in to the site.
|
|
163
|
-
* @format GUID
|
|
164
|
-
*/
|
|
165
|
-
anonymousVisitorId?: string;
|
|
166
|
-
/**
|
|
167
|
-
* ID of a site visitor that has logged in to the site.
|
|
168
|
-
* @format GUID
|
|
169
|
-
*/
|
|
170
|
-
memberId?: string;
|
|
171
|
-
/**
|
|
172
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
173
|
-
* @format GUID
|
|
174
|
-
*/
|
|
175
|
-
wixUserId?: string;
|
|
176
|
-
/**
|
|
177
|
-
* ID of an app.
|
|
178
|
-
* @format GUID
|
|
179
|
-
*/
|
|
180
|
-
appId?: string;
|
|
181
|
-
}
|
|
182
|
-
export declare enum WebhookIdentityType {
|
|
183
|
-
UNKNOWN = "UNKNOWN",
|
|
184
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
185
|
-
MEMBER = "MEMBER",
|
|
186
|
-
WIX_USER = "WIX_USER",
|
|
187
|
-
APP = "APP"
|
|
188
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export var Type;
|
|
2
|
-
(function (Type) {
|
|
3
|
-
/** Unknown social media channel type. */
|
|
4
|
-
Type["UNKNOWN_CHANNEL"] = "UNKNOWN_CHANNEL";
|
|
5
|
-
/** Facebook social media channel. */
|
|
6
|
-
Type["FACEBOOK"] = "FACEBOOK";
|
|
7
|
-
/** Instagram social media channel. */
|
|
8
|
-
Type["INSTAGRAM"] = "INSTAGRAM";
|
|
9
|
-
/** LinkedIn social media channel. */
|
|
10
|
-
Type["LINKEDIN"] = "LINKEDIN";
|
|
11
|
-
/** X social media channel. */
|
|
12
|
-
Type["X"] = "X";
|
|
13
|
-
/** TikTok social media channel. */
|
|
14
|
-
Type["TIKTOK"] = "TIKTOK";
|
|
15
|
-
})(Type || (Type = {}));
|
|
16
|
-
export var WebhookIdentityType;
|
|
17
|
-
(function (WebhookIdentityType) {
|
|
18
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
19
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
20
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
21
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
22
|
-
WebhookIdentityType["APP"] = "APP";
|
|
23
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
24
|
-
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,MAAM,CAAN,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,KAAJ,IAAI,QAaf;AAiKD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
2
|
-
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
3
|
-
import * as ambassadorWixLoyaltySocialmediaV1FollowedChannel from './loyalty-socialmedia-v1-followed-channel-social-media.http.js';
|
|
4
|
-
export 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 || (Type = {}));
|
|
19
|
-
export 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 || (WebhookIdentityType = {}));
|
|
27
|
-
/**
|
|
28
|
-
* Creates an entity for the specified account ID when the account follows a social media channel.
|
|
29
|
-
*
|
|
30
|
-
* Members can only follow enabled channels. A site owner has to enable channels in the dashboard.
|
|
31
|
-
*
|
|
32
|
-
* >**Note:**
|
|
33
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
34
|
-
* @param followedChannel - Followed social media channel details.
|
|
35
|
-
* @public
|
|
36
|
-
* @documentationMaturity preview
|
|
37
|
-
* @requiredField followedChannel
|
|
38
|
-
* @requiredField followedChannel.channel
|
|
39
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_CREATE
|
|
40
|
-
* @permissionScope Manage Loyalty
|
|
41
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
42
|
-
* @applicableIdentity APP
|
|
43
|
-
* @applicableIdentity MEMBER
|
|
44
|
-
* @returns Followed social media channel details.
|
|
45
|
-
* @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.CreateFollowedChannel
|
|
46
|
-
*/
|
|
47
|
-
export async function createFollowedChannel(followedChannel) {
|
|
48
|
-
// @ts-ignore
|
|
49
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
50
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
51
|
-
followedChannel: followedChannel,
|
|
52
|
-
});
|
|
53
|
-
const reqOpts = ambassadorWixLoyaltySocialmediaV1FollowedChannel.createFollowedChannel(payload);
|
|
54
|
-
sideEffects?.onSiteCall?.();
|
|
55
|
-
try {
|
|
56
|
-
const result = await httpClient.request(reqOpts);
|
|
57
|
-
sideEffects?.onSuccess?.(result);
|
|
58
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
59
|
-
?.followedChannel;
|
|
60
|
-
}
|
|
61
|
-
catch (err) {
|
|
62
|
-
const transformedError = sdkTransformError(err, {
|
|
63
|
-
spreadPathsToArguments: {},
|
|
64
|
-
explicitPathsToArguments: { followedChannel: '$[0]' },
|
|
65
|
-
singleArgumentUnchanged: false,
|
|
66
|
-
}, ['followedChannel']);
|
|
67
|
-
sideEffects?.onError?.(err);
|
|
68
|
-
throw transformedError;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Retrieves a list of social media channels followed by the account. The list is ordered by creation date.
|
|
73
|
-
*
|
|
74
|
-
* >**Note:**
|
|
75
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
76
|
-
* @public
|
|
77
|
-
* @documentationMaturity preview
|
|
78
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
|
|
79
|
-
* @permissionScope Read Loyalty
|
|
80
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
|
|
81
|
-
* @permissionScope Manage Loyalty
|
|
82
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
83
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
84
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
85
|
-
* @applicableIdentity APP
|
|
86
|
-
* @applicableIdentity MEMBER
|
|
87
|
-
* @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
|
|
88
|
-
*/
|
|
89
|
-
export async function listFollowedChannels() {
|
|
90
|
-
// @ts-ignore
|
|
91
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
92
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
93
|
-
const reqOpts = ambassadorWixLoyaltySocialmediaV1FollowedChannel.listFollowedChannels(payload);
|
|
94
|
-
sideEffects?.onSiteCall?.();
|
|
95
|
-
try {
|
|
96
|
-
const result = await httpClient.request(reqOpts);
|
|
97
|
-
sideEffects?.onSuccess?.(result);
|
|
98
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
99
|
-
}
|
|
100
|
-
catch (err) {
|
|
101
|
-
const transformedError = sdkTransformError(err, {
|
|
102
|
-
spreadPathsToArguments: {},
|
|
103
|
-
explicitPathsToArguments: {},
|
|
104
|
-
singleArgumentUnchanged: false,
|
|
105
|
-
}, []);
|
|
106
|
-
sideEffects?.onError?.(err);
|
|
107
|
-
throw transformedError;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
//# sourceMappingURL=loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map
|