@wix/auto_sdk_media-collections_media-collections 1.0.25 → 1.0.27
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/index.js +39 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +39 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +333 -1
- package/build/cjs/meta.js +121 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +39 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +39 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +333 -1
- package/build/es/meta.mjs +112 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +39 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +39 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +333 -1
- package/build/internal/cjs/meta.js +121 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +39 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +39 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +333 -1
- package/build/internal/es/meta.mjs +112 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/meta.d.ts
CHANGED
|
@@ -438,6 +438,285 @@ declare enum PrivacySettings {
|
|
|
438
438
|
}
|
|
439
439
|
/** @enumType */
|
|
440
440
|
type PrivacySettingsWithLiterals = PrivacySettings | 'Undefined' | 'Public' | 'Secret';
|
|
441
|
+
interface PermanentSiteDeletedResponse {
|
|
442
|
+
/** @format GUID */
|
|
443
|
+
requestId?: string;
|
|
444
|
+
uniqueServiceIdentifier?: string;
|
|
445
|
+
status?: StatusWithLiterals;
|
|
446
|
+
/** @readonly */
|
|
447
|
+
createdDate?: Date | null;
|
|
448
|
+
}
|
|
449
|
+
declare enum Status {
|
|
450
|
+
UNKNOWN = "UNKNOWN",
|
|
451
|
+
HANDLED = "HANDLED",
|
|
452
|
+
NOTHING_TO_HANDLE = "NOTHING_TO_HANDLE"
|
|
453
|
+
}
|
|
454
|
+
/** @enumType */
|
|
455
|
+
type StatusWithLiterals = Status | 'UNKNOWN' | 'HANDLED' | 'NOTHING_TO_HANDLE';
|
|
456
|
+
interface Empty {
|
|
457
|
+
}
|
|
458
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
459
|
+
createdEvent?: EntityCreatedEvent;
|
|
460
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
461
|
+
deletedEvent?: EntityDeletedEvent;
|
|
462
|
+
actionEvent?: ActionEvent;
|
|
463
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
464
|
+
id?: string;
|
|
465
|
+
/**
|
|
466
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
467
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
468
|
+
*/
|
|
469
|
+
entityFqdn?: string;
|
|
470
|
+
/**
|
|
471
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
472
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
473
|
+
*/
|
|
474
|
+
slug?: string;
|
|
475
|
+
/** ID of the entity associated with the event. */
|
|
476
|
+
entityId?: string;
|
|
477
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
478
|
+
eventTime?: Date | null;
|
|
479
|
+
/**
|
|
480
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
481
|
+
* (for example, GDPR).
|
|
482
|
+
*/
|
|
483
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
484
|
+
/** If present, indicates the action that triggered the event. */
|
|
485
|
+
originatedFrom?: string | null;
|
|
486
|
+
/**
|
|
487
|
+
* 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.
|
|
488
|
+
* 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.
|
|
489
|
+
*/
|
|
490
|
+
entityEventSequence?: string | null;
|
|
491
|
+
}
|
|
492
|
+
/** @oneof */
|
|
493
|
+
interface DomainEventBodyOneOf {
|
|
494
|
+
createdEvent?: EntityCreatedEvent;
|
|
495
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
496
|
+
deletedEvent?: EntityDeletedEvent;
|
|
497
|
+
actionEvent?: ActionEvent;
|
|
498
|
+
}
|
|
499
|
+
interface EntityCreatedEvent {
|
|
500
|
+
entityAsJson?: string;
|
|
501
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
502
|
+
restoreInfo?: RestoreInfo;
|
|
503
|
+
}
|
|
504
|
+
interface RestoreInfo {
|
|
505
|
+
deletedDate?: Date | null;
|
|
506
|
+
}
|
|
507
|
+
interface EntityUpdatedEvent {
|
|
508
|
+
/**
|
|
509
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
510
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
511
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
512
|
+
*/
|
|
513
|
+
currentEntityAsJson?: string;
|
|
514
|
+
}
|
|
515
|
+
interface EntityDeletedEvent {
|
|
516
|
+
/** Entity that was deleted. */
|
|
517
|
+
deletedEntityAsJson?: string | null;
|
|
518
|
+
}
|
|
519
|
+
interface ActionEvent {
|
|
520
|
+
bodyAsJson?: string;
|
|
521
|
+
}
|
|
522
|
+
interface MessageEnvelope {
|
|
523
|
+
/**
|
|
524
|
+
* App instance ID.
|
|
525
|
+
* @format GUID
|
|
526
|
+
*/
|
|
527
|
+
instanceId?: string | null;
|
|
528
|
+
/**
|
|
529
|
+
* Event type.
|
|
530
|
+
* @maxLength 150
|
|
531
|
+
*/
|
|
532
|
+
eventType?: string;
|
|
533
|
+
/** The identification type and identity data. */
|
|
534
|
+
identity?: IdentificationData;
|
|
535
|
+
/** Stringify payload. */
|
|
536
|
+
data?: string;
|
|
537
|
+
}
|
|
538
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
539
|
+
/**
|
|
540
|
+
* ID of a site visitor that has not logged in to the site.
|
|
541
|
+
* @format GUID
|
|
542
|
+
*/
|
|
543
|
+
anonymousVisitorId?: string;
|
|
544
|
+
/**
|
|
545
|
+
* ID of a site visitor that has logged in to the site.
|
|
546
|
+
* @format GUID
|
|
547
|
+
*/
|
|
548
|
+
memberId?: string;
|
|
549
|
+
/**
|
|
550
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
551
|
+
* @format GUID
|
|
552
|
+
*/
|
|
553
|
+
wixUserId?: string;
|
|
554
|
+
/**
|
|
555
|
+
* ID of an app.
|
|
556
|
+
* @format GUID
|
|
557
|
+
*/
|
|
558
|
+
appId?: string;
|
|
559
|
+
/** @readonly */
|
|
560
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
561
|
+
}
|
|
562
|
+
/** @oneof */
|
|
563
|
+
interface IdentificationDataIdOneOf {
|
|
564
|
+
/**
|
|
565
|
+
* ID of a site visitor that has not logged in to the site.
|
|
566
|
+
* @format GUID
|
|
567
|
+
*/
|
|
568
|
+
anonymousVisitorId?: string;
|
|
569
|
+
/**
|
|
570
|
+
* ID of a site visitor that has logged in to the site.
|
|
571
|
+
* @format GUID
|
|
572
|
+
*/
|
|
573
|
+
memberId?: string;
|
|
574
|
+
/**
|
|
575
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
576
|
+
* @format GUID
|
|
577
|
+
*/
|
|
578
|
+
wixUserId?: string;
|
|
579
|
+
/**
|
|
580
|
+
* ID of an app.
|
|
581
|
+
* @format GUID
|
|
582
|
+
*/
|
|
583
|
+
appId?: string;
|
|
584
|
+
}
|
|
585
|
+
declare enum WebhookIdentityType {
|
|
586
|
+
UNKNOWN = "UNKNOWN",
|
|
587
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
588
|
+
MEMBER = "MEMBER",
|
|
589
|
+
WIX_USER = "WIX_USER",
|
|
590
|
+
APP = "APP"
|
|
591
|
+
}
|
|
592
|
+
/** @enumType */
|
|
593
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
594
|
+
interface CollectionEvent extends CollectionEventEventTypeOneOf {
|
|
595
|
+
/** Collection created */
|
|
596
|
+
collectionCreated?: CollectionCreated;
|
|
597
|
+
/** Items added to collection */
|
|
598
|
+
itemsAddedToCollection?: ItemsAddedToCollection;
|
|
599
|
+
/** Items removed from collection */
|
|
600
|
+
itemsRemovedFromCollection?: ItemsRemovedFromCollection;
|
|
601
|
+
/** Member joined to collection */
|
|
602
|
+
memberJoinedToCollection?: MemberJoinedToCollection;
|
|
603
|
+
/** Member left collection */
|
|
604
|
+
memberLeftCollection?: MemberLeftCollection;
|
|
605
|
+
}
|
|
606
|
+
/** @oneof */
|
|
607
|
+
interface CollectionEventEventTypeOneOf {
|
|
608
|
+
/** Collection created */
|
|
609
|
+
collectionCreated?: CollectionCreated;
|
|
610
|
+
/** Items added to collection */
|
|
611
|
+
itemsAddedToCollection?: ItemsAddedToCollection;
|
|
612
|
+
/** Items removed from collection */
|
|
613
|
+
itemsRemovedFromCollection?: ItemsRemovedFromCollection;
|
|
614
|
+
/** Member joined to collection */
|
|
615
|
+
memberJoinedToCollection?: MemberJoinedToCollection;
|
|
616
|
+
/** Member left collection */
|
|
617
|
+
memberLeftCollection?: MemberLeftCollection;
|
|
618
|
+
}
|
|
619
|
+
interface CollectionItemId {
|
|
620
|
+
/**
|
|
621
|
+
* Id of the gallery in ProGallery
|
|
622
|
+
* @format GUID
|
|
623
|
+
*/
|
|
624
|
+
galleryId?: string;
|
|
625
|
+
/**
|
|
626
|
+
* Id of the item in ProGallery
|
|
627
|
+
* @format GUID
|
|
628
|
+
*/
|
|
629
|
+
itemId?: string;
|
|
630
|
+
}
|
|
631
|
+
interface CollectionCreated {
|
|
632
|
+
/**
|
|
633
|
+
* Collection id
|
|
634
|
+
* @format GUID
|
|
635
|
+
*/
|
|
636
|
+
id?: string;
|
|
637
|
+
/**
|
|
638
|
+
* Collection name
|
|
639
|
+
* @maxLength 100
|
|
640
|
+
*/
|
|
641
|
+
name?: string;
|
|
642
|
+
/**
|
|
643
|
+
* Collection description
|
|
644
|
+
* @maxLength 500
|
|
645
|
+
*/
|
|
646
|
+
description?: string | null;
|
|
647
|
+
/**
|
|
648
|
+
* Id of the member who created the collection
|
|
649
|
+
* @format GUID
|
|
650
|
+
*/
|
|
651
|
+
creatorMemberId?: string;
|
|
652
|
+
/** When the collection was created */
|
|
653
|
+
createdDate?: Date | null;
|
|
654
|
+
/** Privacy settings */
|
|
655
|
+
privacySettings?: PrivacySettingsWithLiterals;
|
|
656
|
+
}
|
|
657
|
+
interface ItemsAddedToCollection {
|
|
658
|
+
/**
|
|
659
|
+
* Id of the collection
|
|
660
|
+
* @format GUID
|
|
661
|
+
*/
|
|
662
|
+
collectionId?: string;
|
|
663
|
+
/**
|
|
664
|
+
* Id of the member who added items
|
|
665
|
+
* @format GUID
|
|
666
|
+
*/
|
|
667
|
+
addedByMember?: string;
|
|
668
|
+
/** Ids of the items that were added */
|
|
669
|
+
collectionItemIds?: CollectionItemId[];
|
|
670
|
+
/** When the items were added */
|
|
671
|
+
addedDate?: Date | null;
|
|
672
|
+
}
|
|
673
|
+
interface ItemsRemovedFromCollection {
|
|
674
|
+
/**
|
|
675
|
+
* Id of the collection
|
|
676
|
+
* @format GUID
|
|
677
|
+
*/
|
|
678
|
+
collectionId?: string;
|
|
679
|
+
/**
|
|
680
|
+
* Id of the member who removed items
|
|
681
|
+
* @format GUID
|
|
682
|
+
*/
|
|
683
|
+
removedByMember?: string;
|
|
684
|
+
/**
|
|
685
|
+
* Ids of the items that were removed
|
|
686
|
+
* @format GUID
|
|
687
|
+
*/
|
|
688
|
+
itemIds?: string[];
|
|
689
|
+
/** When the items were removed */
|
|
690
|
+
removedDate?: Date | null;
|
|
691
|
+
}
|
|
692
|
+
interface MemberJoinedToCollection {
|
|
693
|
+
/**
|
|
694
|
+
* Id of the collection
|
|
695
|
+
* @format GUID
|
|
696
|
+
*/
|
|
697
|
+
collectionId?: string;
|
|
698
|
+
/**
|
|
699
|
+
* Id of the member who joined
|
|
700
|
+
* @format GUID
|
|
701
|
+
*/
|
|
702
|
+
memberId?: string;
|
|
703
|
+
/** When the member was joined */
|
|
704
|
+
joinedDate?: Date | null;
|
|
705
|
+
}
|
|
706
|
+
interface MemberLeftCollection {
|
|
707
|
+
/**
|
|
708
|
+
* Id of the collection
|
|
709
|
+
* @format GUID
|
|
710
|
+
*/
|
|
711
|
+
collectionId?: string;
|
|
712
|
+
/**
|
|
713
|
+
* Id of the member who left
|
|
714
|
+
* @format GUID
|
|
715
|
+
*/
|
|
716
|
+
memberId?: string;
|
|
717
|
+
/** When the member left */
|
|
718
|
+
leftDate?: Date | null;
|
|
719
|
+
}
|
|
441
720
|
interface GetMediaCollectionRequest {
|
|
442
721
|
/**
|
|
443
722
|
* Collection id
|
|
@@ -613,6 +892,17 @@ interface PartiallyUpdateMediaCollectionRequest {
|
|
|
613
892
|
}
|
|
614
893
|
interface PartiallyUpdateMediaCollectionResponse {
|
|
615
894
|
}
|
|
895
|
+
interface UpdateCollectionLockRequest {
|
|
896
|
+
/**
|
|
897
|
+
* Collection to lock
|
|
898
|
+
* @format GUID
|
|
899
|
+
*/
|
|
900
|
+
mediaCollectionId?: string;
|
|
901
|
+
/** Lock status */
|
|
902
|
+
locked?: boolean;
|
|
903
|
+
}
|
|
904
|
+
interface UpdateCollectionLockResponse {
|
|
905
|
+
}
|
|
616
906
|
interface DeleteMediaCollectionRequest {
|
|
617
907
|
/**
|
|
618
908
|
* the collection to delete
|
|
@@ -670,6 +960,25 @@ interface RemoveItemsRequest {
|
|
|
670
960
|
}
|
|
671
961
|
interface RemoveItemsResponse {
|
|
672
962
|
}
|
|
963
|
+
interface UpdateItemsRequest {
|
|
964
|
+
/**
|
|
965
|
+
* Collection to update items
|
|
966
|
+
* @format GUID
|
|
967
|
+
*/
|
|
968
|
+
mediaCollectionId?: string;
|
|
969
|
+
items?: UpdateItem[];
|
|
970
|
+
}
|
|
971
|
+
interface UpdateItem {
|
|
972
|
+
/**
|
|
973
|
+
* Item to update
|
|
974
|
+
* @format GUID
|
|
975
|
+
*/
|
|
976
|
+
itemId?: string;
|
|
977
|
+
/** New order index of the item */
|
|
978
|
+
orderIndex?: number;
|
|
979
|
+
}
|
|
980
|
+
interface UpdateItemsResponse {
|
|
981
|
+
}
|
|
673
982
|
interface JoinToCollectionRequest {
|
|
674
983
|
/**
|
|
675
984
|
* Collection to join
|
|
@@ -679,6 +988,20 @@ interface JoinToCollectionRequest {
|
|
|
679
988
|
}
|
|
680
989
|
interface JoinToCollectionResponse {
|
|
681
990
|
}
|
|
991
|
+
interface RemoveMemberFromCollectionRequest {
|
|
992
|
+
/**
|
|
993
|
+
* Collection the member will be removed from being a member
|
|
994
|
+
* @format GUID
|
|
995
|
+
*/
|
|
996
|
+
mediaCollectionId?: string;
|
|
997
|
+
/**
|
|
998
|
+
* Member id to remove from the collection
|
|
999
|
+
* @format GUID
|
|
1000
|
+
*/
|
|
1001
|
+
memberId?: string;
|
|
1002
|
+
}
|
|
1003
|
+
interface RemoveMemberFromCollectionResponse {
|
|
1004
|
+
}
|
|
682
1005
|
interface LeaveCollectionRequest {
|
|
683
1006
|
/**
|
|
684
1007
|
* Collection the member will be leaving
|
|
@@ -715,6 +1038,15 @@ interface CollectionItem {
|
|
|
715
1038
|
/** Date the item was added to the collection */
|
|
716
1039
|
addedDate?: Date | null;
|
|
717
1040
|
}
|
|
1041
|
+
interface ListAllItemsBelongToCollectionRequest {
|
|
1042
|
+
}
|
|
1043
|
+
interface ListAllItemsBelongToCollectionResponse {
|
|
1044
|
+
/**
|
|
1045
|
+
* List of the item ids that belong to one or more collection
|
|
1046
|
+
* @format GUID
|
|
1047
|
+
*/
|
|
1048
|
+
itemIds?: string[];
|
|
1049
|
+
}
|
|
718
1050
|
|
|
719
1051
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
720
1052
|
getUrl: (context: any) => string;
|
|
@@ -763,4 +1095,4 @@ declare function listCollectionItems(): __PublicMethodMetaInfo<'GET', {
|
|
|
763
1095
|
mediaCollectionId: string;
|
|
764
1096
|
}, ListCollectionItemsRequest$1, ListCollectionItemsRequest, ListCollectionItemsResponse$1, ListCollectionItemsResponse>;
|
|
765
1097
|
|
|
766
|
-
export { type __PublicMethodMetaInfo, _delete, addItems, create, get, getCollectionItem, joinToCollection, leaveCollection, list, listCollectionItems, listCollectionMembers, listCollectionsForItem, partiallyUpdate, removeItems };
|
|
1098
|
+
export { type ActionEvent as ActionEventOriginal, type AddItem as AddItemOriginal, type AddItemsRequest as AddItemsRequestOriginal, type AddItemsResponse as AddItemsResponseOriginal, type AddressLink as AddressLinkOriginal, type AnchorLink as AnchorLinkOriginal, type CollectionAndStatus as CollectionAndStatusOriginal, type CollectionCreated as CollectionCreatedOriginal, type CollectionEventEventTypeOneOf as CollectionEventEventTypeOneOfOriginal, type CollectionEvent as CollectionEventOriginal, type CollectionItemId as CollectionItemIdOriginal, type CollectionItem as CollectionItemOriginal, type CollectionMember as CollectionMemberOriginal, type CreateMediaCollectionRequest as CreateMediaCollectionRequestOriginal, type CreateMediaCollectionResponse as CreateMediaCollectionResponseOriginal, DataType as DataTypeOriginal, type DataTypeWithLiterals as DataTypeWithLiteralsOriginal, type DeleteMediaCollectionRequest as DeleteMediaCollectionRequestOriginal, type DeleteMediaCollectionResponse as DeleteMediaCollectionResponseOriginal, type DocumentLink as DocumentLinkOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DynamicPageLink as DynamicPageLinkOriginal, type EmailLink as EmailLinkOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExternalLink as ExternalLinkOriginal, type FilterBy as FilterByOriginal, type FilterByRoles as FilterByRolesOriginal, type GetCollectionItemRequest as GetCollectionItemRequestOriginal, type GetCollectionItemResponse as GetCollectionItemResponseOriginal, type GetMediaCollectionRequest as GetMediaCollectionRequestOriginal, type GetMediaCollectionResponse as GetMediaCollectionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemInCollection as ItemInCollectionOriginal, type ItemsAddedToCollection as ItemsAddedToCollectionOriginal, type ItemsRemovedFromCollection as ItemsRemovedFromCollectionOriginal, type JoinToCollectionRequest as JoinToCollectionRequestOriginal, type JoinToCollectionResponse as JoinToCollectionResponseOriginal, type LeaveCollectionRequest as LeaveCollectionRequestOriginal, type LeaveCollectionResponse as LeaveCollectionResponseOriginal, type Link as LinkOriginal, LinkRel as LinkRelOriginal, type LinkRelWithLiterals as LinkRelWithLiteralsOriginal, type ListAllItemsBelongToCollectionRequest as ListAllItemsBelongToCollectionRequestOriginal, type ListAllItemsBelongToCollectionResponse as ListAllItemsBelongToCollectionResponseOriginal, type ListCollectionItemsRequest as ListCollectionItemsRequestOriginal, type ListCollectionItemsResponse as ListCollectionItemsResponseOriginal, type ListCollectionMembersRequest as ListCollectionMembersRequestOriginal, type ListCollectionMembersResponse as ListCollectionMembersResponseOriginal, type ListCollectionsForItemRequest as ListCollectionsForItemRequestOriginal, type ListCollectionsForItemResponse as ListCollectionsForItemResponseOriginal, type ListMediaCollectionsRequest as ListMediaCollectionsRequestOriginal, type ListMediaCollectionsResponse as ListMediaCollectionsResponseOriginal, type MediaCollectionItemMetadataOneOf as MediaCollectionItemMetadataOneOfOriginal, type MediaCollectionItem as MediaCollectionItemOriginal, type MediaCollection as MediaCollectionOriginal, MediaOwner as MediaOwnerOriginal, type MediaOwnerWithLiterals as MediaOwnerWithLiteralsOriginal, type MemberAndStatus as MemberAndStatusOriginal, type MemberJoinedToCollection as MemberJoinedToCollectionOriginal, type MemberLeftCollection as MemberLeftCollectionOriginal, MemberStatus as MemberStatusOriginal, type MemberStatusWithLiterals as MemberStatusWithLiteralsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PageLink as PageLinkOriginal, type PartiallyUpdateMediaCollectionRequest as PartiallyUpdateMediaCollectionRequestOriginal, type PartiallyUpdateMediaCollectionResponse as PartiallyUpdateMediaCollectionResponseOriginal, type PermanentSiteDeletedResponse as PermanentSiteDeletedResponseOriginal, type PhoneLink as PhoneLinkOriginal, type PhotoMetadata as PhotoMetadataOriginal, type Point as PointOriginal, PrivacySettings as PrivacySettingsOriginal, type PrivacySettingsWithLiterals as PrivacySettingsWithLiteralsOriginal, type RemoveItemsRequest as RemoveItemsRequestOriginal, type RemoveItemsResponse as RemoveItemsResponseOriginal, type RemoveMemberFromCollectionRequest as RemoveMemberFromCollectionRequestOriginal, type RemoveMemberFromCollectionResponse as RemoveMemberFromCollectionResponseOriginal, type Resolution as ResolutionOriginal, type RestoreInfo as RestoreInfoOriginal, Source as SourceOriginal, type SourceWithLiterals as SourceWithLiteralsOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type TextMetadata as TextMetadataOriginal, type Thumbnail as ThumbnailOriginal, type TpaPageLink as TpaPageLinkOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type UnsharpMasking as UnsharpMaskingOriginal, type UpdateCollectionLockRequest as UpdateCollectionLockRequestOriginal, type UpdateCollectionLockResponse as UpdateCollectionLockResponseOriginal, type UpdateItem as UpdateItemOriginal, type UpdateItemsRequest as UpdateItemsRequestOriginal, type UpdateItemsResponse as UpdateItemsResponseOriginal, type VideoMetadata as VideoMetadataOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WhatsAppLink as WhatsAppLinkOriginal, type WixLinkLinkOneOf as WixLinkLinkOneOfOriginal, type WixLink as WixLinkOriginal, type __PublicMethodMetaInfo, _delete, addItems, create, get, getCollectionItem, joinToCollection, leaveCollection, list, listCollectionItems, listCollectionMembers, listCollectionsForItem, partiallyUpdate, removeItems };
|
package/build/cjs/meta.js
CHANGED
|
@@ -20,6 +20,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// meta.ts
|
|
21
21
|
var meta_exports = {};
|
|
22
22
|
__export(meta_exports, {
|
|
23
|
+
DataTypeOriginal: () => DataType,
|
|
24
|
+
LinkRelOriginal: () => LinkRel,
|
|
25
|
+
MediaOwnerOriginal: () => MediaOwner,
|
|
26
|
+
MemberStatusOriginal: () => MemberStatus,
|
|
27
|
+
PrivacySettingsOriginal: () => PrivacySettings,
|
|
28
|
+
SourceOriginal: () => Source,
|
|
29
|
+
StatusOriginal: () => Status,
|
|
30
|
+
TypeOriginal: () => Type,
|
|
31
|
+
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
23
32
|
_delete: () => _delete2,
|
|
24
33
|
addItems: () => addItems2,
|
|
25
34
|
create: () => create2,
|
|
@@ -114,6 +123,9 @@ function get(payload) {
|
|
|
114
123
|
method: "GET",
|
|
115
124
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.Get",
|
|
116
125
|
packageName: PACKAGE_NAME,
|
|
126
|
+
migrationOptions: {
|
|
127
|
+
optInTransformResponse: true
|
|
128
|
+
},
|
|
117
129
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
118
130
|
{
|
|
119
131
|
protoPath: "/v1/mediacollections/{mediaCollectionId}",
|
|
@@ -167,6 +179,9 @@ function listCollectionsForItem(payload) {
|
|
|
167
179
|
method: "GET",
|
|
168
180
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionsForItem",
|
|
169
181
|
packageName: PACKAGE_NAME,
|
|
182
|
+
migrationOptions: {
|
|
183
|
+
optInTransformResponse: true
|
|
184
|
+
},
|
|
170
185
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
171
186
|
{
|
|
172
187
|
protoPath: "/v1/mediacollections/items/{itemId}/collections",
|
|
@@ -223,6 +238,9 @@ function getCollectionItem(payload) {
|
|
|
223
238
|
method: "GET",
|
|
224
239
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.GetCollectionItem",
|
|
225
240
|
packageName: PACKAGE_NAME,
|
|
241
|
+
migrationOptions: {
|
|
242
|
+
optInTransformResponse: true
|
|
243
|
+
},
|
|
226
244
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
227
245
|
{
|
|
228
246
|
protoPath: "/v1/mediacollections/{mediaCollectionId}/items/{itemId}",
|
|
@@ -262,6 +280,9 @@ function list(payload) {
|
|
|
262
280
|
method: "GET",
|
|
263
281
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.List",
|
|
264
282
|
packageName: PACKAGE_NAME,
|
|
283
|
+
migrationOptions: {
|
|
284
|
+
optInTransformResponse: true
|
|
285
|
+
},
|
|
265
286
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
266
287
|
{ protoPath: "/v1/mediacollections", data: payload, host }
|
|
267
288
|
),
|
|
@@ -321,6 +342,9 @@ function create(payload) {
|
|
|
321
342
|
method: "POST",
|
|
322
343
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.Create",
|
|
323
344
|
packageName: PACKAGE_NAME,
|
|
345
|
+
migrationOptions: {
|
|
346
|
+
optInTransformResponse: true
|
|
347
|
+
},
|
|
324
348
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
325
349
|
{ protoPath: "/v1/mediacollections", data: serializedData, host }
|
|
326
350
|
),
|
|
@@ -366,6 +390,9 @@ function partiallyUpdate(payload) {
|
|
|
366
390
|
method: "PUT",
|
|
367
391
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.PartiallyUpdate",
|
|
368
392
|
packageName: PACKAGE_NAME,
|
|
393
|
+
migrationOptions: {
|
|
394
|
+
optInTransformResponse: true
|
|
395
|
+
},
|
|
369
396
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
370
397
|
{
|
|
371
398
|
protoPath: "/v1/mediacollections/{mediaCollection.id}",
|
|
@@ -386,6 +413,9 @@ function _delete(payload) {
|
|
|
386
413
|
method: "DELETE",
|
|
387
414
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService._delete",
|
|
388
415
|
packageName: PACKAGE_NAME,
|
|
416
|
+
migrationOptions: {
|
|
417
|
+
optInTransformResponse: true
|
|
418
|
+
},
|
|
389
419
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
390
420
|
{
|
|
391
421
|
protoPath: "/v1/mediacollections/{mediaCollectionId}",
|
|
@@ -406,6 +436,9 @@ function listCollectionMembers(payload) {
|
|
|
406
436
|
method: "GET",
|
|
407
437
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionMembers",
|
|
408
438
|
packageName: PACKAGE_NAME,
|
|
439
|
+
migrationOptions: {
|
|
440
|
+
optInTransformResponse: true
|
|
441
|
+
},
|
|
409
442
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
410
443
|
{
|
|
411
444
|
protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
|
|
@@ -432,6 +465,9 @@ function addItems(payload) {
|
|
|
432
465
|
method: "POST",
|
|
433
466
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.AddItems",
|
|
434
467
|
packageName: PACKAGE_NAME,
|
|
468
|
+
migrationOptions: {
|
|
469
|
+
optInTransformResponse: true
|
|
470
|
+
},
|
|
435
471
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
436
472
|
{
|
|
437
473
|
protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
|
|
@@ -452,6 +488,9 @@ function removeItems(payload) {
|
|
|
452
488
|
method: "DELETE",
|
|
453
489
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.RemoveItems",
|
|
454
490
|
packageName: PACKAGE_NAME,
|
|
491
|
+
migrationOptions: {
|
|
492
|
+
optInTransformResponse: true
|
|
493
|
+
},
|
|
455
494
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
456
495
|
{
|
|
457
496
|
protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
|
|
@@ -472,6 +511,9 @@ function joinToCollection(payload) {
|
|
|
472
511
|
method: "POST",
|
|
473
512
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.JoinToCollection",
|
|
474
513
|
packageName: PACKAGE_NAME,
|
|
514
|
+
migrationOptions: {
|
|
515
|
+
optInTransformResponse: true
|
|
516
|
+
},
|
|
475
517
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
476
518
|
{
|
|
477
519
|
protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
|
|
@@ -492,6 +534,9 @@ function leaveCollection(payload) {
|
|
|
492
534
|
method: "DELETE",
|
|
493
535
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.LeaveCollection",
|
|
494
536
|
packageName: PACKAGE_NAME,
|
|
537
|
+
migrationOptions: {
|
|
538
|
+
optInTransformResponse: true
|
|
539
|
+
},
|
|
495
540
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
496
541
|
{
|
|
497
542
|
protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
|
|
@@ -512,6 +557,9 @@ function listCollectionItems(payload) {
|
|
|
512
557
|
method: "GET",
|
|
513
558
|
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionItems",
|
|
514
559
|
packageName: PACKAGE_NAME,
|
|
560
|
+
migrationOptions: {
|
|
561
|
+
optInTransformResponse: true
|
|
562
|
+
},
|
|
515
563
|
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
516
564
|
{
|
|
517
565
|
protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
|
|
@@ -536,6 +584,70 @@ function listCollectionItems(payload) {
|
|
|
536
584
|
return __listCollectionItems;
|
|
537
585
|
}
|
|
538
586
|
|
|
587
|
+
// src/collections-v1-collection-media-collections.types.ts
|
|
588
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
589
|
+
Type2["Undefined"] = "Undefined";
|
|
590
|
+
Type2["External"] = "External";
|
|
591
|
+
Type2["Internal"] = "Internal";
|
|
592
|
+
return Type2;
|
|
593
|
+
})(Type || {});
|
|
594
|
+
var LinkRel = /* @__PURE__ */ ((LinkRel2) => {
|
|
595
|
+
LinkRel2["unknown_link_rel"] = "unknown_link_rel";
|
|
596
|
+
LinkRel2["nofollow"] = "nofollow";
|
|
597
|
+
LinkRel2["noopener"] = "noopener";
|
|
598
|
+
LinkRel2["noreferrer"] = "noreferrer";
|
|
599
|
+
LinkRel2["sponsored"] = "sponsored";
|
|
600
|
+
return LinkRel2;
|
|
601
|
+
})(LinkRel || {});
|
|
602
|
+
var DataType = /* @__PURE__ */ ((DataType2) => {
|
|
603
|
+
DataType2["Undefined"] = "Undefined";
|
|
604
|
+
DataType2["Photo"] = "Photo";
|
|
605
|
+
DataType2["Video"] = "Video";
|
|
606
|
+
DataType2["Text"] = "Text";
|
|
607
|
+
return DataType2;
|
|
608
|
+
})(DataType || {});
|
|
609
|
+
var Source = /* @__PURE__ */ ((Source2) => {
|
|
610
|
+
Source2["Undefined"] = "Undefined";
|
|
611
|
+
Source2["Youtube"] = "Youtube";
|
|
612
|
+
Source2["Vimeo"] = "Vimeo";
|
|
613
|
+
Source2["Custom"] = "Custom";
|
|
614
|
+
return Source2;
|
|
615
|
+
})(Source || {});
|
|
616
|
+
var MediaOwner = /* @__PURE__ */ ((MediaOwner2) => {
|
|
617
|
+
MediaOwner2["Undefined"] = "Undefined";
|
|
618
|
+
MediaOwner2["Wix"] = "Wix";
|
|
619
|
+
MediaOwner2["DeviantArt"] = "DeviantArt";
|
|
620
|
+
MediaOwner2["Custom"] = "Custom";
|
|
621
|
+
return MediaOwner2;
|
|
622
|
+
})(MediaOwner || {});
|
|
623
|
+
var PrivacySettings = /* @__PURE__ */ ((PrivacySettings2) => {
|
|
624
|
+
PrivacySettings2["Undefined"] = "Undefined";
|
|
625
|
+
PrivacySettings2["Public"] = "Public";
|
|
626
|
+
PrivacySettings2["Secret"] = "Secret";
|
|
627
|
+
return PrivacySettings2;
|
|
628
|
+
})(PrivacySettings || {});
|
|
629
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
630
|
+
Status2["UNKNOWN"] = "UNKNOWN";
|
|
631
|
+
Status2["HANDLED"] = "HANDLED";
|
|
632
|
+
Status2["NOTHING_TO_HANDLE"] = "NOTHING_TO_HANDLE";
|
|
633
|
+
return Status2;
|
|
634
|
+
})(Status || {});
|
|
635
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
636
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
637
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
638
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
639
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
640
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
641
|
+
return WebhookIdentityType2;
|
|
642
|
+
})(WebhookIdentityType || {});
|
|
643
|
+
var MemberStatus = /* @__PURE__ */ ((MemberStatus2) => {
|
|
644
|
+
MemberStatus2["UNDEFINED"] = "UNDEFINED";
|
|
645
|
+
MemberStatus2["NOT_MEMBER"] = "NOT_MEMBER";
|
|
646
|
+
MemberStatus2["MEMBER"] = "MEMBER";
|
|
647
|
+
MemberStatus2["ADMIN"] = "ADMIN";
|
|
648
|
+
return MemberStatus2;
|
|
649
|
+
})(MemberStatus || {});
|
|
650
|
+
|
|
539
651
|
// src/collections-v1-collection-media-collections.meta.ts
|
|
540
652
|
function get2() {
|
|
541
653
|
const payload = { mediaCollectionId: ":mediaCollectionId" };
|
|
@@ -776,6 +888,15 @@ function listCollectionItems2() {
|
|
|
776
888
|
}
|
|
777
889
|
// Annotate the CommonJS export names for ESM import in node:
|
|
778
890
|
0 && (module.exports = {
|
|
891
|
+
DataTypeOriginal,
|
|
892
|
+
LinkRelOriginal,
|
|
893
|
+
MediaOwnerOriginal,
|
|
894
|
+
MemberStatusOriginal,
|
|
895
|
+
PrivacySettingsOriginal,
|
|
896
|
+
SourceOriginal,
|
|
897
|
+
StatusOriginal,
|
|
898
|
+
TypeOriginal,
|
|
899
|
+
WebhookIdentityTypeOriginal,
|
|
779
900
|
_delete,
|
|
780
901
|
addItems,
|
|
781
902
|
create,
|