@wix/auto_sdk_members_member-report 1.0.11 → 1.0.13

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 (21) hide show
  1. package/build/cjs/src/members-v1-member-report-member-report.types.d.ts +18 -20
  2. package/build/cjs/src/members-v1-member-report-member-report.types.js.map +1 -1
  3. package/build/cjs/src/members-v1-member-report-member-report.universal.d.ts +30 -40
  4. package/build/cjs/src/members-v1-member-report-member-report.universal.js +3 -1
  5. package/build/cjs/src/members-v1-member-report-member-report.universal.js.map +1 -1
  6. package/build/es/src/members-v1-member-report-member-report.types.d.ts +18 -20
  7. package/build/es/src/members-v1-member-report-member-report.types.js.map +1 -1
  8. package/build/es/src/members-v1-member-report-member-report.universal.d.ts +30 -40
  9. package/build/es/src/members-v1-member-report-member-report.universal.js +3 -1
  10. package/build/es/src/members-v1-member-report-member-report.universal.js.map +1 -1
  11. package/build/internal/cjs/src/members-v1-member-report-member-report.types.d.ts +18 -20
  12. package/build/internal/cjs/src/members-v1-member-report-member-report.types.js.map +1 -1
  13. package/build/internal/cjs/src/members-v1-member-report-member-report.universal.d.ts +30 -40
  14. package/build/internal/cjs/src/members-v1-member-report-member-report.universal.js +3 -1
  15. package/build/internal/cjs/src/members-v1-member-report-member-report.universal.js.map +1 -1
  16. package/build/internal/es/src/members-v1-member-report-member-report.types.d.ts +18 -20
  17. package/build/internal/es/src/members-v1-member-report-member-report.types.js.map +1 -1
  18. package/build/internal/es/src/members-v1-member-report-member-report.universal.d.ts +30 -40
  19. package/build/internal/es/src/members-v1-member-report-member-report.universal.js +3 -1
  20. package/build/internal/es/src/members-v1-member-report-member-report.universal.js.map +1 -1
  21. package/package.json +4 -4
@@ -25,7 +25,7 @@ export interface MemberReport {
25
25
  }
26
26
  export interface Reason {
27
27
  /** Report reason type. */
28
- category?: Category;
28
+ category?: CategoryWithLiterals;
29
29
  /** Explanation of why the member is being reported. */
30
30
  description?: string | null;
31
31
  }
@@ -41,6 +41,8 @@ export declare enum Category {
41
41
  /** The member is reported for other reasons. */
42
42
  OTHER = "OTHER"
43
43
  }
44
+ /** @enumType */
45
+ export type CategoryWithLiterals = Category | 'UNKNOWN' | 'SPAM' | 'IMPERSONATION' | 'HARASSMENT' | 'OTHER';
44
46
  export interface ReportMemberRequest {
45
47
  /** Details of a member to report. */
46
48
  memberReport: MemberReport;
@@ -114,12 +116,14 @@ export interface Sorting {
114
116
  */
115
117
  fieldName?: string;
116
118
  /** Sort order. */
117
- order?: SortOrder;
119
+ order?: SortOrderWithLiterals;
118
120
  }
119
121
  export declare enum SortOrder {
120
122
  ASC = "ASC",
121
123
  DESC = "DESC"
122
124
  }
125
+ /** @enumType */
126
+ export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
123
127
  export interface CursorPaging {
124
128
  /**
125
129
  * The number of items to load.
@@ -223,25 +227,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
223
227
  updatedEvent?: EntityUpdatedEvent;
224
228
  deletedEvent?: EntityDeletedEvent;
225
229
  actionEvent?: ActionEvent;
226
- /**
227
- * Unique event ID.
228
- * Allows clients to ignore duplicate webhooks.
229
- */
230
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
230
231
  id?: string;
231
232
  /**
232
- * Assumes actions are also always typed to an entity_type
233
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
233
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
234
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
234
235
  */
235
236
  entityFqdn?: string;
236
237
  /**
237
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
238
- * This is although the created/updated/deleted notion is duplication of the oneof types
239
- * Example: created/updated/deleted/started/completed/email_opened
238
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
239
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
240
240
  */
241
241
  slug?: string;
242
242
  /** ID of the entity associated with the event. */
243
243
  entityId?: string;
244
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
244
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
245
245
  eventTime?: Date | null;
246
246
  /**
247
247
  * Whether the event was triggered as a result of a privacy regulation application
@@ -251,12 +251,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
251
251
  /** If present, indicates the action that triggered the event. */
252
252
  originatedFrom?: string | null;
253
253
  /**
254
- * A sequence number defining the order of updates to the underlying entity.
255
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
256
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
257
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
258
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
259
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
254
+ * 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.
255
+ * 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.
260
256
  */
261
257
  entityEventSequence?: string | null;
262
258
  }
@@ -284,7 +280,7 @@ export interface EntityUpdatedEvent {
284
280
  currentEntityAsJson?: string;
285
281
  }
286
282
  export interface EntityDeletedEvent {
287
- /** Entity that was deleted */
283
+ /** Entity that was deleted. */
288
284
  deletedEntityAsJson?: string | null;
289
285
  }
290
286
  export interface ActionEvent {
@@ -330,7 +326,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
330
326
  */
331
327
  appId?: string;
332
328
  /** @readonly */
333
- identityType?: WebhookIdentityType;
329
+ identityType?: WebhookIdentityTypeWithLiterals;
334
330
  }
335
331
  /** @oneof */
336
332
  export interface IdentificationDataIdOneOf {
@@ -362,3 +358,5 @@ export declare enum WebhookIdentityType {
362
358
  WIX_USER = "WIX_USER",
363
359
  APP = "APP"
364
360
  }
361
+ /** @enumType */
362
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1 +1 @@
1
- {"version":3,"file":"members-v1-member-report-member-report.types.js","sourceRoot":"","sources":["../../../src/members-v1-member-report-member-report.types.ts"],"names":[],"mappings":";;;AAiCA,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,8CAA8C;IAC9C,+BAAmB,CAAA;IACnB,uCAAuC;IACvC,yBAAa,CAAA;IACb,gDAAgD;IAChD,2CAA+B,CAAA;IAC/B,6CAA6C;IAC7C,qCAAyB,CAAA;IACzB,gDAAgD;IAChD,2BAAe,CAAA;AACjB,CAAC,EAXW,QAAQ,wBAAR,QAAQ,QAWnB;AAsFD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAsQD,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":"members-v1-member-report-member-report.types.js","sourceRoot":"","sources":["../../../src/members-v1-member-report-member-report.types.ts"],"names":[],"mappings":";;;AAiCA,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,8CAA8C;IAC9C,+BAAmB,CAAA;IACnB,uCAAuC;IACvC,yBAAa,CAAA;IACb,gDAAgD;IAChD,2CAA+B,CAAA;IAC/B,6CAA6C;IAC7C,qCAAyB,CAAA;IACzB,gDAAgD;IAChD,2BAAe,CAAA;AACjB,CAAC,EAXW,QAAQ,wBAAR,QAAQ,QAWnB;AA+FD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAiQD,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"}
@@ -26,7 +26,7 @@ export interface MemberReport {
26
26
  }
27
27
  export interface Reason {
28
28
  /** Report reason type. */
29
- category?: Category;
29
+ category?: CategoryWithLiterals;
30
30
  /** Explanation of why the member is being reported. */
31
31
  description?: string | null;
32
32
  }
@@ -42,6 +42,8 @@ export declare enum Category {
42
42
  /** The member is reported for other reasons. */
43
43
  OTHER = "OTHER"
44
44
  }
45
+ /** @enumType */
46
+ export type CategoryWithLiterals = Category | 'UNKNOWN' | 'SPAM' | 'IMPERSONATION' | 'HARASSMENT' | 'OTHER';
45
47
  export interface ReportMemberRequest {
46
48
  /** Details of a member to report. */
47
49
  memberReport: MemberReport;
@@ -115,12 +117,14 @@ export interface Sorting {
115
117
  */
116
118
  fieldName?: string;
117
119
  /** Sort order. */
118
- order?: SortOrder;
120
+ order?: SortOrderWithLiterals;
119
121
  }
120
122
  export declare enum SortOrder {
121
123
  ASC = "ASC",
122
124
  DESC = "DESC"
123
125
  }
126
+ /** @enumType */
127
+ export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
124
128
  export interface CursorPaging {
125
129
  /**
126
130
  * The number of items to load.
@@ -224,25 +228,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
224
228
  updatedEvent?: EntityUpdatedEvent;
225
229
  deletedEvent?: EntityDeletedEvent;
226
230
  actionEvent?: ActionEvent;
227
- /**
228
- * Unique event ID.
229
- * Allows clients to ignore duplicate webhooks.
230
- */
231
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
231
232
  _id?: string;
232
233
  /**
233
- * Assumes actions are also always typed to an entity_type
234
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
234
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
235
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
235
236
  */
236
237
  entityFqdn?: string;
237
238
  /**
238
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
239
- * This is although the created/updated/deleted notion is duplication of the oneof types
240
- * Example: created/updated/deleted/started/completed/email_opened
239
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
240
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
241
241
  */
242
242
  slug?: string;
243
243
  /** ID of the entity associated with the event. */
244
244
  entityId?: string;
245
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
245
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
246
246
  eventTime?: Date | null;
247
247
  /**
248
248
  * Whether the event was triggered as a result of a privacy regulation application
@@ -252,12 +252,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
252
252
  /** If present, indicates the action that triggered the event. */
253
253
  originatedFrom?: string | null;
254
254
  /**
255
- * A sequence number defining the order of updates to the underlying entity.
256
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
257
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
258
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
259
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
260
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
255
+ * 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.
256
+ * 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.
261
257
  */
262
258
  entityEventSequence?: string | null;
263
259
  }
@@ -283,7 +279,7 @@ export interface EntityUpdatedEvent {
283
279
  currentEntity?: string;
284
280
  }
285
281
  export interface EntityDeletedEvent {
286
- /** Entity that was deleted */
282
+ /** Entity that was deleted. */
287
283
  deletedEntity?: string | null;
288
284
  }
289
285
  export interface ActionEvent {
@@ -329,7 +325,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
329
325
  */
330
326
  appId?: string;
331
327
  /** @readonly */
332
- identityType?: WebhookIdentityType;
328
+ identityType?: WebhookIdentityTypeWithLiterals;
333
329
  }
334
330
  /** @oneof */
335
331
  export interface IdentificationDataIdOneOf {
@@ -361,6 +357,8 @@ export declare enum WebhookIdentityType {
361
357
  WIX_USER = "WIX_USER",
362
358
  APP = "APP"
363
359
  }
360
+ /** @enumType */
361
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
364
362
  export interface BaseEventMetadata {
365
363
  /**
366
364
  * App instance ID.
@@ -376,25 +374,21 @@ export interface BaseEventMetadata {
376
374
  identity?: IdentificationData;
377
375
  }
378
376
  export interface EventMetadata extends BaseEventMetadata {
379
- /**
380
- * Unique event ID.
381
- * Allows clients to ignore duplicate webhooks.
382
- */
377
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
383
378
  _id?: string;
384
379
  /**
385
- * Assumes actions are also always typed to an entity_type
386
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
380
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
381
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
387
382
  */
388
383
  entityFqdn?: string;
389
384
  /**
390
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
391
- * This is although the created/updated/deleted notion is duplication of the oneof types
392
- * Example: created/updated/deleted/started/completed/email_opened
385
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
386
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
393
387
  */
394
388
  slug?: string;
395
389
  /** ID of the entity associated with the event. */
396
390
  entityId?: string;
397
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
391
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
398
392
  eventTime?: Date | null;
399
393
  /**
400
394
  * Whether the event was triggered as a result of a privacy regulation application
@@ -404,12 +398,8 @@ export interface EventMetadata extends BaseEventMetadata {
404
398
  /** If present, indicates the action that triggered the event. */
405
399
  originatedFrom?: string | null;
406
400
  /**
407
- * A sequence number defining the order of updates to the underlying entity.
408
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
409
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
410
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
411
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
412
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
401
+ * 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.
402
+ * 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.
413
403
  */
414
404
  entityEventSequence?: string | null;
415
405
  }
@@ -539,22 +529,22 @@ export interface MemberReportsQueryBuilder {
539
529
  * @param value - Value to compare against.
540
530
  * @documentationMaturity preview
541
531
  */
542
- ge: (propertyName: '_createdDate', value: any) => MemberReportsQueryBuilder;
532
+ ge: (propertyName: '_id' | 'reportedMemberId' | 'reportingMemberId' | '_createdDate', value: any) => MemberReportsQueryBuilder;
543
533
  /** @param propertyName - Property whose value is compared with `value`.
544
534
  * @param value - Value to compare against.
545
535
  * @documentationMaturity preview
546
536
  */
547
- gt: (propertyName: '_createdDate', value: any) => MemberReportsQueryBuilder;
537
+ gt: (propertyName: '_id' | 'reportedMemberId' | 'reportingMemberId' | '_createdDate', value: any) => MemberReportsQueryBuilder;
548
538
  /** @param propertyName - Property whose value is compared with `value`.
549
539
  * @param value - Value to compare against.
550
540
  * @documentationMaturity preview
551
541
  */
552
- le: (propertyName: '_createdDate', value: any) => MemberReportsQueryBuilder;
542
+ le: (propertyName: '_id' | 'reportedMemberId' | 'reportingMemberId' | '_createdDate', value: any) => MemberReportsQueryBuilder;
553
543
  /** @param propertyName - Property whose value is compared with `value`.
554
544
  * @param value - Value to compare against.
555
545
  * @documentationMaturity preview
556
546
  */
557
- lt: (propertyName: '_createdDate', value: any) => MemberReportsQueryBuilder;
547
+ lt: (propertyName: '_id' | 'reportedMemberId' | 'reportingMemberId' | '_createdDate', value: any) => MemberReportsQueryBuilder;
558
548
  /** @param propertyName - Property whose value is compared with `string`.
559
549
  * @param string - String to compare against. Case-insensitive.
560
550
  * @documentationMaturity preview
@@ -28,6 +28,8 @@ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
28
28
  const query_builder_1 = require("@wix/sdk-runtime/query-builder");
29
29
  const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
30
30
  const ambassadorWixMembersV1MemberReport = __importStar(require("./members-v1-member-report-member-report.http.js"));
31
+ // @ts-ignore
32
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
31
33
  var Category;
32
34
  (function (Category) {
33
35
  /** Unknown category. This value is unused. */
@@ -137,7 +139,7 @@ function queryMemberReports() {
137
139
  });
138
140
  },
139
141
  responseTransformer: ({ data, }) => {
140
- const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(data);
142
+ const transformedData = (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(data, []));
141
143
  return {
142
144
  items: transformedData?.memberReports,
143
145
  pagingMetadata: transformedData?.pagingMetadata,
@@ -1 +1 @@
1
- {"version":3,"file":"members-v1-member-report-member-report.universal.js","sourceRoot":"","sources":["../../../src/members-v1-member-report-member-report.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,qHAAuG;AAoCvG,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,8CAA8C;IAC9C,+BAAmB,CAAA;IACnB,uCAAuC;IACvC,yBAAa,CAAA;IACb,gDAAgD;IAChD,2CAA+B,CAAA;IAC/B,6CAA6C;IAC7C,qCAAyB,CAAA;IACzB,gDAAgD;IAChD,2BAAe,CAAA;AACjB,CAAC,EAXW,QAAQ,wBAAR,QAAQ,QAWnB;AAsFD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAoQD,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;AAyID;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,YAAY,CAChC,YAA2E;IAS3E,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,YAAY,EAAE,YAAY;KAC3B,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,kCAAkC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAEzE,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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CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA5CD,oDA4CC;AAOD;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,mBAAmB,CAAC,QAAgB;IACxD,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IAE9E,MAAM,OAAO,GACX,kCAAkC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAElE,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;IACnC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;YAC9C,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,UAAU,CAAC,CACb,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA9BD,kDA8BC"}
1
+ {"version":3,"file":"members-v1-member-report-member-report.universal.js","sourceRoot":"","sources":["../../../src/members-v1-member-report-member-report.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,qHAAuG;AACvG,aAAa;AACb,sFAAkF;A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;AA5CD,oDA4CC;AAOD;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,mBAAmB,CAAC,QAAgB;IACxD,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IAE9E,MAAM,OAAO,GACX,kCAAkC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAElE,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;IACnC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;YAC9C,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,UAAU,CAAC,CACb,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA9BD,kDA8BC"}
@@ -25,7 +25,7 @@ export interface MemberReport {
25
25
  }
26
26
  export interface Reason {
27
27
  /** Report reason type. */
28
- category?: Category;
28
+ category?: CategoryWithLiterals;
29
29
  /** Explanation of why the member is being reported. */
30
30
  description?: string | null;
31
31
  }
@@ -41,6 +41,8 @@ export declare enum Category {
41
41
  /** The member is reported for other reasons. */
42
42
  OTHER = "OTHER"
43
43
  }
44
+ /** @enumType */
45
+ export type CategoryWithLiterals = Category | 'UNKNOWN' | 'SPAM' | 'IMPERSONATION' | 'HARASSMENT' | 'OTHER';
44
46
  export interface ReportMemberRequest {
45
47
  /** Details of a member to report. */
46
48
  memberReport: MemberReport;
@@ -114,12 +116,14 @@ export interface Sorting {
114
116
  */
115
117
  fieldName?: string;
116
118
  /** Sort order. */
117
- order?: SortOrder;
119
+ order?: SortOrderWithLiterals;
118
120
  }
119
121
  export declare enum SortOrder {
120
122
  ASC = "ASC",
121
123
  DESC = "DESC"
122
124
  }
125
+ /** @enumType */
126
+ export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
123
127
  export interface CursorPaging {
124
128
  /**
125
129
  * The number of items to load.
@@ -223,25 +227,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
223
227
  updatedEvent?: EntityUpdatedEvent;
224
228
  deletedEvent?: EntityDeletedEvent;
225
229
  actionEvent?: ActionEvent;
226
- /**
227
- * Unique event ID.
228
- * Allows clients to ignore duplicate webhooks.
229
- */
230
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
230
231
  id?: string;
231
232
  /**
232
- * Assumes actions are also always typed to an entity_type
233
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
233
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
234
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
234
235
  */
235
236
  entityFqdn?: string;
236
237
  /**
237
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
238
- * This is although the created/updated/deleted notion is duplication of the oneof types
239
- * Example: created/updated/deleted/started/completed/email_opened
238
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
239
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
240
240
  */
241
241
  slug?: string;
242
242
  /** ID of the entity associated with the event. */
243
243
  entityId?: string;
244
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
244
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
245
245
  eventTime?: Date | null;
246
246
  /**
247
247
  * Whether the event was triggered as a result of a privacy regulation application
@@ -251,12 +251,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
251
251
  /** If present, indicates the action that triggered the event. */
252
252
  originatedFrom?: string | null;
253
253
  /**
254
- * A sequence number defining the order of updates to the underlying entity.
255
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
256
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
257
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
258
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
259
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
254
+ * 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.
255
+ * 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.
260
256
  */
261
257
  entityEventSequence?: string | null;
262
258
  }
@@ -284,7 +280,7 @@ export interface EntityUpdatedEvent {
284
280
  currentEntityAsJson?: string;
285
281
  }
286
282
  export interface EntityDeletedEvent {
287
- /** Entity that was deleted */
283
+ /** Entity that was deleted. */
288
284
  deletedEntityAsJson?: string | null;
289
285
  }
290
286
  export interface ActionEvent {
@@ -330,7 +326,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
330
326
  */
331
327
  appId?: string;
332
328
  /** @readonly */
333
- identityType?: WebhookIdentityType;
329
+ identityType?: WebhookIdentityTypeWithLiterals;
334
330
  }
335
331
  /** @oneof */
336
332
  export interface IdentificationDataIdOneOf {
@@ -362,3 +358,5 @@ export declare enum WebhookIdentityType {
362
358
  WIX_USER = "WIX_USER",
363
359
  APP = "APP"
364
360
  }
361
+ /** @enumType */
362
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -1 +1 @@
1
- {"version":3,"file":"members-v1-member-report-member-report.types.js","sourceRoot":"","sources":["../../../src/members-v1-member-report-member-report.types.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAN,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,8CAA8C;IAC9C,+BAAmB,CAAA;IACnB,uCAAuC;IACvC,yBAAa,CAAA;IACb,gDAAgD;IAChD,2CAA+B,CAAA;IAC/B,6CAA6C;IAC7C,qCAAyB,CAAA;IACzB,gDAAgD;IAChD,2BAAe,CAAA;AACjB,CAAC,EAXW,QAAQ,KAAR,QAAQ,QAWnB;AAsFD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAsQD,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":"members-v1-member-report-member-report.types.js","sourceRoot":"","sources":["../../../src/members-v1-member-report-member-report.types.ts"],"names":[],"mappings":"AAiCA,MAAM,CAAN,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,8CAA8C;IAC9C,+BAAmB,CAAA;IACnB,uCAAuC;IACvC,yBAAa,CAAA;IACb,gDAAgD;IAChD,2CAA+B,CAAA;IAC/B,6CAA6C;IAC7C,qCAAyB,CAAA;IACzB,gDAAgD;IAChD,2BAAe,CAAA;AACjB,CAAC,EAXW,QAAQ,KAAR,QAAQ,QAWnB;AA+FD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAiQD,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"}
@@ -26,7 +26,7 @@ export interface MemberReport {
26
26
  }
27
27
  export interface Reason {
28
28
  /** Report reason type. */
29
- category?: Category;
29
+ category?: CategoryWithLiterals;
30
30
  /** Explanation of why the member is being reported. */
31
31
  description?: string | null;
32
32
  }
@@ -42,6 +42,8 @@ export declare enum Category {
42
42
  /** The member is reported for other reasons. */
43
43
  OTHER = "OTHER"
44
44
  }
45
+ /** @enumType */
46
+ export type CategoryWithLiterals = Category | 'UNKNOWN' | 'SPAM' | 'IMPERSONATION' | 'HARASSMENT' | 'OTHER';
45
47
  export interface ReportMemberRequest {
46
48
  /** Details of a member to report. */
47
49
  memberReport: MemberReport;
@@ -115,12 +117,14 @@ export interface Sorting {
115
117
  */
116
118
  fieldName?: string;
117
119
  /** Sort order. */
118
- order?: SortOrder;
120
+ order?: SortOrderWithLiterals;
119
121
  }
120
122
  export declare enum SortOrder {
121
123
  ASC = "ASC",
122
124
  DESC = "DESC"
123
125
  }
126
+ /** @enumType */
127
+ export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
124
128
  export interface CursorPaging {
125
129
  /**
126
130
  * The number of items to load.
@@ -224,25 +228,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
224
228
  updatedEvent?: EntityUpdatedEvent;
225
229
  deletedEvent?: EntityDeletedEvent;
226
230
  actionEvent?: ActionEvent;
227
- /**
228
- * Unique event ID.
229
- * Allows clients to ignore duplicate webhooks.
230
- */
231
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
231
232
  _id?: string;
232
233
  /**
233
- * Assumes actions are also always typed to an entity_type
234
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
234
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
235
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
235
236
  */
236
237
  entityFqdn?: string;
237
238
  /**
238
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
239
- * This is although the created/updated/deleted notion is duplication of the oneof types
240
- * Example: created/updated/deleted/started/completed/email_opened
239
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
240
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
241
241
  */
242
242
  slug?: string;
243
243
  /** ID of the entity associated with the event. */
244
244
  entityId?: string;
245
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
245
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
246
246
  eventTime?: Date | null;
247
247
  /**
248
248
  * Whether the event was triggered as a result of a privacy regulation application
@@ -252,12 +252,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
252
252
  /** If present, indicates the action that triggered the event. */
253
253
  originatedFrom?: string | null;
254
254
  /**
255
- * A sequence number defining the order of updates to the underlying entity.
256
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
257
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
258
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
259
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
260
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
255
+ * 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.
256
+ * 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.
261
257
  */
262
258
  entityEventSequence?: string | null;
263
259
  }
@@ -283,7 +279,7 @@ export interface EntityUpdatedEvent {
283
279
  currentEntity?: string;
284
280
  }
285
281
  export interface EntityDeletedEvent {
286
- /** Entity that was deleted */
282
+ /** Entity that was deleted. */
287
283
  deletedEntity?: string | null;
288
284
  }
289
285
  export interface ActionEvent {
@@ -329,7 +325,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
329
325
  */
330
326
  appId?: string;
331
327
  /** @readonly */
332
- identityType?: WebhookIdentityType;
328
+ identityType?: WebhookIdentityTypeWithLiterals;
333
329
  }
334
330
  /** @oneof */
335
331
  export interface IdentificationDataIdOneOf {
@@ -361,6 +357,8 @@ export declare enum WebhookIdentityType {
361
357
  WIX_USER = "WIX_USER",
362
358
  APP = "APP"
363
359
  }
360
+ /** @enumType */
361
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
364
362
  export interface BaseEventMetadata {
365
363
  /**
366
364
  * App instance ID.
@@ -376,25 +374,21 @@ export interface BaseEventMetadata {
376
374
  identity?: IdentificationData;
377
375
  }
378
376
  export interface EventMetadata extends BaseEventMetadata {
379
- /**
380
- * Unique event ID.
381
- * Allows clients to ignore duplicate webhooks.
382
- */
377
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
383
378
  _id?: string;
384
379
  /**
385
- * Assumes actions are also always typed to an entity_type
386
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
380
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
381
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
387
382
  */
388
383
  entityFqdn?: string;
389
384
  /**
390
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
391
- * This is although the created/updated/deleted notion is duplication of the oneof types
392
- * Example: created/updated/deleted/started/completed/email_opened
385
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
386
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
393
387
  */
394
388
  slug?: string;
395
389
  /** ID of the entity associated with the event. */
396
390
  entityId?: string;
397
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
391
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
398
392
  eventTime?: Date | null;
399
393
  /**
400
394
  * Whether the event was triggered as a result of a privacy regulation application
@@ -404,12 +398,8 @@ export interface EventMetadata extends BaseEventMetadata {
404
398
  /** If present, indicates the action that triggered the event. */
405
399
  originatedFrom?: string | null;
406
400
  /**
407
- * A sequence number defining the order of updates to the underlying entity.
408
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
409
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
410
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
411
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
412
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
401
+ * 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.
402
+ * 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.
413
403
  */
414
404
  entityEventSequence?: string | null;
415
405
  }
@@ -539,22 +529,22 @@ export interface MemberReportsQueryBuilder {
539
529
  * @param value - Value to compare against.
540
530
  * @documentationMaturity preview
541
531
  */
542
- ge: (propertyName: '_createdDate', value: any) => MemberReportsQueryBuilder;
532
+ ge: (propertyName: '_id' | 'reportedMemberId' | 'reportingMemberId' | '_createdDate', value: any) => MemberReportsQueryBuilder;
543
533
  /** @param propertyName - Property whose value is compared with `value`.
544
534
  * @param value - Value to compare against.
545
535
  * @documentationMaturity preview
546
536
  */
547
- gt: (propertyName: '_createdDate', value: any) => MemberReportsQueryBuilder;
537
+ gt: (propertyName: '_id' | 'reportedMemberId' | 'reportingMemberId' | '_createdDate', value: any) => MemberReportsQueryBuilder;
548
538
  /** @param propertyName - Property whose value is compared with `value`.
549
539
  * @param value - Value to compare against.
550
540
  * @documentationMaturity preview
551
541
  */
552
- le: (propertyName: '_createdDate', value: any) => MemberReportsQueryBuilder;
542
+ le: (propertyName: '_id' | 'reportedMemberId' | 'reportingMemberId' | '_createdDate', value: any) => MemberReportsQueryBuilder;
553
543
  /** @param propertyName - Property whose value is compared with `value`.
554
544
  * @param value - Value to compare against.
555
545
  * @documentationMaturity preview
556
546
  */
557
- lt: (propertyName: '_createdDate', value: any) => MemberReportsQueryBuilder;
547
+ lt: (propertyName: '_id' | 'reportedMemberId' | 'reportingMemberId' | '_createdDate', value: any) => MemberReportsQueryBuilder;
558
548
  /** @param propertyName - Property whose value is compared with `string`.
559
549
  * @param string - String to compare against. Case-insensitive.
560
550
  * @documentationMaturity preview