@wix/auth-management 1.0.13 → 1.0.14
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/cjs/context.d.ts +1 -0
- package/build/cjs/context.js +28 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +5 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +5 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/headless-v1-o-auth-app.context.d.ts +6 -0
- package/build/cjs/src/headless-v1-o-auth-app.context.js +49 -0
- package/build/cjs/src/headless-v1-o-auth-app.context.js.map +1 -0
- package/build/cjs/src/headless-v1-o-auth-app.http.d.ts +1 -0
- package/build/cjs/src/headless-v1-o-auth-app.http.js +55 -43
- package/build/cjs/src/headless-v1-o-auth-app.http.js.map +1 -1
- package/build/cjs/src/headless-v1-o-auth-app.meta.d.ts +1 -1
- package/build/cjs/src/headless-v1-o-auth-app.meta.js +5 -1
- package/build/cjs/src/headless-v1-o-auth-app.meta.js.map +1 -1
- package/build/cjs/src/headless-v1-o-auth-app.public.d.ts +4 -3
- package/build/cjs/src/headless-v1-o-auth-app.public.js +10 -2
- package/build/cjs/src/headless-v1-o-auth-app.public.js.map +1 -1
- package/build/cjs/src/headless-v1-o-auth-app.types.d.ts +344 -7
- package/build/cjs/src/headless-v1-o-auth-app.types.js +93 -2
- package/build/cjs/src/headless-v1-o-auth-app.types.js.map +1 -1
- package/build/cjs/src/headless-v1-o-auth-app.universal.d.ts +369 -19
- package/build/cjs/src/headless-v1-o-auth-app.universal.js +129 -39
- package/build/cjs/src/headless-v1-o-auth-app.universal.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +2 -0
- package/build/es/context.js.map +1 -0
- package/build/es/src/headless-v1-o-auth-app.context.d.ts +6 -0
- package/build/es/src/headless-v1-o-auth-app.context.js +42 -0
- package/build/es/src/headless-v1-o-auth-app.context.js.map +1 -0
- package/build/es/src/headless-v1-o-auth-app.http.d.ts +1 -0
- package/build/es/src/headless-v1-o-auth-app.http.js +55 -43
- package/build/es/src/headless-v1-o-auth-app.http.js.map +1 -1
- package/build/es/src/headless-v1-o-auth-app.meta.d.ts +1 -1
- package/build/es/src/headless-v1-o-auth-app.public.d.ts +4 -3
- package/build/es/src/headless-v1-o-auth-app.public.js +3 -2
- package/build/es/src/headless-v1-o-auth-app.public.js.map +1 -1
- package/build/es/src/headless-v1-o-auth-app.types.d.ts +344 -7
- package/build/es/src/headless-v1-o-auth-app.types.js +91 -0
- package/build/es/src/headless-v1-o-auth-app.types.js.map +1 -1
- package/build/es/src/headless-v1-o-auth-app.universal.d.ts +369 -19
- package/build/es/src/headless-v1-o-auth-app.universal.js +122 -36
- package/build/es/src/headless-v1-o-auth-app.universal.js.map +1 -1
- package/context/package.json +6 -0
- package/package.json +12 -6
|
@@ -41,6 +41,8 @@ export interface OAuthApp {
|
|
|
41
41
|
* Default: `true` until a secret has been generated for the OAuth App.
|
|
42
42
|
*/
|
|
43
43
|
allowSecretGeneration?: boolean | null;
|
|
44
|
+
/** External logout URL to which we invoke when user logout at wix. If no logout URL is specified, the user is logged out only at Wix. */
|
|
45
|
+
logoutUrl?: string | null;
|
|
44
46
|
}
|
|
45
47
|
export interface CreateOAuthAppRequest {
|
|
46
48
|
/** OAuth app to create. */
|
|
@@ -61,8 +63,6 @@ export interface GetOAuthAppResponse {
|
|
|
61
63
|
export interface UpdateOAuthAppRequest {
|
|
62
64
|
/** Updated OAuth app details. May include some or all fields. */
|
|
63
65
|
oAuthApp: OAuthApp;
|
|
64
|
-
/** Explicit list of fields to update. Only fields listed are updated. */
|
|
65
|
-
mask: string[];
|
|
66
66
|
}
|
|
67
67
|
export interface UpdateOAuthAppResponse {
|
|
68
68
|
/** Updated OAuth app info. */
|
|
@@ -122,13 +122,12 @@ export interface Paging {
|
|
|
122
122
|
offset?: number | null;
|
|
123
123
|
}
|
|
124
124
|
export interface CursorPaging {
|
|
125
|
-
/**
|
|
125
|
+
/** Maximum number of items to return in the results. */
|
|
126
126
|
limit?: number | null;
|
|
127
127
|
/**
|
|
128
128
|
* Pointer to the next or previous page in the list of results.
|
|
129
129
|
*
|
|
130
|
-
*
|
|
131
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
130
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
132
131
|
* Not relevant for the first request.
|
|
133
132
|
*/
|
|
134
133
|
cursor?: string | null;
|
|
@@ -152,9 +151,9 @@ export interface PagingMetadataV2 {
|
|
|
152
151
|
cursors?: Cursors;
|
|
153
152
|
}
|
|
154
153
|
export interface Cursors {
|
|
155
|
-
/** Cursor pointing to next page in the list of results. */
|
|
154
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
156
155
|
next?: string | null;
|
|
157
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
156
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
158
157
|
prev?: string | null;
|
|
159
158
|
}
|
|
160
159
|
export interface GenerateOAuthAppSecretRequest {
|
|
@@ -165,6 +164,344 @@ export interface GenerateOAuthAppSecretResponse {
|
|
|
165
164
|
/** Secret generated. */
|
|
166
165
|
oAuthAppSecret?: string;
|
|
167
166
|
}
|
|
167
|
+
export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
168
|
+
/** Emitted on a meta site creation. */
|
|
169
|
+
siteCreated?: SiteCreated;
|
|
170
|
+
/** Emitted on a meta site transfer completion. */
|
|
171
|
+
siteTransferred?: SiteTransferred;
|
|
172
|
+
/** Emitted on a meta site deletion. */
|
|
173
|
+
siteDeleted?: SiteDeleted;
|
|
174
|
+
/** Emitted on a meta site restoration. */
|
|
175
|
+
siteUndeleted?: SiteUndeleted;
|
|
176
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
177
|
+
sitePublished?: SitePublished;
|
|
178
|
+
/** Emitted on a meta site unpublish. */
|
|
179
|
+
siteUnpublished?: SiteUnpublished;
|
|
180
|
+
/** Emitted when meta site is marked as template. */
|
|
181
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
182
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
183
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
184
|
+
/** Emitted when an application is provisioned (installed). */
|
|
185
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
186
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
187
|
+
serviceRemoved?: ServiceRemoved;
|
|
188
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
189
|
+
siteRenamedPayload?: SiteRenamed;
|
|
190
|
+
/** Emitted when meta site was permanently deleted. */
|
|
191
|
+
hardDeleted?: SiteHardDeleted;
|
|
192
|
+
/** Emitted on a namespace change. */
|
|
193
|
+
namespaceChanged?: NamespaceChanged;
|
|
194
|
+
/** Emitted when Studio is attached. */
|
|
195
|
+
studioAssigned?: StudioAssigned;
|
|
196
|
+
/** Emitted when Studio is detached. */
|
|
197
|
+
studioUnassigned?: StudioUnassigned;
|
|
198
|
+
/** A meta site id. */
|
|
199
|
+
metaSiteId?: string;
|
|
200
|
+
/** A meta site version. Monotonically increasing. */
|
|
201
|
+
version?: string;
|
|
202
|
+
/** A timestamp of the event. */
|
|
203
|
+
timestamp?: string;
|
|
204
|
+
/** A list of "assets" (applications). The same as MetaSiteContext. */
|
|
205
|
+
assets?: Asset[];
|
|
206
|
+
}
|
|
207
|
+
/** @oneof */
|
|
208
|
+
export interface MetaSiteSpecialEventPayloadOneOf {
|
|
209
|
+
/** Emitted on a meta site creation. */
|
|
210
|
+
siteCreated?: SiteCreated;
|
|
211
|
+
/** Emitted on a meta site transfer completion. */
|
|
212
|
+
siteTransferred?: SiteTransferred;
|
|
213
|
+
/** Emitted on a meta site deletion. */
|
|
214
|
+
siteDeleted?: SiteDeleted;
|
|
215
|
+
/** Emitted on a meta site restoration. */
|
|
216
|
+
siteUndeleted?: SiteUndeleted;
|
|
217
|
+
/** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
|
|
218
|
+
sitePublished?: SitePublished;
|
|
219
|
+
/** Emitted on a meta site unpublish. */
|
|
220
|
+
siteUnpublished?: SiteUnpublished;
|
|
221
|
+
/** Emitted when meta site is marked as template. */
|
|
222
|
+
siteMarkedAsTemplate?: SiteMarkedAsTemplate;
|
|
223
|
+
/** Emitted when meta site is marked as a WixSite. */
|
|
224
|
+
siteMarkedAsWixSite?: SiteMarkedAsWixSite;
|
|
225
|
+
/** Emitted when an application is provisioned (installed). */
|
|
226
|
+
serviceProvisioned?: ServiceProvisioned;
|
|
227
|
+
/** Emitted when an application is removed (uninstalled). */
|
|
228
|
+
serviceRemoved?: ServiceRemoved;
|
|
229
|
+
/** Emitted when meta site name (URL slug) is changed. */
|
|
230
|
+
siteRenamedPayload?: SiteRenamed;
|
|
231
|
+
/** Emitted when meta site was permanently deleted. */
|
|
232
|
+
hardDeleted?: SiteHardDeleted;
|
|
233
|
+
/** Emitted on a namespace change. */
|
|
234
|
+
namespaceChanged?: NamespaceChanged;
|
|
235
|
+
/** Emitted when Studio is attached. */
|
|
236
|
+
studioAssigned?: StudioAssigned;
|
|
237
|
+
/** Emitted when Studio is detached. */
|
|
238
|
+
studioUnassigned?: StudioUnassigned;
|
|
239
|
+
}
|
|
240
|
+
export interface Asset {
|
|
241
|
+
/** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
|
|
242
|
+
appDefId?: string;
|
|
243
|
+
/** An instance id. For legacy reasons may be UUID or a string. */
|
|
244
|
+
instanceId?: string;
|
|
245
|
+
/** An application state. */
|
|
246
|
+
state?: State;
|
|
247
|
+
}
|
|
248
|
+
export declare enum State {
|
|
249
|
+
UNKNOWN = "UNKNOWN",
|
|
250
|
+
ENABLED = "ENABLED",
|
|
251
|
+
DISABLED = "DISABLED",
|
|
252
|
+
PENDING = "PENDING",
|
|
253
|
+
DEMO = "DEMO"
|
|
254
|
+
}
|
|
255
|
+
export interface SiteCreated {
|
|
256
|
+
/** A template identifier (empty if not created from a template). */
|
|
257
|
+
originTemplateId?: string;
|
|
258
|
+
/** An account id of the owner. */
|
|
259
|
+
ownerId?: string;
|
|
260
|
+
/** A context in which meta site was created. */
|
|
261
|
+
context?: SiteCreatedContext;
|
|
262
|
+
/**
|
|
263
|
+
* A meta site id from which this site was created.
|
|
264
|
+
*
|
|
265
|
+
* In case of a creation from a template it's a template id.
|
|
266
|
+
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
267
|
+
*/
|
|
268
|
+
originMetaSiteId?: string | null;
|
|
269
|
+
/** A meta site name (URL slug). */
|
|
270
|
+
siteName?: string;
|
|
271
|
+
/** A namespace. */
|
|
272
|
+
namespace?: Namespace;
|
|
273
|
+
}
|
|
274
|
+
export declare enum SiteCreatedContext {
|
|
275
|
+
/** A valid option, we don't expose all reasons why site might be created. */
|
|
276
|
+
OTHER = "OTHER",
|
|
277
|
+
/** A meta site was created from template. */
|
|
278
|
+
FROM_TEMPLATE = "FROM_TEMPLATE",
|
|
279
|
+
/** A meta site was created by copying of the transfferred meta site. */
|
|
280
|
+
DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
|
|
281
|
+
/** A copy of existing meta site. */
|
|
282
|
+
DUPLICATE = "DUPLICATE",
|
|
283
|
+
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
284
|
+
OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
|
|
285
|
+
/** deprecated A meta site was created for Flash editor. */
|
|
286
|
+
FLASH = "FLASH"
|
|
287
|
+
}
|
|
288
|
+
export declare enum Namespace {
|
|
289
|
+
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
290
|
+
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
291
|
+
WIX = "WIX",
|
|
292
|
+
/** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
293
|
+
SHOUT_OUT = "SHOUT_OUT",
|
|
294
|
+
/** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
295
|
+
ALBUMS = "ALBUMS",
|
|
296
|
+
/** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
297
|
+
WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
|
|
298
|
+
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
299
|
+
HOTELS = "HOTELS",
|
|
300
|
+
/** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
301
|
+
CLUBS = "CLUBS",
|
|
302
|
+
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
303
|
+
ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
|
|
304
|
+
/** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
305
|
+
DEV_SITE = "DEV_SITE",
|
|
306
|
+
/** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
307
|
+
LOGOS = "LOGOS",
|
|
308
|
+
/** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
309
|
+
VIDEO_MAKER = "VIDEO_MAKER",
|
|
310
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
311
|
+
PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
|
|
312
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
313
|
+
DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
|
|
314
|
+
/**
|
|
315
|
+
* A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
|
|
316
|
+
*
|
|
317
|
+
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
318
|
+
*/
|
|
319
|
+
HTML_DRAFT = "HTML_DRAFT",
|
|
320
|
+
/**
|
|
321
|
+
* the user-journey for Fitness users who want to start from managing their business instead of designing their website.
|
|
322
|
+
* Will be accessible from Site List and will not have a website app.
|
|
323
|
+
* Once the user attaches a site, the site will become a regular wixsite.
|
|
324
|
+
*/
|
|
325
|
+
SITELESS_BUSINESS = "SITELESS_BUSINESS",
|
|
326
|
+
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
327
|
+
CREATOR_ECONOMY = "CREATOR_ECONOMY",
|
|
328
|
+
/** It is to be used in the Business First efforts. */
|
|
329
|
+
DASHBOARD_FIRST = "DASHBOARD_FIRST",
|
|
330
|
+
/** Bookings business flow with no site. */
|
|
331
|
+
ANYWHERE = "ANYWHERE",
|
|
332
|
+
/** Namespace for Headless Backoffice with no editor */
|
|
333
|
+
HEADLESS = "HEADLESS",
|
|
334
|
+
/**
|
|
335
|
+
* Namespace for master site that will exist in parent account that will be referenced by subaccounts
|
|
336
|
+
* The site will be used for account level CSM feature for enterprise
|
|
337
|
+
*/
|
|
338
|
+
ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
|
|
339
|
+
/** Rise.ai Siteless account management for Gift Cards and Store Credit. */
|
|
340
|
+
RISE = "RISE",
|
|
341
|
+
/**
|
|
342
|
+
* As part of the branded app new funnel, users now can create a meta site that will be branded app first.
|
|
343
|
+
* There's a blank site behind the scene but it's blank).
|
|
344
|
+
* The Mobile company will be the owner of this namespace.
|
|
345
|
+
*/
|
|
346
|
+
BRANDED_FIRST = "BRANDED_FIRST"
|
|
347
|
+
}
|
|
348
|
+
/** Site transferred to another user. */
|
|
349
|
+
export interface SiteTransferred {
|
|
350
|
+
/** A previous owner id (user that transfers meta site). */
|
|
351
|
+
oldOwnerId?: string;
|
|
352
|
+
/** A new owner id (user that accepts meta site). */
|
|
353
|
+
newOwnerId?: string;
|
|
354
|
+
}
|
|
355
|
+
/** Soft deletion of the meta site. Could be restored. */
|
|
356
|
+
export interface SiteDeleted {
|
|
357
|
+
/** A deletion context. */
|
|
358
|
+
deleteContext?: DeleteContext;
|
|
359
|
+
}
|
|
360
|
+
export interface DeleteContext {
|
|
361
|
+
/** When the meta site was deleted. */
|
|
362
|
+
dateDeleted?: Date;
|
|
363
|
+
/** A status. */
|
|
364
|
+
deleteStatus?: DeleteStatus;
|
|
365
|
+
/** A reason (flow). */
|
|
366
|
+
deleteOrigin?: string;
|
|
367
|
+
/** A service that deleted it. */
|
|
368
|
+
initiatorId?: string | null;
|
|
369
|
+
}
|
|
370
|
+
export declare enum DeleteStatus {
|
|
371
|
+
UNKNOWN = "UNKNOWN",
|
|
372
|
+
TRASH = "TRASH",
|
|
373
|
+
DELETED = "DELETED",
|
|
374
|
+
PENDING_PURGE = "PENDING_PURGE"
|
|
375
|
+
}
|
|
376
|
+
/** Restoration of the meta site. */
|
|
377
|
+
export interface SiteUndeleted {
|
|
378
|
+
}
|
|
379
|
+
/** First publish of a meta site. Or subsequent publish after unpublish. */
|
|
380
|
+
export interface SitePublished {
|
|
381
|
+
}
|
|
382
|
+
export interface SiteUnpublished {
|
|
383
|
+
/** A list of URLs previously associated with the meta site. */
|
|
384
|
+
urls?: string[];
|
|
385
|
+
}
|
|
386
|
+
export interface SiteMarkedAsTemplate {
|
|
387
|
+
}
|
|
388
|
+
export interface SiteMarkedAsWixSite {
|
|
389
|
+
}
|
|
390
|
+
export interface ServiceProvisioned {
|
|
391
|
+
/** Either UUID or EmbeddedServiceType. */
|
|
392
|
+
appDefId?: string;
|
|
393
|
+
/** Not only UUID. Something here could be something weird. */
|
|
394
|
+
instanceId?: string;
|
|
395
|
+
/** An instance id from which this instance is originated. */
|
|
396
|
+
originInstanceId?: string;
|
|
397
|
+
/** A version. */
|
|
398
|
+
version?: string | null;
|
|
399
|
+
}
|
|
400
|
+
export interface ServiceRemoved {
|
|
401
|
+
/** Either UUID or EmbeddedServiceType. */
|
|
402
|
+
appDefId?: string;
|
|
403
|
+
/** Not only UUID. Something here could be something weird. */
|
|
404
|
+
instanceId?: string;
|
|
405
|
+
/** A version. */
|
|
406
|
+
version?: string | null;
|
|
407
|
+
}
|
|
408
|
+
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
409
|
+
export interface SiteRenamed {
|
|
410
|
+
/** A new meta site name (URL slug). */
|
|
411
|
+
newSiteName?: string;
|
|
412
|
+
/** A previous meta site name (URL slug). */
|
|
413
|
+
oldSiteName?: string;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Hard deletion of the meta site.
|
|
417
|
+
*
|
|
418
|
+
* Could not be restored. Therefore it's desirable to cleanup data.
|
|
419
|
+
*/
|
|
420
|
+
export interface SiteHardDeleted {
|
|
421
|
+
/** A deletion context. */
|
|
422
|
+
deleteContext?: DeleteContext;
|
|
423
|
+
}
|
|
424
|
+
export interface NamespaceChanged {
|
|
425
|
+
/** A previous namespace. */
|
|
426
|
+
oldNamespace?: Namespace;
|
|
427
|
+
/** A new namespace. */
|
|
428
|
+
newNamespace?: Namespace;
|
|
429
|
+
}
|
|
430
|
+
/** Assigned Studio editor */
|
|
431
|
+
export interface StudioAssigned {
|
|
432
|
+
}
|
|
433
|
+
/** Unassigned Studio editor */
|
|
434
|
+
export interface StudioUnassigned {
|
|
435
|
+
}
|
|
436
|
+
export interface Empty {
|
|
437
|
+
}
|
|
438
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
439
|
+
createdEvent?: EntityCreatedEvent;
|
|
440
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
441
|
+
deletedEvent?: EntityDeletedEvent;
|
|
442
|
+
actionEvent?: ActionEvent;
|
|
443
|
+
/**
|
|
444
|
+
* Unique event ID.
|
|
445
|
+
* Allows clients to ignore duplicate webhooks.
|
|
446
|
+
*/
|
|
447
|
+
id?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Assumes actions are also always typed to an entity_type
|
|
450
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
451
|
+
*/
|
|
452
|
+
entityFqdn?: string;
|
|
453
|
+
/**
|
|
454
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
455
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
456
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
457
|
+
*/
|
|
458
|
+
slug?: string;
|
|
459
|
+
/** ID of the entity associated with the event. */
|
|
460
|
+
entityId?: string;
|
|
461
|
+
/** Event timestamp. */
|
|
462
|
+
eventTime?: Date;
|
|
463
|
+
/**
|
|
464
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
465
|
+
* (for example, GDPR).
|
|
466
|
+
*/
|
|
467
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
468
|
+
/** If present, indicates the action that triggered the event. */
|
|
469
|
+
originatedFrom?: string | null;
|
|
470
|
+
/**
|
|
471
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
472
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
473
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
474
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
475
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
476
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
477
|
+
*/
|
|
478
|
+
entityEventSequence?: string | null;
|
|
479
|
+
}
|
|
480
|
+
/** @oneof */
|
|
481
|
+
export interface DomainEventBodyOneOf {
|
|
482
|
+
createdEvent?: EntityCreatedEvent;
|
|
483
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
484
|
+
deletedEvent?: EntityDeletedEvent;
|
|
485
|
+
actionEvent?: ActionEvent;
|
|
486
|
+
}
|
|
487
|
+
export interface EntityCreatedEvent {
|
|
488
|
+
entityAsJson?: string;
|
|
489
|
+
}
|
|
490
|
+
export interface EntityUpdatedEvent {
|
|
491
|
+
/**
|
|
492
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
493
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
494
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
495
|
+
*/
|
|
496
|
+
currentEntityAsJson?: string;
|
|
497
|
+
}
|
|
498
|
+
export interface EntityDeletedEvent {
|
|
499
|
+
/** Entity that was deleted */
|
|
500
|
+
deletedEntityAsJson?: string | null;
|
|
501
|
+
}
|
|
502
|
+
export interface ActionEvent {
|
|
503
|
+
bodyAsJson?: string;
|
|
504
|
+
}
|
|
168
505
|
export interface CreateOAuthAppResponseNonNullableFields {
|
|
169
506
|
oAuthApp?: {
|
|
170
507
|
allowedDomains: string[];
|
|
@@ -1,9 +1,100 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortOrder = void 0;
|
|
3
|
+
exports.DeleteStatus = exports.Namespace = exports.SiteCreatedContext = exports.State = exports.SortOrder = void 0;
|
|
4
4
|
var SortOrder;
|
|
5
5
|
(function (SortOrder) {
|
|
6
6
|
SortOrder["ASC"] = "ASC";
|
|
7
7
|
SortOrder["DESC"] = "DESC";
|
|
8
|
-
})(SortOrder
|
|
8
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
9
|
+
var State;
|
|
10
|
+
(function (State) {
|
|
11
|
+
State["UNKNOWN"] = "UNKNOWN";
|
|
12
|
+
State["ENABLED"] = "ENABLED";
|
|
13
|
+
State["DISABLED"] = "DISABLED";
|
|
14
|
+
State["PENDING"] = "PENDING";
|
|
15
|
+
State["DEMO"] = "DEMO";
|
|
16
|
+
})(State || (exports.State = State = {}));
|
|
17
|
+
var SiteCreatedContext;
|
|
18
|
+
(function (SiteCreatedContext) {
|
|
19
|
+
/** A valid option, we don't expose all reasons why site might be created. */
|
|
20
|
+
SiteCreatedContext["OTHER"] = "OTHER";
|
|
21
|
+
/** A meta site was created from template. */
|
|
22
|
+
SiteCreatedContext["FROM_TEMPLATE"] = "FROM_TEMPLATE";
|
|
23
|
+
/** A meta site was created by copying of the transfferred meta site. */
|
|
24
|
+
SiteCreatedContext["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
|
|
25
|
+
/** A copy of existing meta site. */
|
|
26
|
+
SiteCreatedContext["DUPLICATE"] = "DUPLICATE";
|
|
27
|
+
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
28
|
+
SiteCreatedContext["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
|
|
29
|
+
/** deprecated A meta site was created for Flash editor. */
|
|
30
|
+
SiteCreatedContext["FLASH"] = "FLASH";
|
|
31
|
+
})(SiteCreatedContext || (exports.SiteCreatedContext = SiteCreatedContext = {}));
|
|
32
|
+
var Namespace;
|
|
33
|
+
(function (Namespace) {
|
|
34
|
+
Namespace["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
35
|
+
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
36
|
+
Namespace["WIX"] = "WIX";
|
|
37
|
+
/** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
38
|
+
Namespace["SHOUT_OUT"] = "SHOUT_OUT";
|
|
39
|
+
/** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
40
|
+
Namespace["ALBUMS"] = "ALBUMS";
|
|
41
|
+
/** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
42
|
+
Namespace["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
43
|
+
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
44
|
+
Namespace["HOTELS"] = "HOTELS";
|
|
45
|
+
/** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
46
|
+
Namespace["CLUBS"] = "CLUBS";
|
|
47
|
+
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
48
|
+
Namespace["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
49
|
+
/** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
50
|
+
Namespace["DEV_SITE"] = "DEV_SITE";
|
|
51
|
+
/** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
52
|
+
Namespace["LOGOS"] = "LOGOS";
|
|
53
|
+
/** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
54
|
+
Namespace["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
55
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
56
|
+
Namespace["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
57
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
58
|
+
Namespace["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
59
|
+
/**
|
|
60
|
+
* A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
|
|
61
|
+
*
|
|
62
|
+
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
63
|
+
*/
|
|
64
|
+
Namespace["HTML_DRAFT"] = "HTML_DRAFT";
|
|
65
|
+
/**
|
|
66
|
+
* the user-journey for Fitness users who want to start from managing their business instead of designing their website.
|
|
67
|
+
* Will be accessible from Site List and will not have a website app.
|
|
68
|
+
* Once the user attaches a site, the site will become a regular wixsite.
|
|
69
|
+
*/
|
|
70
|
+
Namespace["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
71
|
+
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
72
|
+
Namespace["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
73
|
+
/** It is to be used in the Business First efforts. */
|
|
74
|
+
Namespace["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
75
|
+
/** Bookings business flow with no site. */
|
|
76
|
+
Namespace["ANYWHERE"] = "ANYWHERE";
|
|
77
|
+
/** Namespace for Headless Backoffice with no editor */
|
|
78
|
+
Namespace["HEADLESS"] = "HEADLESS";
|
|
79
|
+
/**
|
|
80
|
+
* Namespace for master site that will exist in parent account that will be referenced by subaccounts
|
|
81
|
+
* The site will be used for account level CSM feature for enterprise
|
|
82
|
+
*/
|
|
83
|
+
Namespace["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
84
|
+
/** Rise.ai Siteless account management for Gift Cards and Store Credit. */
|
|
85
|
+
Namespace["RISE"] = "RISE";
|
|
86
|
+
/**
|
|
87
|
+
* As part of the branded app new funnel, users now can create a meta site that will be branded app first.
|
|
88
|
+
* There's a blank site behind the scene but it's blank).
|
|
89
|
+
* The Mobile company will be the owner of this namespace.
|
|
90
|
+
*/
|
|
91
|
+
Namespace["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
92
|
+
})(Namespace || (exports.Namespace = Namespace = {}));
|
|
93
|
+
var DeleteStatus;
|
|
94
|
+
(function (DeleteStatus) {
|
|
95
|
+
DeleteStatus["UNKNOWN"] = "UNKNOWN";
|
|
96
|
+
DeleteStatus["TRASH"] = "TRASH";
|
|
97
|
+
DeleteStatus["DELETED"] = "DELETED";
|
|
98
|
+
DeleteStatus["PENDING_PURGE"] = "PENDING_PURGE";
|
|
99
|
+
})(DeleteStatus || (exports.DeleteStatus = DeleteStatus = {}));
|
|
9
100
|
//# sourceMappingURL=headless-v1-o-auth-app.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-o-auth-app.types.js","sourceRoot":"","sources":["../../../src/headless-v1-o-auth-app.types.ts"],"names":[],"mappings":";;;AA6HA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,
|
|
1
|
+
{"version":3,"file":"headless-v1-o-auth-app.types.js","sourceRoot":"","sources":["../../../src/headless-v1-o-auth-app.types.ts"],"names":[],"mappings":";;;AA6HA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA8ID,IAAY,KAMX;AAND,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,8BAAqB,CAAA;IACrB,4BAAmB,CAAA;IACnB,sBAAa,CAAA;AACf,CAAC,EANW,KAAK,qBAAL,KAAK,QAMhB;AAsBD,IAAY,kBAaX;AAbD,WAAY,kBAAkB;IAC5B,6EAA6E;IAC7E,qCAAe,CAAA;IACf,6CAA6C;IAC7C,qDAA+B,CAAA;IAC/B,wEAAwE;IACxE,+EAAyD,CAAA;IACzD,oCAAoC;IACpC,6CAAuB,CAAA;IACvB,wGAAwG;IACxG,6DAAuC,CAAA;IACvC,2DAA2D;IAC3D,qCAAe,CAAA;AACjB,CAAC,EAbW,kBAAkB,kCAAlB,kBAAkB,QAa7B;AAED,IAAY,SA2DX;AA3DD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,qHAAqH;IACrH,wBAAW,CAAA;IACX,6KAA6K;IAC7K,oCAAuB,CAAA;IACvB,0KAA0K;IAC1K,8BAAiB,CAAA;IACjB,6RAA6R;IAC7R,4DAA+C,CAAA;IAC/C,wHAAwH;IACxH,8BAAiB,CAAA;IACjB,kJAAkJ;IAClJ,4BAAe,CAAA;IACf,2HAA2H;IAC3H,kDAAqC,CAAA;IACrC,iIAAiI;IACjI,kCAAqB,CAAA;IACrB,sJAAsJ;IACtJ,4BAAe,CAAA;IACf,wJAAwJ;IACxJ,wCAA2B,CAAA;IAC3B,0FAA0F;IAC1F,oDAAuC,CAAA;IACvC,0FAA0F;IAC1F,sDAAyC,CAAA;IACzC;;;;OAIG;IACH,sCAAyB,CAAA;IACzB;;;;OAIG;IACH,oDAAuC,CAAA;IACvC,oGAAoG;IACpG,gDAAmC,CAAA;IACnC,sDAAsD;IACtD,gDAAmC,CAAA;IACnC,2CAA2C;IAC3C,kCAAqB,CAAA;IACrB,uDAAuD;IACvD,kCAAqB,CAAA;IACrB;;;OAGG;IACH,sDAAyC,CAAA;IACzC,2EAA2E;IAC3E,0BAAa,CAAA;IACb;;;;OAIG;IACH,4CAA+B,CAAA;AACjC,CAAC,EA3DW,SAAS,yBAAT,SAAS,QA2DpB;AA2BD,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,+CAA+B,CAAA;AACjC,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
|