@wix/auto_sdk_loyalty_social-media 1.0.2 → 1.0.4
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-CLHk4ued.d.mts} +23 -83
- package/build/internal/{es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts → loyalty-socialmedia-v1-followed-channel-social-media.universal-CLHk4ued.d.ts} +23 -83
- package/build/internal/meta.d.mts +69 -0
- package/build/internal/meta.d.ts +69 -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-CLHk4ued.d.mts} +23 -83
- package/build/{es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts → loyalty-socialmedia-v1-followed-channel-social-media.universal-CLHk4ued.d.ts} +23 -83
- package/build/meta.d.mts +69 -0
- package/build/meta.d.ts +69 -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 +14 -13
- 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 -208
- 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 -136
- 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 -208
- 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 -108
- 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 -208
- 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 -136
- 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 -208
- 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 -108
- package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +0 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// src/loyalty-socialmedia-v1-followed-channel-social-media.http.ts
|
|
2
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
+
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
4
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
6
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
7
|
+
function resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl(opts) {
|
|
8
|
+
const domainToMappings = {
|
|
9
|
+
_: [
|
|
10
|
+
{
|
|
11
|
+
srcPath: "/_api/loyalty-social-media",
|
|
12
|
+
destPath: ""
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"editor._base_domain_": [
|
|
16
|
+
{
|
|
17
|
+
srcPath: "/_api/loyalty-social-media",
|
|
18
|
+
destPath: ""
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"blocks._base_domain_": [
|
|
22
|
+
{
|
|
23
|
+
srcPath: "/_api/loyalty-social-media",
|
|
24
|
+
destPath: ""
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"create.editorx": [
|
|
28
|
+
{
|
|
29
|
+
srcPath: "/_api/loyalty-social-media",
|
|
30
|
+
destPath: ""
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"www.wixapis.com": [
|
|
34
|
+
{
|
|
35
|
+
srcPath: "/loyalty-social-media",
|
|
36
|
+
destPath: ""
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"*.dev.wix-code.com": [
|
|
40
|
+
{
|
|
41
|
+
srcPath: "/_api/loyalty-social-media",
|
|
42
|
+
destPath: ""
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
};
|
|
46
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
47
|
+
}
|
|
48
|
+
var PACKAGE_NAME = "@wix/auto_sdk_loyalty_social-media";
|
|
49
|
+
function createFollowedChannel(payload) {
|
|
50
|
+
function __createFollowedChannel({ host }) {
|
|
51
|
+
const serializedData = transformPaths(payload, [
|
|
52
|
+
{
|
|
53
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
54
|
+
paths: [{ path: "followedChannel.createdDate" }]
|
|
55
|
+
}
|
|
56
|
+
]);
|
|
57
|
+
const metadata = {
|
|
58
|
+
entityFqdn: "wix.loyalty.socialmedia.v1.followed_channel",
|
|
59
|
+
method: "POST",
|
|
60
|
+
methodFqn: "wix.loyalty.socialmedia.v1.LoyaltySocialMedia.CreateFollowedChannel",
|
|
61
|
+
packageName: PACKAGE_NAME,
|
|
62
|
+
url: resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl({
|
|
63
|
+
protoPath: "/v1/followed-channels",
|
|
64
|
+
data: serializedData,
|
|
65
|
+
host
|
|
66
|
+
}),
|
|
67
|
+
data: serializedData,
|
|
68
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
69
|
+
{
|
|
70
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
71
|
+
paths: [{ path: "followedChannel.createdDate" }]
|
|
72
|
+
}
|
|
73
|
+
])
|
|
74
|
+
};
|
|
75
|
+
return metadata;
|
|
76
|
+
}
|
|
77
|
+
return __createFollowedChannel;
|
|
78
|
+
}
|
|
79
|
+
function listFollowedChannels(payload) {
|
|
80
|
+
function __listFollowedChannels({ host }) {
|
|
81
|
+
const metadata = {
|
|
82
|
+
entityFqdn: "wix.loyalty.socialmedia.v1.followed_channel",
|
|
83
|
+
method: "GET",
|
|
84
|
+
methodFqn: "wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels",
|
|
85
|
+
packageName: PACKAGE_NAME,
|
|
86
|
+
url: resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl({
|
|
87
|
+
protoPath: "/v1/followed-channels",
|
|
88
|
+
data: payload,
|
|
89
|
+
host
|
|
90
|
+
}),
|
|
91
|
+
params: toURLSearchParams(payload),
|
|
92
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
93
|
+
{
|
|
94
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
95
|
+
paths: [{ path: "followedChannels.createdDate" }]
|
|
96
|
+
}
|
|
97
|
+
])
|
|
98
|
+
};
|
|
99
|
+
return metadata;
|
|
100
|
+
}
|
|
101
|
+
return __listFollowedChannels;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// src/loyalty-socialmedia-v1-followed-channel-social-media.meta.ts
|
|
105
|
+
function createFollowedChannel2() {
|
|
106
|
+
const payload = {};
|
|
107
|
+
const getRequestOptions = createFollowedChannel(
|
|
108
|
+
payload
|
|
109
|
+
);
|
|
110
|
+
const getUrl = (context) => {
|
|
111
|
+
const { url } = getRequestOptions(context);
|
|
112
|
+
return url;
|
|
113
|
+
};
|
|
114
|
+
return {
|
|
115
|
+
getUrl,
|
|
116
|
+
httpMethod: "POST",
|
|
117
|
+
path: "/v1/followed-channels",
|
|
118
|
+
pathParams: {},
|
|
119
|
+
__requestType: null,
|
|
120
|
+
__originalRequestType: null,
|
|
121
|
+
__responseType: null,
|
|
122
|
+
__originalResponseType: null
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function listFollowedChannels2() {
|
|
126
|
+
const payload = {};
|
|
127
|
+
const getRequestOptions = listFollowedChannels(
|
|
128
|
+
payload
|
|
129
|
+
);
|
|
130
|
+
const getUrl = (context) => {
|
|
131
|
+
const { url } = getRequestOptions(context);
|
|
132
|
+
return url;
|
|
133
|
+
};
|
|
134
|
+
return {
|
|
135
|
+
getUrl,
|
|
136
|
+
httpMethod: "GET",
|
|
137
|
+
path: "/v1/followed-channels",
|
|
138
|
+
pathParams: {},
|
|
139
|
+
__requestType: null,
|
|
140
|
+
__originalRequestType: null,
|
|
141
|
+
__responseType: null,
|
|
142
|
+
__originalResponseType: null
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
export {
|
|
146
|
+
createFollowedChannel2 as createFollowedChannel,
|
|
147
|
+
listFollowedChannels2 as listFollowedChannels
|
|
148
|
+
};
|
|
149
|
+
//# sourceMappingURL=meta.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/loyalty-socialmedia-v1-followed-channel-social-media.http.ts","../../src/loyalty-socialmedia-v1-followed-channel-social-media.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/loyalty-social-media',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/loyalty-social-media',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/loyalty-social-media',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/loyalty-social-media',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/loyalty-social-media',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/loyalty-social-media',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_loyalty_social-media';\n\n/**\n * Creates an entity for the specified account ID when the account follows a social media channel.\n *\n * Members can only follow enabled channels. A site owner has to enable channels in the dashboard.\n *\n * >**Note:**\n * >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).\n */\nexport function createFollowedChannel(\n payload: object\n): RequestOptionsFactory<any> {\n function __createFollowedChannel({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'followedChannel.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.loyalty.socialmedia.v1.followed_channel',\n method: 'POST' as any,\n methodFqn:\n 'wix.loyalty.socialmedia.v1.LoyaltySocialMedia.CreateFollowedChannel',\n packageName: PACKAGE_NAME,\n url: resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl({\n protoPath: '/v1/followed-channels',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'followedChannel.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createFollowedChannel;\n}\n\n/**\n * Retrieves a list of social media channels followed by the account. The list is ordered by creation date.\n *\n * >**Note:**\n * >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).\n */\nexport function listFollowedChannels(\n payload: object\n): RequestOptionsFactory<any> {\n function __listFollowedChannels({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.loyalty.socialmedia.v1.followed_channel',\n method: 'GET' as any,\n methodFqn:\n 'wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels',\n packageName: PACKAGE_NAME,\n url: resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl({\n protoPath: '/v1/followed-channels',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'followedChannels.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listFollowedChannels;\n}\n","import * as ambassadorWixLoyaltySocialmediaV1FollowedChannel from './loyalty-socialmedia-v1-followed-channel-social-media.http.js';\nimport * as ambassadorWixLoyaltySocialmediaV1FollowedChannelTypes from './loyalty-socialmedia-v1-followed-channel-social-media.types.js';\nimport * as ambassadorWixLoyaltySocialmediaV1FollowedChannelUniversalTypes from './loyalty-socialmedia-v1-followed-channel-social-media.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createFollowedChannel(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixLoyaltySocialmediaV1FollowedChannelUniversalTypes.CreateFollowedChannelRequest,\n ambassadorWixLoyaltySocialmediaV1FollowedChannelTypes.CreateFollowedChannelRequest,\n ambassadorWixLoyaltySocialmediaV1FollowedChannelUniversalTypes.CreateFollowedChannelResponse,\n ambassadorWixLoyaltySocialmediaV1FollowedChannelTypes.CreateFollowedChannelResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltySocialmediaV1FollowedChannel.createFollowedChannel(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/followed-channels',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listFollowedChannels(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixLoyaltySocialmediaV1FollowedChannelUniversalTypes.ListFollowedChannelsRequest,\n ambassadorWixLoyaltySocialmediaV1FollowedChannelTypes.ListFollowedChannelsRequest,\n ambassadorWixLoyaltySocialmediaV1FollowedChannelUniversalTypes.ListFollowedChannelsResponse,\n ambassadorWixLoyaltySocialmediaV1FollowedChannelTypes.ListFollowedChannelsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixLoyaltySocialmediaV1FollowedChannel.listFollowedChannels(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/followed-channels',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":"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","names":["payload","createFollowedChannel","listFollowedChannels"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface FollowedChannel {
|
|
2
2
|
/**
|
|
3
3
|
* Followed social media channel ID.
|
|
4
4
|
* @readonly
|
|
@@ -19,7 +19,7 @@ export interface FollowedChannel {
|
|
|
19
19
|
*/
|
|
20
20
|
_createdDate?: Date | null;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
declare enum Type {
|
|
23
23
|
/** Unknown social media channel type. */
|
|
24
24
|
UNKNOWN_CHANNEL = "UNKNOWN_CHANNEL",
|
|
25
25
|
/** Facebook social media channel. */
|
|
@@ -33,24 +33,24 @@ export declare enum Type {
|
|
|
33
33
|
/** TikTok social media channel. */
|
|
34
34
|
TIKTOK = "TIKTOK"
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
interface CreateFollowedChannelRequest {
|
|
37
37
|
/** Followed social media channel details. */
|
|
38
38
|
followedChannel: FollowedChannel;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
interface CreateFollowedChannelResponse {
|
|
41
41
|
/** Followed social media channel details. */
|
|
42
42
|
followedChannel?: FollowedChannel;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
interface ListFollowedChannelsRequest {
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
interface ListFollowedChannelsResponse {
|
|
47
47
|
/**
|
|
48
48
|
* List of followed social media channels.
|
|
49
49
|
* @maxSize 5
|
|
50
50
|
*/
|
|
51
51
|
followedChannels?: FollowedChannel[];
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
54
54
|
createdEvent?: EntityCreatedEvent;
|
|
55
55
|
updatedEvent?: EntityUpdatedEvent;
|
|
56
56
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -93,19 +93,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
93
93
|
entityEventSequence?: string | null;
|
|
94
94
|
}
|
|
95
95
|
/** @oneof */
|
|
96
|
-
|
|
96
|
+
interface DomainEventBodyOneOf {
|
|
97
97
|
createdEvent?: EntityCreatedEvent;
|
|
98
98
|
updatedEvent?: EntityUpdatedEvent;
|
|
99
99
|
deletedEvent?: EntityDeletedEvent;
|
|
100
100
|
actionEvent?: ActionEvent;
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
interface EntityCreatedEvent {
|
|
103
103
|
entity?: string;
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
interface RestoreInfo {
|
|
106
106
|
deletedDate?: Date | null;
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
interface EntityUpdatedEvent {
|
|
109
109
|
/**
|
|
110
110
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
111
111
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -113,16 +113,16 @@ export interface EntityUpdatedEvent {
|
|
|
113
113
|
*/
|
|
114
114
|
currentEntity?: string;
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
interface EntityDeletedEvent {
|
|
117
117
|
/** Entity that was deleted */
|
|
118
118
|
deletedEntity?: string | null;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
interface ActionEvent {
|
|
121
121
|
body?: string;
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
interface Empty {
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
interface MessageEnvelope {
|
|
126
126
|
/**
|
|
127
127
|
* App instance ID.
|
|
128
128
|
* @format GUID
|
|
@@ -138,7 +138,7 @@ export interface MessageEnvelope {
|
|
|
138
138
|
/** Stringify payload. */
|
|
139
139
|
data?: string;
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
142
142
|
/**
|
|
143
143
|
* ID of a site visitor that has not logged in to the site.
|
|
144
144
|
* @format GUID
|
|
@@ -163,7 +163,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
163
163
|
identityType?: WebhookIdentityType;
|
|
164
164
|
}
|
|
165
165
|
/** @oneof */
|
|
166
|
-
|
|
166
|
+
interface IdentificationDataIdOneOf {
|
|
167
167
|
/**
|
|
168
168
|
* ID of a site visitor that has not logged in to the site.
|
|
169
169
|
* @format GUID
|
|
@@ -185,25 +185,14 @@ export interface IdentificationDataIdOneOf {
|
|
|
185
185
|
*/
|
|
186
186
|
appId?: string;
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
declare enum WebhookIdentityType {
|
|
189
189
|
UNKNOWN = "UNKNOWN",
|
|
190
190
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
191
191
|
MEMBER = "MEMBER",
|
|
192
192
|
WIX_USER = "WIX_USER",
|
|
193
193
|
APP = "APP"
|
|
194
194
|
}
|
|
195
|
-
|
|
196
|
-
_id: string;
|
|
197
|
-
accountId: string;
|
|
198
|
-
channel: Type;
|
|
199
|
-
}
|
|
200
|
-
export interface CreateFollowedChannelResponseNonNullableFields {
|
|
201
|
-
followedChannel?: FollowedChannelNonNullableFields;
|
|
202
|
-
}
|
|
203
|
-
export interface ListFollowedChannelsResponseNonNullableFields {
|
|
204
|
-
followedChannels: FollowedChannelNonNullableFields[];
|
|
205
|
-
}
|
|
206
|
-
export interface BaseEventMetadata {
|
|
195
|
+
interface BaseEventMetadata {
|
|
207
196
|
/**
|
|
208
197
|
* App instance ID.
|
|
209
198
|
* @format GUID
|
|
@@ -217,7 +206,7 @@ export interface BaseEventMetadata {
|
|
|
217
206
|
/** The identification type and identity data. */
|
|
218
207
|
identity?: IdentificationData;
|
|
219
208
|
}
|
|
220
|
-
|
|
209
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
221
210
|
/**
|
|
222
211
|
* Unique event ID.
|
|
223
212
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -255,58 +244,9 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
255
244
|
*/
|
|
256
245
|
entityEventSequence?: string | null;
|
|
257
246
|
}
|
|
258
|
-
|
|
247
|
+
interface FollowedChannelCreatedEnvelope {
|
|
259
248
|
entity: FollowedChannel;
|
|
260
249
|
metadata: EventMetadata;
|
|
261
250
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
* @permissionScope Read Loyalty
|
|
265
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
|
|
266
|
-
* @permissionScope Manage Loyalty
|
|
267
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
268
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
|
|
269
|
-
* @webhook
|
|
270
|
-
* @eventType wix.loyalty.socialmedia.v1.followed_channel_created
|
|
271
|
-
* @slug created
|
|
272
|
-
* @documentationMaturity preview
|
|
273
|
-
*/
|
|
274
|
-
export declare function onFollowedChannelCreated(handler: (event: FollowedChannelCreatedEnvelope) => void | Promise<void>): void;
|
|
275
|
-
/**
|
|
276
|
-
* Creates an entity for the specified account ID when the account follows a social media channel.
|
|
277
|
-
*
|
|
278
|
-
* Members can only follow enabled channels. A site owner has to enable channels in the dashboard.
|
|
279
|
-
*
|
|
280
|
-
* >**Note:**
|
|
281
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
282
|
-
* @param followedChannel - Followed social media channel details.
|
|
283
|
-
* @public
|
|
284
|
-
* @documentationMaturity preview
|
|
285
|
-
* @requiredField followedChannel
|
|
286
|
-
* @requiredField followedChannel.channel
|
|
287
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_CREATE
|
|
288
|
-
* @permissionScope Manage Loyalty
|
|
289
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
290
|
-
* @applicableIdentity APP
|
|
291
|
-
* @applicableIdentity MEMBER
|
|
292
|
-
* @returns Followed social media channel details.
|
|
293
|
-
* @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.CreateFollowedChannel
|
|
294
|
-
*/
|
|
295
|
-
export declare function createFollowedChannel(followedChannel: FollowedChannel): Promise<FollowedChannel & FollowedChannelNonNullableFields>;
|
|
296
|
-
/**
|
|
297
|
-
* Retrieves a list of social media channels followed by the account. The list is ordered by creation date.
|
|
298
|
-
*
|
|
299
|
-
* >**Note:**
|
|
300
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
301
|
-
* @public
|
|
302
|
-
* @documentationMaturity preview
|
|
303
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
|
|
304
|
-
* @permissionScope Read Loyalty
|
|
305
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
|
|
306
|
-
* @permissionScope Manage Loyalty
|
|
307
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
308
|
-
* @applicableIdentity APP
|
|
309
|
-
* @applicableIdentity MEMBER
|
|
310
|
-
* @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
|
|
311
|
-
*/
|
|
312
|
-
export declare function listFollowedChannels(): Promise<ListFollowedChannelsResponse & ListFollowedChannelsResponseNonNullableFields>;
|
|
251
|
+
|
|
252
|
+
export { type ActionEvent as A, type BaseEventMetadata as B, type CreateFollowedChannelRequest as C, type DomainEvent as D, type EntityCreatedEvent as E, type FollowedChannel as F, type IdentificationData as I, type ListFollowedChannelsResponse as L, type MessageEnvelope as M, type RestoreInfo as R, Type as T, WebhookIdentityType as W, type CreateFollowedChannelResponse as a, type ListFollowedChannelsRequest as b, type DomainEventBodyOneOf as c, type EntityUpdatedEvent as d, type EntityDeletedEvent as e, type Empty as f, type IdentificationDataIdOneOf as g, type EventMetadata as h, type FollowedChannelCreatedEnvelope as i };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface FollowedChannel {
|
|
2
2
|
/**
|
|
3
3
|
* Followed social media channel ID.
|
|
4
4
|
* @readonly
|
|
@@ -19,7 +19,7 @@ export interface FollowedChannel {
|
|
|
19
19
|
*/
|
|
20
20
|
_createdDate?: Date | null;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
declare enum Type {
|
|
23
23
|
/** Unknown social media channel type. */
|
|
24
24
|
UNKNOWN_CHANNEL = "UNKNOWN_CHANNEL",
|
|
25
25
|
/** Facebook social media channel. */
|
|
@@ -33,24 +33,24 @@ export declare enum Type {
|
|
|
33
33
|
/** TikTok social media channel. */
|
|
34
34
|
TIKTOK = "TIKTOK"
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
interface CreateFollowedChannelRequest {
|
|
37
37
|
/** Followed social media channel details. */
|
|
38
38
|
followedChannel: FollowedChannel;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
interface CreateFollowedChannelResponse {
|
|
41
41
|
/** Followed social media channel details. */
|
|
42
42
|
followedChannel?: FollowedChannel;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
interface ListFollowedChannelsRequest {
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
interface ListFollowedChannelsResponse {
|
|
47
47
|
/**
|
|
48
48
|
* List of followed social media channels.
|
|
49
49
|
* @maxSize 5
|
|
50
50
|
*/
|
|
51
51
|
followedChannels?: FollowedChannel[];
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
54
54
|
createdEvent?: EntityCreatedEvent;
|
|
55
55
|
updatedEvent?: EntityUpdatedEvent;
|
|
56
56
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -93,19 +93,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
93
93
|
entityEventSequence?: string | null;
|
|
94
94
|
}
|
|
95
95
|
/** @oneof */
|
|
96
|
-
|
|
96
|
+
interface DomainEventBodyOneOf {
|
|
97
97
|
createdEvent?: EntityCreatedEvent;
|
|
98
98
|
updatedEvent?: EntityUpdatedEvent;
|
|
99
99
|
deletedEvent?: EntityDeletedEvent;
|
|
100
100
|
actionEvent?: ActionEvent;
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
interface EntityCreatedEvent {
|
|
103
103
|
entity?: string;
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
interface RestoreInfo {
|
|
106
106
|
deletedDate?: Date | null;
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
interface EntityUpdatedEvent {
|
|
109
109
|
/**
|
|
110
110
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
111
111
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -113,16 +113,16 @@ export interface EntityUpdatedEvent {
|
|
|
113
113
|
*/
|
|
114
114
|
currentEntity?: string;
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
interface EntityDeletedEvent {
|
|
117
117
|
/** Entity that was deleted */
|
|
118
118
|
deletedEntity?: string | null;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
interface ActionEvent {
|
|
121
121
|
body?: string;
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
interface Empty {
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
interface MessageEnvelope {
|
|
126
126
|
/**
|
|
127
127
|
* App instance ID.
|
|
128
128
|
* @format GUID
|
|
@@ -138,7 +138,7 @@ export interface MessageEnvelope {
|
|
|
138
138
|
/** Stringify payload. */
|
|
139
139
|
data?: string;
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
142
142
|
/**
|
|
143
143
|
* ID of a site visitor that has not logged in to the site.
|
|
144
144
|
* @format GUID
|
|
@@ -163,7 +163,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
163
163
|
identityType?: WebhookIdentityType;
|
|
164
164
|
}
|
|
165
165
|
/** @oneof */
|
|
166
|
-
|
|
166
|
+
interface IdentificationDataIdOneOf {
|
|
167
167
|
/**
|
|
168
168
|
* ID of a site visitor that has not logged in to the site.
|
|
169
169
|
* @format GUID
|
|
@@ -185,25 +185,14 @@ export interface IdentificationDataIdOneOf {
|
|
|
185
185
|
*/
|
|
186
186
|
appId?: string;
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
declare enum WebhookIdentityType {
|
|
189
189
|
UNKNOWN = "UNKNOWN",
|
|
190
190
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
191
191
|
MEMBER = "MEMBER",
|
|
192
192
|
WIX_USER = "WIX_USER",
|
|
193
193
|
APP = "APP"
|
|
194
194
|
}
|
|
195
|
-
|
|
196
|
-
_id: string;
|
|
197
|
-
accountId: string;
|
|
198
|
-
channel: Type;
|
|
199
|
-
}
|
|
200
|
-
export interface CreateFollowedChannelResponseNonNullableFields {
|
|
201
|
-
followedChannel?: FollowedChannelNonNullableFields;
|
|
202
|
-
}
|
|
203
|
-
export interface ListFollowedChannelsResponseNonNullableFields {
|
|
204
|
-
followedChannels: FollowedChannelNonNullableFields[];
|
|
205
|
-
}
|
|
206
|
-
export interface BaseEventMetadata {
|
|
195
|
+
interface BaseEventMetadata {
|
|
207
196
|
/**
|
|
208
197
|
* App instance ID.
|
|
209
198
|
* @format GUID
|
|
@@ -217,7 +206,7 @@ export interface BaseEventMetadata {
|
|
|
217
206
|
/** The identification type and identity data. */
|
|
218
207
|
identity?: IdentificationData;
|
|
219
208
|
}
|
|
220
|
-
|
|
209
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
221
210
|
/**
|
|
222
211
|
* Unique event ID.
|
|
223
212
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -255,58 +244,9 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
255
244
|
*/
|
|
256
245
|
entityEventSequence?: string | null;
|
|
257
246
|
}
|
|
258
|
-
|
|
247
|
+
interface FollowedChannelCreatedEnvelope {
|
|
259
248
|
entity: FollowedChannel;
|
|
260
249
|
metadata: EventMetadata;
|
|
261
250
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
* @permissionScope Read Loyalty
|
|
265
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
|
|
266
|
-
* @permissionScope Manage Loyalty
|
|
267
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
268
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
|
|
269
|
-
* @webhook
|
|
270
|
-
* @eventType wix.loyalty.socialmedia.v1.followed_channel_created
|
|
271
|
-
* @slug created
|
|
272
|
-
* @documentationMaturity preview
|
|
273
|
-
*/
|
|
274
|
-
export declare function onFollowedChannelCreated(handler: (event: FollowedChannelCreatedEnvelope) => void | Promise<void>): void;
|
|
275
|
-
/**
|
|
276
|
-
* Creates an entity for the specified account ID when the account follows a social media channel.
|
|
277
|
-
*
|
|
278
|
-
* Members can only follow enabled channels. A site owner has to enable channels in the dashboard.
|
|
279
|
-
*
|
|
280
|
-
* >**Note:**
|
|
281
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
282
|
-
* @param followedChannel - Followed social media channel details.
|
|
283
|
-
* @public
|
|
284
|
-
* @documentationMaturity preview
|
|
285
|
-
* @requiredField followedChannel
|
|
286
|
-
* @requiredField followedChannel.channel
|
|
287
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_CREATE
|
|
288
|
-
* @permissionScope Manage Loyalty
|
|
289
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
290
|
-
* @applicableIdentity APP
|
|
291
|
-
* @applicableIdentity MEMBER
|
|
292
|
-
* @returns Followed social media channel details.
|
|
293
|
-
* @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.CreateFollowedChannel
|
|
294
|
-
*/
|
|
295
|
-
export declare function createFollowedChannel(followedChannel: FollowedChannel): Promise<FollowedChannel & FollowedChannelNonNullableFields>;
|
|
296
|
-
/**
|
|
297
|
-
* Retrieves a list of social media channels followed by the account. The list is ordered by creation date.
|
|
298
|
-
*
|
|
299
|
-
* >**Note:**
|
|
300
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
301
|
-
* @public
|
|
302
|
-
* @documentationMaturity preview
|
|
303
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
|
|
304
|
-
* @permissionScope Read Loyalty
|
|
305
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
|
|
306
|
-
* @permissionScope Manage Loyalty
|
|
307
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
308
|
-
* @applicableIdentity APP
|
|
309
|
-
* @applicableIdentity MEMBER
|
|
310
|
-
* @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
|
|
311
|
-
*/
|
|
312
|
-
export declare function listFollowedChannels(): Promise<ListFollowedChannelsResponse & ListFollowedChannelsResponseNonNullableFields>;
|
|
251
|
+
|
|
252
|
+
export { type ActionEvent as A, type BaseEventMetadata as B, type CreateFollowedChannelRequest as C, type DomainEvent as D, type EntityCreatedEvent as E, type FollowedChannel as F, type IdentificationData as I, type ListFollowedChannelsResponse as L, type MessageEnvelope as M, type RestoreInfo as R, Type as T, WebhookIdentityType as W, type CreateFollowedChannelResponse as a, type ListFollowedChannelsRequest as b, type DomainEventBodyOneOf as c, type EntityUpdatedEvent as d, type EntityDeletedEvent as e, type Empty as f, type IdentificationDataIdOneOf as g, type EventMetadata as h, type FollowedChannelCreatedEnvelope as i };
|
package/build/meta.d.mts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { C as CreateFollowedChannelRequest$1, a as CreateFollowedChannelResponse$1, b as ListFollowedChannelsRequest$1, L as ListFollowedChannelsResponse$1 } from './loyalty-socialmedia-v1-followed-channel-social-media.universal-CLHk4ued.mjs';
|
|
2
|
+
|
|
3
|
+
interface FollowedChannel {
|
|
4
|
+
/**
|
|
5
|
+
* Followed social media channel ID.
|
|
6
|
+
* @readonly
|
|
7
|
+
* @format GUID
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* ID of the account that has followed a social media channel.
|
|
12
|
+
* @readonly
|
|
13
|
+
* @format GUID
|
|
14
|
+
*/
|
|
15
|
+
accountId?: string;
|
|
16
|
+
/** Followed social media channel type. */
|
|
17
|
+
channel?: Type;
|
|
18
|
+
/**
|
|
19
|
+
* Date when an entity for following a social media channel was created.
|
|
20
|
+
* @readonly
|
|
21
|
+
*/
|
|
22
|
+
createdDate?: Date | null;
|
|
23
|
+
}
|
|
24
|
+
declare enum Type {
|
|
25
|
+
/** Unknown social media channel type. */
|
|
26
|
+
UNKNOWN_CHANNEL = "UNKNOWN_CHANNEL",
|
|
27
|
+
/** Facebook social media channel. */
|
|
28
|
+
FACEBOOK = "FACEBOOK",
|
|
29
|
+
/** Instagram social media channel. */
|
|
30
|
+
INSTAGRAM = "INSTAGRAM",
|
|
31
|
+
/** LinkedIn social media channel. */
|
|
32
|
+
LINKEDIN = "LINKEDIN",
|
|
33
|
+
/** X social media channel. */
|
|
34
|
+
X = "X",
|
|
35
|
+
/** TikTok social media channel. */
|
|
36
|
+
TIKTOK = "TIKTOK"
|
|
37
|
+
}
|
|
38
|
+
interface CreateFollowedChannelRequest {
|
|
39
|
+
/** Followed social media channel details. */
|
|
40
|
+
followedChannel: FollowedChannel;
|
|
41
|
+
}
|
|
42
|
+
interface CreateFollowedChannelResponse {
|
|
43
|
+
/** Followed social media channel details. */
|
|
44
|
+
followedChannel?: FollowedChannel;
|
|
45
|
+
}
|
|
46
|
+
interface ListFollowedChannelsRequest {
|
|
47
|
+
}
|
|
48
|
+
interface ListFollowedChannelsResponse {
|
|
49
|
+
/**
|
|
50
|
+
* List of followed social media channels.
|
|
51
|
+
* @maxSize 5
|
|
52
|
+
*/
|
|
53
|
+
followedChannels?: FollowedChannel[];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
57
|
+
getUrl: (context: any) => string;
|
|
58
|
+
httpMethod: K;
|
|
59
|
+
path: string;
|
|
60
|
+
pathParams: M;
|
|
61
|
+
__requestType: T;
|
|
62
|
+
__originalRequestType: S;
|
|
63
|
+
__responseType: Q;
|
|
64
|
+
__originalResponseType: R;
|
|
65
|
+
};
|
|
66
|
+
declare function createFollowedChannel(): __PublicMethodMetaInfo<'POST', {}, CreateFollowedChannelRequest$1, CreateFollowedChannelRequest, CreateFollowedChannelResponse$1, CreateFollowedChannelResponse>;
|
|
67
|
+
declare function listFollowedChannels(): __PublicMethodMetaInfo<'GET', {}, ListFollowedChannelsRequest$1, ListFollowedChannelsRequest, ListFollowedChannelsResponse$1, ListFollowedChannelsResponse>;
|
|
68
|
+
|
|
69
|
+
export { type __PublicMethodMetaInfo, createFollowedChannel, listFollowedChannels };
|