@wix/auto_sdk_loyalty_social-media 1.0.1 → 1.0.3

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.
Files changed (21) hide show
  1. package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +46 -11
  2. package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -1
  3. package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts +62 -17
  4. package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +4 -2
  5. package/build/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -1
  6. package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +46 -11
  7. package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -1
  8. package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts +62 -17
  9. package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +4 -2
  10. package/build/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -1
  11. package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +46 -11
  12. package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -1
  13. package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts +62 -17
  14. package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +4 -2
  15. package/build/internal/cjs/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -1
  16. package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.d.ts +46 -11
  17. package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.types.js.map +1 -1
  18. package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.d.ts +62 -17
  19. package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js +4 -2
  20. package/build/internal/es/src/loyalty-socialmedia-v1-followed-channel-social-media.universal.js.map +1 -1
  21. package/package.json +4 -4
@@ -2,11 +2,13 @@ export interface FollowedChannel {
2
2
  /**
3
3
  * Followed social media channel ID.
4
4
  * @readonly
5
+ * @format GUID
5
6
  */
6
7
  id?: string;
7
8
  /**
8
9
  * ID of the account that has followed a social media channel.
9
10
  * @readonly
11
+ * @format GUID
10
12
  */
11
13
  accountId?: string;
12
14
  /** Followed social media channel type. */
@@ -42,7 +44,10 @@ export interface CreateFollowedChannelResponse {
42
44
  export interface ListFollowedChannelsRequest {
43
45
  }
44
46
  export interface ListFollowedChannelsResponse {
45
- /** List of followed social media channels. */
47
+ /**
48
+ * List of followed social media channels.
49
+ * @maxSize 5
50
+ */
46
51
  followedChannels?: FollowedChannel[];
47
52
  }
48
53
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -120,9 +125,15 @@ export interface ActionEvent {
120
125
  export interface Empty {
121
126
  }
122
127
  export interface MessageEnvelope {
123
- /** App instance ID. */
128
+ /**
129
+ * App instance ID.
130
+ * @format GUID
131
+ */
124
132
  instanceId?: string | null;
125
- /** Event type. */
133
+ /**
134
+ * Event type.
135
+ * @maxLength 150
136
+ */
126
137
  eventType?: string;
127
138
  /** The identification type and identity data. */
128
139
  identity?: IdentificationData;
@@ -130,26 +141,50 @@ export interface MessageEnvelope {
130
141
  data?: string;
131
142
  }
132
143
  export interface IdentificationData extends IdentificationDataIdOneOf {
133
- /** ID of a site visitor that has not logged in to the site. */
144
+ /**
145
+ * ID of a site visitor that has not logged in to the site.
146
+ * @format GUID
147
+ */
134
148
  anonymousVisitorId?: string;
135
- /** ID of a site visitor that has logged in to the site. */
149
+ /**
150
+ * ID of a site visitor that has logged in to the site.
151
+ * @format GUID
152
+ */
136
153
  memberId?: string;
137
- /** ID of a Wix user (site owner, contributor, etc.). */
154
+ /**
155
+ * ID of a Wix user (site owner, contributor, etc.).
156
+ * @format GUID
157
+ */
138
158
  wixUserId?: string;
139
- /** ID of an app. */
159
+ /**
160
+ * ID of an app.
161
+ * @format GUID
162
+ */
140
163
  appId?: string;
141
164
  /** @readonly */
142
165
  identityType?: WebhookIdentityType;
143
166
  }
144
167
  /** @oneof */
145
168
  export interface IdentificationDataIdOneOf {
146
- /** ID of a site visitor that has not logged in to the site. */
169
+ /**
170
+ * ID of a site visitor that has not logged in to the site.
171
+ * @format GUID
172
+ */
147
173
  anonymousVisitorId?: string;
148
- /** ID of a site visitor that has logged in to the site. */
174
+ /**
175
+ * ID of a site visitor that has logged in to the site.
176
+ * @format GUID
177
+ */
149
178
  memberId?: string;
150
- /** ID of a Wix user (site owner, contributor, etc.). */
179
+ /**
180
+ * ID of a Wix user (site owner, contributor, etc.).
181
+ * @format GUID
182
+ */
151
183
  wixUserId?: string;
152
- /** ID of an app. */
184
+ /**
185
+ * ID of an app.
186
+ * @format GUID
187
+ */
153
188
  appId?: string;
154
189
  }
155
190
  export declare enum WebhookIdentityType {
@@ -1 +1 @@
1
- {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":";;;AAoBA,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAwID,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":";;;AAsBA,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAyKD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
@@ -2,11 +2,13 @@ export interface FollowedChannel {
2
2
  /**
3
3
  * Followed social media channel ID.
4
4
  * @readonly
5
+ * @format GUID
5
6
  */
6
7
  _id?: string;
7
8
  /**
8
9
  * ID of the account that has followed a social media channel.
9
10
  * @readonly
11
+ * @format GUID
10
12
  */
11
13
  accountId?: string;
12
14
  /** Followed social media channel type. */
@@ -42,7 +44,10 @@ export interface CreateFollowedChannelResponse {
42
44
  export interface ListFollowedChannelsRequest {
43
45
  }
44
46
  export interface ListFollowedChannelsResponse {
45
- /** List of followed social media channels. */
47
+ /**
48
+ * List of followed social media channels.
49
+ * @maxSize 5
50
+ */
46
51
  followedChannels?: FollowedChannel[];
47
52
  }
48
53
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -118,9 +123,15 @@ export interface ActionEvent {
118
123
  export interface Empty {
119
124
  }
120
125
  export interface MessageEnvelope {
121
- /** App instance ID. */
126
+ /**
127
+ * App instance ID.
128
+ * @format GUID
129
+ */
122
130
  instanceId?: string | null;
123
- /** Event type. */
131
+ /**
132
+ * Event type.
133
+ * @maxLength 150
134
+ */
124
135
  eventType?: string;
125
136
  /** The identification type and identity data. */
126
137
  identity?: IdentificationData;
@@ -128,26 +139,50 @@ export interface MessageEnvelope {
128
139
  data?: string;
129
140
  }
130
141
  export interface IdentificationData extends IdentificationDataIdOneOf {
131
- /** ID of a site visitor that has not logged in to the site. */
142
+ /**
143
+ * ID of a site visitor that has not logged in to the site.
144
+ * @format GUID
145
+ */
132
146
  anonymousVisitorId?: string;
133
- /** ID of a site visitor that has logged in to the site. */
147
+ /**
148
+ * ID of a site visitor that has logged in to the site.
149
+ * @format GUID
150
+ */
134
151
  memberId?: string;
135
- /** ID of a Wix user (site owner, contributor, etc.). */
152
+ /**
153
+ * ID of a Wix user (site owner, contributor, etc.).
154
+ * @format GUID
155
+ */
136
156
  wixUserId?: string;
137
- /** ID of an app. */
157
+ /**
158
+ * ID of an app.
159
+ * @format GUID
160
+ */
138
161
  appId?: string;
139
162
  /** @readonly */
140
163
  identityType?: WebhookIdentityType;
141
164
  }
142
165
  /** @oneof */
143
166
  export interface IdentificationDataIdOneOf {
144
- /** ID of a site visitor that has not logged in to the site. */
167
+ /**
168
+ * ID of a site visitor that has not logged in to the site.
169
+ * @format GUID
170
+ */
145
171
  anonymousVisitorId?: string;
146
- /** ID of a site visitor that has logged in to the site. */
172
+ /**
173
+ * ID of a site visitor that has logged in to the site.
174
+ * @format GUID
175
+ */
147
176
  memberId?: string;
148
- /** ID of a Wix user (site owner, contributor, etc.). */
177
+ /**
178
+ * ID of a Wix user (site owner, contributor, etc.).
179
+ * @format GUID
180
+ */
149
181
  wixUserId?: string;
150
- /** ID of an app. */
182
+ /**
183
+ * ID of an app.
184
+ * @format GUID
185
+ */
151
186
  appId?: string;
152
187
  }
153
188
  export declare enum WebhookIdentityType {
@@ -169,9 +204,15 @@ export interface ListFollowedChannelsResponseNonNullableFields {
169
204
  followedChannels: FollowedChannelNonNullableFields[];
170
205
  }
171
206
  export interface BaseEventMetadata {
172
- /** App instance ID. */
207
+ /**
208
+ * App instance ID.
209
+ * @format GUID
210
+ */
173
211
  instanceId?: string | null;
174
- /** Event type. */
212
+ /**
213
+ * Event type.
214
+ * @maxLength 150
215
+ */
175
216
  eventType?: string;
176
217
  /** The identification type and identity data. */
177
218
  identity?: IdentificationData;
@@ -220,10 +261,12 @@ export interface FollowedChannelCreatedEnvelope {
220
261
  }
221
262
  /**
222
263
  * Triggered when an account follows a new channel.
223
- * @permissionScope Manage Loyalty
224
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
225
264
  * @permissionScope Read Loyalty
226
265
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
266
+ * @permissionScope Manage Loyalty
267
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
268
+ * @permissionScope Manage Restaurants - all permissions
269
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
227
270
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
228
271
  * @webhook
229
272
  * @eventType wix.loyalty.socialmedia.v1.followed_channel_created
@@ -260,10 +303,12 @@ export declare function createFollowedChannel(followedChannel: FollowedChannel):
260
303
  * @public
261
304
  * @documentationMaturity preview
262
305
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
263
- * @permissionScope Manage Loyalty
264
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
265
306
  * @permissionScope Read Loyalty
266
307
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
308
+ * @permissionScope Manage Loyalty
309
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
310
+ * @permissionScope Manage Restaurants - all permissions
311
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
267
312
  * @applicableIdentity APP
268
313
  * @applicableIdentity MEMBER
269
314
  * @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
@@ -103,10 +103,12 @@ exports.createFollowedChannel = createFollowedChannel;
103
103
  * @public
104
104
  * @documentationMaturity preview
105
105
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
106
- * @permissionScope Manage Loyalty
107
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
108
106
  * @permissionScope Read Loyalty
109
107
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
108
+ * @permissionScope Manage Loyalty
109
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
110
+ * @permissionScope Manage Restaurants - all permissions
111
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
110
112
  * @applicableIdentity APP
111
113
  * @applicableIdentity MEMBER
112
114
  * @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
@@ -1 +1 @@
1
- {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,iJAAmI;AAsBnI,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAsID,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAqFD;;;;;;;;;;;;;;;;;;;GAmBG;AAC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AE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AApCD,oDAoCC"}
1
+ {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,iJAAmI;AAwBnI,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAuKD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AA6F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AC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AApCD,oDAoCC"}
@@ -2,11 +2,13 @@ export interface FollowedChannel {
2
2
  /**
3
3
  * Followed social media channel ID.
4
4
  * @readonly
5
+ * @format GUID
5
6
  */
6
7
  id?: string;
7
8
  /**
8
9
  * ID of the account that has followed a social media channel.
9
10
  * @readonly
11
+ * @format GUID
10
12
  */
11
13
  accountId?: string;
12
14
  /** Followed social media channel type. */
@@ -42,7 +44,10 @@ export interface CreateFollowedChannelResponse {
42
44
  export interface ListFollowedChannelsRequest {
43
45
  }
44
46
  export interface ListFollowedChannelsResponse {
45
- /** List of followed social media channels. */
47
+ /**
48
+ * List of followed social media channels.
49
+ * @maxSize 5
50
+ */
46
51
  followedChannels?: FollowedChannel[];
47
52
  }
48
53
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -120,9 +125,15 @@ export interface ActionEvent {
120
125
  export interface Empty {
121
126
  }
122
127
  export interface MessageEnvelope {
123
- /** App instance ID. */
128
+ /**
129
+ * App instance ID.
130
+ * @format GUID
131
+ */
124
132
  instanceId?: string | null;
125
- /** Event type. */
133
+ /**
134
+ * Event type.
135
+ * @maxLength 150
136
+ */
126
137
  eventType?: string;
127
138
  /** The identification type and identity data. */
128
139
  identity?: IdentificationData;
@@ -130,26 +141,50 @@ export interface MessageEnvelope {
130
141
  data?: string;
131
142
  }
132
143
  export interface IdentificationData extends IdentificationDataIdOneOf {
133
- /** ID of a site visitor that has not logged in to the site. */
144
+ /**
145
+ * ID of a site visitor that has not logged in to the site.
146
+ * @format GUID
147
+ */
134
148
  anonymousVisitorId?: string;
135
- /** ID of a site visitor that has logged in to the site. */
149
+ /**
150
+ * ID of a site visitor that has logged in to the site.
151
+ * @format GUID
152
+ */
136
153
  memberId?: string;
137
- /** ID of a Wix user (site owner, contributor, etc.). */
154
+ /**
155
+ * ID of a Wix user (site owner, contributor, etc.).
156
+ * @format GUID
157
+ */
138
158
  wixUserId?: string;
139
- /** ID of an app. */
159
+ /**
160
+ * ID of an app.
161
+ * @format GUID
162
+ */
140
163
  appId?: string;
141
164
  /** @readonly */
142
165
  identityType?: WebhookIdentityType;
143
166
  }
144
167
  /** @oneof */
145
168
  export interface IdentificationDataIdOneOf {
146
- /** ID of a site visitor that has not logged in to the site. */
169
+ /**
170
+ * ID of a site visitor that has not logged in to the site.
171
+ * @format GUID
172
+ */
147
173
  anonymousVisitorId?: string;
148
- /** ID of a site visitor that has logged in to the site. */
174
+ /**
175
+ * ID of a site visitor that has logged in to the site.
176
+ * @format GUID
177
+ */
149
178
  memberId?: string;
150
- /** ID of a Wix user (site owner, contributor, etc.). */
179
+ /**
180
+ * ID of a Wix user (site owner, contributor, etc.).
181
+ * @format GUID
182
+ */
151
183
  wixUserId?: string;
152
- /** ID of an app. */
184
+ /**
185
+ * ID of an app.
186
+ * @format GUID
187
+ */
153
188
  appId?: string;
154
189
  }
155
190
  export declare enum WebhookIdentityType {
@@ -1 +1 @@
1
- {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;AAwID,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;AAyKD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
@@ -2,11 +2,13 @@ export interface FollowedChannel {
2
2
  /**
3
3
  * Followed social media channel ID.
4
4
  * @readonly
5
+ * @format GUID
5
6
  */
6
7
  _id?: string;
7
8
  /**
8
9
  * ID of the account that has followed a social media channel.
9
10
  * @readonly
11
+ * @format GUID
10
12
  */
11
13
  accountId?: string;
12
14
  /** Followed social media channel type. */
@@ -42,7 +44,10 @@ export interface CreateFollowedChannelResponse {
42
44
  export interface ListFollowedChannelsRequest {
43
45
  }
44
46
  export interface ListFollowedChannelsResponse {
45
- /** List of followed social media channels. */
47
+ /**
48
+ * List of followed social media channels.
49
+ * @maxSize 5
50
+ */
46
51
  followedChannels?: FollowedChannel[];
47
52
  }
48
53
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -118,9 +123,15 @@ export interface ActionEvent {
118
123
  export interface Empty {
119
124
  }
120
125
  export interface MessageEnvelope {
121
- /** App instance ID. */
126
+ /**
127
+ * App instance ID.
128
+ * @format GUID
129
+ */
122
130
  instanceId?: string | null;
123
- /** Event type. */
131
+ /**
132
+ * Event type.
133
+ * @maxLength 150
134
+ */
124
135
  eventType?: string;
125
136
  /** The identification type and identity data. */
126
137
  identity?: IdentificationData;
@@ -128,26 +139,50 @@ export interface MessageEnvelope {
128
139
  data?: string;
129
140
  }
130
141
  export interface IdentificationData extends IdentificationDataIdOneOf {
131
- /** ID of a site visitor that has not logged in to the site. */
142
+ /**
143
+ * ID of a site visitor that has not logged in to the site.
144
+ * @format GUID
145
+ */
132
146
  anonymousVisitorId?: string;
133
- /** ID of a site visitor that has logged in to the site. */
147
+ /**
148
+ * ID of a site visitor that has logged in to the site.
149
+ * @format GUID
150
+ */
134
151
  memberId?: string;
135
- /** ID of a Wix user (site owner, contributor, etc.). */
152
+ /**
153
+ * ID of a Wix user (site owner, contributor, etc.).
154
+ * @format GUID
155
+ */
136
156
  wixUserId?: string;
137
- /** ID of an app. */
157
+ /**
158
+ * ID of an app.
159
+ * @format GUID
160
+ */
138
161
  appId?: string;
139
162
  /** @readonly */
140
163
  identityType?: WebhookIdentityType;
141
164
  }
142
165
  /** @oneof */
143
166
  export interface IdentificationDataIdOneOf {
144
- /** ID of a site visitor that has not logged in to the site. */
167
+ /**
168
+ * ID of a site visitor that has not logged in to the site.
169
+ * @format GUID
170
+ */
145
171
  anonymousVisitorId?: string;
146
- /** ID of a site visitor that has logged in to the site. */
172
+ /**
173
+ * ID of a site visitor that has logged in to the site.
174
+ * @format GUID
175
+ */
147
176
  memberId?: string;
148
- /** ID of a Wix user (site owner, contributor, etc.). */
177
+ /**
178
+ * ID of a Wix user (site owner, contributor, etc.).
179
+ * @format GUID
180
+ */
149
181
  wixUserId?: string;
150
- /** ID of an app. */
182
+ /**
183
+ * ID of an app.
184
+ * @format GUID
185
+ */
151
186
  appId?: string;
152
187
  }
153
188
  export declare enum WebhookIdentityType {
@@ -169,9 +204,15 @@ export interface ListFollowedChannelsResponseNonNullableFields {
169
204
  followedChannels: FollowedChannelNonNullableFields[];
170
205
  }
171
206
  export interface BaseEventMetadata {
172
- /** App instance ID. */
207
+ /**
208
+ * App instance ID.
209
+ * @format GUID
210
+ */
173
211
  instanceId?: string | null;
174
- /** Event type. */
212
+ /**
213
+ * Event type.
214
+ * @maxLength 150
215
+ */
175
216
  eventType?: string;
176
217
  /** The identification type and identity data. */
177
218
  identity?: IdentificationData;
@@ -220,10 +261,12 @@ export interface FollowedChannelCreatedEnvelope {
220
261
  }
221
262
  /**
222
263
  * Triggered when an account follows a new channel.
223
- * @permissionScope Manage Loyalty
224
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
225
264
  * @permissionScope Read Loyalty
226
265
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
266
+ * @permissionScope Manage Loyalty
267
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
268
+ * @permissionScope Manage Restaurants - all permissions
269
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
227
270
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
228
271
  * @webhook
229
272
  * @eventType wix.loyalty.socialmedia.v1.followed_channel_created
@@ -260,10 +303,12 @@ export declare function createFollowedChannel(followedChannel: FollowedChannel):
260
303
  * @public
261
304
  * @documentationMaturity preview
262
305
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
263
- * @permissionScope Manage Loyalty
264
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
265
306
  * @permissionScope Read Loyalty
266
307
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
308
+ * @permissionScope Manage Loyalty
309
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
310
+ * @permissionScope Manage Restaurants - all permissions
311
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
267
312
  * @applicableIdentity APP
268
313
  * @applicableIdentity MEMBER
269
314
  * @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
@@ -76,10 +76,12 @@ export async function createFollowedChannel(followedChannel) {
76
76
  * @public
77
77
  * @documentationMaturity preview
78
78
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
79
- * @permissionScope Manage Loyalty
80
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
81
79
  * @permissionScope Read Loyalty
82
80
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
81
+ * @permissionScope Manage Loyalty
82
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
83
+ * @permissionScope Manage Restaurants - all permissions
84
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
83
85
  * @applicableIdentity APP
84
86
  * @applicableIdentity MEMBER
85
87
  * @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
@@ -1 +1 @@
1
- {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,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AM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
@@ -2,11 +2,13 @@ export interface FollowedChannel {
2
2
  /**
3
3
  * Followed social media channel ID.
4
4
  * @readonly
5
+ * @format GUID
5
6
  */
6
7
  id?: string;
7
8
  /**
8
9
  * ID of the account that has followed a social media channel.
9
10
  * @readonly
11
+ * @format GUID
10
12
  */
11
13
  accountId?: string;
12
14
  /** Followed social media channel type. */
@@ -42,7 +44,10 @@ export interface CreateFollowedChannelResponse {
42
44
  export interface ListFollowedChannelsRequest {
43
45
  }
44
46
  export interface ListFollowedChannelsResponse {
45
- /** List of followed social media channels. */
47
+ /**
48
+ * List of followed social media channels.
49
+ * @maxSize 5
50
+ */
46
51
  followedChannels?: FollowedChannel[];
47
52
  }
48
53
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -120,9 +125,15 @@ export interface ActionEvent {
120
125
  export interface Empty {
121
126
  }
122
127
  export interface MessageEnvelope {
123
- /** App instance ID. */
128
+ /**
129
+ * App instance ID.
130
+ * @format GUID
131
+ */
124
132
  instanceId?: string | null;
125
- /** Event type. */
133
+ /**
134
+ * Event type.
135
+ * @maxLength 150
136
+ */
126
137
  eventType?: string;
127
138
  /** The identification type and identity data. */
128
139
  identity?: IdentificationData;
@@ -130,26 +141,50 @@ export interface MessageEnvelope {
130
141
  data?: string;
131
142
  }
132
143
  export interface IdentificationData extends IdentificationDataIdOneOf {
133
- /** ID of a site visitor that has not logged in to the site. */
144
+ /**
145
+ * ID of a site visitor that has not logged in to the site.
146
+ * @format GUID
147
+ */
134
148
  anonymousVisitorId?: string;
135
- /** ID of a site visitor that has logged in to the site. */
149
+ /**
150
+ * ID of a site visitor that has logged in to the site.
151
+ * @format GUID
152
+ */
136
153
  memberId?: string;
137
- /** ID of a Wix user (site owner, contributor, etc.). */
154
+ /**
155
+ * ID of a Wix user (site owner, contributor, etc.).
156
+ * @format GUID
157
+ */
138
158
  wixUserId?: string;
139
- /** ID of an app. */
159
+ /**
160
+ * ID of an app.
161
+ * @format GUID
162
+ */
140
163
  appId?: string;
141
164
  /** @readonly */
142
165
  identityType?: WebhookIdentityType;
143
166
  }
144
167
  /** @oneof */
145
168
  export interface IdentificationDataIdOneOf {
146
- /** ID of a site visitor that has not logged in to the site. */
169
+ /**
170
+ * ID of a site visitor that has not logged in to the site.
171
+ * @format GUID
172
+ */
147
173
  anonymousVisitorId?: string;
148
- /** ID of a site visitor that has logged in to the site. */
174
+ /**
175
+ * ID of a site visitor that has logged in to the site.
176
+ * @format GUID
177
+ */
149
178
  memberId?: string;
150
- /** ID of a Wix user (site owner, contributor, etc.). */
179
+ /**
180
+ * ID of a Wix user (site owner, contributor, etc.).
181
+ * @format GUID
182
+ */
151
183
  wixUserId?: string;
152
- /** ID of an app. */
184
+ /**
185
+ * ID of an app.
186
+ * @format GUID
187
+ */
153
188
  appId?: string;
154
189
  }
155
190
  export declare enum WebhookIdentityType {
@@ -1 +1 @@
1
- {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":";;;AAoBA,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAwID,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":";;;AAsBA,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAyKD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
@@ -2,11 +2,13 @@ export interface FollowedChannel {
2
2
  /**
3
3
  * Followed social media channel ID.
4
4
  * @readonly
5
+ * @format GUID
5
6
  */
6
7
  _id?: string;
7
8
  /**
8
9
  * ID of the account that has followed a social media channel.
9
10
  * @readonly
11
+ * @format GUID
10
12
  */
11
13
  accountId?: string;
12
14
  /** Followed social media channel type. */
@@ -42,7 +44,10 @@ export interface CreateFollowedChannelResponse {
42
44
  export interface ListFollowedChannelsRequest {
43
45
  }
44
46
  export interface ListFollowedChannelsResponse {
45
- /** List of followed social media channels. */
47
+ /**
48
+ * List of followed social media channels.
49
+ * @maxSize 5
50
+ */
46
51
  followedChannels?: FollowedChannel[];
47
52
  }
48
53
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -118,9 +123,15 @@ export interface ActionEvent {
118
123
  export interface Empty {
119
124
  }
120
125
  export interface MessageEnvelope {
121
- /** App instance ID. */
126
+ /**
127
+ * App instance ID.
128
+ * @format GUID
129
+ */
122
130
  instanceId?: string | null;
123
- /** Event type. */
131
+ /**
132
+ * Event type.
133
+ * @maxLength 150
134
+ */
124
135
  eventType?: string;
125
136
  /** The identification type and identity data. */
126
137
  identity?: IdentificationData;
@@ -128,26 +139,50 @@ export interface MessageEnvelope {
128
139
  data?: string;
129
140
  }
130
141
  export interface IdentificationData extends IdentificationDataIdOneOf {
131
- /** ID of a site visitor that has not logged in to the site. */
142
+ /**
143
+ * ID of a site visitor that has not logged in to the site.
144
+ * @format GUID
145
+ */
132
146
  anonymousVisitorId?: string;
133
- /** ID of a site visitor that has logged in to the site. */
147
+ /**
148
+ * ID of a site visitor that has logged in to the site.
149
+ * @format GUID
150
+ */
134
151
  memberId?: string;
135
- /** ID of a Wix user (site owner, contributor, etc.). */
152
+ /**
153
+ * ID of a Wix user (site owner, contributor, etc.).
154
+ * @format GUID
155
+ */
136
156
  wixUserId?: string;
137
- /** ID of an app. */
157
+ /**
158
+ * ID of an app.
159
+ * @format GUID
160
+ */
138
161
  appId?: string;
139
162
  /** @readonly */
140
163
  identityType?: WebhookIdentityType;
141
164
  }
142
165
  /** @oneof */
143
166
  export interface IdentificationDataIdOneOf {
144
- /** ID of a site visitor that has not logged in to the site. */
167
+ /**
168
+ * ID of a site visitor that has not logged in to the site.
169
+ * @format GUID
170
+ */
145
171
  anonymousVisitorId?: string;
146
- /** ID of a site visitor that has logged in to the site. */
172
+ /**
173
+ * ID of a site visitor that has logged in to the site.
174
+ * @format GUID
175
+ */
147
176
  memberId?: string;
148
- /** ID of a Wix user (site owner, contributor, etc.). */
177
+ /**
178
+ * ID of a Wix user (site owner, contributor, etc.).
179
+ * @format GUID
180
+ */
149
181
  wixUserId?: string;
150
- /** ID of an app. */
182
+ /**
183
+ * ID of an app.
184
+ * @format GUID
185
+ */
151
186
  appId?: string;
152
187
  }
153
188
  export declare enum WebhookIdentityType {
@@ -169,9 +204,15 @@ export interface ListFollowedChannelsResponseNonNullableFields {
169
204
  followedChannels: FollowedChannelNonNullableFields[];
170
205
  }
171
206
  export interface BaseEventMetadata {
172
- /** App instance ID. */
207
+ /**
208
+ * App instance ID.
209
+ * @format GUID
210
+ */
173
211
  instanceId?: string | null;
174
- /** Event type. */
212
+ /**
213
+ * Event type.
214
+ * @maxLength 150
215
+ */
175
216
  eventType?: string;
176
217
  /** The identification type and identity data. */
177
218
  identity?: IdentificationData;
@@ -220,10 +261,12 @@ export interface FollowedChannelCreatedEnvelope {
220
261
  }
221
262
  /**
222
263
  * Triggered when an account follows a new channel.
223
- * @permissionScope Manage Loyalty
224
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
225
264
  * @permissionScope Read Loyalty
226
265
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
266
+ * @permissionScope Manage Loyalty
267
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
268
+ * @permissionScope Manage Restaurants - all permissions
269
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
227
270
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
228
271
  * @webhook
229
272
  * @eventType wix.loyalty.socialmedia.v1.followed_channel_created
@@ -260,10 +303,12 @@ export declare function createFollowedChannel(followedChannel: FollowedChannel):
260
303
  * @public
261
304
  * @documentationMaturity preview
262
305
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
263
- * @permissionScope Manage Loyalty
264
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
265
306
  * @permissionScope Read Loyalty
266
307
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
308
+ * @permissionScope Manage Loyalty
309
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
310
+ * @permissionScope Manage Restaurants - all permissions
311
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
267
312
  * @applicableIdentity APP
268
313
  * @applicableIdentity MEMBER
269
314
  * @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
@@ -103,10 +103,12 @@ exports.createFollowedChannel = createFollowedChannel;
103
103
  * @public
104
104
  * @documentationMaturity preview
105
105
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
106
- * @permissionScope Manage Loyalty
107
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
108
106
  * @permissionScope Read Loyalty
109
107
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
108
+ * @permissionScope Manage Loyalty
109
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
110
+ * @permissionScope Manage Restaurants - all permissions
111
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
110
112
  * @applicableIdentity APP
111
113
  * @applicableIdentity MEMBER
112
114
  * @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
@@ -1 +1 @@
1
- {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,iJAAmI;AAsBnI,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAsID,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAqFD;;;;;;;;;;;;;;;;;;;GAmBG;AACI,KAAK,UAAU,qBAAqB,CACzC,eAAgC;IAEhC,aAAa;IACb,MA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,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AApCD,oDAoCC"}
1
+ {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,iJAAmI;AAwBnI,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,oBAAJ,IAAI,QAaf;AAuKD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AA6FD;;;;;;;;;;;;;;;;;;;GAmBG;AACI,KAAK,UAAU,qBAAqB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AAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AApCD,oDAoCC"}
@@ -2,11 +2,13 @@ export interface FollowedChannel {
2
2
  /**
3
3
  * Followed social media channel ID.
4
4
  * @readonly
5
+ * @format GUID
5
6
  */
6
7
  id?: string;
7
8
  /**
8
9
  * ID of the account that has followed a social media channel.
9
10
  * @readonly
11
+ * @format GUID
10
12
  */
11
13
  accountId?: string;
12
14
  /** Followed social media channel type. */
@@ -42,7 +44,10 @@ export interface CreateFollowedChannelResponse {
42
44
  export interface ListFollowedChannelsRequest {
43
45
  }
44
46
  export interface ListFollowedChannelsResponse {
45
- /** List of followed social media channels. */
47
+ /**
48
+ * List of followed social media channels.
49
+ * @maxSize 5
50
+ */
46
51
  followedChannels?: FollowedChannel[];
47
52
  }
48
53
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -120,9 +125,15 @@ export interface ActionEvent {
120
125
  export interface Empty {
121
126
  }
122
127
  export interface MessageEnvelope {
123
- /** App instance ID. */
128
+ /**
129
+ * App instance ID.
130
+ * @format GUID
131
+ */
124
132
  instanceId?: string | null;
125
- /** Event type. */
133
+ /**
134
+ * Event type.
135
+ * @maxLength 150
136
+ */
126
137
  eventType?: string;
127
138
  /** The identification type and identity data. */
128
139
  identity?: IdentificationData;
@@ -130,26 +141,50 @@ export interface MessageEnvelope {
130
141
  data?: string;
131
142
  }
132
143
  export interface IdentificationData extends IdentificationDataIdOneOf {
133
- /** ID of a site visitor that has not logged in to the site. */
144
+ /**
145
+ * ID of a site visitor that has not logged in to the site.
146
+ * @format GUID
147
+ */
134
148
  anonymousVisitorId?: string;
135
- /** ID of a site visitor that has logged in to the site. */
149
+ /**
150
+ * ID of a site visitor that has logged in to the site.
151
+ * @format GUID
152
+ */
136
153
  memberId?: string;
137
- /** ID of a Wix user (site owner, contributor, etc.). */
154
+ /**
155
+ * ID of a Wix user (site owner, contributor, etc.).
156
+ * @format GUID
157
+ */
138
158
  wixUserId?: string;
139
- /** ID of an app. */
159
+ /**
160
+ * ID of an app.
161
+ * @format GUID
162
+ */
140
163
  appId?: string;
141
164
  /** @readonly */
142
165
  identityType?: WebhookIdentityType;
143
166
  }
144
167
  /** @oneof */
145
168
  export interface IdentificationDataIdOneOf {
146
- /** ID of a site visitor that has not logged in to the site. */
169
+ /**
170
+ * ID of a site visitor that has not logged in to the site.
171
+ * @format GUID
172
+ */
147
173
  anonymousVisitorId?: string;
148
- /** ID of a site visitor that has logged in to the site. */
174
+ /**
175
+ * ID of a site visitor that has logged in to the site.
176
+ * @format GUID
177
+ */
149
178
  memberId?: string;
150
- /** ID of a Wix user (site owner, contributor, etc.). */
179
+ /**
180
+ * ID of a Wix user (site owner, contributor, etc.).
181
+ * @format GUID
182
+ */
151
183
  wixUserId?: string;
152
- /** ID of an app. */
184
+ /**
185
+ * ID of an app.
186
+ * @format GUID
187
+ */
153
188
  appId?: string;
154
189
  }
155
190
  export declare enum WebhookIdentityType {
@@ -1 +1 @@
1
- {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;AAwID,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.types.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.types.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,IAaX;AAbD,WAAY,IAAI;IACd,yCAAyC;IACzC,2CAAmC,CAAA;IACnC,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,sCAAsC;IACtC,+BAAuB,CAAA;IACvB,qCAAqC;IACrC,6BAAqB,CAAA;IACrB,8BAA8B;IAC9B,eAAO,CAAA;IACP,mCAAmC;IACnC,yBAAiB,CAAA;AACnB,CAAC,EAbW,IAAI,KAAJ,IAAI,QAaf;AAyKD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
@@ -2,11 +2,13 @@ export interface FollowedChannel {
2
2
  /**
3
3
  * Followed social media channel ID.
4
4
  * @readonly
5
+ * @format GUID
5
6
  */
6
7
  _id?: string;
7
8
  /**
8
9
  * ID of the account that has followed a social media channel.
9
10
  * @readonly
11
+ * @format GUID
10
12
  */
11
13
  accountId?: string;
12
14
  /** Followed social media channel type. */
@@ -42,7 +44,10 @@ export interface CreateFollowedChannelResponse {
42
44
  export interface ListFollowedChannelsRequest {
43
45
  }
44
46
  export interface ListFollowedChannelsResponse {
45
- /** List of followed social media channels. */
47
+ /**
48
+ * List of followed social media channels.
49
+ * @maxSize 5
50
+ */
46
51
  followedChannels?: FollowedChannel[];
47
52
  }
48
53
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -118,9 +123,15 @@ export interface ActionEvent {
118
123
  export interface Empty {
119
124
  }
120
125
  export interface MessageEnvelope {
121
- /** App instance ID. */
126
+ /**
127
+ * App instance ID.
128
+ * @format GUID
129
+ */
122
130
  instanceId?: string | null;
123
- /** Event type. */
131
+ /**
132
+ * Event type.
133
+ * @maxLength 150
134
+ */
124
135
  eventType?: string;
125
136
  /** The identification type and identity data. */
126
137
  identity?: IdentificationData;
@@ -128,26 +139,50 @@ export interface MessageEnvelope {
128
139
  data?: string;
129
140
  }
130
141
  export interface IdentificationData extends IdentificationDataIdOneOf {
131
- /** ID of a site visitor that has not logged in to the site. */
142
+ /**
143
+ * ID of a site visitor that has not logged in to the site.
144
+ * @format GUID
145
+ */
132
146
  anonymousVisitorId?: string;
133
- /** ID of a site visitor that has logged in to the site. */
147
+ /**
148
+ * ID of a site visitor that has logged in to the site.
149
+ * @format GUID
150
+ */
134
151
  memberId?: string;
135
- /** ID of a Wix user (site owner, contributor, etc.). */
152
+ /**
153
+ * ID of a Wix user (site owner, contributor, etc.).
154
+ * @format GUID
155
+ */
136
156
  wixUserId?: string;
137
- /** ID of an app. */
157
+ /**
158
+ * ID of an app.
159
+ * @format GUID
160
+ */
138
161
  appId?: string;
139
162
  /** @readonly */
140
163
  identityType?: WebhookIdentityType;
141
164
  }
142
165
  /** @oneof */
143
166
  export interface IdentificationDataIdOneOf {
144
- /** ID of a site visitor that has not logged in to the site. */
167
+ /**
168
+ * ID of a site visitor that has not logged in to the site.
169
+ * @format GUID
170
+ */
145
171
  anonymousVisitorId?: string;
146
- /** ID of a site visitor that has logged in to the site. */
172
+ /**
173
+ * ID of a site visitor that has logged in to the site.
174
+ * @format GUID
175
+ */
147
176
  memberId?: string;
148
- /** ID of a Wix user (site owner, contributor, etc.). */
177
+ /**
178
+ * ID of a Wix user (site owner, contributor, etc.).
179
+ * @format GUID
180
+ */
149
181
  wixUserId?: string;
150
- /** ID of an app. */
182
+ /**
183
+ * ID of an app.
184
+ * @format GUID
185
+ */
151
186
  appId?: string;
152
187
  }
153
188
  export declare enum WebhookIdentityType {
@@ -169,9 +204,15 @@ export interface ListFollowedChannelsResponseNonNullableFields {
169
204
  followedChannels: FollowedChannelNonNullableFields[];
170
205
  }
171
206
  export interface BaseEventMetadata {
172
- /** App instance ID. */
207
+ /**
208
+ * App instance ID.
209
+ * @format GUID
210
+ */
173
211
  instanceId?: string | null;
174
- /** Event type. */
212
+ /**
213
+ * Event type.
214
+ * @maxLength 150
215
+ */
175
216
  eventType?: string;
176
217
  /** The identification type and identity data. */
177
218
  identity?: IdentificationData;
@@ -220,10 +261,12 @@ export interface FollowedChannelCreatedEnvelope {
220
261
  }
221
262
  /**
222
263
  * Triggered when an account follows a new channel.
223
- * @permissionScope Manage Loyalty
224
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
225
264
  * @permissionScope Read Loyalty
226
265
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
266
+ * @permissionScope Manage Loyalty
267
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
268
+ * @permissionScope Manage Restaurants - all permissions
269
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
227
270
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
228
271
  * @webhook
229
272
  * @eventType wix.loyalty.socialmedia.v1.followed_channel_created
@@ -260,10 +303,12 @@ export declare function createFollowedChannel(followedChannel: FollowedChannel):
260
303
  * @public
261
304
  * @documentationMaturity preview
262
305
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
263
- * @permissionScope Manage Loyalty
264
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
265
306
  * @permissionScope Read Loyalty
266
307
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
308
+ * @permissionScope Manage Loyalty
309
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
310
+ * @permissionScope Manage Restaurants - all permissions
311
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
267
312
  * @applicableIdentity APP
268
313
  * @applicableIdentity MEMBER
269
314
  * @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
@@ -76,10 +76,12 @@ export async function createFollowedChannel(followedChannel) {
76
76
  * @public
77
77
  * @documentationMaturity preview
78
78
  * @permissionId LOYALTY.FOLLOWED_CHANNEL_READ
79
- * @permissionScope Manage Loyalty
80
- * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
81
79
  * @permissionScope Read Loyalty
82
80
  * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
81
+ * @permissionScope Manage Loyalty
82
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
83
+ * @permissionScope Manage Restaurants - all permissions
84
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
83
85
  * @applicableIdentity APP
84
86
  * @applicableIdentity MEMBER
85
87
  * @fqn wix.loyalty.socialmedia.v1.LoyaltySocialMedia.ListFollowedChannels
@@ -1 +1 @@
1
- {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAy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GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE;YACrD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,iBAAiB,CAAC,CACpB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB;IAGxC,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC,EAAE,CAAC,CAAC;IAE1D,MAAM,OAAO,GACX,gDAAgD,CAAC,oBAAoB,CACnE,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE;YAC5B,uBAAuB,EAAE,KAAK;SAC/B,EACD,EAAE,CACH,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"loyalty-socialmedia-v1-followed-channel-social-media.universal.js","sourceRoot":"","sources":["../../../../src/loyalty-socialmedia-v1-followed-channel-social-media.universal.ts"],"names":[],"mappings":"AAAA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HANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_loyalty_social-media",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -28,8 +28,8 @@
28
28
  "service-plugins"
29
29
  ],
30
30
  "dependencies": {
31
- "@wix/sdk-runtime": "^0.3.35",
32
- "@wix/sdk-types": "^1.12.4"
31
+ "@wix/sdk-runtime": "^0.3.42",
32
+ "@wix/sdk-types": "^1.13.9"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "^5.3.2"
@@ -48,5 +48,5 @@
48
48
  "fqdn": "wix.loyalty.socialmedia.v1.followed_channel"
49
49
  }
50
50
  },
51
- "falconPackageHash": "712010a30a1acf90d0d9492965686df645c3f6270fb773a9b89f8d30"
51
+ "falconPackageHash": "991db14b08efadf886a9a97395896c2113c0c84160d2321fc388d307"
52
52
  }