@wix/auto_sdk_media-collections_media-collections 1.0.0 → 1.0.2
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/collections-v1-collection-media-collections.types.d.ts +295 -71
- package/build/cjs/src/collections-v1-collection-media-collections.types.js.map +1 -1
- package/build/cjs/src/collections-v1-collection-media-collections.universal.d.ts +341 -81
- package/build/cjs/src/collections-v1-collection-media-collections.universal.js.map +1 -1
- package/build/es/src/collections-v1-collection-media-collections.types.d.ts +295 -71
- package/build/es/src/collections-v1-collection-media-collections.types.js.map +1 -1
- package/build/es/src/collections-v1-collection-media-collections.universal.d.ts +341 -81
- package/build/es/src/collections-v1-collection-media-collections.universal.js.map +1 -1
- package/build/internal/cjs/src/collections-v1-collection-media-collections.types.d.ts +295 -71
- package/build/internal/cjs/src/collections-v1-collection-media-collections.types.js.map +1 -1
- package/build/internal/cjs/src/collections-v1-collection-media-collections.universal.d.ts +341 -81
- package/build/internal/cjs/src/collections-v1-collection-media-collections.universal.js.map +1 -1
- package/build/internal/es/src/collections-v1-collection-media-collections.types.d.ts +295 -71
- package/build/internal/es/src/collections-v1-collection-media-collections.types.js.map +1 -1
- package/build/internal/es/src/collections-v1-collection-media-collections.universal.d.ts +341 -81
- package/build/internal/es/src/collections-v1-collection-media-collections.universal.js.map +1 -1
- package/package.json +4 -4
|
@@ -2,10 +2,15 @@ export interface MediaCollection {
|
|
|
2
2
|
/**
|
|
3
3
|
* Collection id
|
|
4
4
|
* @readonly
|
|
5
|
+
* @format GUID
|
|
5
6
|
*/
|
|
6
7
|
_id?: string;
|
|
7
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Collection name
|
|
10
|
+
* @maxLength 100
|
|
11
|
+
*/
|
|
8
12
|
name?: string;
|
|
13
|
+
/** @maxLength 500 */
|
|
9
14
|
description?: string | null;
|
|
10
15
|
/**
|
|
11
16
|
* total count of MediaCollection members
|
|
@@ -38,13 +43,23 @@ export interface CollectionMember {
|
|
|
38
43
|
/**
|
|
39
44
|
* Member id
|
|
40
45
|
* @readonly
|
|
46
|
+
* @format GUID
|
|
41
47
|
*/
|
|
42
48
|
memberId?: string;
|
|
43
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Member nickname
|
|
51
|
+
* @maxLength 100
|
|
52
|
+
*/
|
|
44
53
|
nickname?: string | null;
|
|
45
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Member slug
|
|
56
|
+
* @maxLength 100
|
|
57
|
+
*/
|
|
46
58
|
slug?: string | null;
|
|
47
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Member photo url
|
|
61
|
+
* @maxLength 200
|
|
62
|
+
*/
|
|
48
63
|
photoUrl?: string | null;
|
|
49
64
|
}
|
|
50
65
|
export interface MediaCollectionItem extends MediaCollectionItemMetadataOneOf {
|
|
@@ -57,6 +72,7 @@ export interface MediaCollectionItem extends MediaCollectionItemMetadataOneOf {
|
|
|
57
72
|
/**
|
|
58
73
|
* item id
|
|
59
74
|
* @readonly
|
|
75
|
+
* @format GUID
|
|
60
76
|
*/
|
|
61
77
|
_id?: string | null;
|
|
62
78
|
/** item url for photos or video */
|
|
@@ -167,7 +183,10 @@ export interface WixLinkLinkOneOf {
|
|
|
167
183
|
tpaPage?: TpaPageLink;
|
|
168
184
|
}
|
|
169
185
|
export interface ExternalLink {
|
|
170
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* The url of the page
|
|
188
|
+
* @format WEB_URL
|
|
189
|
+
*/
|
|
171
190
|
url?: string;
|
|
172
191
|
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
|
173
192
|
target?: string | null;
|
|
@@ -194,7 +213,10 @@ export interface PageLink {
|
|
|
194
213
|
pageId?: string;
|
|
195
214
|
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
|
196
215
|
target?: string | null;
|
|
197
|
-
/**
|
|
216
|
+
/**
|
|
217
|
+
* rel of link
|
|
218
|
+
* @maxSize 20
|
|
219
|
+
*/
|
|
198
220
|
rel?: LinkRel[];
|
|
199
221
|
}
|
|
200
222
|
export interface AnchorLink {
|
|
@@ -204,7 +226,10 @@ export interface AnchorLink {
|
|
|
204
226
|
anchorDataId?: string;
|
|
205
227
|
/** The page id we want from the site */
|
|
206
228
|
pageId?: string;
|
|
207
|
-
/**
|
|
229
|
+
/**
|
|
230
|
+
* rel of link
|
|
231
|
+
* @maxSize 20
|
|
232
|
+
*/
|
|
208
233
|
rel?: LinkRel[];
|
|
209
234
|
}
|
|
210
235
|
export interface DynamicPageLink {
|
|
@@ -214,7 +239,10 @@ export interface DynamicPageLink {
|
|
|
214
239
|
innerRoute?: string;
|
|
215
240
|
/** The data id (from the JSON page) of the anchor that should be used */
|
|
216
241
|
anchorDataId?: string | null;
|
|
217
|
-
/**
|
|
242
|
+
/**
|
|
243
|
+
* rel of link
|
|
244
|
+
* @maxSize 20
|
|
245
|
+
*/
|
|
218
246
|
rel?: LinkRel[];
|
|
219
247
|
}
|
|
220
248
|
export interface DocumentLink {
|
|
@@ -226,7 +254,10 @@ export interface DocumentLink {
|
|
|
226
254
|
indexable?: boolean;
|
|
227
255
|
}
|
|
228
256
|
export interface EmailLink {
|
|
229
|
-
/**
|
|
257
|
+
/**
|
|
258
|
+
* The email we will be sending a message to
|
|
259
|
+
* @format EMAIL
|
|
260
|
+
*/
|
|
230
261
|
recipient?: string;
|
|
231
262
|
/** The subject of the email */
|
|
232
263
|
subject?: string | null;
|
|
@@ -234,7 +265,11 @@ export interface EmailLink {
|
|
|
234
265
|
body?: string | null;
|
|
235
266
|
}
|
|
236
267
|
export interface PhoneLink {
|
|
237
|
-
/**
|
|
268
|
+
/**
|
|
269
|
+
* The phone number we want to link to
|
|
270
|
+
* @format PHONE
|
|
271
|
+
* @maxLength 100
|
|
272
|
+
*/
|
|
238
273
|
phoneNumber?: string;
|
|
239
274
|
}
|
|
240
275
|
export interface AddressLink {
|
|
@@ -242,7 +277,10 @@ export interface AddressLink {
|
|
|
242
277
|
address?: string;
|
|
243
278
|
}
|
|
244
279
|
export interface WhatsAppLink {
|
|
245
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* The whatsApp phone number we want to connect with
|
|
282
|
+
* @format PHONE
|
|
283
|
+
*/
|
|
246
284
|
phoneNumber?: string;
|
|
247
285
|
}
|
|
248
286
|
/** Link to a TPA page */
|
|
@@ -257,7 +295,10 @@ export interface TpaPageLink {
|
|
|
257
295
|
appDefinitionId?: string;
|
|
258
296
|
/** The relativepath of linked page */
|
|
259
297
|
path?: string;
|
|
260
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* rel of link
|
|
300
|
+
* @maxSize 20
|
|
301
|
+
*/
|
|
261
302
|
rel?: LinkRel[];
|
|
262
303
|
}
|
|
263
304
|
export declare enum DataType {
|
|
@@ -275,7 +316,11 @@ export interface PhotoMetadata {
|
|
|
275
316
|
focalPoint?: Point;
|
|
276
317
|
/** aka Exchangeable image file format */
|
|
277
318
|
exif?: Record<string, any> | null;
|
|
278
|
-
/**
|
|
319
|
+
/**
|
|
320
|
+
* the image quality
|
|
321
|
+
* @min 30
|
|
322
|
+
* @max 100
|
|
323
|
+
*/
|
|
279
324
|
quality?: number | null;
|
|
280
325
|
/** photo sharpening */
|
|
281
326
|
unsharpMasking?: UnsharpMasking;
|
|
@@ -289,11 +334,17 @@ export interface Point {
|
|
|
289
334
|
y?: number;
|
|
290
335
|
}
|
|
291
336
|
export interface UnsharpMasking {
|
|
292
|
-
/**
|
|
337
|
+
/**
|
|
338
|
+
* number controls the amount of contrast that is added at the edges.
|
|
339
|
+
* @max 5
|
|
340
|
+
*/
|
|
293
341
|
amount?: number | null;
|
|
294
342
|
/** number in pixels. The size of the edges to be enhanced */
|
|
295
343
|
radius?: number | null;
|
|
296
|
-
/**
|
|
344
|
+
/**
|
|
345
|
+
* The minimal level of brightness change that will be sharpened
|
|
346
|
+
* @max 1
|
|
347
|
+
*/
|
|
297
348
|
threshold?: number | null;
|
|
298
349
|
}
|
|
299
350
|
export interface VideoMetadata {
|
|
@@ -373,6 +424,7 @@ export declare enum PrivacySettings {
|
|
|
373
424
|
Secret = "Secret"
|
|
374
425
|
}
|
|
375
426
|
export interface PermanentSiteDeletedResponse {
|
|
427
|
+
/** @format GUID */
|
|
376
428
|
requestId?: string;
|
|
377
429
|
uniqueServiceIdentifier?: string;
|
|
378
430
|
status?: Status;
|
|
@@ -457,9 +509,15 @@ export interface ActionEvent {
|
|
|
457
509
|
body?: string;
|
|
458
510
|
}
|
|
459
511
|
export interface MessageEnvelope {
|
|
460
|
-
/**
|
|
512
|
+
/**
|
|
513
|
+
* App instance ID.
|
|
514
|
+
* @format GUID
|
|
515
|
+
*/
|
|
461
516
|
instanceId?: string | null;
|
|
462
|
-
/**
|
|
517
|
+
/**
|
|
518
|
+
* Event type.
|
|
519
|
+
* @maxLength 150
|
|
520
|
+
*/
|
|
463
521
|
eventType?: string;
|
|
464
522
|
/** The identification type and identity data. */
|
|
465
523
|
identity?: IdentificationData;
|
|
@@ -467,26 +525,50 @@ export interface MessageEnvelope {
|
|
|
467
525
|
data?: string;
|
|
468
526
|
}
|
|
469
527
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
470
|
-
/**
|
|
528
|
+
/**
|
|
529
|
+
* ID of a site visitor that has not logged in to the site.
|
|
530
|
+
* @format GUID
|
|
531
|
+
*/
|
|
471
532
|
anonymousVisitorId?: string;
|
|
472
|
-
/**
|
|
533
|
+
/**
|
|
534
|
+
* ID of a site visitor that has logged in to the site.
|
|
535
|
+
* @format GUID
|
|
536
|
+
*/
|
|
473
537
|
memberId?: string;
|
|
474
|
-
/**
|
|
538
|
+
/**
|
|
539
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
540
|
+
* @format GUID
|
|
541
|
+
*/
|
|
475
542
|
wixUserId?: string;
|
|
476
|
-
/**
|
|
543
|
+
/**
|
|
544
|
+
* ID of an app.
|
|
545
|
+
* @format GUID
|
|
546
|
+
*/
|
|
477
547
|
appId?: string;
|
|
478
548
|
/** @readonly */
|
|
479
549
|
identityType?: WebhookIdentityType;
|
|
480
550
|
}
|
|
481
551
|
/** @oneof */
|
|
482
552
|
export interface IdentificationDataIdOneOf {
|
|
483
|
-
/**
|
|
553
|
+
/**
|
|
554
|
+
* ID of a site visitor that has not logged in to the site.
|
|
555
|
+
* @format GUID
|
|
556
|
+
*/
|
|
484
557
|
anonymousVisitorId?: string;
|
|
485
|
-
/**
|
|
558
|
+
/**
|
|
559
|
+
* ID of a site visitor that has logged in to the site.
|
|
560
|
+
* @format GUID
|
|
561
|
+
*/
|
|
486
562
|
memberId?: string;
|
|
487
|
-
/**
|
|
563
|
+
/**
|
|
564
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
565
|
+
* @format GUID
|
|
566
|
+
*/
|
|
488
567
|
wixUserId?: string;
|
|
489
|
-
/**
|
|
568
|
+
/**
|
|
569
|
+
* ID of an app.
|
|
570
|
+
* @format GUID
|
|
571
|
+
*/
|
|
490
572
|
appId?: string;
|
|
491
573
|
}
|
|
492
574
|
export declare enum WebhookIdentityType {
|
|
@@ -522,19 +604,37 @@ export interface CollectionEventEventTypeOneOf {
|
|
|
522
604
|
memberLeftCollection?: MemberLeftCollection;
|
|
523
605
|
}
|
|
524
606
|
export interface CollectionItemId {
|
|
525
|
-
/**
|
|
607
|
+
/**
|
|
608
|
+
* Id of the gallery in ProGallery
|
|
609
|
+
* @format GUID
|
|
610
|
+
*/
|
|
526
611
|
galleryId?: string;
|
|
527
|
-
/**
|
|
612
|
+
/**
|
|
613
|
+
* Id of the item in ProGallery
|
|
614
|
+
* @format GUID
|
|
615
|
+
*/
|
|
528
616
|
itemId?: string;
|
|
529
617
|
}
|
|
530
618
|
export interface CollectionCreated {
|
|
531
|
-
/**
|
|
619
|
+
/**
|
|
620
|
+
* Collection id
|
|
621
|
+
* @format GUID
|
|
622
|
+
*/
|
|
532
623
|
_id?: string;
|
|
533
|
-
/**
|
|
624
|
+
/**
|
|
625
|
+
* Collection name
|
|
626
|
+
* @maxLength 100
|
|
627
|
+
*/
|
|
534
628
|
name?: string;
|
|
535
|
-
/**
|
|
629
|
+
/**
|
|
630
|
+
* Collection description
|
|
631
|
+
* @maxLength 500
|
|
632
|
+
*/
|
|
536
633
|
description?: string | null;
|
|
537
|
-
/**
|
|
634
|
+
/**
|
|
635
|
+
* Id of the member who created the collection
|
|
636
|
+
* @format GUID
|
|
637
|
+
*/
|
|
538
638
|
creatorMemberId?: string;
|
|
539
639
|
/** When the collection was created */
|
|
540
640
|
_createdDate?: Date | null;
|
|
@@ -542,9 +642,15 @@ export interface CollectionCreated {
|
|
|
542
642
|
privacySettings?: PrivacySettings;
|
|
543
643
|
}
|
|
544
644
|
export interface ItemsAddedToCollection {
|
|
545
|
-
/**
|
|
645
|
+
/**
|
|
646
|
+
* Id of the collection
|
|
647
|
+
* @format GUID
|
|
648
|
+
*/
|
|
546
649
|
collectionId?: string;
|
|
547
|
-
/**
|
|
650
|
+
/**
|
|
651
|
+
* Id of the member who added items
|
|
652
|
+
* @format GUID
|
|
653
|
+
*/
|
|
548
654
|
addedByMember?: string;
|
|
549
655
|
/** Ids of the items that were added */
|
|
550
656
|
collectionItemIds?: CollectionItemId[];
|
|
@@ -552,37 +658,65 @@ export interface ItemsAddedToCollection {
|
|
|
552
658
|
addedDate?: Date | null;
|
|
553
659
|
}
|
|
554
660
|
export interface ItemsRemovedFromCollection {
|
|
555
|
-
/**
|
|
661
|
+
/**
|
|
662
|
+
* Id of the collection
|
|
663
|
+
* @format GUID
|
|
664
|
+
*/
|
|
556
665
|
collectionId?: string;
|
|
557
|
-
/**
|
|
666
|
+
/**
|
|
667
|
+
* Id of the member who removed items
|
|
668
|
+
* @format GUID
|
|
669
|
+
*/
|
|
558
670
|
removedByMember?: string;
|
|
559
|
-
/**
|
|
671
|
+
/**
|
|
672
|
+
* Ids of the items that were removed
|
|
673
|
+
* @format GUID
|
|
674
|
+
*/
|
|
560
675
|
itemIds?: string[];
|
|
561
676
|
/** When the items were removed */
|
|
562
677
|
removedDate?: Date | null;
|
|
563
678
|
}
|
|
564
679
|
export interface MemberJoinedToCollection {
|
|
565
|
-
/**
|
|
680
|
+
/**
|
|
681
|
+
* Id of the collection
|
|
682
|
+
* @format GUID
|
|
683
|
+
*/
|
|
566
684
|
collectionId?: string;
|
|
567
|
-
/**
|
|
685
|
+
/**
|
|
686
|
+
* Id of the member who joined
|
|
687
|
+
* @format GUID
|
|
688
|
+
*/
|
|
568
689
|
memberId?: string;
|
|
569
690
|
/** When the member was joined */
|
|
570
691
|
joinedDate?: Date | null;
|
|
571
692
|
}
|
|
572
693
|
export interface MemberLeftCollection {
|
|
573
|
-
/**
|
|
694
|
+
/**
|
|
695
|
+
* Id of the collection
|
|
696
|
+
* @format GUID
|
|
697
|
+
*/
|
|
574
698
|
collectionId?: string;
|
|
575
|
-
/**
|
|
699
|
+
/**
|
|
700
|
+
* Id of the member who left
|
|
701
|
+
* @format GUID
|
|
702
|
+
*/
|
|
576
703
|
memberId?: string;
|
|
577
704
|
/** When the member left */
|
|
578
705
|
leftDate?: Date | null;
|
|
579
706
|
}
|
|
580
707
|
export interface GetMediaCollectionRequest {
|
|
581
|
-
/**
|
|
708
|
+
/**
|
|
709
|
+
* Collection id
|
|
710
|
+
* @format GUID
|
|
711
|
+
*/
|
|
582
712
|
mediaCollectionId: string;
|
|
583
713
|
/** number of items to skip in the current sort order, default is 0 */
|
|
584
714
|
offset?: number | null;
|
|
585
|
-
/**
|
|
715
|
+
/**
|
|
716
|
+
* The amount of items per response, default is 50
|
|
717
|
+
* @min 1
|
|
718
|
+
* @max 200
|
|
719
|
+
*/
|
|
586
720
|
limit?: number | null;
|
|
587
721
|
}
|
|
588
722
|
export interface GetMediaCollectionResponse {
|
|
@@ -602,9 +736,15 @@ export declare enum MemberStatus {
|
|
|
602
736
|
ADMIN = "ADMIN"
|
|
603
737
|
}
|
|
604
738
|
export interface ListCollectionsForItemRequest {
|
|
605
|
-
/**
|
|
739
|
+
/**
|
|
740
|
+
* Gallery id
|
|
741
|
+
* @format GUID
|
|
742
|
+
*/
|
|
606
743
|
galleryId?: string;
|
|
607
|
-
/**
|
|
744
|
+
/**
|
|
745
|
+
* Item id
|
|
746
|
+
* @format GUID
|
|
747
|
+
*/
|
|
608
748
|
itemId: string;
|
|
609
749
|
}
|
|
610
750
|
export interface ListCollectionsForItemResponse {
|
|
@@ -612,9 +752,16 @@ export interface ListCollectionsForItemResponse {
|
|
|
612
752
|
itemInCollections?: ItemInCollection[];
|
|
613
753
|
}
|
|
614
754
|
export interface ItemInCollection {
|
|
615
|
-
/**
|
|
755
|
+
/**
|
|
756
|
+
* Collection id
|
|
757
|
+
* @format GUID
|
|
758
|
+
*/
|
|
616
759
|
mediaCollectionId?: string;
|
|
617
|
-
/**
|
|
760
|
+
/**
|
|
761
|
+
* Collection name
|
|
762
|
+
* @minLength 1
|
|
763
|
+
* @maxLength 100
|
|
764
|
+
*/
|
|
618
765
|
name?: string;
|
|
619
766
|
/** Is the item in the collection */
|
|
620
767
|
isItemInCollection?: boolean;
|
|
@@ -626,13 +773,22 @@ export interface ItemInCollection {
|
|
|
626
773
|
totalItemsCount?: number | null;
|
|
627
774
|
/** The first item in the collection */
|
|
628
775
|
firstItem?: MediaCollectionItem;
|
|
629
|
-
/**
|
|
776
|
+
/**
|
|
777
|
+
* The creator's nickname
|
|
778
|
+
* @maxLength 100
|
|
779
|
+
*/
|
|
630
780
|
creatorNickname?: string | null;
|
|
631
781
|
}
|
|
632
782
|
export interface GetCollectionItemRequest {
|
|
633
|
-
/**
|
|
783
|
+
/**
|
|
784
|
+
* Collection id
|
|
785
|
+
* @format GUID
|
|
786
|
+
*/
|
|
634
787
|
mediaCollectionId: string;
|
|
635
|
-
/**
|
|
788
|
+
/**
|
|
789
|
+
* Item id
|
|
790
|
+
* @format GUID
|
|
791
|
+
*/
|
|
636
792
|
itemId: string;
|
|
637
793
|
}
|
|
638
794
|
export interface GetCollectionItemResponse {
|
|
@@ -640,7 +796,11 @@ export interface GetCollectionItemResponse {
|
|
|
640
796
|
item?: MediaCollectionItem;
|
|
641
797
|
}
|
|
642
798
|
export interface ListMediaCollectionsRequest {
|
|
643
|
-
/**
|
|
799
|
+
/**
|
|
800
|
+
* the amount of collections per response, default is 1000
|
|
801
|
+
* @min 1
|
|
802
|
+
* @max 2000
|
|
803
|
+
*/
|
|
644
804
|
limit?: number | null;
|
|
645
805
|
/** number of collections to skip in the current sort order, default is 0 */
|
|
646
806
|
offset?: number | null;
|
|
@@ -669,9 +829,16 @@ export interface CollectionAndStatus {
|
|
|
669
829
|
memberStatus?: MemberStatus;
|
|
670
830
|
}
|
|
671
831
|
export interface CreateMediaCollectionRequest {
|
|
672
|
-
/**
|
|
832
|
+
/**
|
|
833
|
+
* Name of the collection
|
|
834
|
+
* @minLength 1
|
|
835
|
+
* @maxLength 100
|
|
836
|
+
*/
|
|
673
837
|
name: string;
|
|
674
|
-
/**
|
|
838
|
+
/**
|
|
839
|
+
* Description of the collection
|
|
840
|
+
* @maxLength 500
|
|
841
|
+
*/
|
|
675
842
|
description?: string | null;
|
|
676
843
|
/** Privacy settings of the collection */
|
|
677
844
|
privacySettings?: PrivacySettings;
|
|
@@ -679,15 +846,24 @@ export interface CreateMediaCollectionRequest {
|
|
|
679
846
|
items?: AddItem[];
|
|
680
847
|
}
|
|
681
848
|
export interface AddItem {
|
|
682
|
-
/**
|
|
849
|
+
/**
|
|
850
|
+
* Gallery id
|
|
851
|
+
* @format GUID
|
|
852
|
+
*/
|
|
683
853
|
galleryId?: string;
|
|
684
|
-
/**
|
|
854
|
+
/**
|
|
855
|
+
* Item id
|
|
856
|
+
* @format GUID
|
|
857
|
+
*/
|
|
685
858
|
itemId?: string;
|
|
686
859
|
/** Order index of the item */
|
|
687
860
|
orderIndex?: number | null;
|
|
688
861
|
}
|
|
689
862
|
export interface CreateMediaCollectionResponse {
|
|
690
|
-
/**
|
|
863
|
+
/**
|
|
864
|
+
* id of the collection that was created
|
|
865
|
+
* @format GUID
|
|
866
|
+
*/
|
|
691
867
|
mediaCollectionId?: string;
|
|
692
868
|
}
|
|
693
869
|
export interface PartiallyUpdateMediaCollectionRequest {
|
|
@@ -702,7 +878,10 @@ export interface PartiallyUpdateMediaCollectionRequest {
|
|
|
702
878
|
export interface PartiallyUpdateMediaCollectionResponse {
|
|
703
879
|
}
|
|
704
880
|
export interface UpdateCollectionLockRequest {
|
|
705
|
-
/**
|
|
881
|
+
/**
|
|
882
|
+
* Collection to lock
|
|
883
|
+
* @format GUID
|
|
884
|
+
*/
|
|
706
885
|
mediaCollectionId?: string;
|
|
707
886
|
/** Lock status */
|
|
708
887
|
locked?: boolean;
|
|
@@ -710,13 +889,19 @@ export interface UpdateCollectionLockRequest {
|
|
|
710
889
|
export interface UpdateCollectionLockResponse {
|
|
711
890
|
}
|
|
712
891
|
export interface DeleteMediaCollectionRequest {
|
|
713
|
-
/**
|
|
892
|
+
/**
|
|
893
|
+
* the collection to delete
|
|
894
|
+
* @format GUID
|
|
895
|
+
*/
|
|
714
896
|
mediaCollectionId: string;
|
|
715
897
|
}
|
|
716
898
|
export interface DeleteMediaCollectionResponse {
|
|
717
899
|
}
|
|
718
900
|
export interface ListCollectionMembersRequest {
|
|
719
|
-
/**
|
|
901
|
+
/**
|
|
902
|
+
* the collection to get its members
|
|
903
|
+
* @format GUID
|
|
904
|
+
*/
|
|
720
905
|
mediaCollectionId: string;
|
|
721
906
|
/** Filter the members by their role in the collection */
|
|
722
907
|
filterBy?: FilterBy;
|
|
@@ -736,7 +921,10 @@ export interface MemberAndStatus {
|
|
|
736
921
|
memberStatus?: MemberStatus;
|
|
737
922
|
}
|
|
738
923
|
export interface AddItemsRequest {
|
|
739
|
-
/**
|
|
924
|
+
/**
|
|
925
|
+
* Collection to add items
|
|
926
|
+
* @format GUID
|
|
927
|
+
*/
|
|
740
928
|
mediaCollectionId: string;
|
|
741
929
|
/** Items to add */
|
|
742
930
|
items?: AddItem[];
|
|
@@ -744,20 +932,32 @@ export interface AddItemsRequest {
|
|
|
744
932
|
export interface AddItemsResponse {
|
|
745
933
|
}
|
|
746
934
|
export interface RemoveItemsRequest {
|
|
747
|
-
/**
|
|
935
|
+
/**
|
|
936
|
+
* Collection to remove items from
|
|
937
|
+
* @format GUID
|
|
938
|
+
*/
|
|
748
939
|
mediaCollectionId: string;
|
|
749
|
-
/**
|
|
940
|
+
/**
|
|
941
|
+
* Items to remove
|
|
942
|
+
* @format GUID
|
|
943
|
+
*/
|
|
750
944
|
itemsIds?: string[];
|
|
751
945
|
}
|
|
752
946
|
export interface RemoveItemsResponse {
|
|
753
947
|
}
|
|
754
948
|
export interface UpdateItemsRequest {
|
|
755
|
-
/**
|
|
949
|
+
/**
|
|
950
|
+
* Collection to update items
|
|
951
|
+
* @format GUID
|
|
952
|
+
*/
|
|
756
953
|
mediaCollectionId?: string;
|
|
757
954
|
items?: UpdateItem[];
|
|
758
955
|
}
|
|
759
956
|
export interface UpdateItem {
|
|
760
|
-
/**
|
|
957
|
+
/**
|
|
958
|
+
* Item to update
|
|
959
|
+
* @format GUID
|
|
960
|
+
*/
|
|
761
961
|
itemId?: string;
|
|
762
962
|
/** New order index of the item */
|
|
763
963
|
orderIndex?: number;
|
|
@@ -765,27 +965,42 @@ export interface UpdateItem {
|
|
|
765
965
|
export interface UpdateItemsResponse {
|
|
766
966
|
}
|
|
767
967
|
export interface JoinToCollectionRequest {
|
|
768
|
-
/**
|
|
968
|
+
/**
|
|
969
|
+
* Collection to join
|
|
970
|
+
* @format GUID
|
|
971
|
+
*/
|
|
769
972
|
mediaCollectionId: string;
|
|
770
973
|
}
|
|
771
974
|
export interface JoinToCollectionResponse {
|
|
772
975
|
}
|
|
773
976
|
export interface RemoveMemberFromCollectionRequest {
|
|
774
|
-
/**
|
|
977
|
+
/**
|
|
978
|
+
* Collection the member will be removed from being a member
|
|
979
|
+
* @format GUID
|
|
980
|
+
*/
|
|
775
981
|
mediaCollectionId?: string;
|
|
776
|
-
/**
|
|
982
|
+
/**
|
|
983
|
+
* Member id to remove from the collection
|
|
984
|
+
* @format GUID
|
|
985
|
+
*/
|
|
777
986
|
memberId?: string;
|
|
778
987
|
}
|
|
779
988
|
export interface RemoveMemberFromCollectionResponse {
|
|
780
989
|
}
|
|
781
990
|
export interface LeaveCollectionRequest {
|
|
782
|
-
/**
|
|
991
|
+
/**
|
|
992
|
+
* Collection the member will be leaving
|
|
993
|
+
* @format GUID
|
|
994
|
+
*/
|
|
783
995
|
mediaCollectionId: string;
|
|
784
996
|
}
|
|
785
997
|
export interface LeaveCollectionResponse {
|
|
786
998
|
}
|
|
787
999
|
export interface ListCollectionItemsRequest {
|
|
788
|
-
/**
|
|
1000
|
+
/**
|
|
1001
|
+
* Collection to get its items
|
|
1002
|
+
* @format GUID
|
|
1003
|
+
*/
|
|
789
1004
|
mediaCollectionId: string;
|
|
790
1005
|
}
|
|
791
1006
|
export interface ListCollectionItemsResponse {
|
|
@@ -793,9 +1008,15 @@ export interface ListCollectionItemsResponse {
|
|
|
793
1008
|
collectionItems?: CollectionItem[];
|
|
794
1009
|
}
|
|
795
1010
|
export interface CollectionItem {
|
|
796
|
-
/**
|
|
1011
|
+
/**
|
|
1012
|
+
* Gallery id
|
|
1013
|
+
* @format GUID
|
|
1014
|
+
*/
|
|
797
1015
|
galleryId?: string;
|
|
798
|
-
/**
|
|
1016
|
+
/**
|
|
1017
|
+
* Item id
|
|
1018
|
+
* @format GUID
|
|
1019
|
+
*/
|
|
799
1020
|
itemId?: string;
|
|
800
1021
|
/** Order index of the item */
|
|
801
1022
|
orderIndex?: number | null;
|
|
@@ -805,7 +1026,10 @@ export interface CollectionItem {
|
|
|
805
1026
|
export interface ListAllItemsBelongToCollectionRequest {
|
|
806
1027
|
}
|
|
807
1028
|
export interface ListAllItemsBelongToCollectionResponse {
|
|
808
|
-
/**
|
|
1029
|
+
/**
|
|
1030
|
+
* List of the item ids that belong to one or more collection
|
|
1031
|
+
* @format GUID
|
|
1032
|
+
*/
|
|
809
1033
|
itemIds?: string[];
|
|
810
1034
|
}
|
|
811
1035
|
interface CollectionMemberNonNullableFields {
|
|
@@ -947,9 +1171,15 @@ export interface ListCollectionItemsResponseNonNullableFields {
|
|
|
947
1171
|
collectionItems: CollectionItemNonNullableFields[];
|
|
948
1172
|
}
|
|
949
1173
|
export interface BaseEventMetadata {
|
|
950
|
-
/**
|
|
1174
|
+
/**
|
|
1175
|
+
* App instance ID.
|
|
1176
|
+
* @format GUID
|
|
1177
|
+
*/
|
|
951
1178
|
instanceId?: string | null;
|
|
952
|
-
/**
|
|
1179
|
+
/**
|
|
1180
|
+
* Event type.
|
|
1181
|
+
* @maxLength 150
|
|
1182
|
+
*/
|
|
953
1183
|
eventType?: string;
|
|
954
1184
|
/** The identification type and identity data. */
|
|
955
1185
|
identity?: IdentificationData;
|
|
@@ -998,6 +1228,8 @@ export interface CollectionCreatedEnvelope {
|
|
|
998
1228
|
}
|
|
999
1229
|
/** @webhook
|
|
1000
1230
|
* @eventType wix.collections.collection_created
|
|
1231
|
+
* @serviceIdentifier com.wixpress.exposure.mediacollections.MediaCollectionsService
|
|
1232
|
+
* @slug created
|
|
1001
1233
|
* @documentationMaturity preview
|
|
1002
1234
|
*/
|
|
1003
1235
|
export declare function onCollectionCreated(handler: (event: CollectionCreatedEnvelope) => void | Promise<void>): void;
|
|
@@ -1014,7 +1246,11 @@ export declare function get(mediaCollectionId: string, options?: GetOptions): Pr
|
|
|
1014
1246
|
export interface GetOptions {
|
|
1015
1247
|
/** number of items to skip in the current sort order, default is 0 */
|
|
1016
1248
|
offset?: number | null;
|
|
1017
|
-
/**
|
|
1249
|
+
/**
|
|
1250
|
+
* The amount of items per response, default is 50
|
|
1251
|
+
* @min 1
|
|
1252
|
+
* @max 200
|
|
1253
|
+
*/
|
|
1018
1254
|
limit?: number | null;
|
|
1019
1255
|
}
|
|
1020
1256
|
/**
|
|
@@ -1027,7 +1263,10 @@ export interface GetOptions {
|
|
|
1027
1263
|
*/
|
|
1028
1264
|
export declare function listCollectionsForItem(itemId: string, options?: ListCollectionsForItemOptions): Promise<ListCollectionsForItemResponse & ListCollectionsForItemResponseNonNullableFields>;
|
|
1029
1265
|
export interface ListCollectionsForItemOptions {
|
|
1030
|
-
/**
|
|
1266
|
+
/**
|
|
1267
|
+
* Gallery id
|
|
1268
|
+
* @format GUID
|
|
1269
|
+
*/
|
|
1031
1270
|
galleryId?: string;
|
|
1032
1271
|
}
|
|
1033
1272
|
/**
|
|
@@ -1041,9 +1280,15 @@ export interface ListCollectionsForItemOptions {
|
|
|
1041
1280
|
*/
|
|
1042
1281
|
export declare function getCollectionItem(identifiers: GetCollectionItemIdentifiers): Promise<GetCollectionItemResponse & GetCollectionItemResponseNonNullableFields>;
|
|
1043
1282
|
export interface GetCollectionItemIdentifiers {
|
|
1044
|
-
/**
|
|
1283
|
+
/**
|
|
1284
|
+
* Collection id
|
|
1285
|
+
* @format GUID
|
|
1286
|
+
*/
|
|
1045
1287
|
mediaCollectionId: string;
|
|
1046
|
-
/**
|
|
1288
|
+
/**
|
|
1289
|
+
* Item id
|
|
1290
|
+
* @format GUID
|
|
1291
|
+
*/
|
|
1047
1292
|
itemId: string;
|
|
1048
1293
|
}
|
|
1049
1294
|
/**
|
|
@@ -1054,7 +1299,11 @@ export interface GetCollectionItemIdentifiers {
|
|
|
1054
1299
|
*/
|
|
1055
1300
|
export declare function list(options?: ListOptions): Promise<ListMediaCollectionsResponse & ListMediaCollectionsResponseNonNullableFields>;
|
|
1056
1301
|
export interface ListOptions {
|
|
1057
|
-
/**
|
|
1302
|
+
/**
|
|
1303
|
+
* the amount of collections per response, default is 1000
|
|
1304
|
+
* @min 1
|
|
1305
|
+
* @max 2000
|
|
1306
|
+
*/
|
|
1058
1307
|
limit?: number | null;
|
|
1059
1308
|
/** number of collections to skip in the current sort order, default is 0 */
|
|
1060
1309
|
offset?: number | null;
|
|
@@ -1074,7 +1323,10 @@ export interface ListOptions {
|
|
|
1074
1323
|
*/
|
|
1075
1324
|
export declare function create(name: string, options?: CreateOptions): Promise<CreateMediaCollectionResponse & CreateMediaCollectionResponseNonNullableFields>;
|
|
1076
1325
|
export interface CreateOptions {
|
|
1077
|
-
/**
|
|
1326
|
+
/**
|
|
1327
|
+
* Description of the collection
|
|
1328
|
+
* @maxLength 500
|
|
1329
|
+
*/
|
|
1078
1330
|
description?: string | null;
|
|
1079
1331
|
/** Privacy settings of the collection */
|
|
1080
1332
|
privacySettings?: PrivacySettings;
|
|
@@ -1097,10 +1349,15 @@ export interface PartiallyUpdateMediaCollection {
|
|
|
1097
1349
|
/**
|
|
1098
1350
|
* Collection id
|
|
1099
1351
|
* @readonly
|
|
1352
|
+
* @format GUID
|
|
1100
1353
|
*/
|
|
1101
1354
|
_id?: string;
|
|
1102
|
-
/**
|
|
1355
|
+
/**
|
|
1356
|
+
* Collection name
|
|
1357
|
+
* @maxLength 100
|
|
1358
|
+
*/
|
|
1103
1359
|
name?: string;
|
|
1360
|
+
/** @maxLength 500 */
|
|
1104
1361
|
description?: string | null;
|
|
1105
1362
|
/**
|
|
1106
1363
|
* total count of MediaCollection members
|
|
@@ -1181,7 +1438,10 @@ export interface AddItemsOptions {
|
|
|
1181
1438
|
*/
|
|
1182
1439
|
export declare function removeItems(mediaCollectionId: string, options?: RemoveItemsOptions): Promise<void>;
|
|
1183
1440
|
export interface RemoveItemsOptions {
|
|
1184
|
-
/**
|
|
1441
|
+
/**
|
|
1442
|
+
* Items to remove
|
|
1443
|
+
* @format GUID
|
|
1444
|
+
*/
|
|
1185
1445
|
itemsIds?: string[];
|
|
1186
1446
|
}
|
|
1187
1447
|
/**
|