@wix/domains 1.0.18 → 1.0.19
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/package.json +8 -8
- package/type-bundles/context.bundle.d.ts +1948 -20
- package/type-bundles/index.bundle.d.ts +10 -73
- package/type-bundles/meta.bundle.d.ts +18 -18
|
@@ -20,7 +20,7 @@ interface ConnectedDomain {
|
|
|
20
20
|
*/
|
|
21
21
|
connectionType?: ConnectionType$1;
|
|
22
22
|
/**
|
|
23
|
-
* Information about the site to which the domain is assigned
|
|
23
|
+
* Information about the site to which the domain is assigned, and whether
|
|
24
24
|
* it's the primary domain or a redirect.
|
|
25
25
|
*/
|
|
26
26
|
siteInfo?: SiteInfo$1;
|
|
@@ -56,20 +56,20 @@ declare enum ConnectionType$1 {
|
|
|
56
56
|
}
|
|
57
57
|
interface SiteInfo$1 extends SiteInfoAssignmentInfoOneOf$1 {
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Redirect information, relevant when `assignmentType` = `REDIRECT`.
|
|
60
60
|
* @readonly
|
|
61
61
|
*/
|
|
62
62
|
redirectInfo?: RedirectAssignmentInfo$1;
|
|
63
63
|
/**
|
|
64
|
-
* ID of the site the domain is assigned
|
|
64
|
+
* ID of the site to which the domain is assigned.
|
|
65
65
|
* @readonly
|
|
66
66
|
*/
|
|
67
67
|
_id?: string | null;
|
|
68
68
|
/**
|
|
69
|
-
* The
|
|
70
|
-
* + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type
|
|
71
|
-
* + `"PRIMARY"`:
|
|
72
|
-
* + `"REDIRECT"`:
|
|
69
|
+
* The relationship assigned for this domain to the site:
|
|
70
|
+
* + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type.
|
|
71
|
+
* + `"PRIMARY"`: The singular primary domain for a site. When this type is assigned, this domain will lead directly to the site.
|
|
72
|
+
* + `"REDIRECT"`: A redirect domain for a site. Each site can have multiple redirect domains. When this type is assigned, this domain will redirect to the primary domain.
|
|
73
73
|
* Read more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).
|
|
74
74
|
*/
|
|
75
75
|
assignmentType?: AssignmentType$1;
|
|
@@ -77,7 +77,7 @@ interface SiteInfo$1 extends SiteInfoAssignmentInfoOneOf$1 {
|
|
|
77
77
|
/** @oneof */
|
|
78
78
|
interface SiteInfoAssignmentInfoOneOf$1 {
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Redirect information, relevant when `assignmentType` = `REDIRECT`.
|
|
81
81
|
* @readonly
|
|
82
82
|
*/
|
|
83
83
|
redirectInfo?: RedirectAssignmentInfo$1;
|
|
@@ -89,7 +89,7 @@ declare enum AssignmentType$1 {
|
|
|
89
89
|
}
|
|
90
90
|
interface RedirectAssignmentInfo$1 {
|
|
91
91
|
/**
|
|
92
|
-
* Primary domain
|
|
92
|
+
* Primary domain to which this domain will redirect.
|
|
93
93
|
* @readonly
|
|
94
94
|
*/
|
|
95
95
|
primaryDomain?: string;
|
|
@@ -329,56 +329,6 @@ interface ListConnectedDomainsResponseNonNullableFields {
|
|
|
329
329
|
dnsPropagationStatus: DnsPropagationStatus$1;
|
|
330
330
|
}[];
|
|
331
331
|
}
|
|
332
|
-
interface BaseEventMetadata {
|
|
333
|
-
/** App instance ID. */
|
|
334
|
-
instanceId?: string | null;
|
|
335
|
-
/** Event type. */
|
|
336
|
-
eventType?: string;
|
|
337
|
-
/** The identification type and identity data. */
|
|
338
|
-
identity?: IdentificationData$2;
|
|
339
|
-
}
|
|
340
|
-
interface EventMetadata extends BaseEventMetadata {
|
|
341
|
-
/**
|
|
342
|
-
* Unique event ID.
|
|
343
|
-
* Allows clients to ignore duplicate webhooks.
|
|
344
|
-
*/
|
|
345
|
-
_id?: string;
|
|
346
|
-
/**
|
|
347
|
-
* Assumes actions are also always typed to an entity_type
|
|
348
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
349
|
-
*/
|
|
350
|
-
entityFqdn?: string;
|
|
351
|
-
/**
|
|
352
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
353
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
354
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
355
|
-
*/
|
|
356
|
-
slug?: string;
|
|
357
|
-
/** ID of the entity associated with the event. */
|
|
358
|
-
entityId?: string;
|
|
359
|
-
/** Event timestamp. */
|
|
360
|
-
eventTime?: Date;
|
|
361
|
-
/**
|
|
362
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
363
|
-
* (for example, GDPR).
|
|
364
|
-
*/
|
|
365
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
366
|
-
/** If present, indicates the action that triggered the event. */
|
|
367
|
-
originatedFrom?: string | null;
|
|
368
|
-
/**
|
|
369
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
370
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
371
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
372
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
373
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
374
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
375
|
-
*/
|
|
376
|
-
entityEventSequence?: string | null;
|
|
377
|
-
}
|
|
378
|
-
interface ConnectedDomainRemovedEnvelope {
|
|
379
|
-
data: DomainRemovedEvent$1;
|
|
380
|
-
metadata: EventMetadata;
|
|
381
|
-
}
|
|
382
332
|
interface ListConnectedDomainsOptions {
|
|
383
333
|
/** Cursor paging options. */
|
|
384
334
|
paging?: CursorPaging$2;
|
|
@@ -408,14 +358,6 @@ type APIMetadata = {
|
|
|
408
358
|
entityFqdn?: string;
|
|
409
359
|
packageName?: string;
|
|
410
360
|
};
|
|
411
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
412
|
-
__type: 'event-definition';
|
|
413
|
-
type: Type;
|
|
414
|
-
isDomainEvent?: boolean;
|
|
415
|
-
transformations?: (envelope: unknown) => Payload;
|
|
416
|
-
__payload: Payload;
|
|
417
|
-
};
|
|
418
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
419
361
|
|
|
420
362
|
declare global {
|
|
421
363
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -455,17 +397,13 @@ declare function getConnectedDomain(httpClient: HttpClient): (connectedDomainId:
|
|
|
455
397
|
}>;
|
|
456
398
|
declare function deleteConnectedDomain(httpClient: HttpClient): (connectedDomainId: string) => Promise<void>;
|
|
457
399
|
declare function listConnectedDomains(httpClient: HttpClient): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
|
|
458
|
-
declare const onConnectedDomainRemoved: EventDefinition<ConnectedDomainRemovedEnvelope, "wix.premium.domains.v1.connected_domain_removed">;
|
|
459
400
|
|
|
460
|
-
type index_d$5_BaseEventMetadata = BaseEventMetadata;
|
|
461
401
|
type index_d$5_ConnectedDomain = ConnectedDomain;
|
|
462
|
-
type index_d$5_ConnectedDomainRemovedEnvelope = ConnectedDomainRemovedEnvelope;
|
|
463
402
|
type index_d$5_CreateConnectedDomainRequest = CreateConnectedDomainRequest;
|
|
464
403
|
type index_d$5_CreateConnectedDomainResponse = CreateConnectedDomainResponse;
|
|
465
404
|
type index_d$5_CreateConnectedDomainResponseNonNullableFields = CreateConnectedDomainResponseNonNullableFields;
|
|
466
405
|
type index_d$5_DeleteConnectedDomainRequest = DeleteConnectedDomainRequest;
|
|
467
406
|
type index_d$5_DeleteConnectedDomainResponse = DeleteConnectedDomainResponse;
|
|
468
|
-
type index_d$5_EventMetadata = EventMetadata;
|
|
469
407
|
type index_d$5_GetConnectedDomainRequest = GetConnectedDomainRequest;
|
|
470
408
|
type index_d$5_GetConnectedDomainResponse = GetConnectedDomainResponse;
|
|
471
409
|
type index_d$5_GetConnectedDomainResponseNonNullableFields = GetConnectedDomainResponseNonNullableFields;
|
|
@@ -477,9 +415,8 @@ declare const index_d$5_createConnectedDomain: typeof createConnectedDomain;
|
|
|
477
415
|
declare const index_d$5_deleteConnectedDomain: typeof deleteConnectedDomain;
|
|
478
416
|
declare const index_d$5_getConnectedDomain: typeof getConnectedDomain;
|
|
479
417
|
declare const index_d$5_listConnectedDomains: typeof listConnectedDomains;
|
|
480
|
-
declare const index_d$5_onConnectedDomainRemoved: typeof onConnectedDomainRemoved;
|
|
481
418
|
declare namespace index_d$5 {
|
|
482
|
-
export { type ActionEvent$2 as ActionEvent, AssignmentType$1 as AssignmentType, type index_d$
|
|
419
|
+
export { type ActionEvent$2 as ActionEvent, AssignmentType$1 as AssignmentType, type index_d$5_ConnectedDomain as ConnectedDomain, ConnectionType$1 as ConnectionType, type index_d$5_CreateConnectedDomainRequest as CreateConnectedDomainRequest, type index_d$5_CreateConnectedDomainResponse as CreateConnectedDomainResponse, type index_d$5_CreateConnectedDomainResponseNonNullableFields as CreateConnectedDomainResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type Cursors$2 as Cursors, type index_d$5_DeleteConnectedDomainRequest as DeleteConnectedDomainRequest, type index_d$5_DeleteConnectedDomainResponse as DeleteConnectedDomainResponse, DnsPropagationStatus$1 as DnsPropagationStatus, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type DomainRemovedEvent$1 as DomainRemovedEvent, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$5_GetConnectedDomainRequest as GetConnectedDomainRequest, type index_d$5_GetConnectedDomainResponse as GetConnectedDomainResponse, type index_d$5_GetConnectedDomainResponseNonNullableFields as GetConnectedDomainResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$5_ListConnectedDomainsOptions as ListConnectedDomainsOptions, type index_d$5_ListConnectedDomainsRequest as ListConnectedDomainsRequest, type index_d$5_ListConnectedDomainsResponse as ListConnectedDomainsResponse, type index_d$5_ListConnectedDomainsResponseNonNullableFields as ListConnectedDomainsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type RedirectAssignmentInfo$1 as RedirectAssignmentInfo, type RestoreInfo$1 as RestoreInfo, type SiteInfo$1 as SiteInfo, type SiteInfoAssignmentInfoOneOf$1 as SiteInfoAssignmentInfoOneOf, WebhookIdentityType$2 as WebhookIdentityType, __metadata$5 as __metadata, index_d$5_createConnectedDomain as createConnectedDomain, index_d$5_deleteConnectedDomain as deleteConnectedDomain, index_d$5_getConnectedDomain as getConnectedDomain, index_d$5_listConnectedDomains as listConnectedDomains };
|
|
483
420
|
}
|
|
484
421
|
|
|
485
422
|
/**
|
|
@@ -20,7 +20,7 @@ interface ConnectedDomain$1 {
|
|
|
20
20
|
*/
|
|
21
21
|
connectionType?: ConnectionType$1;
|
|
22
22
|
/**
|
|
23
|
-
* Information about the site to which the domain is assigned
|
|
23
|
+
* Information about the site to which the domain is assigned, and whether
|
|
24
24
|
* it's the primary domain or a redirect.
|
|
25
25
|
*/
|
|
26
26
|
siteInfo?: SiteInfo$3;
|
|
@@ -56,20 +56,20 @@ declare enum ConnectionType$1 {
|
|
|
56
56
|
}
|
|
57
57
|
interface SiteInfo$3 extends SiteInfoAssignmentInfoOneOf$3 {
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Redirect information, relevant when `assignmentType` = `REDIRECT`.
|
|
60
60
|
* @readonly
|
|
61
61
|
*/
|
|
62
62
|
redirectInfo?: RedirectAssignmentInfo$3;
|
|
63
63
|
/**
|
|
64
|
-
* ID of the site the domain is assigned
|
|
64
|
+
* ID of the site to which the domain is assigned.
|
|
65
65
|
* @readonly
|
|
66
66
|
*/
|
|
67
67
|
id?: string | null;
|
|
68
68
|
/**
|
|
69
|
-
* The
|
|
70
|
-
* + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type
|
|
71
|
-
* + `"PRIMARY"`:
|
|
72
|
-
* + `"REDIRECT"`:
|
|
69
|
+
* The relationship assigned for this domain to the site:
|
|
70
|
+
* + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type.
|
|
71
|
+
* + `"PRIMARY"`: The singular primary domain for a site. When this type is assigned, this domain will lead directly to the site.
|
|
72
|
+
* + `"REDIRECT"`: A redirect domain for a site. Each site can have multiple redirect domains. When this type is assigned, this domain will redirect to the primary domain.
|
|
73
73
|
* Read more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).
|
|
74
74
|
*/
|
|
75
75
|
assignmentType?: AssignmentType$3;
|
|
@@ -77,7 +77,7 @@ interface SiteInfo$3 extends SiteInfoAssignmentInfoOneOf$3 {
|
|
|
77
77
|
/** @oneof */
|
|
78
78
|
interface SiteInfoAssignmentInfoOneOf$3 {
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Redirect information, relevant when `assignmentType` = `REDIRECT`.
|
|
81
81
|
* @readonly
|
|
82
82
|
*/
|
|
83
83
|
redirectInfo?: RedirectAssignmentInfo$3;
|
|
@@ -89,7 +89,7 @@ declare enum AssignmentType$3 {
|
|
|
89
89
|
}
|
|
90
90
|
interface RedirectAssignmentInfo$3 {
|
|
91
91
|
/**
|
|
92
|
-
* Primary domain
|
|
92
|
+
* Primary domain to which this domain will redirect.
|
|
93
93
|
* @readonly
|
|
94
94
|
*/
|
|
95
95
|
primaryDomain?: string;
|
|
@@ -235,7 +235,7 @@ interface ConnectedDomain {
|
|
|
235
235
|
*/
|
|
236
236
|
connectionType?: ConnectionType;
|
|
237
237
|
/**
|
|
238
|
-
* Information about the site to which the domain is assigned
|
|
238
|
+
* Information about the site to which the domain is assigned, and whether
|
|
239
239
|
* it's the primary domain or a redirect.
|
|
240
240
|
*/
|
|
241
241
|
siteInfo?: SiteInfo$2;
|
|
@@ -271,20 +271,20 @@ declare enum ConnectionType {
|
|
|
271
271
|
}
|
|
272
272
|
interface SiteInfo$2 extends SiteInfoAssignmentInfoOneOf$2 {
|
|
273
273
|
/**
|
|
274
|
-
*
|
|
274
|
+
* Redirect information, relevant when `assignmentType` = `REDIRECT`.
|
|
275
275
|
* @readonly
|
|
276
276
|
*/
|
|
277
277
|
redirectInfo?: RedirectAssignmentInfo$2;
|
|
278
278
|
/**
|
|
279
|
-
* ID of the site the domain is assigned
|
|
279
|
+
* ID of the site to which the domain is assigned.
|
|
280
280
|
* @readonly
|
|
281
281
|
*/
|
|
282
282
|
_id?: string | null;
|
|
283
283
|
/**
|
|
284
|
-
* The
|
|
285
|
-
* + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type
|
|
286
|
-
* + `"PRIMARY"`:
|
|
287
|
-
* + `"REDIRECT"`:
|
|
284
|
+
* The relationship assigned for this domain to the site:
|
|
285
|
+
* + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type.
|
|
286
|
+
* + `"PRIMARY"`: The singular primary domain for a site. When this type is assigned, this domain will lead directly to the site.
|
|
287
|
+
* + `"REDIRECT"`: A redirect domain for a site. Each site can have multiple redirect domains. When this type is assigned, this domain will redirect to the primary domain.
|
|
288
288
|
* Read more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).
|
|
289
289
|
*/
|
|
290
290
|
assignmentType?: AssignmentType$2;
|
|
@@ -292,7 +292,7 @@ interface SiteInfo$2 extends SiteInfoAssignmentInfoOneOf$2 {
|
|
|
292
292
|
/** @oneof */
|
|
293
293
|
interface SiteInfoAssignmentInfoOneOf$2 {
|
|
294
294
|
/**
|
|
295
|
-
*
|
|
295
|
+
* Redirect information, relevant when `assignmentType` = `REDIRECT`.
|
|
296
296
|
* @readonly
|
|
297
297
|
*/
|
|
298
298
|
redirectInfo?: RedirectAssignmentInfo$2;
|
|
@@ -304,7 +304,7 @@ declare enum AssignmentType$2 {
|
|
|
304
304
|
}
|
|
305
305
|
interface RedirectAssignmentInfo$2 {
|
|
306
306
|
/**
|
|
307
|
-
* Primary domain
|
|
307
|
+
* Primary domain to which this domain will redirect.
|
|
308
308
|
* @readonly
|
|
309
309
|
*/
|
|
310
310
|
primaryDomain?: string;
|