@wix/portfolio 1.0.109 → 1.0.111
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/portfolio",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.111",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"type-bundles"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@wix/portfolio_collections": "1.0.
|
|
25
|
-
"@wix/portfolio_portfolio-settings": "1.0.
|
|
24
|
+
"@wix/portfolio_collections": "1.0.36",
|
|
25
|
+
"@wix/portfolio_portfolio-settings": "1.0.22",
|
|
26
26
|
"@wix/portfolio_project-in-collections": "1.0.38",
|
|
27
27
|
"@wix/portfolio_project-items": "1.0.40",
|
|
28
28
|
"@wix/portfolio_projects": "1.0.52",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"fqdn": ""
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"falconPackageHash": "
|
|
54
|
+
"falconPackageHash": "3173661987cb957a294fda975147f8ae3d4dd9004198dc4f8d61f67b"
|
|
55
55
|
}
|
|
@@ -487,9 +487,7 @@ interface Collection {
|
|
|
487
487
|
* @readonly
|
|
488
488
|
*/
|
|
489
489
|
revision?: string | null;
|
|
490
|
-
/** Collection title. */
|
|
491
490
|
title?: string | null;
|
|
492
|
-
/** Collection description. */
|
|
493
491
|
description?: string | null;
|
|
494
492
|
/** Collection slug. */
|
|
495
493
|
slug?: string | null;
|
|
@@ -686,6 +684,46 @@ interface AdminRemoveMenuItemsResponse {
|
|
|
686
684
|
/** number of items sucessfully deleted */
|
|
687
685
|
numItemsSuccessfullyDeleted?: number;
|
|
688
686
|
}
|
|
687
|
+
interface MessageEnvelope$5 {
|
|
688
|
+
/** App instance ID. */
|
|
689
|
+
instanceId?: string | null;
|
|
690
|
+
/** Event type. */
|
|
691
|
+
eventType?: string;
|
|
692
|
+
/** The identification type and identity data. */
|
|
693
|
+
identity?: IdentificationData$5;
|
|
694
|
+
/** Stringify payload. */
|
|
695
|
+
data?: string;
|
|
696
|
+
}
|
|
697
|
+
interface IdentificationData$5 extends IdentificationDataIdOneOf$5 {
|
|
698
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
699
|
+
anonymousVisitorId?: string;
|
|
700
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
701
|
+
memberId?: string;
|
|
702
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
703
|
+
wixUserId?: string;
|
|
704
|
+
/** ID of an app. */
|
|
705
|
+
appId?: string;
|
|
706
|
+
/** @readonly */
|
|
707
|
+
identityType?: WebhookIdentityType$5;
|
|
708
|
+
}
|
|
709
|
+
/** @oneof */
|
|
710
|
+
interface IdentificationDataIdOneOf$5 {
|
|
711
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
712
|
+
anonymousVisitorId?: string;
|
|
713
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
714
|
+
memberId?: string;
|
|
715
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
716
|
+
wixUserId?: string;
|
|
717
|
+
/** ID of an app. */
|
|
718
|
+
appId?: string;
|
|
719
|
+
}
|
|
720
|
+
declare enum WebhookIdentityType$5 {
|
|
721
|
+
UNKNOWN = "UNKNOWN",
|
|
722
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
723
|
+
MEMBER = "MEMBER",
|
|
724
|
+
WIX_USER = "WIX_USER",
|
|
725
|
+
APP = "APP"
|
|
726
|
+
}
|
|
689
727
|
interface InvalidateCache$2 extends InvalidateCacheGetByOneOf$2 {
|
|
690
728
|
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
691
729
|
metaSiteId?: string;
|
|
@@ -876,46 +914,6 @@ interface QueryCollectionsResponse {
|
|
|
876
914
|
/** Paging metadata. */
|
|
877
915
|
metadata?: PagingMetadataV2$4;
|
|
878
916
|
}
|
|
879
|
-
interface MessageEnvelope$5 {
|
|
880
|
-
/** App instance ID. */
|
|
881
|
-
instanceId?: string | null;
|
|
882
|
-
/** Event type. */
|
|
883
|
-
eventType?: string;
|
|
884
|
-
/** The identification type and identity data. */
|
|
885
|
-
identity?: IdentificationData$5;
|
|
886
|
-
/** Stringify payload. */
|
|
887
|
-
data?: string;
|
|
888
|
-
}
|
|
889
|
-
interface IdentificationData$5 extends IdentificationDataIdOneOf$5 {
|
|
890
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
891
|
-
anonymousVisitorId?: string;
|
|
892
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
893
|
-
memberId?: string;
|
|
894
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
895
|
-
wixUserId?: string;
|
|
896
|
-
/** ID of an app. */
|
|
897
|
-
appId?: string;
|
|
898
|
-
/** @readonly */
|
|
899
|
-
identityType?: WebhookIdentityType$5;
|
|
900
|
-
}
|
|
901
|
-
/** @oneof */
|
|
902
|
-
interface IdentificationDataIdOneOf$5 {
|
|
903
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
904
|
-
anonymousVisitorId?: string;
|
|
905
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
906
|
-
memberId?: string;
|
|
907
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
908
|
-
wixUserId?: string;
|
|
909
|
-
/** ID of an app. */
|
|
910
|
-
appId?: string;
|
|
911
|
-
}
|
|
912
|
-
declare enum WebhookIdentityType$5 {
|
|
913
|
-
UNKNOWN = "UNKNOWN",
|
|
914
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
915
|
-
MEMBER = "MEMBER",
|
|
916
|
-
WIX_USER = "WIX_USER",
|
|
917
|
-
APP = "APP"
|
|
918
|
-
}
|
|
919
917
|
interface PointNonNullableFields$3 {
|
|
920
918
|
x: number;
|
|
921
919
|
y: number;
|
|
@@ -966,63 +964,6 @@ interface DeleteCollectionResponseNonNullableFields {
|
|
|
966
964
|
interface QueryCollectionsResponseNonNullableFields {
|
|
967
965
|
collections: CollectionNonNullableFields[];
|
|
968
966
|
}
|
|
969
|
-
interface BaseEventMetadata$3 {
|
|
970
|
-
/** App instance ID. */
|
|
971
|
-
instanceId?: string | null;
|
|
972
|
-
/** Event type. */
|
|
973
|
-
eventType?: string;
|
|
974
|
-
/** The identification type and identity data. */
|
|
975
|
-
identity?: IdentificationData$5;
|
|
976
|
-
}
|
|
977
|
-
interface EventMetadata$3 extends BaseEventMetadata$3 {
|
|
978
|
-
/**
|
|
979
|
-
* Unique event ID.
|
|
980
|
-
* Allows clients to ignore duplicate webhooks.
|
|
981
|
-
*/
|
|
982
|
-
_id?: string;
|
|
983
|
-
/**
|
|
984
|
-
* Assumes actions are also always typed to an entity_type
|
|
985
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
986
|
-
*/
|
|
987
|
-
entityFqdn?: string;
|
|
988
|
-
/**
|
|
989
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
990
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
991
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
992
|
-
*/
|
|
993
|
-
slug?: string;
|
|
994
|
-
/** ID of the entity associated with the event. */
|
|
995
|
-
entityId?: string;
|
|
996
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
997
|
-
eventTime?: Date | null;
|
|
998
|
-
/**
|
|
999
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1000
|
-
* (for example, GDPR).
|
|
1001
|
-
*/
|
|
1002
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1003
|
-
/** If present, indicates the action that triggered the event. */
|
|
1004
|
-
originatedFrom?: string | null;
|
|
1005
|
-
/**
|
|
1006
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
1007
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1008
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1009
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1010
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1011
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1012
|
-
*/
|
|
1013
|
-
entityEventSequence?: string | null;
|
|
1014
|
-
}
|
|
1015
|
-
interface CollectionCreatedEnvelope {
|
|
1016
|
-
entity: Collection;
|
|
1017
|
-
metadata: EventMetadata$3;
|
|
1018
|
-
}
|
|
1019
|
-
interface CollectionUpdatedEnvelope {
|
|
1020
|
-
entity: Collection;
|
|
1021
|
-
metadata: EventMetadata$3;
|
|
1022
|
-
}
|
|
1023
|
-
interface CollectionDeletedEnvelope {
|
|
1024
|
-
metadata: EventMetadata$3;
|
|
1025
|
-
}
|
|
1026
967
|
interface GetCollectionOptions {
|
|
1027
968
|
/** Whether to include the collection's page URL and relative path in the response. */
|
|
1028
969
|
includePageUrl?: boolean | null;
|
|
@@ -1044,9 +985,7 @@ interface UpdateCollection {
|
|
|
1044
985
|
* @readonly
|
|
1045
986
|
*/
|
|
1046
987
|
revision?: string | null;
|
|
1047
|
-
/** Collection title. */
|
|
1048
988
|
title?: string | null;
|
|
1049
|
-
/** Collection description. */
|
|
1050
989
|
description?: string | null;
|
|
1051
990
|
/** Collection slug. */
|
|
1052
991
|
slug?: string | null;
|
|
@@ -1214,11 +1153,6 @@ interface QueryCollectionsSignature {
|
|
|
1214
1153
|
*/
|
|
1215
1154
|
(options?: QueryCollectionsOptions | undefined): CollectionsQueryBuilder;
|
|
1216
1155
|
}
|
|
1217
|
-
declare const onCollectionCreated$1: EventDefinition<CollectionCreatedEnvelope, "wix.portfolio.collections.v1.collection_created">;
|
|
1218
|
-
declare const onCollectionUpdated$1: EventDefinition<CollectionUpdatedEnvelope, "wix.portfolio.collections.v1.collection_updated">;
|
|
1219
|
-
declare const onCollectionDeleted$1: EventDefinition<CollectionDeletedEnvelope, "wix.portfolio.collections.v1.collection_deleted">;
|
|
1220
|
-
|
|
1221
|
-
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1222
1156
|
|
|
1223
1157
|
declare const createCollection: MaybeContext<BuildRESTFunction<typeof createCollection$1> & typeof createCollection$1>;
|
|
1224
1158
|
declare const getCollection: MaybeContext<BuildRESTFunction<typeof getCollection$1> & typeof getCollection$1>;
|
|
@@ -1227,30 +1161,9 @@ declare const updateCollection: MaybeContext<BuildRESTFunction<typeof updateColl
|
|
|
1227
1161
|
declare const deleteCollection: MaybeContext<BuildRESTFunction<typeof deleteCollection$1> & typeof deleteCollection$1>;
|
|
1228
1162
|
declare const queryCollections: MaybeContext<BuildRESTFunction<typeof queryCollections$1> & typeof queryCollections$1>;
|
|
1229
1163
|
|
|
1230
|
-
type _publicOnCollectionCreatedType = typeof onCollectionCreated$1;
|
|
1231
|
-
/**
|
|
1232
|
-
* Triggered when a collection is created.
|
|
1233
|
-
*/
|
|
1234
|
-
declare const onCollectionCreated: ReturnType<typeof createEventModule$3<_publicOnCollectionCreatedType>>;
|
|
1235
|
-
|
|
1236
|
-
type _publicOnCollectionUpdatedType = typeof onCollectionUpdated$1;
|
|
1237
|
-
/**
|
|
1238
|
-
* Triggered when a collection is updated.
|
|
1239
|
-
*/
|
|
1240
|
-
declare const onCollectionUpdated: ReturnType<typeof createEventModule$3<_publicOnCollectionUpdatedType>>;
|
|
1241
|
-
|
|
1242
|
-
type _publicOnCollectionDeletedType = typeof onCollectionDeleted$1;
|
|
1243
|
-
/**
|
|
1244
|
-
* Triggered when a collection is deleted.
|
|
1245
|
-
*/
|
|
1246
|
-
declare const onCollectionDeleted: ReturnType<typeof createEventModule$3<_publicOnCollectionDeletedType>>;
|
|
1247
|
-
|
|
1248
1164
|
type context$5_AdminRemoveMenuItemsResponse = AdminRemoveMenuItemsResponse;
|
|
1249
1165
|
type context$5_Collection = Collection;
|
|
1250
|
-
type context$5_CollectionCreatedEnvelope = CollectionCreatedEnvelope;
|
|
1251
|
-
type context$5_CollectionDeletedEnvelope = CollectionDeletedEnvelope;
|
|
1252
1166
|
type context$5_CollectionNonNullableFields = CollectionNonNullableFields;
|
|
1253
|
-
type context$5_CollectionUpdatedEnvelope = CollectionUpdatedEnvelope;
|
|
1254
1167
|
type context$5_CollectionsQueryBuilder = CollectionsQueryBuilder;
|
|
1255
1168
|
type context$5_CollectionsQueryResult = CollectionsQueryResult;
|
|
1256
1169
|
type context$5_CreateCollectionRequest = CreateCollectionRequest;
|
|
@@ -1275,20 +1188,14 @@ type context$5_UpdateCollection = UpdateCollection;
|
|
|
1275
1188
|
type context$5_UpdateCollectionRequest = UpdateCollectionRequest;
|
|
1276
1189
|
type context$5_UpdateCollectionResponse = UpdateCollectionResponse;
|
|
1277
1190
|
type context$5_UpdateCollectionResponseNonNullableFields = UpdateCollectionResponseNonNullableFields;
|
|
1278
|
-
type context$5__publicOnCollectionCreatedType = _publicOnCollectionCreatedType;
|
|
1279
|
-
type context$5__publicOnCollectionDeletedType = _publicOnCollectionDeletedType;
|
|
1280
|
-
type context$5__publicOnCollectionUpdatedType = _publicOnCollectionUpdatedType;
|
|
1281
1191
|
declare const context$5_createCollection: typeof createCollection;
|
|
1282
1192
|
declare const context$5_deleteCollection: typeof deleteCollection;
|
|
1283
1193
|
declare const context$5_getCollection: typeof getCollection;
|
|
1284
1194
|
declare const context$5_listCollections: typeof listCollections;
|
|
1285
|
-
declare const context$5_onCollectionCreated: typeof onCollectionCreated;
|
|
1286
|
-
declare const context$5_onCollectionDeleted: typeof onCollectionDeleted;
|
|
1287
|
-
declare const context$5_onCollectionUpdated: typeof onCollectionUpdated;
|
|
1288
1195
|
declare const context$5_queryCollections: typeof queryCollections;
|
|
1289
1196
|
declare const context$5_updateCollection: typeof updateCollection;
|
|
1290
1197
|
declare namespace context$5 {
|
|
1291
|
-
export { type ActionEvent$5 as ActionEvent, type context$5_AdminRemoveMenuItemsResponse as AdminRemoveMenuItemsResponse, type App$2 as App, type
|
|
1198
|
+
export { type ActionEvent$5 as ActionEvent, type context$5_AdminRemoveMenuItemsResponse as AdminRemoveMenuItemsResponse, type App$2 as App, type context$5_Collection as Collection, type context$5_CollectionNonNullableFields as CollectionNonNullableFields, type context$5_CollectionsQueryBuilder as CollectionsQueryBuilder, type context$5_CollectionsQueryResult as CollectionsQueryResult, type context$5_CreateCollectionRequest as CreateCollectionRequest, type context$5_CreateCollectionResponse as CreateCollectionResponse, type context$5_CreateCollectionResponseNonNullableFields as CreateCollectionResponseNonNullableFields, type CursorPaging$4 as CursorPaging, type Cursors$4 as Cursors, type context$5_DeleteCollectionRequest as DeleteCollectionRequest, type context$5_DeleteCollectionResponse as DeleteCollectionResponse, type context$5_DeleteCollectionResponseNonNullableFields as DeleteCollectionResponseNonNullableFields, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type File$2 as File, type context$5_GetCollectionOptions as GetCollectionOptions, type context$5_GetCollectionRequest as GetCollectionRequest, type context$5_GetCollectionResponse as GetCollectionResponse, type context$5_GetCollectionResponseNonNullableFields as GetCollectionResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type Image$3 as Image, ImageType$3 as ImageType, type InvalidateCache$2 as InvalidateCache, type InvalidateCacheGetByOneOf$2 as InvalidateCacheGetByOneOf, type Keyword$2 as Keyword, type context$5_ListCollectionsOptions as ListCollectionsOptions, type context$5_ListCollectionsRequest as ListCollectionsRequest, type context$5_ListCollectionsResponse as ListCollectionsResponse, type context$5_ListCollectionsResponseNonNullableFields as ListCollectionsResponseNonNullableFields, type MessageEnvelope$5 as MessageEnvelope, type Page$2 as Page, type Paging$3 as Paging, type PagingMetadataV2$4 as PagingMetadataV2, type Point$3 as Point, type context$5_QueryCollectionsOptions as QueryCollectionsOptions, type context$5_QueryCollectionsRequest as QueryCollectionsRequest, type context$5_QueryCollectionsResponse as QueryCollectionsResponse, type context$5_QueryCollectionsResponseNonNullableFields as QueryCollectionsResponseNonNullableFields, type QueryV2$3 as QueryV2, type QueryV2PagingMethodOneOf$3 as QueryV2PagingMethodOneOf, type RestoreInfo$5 as RestoreInfo, type SeoSchema$2 as SeoSchema, type Settings$2 as Settings, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, type Tag$2 as Tag, type URI$2 as URI, type UnsharpMasking$3 as UnsharpMasking, type context$5_UpdateCollection as UpdateCollection, type context$5_UpdateCollectionRequest as UpdateCollectionRequest, type context$5_UpdateCollectionResponse as UpdateCollectionResponse, type context$5_UpdateCollectionResponseNonNullableFields as UpdateCollectionResponseNonNullableFields, WebhookIdentityType$5 as WebhookIdentityType, context$5_createCollection as createCollection, context$5_deleteCollection as deleteCollection, context$5_getCollection as getCollection, context$5_listCollections as listCollections, context$5_queryCollections as queryCollections, context$5_updateCollection as updateCollection };
|
|
1292
1199
|
}
|
|
1293
1200
|
|
|
1294
1201
|
interface PortfolioSettings {
|
|
@@ -1330,7 +1237,7 @@ declare enum DefaultItemName {
|
|
|
1330
1237
|
EMPTY = "EMPTY"
|
|
1331
1238
|
}
|
|
1332
1239
|
interface MediaSettings {
|
|
1333
|
-
/**
|
|
1240
|
+
/** ID of the folder containing the media. */
|
|
1334
1241
|
folderId?: string | null;
|
|
1335
1242
|
}
|
|
1336
1243
|
interface SiteMenuSettings {
|
|
@@ -487,9 +487,7 @@ interface Collection {
|
|
|
487
487
|
* @readonly
|
|
488
488
|
*/
|
|
489
489
|
revision?: string | null;
|
|
490
|
-
/** Collection title. */
|
|
491
490
|
title?: string | null;
|
|
492
|
-
/** Collection description. */
|
|
493
491
|
description?: string | null;
|
|
494
492
|
/** Collection slug. */
|
|
495
493
|
slug?: string | null;
|
|
@@ -686,6 +684,46 @@ interface AdminRemoveMenuItemsResponse {
|
|
|
686
684
|
/** number of items sucessfully deleted */
|
|
687
685
|
numItemsSuccessfullyDeleted?: number;
|
|
688
686
|
}
|
|
687
|
+
interface MessageEnvelope$5 {
|
|
688
|
+
/** App instance ID. */
|
|
689
|
+
instanceId?: string | null;
|
|
690
|
+
/** Event type. */
|
|
691
|
+
eventType?: string;
|
|
692
|
+
/** The identification type and identity data. */
|
|
693
|
+
identity?: IdentificationData$5;
|
|
694
|
+
/** Stringify payload. */
|
|
695
|
+
data?: string;
|
|
696
|
+
}
|
|
697
|
+
interface IdentificationData$5 extends IdentificationDataIdOneOf$5 {
|
|
698
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
699
|
+
anonymousVisitorId?: string;
|
|
700
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
701
|
+
memberId?: string;
|
|
702
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
703
|
+
wixUserId?: string;
|
|
704
|
+
/** ID of an app. */
|
|
705
|
+
appId?: string;
|
|
706
|
+
/** @readonly */
|
|
707
|
+
identityType?: WebhookIdentityType$5;
|
|
708
|
+
}
|
|
709
|
+
/** @oneof */
|
|
710
|
+
interface IdentificationDataIdOneOf$5 {
|
|
711
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
712
|
+
anonymousVisitorId?: string;
|
|
713
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
714
|
+
memberId?: string;
|
|
715
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
716
|
+
wixUserId?: string;
|
|
717
|
+
/** ID of an app. */
|
|
718
|
+
appId?: string;
|
|
719
|
+
}
|
|
720
|
+
declare enum WebhookIdentityType$5 {
|
|
721
|
+
UNKNOWN = "UNKNOWN",
|
|
722
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
723
|
+
MEMBER = "MEMBER",
|
|
724
|
+
WIX_USER = "WIX_USER",
|
|
725
|
+
APP = "APP"
|
|
726
|
+
}
|
|
689
727
|
interface InvalidateCache$2 extends InvalidateCacheGetByOneOf$2 {
|
|
690
728
|
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
|
691
729
|
metaSiteId?: string;
|
|
@@ -876,46 +914,6 @@ interface QueryCollectionsResponse {
|
|
|
876
914
|
/** Paging metadata. */
|
|
877
915
|
metadata?: PagingMetadataV2$4;
|
|
878
916
|
}
|
|
879
|
-
interface MessageEnvelope$5 {
|
|
880
|
-
/** App instance ID. */
|
|
881
|
-
instanceId?: string | null;
|
|
882
|
-
/** Event type. */
|
|
883
|
-
eventType?: string;
|
|
884
|
-
/** The identification type and identity data. */
|
|
885
|
-
identity?: IdentificationData$5;
|
|
886
|
-
/** Stringify payload. */
|
|
887
|
-
data?: string;
|
|
888
|
-
}
|
|
889
|
-
interface IdentificationData$5 extends IdentificationDataIdOneOf$5 {
|
|
890
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
891
|
-
anonymousVisitorId?: string;
|
|
892
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
893
|
-
memberId?: string;
|
|
894
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
895
|
-
wixUserId?: string;
|
|
896
|
-
/** ID of an app. */
|
|
897
|
-
appId?: string;
|
|
898
|
-
/** @readonly */
|
|
899
|
-
identityType?: WebhookIdentityType$5;
|
|
900
|
-
}
|
|
901
|
-
/** @oneof */
|
|
902
|
-
interface IdentificationDataIdOneOf$5 {
|
|
903
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
904
|
-
anonymousVisitorId?: string;
|
|
905
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
906
|
-
memberId?: string;
|
|
907
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
908
|
-
wixUserId?: string;
|
|
909
|
-
/** ID of an app. */
|
|
910
|
-
appId?: string;
|
|
911
|
-
}
|
|
912
|
-
declare enum WebhookIdentityType$5 {
|
|
913
|
-
UNKNOWN = "UNKNOWN",
|
|
914
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
915
|
-
MEMBER = "MEMBER",
|
|
916
|
-
WIX_USER = "WIX_USER",
|
|
917
|
-
APP = "APP"
|
|
918
|
-
}
|
|
919
917
|
interface PointNonNullableFields$3 {
|
|
920
918
|
x: number;
|
|
921
919
|
y: number;
|
|
@@ -966,63 +964,6 @@ interface DeleteCollectionResponseNonNullableFields {
|
|
|
966
964
|
interface QueryCollectionsResponseNonNullableFields {
|
|
967
965
|
collections: CollectionNonNullableFields[];
|
|
968
966
|
}
|
|
969
|
-
interface BaseEventMetadata$3 {
|
|
970
|
-
/** App instance ID. */
|
|
971
|
-
instanceId?: string | null;
|
|
972
|
-
/** Event type. */
|
|
973
|
-
eventType?: string;
|
|
974
|
-
/** The identification type and identity data. */
|
|
975
|
-
identity?: IdentificationData$5;
|
|
976
|
-
}
|
|
977
|
-
interface EventMetadata$3 extends BaseEventMetadata$3 {
|
|
978
|
-
/**
|
|
979
|
-
* Unique event ID.
|
|
980
|
-
* Allows clients to ignore duplicate webhooks.
|
|
981
|
-
*/
|
|
982
|
-
_id?: string;
|
|
983
|
-
/**
|
|
984
|
-
* Assumes actions are also always typed to an entity_type
|
|
985
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
986
|
-
*/
|
|
987
|
-
entityFqdn?: string;
|
|
988
|
-
/**
|
|
989
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
990
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
991
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
992
|
-
*/
|
|
993
|
-
slug?: string;
|
|
994
|
-
/** ID of the entity associated with the event. */
|
|
995
|
-
entityId?: string;
|
|
996
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
997
|
-
eventTime?: Date | null;
|
|
998
|
-
/**
|
|
999
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1000
|
-
* (for example, GDPR).
|
|
1001
|
-
*/
|
|
1002
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1003
|
-
/** If present, indicates the action that triggered the event. */
|
|
1004
|
-
originatedFrom?: string | null;
|
|
1005
|
-
/**
|
|
1006
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
1007
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1008
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1009
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1010
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1011
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1012
|
-
*/
|
|
1013
|
-
entityEventSequence?: string | null;
|
|
1014
|
-
}
|
|
1015
|
-
interface CollectionCreatedEnvelope {
|
|
1016
|
-
entity: Collection;
|
|
1017
|
-
metadata: EventMetadata$3;
|
|
1018
|
-
}
|
|
1019
|
-
interface CollectionUpdatedEnvelope {
|
|
1020
|
-
entity: Collection;
|
|
1021
|
-
metadata: EventMetadata$3;
|
|
1022
|
-
}
|
|
1023
|
-
interface CollectionDeletedEnvelope {
|
|
1024
|
-
metadata: EventMetadata$3;
|
|
1025
|
-
}
|
|
1026
967
|
interface GetCollectionOptions {
|
|
1027
968
|
/** Whether to include the collection's page URL and relative path in the response. */
|
|
1028
969
|
includePageUrl?: boolean | null;
|
|
@@ -1044,9 +985,7 @@ interface UpdateCollection {
|
|
|
1044
985
|
* @readonly
|
|
1045
986
|
*/
|
|
1046
987
|
revision?: string | null;
|
|
1047
|
-
/** Collection title. */
|
|
1048
988
|
title?: string | null;
|
|
1049
|
-
/** Collection description. */
|
|
1050
989
|
description?: string | null;
|
|
1051
990
|
/** Collection slug. */
|
|
1052
991
|
slug?: string | null;
|
|
@@ -1214,11 +1153,6 @@ interface QueryCollectionsSignature {
|
|
|
1214
1153
|
*/
|
|
1215
1154
|
(options?: QueryCollectionsOptions | undefined): CollectionsQueryBuilder;
|
|
1216
1155
|
}
|
|
1217
|
-
declare const onCollectionCreated$1: EventDefinition<CollectionCreatedEnvelope, "wix.portfolio.collections.v1.collection_created">;
|
|
1218
|
-
declare const onCollectionUpdated$1: EventDefinition<CollectionUpdatedEnvelope, "wix.portfolio.collections.v1.collection_updated">;
|
|
1219
|
-
declare const onCollectionDeleted$1: EventDefinition<CollectionDeletedEnvelope, "wix.portfolio.collections.v1.collection_deleted">;
|
|
1220
|
-
|
|
1221
|
-
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1222
1156
|
|
|
1223
1157
|
declare const createCollection: MaybeContext<BuildRESTFunction<typeof createCollection$1> & typeof createCollection$1>;
|
|
1224
1158
|
declare const getCollection: MaybeContext<BuildRESTFunction<typeof getCollection$1> & typeof getCollection$1>;
|
|
@@ -1227,30 +1161,9 @@ declare const updateCollection: MaybeContext<BuildRESTFunction<typeof updateColl
|
|
|
1227
1161
|
declare const deleteCollection: MaybeContext<BuildRESTFunction<typeof deleteCollection$1> & typeof deleteCollection$1>;
|
|
1228
1162
|
declare const queryCollections: MaybeContext<BuildRESTFunction<typeof queryCollections$1> & typeof queryCollections$1>;
|
|
1229
1163
|
|
|
1230
|
-
type _publicOnCollectionCreatedType = typeof onCollectionCreated$1;
|
|
1231
|
-
/**
|
|
1232
|
-
* Triggered when a collection is created.
|
|
1233
|
-
*/
|
|
1234
|
-
declare const onCollectionCreated: ReturnType<typeof createEventModule$3<_publicOnCollectionCreatedType>>;
|
|
1235
|
-
|
|
1236
|
-
type _publicOnCollectionUpdatedType = typeof onCollectionUpdated$1;
|
|
1237
|
-
/**
|
|
1238
|
-
* Triggered when a collection is updated.
|
|
1239
|
-
*/
|
|
1240
|
-
declare const onCollectionUpdated: ReturnType<typeof createEventModule$3<_publicOnCollectionUpdatedType>>;
|
|
1241
|
-
|
|
1242
|
-
type _publicOnCollectionDeletedType = typeof onCollectionDeleted$1;
|
|
1243
|
-
/**
|
|
1244
|
-
* Triggered when a collection is deleted.
|
|
1245
|
-
*/
|
|
1246
|
-
declare const onCollectionDeleted: ReturnType<typeof createEventModule$3<_publicOnCollectionDeletedType>>;
|
|
1247
|
-
|
|
1248
1164
|
type index_d$5_AdminRemoveMenuItemsResponse = AdminRemoveMenuItemsResponse;
|
|
1249
1165
|
type index_d$5_Collection = Collection;
|
|
1250
|
-
type index_d$5_CollectionCreatedEnvelope = CollectionCreatedEnvelope;
|
|
1251
|
-
type index_d$5_CollectionDeletedEnvelope = CollectionDeletedEnvelope;
|
|
1252
1166
|
type index_d$5_CollectionNonNullableFields = CollectionNonNullableFields;
|
|
1253
|
-
type index_d$5_CollectionUpdatedEnvelope = CollectionUpdatedEnvelope;
|
|
1254
1167
|
type index_d$5_CollectionsQueryBuilder = CollectionsQueryBuilder;
|
|
1255
1168
|
type index_d$5_CollectionsQueryResult = CollectionsQueryResult;
|
|
1256
1169
|
type index_d$5_CreateCollectionRequest = CreateCollectionRequest;
|
|
@@ -1275,20 +1188,14 @@ type index_d$5_UpdateCollection = UpdateCollection;
|
|
|
1275
1188
|
type index_d$5_UpdateCollectionRequest = UpdateCollectionRequest;
|
|
1276
1189
|
type index_d$5_UpdateCollectionResponse = UpdateCollectionResponse;
|
|
1277
1190
|
type index_d$5_UpdateCollectionResponseNonNullableFields = UpdateCollectionResponseNonNullableFields;
|
|
1278
|
-
type index_d$5__publicOnCollectionCreatedType = _publicOnCollectionCreatedType;
|
|
1279
|
-
type index_d$5__publicOnCollectionDeletedType = _publicOnCollectionDeletedType;
|
|
1280
|
-
type index_d$5__publicOnCollectionUpdatedType = _publicOnCollectionUpdatedType;
|
|
1281
1191
|
declare const index_d$5_createCollection: typeof createCollection;
|
|
1282
1192
|
declare const index_d$5_deleteCollection: typeof deleteCollection;
|
|
1283
1193
|
declare const index_d$5_getCollection: typeof getCollection;
|
|
1284
1194
|
declare const index_d$5_listCollections: typeof listCollections;
|
|
1285
|
-
declare const index_d$5_onCollectionCreated: typeof onCollectionCreated;
|
|
1286
|
-
declare const index_d$5_onCollectionDeleted: typeof onCollectionDeleted;
|
|
1287
|
-
declare const index_d$5_onCollectionUpdated: typeof onCollectionUpdated;
|
|
1288
1195
|
declare const index_d$5_queryCollections: typeof queryCollections;
|
|
1289
1196
|
declare const index_d$5_updateCollection: typeof updateCollection;
|
|
1290
1197
|
declare namespace index_d$5 {
|
|
1291
|
-
export { type ActionEvent$5 as ActionEvent, type index_d$5_AdminRemoveMenuItemsResponse as AdminRemoveMenuItemsResponse, type App$2 as App, type
|
|
1198
|
+
export { type ActionEvent$5 as ActionEvent, type index_d$5_AdminRemoveMenuItemsResponse as AdminRemoveMenuItemsResponse, type App$2 as App, type index_d$5_Collection as Collection, type index_d$5_CollectionNonNullableFields as CollectionNonNullableFields, type index_d$5_CollectionsQueryBuilder as CollectionsQueryBuilder, type index_d$5_CollectionsQueryResult as CollectionsQueryResult, type index_d$5_CreateCollectionRequest as CreateCollectionRequest, type index_d$5_CreateCollectionResponse as CreateCollectionResponse, type index_d$5_CreateCollectionResponseNonNullableFields as CreateCollectionResponseNonNullableFields, type CursorPaging$4 as CursorPaging, type Cursors$4 as Cursors, type index_d$5_DeleteCollectionRequest as DeleteCollectionRequest, type index_d$5_DeleteCollectionResponse as DeleteCollectionResponse, type index_d$5_DeleteCollectionResponseNonNullableFields as DeleteCollectionResponseNonNullableFields, type DomainEvent$5 as DomainEvent, type DomainEventBodyOneOf$5 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$5 as EntityCreatedEvent, type EntityDeletedEvent$5 as EntityDeletedEvent, type EntityUpdatedEvent$5 as EntityUpdatedEvent, type File$2 as File, type index_d$5_GetCollectionOptions as GetCollectionOptions, type index_d$5_GetCollectionRequest as GetCollectionRequest, type index_d$5_GetCollectionResponse as GetCollectionResponse, type index_d$5_GetCollectionResponseNonNullableFields as GetCollectionResponseNonNullableFields, type IdentificationData$5 as IdentificationData, type IdentificationDataIdOneOf$5 as IdentificationDataIdOneOf, type Image$3 as Image, ImageType$3 as ImageType, type InvalidateCache$2 as InvalidateCache, type InvalidateCacheGetByOneOf$2 as InvalidateCacheGetByOneOf, type Keyword$2 as Keyword, type index_d$5_ListCollectionsOptions as ListCollectionsOptions, type index_d$5_ListCollectionsRequest as ListCollectionsRequest, type index_d$5_ListCollectionsResponse as ListCollectionsResponse, type index_d$5_ListCollectionsResponseNonNullableFields as ListCollectionsResponseNonNullableFields, type MessageEnvelope$5 as MessageEnvelope, type Page$2 as Page, type Paging$3 as Paging, type PagingMetadataV2$4 as PagingMetadataV2, type Point$3 as Point, type index_d$5_QueryCollectionsOptions as QueryCollectionsOptions, type index_d$5_QueryCollectionsRequest as QueryCollectionsRequest, type index_d$5_QueryCollectionsResponse as QueryCollectionsResponse, type index_d$5_QueryCollectionsResponseNonNullableFields as QueryCollectionsResponseNonNullableFields, type QueryV2$3 as QueryV2, type QueryV2PagingMethodOneOf$3 as QueryV2PagingMethodOneOf, type RestoreInfo$5 as RestoreInfo, type SeoSchema$2 as SeoSchema, type Settings$2 as Settings, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, type Tag$2 as Tag, type URI$2 as URI, type UnsharpMasking$3 as UnsharpMasking, type index_d$5_UpdateCollection as UpdateCollection, type index_d$5_UpdateCollectionRequest as UpdateCollectionRequest, type index_d$5_UpdateCollectionResponse as UpdateCollectionResponse, type index_d$5_UpdateCollectionResponseNonNullableFields as UpdateCollectionResponseNonNullableFields, WebhookIdentityType$5 as WebhookIdentityType, index_d$5_createCollection as createCollection, index_d$5_deleteCollection as deleteCollection, index_d$5_getCollection as getCollection, index_d$5_listCollections as listCollections, index_d$5_queryCollections as queryCollections, index_d$5_updateCollection as updateCollection };
|
|
1292
1199
|
}
|
|
1293
1200
|
|
|
1294
1201
|
interface PortfolioSettings {
|
|
@@ -1330,7 +1237,7 @@ declare enum DefaultItemName {
|
|
|
1330
1237
|
EMPTY = "EMPTY"
|
|
1331
1238
|
}
|
|
1332
1239
|
interface MediaSettings {
|
|
1333
|
-
/**
|
|
1240
|
+
/** ID of the folder containing the media. */
|
|
1334
1241
|
folderId?: string | null;
|
|
1335
1242
|
}
|
|
1336
1243
|
interface SiteMenuSettings {
|
|
@@ -9,9 +9,7 @@ interface Collection$1 {
|
|
|
9
9
|
* @readonly
|
|
10
10
|
*/
|
|
11
11
|
revision?: string | null;
|
|
12
|
-
/** Collection title. */
|
|
13
12
|
title?: string | null;
|
|
14
|
-
/** Collection description. */
|
|
15
13
|
description?: string | null;
|
|
16
14
|
/** Collection slug. */
|
|
17
15
|
slug?: string | null;
|
|
@@ -338,9 +336,7 @@ interface Collection {
|
|
|
338
336
|
* @readonly
|
|
339
337
|
*/
|
|
340
338
|
revision?: string | null;
|
|
341
|
-
/** Collection title. */
|
|
342
339
|
title?: string | null;
|
|
343
|
-
/** Collection description. */
|
|
344
340
|
description?: string | null;
|
|
345
341
|
/** Collection slug. */
|
|
346
342
|
slug?: string | null;
|
|
@@ -696,7 +692,7 @@ declare enum DefaultItemName$1 {
|
|
|
696
692
|
EMPTY = "EMPTY"
|
|
697
693
|
}
|
|
698
694
|
interface MediaSettings$1 {
|
|
699
|
-
/**
|
|
695
|
+
/** ID of the folder containing the media. */
|
|
700
696
|
folderId?: string | null;
|
|
701
697
|
}
|
|
702
698
|
interface CreatePortfolioSettingsRequest$1 {
|
|
@@ -777,7 +773,7 @@ declare enum DefaultItemName {
|
|
|
777
773
|
EMPTY = "EMPTY"
|
|
778
774
|
}
|
|
779
775
|
interface MediaSettings {
|
|
780
|
-
/**
|
|
776
|
+
/** ID of the folder containing the media. */
|
|
781
777
|
folderId?: string | null;
|
|
782
778
|
}
|
|
783
779
|
interface CreatePortfolioSettingsRequest {
|