@wix/auto_sdk_members_badges 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/badges-v3-badge-badges.types.d.ts +15 -19
- package/build/cjs/src/badges-v3-badge-badges.types.js.map +1 -1
- package/build/cjs/src/badges-v3-badge-badges.universal.d.ts +43 -35
- package/build/cjs/src/badges-v3-badge-badges.universal.js +10 -0
- package/build/cjs/src/badges-v3-badge-badges.universal.js.map +1 -1
- package/build/es/src/badges-v3-badge-badges.types.d.ts +15 -19
- package/build/es/src/badges-v3-badge-badges.types.js.map +1 -1
- package/build/es/src/badges-v3-badge-badges.universal.d.ts +43 -35
- package/build/es/src/badges-v3-badge-badges.universal.js +10 -0
- package/build/es/src/badges-v3-badge-badges.universal.js.map +1 -1
- package/build/internal/cjs/src/badges-v3-badge-badges.types.d.ts +15 -19
- package/build/internal/cjs/src/badges-v3-badge-badges.types.js.map +1 -1
- package/build/internal/cjs/src/badges-v3-badge-badges.universal.d.ts +43 -35
- package/build/internal/cjs/src/badges-v3-badge-badges.universal.js +10 -0
- package/build/internal/cjs/src/badges-v3-badge-badges.universal.js.map +1 -1
- package/build/internal/es/src/badges-v3-badge-badges.types.d.ts +15 -19
- package/build/internal/es/src/badges-v3-badge-badges.types.js.map +1 -1
- package/build/internal/es/src/badges-v3-badge-badges.universal.d.ts +43 -35
- package/build/internal/es/src/badges-v3-badge-badges.universal.js +10 -0
- package/build/internal/es/src/badges-v3-badge-badges.universal.js.map +1 -1
- package/package.json +4 -4
|
@@ -128,12 +128,14 @@ export interface Sorting {
|
|
|
128
128
|
*/
|
|
129
129
|
fieldName?: string;
|
|
130
130
|
/** Sort order. */
|
|
131
|
-
order?:
|
|
131
|
+
order?: SortOrderWithLiterals;
|
|
132
132
|
}
|
|
133
133
|
export declare enum SortOrder {
|
|
134
134
|
ASC = "ASC",
|
|
135
135
|
DESC = "DESC"
|
|
136
136
|
}
|
|
137
|
+
/** @enumType */
|
|
138
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
137
139
|
export interface QueryBadgesResponse {
|
|
138
140
|
/** Retrieved badges. */
|
|
139
141
|
badges?: Badge[];
|
|
@@ -374,25 +376,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
374
376
|
updatedEvent?: EntityUpdatedEvent;
|
|
375
377
|
deletedEvent?: EntityDeletedEvent;
|
|
376
378
|
actionEvent?: ActionEvent;
|
|
377
|
-
/**
|
|
378
|
-
* Unique event ID.
|
|
379
|
-
* Allows clients to ignore duplicate webhooks.
|
|
380
|
-
*/
|
|
379
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
381
380
|
id?: string;
|
|
382
381
|
/**
|
|
383
|
-
*
|
|
384
|
-
*
|
|
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`.
|
|
385
384
|
*/
|
|
386
385
|
entityFqdn?: string;
|
|
387
386
|
/**
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
* 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`.
|
|
391
389
|
*/
|
|
392
390
|
slug?: string;
|
|
393
391
|
/** ID of the entity associated with the event. */
|
|
394
392
|
entityId?: string;
|
|
395
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
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`. */
|
|
396
394
|
eventTime?: Date | null;
|
|
397
395
|
/**
|
|
398
396
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -402,12 +400,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
402
400
|
/** If present, indicates the action that triggered the event. */
|
|
403
401
|
originatedFrom?: string | null;
|
|
404
402
|
/**
|
|
405
|
-
* A sequence number
|
|
406
|
-
*
|
|
407
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
408
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
409
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
410
|
-
* 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.
|
|
411
405
|
*/
|
|
412
406
|
entityEventSequence?: string | null;
|
|
413
407
|
}
|
|
@@ -435,7 +429,7 @@ export interface EntityUpdatedEvent {
|
|
|
435
429
|
currentEntityAsJson?: string;
|
|
436
430
|
}
|
|
437
431
|
export interface EntityDeletedEvent {
|
|
438
|
-
/** Entity that was deleted */
|
|
432
|
+
/** Entity that was deleted. */
|
|
439
433
|
deletedEntityAsJson?: string | null;
|
|
440
434
|
}
|
|
441
435
|
export interface ActionEvent {
|
|
@@ -479,7 +473,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
479
473
|
*/
|
|
480
474
|
appId?: string;
|
|
481
475
|
/** @readonly */
|
|
482
|
-
identityType?:
|
|
476
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
483
477
|
}
|
|
484
478
|
/** @oneof */
|
|
485
479
|
export interface IdentificationDataIdOneOf {
|
|
@@ -511,3 +505,5 @@ export declare enum WebhookIdentityType {
|
|
|
511
505
|
WIX_USER = "WIX_USER",
|
|
512
506
|
APP = "APP"
|
|
513
507
|
}
|
|
508
|
+
/** @enumType */
|
|
509
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badges-v3-badge-badges.types.js","sourceRoot":"","sources":["../../../src/badges-v3-badge-badges.types.ts"],"names":[],"mappings":";;;AA+IA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;
|
|
1
|
+
{"version":3,"file":"badges-v3-badge-badges.types.js","sourceRoot":"","sources":["../../../src/badges-v3-badge-badges.types.ts"],"names":[],"mappings":";;;AA+IA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAoZD,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"}
|
|
@@ -124,12 +124,14 @@ export interface Sorting {
|
|
|
124
124
|
*/
|
|
125
125
|
fieldName?: string;
|
|
126
126
|
/** Sort order. */
|
|
127
|
-
order?:
|
|
127
|
+
order?: SortOrderWithLiterals;
|
|
128
128
|
}
|
|
129
129
|
export declare enum SortOrder {
|
|
130
130
|
ASC = "ASC",
|
|
131
131
|
DESC = "DESC"
|
|
132
132
|
}
|
|
133
|
+
/** @enumType */
|
|
134
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
133
135
|
export interface QueryBadgesResponse {
|
|
134
136
|
/** Retrieved badges. */
|
|
135
137
|
badges?: Badge[];
|
|
@@ -367,25 +369,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
367
369
|
updatedEvent?: EntityUpdatedEvent;
|
|
368
370
|
deletedEvent?: EntityDeletedEvent;
|
|
369
371
|
actionEvent?: ActionEvent;
|
|
370
|
-
/**
|
|
371
|
-
* Unique event ID.
|
|
372
|
-
* Allows clients to ignore duplicate webhooks.
|
|
373
|
-
*/
|
|
372
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
374
373
|
_id?: string;
|
|
375
374
|
/**
|
|
376
|
-
*
|
|
377
|
-
*
|
|
375
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
376
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
378
377
|
*/
|
|
379
378
|
entityFqdn?: string;
|
|
380
379
|
/**
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
380
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
381
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
384
382
|
*/
|
|
385
383
|
slug?: string;
|
|
386
384
|
/** ID of the entity associated with the event. */
|
|
387
385
|
entityId?: string;
|
|
388
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
386
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
389
387
|
eventTime?: Date | null;
|
|
390
388
|
/**
|
|
391
389
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -395,12 +393,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
395
393
|
/** If present, indicates the action that triggered the event. */
|
|
396
394
|
originatedFrom?: string | null;
|
|
397
395
|
/**
|
|
398
|
-
* A sequence number
|
|
399
|
-
*
|
|
400
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
401
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
402
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
403
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
396
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
397
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
404
398
|
*/
|
|
405
399
|
entityEventSequence?: string | null;
|
|
406
400
|
}
|
|
@@ -426,7 +420,7 @@ export interface EntityUpdatedEvent {
|
|
|
426
420
|
currentEntity?: string;
|
|
427
421
|
}
|
|
428
422
|
export interface EntityDeletedEvent {
|
|
429
|
-
/** Entity that was deleted */
|
|
423
|
+
/** Entity that was deleted. */
|
|
430
424
|
deletedEntity?: string | null;
|
|
431
425
|
}
|
|
432
426
|
export interface ActionEvent {
|
|
@@ -470,7 +464,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
470
464
|
*/
|
|
471
465
|
appId?: string;
|
|
472
466
|
/** @readonly */
|
|
473
|
-
identityType?:
|
|
467
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
474
468
|
}
|
|
475
469
|
/** @oneof */
|
|
476
470
|
export interface IdentificationDataIdOneOf {
|
|
@@ -502,6 +496,8 @@ export declare enum WebhookIdentityType {
|
|
|
502
496
|
WIX_USER = "WIX_USER",
|
|
503
497
|
APP = "APP"
|
|
504
498
|
}
|
|
499
|
+
/** @enumType */
|
|
500
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
505
501
|
export interface BaseEventMetadata {
|
|
506
502
|
/**
|
|
507
503
|
* App instance ID.
|
|
@@ -517,25 +513,21 @@ export interface BaseEventMetadata {
|
|
|
517
513
|
identity?: IdentificationData;
|
|
518
514
|
}
|
|
519
515
|
export interface EventMetadata extends BaseEventMetadata {
|
|
520
|
-
/**
|
|
521
|
-
* Unique event ID.
|
|
522
|
-
* Allows clients to ignore duplicate webhooks.
|
|
523
|
-
*/
|
|
516
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
524
517
|
_id?: string;
|
|
525
518
|
/**
|
|
526
|
-
*
|
|
527
|
-
*
|
|
519
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
520
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
528
521
|
*/
|
|
529
522
|
entityFqdn?: string;
|
|
530
523
|
/**
|
|
531
|
-
*
|
|
532
|
-
*
|
|
533
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
524
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
525
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
534
526
|
*/
|
|
535
527
|
slug?: string;
|
|
536
528
|
/** ID of the entity associated with the event. */
|
|
537
529
|
entityId?: string;
|
|
538
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
530
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
539
531
|
eventTime?: Date | null;
|
|
540
532
|
/**
|
|
541
533
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -545,12 +537,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
545
537
|
/** If present, indicates the action that triggered the event. */
|
|
546
538
|
originatedFrom?: string | null;
|
|
547
539
|
/**
|
|
548
|
-
* A sequence number
|
|
549
|
-
*
|
|
550
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
551
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
552
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
553
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
540
|
+
* 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.
|
|
541
|
+
* 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.
|
|
554
542
|
*/
|
|
555
543
|
entityEventSequence?: string | null;
|
|
556
544
|
}
|
|
@@ -560,6 +548,8 @@ export interface BadgeAssignedEnvelope {
|
|
|
560
548
|
}
|
|
561
549
|
/**
|
|
562
550
|
* Triggered when a member receives a badge.
|
|
551
|
+
* @permissionScope Manage Stores
|
|
552
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
563
553
|
* @permissionScope Manage Challenges
|
|
564
554
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
565
555
|
* @permissionScope Manage Badges
|
|
@@ -579,6 +569,8 @@ export interface BadgeUnassignedEnvelope {
|
|
|
579
569
|
}
|
|
580
570
|
/**
|
|
581
571
|
* Triggered when a member's badge is removed.
|
|
572
|
+
* @permissionScope Manage Stores
|
|
573
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
582
574
|
* @permissionScope Manage Challenges
|
|
583
575
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
584
576
|
* @permissionScope Manage Badges
|
|
@@ -598,6 +590,8 @@ export interface BadgeCreatedEnvelope {
|
|
|
598
590
|
}
|
|
599
591
|
/**
|
|
600
592
|
* Triggered when a badge is created.
|
|
593
|
+
* @permissionScope Manage Stores
|
|
594
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
601
595
|
* @permissionScope Manage Challenges
|
|
602
596
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
603
597
|
* @permissionScope Manage Badges
|
|
@@ -616,6 +610,8 @@ export interface BadgeDeletedEnvelope {
|
|
|
616
610
|
}
|
|
617
611
|
/**
|
|
618
612
|
* Triggered when a badge is deleted.
|
|
613
|
+
* @permissionScope Manage Stores
|
|
614
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
619
615
|
* @permissionScope Manage Challenges
|
|
620
616
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
621
617
|
* @permissionScope Manage Badges
|
|
@@ -635,6 +631,8 @@ export interface BadgeUpdatedEnvelope {
|
|
|
635
631
|
}
|
|
636
632
|
/**
|
|
637
633
|
* Triggered when a badge is updated.
|
|
634
|
+
* @permissionScope Manage Stores
|
|
635
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
638
636
|
* @permissionScope Manage Challenges
|
|
639
637
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
640
638
|
* @permissionScope Manage Badges
|
|
@@ -750,6 +748,8 @@ export interface UpdateBadge {
|
|
|
750
748
|
* This method is not universal and only runs on the backend.
|
|
751
749
|
* @public
|
|
752
750
|
* @permissionId BADGES.BADGE_READ
|
|
751
|
+
* @permissionScope Manage Stores
|
|
752
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
753
753
|
* @permissionScope Manage Challenges
|
|
754
754
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
755
755
|
* @permissionScope Manage Badges
|
|
@@ -775,6 +775,8 @@ export interface ListBadgesOptions {
|
|
|
775
775
|
* @public
|
|
776
776
|
* @requiredField _id
|
|
777
777
|
* @permissionId BADGES.BADGE_READ
|
|
778
|
+
* @permissionScope Manage Stores
|
|
779
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
778
780
|
* @permissionScope Manage Challenges
|
|
779
781
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
780
782
|
* @permissionScope Manage Badges
|
|
@@ -846,6 +848,8 @@ export declare function unassignBadge(_id: string, memberIds: string[]): Promise
|
|
|
846
848
|
* @public
|
|
847
849
|
* @requiredField _id
|
|
848
850
|
* @permissionId BADGES.BADGE_READ_MEMBERS
|
|
851
|
+
* @permissionScope Manage Stores
|
|
852
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
849
853
|
* @permissionScope Manage Challenges
|
|
850
854
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
851
855
|
* @permissionScope Manage Badges
|
|
@@ -871,6 +875,8 @@ export interface ListMembersByBadgeOptions {
|
|
|
871
875
|
* @public
|
|
872
876
|
* @requiredField memberIds
|
|
873
877
|
* @permissionId BADGES.BADGE_READ_MEMBERS
|
|
878
|
+
* @permissionScope Manage Stores
|
|
879
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
874
880
|
* @permissionScope Manage Challenges
|
|
875
881
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
876
882
|
* @permissionScope Manage Badges
|
|
@@ -888,6 +894,8 @@ export declare function listBadgesPerMember(memberIds: string[]): Promise<NonNul
|
|
|
888
894
|
* This method is not universal function and only runs on the backend.
|
|
889
895
|
* @public
|
|
890
896
|
* @permissionId BADGES.BADGE_READ_MEMBERS
|
|
897
|
+
* @permissionScope Manage Stores
|
|
898
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
891
899
|
* @permissionScope Manage Challenges
|
|
892
900
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
893
901
|
* @permissionScope Manage Badges
|
|
@@ -128,6 +128,8 @@ exports.updateBadge = updateBadge;
|
|
|
128
128
|
* This method is not universal and only runs on the backend.
|
|
129
129
|
* @public
|
|
130
130
|
* @permissionId BADGES.BADGE_READ
|
|
131
|
+
* @permissionScope Manage Stores
|
|
132
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
131
133
|
* @permissionScope Manage Challenges
|
|
132
134
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
133
135
|
* @permissionScope Manage Badges
|
|
@@ -170,6 +172,8 @@ exports.listBadges = listBadges;
|
|
|
170
172
|
* @public
|
|
171
173
|
* @requiredField _id
|
|
172
174
|
* @permissionId BADGES.BADGE_READ
|
|
175
|
+
* @permissionScope Manage Stores
|
|
176
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
173
177
|
* @permissionScope Manage Challenges
|
|
174
178
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
175
179
|
* @permissionScope Manage Badges
|
|
@@ -329,6 +333,8 @@ exports.unassignBadge = unassignBadge;
|
|
|
329
333
|
* @public
|
|
330
334
|
* @requiredField _id
|
|
331
335
|
* @permissionId BADGES.BADGE_READ_MEMBERS
|
|
336
|
+
* @permissionScope Manage Stores
|
|
337
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
332
338
|
* @permissionScope Manage Challenges
|
|
333
339
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
334
340
|
* @permissionScope Manage Badges
|
|
@@ -374,6 +380,8 @@ exports.listMembersByBadge = listMembersByBadge;
|
|
|
374
380
|
* @public
|
|
375
381
|
* @requiredField memberIds
|
|
376
382
|
* @permissionId BADGES.BADGE_READ_MEMBERS
|
|
383
|
+
* @permissionScope Manage Stores
|
|
384
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
377
385
|
* @permissionScope Manage Challenges
|
|
378
386
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
379
387
|
* @permissionScope Manage Badges
|
|
@@ -414,6 +422,8 @@ exports.listBadgesPerMember = listBadgesPerMember;
|
|
|
414
422
|
* This method is not universal function and only runs on the backend.
|
|
415
423
|
* @public
|
|
416
424
|
* @permissionId BADGES.BADGE_READ_MEMBERS
|
|
425
|
+
* @permissionScope Manage Stores
|
|
426
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
417
427
|
* @permissionScope Manage Challenges
|
|
418
428
|
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
419
429
|
* @permissionScope Manage Badges
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badges-v3-badge-badges.universal.js","sourceRoot":"","sources":["../../../src/badges-v3-badge-badges.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,6FAA+E;AA4I/E,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;
|
|
1
|
+
{"version":3,"file":"badges-v3-badge-badges.universal.js","sourceRoot":"","sources":["../../../src/badges-v3-badge-badges.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,6FAA+E;AA4I/E,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA+YD,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;AAuLD;;;;;;;;;;;;;;;;;;GAkBG;AACI,KAAK,UAAU,WAAW,CAC/B,KAAyE;IAEzE,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAExE,MAAM,OAAO,GAAG,0BAA0B,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEhE,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,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GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAxCD,4DAwCC"}
|
|
@@ -128,12 +128,14 @@ export interface Sorting {
|
|
|
128
128
|
*/
|
|
129
129
|
fieldName?: string;
|
|
130
130
|
/** Sort order. */
|
|
131
|
-
order?:
|
|
131
|
+
order?: SortOrderWithLiterals;
|
|
132
132
|
}
|
|
133
133
|
export declare enum SortOrder {
|
|
134
134
|
ASC = "ASC",
|
|
135
135
|
DESC = "DESC"
|
|
136
136
|
}
|
|
137
|
+
/** @enumType */
|
|
138
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
137
139
|
export interface QueryBadgesResponse {
|
|
138
140
|
/** Retrieved badges. */
|
|
139
141
|
badges?: Badge[];
|
|
@@ -374,25 +376,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
374
376
|
updatedEvent?: EntityUpdatedEvent;
|
|
375
377
|
deletedEvent?: EntityDeletedEvent;
|
|
376
378
|
actionEvent?: ActionEvent;
|
|
377
|
-
/**
|
|
378
|
-
* Unique event ID.
|
|
379
|
-
* Allows clients to ignore duplicate webhooks.
|
|
380
|
-
*/
|
|
379
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
381
380
|
id?: string;
|
|
382
381
|
/**
|
|
383
|
-
*
|
|
384
|
-
*
|
|
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`.
|
|
385
384
|
*/
|
|
386
385
|
entityFqdn?: string;
|
|
387
386
|
/**
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
* 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`.
|
|
391
389
|
*/
|
|
392
390
|
slug?: string;
|
|
393
391
|
/** ID of the entity associated with the event. */
|
|
394
392
|
entityId?: string;
|
|
395
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
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`. */
|
|
396
394
|
eventTime?: Date | null;
|
|
397
395
|
/**
|
|
398
396
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -402,12 +400,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
402
400
|
/** If present, indicates the action that triggered the event. */
|
|
403
401
|
originatedFrom?: string | null;
|
|
404
402
|
/**
|
|
405
|
-
* A sequence number
|
|
406
|
-
*
|
|
407
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
408
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
409
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
410
|
-
* 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.
|
|
411
405
|
*/
|
|
412
406
|
entityEventSequence?: string | null;
|
|
413
407
|
}
|
|
@@ -435,7 +429,7 @@ export interface EntityUpdatedEvent {
|
|
|
435
429
|
currentEntityAsJson?: string;
|
|
436
430
|
}
|
|
437
431
|
export interface EntityDeletedEvent {
|
|
438
|
-
/** Entity that was deleted */
|
|
432
|
+
/** Entity that was deleted. */
|
|
439
433
|
deletedEntityAsJson?: string | null;
|
|
440
434
|
}
|
|
441
435
|
export interface ActionEvent {
|
|
@@ -479,7 +473,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
479
473
|
*/
|
|
480
474
|
appId?: string;
|
|
481
475
|
/** @readonly */
|
|
482
|
-
identityType?:
|
|
476
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
483
477
|
}
|
|
484
478
|
/** @oneof */
|
|
485
479
|
export interface IdentificationDataIdOneOf {
|
|
@@ -511,3 +505,5 @@ export declare enum WebhookIdentityType {
|
|
|
511
505
|
WIX_USER = "WIX_USER",
|
|
512
506
|
APP = "APP"
|
|
513
507
|
}
|
|
508
|
+
/** @enumType */
|
|
509
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badges-v3-badge-badges.types.js","sourceRoot":"","sources":["../../../src/badges-v3-badge-badges.types.ts"],"names":[],"mappings":"AA+IA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;
|
|
1
|
+
{"version":3,"file":"badges-v3-badge-badges.types.js","sourceRoot":"","sources":["../../../src/badges-v3-badge-badges.types.ts"],"names":[],"mappings":"AA+IA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAoZD,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"}
|