@wix/auto_sdk_ecom_checkout-settings 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +18 -20
  2. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +1 -1
  3. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts +26 -36
  4. package/build/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.js.map +1 -1
  5. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +18 -20
  6. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +1 -1
  7. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts +26 -36
  8. package/build/es/src/ecom-v1-checkout-settings-checkout-settings.universal.js.map +1 -1
  9. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +18 -20
  10. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +1 -1
  11. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts +26 -36
  12. package/build/internal/cjs/src/ecom-v1-checkout-settings-checkout-settings.universal.js.map +1 -1
  13. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.types.d.ts +18 -20
  14. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.types.js.map +1 -1
  15. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.universal.d.ts +26 -36
  16. package/build/internal/es/src/ecom-v1-checkout-settings-checkout-settings.universal.js.map +1 -1
  17. package/package.json +2 -2
@@ -159,7 +159,7 @@ export interface CheckoutHeader {
159
159
  *
160
160
  * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.
161
161
  */
162
- alignment?: Alignment;
162
+ alignment?: AlignmentWithLiterals;
163
163
  /**
164
164
  * Whether to display the 'Checkout' label within the header.
165
165
  * Depending on the locale, the label may be translated.
@@ -168,7 +168,7 @@ export interface CheckoutHeader {
168
168
  }
169
169
  export interface Logo {
170
170
  /** Size of the logo. */
171
- size?: LogoSize;
171
+ size?: LogoSizeWithLiterals;
172
172
  }
173
173
  export interface Image {
174
174
  /** WixMedia image ID. */
@@ -209,11 +209,15 @@ export declare enum LogoSize {
209
209
  MEDIUM = "MEDIUM",
210
210
  LARGE = "LARGE"
211
211
  }
212
+ /** @enumType */
213
+ export type LogoSizeWithLiterals = LogoSize | 'UNKNOWN_LOGO_SIZE' | 'SMALL' | 'MEDIUM' | 'LARGE';
212
214
  export declare enum Alignment {
213
215
  UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
214
216
  SIDE = "SIDE",
215
217
  CENTER = "CENTER"
216
218
  }
219
+ /** @enumType */
220
+ export type AlignmentWithLiterals = Alignment | 'UNKNOWN_ALIGNMENT' | 'SIDE' | 'CENTER';
217
221
  export interface GetCheckoutSettingsRequest {
218
222
  }
219
223
  export interface GetCheckoutSettingsResponse {
@@ -250,25 +254,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
250
254
  updatedEvent?: EntityUpdatedEvent;
251
255
  deletedEvent?: EntityDeletedEvent;
252
256
  actionEvent?: ActionEvent;
253
- /**
254
- * Unique event ID.
255
- * Allows clients to ignore duplicate webhooks.
256
- */
257
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
257
258
  id?: string;
258
259
  /**
259
- * Assumes actions are also always typed to an entity_type
260
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
260
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
261
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
261
262
  */
262
263
  entityFqdn?: string;
263
264
  /**
264
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
265
- * This is although the created/updated/deleted notion is duplication of the oneof types
266
- * Example: created/updated/deleted/started/completed/email_opened
265
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
266
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
267
267
  */
268
268
  slug?: string;
269
269
  /** ID of the entity associated with the event. */
270
270
  entityId?: string;
271
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
271
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
272
272
  eventTime?: Date | null;
273
273
  /**
274
274
  * Whether the event was triggered as a result of a privacy regulation application
@@ -278,12 +278,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
278
278
  /** If present, indicates the action that triggered the event. */
279
279
  originatedFrom?: string | null;
280
280
  /**
281
- * A sequence number defining the order of updates to the underlying entity.
282
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
283
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
284
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
285
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
286
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
281
+ * 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.
282
+ * 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.
287
283
  */
288
284
  entityEventSequence?: string | null;
289
285
  }
@@ -311,7 +307,7 @@ export interface EntityUpdatedEvent {
311
307
  currentEntityAsJson?: string;
312
308
  }
313
309
  export interface EntityDeletedEvent {
314
- /** Entity that was deleted */
310
+ /** Entity that was deleted. */
315
311
  deletedEntityAsJson?: string | null;
316
312
  }
317
313
  export interface ActionEvent {
@@ -355,7 +351,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
355
351
  */
356
352
  appId?: string;
357
353
  /** @readonly */
358
- identityType?: WebhookIdentityType;
354
+ identityType?: WebhookIdentityTypeWithLiterals;
359
355
  }
360
356
  /** @oneof */
361
357
  export interface IdentificationDataIdOneOf {
@@ -387,3 +383,5 @@ export declare enum WebhookIdentityType {
387
383
  WIX_USER = "WIX_USER",
388
384
  APP = "APP"
389
385
  }
386
+ /** @enumType */
387
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-checkout-settings-checkout-settings.types.ts"],"names":[],"mappings":";;;AA4NA,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAuLD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-checkout-settings-checkout-settings.types.ts"],"names":[],"mappings":";;;AA4NA,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAUD,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAsLD,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"}
@@ -160,7 +160,7 @@ export interface CheckoutHeader {
160
160
  *
161
161
  * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.
162
162
  */
163
- alignment?: Alignment;
163
+ alignment?: AlignmentWithLiterals;
164
164
  /**
165
165
  * Whether to display the 'Checkout' label within the header.
166
166
  * Depending on the locale, the label may be translated.
@@ -169,7 +169,7 @@ export interface CheckoutHeader {
169
169
  }
170
170
  export interface Logo {
171
171
  /** Size of the logo. */
172
- size?: LogoSize;
172
+ size?: LogoSizeWithLiterals;
173
173
  }
174
174
  export interface FocalPoint {
175
175
  /** X-coordinate of the focal point. */
@@ -187,11 +187,15 @@ export declare enum LogoSize {
187
187
  MEDIUM = "MEDIUM",
188
188
  LARGE = "LARGE"
189
189
  }
190
+ /** @enumType */
191
+ export type LogoSizeWithLiterals = LogoSize | 'UNKNOWN_LOGO_SIZE' | 'SMALL' | 'MEDIUM' | 'LARGE';
190
192
  export declare enum Alignment {
191
193
  UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
192
194
  SIDE = "SIDE",
193
195
  CENTER = "CENTER"
194
196
  }
197
+ /** @enumType */
198
+ export type AlignmentWithLiterals = Alignment | 'UNKNOWN_ALIGNMENT' | 'SIDE' | 'CENTER';
195
199
  export interface GetCheckoutSettingsRequest {
196
200
  }
197
201
  export interface GetCheckoutSettingsResponse {
@@ -228,25 +232,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
228
232
  updatedEvent?: EntityUpdatedEvent;
229
233
  deletedEvent?: EntityDeletedEvent;
230
234
  actionEvent?: ActionEvent;
231
- /**
232
- * Unique event ID.
233
- * Allows clients to ignore duplicate webhooks.
234
- */
235
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
235
236
  _id?: string;
236
237
  /**
237
- * Assumes actions are also always typed to an entity_type
238
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
238
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
239
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
239
240
  */
240
241
  entityFqdn?: string;
241
242
  /**
242
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
243
- * This is although the created/updated/deleted notion is duplication of the oneof types
244
- * Example: created/updated/deleted/started/completed/email_opened
243
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
244
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
245
245
  */
246
246
  slug?: string;
247
247
  /** ID of the entity associated with the event. */
248
248
  entityId?: string;
249
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
249
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
250
250
  eventTime?: Date | null;
251
251
  /**
252
252
  * Whether the event was triggered as a result of a privacy regulation application
@@ -256,12 +256,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
256
256
  /** If present, indicates the action that triggered the event. */
257
257
  originatedFrom?: string | null;
258
258
  /**
259
- * A sequence number defining the order of updates to the underlying entity.
260
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
261
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
262
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
263
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
264
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
259
+ * 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.
260
+ * 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.
265
261
  */
266
262
  entityEventSequence?: string | null;
267
263
  }
@@ -287,7 +283,7 @@ export interface EntityUpdatedEvent {
287
283
  currentEntity?: string;
288
284
  }
289
285
  export interface EntityDeletedEvent {
290
- /** Entity that was deleted */
286
+ /** Entity that was deleted. */
291
287
  deletedEntity?: string | null;
292
288
  }
293
289
  export interface ActionEvent {
@@ -331,7 +327,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
331
327
  */
332
328
  appId?: string;
333
329
  /** @readonly */
334
- identityType?: WebhookIdentityType;
330
+ identityType?: WebhookIdentityTypeWithLiterals;
335
331
  }
336
332
  /** @oneof */
337
333
  export interface IdentificationDataIdOneOf {
@@ -363,6 +359,8 @@ export declare enum WebhookIdentityType {
363
359
  WIX_USER = "WIX_USER",
364
360
  APP = "APP"
365
361
  }
362
+ /** @enumType */
363
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
366
364
  export interface BaseEventMetadata {
367
365
  /**
368
366
  * App instance ID.
@@ -378,25 +376,21 @@ export interface BaseEventMetadata {
378
376
  identity?: IdentificationData;
379
377
  }
380
378
  export interface EventMetadata extends BaseEventMetadata {
381
- /**
382
- * Unique event ID.
383
- * Allows clients to ignore duplicate webhooks.
384
- */
379
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
385
380
  _id?: string;
386
381
  /**
387
- * Assumes actions are also always typed to an entity_type
388
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
382
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
383
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
389
384
  */
390
385
  entityFqdn?: string;
391
386
  /**
392
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
393
- * This is although the created/updated/deleted notion is duplication of the oneof types
394
- * Example: created/updated/deleted/started/completed/email_opened
387
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
388
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
395
389
  */
396
390
  slug?: string;
397
391
  /** ID of the entity associated with the event. */
398
392
  entityId?: string;
399
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
393
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
400
394
  eventTime?: Date | null;
401
395
  /**
402
396
  * Whether the event was triggered as a result of a privacy regulation application
@@ -406,12 +400,8 @@ export interface EventMetadata extends BaseEventMetadata {
406
400
  /** If present, indicates the action that triggered the event. */
407
401
  originatedFrom?: string | null;
408
402
  /**
409
- * A sequence number defining the order of updates to the underlying entity.
410
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
411
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
412
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
413
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
414
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
403
+ * 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.
404
+ * 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.
415
405
  */
416
406
  entityEventSequence?: string | null;
417
407
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-checkout-settings-checkout-settings.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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AC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE;YACtD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,kBAAkB,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA1DD,wDA0DC"}
1
+ {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-checkout-settings-checkout-settings.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,2HAA6G;AAC7G,kEAAsF;AACtF,kEAAsF;AACtF,sFAAkF;AAsMlF,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAUD,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAoLD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AA6FD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACI,KAAK,UAAU,mBAAmB;IAQvC,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,C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SACtE;KACF,CACF,CAAC;IAEF,MAAM,OAAO,GACX,mCAAmC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAEtE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAC5C,IAAA,gCAAc,EAAC,MAAM,CAAC,IAAI,EAAE;YAC1B;gBACE,WAAW,EAAE,oCAA4B;gBACzC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC;aACtE;SACF,CAAC,CACF,CAAC;IACL,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE;YACtD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,kBAAkB,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA1DD,wDA0DC"}
@@ -159,7 +159,7 @@ export interface CheckoutHeader {
159
159
  *
160
160
  * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.
161
161
  */
162
- alignment?: Alignment;
162
+ alignment?: AlignmentWithLiterals;
163
163
  /**
164
164
  * Whether to display the 'Checkout' label within the header.
165
165
  * Depending on the locale, the label may be translated.
@@ -168,7 +168,7 @@ export interface CheckoutHeader {
168
168
  }
169
169
  export interface Logo {
170
170
  /** Size of the logo. */
171
- size?: LogoSize;
171
+ size?: LogoSizeWithLiterals;
172
172
  }
173
173
  export interface Image {
174
174
  /** WixMedia image ID. */
@@ -209,11 +209,15 @@ export declare enum LogoSize {
209
209
  MEDIUM = "MEDIUM",
210
210
  LARGE = "LARGE"
211
211
  }
212
+ /** @enumType */
213
+ export type LogoSizeWithLiterals = LogoSize | 'UNKNOWN_LOGO_SIZE' | 'SMALL' | 'MEDIUM' | 'LARGE';
212
214
  export declare enum Alignment {
213
215
  UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
214
216
  SIDE = "SIDE",
215
217
  CENTER = "CENTER"
216
218
  }
219
+ /** @enumType */
220
+ export type AlignmentWithLiterals = Alignment | 'UNKNOWN_ALIGNMENT' | 'SIDE' | 'CENTER';
217
221
  export interface GetCheckoutSettingsRequest {
218
222
  }
219
223
  export interface GetCheckoutSettingsResponse {
@@ -250,25 +254,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
250
254
  updatedEvent?: EntityUpdatedEvent;
251
255
  deletedEvent?: EntityDeletedEvent;
252
256
  actionEvent?: ActionEvent;
253
- /**
254
- * Unique event ID.
255
- * Allows clients to ignore duplicate webhooks.
256
- */
257
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
257
258
  id?: string;
258
259
  /**
259
- * Assumes actions are also always typed to an entity_type
260
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
260
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
261
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
261
262
  */
262
263
  entityFqdn?: string;
263
264
  /**
264
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
265
- * This is although the created/updated/deleted notion is duplication of the oneof types
266
- * Example: created/updated/deleted/started/completed/email_opened
265
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
266
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
267
267
  */
268
268
  slug?: string;
269
269
  /** ID of the entity associated with the event. */
270
270
  entityId?: string;
271
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
271
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
272
272
  eventTime?: Date | null;
273
273
  /**
274
274
  * Whether the event was triggered as a result of a privacy regulation application
@@ -278,12 +278,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
278
278
  /** If present, indicates the action that triggered the event. */
279
279
  originatedFrom?: string | null;
280
280
  /**
281
- * A sequence number defining the order of updates to the underlying entity.
282
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
283
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
284
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
285
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
286
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
281
+ * 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.
282
+ * 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.
287
283
  */
288
284
  entityEventSequence?: string | null;
289
285
  }
@@ -311,7 +307,7 @@ export interface EntityUpdatedEvent {
311
307
  currentEntityAsJson?: string;
312
308
  }
313
309
  export interface EntityDeletedEvent {
314
- /** Entity that was deleted */
310
+ /** Entity that was deleted. */
315
311
  deletedEntityAsJson?: string | null;
316
312
  }
317
313
  export interface ActionEvent {
@@ -355,7 +351,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
355
351
  */
356
352
  appId?: string;
357
353
  /** @readonly */
358
- identityType?: WebhookIdentityType;
354
+ identityType?: WebhookIdentityTypeWithLiterals;
359
355
  }
360
356
  /** @oneof */
361
357
  export interface IdentificationDataIdOneOf {
@@ -387,3 +383,5 @@ export declare enum WebhookIdentityType {
387
383
  WIX_USER = "WIX_USER",
388
384
  APP = "APP"
389
385
  }
386
+ /** @enumType */
387
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-checkout-settings-checkout-settings.types.ts"],"names":[],"mappings":"AA4NA,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAED,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAuLD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-checkout-settings-checkout-settings.types.ts"],"names":[],"mappings":"AA4NA,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAUD,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAsLD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
@@ -160,7 +160,7 @@ export interface CheckoutHeader {
160
160
  *
161
161
  * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.
162
162
  */
163
- alignment?: Alignment;
163
+ alignment?: AlignmentWithLiterals;
164
164
  /**
165
165
  * Whether to display the 'Checkout' label within the header.
166
166
  * Depending on the locale, the label may be translated.
@@ -169,7 +169,7 @@ export interface CheckoutHeader {
169
169
  }
170
170
  export interface Logo {
171
171
  /** Size of the logo. */
172
- size?: LogoSize;
172
+ size?: LogoSizeWithLiterals;
173
173
  }
174
174
  export interface FocalPoint {
175
175
  /** X-coordinate of the focal point. */
@@ -187,11 +187,15 @@ export declare enum LogoSize {
187
187
  MEDIUM = "MEDIUM",
188
188
  LARGE = "LARGE"
189
189
  }
190
+ /** @enumType */
191
+ export type LogoSizeWithLiterals = LogoSize | 'UNKNOWN_LOGO_SIZE' | 'SMALL' | 'MEDIUM' | 'LARGE';
190
192
  export declare enum Alignment {
191
193
  UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
192
194
  SIDE = "SIDE",
193
195
  CENTER = "CENTER"
194
196
  }
197
+ /** @enumType */
198
+ export type AlignmentWithLiterals = Alignment | 'UNKNOWN_ALIGNMENT' | 'SIDE' | 'CENTER';
195
199
  export interface GetCheckoutSettingsRequest {
196
200
  }
197
201
  export interface GetCheckoutSettingsResponse {
@@ -228,25 +232,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
228
232
  updatedEvent?: EntityUpdatedEvent;
229
233
  deletedEvent?: EntityDeletedEvent;
230
234
  actionEvent?: ActionEvent;
231
- /**
232
- * Unique event ID.
233
- * Allows clients to ignore duplicate webhooks.
234
- */
235
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
235
236
  _id?: string;
236
237
  /**
237
- * Assumes actions are also always typed to an entity_type
238
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
238
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
239
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
239
240
  */
240
241
  entityFqdn?: string;
241
242
  /**
242
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
243
- * This is although the created/updated/deleted notion is duplication of the oneof types
244
- * Example: created/updated/deleted/started/completed/email_opened
243
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
244
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
245
245
  */
246
246
  slug?: string;
247
247
  /** ID of the entity associated with the event. */
248
248
  entityId?: string;
249
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
249
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
250
250
  eventTime?: Date | null;
251
251
  /**
252
252
  * Whether the event was triggered as a result of a privacy regulation application
@@ -256,12 +256,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
256
256
  /** If present, indicates the action that triggered the event. */
257
257
  originatedFrom?: string | null;
258
258
  /**
259
- * A sequence number defining the order of updates to the underlying entity.
260
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
261
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
262
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
263
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
264
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
259
+ * 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.
260
+ * 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.
265
261
  */
266
262
  entityEventSequence?: string | null;
267
263
  }
@@ -287,7 +283,7 @@ export interface EntityUpdatedEvent {
287
283
  currentEntity?: string;
288
284
  }
289
285
  export interface EntityDeletedEvent {
290
- /** Entity that was deleted */
286
+ /** Entity that was deleted. */
291
287
  deletedEntity?: string | null;
292
288
  }
293
289
  export interface ActionEvent {
@@ -331,7 +327,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
331
327
  */
332
328
  appId?: string;
333
329
  /** @readonly */
334
- identityType?: WebhookIdentityType;
330
+ identityType?: WebhookIdentityTypeWithLiterals;
335
331
  }
336
332
  /** @oneof */
337
333
  export interface IdentificationDataIdOneOf {
@@ -363,6 +359,8 @@ export declare enum WebhookIdentityType {
363
359
  WIX_USER = "WIX_USER",
364
360
  APP = "APP"
365
361
  }
362
+ /** @enumType */
363
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
366
364
  export interface BaseEventMetadata {
367
365
  /**
368
366
  * App instance ID.
@@ -378,25 +376,21 @@ export interface BaseEventMetadata {
378
376
  identity?: IdentificationData;
379
377
  }
380
378
  export interface EventMetadata extends BaseEventMetadata {
381
- /**
382
- * Unique event ID.
383
- * Allows clients to ignore duplicate webhooks.
384
- */
379
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
385
380
  _id?: string;
386
381
  /**
387
- * Assumes actions are also always typed to an entity_type
388
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
382
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
383
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
389
384
  */
390
385
  entityFqdn?: string;
391
386
  /**
392
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
393
- * This is although the created/updated/deleted notion is duplication of the oneof types
394
- * Example: created/updated/deleted/started/completed/email_opened
387
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
388
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
395
389
  */
396
390
  slug?: string;
397
391
  /** ID of the entity associated with the event. */
398
392
  entityId?: string;
399
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
393
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
400
394
  eventTime?: Date | null;
401
395
  /**
402
396
  * Whether the event was triggered as a result of a privacy regulation application
@@ -406,12 +400,8 @@ export interface EventMetadata extends BaseEventMetadata {
406
400
  /** If present, indicates the action that triggered the event. */
407
401
  originatedFrom?: string | null;
408
402
  /**
409
- * A sequence number defining the order of updates to the underlying entity.
410
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
411
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
412
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
413
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
414
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
403
+ * 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.
404
+ * 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.
415
405
  */
416
406
  entityEventSequence?: string | null;
417
407
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-checkout-settings-checkout-settings.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,mCAAm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I,EAAE,kDAAkD,EAAE,CAAC;aACtE;SACF,CAAC,CACF,CAAC;IACL,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE;YACtD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,kBAAkB,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-checkout-settings-checkout-settings.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,mCAAmC,MAAM,uDAAuD,CAAC;AAC7G,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAsMlF,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAUD,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAoLD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAA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IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,cAAc,CAC5B,qCAAqC,CAAC;QACpC,gBAAgB,EAAE,gBAAgB;KACnC,CAAC,EACF;QACE;YACE,WAAW,EAAE,4BAA4B;YACzC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC;SACtE;KACF,CACF,CAAC;IAEF,MAAM,OAAO,GACX,mCAAmC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAEtE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAC5C,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE;YAC1B;gBACE,WAAW,EAAE,4BAA4B;gBACzC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC;aACtE;SACF,CAAC,CACF,CAAC;IACL,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE;YACtD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,kBAAkB,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
@@ -159,7 +159,7 @@ export interface CheckoutHeader {
159
159
  *
160
160
  * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.
161
161
  */
162
- alignment?: Alignment;
162
+ alignment?: AlignmentWithLiterals;
163
163
  /**
164
164
  * Whether to display the 'Checkout' label within the header.
165
165
  * Depending on the locale, the label may be translated.
@@ -168,7 +168,7 @@ export interface CheckoutHeader {
168
168
  }
169
169
  export interface Logo {
170
170
  /** Size of the logo. */
171
- size?: LogoSize;
171
+ size?: LogoSizeWithLiterals;
172
172
  }
173
173
  export interface Image {
174
174
  /** WixMedia image ID. */
@@ -209,11 +209,15 @@ export declare enum LogoSize {
209
209
  MEDIUM = "MEDIUM",
210
210
  LARGE = "LARGE"
211
211
  }
212
+ /** @enumType */
213
+ export type LogoSizeWithLiterals = LogoSize | 'UNKNOWN_LOGO_SIZE' | 'SMALL' | 'MEDIUM' | 'LARGE';
212
214
  export declare enum Alignment {
213
215
  UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
214
216
  SIDE = "SIDE",
215
217
  CENTER = "CENTER"
216
218
  }
219
+ /** @enumType */
220
+ export type AlignmentWithLiterals = Alignment | 'UNKNOWN_ALIGNMENT' | 'SIDE' | 'CENTER';
217
221
  export interface GetCheckoutSettingsRequest {
218
222
  }
219
223
  export interface GetCheckoutSettingsResponse {
@@ -250,25 +254,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
250
254
  updatedEvent?: EntityUpdatedEvent;
251
255
  deletedEvent?: EntityDeletedEvent;
252
256
  actionEvent?: ActionEvent;
253
- /**
254
- * Unique event ID.
255
- * Allows clients to ignore duplicate webhooks.
256
- */
257
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
257
258
  id?: string;
258
259
  /**
259
- * Assumes actions are also always typed to an entity_type
260
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
260
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
261
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
261
262
  */
262
263
  entityFqdn?: string;
263
264
  /**
264
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
265
- * This is although the created/updated/deleted notion is duplication of the oneof types
266
- * Example: created/updated/deleted/started/completed/email_opened
265
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
266
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
267
267
  */
268
268
  slug?: string;
269
269
  /** ID of the entity associated with the event. */
270
270
  entityId?: string;
271
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
271
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
272
272
  eventTime?: Date | null;
273
273
  /**
274
274
  * Whether the event was triggered as a result of a privacy regulation application
@@ -278,12 +278,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
278
278
  /** If present, indicates the action that triggered the event. */
279
279
  originatedFrom?: string | null;
280
280
  /**
281
- * A sequence number defining the order of updates to the underlying entity.
282
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
283
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
284
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
285
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
286
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
281
+ * 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.
282
+ * 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.
287
283
  */
288
284
  entityEventSequence?: string | null;
289
285
  }
@@ -311,7 +307,7 @@ export interface EntityUpdatedEvent {
311
307
  currentEntityAsJson?: string;
312
308
  }
313
309
  export interface EntityDeletedEvent {
314
- /** Entity that was deleted */
310
+ /** Entity that was deleted. */
315
311
  deletedEntityAsJson?: string | null;
316
312
  }
317
313
  export interface ActionEvent {
@@ -355,7 +351,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
355
351
  */
356
352
  appId?: string;
357
353
  /** @readonly */
358
- identityType?: WebhookIdentityType;
354
+ identityType?: WebhookIdentityTypeWithLiterals;
359
355
  }
360
356
  /** @oneof */
361
357
  export interface IdentificationDataIdOneOf {
@@ -387,3 +383,5 @@ export declare enum WebhookIdentityType {
387
383
  WIX_USER = "WIX_USER",
388
384
  APP = "APP"
389
385
  }
386
+ /** @enumType */
387
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.types.js","sourceRoot":"","sources":["../../../../src/ecom-v1-checkout-settings-checkout-settings.types.ts"],"names":[],"mappings":";;;AA4NA,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAuLD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.types.js","sourceRoot":"","sources":["../../../../src/ecom-v1-checkout-settings-checkout-settings.types.ts"],"names":[],"mappings":";;;AA4NA,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAUD,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAsLD,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"}
@@ -160,7 +160,7 @@ export interface CheckoutHeader {
160
160
  *
161
161
  * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.
162
162
  */
163
- alignment?: Alignment;
163
+ alignment?: AlignmentWithLiterals;
164
164
  /**
165
165
  * Whether to display the 'Checkout' label within the header.
166
166
  * Depending on the locale, the label may be translated.
@@ -169,7 +169,7 @@ export interface CheckoutHeader {
169
169
  }
170
170
  export interface Logo {
171
171
  /** Size of the logo. */
172
- size?: LogoSize;
172
+ size?: LogoSizeWithLiterals;
173
173
  }
174
174
  export interface FocalPoint {
175
175
  /** X-coordinate of the focal point. */
@@ -187,11 +187,15 @@ export declare enum LogoSize {
187
187
  MEDIUM = "MEDIUM",
188
188
  LARGE = "LARGE"
189
189
  }
190
+ /** @enumType */
191
+ export type LogoSizeWithLiterals = LogoSize | 'UNKNOWN_LOGO_SIZE' | 'SMALL' | 'MEDIUM' | 'LARGE';
190
192
  export declare enum Alignment {
191
193
  UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
192
194
  SIDE = "SIDE",
193
195
  CENTER = "CENTER"
194
196
  }
197
+ /** @enumType */
198
+ export type AlignmentWithLiterals = Alignment | 'UNKNOWN_ALIGNMENT' | 'SIDE' | 'CENTER';
195
199
  export interface GetCheckoutSettingsRequest {
196
200
  }
197
201
  export interface GetCheckoutSettingsResponse {
@@ -228,25 +232,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
228
232
  updatedEvent?: EntityUpdatedEvent;
229
233
  deletedEvent?: EntityDeletedEvent;
230
234
  actionEvent?: ActionEvent;
231
- /**
232
- * Unique event ID.
233
- * Allows clients to ignore duplicate webhooks.
234
- */
235
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
235
236
  _id?: string;
236
237
  /**
237
- * Assumes actions are also always typed to an entity_type
238
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
238
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
239
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
239
240
  */
240
241
  entityFqdn?: string;
241
242
  /**
242
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
243
- * This is although the created/updated/deleted notion is duplication of the oneof types
244
- * Example: created/updated/deleted/started/completed/email_opened
243
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
244
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
245
245
  */
246
246
  slug?: string;
247
247
  /** ID of the entity associated with the event. */
248
248
  entityId?: string;
249
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
249
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
250
250
  eventTime?: Date | null;
251
251
  /**
252
252
  * Whether the event was triggered as a result of a privacy regulation application
@@ -256,12 +256,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
256
256
  /** If present, indicates the action that triggered the event. */
257
257
  originatedFrom?: string | null;
258
258
  /**
259
- * A sequence number defining the order of updates to the underlying entity.
260
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
261
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
262
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
263
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
264
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
259
+ * 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.
260
+ * 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.
265
261
  */
266
262
  entityEventSequence?: string | null;
267
263
  }
@@ -287,7 +283,7 @@ export interface EntityUpdatedEvent {
287
283
  currentEntity?: string;
288
284
  }
289
285
  export interface EntityDeletedEvent {
290
- /** Entity that was deleted */
286
+ /** Entity that was deleted. */
291
287
  deletedEntity?: string | null;
292
288
  }
293
289
  export interface ActionEvent {
@@ -331,7 +327,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
331
327
  */
332
328
  appId?: string;
333
329
  /** @readonly */
334
- identityType?: WebhookIdentityType;
330
+ identityType?: WebhookIdentityTypeWithLiterals;
335
331
  }
336
332
  /** @oneof */
337
333
  export interface IdentificationDataIdOneOf {
@@ -363,6 +359,8 @@ export declare enum WebhookIdentityType {
363
359
  WIX_USER = "WIX_USER",
364
360
  APP = "APP"
365
361
  }
362
+ /** @enumType */
363
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
366
364
  export interface BaseEventMetadata {
367
365
  /**
368
366
  * App instance ID.
@@ -378,25 +376,21 @@ export interface BaseEventMetadata {
378
376
  identity?: IdentificationData;
379
377
  }
380
378
  export interface EventMetadata extends BaseEventMetadata {
381
- /**
382
- * Unique event ID.
383
- * Allows clients to ignore duplicate webhooks.
384
- */
379
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
385
380
  _id?: string;
386
381
  /**
387
- * Assumes actions are also always typed to an entity_type
388
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
382
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
383
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
389
384
  */
390
385
  entityFqdn?: string;
391
386
  /**
392
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
393
- * This is although the created/updated/deleted notion is duplication of the oneof types
394
- * Example: created/updated/deleted/started/completed/email_opened
387
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
388
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
395
389
  */
396
390
  slug?: string;
397
391
  /** ID of the entity associated with the event. */
398
392
  entityId?: string;
399
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
393
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
400
394
  eventTime?: Date | null;
401
395
  /**
402
396
  * Whether the event was triggered as a result of a privacy regulation application
@@ -406,12 +400,8 @@ export interface EventMetadata extends BaseEventMetadata {
406
400
  /** If present, indicates the action that triggered the event. */
407
401
  originatedFrom?: string | null;
408
402
  /**
409
- * A sequence number defining the order of updates to the underlying entity.
410
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
411
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
412
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
413
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
414
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
403
+ * 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.
404
+ * 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.
415
405
  */
416
406
  entityEventSequence?: string | null;
417
407
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.universal.js","sourceRoot":"","sources":["../../../../src/ecom-v1-checkout-settings-checkout-settings.univers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ACtE;SACF,CAAC,CACF,CAAC;IACL,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE;YACtD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,kBAAkB,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA1DD,wDA0DC"}
1
+ {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.universal.js","sourceRoot":"","sources":["../../../../src/ecom-v1-checkout-settings-checkout-settings.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,2HAA6G;AAC7G,kEAAsF;AACtF,kEAAsF;AACtF,sFAAkF;AAsMlF,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAUD,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAoLD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AA6FD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACI,KAAK,UAAU,mBAAmB;IAQvC,aAAa;IACb,MAAM,EAAE,UAAU,EA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C,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC;SACtE;KACF,CACF,CAAC;IAEF,MAAM,OAAO,GACX,mCAAmC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAEtE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAC5C,IAAA,gCAAc,EAAC,MAAM,CAAC,IAAI,EAAE;YAC1B;gBACE,WAAW,EAAE,oCAA4B;gBACzC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC;aACtE;SACF,CAAC,CACF,CAAC;IACL,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE;YACtD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,kBAAkB,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA1DD,wDA0DC"}
@@ -159,7 +159,7 @@ export interface CheckoutHeader {
159
159
  *
160
160
  * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.
161
161
  */
162
- alignment?: Alignment;
162
+ alignment?: AlignmentWithLiterals;
163
163
  /**
164
164
  * Whether to display the 'Checkout' label within the header.
165
165
  * Depending on the locale, the label may be translated.
@@ -168,7 +168,7 @@ export interface CheckoutHeader {
168
168
  }
169
169
  export interface Logo {
170
170
  /** Size of the logo. */
171
- size?: LogoSize;
171
+ size?: LogoSizeWithLiterals;
172
172
  }
173
173
  export interface Image {
174
174
  /** WixMedia image ID. */
@@ -209,11 +209,15 @@ export declare enum LogoSize {
209
209
  MEDIUM = "MEDIUM",
210
210
  LARGE = "LARGE"
211
211
  }
212
+ /** @enumType */
213
+ export type LogoSizeWithLiterals = LogoSize | 'UNKNOWN_LOGO_SIZE' | 'SMALL' | 'MEDIUM' | 'LARGE';
212
214
  export declare enum Alignment {
213
215
  UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
214
216
  SIDE = "SIDE",
215
217
  CENTER = "CENTER"
216
218
  }
219
+ /** @enumType */
220
+ export type AlignmentWithLiterals = Alignment | 'UNKNOWN_ALIGNMENT' | 'SIDE' | 'CENTER';
217
221
  export interface GetCheckoutSettingsRequest {
218
222
  }
219
223
  export interface GetCheckoutSettingsResponse {
@@ -250,25 +254,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
250
254
  updatedEvent?: EntityUpdatedEvent;
251
255
  deletedEvent?: EntityDeletedEvent;
252
256
  actionEvent?: ActionEvent;
253
- /**
254
- * Unique event ID.
255
- * Allows clients to ignore duplicate webhooks.
256
- */
257
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
257
258
  id?: string;
258
259
  /**
259
- * Assumes actions are also always typed to an entity_type
260
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
260
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
261
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
261
262
  */
262
263
  entityFqdn?: string;
263
264
  /**
264
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
265
- * This is although the created/updated/deleted notion is duplication of the oneof types
266
- * Example: created/updated/deleted/started/completed/email_opened
265
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
266
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
267
267
  */
268
268
  slug?: string;
269
269
  /** ID of the entity associated with the event. */
270
270
  entityId?: string;
271
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
271
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
272
272
  eventTime?: Date | null;
273
273
  /**
274
274
  * Whether the event was triggered as a result of a privacy regulation application
@@ -278,12 +278,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
278
278
  /** If present, indicates the action that triggered the event. */
279
279
  originatedFrom?: string | null;
280
280
  /**
281
- * A sequence number defining the order of updates to the underlying entity.
282
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
283
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
284
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
285
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
286
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
281
+ * 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.
282
+ * 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.
287
283
  */
288
284
  entityEventSequence?: string | null;
289
285
  }
@@ -311,7 +307,7 @@ export interface EntityUpdatedEvent {
311
307
  currentEntityAsJson?: string;
312
308
  }
313
309
  export interface EntityDeletedEvent {
314
- /** Entity that was deleted */
310
+ /** Entity that was deleted. */
315
311
  deletedEntityAsJson?: string | null;
316
312
  }
317
313
  export interface ActionEvent {
@@ -355,7 +351,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
355
351
  */
356
352
  appId?: string;
357
353
  /** @readonly */
358
- identityType?: WebhookIdentityType;
354
+ identityType?: WebhookIdentityTypeWithLiterals;
359
355
  }
360
356
  /** @oneof */
361
357
  export interface IdentificationDataIdOneOf {
@@ -387,3 +383,5 @@ export declare enum WebhookIdentityType {
387
383
  WIX_USER = "WIX_USER",
388
384
  APP = "APP"
389
385
  }
386
+ /** @enumType */
387
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.types.js","sourceRoot":"","sources":["../../../../src/ecom-v1-checkout-settings-checkout-settings.types.ts"],"names":[],"mappings":"AA4NA,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAED,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAuLD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.types.js","sourceRoot":"","sources":["../../../../src/ecom-v1-checkout-settings-checkout-settings.types.ts"],"names":[],"mappings":"AA4NA,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAUD,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAsLD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
@@ -160,7 +160,7 @@ export interface CheckoutHeader {
160
160
  *
161
161
  * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.
162
162
  */
163
- alignment?: Alignment;
163
+ alignment?: AlignmentWithLiterals;
164
164
  /**
165
165
  * Whether to display the 'Checkout' label within the header.
166
166
  * Depending on the locale, the label may be translated.
@@ -169,7 +169,7 @@ export interface CheckoutHeader {
169
169
  }
170
170
  export interface Logo {
171
171
  /** Size of the logo. */
172
- size?: LogoSize;
172
+ size?: LogoSizeWithLiterals;
173
173
  }
174
174
  export interface FocalPoint {
175
175
  /** X-coordinate of the focal point. */
@@ -187,11 +187,15 @@ export declare enum LogoSize {
187
187
  MEDIUM = "MEDIUM",
188
188
  LARGE = "LARGE"
189
189
  }
190
+ /** @enumType */
191
+ export type LogoSizeWithLiterals = LogoSize | 'UNKNOWN_LOGO_SIZE' | 'SMALL' | 'MEDIUM' | 'LARGE';
190
192
  export declare enum Alignment {
191
193
  UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
192
194
  SIDE = "SIDE",
193
195
  CENTER = "CENTER"
194
196
  }
197
+ /** @enumType */
198
+ export type AlignmentWithLiterals = Alignment | 'UNKNOWN_ALIGNMENT' | 'SIDE' | 'CENTER';
195
199
  export interface GetCheckoutSettingsRequest {
196
200
  }
197
201
  export interface GetCheckoutSettingsResponse {
@@ -228,25 +232,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
228
232
  updatedEvent?: EntityUpdatedEvent;
229
233
  deletedEvent?: EntityDeletedEvent;
230
234
  actionEvent?: ActionEvent;
231
- /**
232
- * Unique event ID.
233
- * Allows clients to ignore duplicate webhooks.
234
- */
235
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
235
236
  _id?: string;
236
237
  /**
237
- * Assumes actions are also always typed to an entity_type
238
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
238
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
239
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
239
240
  */
240
241
  entityFqdn?: string;
241
242
  /**
242
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
243
- * This is although the created/updated/deleted notion is duplication of the oneof types
244
- * Example: created/updated/deleted/started/completed/email_opened
243
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
244
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
245
245
  */
246
246
  slug?: string;
247
247
  /** ID of the entity associated with the event. */
248
248
  entityId?: string;
249
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
249
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
250
250
  eventTime?: Date | null;
251
251
  /**
252
252
  * Whether the event was triggered as a result of a privacy regulation application
@@ -256,12 +256,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
256
256
  /** If present, indicates the action that triggered the event. */
257
257
  originatedFrom?: string | null;
258
258
  /**
259
- * A sequence number defining the order of updates to the underlying entity.
260
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
261
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
262
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
263
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
264
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
259
+ * 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.
260
+ * 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.
265
261
  */
266
262
  entityEventSequence?: string | null;
267
263
  }
@@ -287,7 +283,7 @@ export interface EntityUpdatedEvent {
287
283
  currentEntity?: string;
288
284
  }
289
285
  export interface EntityDeletedEvent {
290
- /** Entity that was deleted */
286
+ /** Entity that was deleted. */
291
287
  deletedEntity?: string | null;
292
288
  }
293
289
  export interface ActionEvent {
@@ -331,7 +327,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
331
327
  */
332
328
  appId?: string;
333
329
  /** @readonly */
334
- identityType?: WebhookIdentityType;
330
+ identityType?: WebhookIdentityTypeWithLiterals;
335
331
  }
336
332
  /** @oneof */
337
333
  export interface IdentificationDataIdOneOf {
@@ -363,6 +359,8 @@ export declare enum WebhookIdentityType {
363
359
  WIX_USER = "WIX_USER",
364
360
  APP = "APP"
365
361
  }
362
+ /** @enumType */
363
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
366
364
  export interface BaseEventMetadata {
367
365
  /**
368
366
  * App instance ID.
@@ -378,25 +376,21 @@ export interface BaseEventMetadata {
378
376
  identity?: IdentificationData;
379
377
  }
380
378
  export interface EventMetadata extends BaseEventMetadata {
381
- /**
382
- * Unique event ID.
383
- * Allows clients to ignore duplicate webhooks.
384
- */
379
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
385
380
  _id?: string;
386
381
  /**
387
- * Assumes actions are also always typed to an entity_type
388
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
382
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
383
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
389
384
  */
390
385
  entityFqdn?: string;
391
386
  /**
392
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
393
- * This is although the created/updated/deleted notion is duplication of the oneof types
394
- * Example: created/updated/deleted/started/completed/email_opened
387
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
388
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
395
389
  */
396
390
  slug?: string;
397
391
  /** ID of the entity associated with the event. */
398
392
  entityId?: string;
399
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
393
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
400
394
  eventTime?: Date | null;
401
395
  /**
402
396
  * Whether the event was triggered as a result of a privacy regulation application
@@ -406,12 +400,8 @@ export interface EventMetadata extends BaseEventMetadata {
406
400
  /** If present, indicates the action that triggered the event. */
407
401
  originatedFrom?: string | null;
408
402
  /**
409
- * A sequence number defining the order of updates to the underlying entity.
410
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
411
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
412
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
413
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
414
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
403
+ * 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.
404
+ * 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.
415
405
  */
416
406
  entityEventSequence?: string | null;
417
407
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.universal.js","sourceRoot":"","sources":["../../../../src/ecom-v1-checkout-settings-checkout-settings.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,M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,4BAA4B;gBACzC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC;aACtE;SACF,CAAC,CACF,CAAC;IACL,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE;YACtD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,kBAAkB,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"ecom-v1-checkout-settings-checkout-settings.universal.js","sourceRoot":"","sources":["../../../../src/ecom-v1-checkout-settings-checkout-settings.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,mCAAmC,MAAM,uDAAuD,CAAC;AAC7G,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAsMlF,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,2BAAe,CAAA;AACjB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB;AAUD,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,0BAAa,CAAA;IACb,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AA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+ "version": "1.0.15",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -48,5 +48,5 @@
48
48
  "fqdn": "wix.ecom.v1.checkout_settings"
49
49
  }
50
50
  },
51
- "falconPackageHash": "fd0ef04e2ff9ce0545c4fadfea558b33e8a686bde1ed663e7b898b09"
51
+ "falconPackageHash": "fcd2166dbfb0800c2422e732222f1fb18097d8cb0b4efbf624471f76"
52
52
  }