@wix/auto_sdk_ecom_order-fulfillments 1.0.14 → 1.0.16

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.
@@ -120,7 +120,7 @@ export interface FulfillmentCreated {
120
120
  /** Buyer information. */
121
121
  buyerInfo?: BuyerInfo;
122
122
  /** Order fulfillment status. */
123
- fulfillmentStatus?: FulfillmentStatus;
123
+ fulfillmentStatus?: FulfillmentStatusWithLiterals;
124
124
  /** Fulfillment tracking information. */
125
125
  trackingInfo?: V2FulfillmentTrackingInfo;
126
126
  }
@@ -136,9 +136,9 @@ export interface BuyerInfo {
136
136
  * @readonly
137
137
  * @deprecated
138
138
  */
139
- type?: IdentityType;
139
+ type?: IdentityTypeWithLiterals;
140
140
  /** Customer type */
141
- identityType?: IdentityType;
141
+ identityType?: IdentityTypeWithLiterals;
142
142
  /**
143
143
  * Customer's first name
144
144
  * @readonly
@@ -167,6 +167,8 @@ export declare enum IdentityType {
167
167
  /** Contact */
168
168
  CONTACT = "CONTACT"
169
169
  }
170
+ /** @enumType */
171
+ export type IdentityTypeWithLiterals = IdentityType | 'UNSPECIFIED_IDENTITY_TYPE' | 'MEMBER' | 'CONTACT';
170
172
  export declare enum FulfillmentStatus {
171
173
  /** None of the order items are fulfilled */
172
174
  NOT_FULFILLED = "NOT_FULFILLED",
@@ -180,6 +182,8 @@ export declare enum FulfillmentStatus {
180
182
  /** Some, but not all of the order items are fulfilled */
181
183
  PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
182
184
  }
185
+ /** @enumType */
186
+ export type FulfillmentStatusWithLiterals = FulfillmentStatus | 'NOT_FULFILLED' | 'FULFILLED' | 'CANCELED' | 'PARTIALLY_FULFILLED';
183
187
  export interface V2FulfillmentTrackingInfo {
184
188
  /**
185
189
  * Tracking number.
@@ -232,7 +236,7 @@ export interface FulfillmentDeleted {
232
236
  */
233
237
  fulfillmentId?: string;
234
238
  /** Order fulfillment status. */
235
- fulfillmentStatus?: FulfillmentStatus;
239
+ fulfillmentStatus?: FulfillmentStatusWithLiterals;
236
240
  }
237
241
  export interface ListFulfillmentsForSingleOrderRequest {
238
242
  /**
@@ -360,25 +364,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
360
364
  updatedEvent?: EntityUpdatedEvent;
361
365
  deletedEvent?: EntityDeletedEvent;
362
366
  actionEvent?: ActionEvent;
363
- /**
364
- * Unique event ID.
365
- * Allows clients to ignore duplicate webhooks.
366
- */
367
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
367
368
  id?: string;
368
369
  /**
369
- * Assumes actions are also always typed to an entity_type
370
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
370
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
371
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
371
372
  */
372
373
  entityFqdn?: string;
373
374
  /**
374
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
375
- * This is although the created/updated/deleted notion is duplication of the oneof types
376
- * Example: created/updated/deleted/started/completed/email_opened
375
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
376
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
377
377
  */
378
378
  slug?: string;
379
379
  /** ID of the entity associated with the event. */
380
380
  entityId?: string;
381
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
381
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
382
382
  eventTime?: Date | null;
383
383
  /**
384
384
  * Whether the event was triggered as a result of a privacy regulation application
@@ -388,12 +388,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
388
388
  /** If present, indicates the action that triggered the event. */
389
389
  originatedFrom?: string | null;
390
390
  /**
391
- * A sequence number defining the order of updates to the underlying entity.
392
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
393
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
394
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
395
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
396
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
391
+ * 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.
392
+ * 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.
397
393
  */
398
394
  entityEventSequence?: string | null;
399
395
  }
@@ -421,7 +417,7 @@ export interface EntityUpdatedEvent {
421
417
  currentEntityAsJson?: string;
422
418
  }
423
419
  export interface EntityDeletedEvent {
424
- /** Entity that was deleted */
420
+ /** Entity that was deleted. */
425
421
  deletedEntityAsJson?: string | null;
426
422
  }
427
423
  export interface ActionEvent {
@@ -465,7 +461,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
465
461
  */
466
462
  appId?: string;
467
463
  /** @readonly */
468
- identityType?: WebhookIdentityType;
464
+ identityType?: WebhookIdentityTypeWithLiterals;
469
465
  }
470
466
  /** @oneof */
471
467
  export interface IdentificationDataIdOneOf {
@@ -497,3 +493,5 @@ export declare enum WebhookIdentityType {
497
493
  WIX_USER = "WIX_USER",
498
494
  APP = "APP"
499
495
  }
496
+ /** @enumType */
497
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-fulfillments-order-fulfillments.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-fulfillments-order-fulfillments.types.ts"],"names":[],"mappings":";;;AA0KA,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,kBAAkB;IAClB,iCAAiB,CAAA;IACjB,cAAc;IACd,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED,IAAY,iBAYX;AAZD,WAAY,iBAAiB;IAC3B,4CAA4C;IAC5C,oDAA+B,CAAA;IAC/B;;;OAGG;IACH,4CAAuB,CAAA;IACvB,wBAAwB;IACxB,0CAAqB,CAAA;IACrB,yDAAyD;IACzD,gEAA2C,CAAA;AAC7C,CAAC,EAZW,iBAAiB,iCAAjB,iBAAiB,QAY5B;AAsVD,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-fulfillments-order-fulfillments.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-fulfillments-order-fulfillments.types.ts"],"names":[],"mappings":";;;AA0KA,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,kBAAkB;IAClB,iCAAiB,CAAA;IACjB,cAAc;IACd,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AASD,IAAY,iBAYX;AAZD,WAAY,iBAAiB;IAC3B,4CAA4C;IAC5C,oDAA+B,CAAA;IAC/B;;;OAGG;IACH,4CAAuB,CAAA;IACvB,wBAAwB;IACxB,0CAAqB,CAAA;IACrB,yDAAyD;IACzD,gEAA2C,CAAA;AAC7C,CAAC,EAZW,iBAAiB,iCAAjB,iBAAiB,QAY5B;AAsVD,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"}
@@ -121,7 +121,7 @@ export interface FulfillmentCreated {
121
121
  /** Buyer information. */
122
122
  buyerInfo?: BuyerInfo;
123
123
  /** Order fulfillment status. */
124
- fulfillmentStatus?: FulfillmentStatus;
124
+ fulfillmentStatus?: FulfillmentStatusWithLiterals;
125
125
  /** Fulfillment tracking information. */
126
126
  trackingInfo?: V2FulfillmentTrackingInfo;
127
127
  }
@@ -137,9 +137,9 @@ export interface BuyerInfo {
137
137
  * @readonly
138
138
  * @deprecated
139
139
  */
140
- type?: IdentityType;
140
+ type?: IdentityTypeWithLiterals;
141
141
  /** Customer type */
142
- identityType?: IdentityType;
142
+ identityType?: IdentityTypeWithLiterals;
143
143
  /**
144
144
  * Customer's first name
145
145
  * @readonly
@@ -168,6 +168,8 @@ export declare enum IdentityType {
168
168
  /** Contact */
169
169
  CONTACT = "CONTACT"
170
170
  }
171
+ /** @enumType */
172
+ export type IdentityTypeWithLiterals = IdentityType | 'UNSPECIFIED_IDENTITY_TYPE' | 'MEMBER' | 'CONTACT';
171
173
  export declare enum FulfillmentStatus {
172
174
  /** None of the order items are fulfilled */
173
175
  NOT_FULFILLED = "NOT_FULFILLED",
@@ -181,6 +183,8 @@ export declare enum FulfillmentStatus {
181
183
  /** Some, but not all of the order items are fulfilled */
182
184
  PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
183
185
  }
186
+ /** @enumType */
187
+ export type FulfillmentStatusWithLiterals = FulfillmentStatus | 'NOT_FULFILLED' | 'FULFILLED' | 'CANCELED' | 'PARTIALLY_FULFILLED';
184
188
  export interface V2FulfillmentTrackingInfo {
185
189
  /**
186
190
  * Tracking number.
@@ -233,7 +237,7 @@ export interface FulfillmentDeleted {
233
237
  */
234
238
  fulfillmentId?: string;
235
239
  /** Order fulfillment status. */
236
- fulfillmentStatus?: FulfillmentStatus;
240
+ fulfillmentStatus?: FulfillmentStatusWithLiterals;
237
241
  }
238
242
  export interface ListFulfillmentsForSingleOrderRequest {
239
243
  /**
@@ -362,25 +366,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
362
366
  updatedEvent?: EntityUpdatedEvent;
363
367
  deletedEvent?: EntityDeletedEvent;
364
368
  actionEvent?: ActionEvent;
365
- /**
366
- * Unique event ID.
367
- * Allows clients to ignore duplicate webhooks.
368
- */
369
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
369
370
  _id?: string;
370
371
  /**
371
- * Assumes actions are also always typed to an entity_type
372
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
372
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
373
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
373
374
  */
374
375
  entityFqdn?: string;
375
376
  /**
376
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
377
- * This is although the created/updated/deleted notion is duplication of the oneof types
378
- * Example: created/updated/deleted/started/completed/email_opened
377
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
378
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
379
379
  */
380
380
  slug?: string;
381
381
  /** ID of the entity associated with the event. */
382
382
  entityId?: string;
383
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
383
+ /** 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
384
  eventTime?: Date | null;
385
385
  /**
386
386
  * Whether the event was triggered as a result of a privacy regulation application
@@ -390,12 +390,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
390
390
  /** If present, indicates the action that triggered the event. */
391
391
  originatedFrom?: string | null;
392
392
  /**
393
- * A sequence number defining the order of updates to the underlying entity.
394
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
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.
393
+ * 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.
394
+ * 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
395
  */
400
396
  entityEventSequence?: string | null;
401
397
  }
@@ -421,7 +417,7 @@ export interface EntityUpdatedEvent {
421
417
  currentEntity?: string;
422
418
  }
423
419
  export interface EntityDeletedEvent {
424
- /** Entity that was deleted */
420
+ /** Entity that was deleted. */
425
421
  deletedEntity?: string | null;
426
422
  }
427
423
  export interface ActionEvent {
@@ -465,7 +461,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
465
461
  */
466
462
  appId?: string;
467
463
  /** @readonly */
468
- identityType?: WebhookIdentityType;
464
+ identityType?: WebhookIdentityTypeWithLiterals;
469
465
  }
470
466
  /** @oneof */
471
467
  export interface IdentificationDataIdOneOf {
@@ -497,6 +493,8 @@ export declare enum WebhookIdentityType {
497
493
  WIX_USER = "WIX_USER",
498
494
  APP = "APP"
499
495
  }
496
+ /** @enumType */
497
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
500
498
  export interface BaseEventMetadata {
501
499
  /**
502
500
  * App instance ID.
@@ -512,25 +510,21 @@ export interface BaseEventMetadata {
512
510
  identity?: IdentificationData;
513
511
  }
514
512
  export interface EventMetadata extends BaseEventMetadata {
515
- /**
516
- * Unique event ID.
517
- * Allows clients to ignore duplicate webhooks.
518
- */
513
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
519
514
  _id?: string;
520
515
  /**
521
- * Assumes actions are also always typed to an entity_type
522
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
516
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
517
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
523
518
  */
524
519
  entityFqdn?: string;
525
520
  /**
526
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
527
- * This is although the created/updated/deleted notion is duplication of the oneof types
528
- * Example: created/updated/deleted/started/completed/email_opened
521
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
522
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
529
523
  */
530
524
  slug?: string;
531
525
  /** ID of the entity associated with the event. */
532
526
  entityId?: string;
533
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
527
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
534
528
  eventTime?: Date | null;
535
529
  /**
536
530
  * Whether the event was triggered as a result of a privacy regulation application
@@ -540,12 +534,8 @@ export interface EventMetadata extends BaseEventMetadata {
540
534
  /** If present, indicates the action that triggered the event. */
541
535
  originatedFrom?: string | null;
542
536
  /**
543
- * A sequence number defining the order of updates to the underlying entity.
544
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
545
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
546
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
547
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
548
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
537
+ * 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.
538
+ * 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.
549
539
  */
550
540
  entityEventSequence?: string | null;
551
541
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-fulfillments-order-fulfillments.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-fulfillments-order-fulfillments.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAA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,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,sBAAsB,EAAE,MAAM,EAAE;YAC5D,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,wBAAwB,CAAC,CAC3B,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAzDD,wDAyDC"}
1
+ {"version":3,"file":"ecom-v1-fulfillments-order-fulfillments.universal.js","sourceRoot":"","sources":["../../../src/ecom-v1-fulfillments-order-fulfillments.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,mHAAqG;AA4KrG,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,kBAAkB;IAClB,iCAAiB,CAAA;IACjB,cAAc;IACd,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AASD,IAAY,iBAYX;AAZD,WAAY,iBAAiB;IAC3B,4CAA4C;IAC5C,oDAA+B,CAAA;IAC/B;;;OAGG;IACH,4CAAuB,CAAA;IACvB,wBAAwB;IACxB,0CAAqB,CAAA;IACrB,yDAAyD;IACzD,gEAA2C,CAAA;AAC7C,CAAC,EAZW,iBAAiB,iCAAjB,iBAAiB,QAY5B;AAqVD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAq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FulfillmentCreated {
120
120
  /** Buyer information. */
121
121
  buyerInfo?: BuyerInfo;
122
122
  /** Order fulfillment status. */
123
- fulfillmentStatus?: FulfillmentStatus;
123
+ fulfillmentStatus?: FulfillmentStatusWithLiterals;
124
124
  /** Fulfillment tracking information. */
125
125
  trackingInfo?: V2FulfillmentTrackingInfo;
126
126
  }
@@ -136,9 +136,9 @@ export interface BuyerInfo {
136
136
  * @readonly
137
137
  * @deprecated
138
138
  */
139
- type?: IdentityType;
139
+ type?: IdentityTypeWithLiterals;
140
140
  /** Customer type */
141
- identityType?: IdentityType;
141
+ identityType?: IdentityTypeWithLiterals;
142
142
  /**
143
143
  * Customer's first name
144
144
  * @readonly
@@ -167,6 +167,8 @@ export declare enum IdentityType {
167
167
  /** Contact */
168
168
  CONTACT = "CONTACT"
169
169
  }
170
+ /** @enumType */
171
+ export type IdentityTypeWithLiterals = IdentityType | 'UNSPECIFIED_IDENTITY_TYPE' | 'MEMBER' | 'CONTACT';
170
172
  export declare enum FulfillmentStatus {
171
173
  /** None of the order items are fulfilled */
172
174
  NOT_FULFILLED = "NOT_FULFILLED",
@@ -180,6 +182,8 @@ export declare enum FulfillmentStatus {
180
182
  /** Some, but not all of the order items are fulfilled */
181
183
  PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
182
184
  }
185
+ /** @enumType */
186
+ export type FulfillmentStatusWithLiterals = FulfillmentStatus | 'NOT_FULFILLED' | 'FULFILLED' | 'CANCELED' | 'PARTIALLY_FULFILLED';
183
187
  export interface V2FulfillmentTrackingInfo {
184
188
  /**
185
189
  * Tracking number.
@@ -232,7 +236,7 @@ export interface FulfillmentDeleted {
232
236
  */
233
237
  fulfillmentId?: string;
234
238
  /** Order fulfillment status. */
235
- fulfillmentStatus?: FulfillmentStatus;
239
+ fulfillmentStatus?: FulfillmentStatusWithLiterals;
236
240
  }
237
241
  export interface ListFulfillmentsForSingleOrderRequest {
238
242
  /**
@@ -360,25 +364,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
360
364
  updatedEvent?: EntityUpdatedEvent;
361
365
  deletedEvent?: EntityDeletedEvent;
362
366
  actionEvent?: ActionEvent;
363
- /**
364
- * Unique event ID.
365
- * Allows clients to ignore duplicate webhooks.
366
- */
367
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
367
368
  id?: string;
368
369
  /**
369
- * Assumes actions are also always typed to an entity_type
370
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
370
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
371
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
371
372
  */
372
373
  entityFqdn?: string;
373
374
  /**
374
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
375
- * This is although the created/updated/deleted notion is duplication of the oneof types
376
- * Example: created/updated/deleted/started/completed/email_opened
375
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
376
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
377
377
  */
378
378
  slug?: string;
379
379
  /** ID of the entity associated with the event. */
380
380
  entityId?: string;
381
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
381
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
382
382
  eventTime?: Date | null;
383
383
  /**
384
384
  * Whether the event was triggered as a result of a privacy regulation application
@@ -388,12 +388,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
388
388
  /** If present, indicates the action that triggered the event. */
389
389
  originatedFrom?: string | null;
390
390
  /**
391
- * A sequence number defining the order of updates to the underlying entity.
392
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
393
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
394
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
395
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
396
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
391
+ * 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.
392
+ * 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.
397
393
  */
398
394
  entityEventSequence?: string | null;
399
395
  }
@@ -421,7 +417,7 @@ export interface EntityUpdatedEvent {
421
417
  currentEntityAsJson?: string;
422
418
  }
423
419
  export interface EntityDeletedEvent {
424
- /** Entity that was deleted */
420
+ /** Entity that was deleted. */
425
421
  deletedEntityAsJson?: string | null;
426
422
  }
427
423
  export interface ActionEvent {
@@ -465,7 +461,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
465
461
  */
466
462
  appId?: string;
467
463
  /** @readonly */
468
- identityType?: WebhookIdentityType;
464
+ identityType?: WebhookIdentityTypeWithLiterals;
469
465
  }
470
466
  /** @oneof */
471
467
  export interface IdentificationDataIdOneOf {
@@ -497,3 +493,5 @@ export declare enum WebhookIdentityType {
497
493
  WIX_USER = "WIX_USER",
498
494
  APP = "APP"
499
495
  }
496
+ /** @enumType */
497
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1 +1 @@
1
- {"version":3,"file":"ecom-v1-fulfillments-order-fulfillments.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-fulfillments-order-fulfillments.types.ts"],"names":[],"mappings":"AA0KA,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,kBAAkB;IAClB,iCAAiB,CAAA;IACjB,cAAc;IACd,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAED,MAAM,CAAN,IAAY,iBAYX;AAZD,WAAY,iBAAiB;IAC3B,4CAA4C;IAC5C,oDAA+B,CAAA;IAC/B;;;OAGG;IACH,4CAAuB,CAAA;IACvB,wBAAwB;IACxB,0CAAqB,CAAA;IACrB,yDAAyD;IACzD,gEAA2C,CAAA;AAC7C,CAAC,EAZW,iBAAiB,KAAjB,iBAAiB,QAY5B;AAsVD,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-fulfillments-order-fulfillments.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-fulfillments-order-fulfillments.types.ts"],"names":[],"mappings":"AA0KA,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,kBAAkB;IAClB,iCAAiB,CAAA;IACjB,cAAc;IACd,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AASD,MAAM,CAAN,IAAY,iBAYX;AAZD,WAAY,iBAAiB;IAC3B,4CAA4C;IAC5C,oDAA+B,CAAA;IAC/B;;;OAGG;IACH,4CAAuB,CAAA;IACvB,wBAAwB;IACxB,0CAAqB,CAAA;IACrB,yDAAyD;IACzD,gEAA2C,CAAA;AAC7C,CAAC,EAZW,iBAAiB,KAAjB,iBAAiB,QAY5B;AAsVD,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"}
@@ -121,7 +121,7 @@ export interface FulfillmentCreated {
121
121
  /** Buyer information. */
122
122
  buyerInfo?: BuyerInfo;
123
123
  /** Order fulfillment status. */
124
- fulfillmentStatus?: FulfillmentStatus;
124
+ fulfillmentStatus?: FulfillmentStatusWithLiterals;
125
125
  /** Fulfillment tracking information. */
126
126
  trackingInfo?: V2FulfillmentTrackingInfo;
127
127
  }
@@ -137,9 +137,9 @@ export interface BuyerInfo {
137
137
  * @readonly
138
138
  * @deprecated
139
139
  */
140
- type?: IdentityType;
140
+ type?: IdentityTypeWithLiterals;
141
141
  /** Customer type */
142
- identityType?: IdentityType;
142
+ identityType?: IdentityTypeWithLiterals;
143
143
  /**
144
144
  * Customer's first name
145
145
  * @readonly
@@ -168,6 +168,8 @@ export declare enum IdentityType {
168
168
  /** Contact */
169
169
  CONTACT = "CONTACT"
170
170
  }
171
+ /** @enumType */
172
+ export type IdentityTypeWithLiterals = IdentityType | 'UNSPECIFIED_IDENTITY_TYPE' | 'MEMBER' | 'CONTACT';
171
173
  export declare enum FulfillmentStatus {
172
174
  /** None of the order items are fulfilled */
173
175
  NOT_FULFILLED = "NOT_FULFILLED",
@@ -181,6 +183,8 @@ export declare enum FulfillmentStatus {
181
183
  /** Some, but not all of the order items are fulfilled */
182
184
  PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
183
185
  }
186
+ /** @enumType */
187
+ export type FulfillmentStatusWithLiterals = FulfillmentStatus | 'NOT_FULFILLED' | 'FULFILLED' | 'CANCELED' | 'PARTIALLY_FULFILLED';
184
188
  export interface V2FulfillmentTrackingInfo {
185
189
  /**
186
190
  * Tracking number.
@@ -233,7 +237,7 @@ export interface FulfillmentDeleted {
233
237
  */
234
238
  fulfillmentId?: string;
235
239
  /** Order fulfillment status. */
236
- fulfillmentStatus?: FulfillmentStatus;
240
+ fulfillmentStatus?: FulfillmentStatusWithLiterals;
237
241
  }
238
242
  export interface ListFulfillmentsForSingleOrderRequest {
239
243
  /**
@@ -362,25 +366,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
362
366
  updatedEvent?: EntityUpdatedEvent;
363
367
  deletedEvent?: EntityDeletedEvent;
364
368
  actionEvent?: ActionEvent;
365
- /**
366
- * Unique event ID.
367
- * Allows clients to ignore duplicate webhooks.
368
- */
369
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
369
370
  _id?: string;
370
371
  /**
371
- * Assumes actions are also always typed to an entity_type
372
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
372
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
373
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
373
374
  */
374
375
  entityFqdn?: string;
375
376
  /**
376
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
377
- * This is although the created/updated/deleted notion is duplication of the oneof types
378
- * Example: created/updated/deleted/started/completed/email_opened
377
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
378
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
379
379
  */
380
380
  slug?: string;
381
381
  /** ID of the entity associated with the event. */
382
382
  entityId?: string;
383
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
383
+ /** 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
384
  eventTime?: Date | null;
385
385
  /**
386
386
  * Whether the event was triggered as a result of a privacy regulation application
@@ -390,12 +390,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
390
390
  /** If present, indicates the action that triggered the event. */
391
391
  originatedFrom?: string | null;
392
392
  /**
393
- * A sequence number defining the order of updates to the underlying entity.
394
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
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.
393
+ * 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.
394
+ * 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
395
  */
400
396
  entityEventSequence?: string | null;
401
397
  }
@@ -421,7 +417,7 @@ export interface EntityUpdatedEvent {
421
417
  currentEntity?: string;
422
418
  }
423
419
  export interface EntityDeletedEvent {
424
- /** Entity that was deleted */
420
+ /** Entity that was deleted. */
425
421
  deletedEntity?: string | null;
426
422
  }
427
423
  export interface ActionEvent {
@@ -465,7 +461,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
465
461
  */
466
462
  appId?: string;
467
463
  /** @readonly */
468
- identityType?: WebhookIdentityType;
464
+ identityType?: WebhookIdentityTypeWithLiterals;
469
465
  }
470
466
  /** @oneof */
471
467
  export interface IdentificationDataIdOneOf {
@@ -497,6 +493,8 @@ export declare enum WebhookIdentityType {
497
493
  WIX_USER = "WIX_USER",
498
494
  APP = "APP"
499
495
  }
496
+ /** @enumType */
497
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
500
498
  export interface BaseEventMetadata {
501
499
  /**
502
500
  * App instance ID.
@@ -512,25 +510,21 @@ export interface BaseEventMetadata {
512
510
  identity?: IdentificationData;
513
511
  }
514
512
  export interface EventMetadata extends BaseEventMetadata {
515
- /**
516
- * Unique event ID.
517
- * Allows clients to ignore duplicate webhooks.
518
- */
513
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
519
514
  _id?: string;
520
515
  /**
521
- * Assumes actions are also always typed to an entity_type
522
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
516
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
517
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
523
518
  */
524
519
  entityFqdn?: string;
525
520
  /**
526
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
527
- * This is although the created/updated/deleted notion is duplication of the oneof types
528
- * Example: created/updated/deleted/started/completed/email_opened
521
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
522
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
529
523
  */
530
524
  slug?: string;
531
525
  /** ID of the entity associated with the event. */
532
526
  entityId?: string;
533
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
527
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
534
528
  eventTime?: Date | null;
535
529
  /**
536
530
  * Whether the event was triggered as a result of a privacy regulation application
@@ -540,12 +534,8 @@ export interface EventMetadata extends BaseEventMetadata {
540
534
  /** If present, indicates the action that triggered the event. */
541
535
  originatedFrom?: string | null;
542
536
  /**
543
- * A sequence number defining the order of updates to the underlying entity.
544
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
545
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
546
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
547
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
548
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
537
+ * 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.
538
+ * 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.
549
539
  */
550
540
  entityEventSequence?: string | null;
551
541
  }