@wix/auto_sdk_loyalty_social-media 1.0.8 → 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} +25 -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} +25 -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} +25 -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} +25 -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 -192
- 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 -192
- 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 -192
- 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 -192
- 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
|
|
@@ -20,7 +19,7 @@ export interface FollowedChannel {
|
|
|
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. */
|
|
@@ -35,25 +34,25 @@ export declare enum Type {
|
|
|
35
34
|
TIKTOK = "TIKTOK"
|
|
36
35
|
}
|
|
37
36
|
/** @enumType */
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
type TypeWithLiterals = Type | 'UNKNOWN_CHANNEL' | 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'X' | 'TIKTOK';
|
|
38
|
+
interface CreateFollowedChannelRequest {
|
|
40
39
|
/** Followed social media channel details. */
|
|
41
40
|
followedChannel: FollowedChannel;
|
|
42
41
|
}
|
|
43
|
-
|
|
42
|
+
interface CreateFollowedChannelResponse {
|
|
44
43
|
/** Followed social media channel details. */
|
|
45
44
|
followedChannel?: FollowedChannel;
|
|
46
45
|
}
|
|
47
|
-
|
|
46
|
+
interface ListFollowedChannelsRequest {
|
|
48
47
|
}
|
|
49
|
-
|
|
48
|
+
interface ListFollowedChannelsResponse {
|
|
50
49
|
/**
|
|
51
50
|
* List of followed social media channels.
|
|
52
51
|
* @maxSize 5
|
|
53
52
|
*/
|
|
54
53
|
followedChannels?: FollowedChannel[];
|
|
55
54
|
}
|
|
56
|
-
|
|
55
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
57
56
|
createdEvent?: EntityCreatedEvent;
|
|
58
57
|
updatedEvent?: EntityUpdatedEvent;
|
|
59
58
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -88,19 +87,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
88
87
|
entityEventSequence?: string | null;
|
|
89
88
|
}
|
|
90
89
|
/** @oneof */
|
|
91
|
-
|
|
90
|
+
interface DomainEventBodyOneOf {
|
|
92
91
|
createdEvent?: EntityCreatedEvent;
|
|
93
92
|
updatedEvent?: EntityUpdatedEvent;
|
|
94
93
|
deletedEvent?: EntityDeletedEvent;
|
|
95
94
|
actionEvent?: ActionEvent;
|
|
96
95
|
}
|
|
97
|
-
|
|
96
|
+
interface EntityCreatedEvent {
|
|
98
97
|
entity?: string;
|
|
99
98
|
}
|
|
100
|
-
|
|
99
|
+
interface RestoreInfo {
|
|
101
100
|
deletedDate?: Date | null;
|
|
102
101
|
}
|
|
103
|
-
|
|
102
|
+
interface EntityUpdatedEvent {
|
|
104
103
|
/**
|
|
105
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.
|
|
106
105
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -108,16 +107,16 @@ export interface EntityUpdatedEvent {
|
|
|
108
107
|
*/
|
|
109
108
|
currentEntity?: string;
|
|
110
109
|
}
|
|
111
|
-
|
|
110
|
+
interface EntityDeletedEvent {
|
|
112
111
|
/** Entity that was deleted. */
|
|
113
112
|
deletedEntity?: string | null;
|
|
114
113
|
}
|
|
115
|
-
|
|
114
|
+
interface ActionEvent {
|
|
116
115
|
body?: string;
|
|
117
116
|
}
|
|
118
|
-
|
|
117
|
+
interface Empty {
|
|
119
118
|
}
|
|
120
|
-
|
|
119
|
+
interface MessageEnvelope {
|
|
121
120
|
/**
|
|
122
121
|
* App instance ID.
|
|
123
122
|
* @format GUID
|
|
@@ -133,7 +132,7 @@ export interface MessageEnvelope {
|
|
|
133
132
|
/** Stringify payload. */
|
|
134
133
|
data?: string;
|
|
135
134
|
}
|
|
136
|
-
|
|
135
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
137
136
|
/**
|
|
138
137
|
* ID of a site visitor that has not logged in to the site.
|
|
139
138
|
* @format GUID
|
|
@@ -158,7 +157,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
158
157
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
159
158
|
}
|
|
160
159
|
/** @oneof */
|
|
161
|
-
|
|
160
|
+
interface IdentificationDataIdOneOf {
|
|
162
161
|
/**
|
|
163
162
|
* ID of a site visitor that has not logged in to the site.
|
|
164
163
|
* @format GUID
|
|
@@ -180,7 +179,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
180
179
|
*/
|
|
181
180
|
appId?: string;
|
|
182
181
|
}
|
|
183
|
-
|
|
182
|
+
declare enum WebhookIdentityType {
|
|
184
183
|
UNKNOWN = "UNKNOWN",
|
|
185
184
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
186
185
|
MEMBER = "MEMBER",
|
|
@@ -188,8 +187,8 @@ export declare enum WebhookIdentityType {
|
|
|
188
187
|
APP = "APP"
|
|
189
188
|
}
|
|
190
189
|
/** @enumType */
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
191
|
+
interface BaseEventMetadata {
|
|
193
192
|
/**
|
|
194
193
|
* App instance ID.
|
|
195
194
|
* @format GUID
|
|
@@ -203,7 +202,7 @@ export interface BaseEventMetadata {
|
|
|
203
202
|
/** The identification type and identity data. */
|
|
204
203
|
identity?: IdentificationData;
|
|
205
204
|
}
|
|
206
|
-
|
|
205
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
207
206
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
208
207
|
_id?: string;
|
|
209
208
|
/**
|
|
@@ -233,66 +232,9 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
233
232
|
*/
|
|
234
233
|
entityEventSequence?: string | null;
|
|
235
234
|
}
|
|
236
|
-
|
|
235
|
+
interface FollowedChannelCreatedEnvelope {
|
|
237
236
|
entity: FollowedChannel;
|
|
238
237
|
metadata: EventMetadata;
|
|
239
238
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
* @permissionScope Read Loyalty
|
|
243
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
|
|
244
|
-
* @permissionScope Manage Loyalty
|
|
245
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
246
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
247
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
248
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
|
|
249
|
-
* @webhook
|
|
250
|
-
* @eventType wix.loyalty.socialmedia.v1.followed_channel_created
|
|
251
|
-
* @slug created
|
|
252
|
-
* @documentationMaturity preview
|
|
253
|
-
*/
|
|
254
|
-
export declare function onFollowedChannelCreated(handler: (event: FollowedChannelCreatedEnvelope) => void | Promise<void>): void;
|
|
255
|
-
type FollowedChannelNonNullablePaths = `_id` | `accountId` | `channel`;
|
|
256
|
-
/**
|
|
257
|
-
* Creates an entity for the specified account ID when the account follows a social media channel.
|
|
258
|
-
*
|
|
259
|
-
* Members can only follow enabled channels. A site owner has to enable channels in the dashboard.
|
|
260
|
-
*
|
|
261
|
-
* >**Note:**
|
|
262
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities).
|
|
263
|
-
* @param followedChannel - Followed social media channel details.
|
|
264
|
-
* @public
|
|
265
|
-
* @documentationMaturity preview
|
|
266
|
-
* @requiredField followedChannel
|
|
267
|
-
* @requiredField followedChannel.channel
|
|
268
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_CREATE
|
|
269
|
-
* @permissionScope Manage Loyalty
|
|
270
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
271
|
-
* @applicableIdentity APP
|
|
272
|
-
* @applicableIdentity MEMBER
|
|
273
|
-
* @returns Followed social media channel details.
|
|
274
|
-
* @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.CreateFollowedChannel
|
|
275
|
-
*/
|
|
276
|
-
export declare function createFollowedChannel(followedChannel: NonNullablePaths<FollowedChannel, `channel`>): Promise<NonNullablePaths<FollowedChannel, FollowedChannelNonNullablePaths>>;
|
|
277
|
-
/**
|
|
278
|
-
* Retrieves a list of social media channels followed by the account. The list is ordered by creation date.
|
|
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
|
-
* @public
|
|
283
|
-
* @documentationMaturity preview
|
|
284
|
-
* @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
|
|
285
|
-
* @permissionScope Read Loyalty
|
|
286
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
|
|
287
|
-
* @permissionScope Manage Loyalty
|
|
288
|
-
* @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
|
|
289
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
290
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
291
|
-
* @applicableIdentity APP
|
|
292
|
-
* @applicableIdentity MEMBER
|
|
293
|
-
* @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
|
|
294
|
-
*/
|
|
295
|
-
export declare function listFollowedChannels(): Promise<NonNullablePaths<ListFollowedChannelsResponse, {
|
|
296
|
-
[P in FollowedChannelNonNullablePaths]: `followedChannels.${number}.${P}`;
|
|
297
|
-
}[FollowedChannelNonNullablePaths]>>;
|
|
298
|
-
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"]}
|