@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,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface FollowedChannel {
|
|
1
|
+
interface FollowedChannel {
|
|
3
2
|
/**
|
|
4
3
|
* Followed social media channel ID.
|
|
5
4
|
* @readonly
|
|
@@ -13,14 +12,14 @@ export interface FollowedChannel {
|
|
|
13
12
|
*/
|
|
14
13
|
accountId?: string;
|
|
15
14
|
/** Followed social media channel type. */
|
|
16
|
-
channel?:
|
|
15
|
+
channel?: TypeWithLiterals;
|
|
17
16
|
/**
|
|
18
17
|
* Date when an entity for following a social media channel was created.
|
|
19
18
|
* @readonly
|
|
20
19
|
*/
|
|
21
20
|
_createdDate?: Date | null;
|
|
22
21
|
}
|
|
23
|
-
|
|
22
|
+
declare enum Type {
|
|
24
23
|
/** Unknown social media channel type. */
|
|
25
24
|
UNKNOWN_CHANNEL = "UNKNOWN_CHANNEL",
|
|
26
25
|
/** Facebook social media channel. */
|
|
@@ -34,24 +33,26 @@ export declare enum Type {
|
|
|
34
33
|
/** TikTok social media channel. */
|
|
35
34
|
TIKTOK = "TIKTOK"
|
|
36
35
|
}
|
|
37
|
-
|
|
36
|
+
/** @enumType */
|
|
37
|
+
type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
38
|
+
interface CreateFollowedChannelRequest {
|
|
38
39
|
/** Followed social media channel details. */
|
|
39
40
|
followedChannel: FollowedChannel;
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
+
interface CreateFollowedChannelResponse {
|
|
42
43
|
/** Followed social media channel details. */
|
|
43
44
|
followedChannel?: FollowedChannel;
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
+
interface ListFollowedChannelsRequest {
|
|
46
47
|
}
|
|
47
|
-
|
|
48
|
+
interface ListFollowedChannelsResponse {
|
|
48
49
|
/**
|
|
49
50
|
* List of followed social media channels.
|
|
50
51
|
* @maxSize 5
|
|
51
52
|
*/
|
|
52
53
|
followedChannels?: FollowedChannel[];
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
55
56
|
createdEvent?: EntityCreatedEvent;
|
|
56
57
|
updatedEvent?: EntityUpdatedEvent;
|
|
57
58
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -86,19 +87,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
86
87
|
entityEventSequence?: string | null;
|
|
87
88
|
}
|
|
88
89
|
/** @oneof */
|
|
89
|
-
|
|
90
|
+
interface DomainEventBodyOneOf {
|
|
90
91
|
createdEvent?: EntityCreatedEvent;
|
|
91
92
|
updatedEvent?: EntityUpdatedEvent;
|
|
92
93
|
deletedEvent?: EntityDeletedEvent;
|
|
93
94
|
actionEvent?: ActionEvent;
|
|
94
95
|
}
|
|
95
|
-
|
|
96
|
+
interface EntityCreatedEvent {
|
|
96
97
|
entity?: string;
|
|
97
98
|
}
|
|
98
|
-
|
|
99
|
+
interface RestoreInfo {
|
|
99
100
|
deletedDate?: Date | null;
|
|
100
101
|
}
|
|
101
|
-
|
|
102
|
+
interface EntityUpdatedEvent {
|
|
102
103
|
/**
|
|
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.
|
|
104
105
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -106,16 +107,16 @@ export interface EntityUpdatedEvent {
|
|
|
106
107
|
*/
|
|
107
108
|
currentEntity?: string;
|
|
108
109
|
}
|
|
109
|
-
|
|
110
|
+
interface EntityDeletedEvent {
|
|
110
111
|
/** Entity that was deleted. */
|
|
111
112
|
deletedEntity?: string | null;
|
|
112
113
|
}
|
|
113
|
-
|
|
114
|
+
interface ActionEvent {
|
|
114
115
|
body?: string;
|
|
115
116
|
}
|
|
116
|
-
|
|
117
|
+
interface Empty {
|
|
117
118
|
}
|
|
118
|
-
|
|
119
|
+
interface MessageEnvelope {
|
|
119
120
|
/**
|
|
120
121
|
* App instance ID.
|
|
121
122
|
* @format GUID
|
|
@@ -131,7 +132,7 @@ export interface MessageEnvelope {
|
|
|
131
132
|
/** Stringify payload. */
|
|
132
133
|
data?: string;
|
|
133
134
|
}
|
|
134
|
-
|
|
135
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
135
136
|
/**
|
|
136
137
|
* ID of a site visitor that has not logged in to the site.
|
|
137
138
|
* @format GUID
|
|
@@ -153,10 +154,10 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
153
154
|
*/
|
|
154
155
|
appId?: string;
|
|
155
156
|
/** @readonly */
|
|
156
|
-
identityType?:
|
|
157
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
157
158
|
}
|
|
158
159
|
/** @oneof */
|
|
159
|
-
|
|
160
|
+
interface IdentificationDataIdOneOf {
|
|
160
161
|
/**
|
|
161
162
|
* ID of a site visitor that has not logged in to the site.
|
|
162
163
|
* @format GUID
|
|
@@ -178,14 +179,16 @@ export interface IdentificationDataIdOneOf {
|
|
|
178
179
|
*/
|
|
179
180
|
appId?: string;
|
|
180
181
|
}
|
|
181
|
-
|
|
182
|
+
declare enum WebhookIdentityType {
|
|
182
183
|
UNKNOWN = "UNKNOWN",
|
|
183
184
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
184
185
|
MEMBER = "MEMBER",
|
|
185
186
|
WIX_USER = "WIX_USER",
|
|
186
187
|
APP = "APP"
|
|
187
188
|
}
|
|
188
|
-
|
|
189
|
+
/** @enumType */
|
|
190
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
191
|
+
interface BaseEventMetadata {
|
|
189
192
|
/**
|
|
190
193
|
* App instance ID.
|
|
191
194
|
* @format GUID
|
|
@@ -199,7 +202,7 @@ export interface BaseEventMetadata {
|
|
|
199
202
|
/** The identification type and identity data. */
|
|
200
203
|
identity?: IdentificationData;
|
|
201
204
|
}
|
|
202
|
-
|
|
205
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
203
206
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
204
207
|
_id?: string;
|
|
205
208
|
/**
|
|
@@ -229,66 +232,9 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
229
232
|
*/
|
|
230
233
|
entityEventSequence?: string | null;
|
|
231
234
|
}
|
|
232
|
-
|
|
235
|
+
interface FollowedChannelCreatedEnvelope {
|
|
233
236
|
entity: FollowedChannel;
|
|
234
237
|
metadata: EventMetadata;
|
|
235
238
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
* @permissionScope Read Loyalty
|
|
239
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
|
|
240
|
-
* @permissionScope Manage Loyalty
|
|
241
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
242
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
243
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
244
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
|
|
245
|
-
* @webhook
|
|
246
|
-
* @eventType wix.loyalty.socialmedia.v1.followed_channel_created
|
|
247
|
-
* @slug created
|
|
248
|
-
* @documentationMaturity preview
|
|
249
|
-
*/
|
|
250
|
-
export declare function onFollowedChannelCreated(handler: (event: FollowedChannelCreatedEnvelope) => void | Promise<void>): void;
|
|
251
|
-
type FollowedChannelNonNullablePaths = `_id` | `accountId` | `channel`;
|
|
252
|
-
/**
|
|
253
|
-
* Creates an entity for the specified account ID when the account follows a social media channel.
|
|
254
|
-
*
|
|
255
|
-
* Members can only follow enabled channels. A site owner has to enable channels in the dashboard.
|
|
256
|
-
*
|
|
257
|
-
* >**Note:**
|
|
258
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
259
|
-
* @param followedChannel - Followed social media channel details.
|
|
260
|
-
* @public
|
|
261
|
-
* @documentationMaturity preview
|
|
262
|
-
* @requiredField followedChannel
|
|
263
|
-
* @requiredField followedChannel.channel
|
|
264
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_CREATE
|
|
265
|
-
* @permissionScope Manage Loyalty
|
|
266
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
267
|
-
* @applicableIdentity APP
|
|
268
|
-
* @applicableIdentity MEMBER
|
|
269
|
-
* @returns Followed social media channel details.
|
|
270
|
-
* @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.CreateFollowedChannel
|
|
271
|
-
*/
|
|
272
|
-
export declare function createFollowedChannel(followedChannel: NonNullablePaths<FollowedChannel, `channel`>): Promise<NonNullablePaths<FollowedChannel, FollowedChannelNonNullablePaths>>;
|
|
273
|
-
/**
|
|
274
|
-
* Retrieves a list of social media channels followed by the account. The list is ordered by creation date.
|
|
275
|
-
*
|
|
276
|
-
* >**Note:**
|
|
277
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
278
|
-
* @public
|
|
279
|
-
* @documentationMaturity preview
|
|
280
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
|
|
281
|
-
* @permissionScope Read Loyalty
|
|
282
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
|
|
283
|
-
* @permissionScope Manage Loyalty
|
|
284
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
285
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
286
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
287
|
-
* @applicableIdentity APP
|
|
288
|
-
* @applicableIdentity MEMBER
|
|
289
|
-
* @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
|
|
290
|
-
*/
|
|
291
|
-
export declare function listFollowedChannels(): Promise<NonNullablePaths<ListFollowedChannelsResponse, {
|
|
292
|
-
[P in FollowedChannelNonNullablePaths]: `followedChannels.${number}.${P}`;
|
|
293
|
-
}[FollowedChannelNonNullablePaths]>>;
|
|
294
|
-
export {};
|
|
239
|
+
|
|
240
|
+
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 FollowedChannelCreatedEnvelope as a, type CreateFollowedChannelResponse as b, type ListFollowedChannelsRequest as c, type DomainEventBodyOneOf as d, type EntityUpdatedEvent as e, type EntityDeletedEvent as f, type Empty as g, type IdentificationDataIdOneOf as h, type EventMetadata as i };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { C as CreateFollowedChannelRequest$1, b as CreateFollowedChannelResponse$1, c as ListFollowedChannelsRequest$1, L as ListFollowedChannelsResponse$1 } from './loyalty-socialmedia-v1-followed-channel-social-media.universal-BT5wtFYd.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?: TypeWithLiterals;
|
|
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
|
+
/** @enumType */
|
|
39
|
+
type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
40
|
+
interface CreateFollowedChannelRequest {
|
|
41
|
+
/** Followed social media channel details. */
|
|
42
|
+
followedChannel: FollowedChannel;
|
|
43
|
+
}
|
|
44
|
+
interface CreateFollowedChannelResponse {
|
|
45
|
+
/** Followed social media channel details. */
|
|
46
|
+
followedChannel?: FollowedChannel;
|
|
47
|
+
}
|
|
48
|
+
interface ListFollowedChannelsRequest {
|
|
49
|
+
}
|
|
50
|
+
interface ListFollowedChannelsResponse {
|
|
51
|
+
/**
|
|
52
|
+
* List of followed social media channels.
|
|
53
|
+
* @maxSize 5
|
|
54
|
+
*/
|
|
55
|
+
followedChannels?: FollowedChannel[];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
59
|
+
getUrl: (context: any) => string;
|
|
60
|
+
httpMethod: K;
|
|
61
|
+
path: string;
|
|
62
|
+
pathParams: M;
|
|
63
|
+
__requestType: T;
|
|
64
|
+
__originalRequestType: S;
|
|
65
|
+
__responseType: Q;
|
|
66
|
+
__originalResponseType: R;
|
|
67
|
+
};
|
|
68
|
+
declare function createFollowedChannel(): __PublicMethodMetaInfo<'POST', {}, CreateFollowedChannelRequest$1, CreateFollowedChannelRequest, CreateFollowedChannelResponse$1, CreateFollowedChannelResponse>;
|
|
69
|
+
declare function listFollowedChannels(): __PublicMethodMetaInfo<'GET', {}, ListFollowedChannelsRequest$1, ListFollowedChannelsRequest, ListFollowedChannelsResponse$1, ListFollowedChannelsResponse>;
|
|
70
|
+
|
|
71
|
+
export { type __PublicMethodMetaInfo, createFollowedChannel, listFollowedChannels };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { C as CreateFollowedChannelRequest$1, b as CreateFollowedChannelResponse$1, c as ListFollowedChannelsRequest$1, L as ListFollowedChannelsResponse$1 } from './loyalty-socialmedia-v1-followed-channel-social-media.universal-BT5wtFYd.js';
|
|
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?: TypeWithLiterals;
|
|
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
|
+
/** @enumType */
|
|
39
|
+
type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
40
|
+
interface CreateFollowedChannelRequest {
|
|
41
|
+
/** Followed social media channel details. */
|
|
42
|
+
followedChannel: FollowedChannel;
|
|
43
|
+
}
|
|
44
|
+
interface CreateFollowedChannelResponse {
|
|
45
|
+
/** Followed social media channel details. */
|
|
46
|
+
followedChannel?: FollowedChannel;
|
|
47
|
+
}
|
|
48
|
+
interface ListFollowedChannelsRequest {
|
|
49
|
+
}
|
|
50
|
+
interface ListFollowedChannelsResponse {
|
|
51
|
+
/**
|
|
52
|
+
* List of followed social media channels.
|
|
53
|
+
* @maxSize 5
|
|
54
|
+
*/
|
|
55
|
+
followedChannels?: FollowedChannel[];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
59
|
+
getUrl: (context: any) => string;
|
|
60
|
+
httpMethod: K;
|
|
61
|
+
path: string;
|
|
62
|
+
pathParams: M;
|
|
63
|
+
__requestType: T;
|
|
64
|
+
__originalRequestType: S;
|
|
65
|
+
__responseType: Q;
|
|
66
|
+
__originalResponseType: R;
|
|
67
|
+
};
|
|
68
|
+
declare function createFollowedChannel(): __PublicMethodMetaInfo<'POST', {}, CreateFollowedChannelRequest$1, CreateFollowedChannelRequest, CreateFollowedChannelResponse$1, CreateFollowedChannelResponse>;
|
|
69
|
+
declare function listFollowedChannels(): __PublicMethodMetaInfo<'GET', {}, ListFollowedChannelsRequest$1, ListFollowedChannelsRequest, ListFollowedChannelsResponse$1, ListFollowedChannelsResponse>;
|
|
70
|
+
|
|
71
|
+
export { type __PublicMethodMetaInfo, createFollowedChannel, listFollowedChannels };
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// meta.ts
|
|
21
|
+
var meta_exports = {};
|
|
22
|
+
__export(meta_exports, {
|
|
23
|
+
createFollowedChannel: () => createFollowedChannel2,
|
|
24
|
+
listFollowedChannels: () => listFollowedChannels2
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(meta_exports);
|
|
27
|
+
|
|
28
|
+
// src/loyalty-socialmedia-v1-followed-channel-social-media.http.ts
|
|
29
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
30
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
31
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
32
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
33
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
34
|
+
function resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl(opts) {
|
|
35
|
+
const domainToMappings = {
|
|
36
|
+
_: [
|
|
37
|
+
{
|
|
38
|
+
srcPath: "/_api/loyalty-social-media",
|
|
39
|
+
destPath: ""
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"editor._base_domain_": [
|
|
43
|
+
{
|
|
44
|
+
srcPath: "/_api/loyalty-social-media",
|
|
45
|
+
destPath: ""
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"blocks._base_domain_": [
|
|
49
|
+
{
|
|
50
|
+
srcPath: "/_api/loyalty-social-media",
|
|
51
|
+
destPath: ""
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"create.editorx": [
|
|
55
|
+
{
|
|
56
|
+
srcPath: "/_api/loyalty-social-media",
|
|
57
|
+
destPath: ""
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"www.wixapis.com": [
|
|
61
|
+
{
|
|
62
|
+
srcPath: "/loyalty-social-media",
|
|
63
|
+
destPath: ""
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"*.dev.wix-code.com": [
|
|
67
|
+
{
|
|
68
|
+
srcPath: "/_api/loyalty-social-media",
|
|
69
|
+
destPath: ""
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
};
|
|
73
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
74
|
+
}
|
|
75
|
+
var PACKAGE_NAME = "@wix/auto_sdk_loyalty_social-media";
|
|
76
|
+
function createFollowedChannel(payload) {
|
|
77
|
+
function __createFollowedChannel({ host }) {
|
|
78
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
79
|
+
{
|
|
80
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
81
|
+
paths: [{ path: "followedChannel.createdDate" }]
|
|
82
|
+
}
|
|
83
|
+
]);
|
|
84
|
+
const metadata = {
|
|
85
|
+
entityFqdn: "wix.loyalty.socialmedia.v1.followed_channel",
|
|
86
|
+
method: "POST",
|
|
87
|
+
methodFqn: "wix.loyalty.socialmedia.v1.LoyaltySocialMedia.CreateFollowedChannel",
|
|
88
|
+
packageName: PACKAGE_NAME,
|
|
89
|
+
url: resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl({
|
|
90
|
+
protoPath: "/v1/followed-channels",
|
|
91
|
+
data: serializedData,
|
|
92
|
+
host
|
|
93
|
+
}),
|
|
94
|
+
data: serializedData,
|
|
95
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
96
|
+
{
|
|
97
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
98
|
+
paths: [{ path: "followedChannel.createdDate" }]
|
|
99
|
+
}
|
|
100
|
+
])
|
|
101
|
+
};
|
|
102
|
+
return metadata;
|
|
103
|
+
}
|
|
104
|
+
return __createFollowedChannel;
|
|
105
|
+
}
|
|
106
|
+
function listFollowedChannels(payload) {
|
|
107
|
+
function __listFollowedChannels({ host }) {
|
|
108
|
+
const metadata = {
|
|
109
|
+
entityFqdn: "wix.loyalty.socialmedia.v1.followed_channel",
|
|
110
|
+
method: "GET",
|
|
111
|
+
methodFqn: "wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels",
|
|
112
|
+
packageName: PACKAGE_NAME,
|
|
113
|
+
url: resolveWixLoyaltySocialmediaV1LoyaltySocialMediaUrl({
|
|
114
|
+
protoPath: "/v1/followed-channels",
|
|
115
|
+
data: payload,
|
|
116
|
+
host
|
|
117
|
+
}),
|
|
118
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
119
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
120
|
+
{
|
|
121
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
122
|
+
paths: [{ path: "followedChannels.createdDate" }]
|
|
123
|
+
}
|
|
124
|
+
])
|
|
125
|
+
};
|
|
126
|
+
return metadata;
|
|
127
|
+
}
|
|
128
|
+
return __listFollowedChannels;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// src/loyalty-socialmedia-v1-followed-channel-social-media.meta.ts
|
|
132
|
+
function createFollowedChannel2() {
|
|
133
|
+
const payload = {};
|
|
134
|
+
const getRequestOptions = createFollowedChannel(
|
|
135
|
+
payload
|
|
136
|
+
);
|
|
137
|
+
const getUrl = (context) => {
|
|
138
|
+
const { url } = getRequestOptions(context);
|
|
139
|
+
return url;
|
|
140
|
+
};
|
|
141
|
+
return {
|
|
142
|
+
getUrl,
|
|
143
|
+
httpMethod: "POST",
|
|
144
|
+
path: "/v1/followed-channels",
|
|
145
|
+
pathParams: {},
|
|
146
|
+
__requestType: null,
|
|
147
|
+
__originalRequestType: null,
|
|
148
|
+
__responseType: null,
|
|
149
|
+
__originalResponseType: null
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function listFollowedChannels2() {
|
|
153
|
+
const payload = {};
|
|
154
|
+
const getRequestOptions = listFollowedChannels(
|
|
155
|
+
payload
|
|
156
|
+
);
|
|
157
|
+
const getUrl = (context) => {
|
|
158
|
+
const { url } = getRequestOptions(context);
|
|
159
|
+
return url;
|
|
160
|
+
};
|
|
161
|
+
return {
|
|
162
|
+
getUrl,
|
|
163
|
+
httpMethod: "GET",
|
|
164
|
+
path: "/v1/followed-channels",
|
|
165
|
+
pathParams: {},
|
|
166
|
+
__requestType: null,
|
|
167
|
+
__originalRequestType: null,
|
|
168
|
+
__responseType: null,
|
|
169
|
+
__originalResponseType: null
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
173
|
+
0 && (module.exports = {
|
|
174
|
+
createFollowedChannel,
|
|
175
|
+
listFollowedChannels
|
|
176
|
+
});
|
|
177
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/loyalty-socialmedia-v1-followed-channel-social-media.http.ts","../../src/loyalty-socialmedia-v1-followed-channel-social-media.meta.ts"],"sourcesContent":["export * from './src/loyalty-socialmedia-v1-followed-channel-social-media.meta.js';\n","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":["createFollowedChannel","listFollowedChannels","import_timestamp","import_rest_modules","payload","createFollowedChannel","listFollowedChannels"]}
|