@wix/auto_sdk_loyalty_earning-rules 1.0.9 → 1.0.11
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/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.d.ts +1 -1
- package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.d.ts +3 -3
- package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js.map +1 -1
- package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.d.ts +49 -27
- package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js.map +1 -1
- package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.d.ts +59 -45
- package/build/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js.map +1 -1
- package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.d.ts +1 -1
- package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.d.ts +3 -3
- package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js.map +1 -1
- package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.d.ts +49 -27
- package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js.map +1 -1
- package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.d.ts +59 -45
- package/build/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js.map +1 -1
- package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.d.ts +1 -1
- package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.d.ts +3 -3
- package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js.map +1 -1
- package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.d.ts +49 -27
- package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js.map +1 -1
- package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.d.ts +59 -45
- package/build/internal/cjs/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js.map +1 -1
- package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.context.d.ts +1 -1
- package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.d.ts +3 -3
- package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.public.js.map +1 -1
- package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.d.ts +49 -27
- package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.types.js.map +1 -1
- package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.d.ts +59 -45
- package/build/internal/es/src/loyalty-v1-loyalty-earning-rule-earning-rules.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -25,4 +25,4 @@ export declare const onLoyaltyEarningRuleDeleted: ReturnType<typeof createEventM
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const onLoyaltyEarningRuleUpdated: ReturnType<typeof createEventModule<typeof publicOnLoyaltyEarningRuleUpdated>>;
|
|
27
27
|
export { Status, LoyaltyEarningRuleTypeTagType, Type, State, SiteCreatedContext, Namespace, DeleteStatus, WebhookIdentityType, } from './loyalty-v1-loyalty-earning-rule-earning-rules.universal.js';
|
|
28
|
-
export { LoyaltyEarningRule, LoyaltyEarningRuleTypeOneOf, FixedAmount, FixedAmountConfig, ConversionRate, ConversionRateConfig, Metadata, LoyaltyEarningRuleTypeTag, CacheInvalidated, EarningRuleDisabled, CreateLoyaltyEarningRuleRequest, CreateLoyaltyEarningRuleResponse, BulkCreateLoyaltyEarningRulesRequest, BulkCreateLoyaltyEarningRulesResponse, BulkLoyaltyEarningRuleResult, ItemMetadata, ApplicationError, BulkActionMetadata, CreateCustomLoyaltyEarningRuleRequest, CustomLoyaltyEarningRule, CustomLoyaltyEarningRuleTypeOneOf, CreateCustomLoyaltyEarningRuleResponse, GetLoyaltyEarningRuleRequest, GetLoyaltyEarningRuleResponse, UpdateLoyaltyEarningRuleRequest, UpdateLoyaltyEarningRuleResponse, DeleteLoyaltyEarningRuleRequest, DeleteLoyaltyEarningRuleResponse, DeleteAutomationEarningRuleRequest, DeleteAutomationEarningRuleResponse, ListEarningRulesRequest, ListEarningRulesResponse, ListEarningRulesInTierRequest, CursorPaging, ListEarningRulesInTierResponse, PagingMetadataV2, Cursors, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, InvalidateEarningRuleCacheRequest, InvalidateEarningRuleCacheResponse, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Asset, SiteCreated, SiteTransferred, SiteDeleted, DeleteContext, SiteUndeleted, SitePublished, SiteUnpublished, SiteMarkedAsTemplate, SiteMarkedAsWixSite, ServiceProvisioned, ServiceRemoved, SiteRenamed, SiteHardDeleted, NamespaceChanged, StudioAssigned, StudioUnassigned, SiteUrlChanged, SitePurgedExternally, OdeditorAssigned, OdeditorUnassigned, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, LoyaltyEarningRuleCreatedEnvelope, LoyaltyEarningRuleDeletedEnvelope, LoyaltyEarningRuleUpdatedEnvelope, CreateCustomLoyaltyEarningRuleOptions, UpdateLoyaltyEarningRule, DeleteLoyaltyEarningRuleOptions, ListEarningRulesOptions, } from './loyalty-v1-loyalty-earning-rule-earning-rules.universal.js';
|
|
28
|
+
export { LoyaltyEarningRule, LoyaltyEarningRuleTypeOneOf, FixedAmount, FixedAmountConfig, ConversionRate, ConversionRateConfig, Metadata, LoyaltyEarningRuleTypeTag, CacheInvalidated, EarningRuleDisabled, CreateLoyaltyEarningRuleRequest, CreateLoyaltyEarningRuleResponse, BulkCreateLoyaltyEarningRulesRequest, BulkCreateLoyaltyEarningRulesResponse, BulkLoyaltyEarningRuleResult, ItemMetadata, ApplicationError, BulkActionMetadata, CreateCustomLoyaltyEarningRuleRequest, CustomLoyaltyEarningRule, CustomLoyaltyEarningRuleTypeOneOf, CreateCustomLoyaltyEarningRuleResponse, GetLoyaltyEarningRuleRequest, GetLoyaltyEarningRuleResponse, UpdateLoyaltyEarningRuleRequest, UpdateLoyaltyEarningRuleResponse, DeleteLoyaltyEarningRuleRequest, DeleteLoyaltyEarningRuleResponse, DeleteAutomationEarningRuleRequest, DeleteAutomationEarningRuleResponse, ListEarningRulesRequest, ListEarningRulesResponse, ListEarningRulesInTierRequest, CursorPaging, ListEarningRulesInTierResponse, PagingMetadataV2, Cursors, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, InvalidateEarningRuleCacheRequest, InvalidateEarningRuleCacheResponse, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Asset, SiteCreated, SiteTransferred, SiteDeleted, DeleteContext, SiteUndeleted, SitePublished, SiteUnpublished, SiteMarkedAsTemplate, SiteMarkedAsWixSite, ServiceProvisioned, ServiceRemoved, SiteRenamed, SiteHardDeleted, NamespaceChanged, StudioAssigned, StudioUnassigned, SiteUrlChanged, SitePurgedExternally, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, LoyaltyEarningRuleCreatedEnvelope, LoyaltyEarningRuleDeletedEnvelope, LoyaltyEarningRuleUpdatedEnvelope, CreateCustomLoyaltyEarningRuleOptions, UpdateLoyaltyEarningRule, DeleteLoyaltyEarningRuleOptions, ListEarningRulesOptions, } from './loyalty-v1-loyalty-earning-rule-earning-rules.universal.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { BulkCreateLoyaltyEarningRulesResponse, CreateCustomLoyaltyEarningRuleOptions, CreateCustomLoyaltyEarningRuleResponse, DeleteLoyaltyEarningRuleOptions, ListEarningRulesOptions, ListEarningRulesResponse, LoyaltyEarningRule, LoyaltyEarningRuleCreatedEnvelope, LoyaltyEarningRuleDeletedEnvelope, LoyaltyEarningRuleUpdatedEnvelope,
|
|
2
|
+
import { BulkCreateLoyaltyEarningRulesResponse, CreateCustomLoyaltyEarningRuleOptions, CreateCustomLoyaltyEarningRuleResponse, DeleteLoyaltyEarningRuleOptions, ListEarningRulesOptions, ListEarningRulesResponse, LoyaltyEarningRule, LoyaltyEarningRuleCreatedEnvelope, LoyaltyEarningRuleDeletedEnvelope, LoyaltyEarningRuleUpdatedEnvelope, TypeWithLiterals, UpdateLoyaltyEarningRule, UpdateLoyaltyEarningRuleResponse } from './loyalty-v1-loyalty-earning-rule-earning-rules.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -34,7 +34,7 @@ interface CreateCustomLoyaltyEarningRuleSignature {
|
|
|
34
34
|
* To learn more about the automated rules, read the introduction.
|
|
35
35
|
* @param - Type of the custom earning rule.
|
|
36
36
|
*/
|
|
37
|
-
(type:
|
|
37
|
+
(type: TypeWithLiterals, options?: CreateCustomLoyaltyEarningRuleOptions | undefined): Promise<CreateCustomLoyaltyEarningRuleResponse>;
|
|
38
38
|
}
|
|
39
39
|
export declare function getLoyaltyEarningRule(httpClient: HttpClient): GetLoyaltyEarningRuleSignature;
|
|
40
40
|
interface GetLoyaltyEarningRuleSignature {
|
|
@@ -90,4 +90,4 @@ interface ListEarningRulesSignature {
|
|
|
90
90
|
export declare const onLoyaltyEarningRuleCreated: EventDefinition<LoyaltyEarningRuleCreatedEnvelope, "wix.loyalty.v1.loyalty_earning_rule_created">;
|
|
91
91
|
export declare const onLoyaltyEarningRuleDeleted: EventDefinition<LoyaltyEarningRuleDeletedEnvelope, "wix.loyalty.v1.loyalty_earning_rule_deleted">;
|
|
92
92
|
export declare const onLoyaltyEarningRuleUpdated: EventDefinition<LoyaltyEarningRuleUpdatedEnvelope, "wix.loyalty.v1.loyalty_earning_rule_updated">;
|
|
93
|
-
export { ActionEvent, ApplicationError, Asset, BaseEventMetadata, BulkActionMetadata, BulkCreateLoyaltyEarningRulesRequest, BulkCreateLoyaltyEarningRulesResponse, BulkLoyaltyEarningRuleResult, CacheInvalidated, ConversionRate, ConversionRateConfig, CreateCustomLoyaltyEarningRuleOptions, CreateCustomLoyaltyEarningRuleRequest, CreateCustomLoyaltyEarningRuleResponse, CreateLoyaltyEarningRuleRequest, CreateLoyaltyEarningRuleResponse, CursorPaging, Cursors, CustomLoyaltyEarningRule, CustomLoyaltyEarningRuleTypeOneOf, DeleteAutomationEarningRuleRequest, DeleteAutomationEarningRuleResponse, DeleteContext, DeleteLoyaltyEarningRuleOptions, DeleteLoyaltyEarningRuleRequest, DeleteLoyaltyEarningRuleResponse, DeleteStatus, DomainEvent, DomainEventBodyOneOf, EarningRuleDisabled, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FixedAmount, FixedAmountConfig, GetLoyaltyEarningRuleRequest, GetLoyaltyEarningRuleResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateEarningRuleCacheRequest, InvalidateEarningRuleCacheResponse, ItemMetadata, ListEarningRulesInTierRequest, ListEarningRulesInTierResponse, ListEarningRulesOptions, ListEarningRulesRequest, ListEarningRulesResponse, LoyaltyEarningRule, LoyaltyEarningRuleCreatedEnvelope, LoyaltyEarningRuleDeletedEnvelope, LoyaltyEarningRuleTypeOneOf, LoyaltyEarningRuleTypeTag, LoyaltyEarningRuleTypeTagType, LoyaltyEarningRuleUpdatedEnvelope, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Metadata, Namespace, NamespaceChanged, OdeditorAssigned, OdeditorUnassigned, PagingMetadataV2, RestoreInfo, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, State, Status, StudioAssigned, StudioUnassigned, Type, UpdateLoyaltyEarningRule, UpdateLoyaltyEarningRuleRequest, UpdateLoyaltyEarningRuleResponse, WebhookIdentityType, } from './loyalty-v1-loyalty-earning-rule-earning-rules.universal.js';
|
|
93
|
+
export { ActionEvent, ApplicationError, Asset, BaseEventMetadata, BulkActionMetadata, BulkCreateLoyaltyEarningRulesRequest, BulkCreateLoyaltyEarningRulesResponse, BulkLoyaltyEarningRuleResult, CacheInvalidated, ConversionRate, ConversionRateConfig, CreateCustomLoyaltyEarningRuleOptions, CreateCustomLoyaltyEarningRuleRequest, CreateCustomLoyaltyEarningRuleResponse, CreateLoyaltyEarningRuleRequest, CreateLoyaltyEarningRuleResponse, CursorPaging, Cursors, CustomLoyaltyEarningRule, CustomLoyaltyEarningRuleTypeOneOf, DeleteAutomationEarningRuleRequest, DeleteAutomationEarningRuleResponse, DeleteContext, DeleteLoyaltyEarningRuleOptions, DeleteLoyaltyEarningRuleRequest, DeleteLoyaltyEarningRuleResponse, DeleteStatus, DomainEvent, DomainEventBodyOneOf, EarningRuleDisabled, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FixedAmount, FixedAmountConfig, GetLoyaltyEarningRuleRequest, GetLoyaltyEarningRuleResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateEarningRuleCacheRequest, InvalidateEarningRuleCacheResponse, ItemMetadata, ListEarningRulesInTierRequest, ListEarningRulesInTierResponse, ListEarningRulesOptions, ListEarningRulesRequest, ListEarningRulesResponse, LoyaltyEarningRule, LoyaltyEarningRuleCreatedEnvelope, LoyaltyEarningRuleDeletedEnvelope, LoyaltyEarningRuleTypeOneOf, LoyaltyEarningRuleTypeTag, LoyaltyEarningRuleTypeTagType, LoyaltyEarningRuleUpdatedEnvelope, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Metadata, Namespace, NamespaceChanged, OdeditorAssigned, OdeditorUnassigned, PagingMetadataV2, PicassoAssigned, PicassoUnassigned, RestoreInfo, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, State, Status, StudioAssigned, StudioUnassigned, Type, UpdateLoyaltyEarningRule, UpdateLoyaltyEarningRuleRequest, UpdateLoyaltyEarningRuleResponse, WebhookIdentityType, } from './loyalty-v1-loyalty-earning-rule-earning-rules.universal.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-v1-loyalty-earning-rule-earning-rules.public.js","sourceRoot":"","sources":["../../../src/loyalty-v1-loyalty-earning-rule-earning-rules.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA+E;AAC/E,6IAsBsE;AAEzD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE3D,SAAgB,wBAAwB,CACtC,UAAsB;IAEtB,OAAO,CACL,WAOC,EACD,EAAE,CACF,IAAA,qFAAiC,EAC/B,WAAW;IACX,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAlBD,4DAkBC;AAcD,SAAgB,6BAA6B,CAC3C,UAAsB;IAEtB,OAAO,CACL,YAOG,EACH,EAAE,CACF,IAAA,0FAAsC,EACpC,YAAY;IACZ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAlBD,sEAkBC;AAeD,SAAgB,8BAA8B,CAC5C,UAAsB;IAEtB,OAAO,
|
|
1
|
+
{"version":3,"file":"loyalty-v1-loyalty-earning-rule-earning-rules.public.js","sourceRoot":"","sources":["../../../src/loyalty-v1-loyalty-earning-rule-earning-rules.public.ts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C,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAqC,CAAC;AAEvC,2IA6FsE;AAlEpE,0JAAA,YAAY,OAAA;AA4BZ,2KAAA,6BAA6B,OAAA;AAM7B,uJAAA,SAAS,OAAA;AAWT,gKAAA,kBAAkB,OAAA;AAYlB,mJAAA,KAAK,OAAA;AACL,oJAAA,MAAM,OAAA;AAGN,kJAAA,IAAI,OAAA;AAIJ,iKAAA,mBAAmB,OAAA"}
|
|
@@ -37,7 +37,7 @@ export interface LoyaltyEarningRule extends LoyaltyEarningRuleTypeOneOf {
|
|
|
37
37
|
*/
|
|
38
38
|
title?: string;
|
|
39
39
|
/** Current status of the earning rule. */
|
|
40
|
-
status?:
|
|
40
|
+
status?: StatusWithLiterals;
|
|
41
41
|
/**
|
|
42
42
|
* Revision number, incremented by 1 each time the earning rule is updated.
|
|
43
43
|
* Pass the latest revision when updating to prevent conflicting changes.
|
|
@@ -141,13 +141,15 @@ export declare enum Status {
|
|
|
141
141
|
/** Earning rule is paused and can't assign points. */
|
|
142
142
|
PAUSED = "PAUSED"
|
|
143
143
|
}
|
|
144
|
+
/** @enumType */
|
|
145
|
+
export type StatusWithLiterals = Status | 'UNKNOWN' | 'ACTIVE' | 'PAUSED';
|
|
144
146
|
export interface Metadata {
|
|
145
147
|
/** Whether the earning rule can be deleted. */
|
|
146
148
|
canBeDeleted?: boolean;
|
|
147
149
|
}
|
|
148
150
|
export interface LoyaltyEarningRuleTypeTag {
|
|
149
151
|
/** Type of custom earning rule. */
|
|
150
|
-
ruleType?:
|
|
152
|
+
ruleType?: LoyaltyEarningRuleTypeTagTypeWithLiterals;
|
|
151
153
|
}
|
|
152
154
|
export declare enum LoyaltyEarningRuleTypeTagType {
|
|
153
155
|
/** Type is unknown or not specified. */
|
|
@@ -155,6 +157,8 @@ export declare enum LoyaltyEarningRuleTypeTagType {
|
|
|
155
157
|
/** Earning rule for a customer's birthday. */
|
|
156
158
|
BIRTHDAY = "BIRTHDAY"
|
|
157
159
|
}
|
|
160
|
+
/** @enumType */
|
|
161
|
+
export type LoyaltyEarningRuleTypeTagTypeWithLiterals = LoyaltyEarningRuleTypeTagType | 'UNKNOWN_TYPE' | 'BIRTHDAY';
|
|
158
162
|
export interface CacheInvalidated {
|
|
159
163
|
}
|
|
160
164
|
export interface EarningRuleDisabled {
|
|
@@ -215,7 +219,7 @@ export interface BulkActionMetadata {
|
|
|
215
219
|
}
|
|
216
220
|
export interface CreateCustomLoyaltyEarningRuleRequest {
|
|
217
221
|
/** Type of the custom earning rule. */
|
|
218
|
-
type:
|
|
222
|
+
type: TypeWithLiterals;
|
|
219
223
|
/** Custom earning rule to create. */
|
|
220
224
|
earningRule?: CustomLoyaltyEarningRule;
|
|
221
225
|
}
|
|
@@ -227,6 +231,8 @@ export declare enum Type {
|
|
|
227
231
|
/** Earning rule for birthdays. */
|
|
228
232
|
BIRTHDAY = "BIRTHDAY"
|
|
229
233
|
}
|
|
234
|
+
/** @enumType */
|
|
235
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'SOCIAL_MEDIA' | 'BIRTHDAY';
|
|
230
236
|
/** Used in CreateCustomLoyaltyEarningRuleRequest */
|
|
231
237
|
export interface CustomLoyaltyEarningRule extends CustomLoyaltyEarningRuleTypeOneOf {
|
|
232
238
|
/** Fixed amount of points awarded for each qualifying activity. */
|
|
@@ -362,25 +368,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
362
368
|
updatedEvent?: EntityUpdatedEvent;
|
|
363
369
|
deletedEvent?: EntityDeletedEvent;
|
|
364
370
|
actionEvent?: ActionEvent;
|
|
365
|
-
/**
|
|
366
|
-
* Unique event ID.
|
|
367
|
-
* Allows clients to ignore duplicate webhooks.
|
|
368
|
-
*/
|
|
371
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
369
372
|
id?: string;
|
|
370
373
|
/**
|
|
371
|
-
*
|
|
372
|
-
*
|
|
374
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
375
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
373
376
|
*/
|
|
374
377
|
entityFqdn?: string;
|
|
375
378
|
/**
|
|
376
|
-
*
|
|
377
|
-
*
|
|
378
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
379
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
380
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
379
381
|
*/
|
|
380
382
|
slug?: string;
|
|
381
383
|
/** ID of the entity associated with the event. */
|
|
382
384
|
entityId?: string;
|
|
383
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
385
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
384
386
|
eventTime?: Date | null;
|
|
385
387
|
/**
|
|
386
388
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -390,12 +392,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
390
392
|
/** If present, indicates the action that triggered the event. */
|
|
391
393
|
originatedFrom?: string | null;
|
|
392
394
|
/**
|
|
393
|
-
* A sequence number
|
|
394
|
-
*
|
|
395
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
396
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
397
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
398
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
395
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
396
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
399
397
|
*/
|
|
400
398
|
entityEventSequence?: string | null;
|
|
401
399
|
}
|
|
@@ -423,7 +421,7 @@ export interface EntityUpdatedEvent {
|
|
|
423
421
|
currentEntityAsJson?: string;
|
|
424
422
|
}
|
|
425
423
|
export interface EntityDeletedEvent {
|
|
426
|
-
/** Entity that was deleted */
|
|
424
|
+
/** Entity that was deleted. */
|
|
427
425
|
deletedEntityAsJson?: string | null;
|
|
428
426
|
}
|
|
429
427
|
export interface ActionEvent {
|
|
@@ -480,6 +478,10 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
480
478
|
odeditorAssigned?: OdeditorAssigned;
|
|
481
479
|
/** Emitted when Odeditor is detached. */
|
|
482
480
|
odeditorUnassigned?: OdeditorUnassigned;
|
|
481
|
+
/** Emitted when Picasso is attached. */
|
|
482
|
+
picassoAssigned?: PicassoAssigned;
|
|
483
|
+
/** Emitted when Picasso is detached. */
|
|
484
|
+
picassoUnassigned?: PicassoUnassigned;
|
|
483
485
|
/**
|
|
484
486
|
* A meta site id.
|
|
485
487
|
* @format GUID
|
|
@@ -542,6 +544,10 @@ export interface MetaSiteSpecialEventPayloadOneOf {
|
|
|
542
544
|
odeditorAssigned?: OdeditorAssigned;
|
|
543
545
|
/** Emitted when Odeditor is detached. */
|
|
544
546
|
odeditorUnassigned?: OdeditorUnassigned;
|
|
547
|
+
/** Emitted when Picasso is attached. */
|
|
548
|
+
picassoAssigned?: PicassoAssigned;
|
|
549
|
+
/** Emitted when Picasso is detached. */
|
|
550
|
+
picassoUnassigned?: PicassoUnassigned;
|
|
545
551
|
}
|
|
546
552
|
export interface Asset {
|
|
547
553
|
/**
|
|
@@ -555,7 +561,7 @@ export interface Asset {
|
|
|
555
561
|
*/
|
|
556
562
|
instanceId?: string;
|
|
557
563
|
/** An application state. */
|
|
558
|
-
state?:
|
|
564
|
+
state?: StateWithLiterals;
|
|
559
565
|
}
|
|
560
566
|
export declare enum State {
|
|
561
567
|
UNKNOWN = "UNKNOWN",
|
|
@@ -564,6 +570,8 @@ export declare enum State {
|
|
|
564
570
|
PENDING = "PENDING",
|
|
565
571
|
DEMO = "DEMO"
|
|
566
572
|
}
|
|
573
|
+
/** @enumType */
|
|
574
|
+
export type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO';
|
|
567
575
|
export interface SiteCreated {
|
|
568
576
|
/**
|
|
569
577
|
* A template identifier (empty if not created from a template).
|
|
@@ -576,7 +584,7 @@ export interface SiteCreated {
|
|
|
576
584
|
*/
|
|
577
585
|
ownerId?: string;
|
|
578
586
|
/** A context in which meta site was created. */
|
|
579
|
-
context?:
|
|
587
|
+
context?: SiteCreatedContextWithLiterals;
|
|
580
588
|
/**
|
|
581
589
|
* A meta site id from which this site was created.
|
|
582
590
|
*
|
|
@@ -591,7 +599,7 @@ export interface SiteCreated {
|
|
|
591
599
|
*/
|
|
592
600
|
siteName?: string;
|
|
593
601
|
/** A namespace. */
|
|
594
|
-
namespace?:
|
|
602
|
+
namespace?: NamespaceWithLiterals;
|
|
595
603
|
}
|
|
596
604
|
export declare enum SiteCreatedContext {
|
|
597
605
|
/** A valid option, we don't expose all reasons why site might be created. */
|
|
@@ -607,6 +615,8 @@ export declare enum SiteCreatedContext {
|
|
|
607
615
|
/** deprecated A meta site was created for Flash editor. */
|
|
608
616
|
FLASH = "FLASH"
|
|
609
617
|
}
|
|
618
|
+
/** @enumType */
|
|
619
|
+
export type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH';
|
|
610
620
|
export declare enum Namespace {
|
|
611
621
|
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
612
622
|
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
@@ -689,6 +699,8 @@ export declare enum Namespace {
|
|
|
689
699
|
/** MIMIR - Siteless account for MIMIR Ai Job runner. */
|
|
690
700
|
MIMIR = "MIMIR"
|
|
691
701
|
}
|
|
702
|
+
/** @enumType */
|
|
703
|
+
export type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR';
|
|
692
704
|
/** Site transferred to another user. */
|
|
693
705
|
export interface SiteTransferred {
|
|
694
706
|
/**
|
|
@@ -711,7 +723,7 @@ export interface DeleteContext {
|
|
|
711
723
|
/** When the meta site was deleted. */
|
|
712
724
|
dateDeleted?: Date | null;
|
|
713
725
|
/** A status. */
|
|
714
|
-
deleteStatus?:
|
|
726
|
+
deleteStatus?: DeleteStatusWithLiterals;
|
|
715
727
|
/**
|
|
716
728
|
* A reason (flow).
|
|
717
729
|
* @maxLength 255
|
|
@@ -730,6 +742,8 @@ export declare enum DeleteStatus {
|
|
|
730
742
|
PENDING_PURGE = "PENDING_PURGE",
|
|
731
743
|
PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
|
|
732
744
|
}
|
|
745
|
+
/** @enumType */
|
|
746
|
+
export type DeleteStatusWithLiterals = DeleteStatus | 'UNKNOWN' | 'TRASH' | 'DELETED' | 'PENDING_PURGE' | 'PURGED_EXTERNALLY';
|
|
733
747
|
/** Restoration of the meta site. */
|
|
734
748
|
export interface SiteUndeleted {
|
|
735
749
|
}
|
|
@@ -831,9 +845,9 @@ export interface SiteHardDeleted {
|
|
|
831
845
|
}
|
|
832
846
|
export interface NamespaceChanged {
|
|
833
847
|
/** A previous namespace. */
|
|
834
|
-
oldNamespace?:
|
|
848
|
+
oldNamespace?: NamespaceWithLiterals;
|
|
835
849
|
/** A new namespace. */
|
|
836
|
-
newNamespace?:
|
|
850
|
+
newNamespace?: NamespaceWithLiterals;
|
|
837
851
|
}
|
|
838
852
|
/** Assigned Studio editor */
|
|
839
853
|
export interface StudioAssigned {
|
|
@@ -870,6 +884,12 @@ export interface OdeditorAssigned {
|
|
|
870
884
|
/** Unassigned Odeditor */
|
|
871
885
|
export interface OdeditorUnassigned {
|
|
872
886
|
}
|
|
887
|
+
/** Assigned Picasso editor */
|
|
888
|
+
export interface PicassoAssigned {
|
|
889
|
+
}
|
|
890
|
+
/** Unassigned Picasso */
|
|
891
|
+
export interface PicassoUnassigned {
|
|
892
|
+
}
|
|
873
893
|
export interface MessageEnvelope {
|
|
874
894
|
/**
|
|
875
895
|
* App instance ID.
|
|
@@ -908,7 +928,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
908
928
|
*/
|
|
909
929
|
appId?: string;
|
|
910
930
|
/** @readonly */
|
|
911
|
-
identityType?:
|
|
931
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
912
932
|
}
|
|
913
933
|
/** @oneof */
|
|
914
934
|
export interface IdentificationDataIdOneOf {
|
|
@@ -940,3 +960,5 @@ export declare enum WebhookIdentityType {
|
|
|
940
960
|
WIX_USER = "WIX_USER",
|
|
941
961
|
APP = "APP"
|
|
942
962
|
}
|
|
963
|
+
/** @enumType */
|
|
964
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-v1-loyalty-earning-rule-earning-rules.types.js","sourceRoot":"","sources":["../../../src/loyalty-v1-loyalty-earning-rule-earning-rules.types.ts"],"names":[],"mappings":";;;AA6IA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,0CAA0C;IAC1C,6BAAmB,CAAA;IACnB,oDAAoD;IACpD,2BAAiB,CAAA;IACjB,sDAAsD;IACtD,2BAAiB,CAAA;AACnB,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;
|
|
1
|
+
{"version":3,"file":"loyalty-v1-loyalty-earning-rule-earning-rules.types.js","sourceRoot":"","sources":["../../../src/loyalty-v1-loyalty-earning-rule-earning-rules.types.ts"],"names":[],"mappings":";;;AA6IA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,0CAA0C;IAC1C,6BAAmB,CAAA;IACnB,oDAAoD;IACpD,2BAAiB,CAAA;IACjB,sDAAsD;IACtD,2BAAiB,CAAA;AACnB,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AAeD,IAAY,6BAKX;AALD,WAAY,6BAA6B;IACvC,wCAAwC;IACxC,8DAA6B,CAAA;IAC7B,8CAA8C;IAC9C,sDAAqB,CAAA;AACvB,CAAC,EALW,6BAA6B,6CAA7B,6BAA6B,QAKxC;AAiFD,IAAY,IAOX;AAPD,WAAY,IAAI;IACd,4CAA4C;IAC5C,qCAA6B,CAAA;IAC7B,qCAAqC;IACrC,qCAA6B,CAAA;IAC7B,kCAAkC;IAClC,6BAAqB,CAAA;AACvB,CAAC,EAPW,IAAI,oBAAJ,IAAI,QAOf;AA8WD,IAAY,KAMX;AAND,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;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AiB,CAAA;IACjB;;;OAGG;IACH,0CAA6B,CAAA;IAC7B,2BAA2B;IAC3B,4BAAe,CAAA;IACf,gCAAgC;IAChC,0DAA6C,CAAA;IAC7C;;;OAGG;IACH,8DAAiD,CAAA;IACjD,uHAAuH;IACvH,kDAAqC,CAAA;IACrC,wHAAwH;IACxH,oDAAuC,CAAA;IACvC,wDAAwD;IACxD,4BAAe,CAAA;AACjB,CAAC,EAjFW,SAAS,yBAAT,SAAS,QAiFpB;AAyED,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,+CAA+B,CAAA;IAC/B,uDAAuC,CAAA;AACzC,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAsOD,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"}
|
|
@@ -38,7 +38,7 @@ export interface LoyaltyEarningRule extends LoyaltyEarningRuleTypeOneOf {
|
|
|
38
38
|
*/
|
|
39
39
|
title?: string;
|
|
40
40
|
/** Current status of the earning rule. */
|
|
41
|
-
status?:
|
|
41
|
+
status?: StatusWithLiterals;
|
|
42
42
|
/**
|
|
43
43
|
* Revision number, incremented by 1 each time the earning rule is updated.
|
|
44
44
|
* Pass the latest revision when updating to prevent conflicting changes.
|
|
@@ -142,13 +142,15 @@ export declare enum Status {
|
|
|
142
142
|
/** Earning rule is paused and can't assign points. */
|
|
143
143
|
PAUSED = "PAUSED"
|
|
144
144
|
}
|
|
145
|
+
/** @enumType */
|
|
146
|
+
export type StatusWithLiterals = Status | 'UNKNOWN' | 'ACTIVE' | 'PAUSED';
|
|
145
147
|
export interface Metadata {
|
|
146
148
|
/** Whether the earning rule can be deleted. */
|
|
147
149
|
canBeDeleted?: boolean;
|
|
148
150
|
}
|
|
149
151
|
export interface LoyaltyEarningRuleTypeTag {
|
|
150
152
|
/** Type of custom earning rule. */
|
|
151
|
-
ruleType?:
|
|
153
|
+
ruleType?: LoyaltyEarningRuleTypeTagTypeWithLiterals;
|
|
152
154
|
}
|
|
153
155
|
export declare enum LoyaltyEarningRuleTypeTagType {
|
|
154
156
|
/** Type is unknown or not specified. */
|
|
@@ -156,6 +158,8 @@ export declare enum LoyaltyEarningRuleTypeTagType {
|
|
|
156
158
|
/** Earning rule for a customer's birthday. */
|
|
157
159
|
BIRTHDAY = "BIRTHDAY"
|
|
158
160
|
}
|
|
161
|
+
/** @enumType */
|
|
162
|
+
export type LoyaltyEarningRuleTypeTagTypeWithLiterals = LoyaltyEarningRuleTypeTagType | 'UNKNOWN_TYPE' | 'BIRTHDAY';
|
|
159
163
|
export interface CacheInvalidated {
|
|
160
164
|
}
|
|
161
165
|
export interface EarningRuleDisabled {
|
|
@@ -216,7 +220,7 @@ export interface BulkActionMetadata {
|
|
|
216
220
|
}
|
|
217
221
|
export interface CreateCustomLoyaltyEarningRuleRequest {
|
|
218
222
|
/** Type of the custom earning rule. */
|
|
219
|
-
type:
|
|
223
|
+
type: TypeWithLiterals;
|
|
220
224
|
/** Custom earning rule to create. */
|
|
221
225
|
earningRule?: CustomLoyaltyEarningRule;
|
|
222
226
|
}
|
|
@@ -228,6 +232,8 @@ export declare enum Type {
|
|
|
228
232
|
/** Earning rule for birthdays. */
|
|
229
233
|
BIRTHDAY = "BIRTHDAY"
|
|
230
234
|
}
|
|
235
|
+
/** @enumType */
|
|
236
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'SOCIAL_MEDIA' | 'BIRTHDAY';
|
|
231
237
|
/** Used in CreateCustomLoyaltyEarningRuleRequest */
|
|
232
238
|
export interface CustomLoyaltyEarningRule extends CustomLoyaltyEarningRuleTypeOneOf {
|
|
233
239
|
/** Fixed amount of points awarded for each qualifying activity. */
|
|
@@ -363,25 +369,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
363
369
|
updatedEvent?: EntityUpdatedEvent;
|
|
364
370
|
deletedEvent?: EntityDeletedEvent;
|
|
365
371
|
actionEvent?: ActionEvent;
|
|
366
|
-
/**
|
|
367
|
-
* Unique event ID.
|
|
368
|
-
* Allows clients to ignore duplicate webhooks.
|
|
369
|
-
*/
|
|
372
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
370
373
|
_id?: string;
|
|
371
374
|
/**
|
|
372
|
-
*
|
|
373
|
-
*
|
|
375
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
376
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
374
377
|
*/
|
|
375
378
|
entityFqdn?: string;
|
|
376
379
|
/**
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
380
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
381
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
380
382
|
*/
|
|
381
383
|
slug?: string;
|
|
382
384
|
/** ID of the entity associated with the event. */
|
|
383
385
|
entityId?: string;
|
|
384
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
386
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
385
387
|
eventTime?: Date | null;
|
|
386
388
|
/**
|
|
387
389
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -391,12 +393,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
391
393
|
/** If present, indicates the action that triggered the event. */
|
|
392
394
|
originatedFrom?: string | null;
|
|
393
395
|
/**
|
|
394
|
-
* A sequence number
|
|
395
|
-
*
|
|
396
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
397
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
398
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
399
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
396
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
397
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
400
398
|
*/
|
|
401
399
|
entityEventSequence?: string | null;
|
|
402
400
|
}
|
|
@@ -422,7 +420,7 @@ export interface EntityUpdatedEvent {
|
|
|
422
420
|
currentEntity?: string;
|
|
423
421
|
}
|
|
424
422
|
export interface EntityDeletedEvent {
|
|
425
|
-
/** Entity that was deleted */
|
|
423
|
+
/** Entity that was deleted. */
|
|
426
424
|
deletedEntity?: string | null;
|
|
427
425
|
}
|
|
428
426
|
export interface ActionEvent {
|
|
@@ -479,6 +477,10 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
479
477
|
odeditorAssigned?: OdeditorAssigned;
|
|
480
478
|
/** Emitted when Odeditor is detached. */
|
|
481
479
|
odeditorUnassigned?: OdeditorUnassigned;
|
|
480
|
+
/** Emitted when Picasso is attached. */
|
|
481
|
+
picassoAssigned?: PicassoAssigned;
|
|
482
|
+
/** Emitted when Picasso is detached. */
|
|
483
|
+
picassoUnassigned?: PicassoUnassigned;
|
|
482
484
|
/**
|
|
483
485
|
* A meta site id.
|
|
484
486
|
* @format GUID
|
|
@@ -541,6 +543,10 @@ export interface MetaSiteSpecialEventPayloadOneOf {
|
|
|
541
543
|
odeditorAssigned?: OdeditorAssigned;
|
|
542
544
|
/** Emitted when Odeditor is detached. */
|
|
543
545
|
odeditorUnassigned?: OdeditorUnassigned;
|
|
546
|
+
/** Emitted when Picasso is attached. */
|
|
547
|
+
picassoAssigned?: PicassoAssigned;
|
|
548
|
+
/** Emitted when Picasso is detached. */
|
|
549
|
+
picassoUnassigned?: PicassoUnassigned;
|
|
544
550
|
}
|
|
545
551
|
export interface Asset {
|
|
546
552
|
/**
|
|
@@ -554,7 +560,7 @@ export interface Asset {
|
|
|
554
560
|
*/
|
|
555
561
|
instanceId?: string;
|
|
556
562
|
/** An application state. */
|
|
557
|
-
state?:
|
|
563
|
+
state?: StateWithLiterals;
|
|
558
564
|
}
|
|
559
565
|
export declare enum State {
|
|
560
566
|
UNKNOWN = "UNKNOWN",
|
|
@@ -563,6 +569,8 @@ export declare enum State {
|
|
|
563
569
|
PENDING = "PENDING",
|
|
564
570
|
DEMO = "DEMO"
|
|
565
571
|
}
|
|
572
|
+
/** @enumType */
|
|
573
|
+
export type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO';
|
|
566
574
|
export interface SiteCreated {
|
|
567
575
|
/**
|
|
568
576
|
* A template identifier (empty if not created from a template).
|
|
@@ -575,7 +583,7 @@ export interface SiteCreated {
|
|
|
575
583
|
*/
|
|
576
584
|
ownerId?: string;
|
|
577
585
|
/** A context in which meta site was created. */
|
|
578
|
-
context?:
|
|
586
|
+
context?: SiteCreatedContextWithLiterals;
|
|
579
587
|
/**
|
|
580
588
|
* A meta site id from which this site was created.
|
|
581
589
|
*
|
|
@@ -590,7 +598,7 @@ export interface SiteCreated {
|
|
|
590
598
|
*/
|
|
591
599
|
siteName?: string;
|
|
592
600
|
/** A namespace. */
|
|
593
|
-
namespace?:
|
|
601
|
+
namespace?: NamespaceWithLiterals;
|
|
594
602
|
}
|
|
595
603
|
export declare enum SiteCreatedContext {
|
|
596
604
|
/** A valid option, we don't expose all reasons why site might be created. */
|
|
@@ -606,6 +614,8 @@ export declare enum SiteCreatedContext {
|
|
|
606
614
|
/** deprecated A meta site was created for Flash editor. */
|
|
607
615
|
FLASH = "FLASH"
|
|
608
616
|
}
|
|
617
|
+
/** @enumType */
|
|
618
|
+
export type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH';
|
|
609
619
|
export declare enum Namespace {
|
|
610
620
|
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
611
621
|
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
@@ -688,6 +698,8 @@ export declare enum Namespace {
|
|
|
688
698
|
/** MIMIR - Siteless account for MIMIR Ai Job runner. */
|
|
689
699
|
MIMIR = "MIMIR"
|
|
690
700
|
}
|
|
701
|
+
/** @enumType */
|
|
702
|
+
export type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR';
|
|
691
703
|
/** Site transferred to another user. */
|
|
692
704
|
export interface SiteTransferred {
|
|
693
705
|
/**
|
|
@@ -710,7 +722,7 @@ export interface DeleteContext {
|
|
|
710
722
|
/** When the meta site was deleted. */
|
|
711
723
|
dateDeleted?: Date | null;
|
|
712
724
|
/** A status. */
|
|
713
|
-
deleteStatus?:
|
|
725
|
+
deleteStatus?: DeleteStatusWithLiterals;
|
|
714
726
|
/**
|
|
715
727
|
* A reason (flow).
|
|
716
728
|
* @maxLength 255
|
|
@@ -729,6 +741,8 @@ export declare enum DeleteStatus {
|
|
|
729
741
|
PENDING_PURGE = "PENDING_PURGE",
|
|
730
742
|
PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
|
|
731
743
|
}
|
|
744
|
+
/** @enumType */
|
|
745
|
+
export type DeleteStatusWithLiterals = DeleteStatus | 'UNKNOWN' | 'TRASH' | 'DELETED' | 'PENDING_PURGE' | 'PURGED_EXTERNALLY';
|
|
732
746
|
/** Restoration of the meta site. */
|
|
733
747
|
export interface SiteUndeleted {
|
|
734
748
|
}
|
|
@@ -830,9 +844,9 @@ export interface SiteHardDeleted {
|
|
|
830
844
|
}
|
|
831
845
|
export interface NamespaceChanged {
|
|
832
846
|
/** A previous namespace. */
|
|
833
|
-
oldNamespace?:
|
|
847
|
+
oldNamespace?: NamespaceWithLiterals;
|
|
834
848
|
/** A new namespace. */
|
|
835
|
-
newNamespace?:
|
|
849
|
+
newNamespace?: NamespaceWithLiterals;
|
|
836
850
|
}
|
|
837
851
|
/** Assigned Studio editor */
|
|
838
852
|
export interface StudioAssigned {
|
|
@@ -869,6 +883,12 @@ export interface OdeditorAssigned {
|
|
|
869
883
|
/** Unassigned Odeditor */
|
|
870
884
|
export interface OdeditorUnassigned {
|
|
871
885
|
}
|
|
886
|
+
/** Assigned Picasso editor */
|
|
887
|
+
export interface PicassoAssigned {
|
|
888
|
+
}
|
|
889
|
+
/** Unassigned Picasso */
|
|
890
|
+
export interface PicassoUnassigned {
|
|
891
|
+
}
|
|
872
892
|
export interface MessageEnvelope {
|
|
873
893
|
/**
|
|
874
894
|
* App instance ID.
|
|
@@ -907,7 +927,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
907
927
|
*/
|
|
908
928
|
appId?: string;
|
|
909
929
|
/** @readonly */
|
|
910
|
-
identityType?:
|
|
930
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
911
931
|
}
|
|
912
932
|
/** @oneof */
|
|
913
933
|
export interface IdentificationDataIdOneOf {
|
|
@@ -939,6 +959,8 @@ export declare enum WebhookIdentityType {
|
|
|
939
959
|
WIX_USER = "WIX_USER",
|
|
940
960
|
APP = "APP"
|
|
941
961
|
}
|
|
962
|
+
/** @enumType */
|
|
963
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
942
964
|
export interface BaseEventMetadata {
|
|
943
965
|
/**
|
|
944
966
|
* App instance ID.
|
|
@@ -954,25 +976,21 @@ export interface BaseEventMetadata {
|
|
|
954
976
|
identity?: IdentificationData;
|
|
955
977
|
}
|
|
956
978
|
export interface EventMetadata extends BaseEventMetadata {
|
|
957
|
-
/**
|
|
958
|
-
* Unique event ID.
|
|
959
|
-
* Allows clients to ignore duplicate webhooks.
|
|
960
|
-
*/
|
|
979
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
961
980
|
_id?: string;
|
|
962
981
|
/**
|
|
963
|
-
*
|
|
964
|
-
*
|
|
982
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
983
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
965
984
|
*/
|
|
966
985
|
entityFqdn?: string;
|
|
967
986
|
/**
|
|
968
|
-
*
|
|
969
|
-
*
|
|
970
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
987
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
988
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
971
989
|
*/
|
|
972
990
|
slug?: string;
|
|
973
991
|
/** ID of the entity associated with the event. */
|
|
974
992
|
entityId?: string;
|
|
975
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
993
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
976
994
|
eventTime?: Date | null;
|
|
977
995
|
/**
|
|
978
996
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -982,12 +1000,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
982
1000
|
/** If present, indicates the action that triggered the event. */
|
|
983
1001
|
originatedFrom?: string | null;
|
|
984
1002
|
/**
|
|
985
|
-
* A sequence number
|
|
986
|
-
*
|
|
987
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
988
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
989
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
990
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1003
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1004
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
991
1005
|
*/
|
|
992
1006
|
entityEventSequence?: string | null;
|
|
993
1007
|
}
|
|
@@ -1109,7 +1123,7 @@ export declare function bulkCreateLoyaltyEarningRules(earningRules: NonNullableP
|
|
|
1109
1123
|
* @applicableIdentity APP
|
|
1110
1124
|
* @fqn com.wixpress.loyalty.earningrule.LoyaltyEarningRules.CreateCustomLoyaltyEarningRule
|
|
1111
1125
|
*/
|
|
1112
|
-
export declare function createCustomLoyaltyEarningRule(type:
|
|
1126
|
+
export declare function createCustomLoyaltyEarningRule(type: TypeWithLiterals, options?: CreateCustomLoyaltyEarningRuleOptions): Promise<NonNullablePaths<CreateCustomLoyaltyEarningRuleResponse, {
|
|
1113
1127
|
[P in LoyaltyEarningRuleNonNullablePaths]: `earningRule.${P}`;
|
|
1114
1128
|
}[LoyaltyEarningRuleNonNullablePaths]>>;
|
|
1115
1129
|
export interface CreateCustomLoyaltyEarningRuleOptions {
|
|
@@ -1191,7 +1205,7 @@ export interface UpdateLoyaltyEarningRule {
|
|
|
1191
1205
|
*/
|
|
1192
1206
|
title?: string;
|
|
1193
1207
|
/** Current status of the earning rule. */
|
|
1194
|
-
status?:
|
|
1208
|
+
status?: StatusWithLiterals;
|
|
1195
1209
|
/**
|
|
1196
1210
|
* Revision number, incremented by 1 each time the earning rule is updated.
|
|
1197
1211
|
* Pass the latest revision when updating to prevent conflicting changes.
|