@wix/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/index.d.ts +2 -1
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.ts +2 -1
- package/build/es/index.js +2 -1
- package/build/es/index.js.map +1 -1
- package/package.json +5 -4
- package/type-bundles/context.bundle.d.ts +159 -58
- package/type-bundles/index.bundle.d.ts +159 -58
package/build/cjs/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as mediaCollections from '@wix/media-collections_media-collections';
|
|
2
|
+
export { mediaCollections };
|
package/build/cjs/index.js
CHANGED
|
@@ -24,5 +24,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.mediaCollections = void 0;
|
|
27
|
-
|
|
27
|
+
const mediaCollections = __importStar(require("@wix/media-collections_media-collections"));
|
|
28
|
+
exports.mediaCollections = mediaCollections;
|
|
28
29
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2FAA6E;AAEpE,4CAAgB"}
|
package/build/es/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as mediaCollections from '@wix/media-collections_media-collections';
|
|
2
|
+
export { mediaCollections };
|
package/build/es/index.js
CHANGED
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,0CAA0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,0CAA0C,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/media-collections",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/media-collections_media-collections": "1.0.
|
|
21
|
+
"@wix/media-collections_media-collections": "1.0.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"glob": "^10.4.1",
|
|
@@ -27,8 +27,9 @@
|
|
|
27
27
|
"typescript": "^5.3.2"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
|
-
"build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles",
|
|
30
|
+
"build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles && npm run build:validate-dts",
|
|
31
31
|
"build:dts-bundles": "test -f config/rollup-config.js && NODE_OPTIONS=--max-old-space-size=8192 rollup --config config/rollup-config.js || echo 'Warning: config/rollup-config.js not found!'",
|
|
32
|
+
"build:validate-dts": "tsc type-bundles/*.d.ts --noEmit",
|
|
32
33
|
"test": ":"
|
|
33
34
|
},
|
|
34
35
|
"wix": {
|
|
@@ -42,5 +43,5 @@
|
|
|
42
43
|
"fqdn": ""
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
|
-
"falconPackageHash": "
|
|
46
|
+
"falconPackageHash": "2f4b132915e297f607bb686b0a1ba9ba296838058523e74a66f336dc"
|
|
46
47
|
}
|
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
+
interface HttpClient {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4
|
+
fetchWithAuth: typeof fetch;
|
|
5
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
|
+
}
|
|
7
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
+
type HttpResponse<T = any> = {
|
|
9
|
+
data: T;
|
|
10
|
+
status: number;
|
|
11
|
+
statusText: string;
|
|
12
|
+
headers: any;
|
|
13
|
+
request?: any;
|
|
14
|
+
};
|
|
15
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
|
+
url: string;
|
|
18
|
+
data?: Data;
|
|
19
|
+
params?: URLSearchParams;
|
|
20
|
+
} & APIMetadata;
|
|
21
|
+
type APIMetadata = {
|
|
22
|
+
methodFqn?: string;
|
|
23
|
+
entityFqdn?: string;
|
|
24
|
+
packageName?: string;
|
|
25
|
+
};
|
|
26
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
28
|
+
__type: 'event-definition';
|
|
29
|
+
type: Type;
|
|
30
|
+
isDomainEvent?: boolean;
|
|
31
|
+
transformations?: (envelope: unknown) => Payload;
|
|
32
|
+
__payload: Payload;
|
|
33
|
+
};
|
|
34
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
37
|
+
|
|
38
|
+
declare global {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
40
|
+
interface SymbolConstructor {
|
|
41
|
+
readonly observable: symbol;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
1
45
|
interface MediaCollection {
|
|
2
46
|
/**
|
|
3
47
|
* Collection id
|
|
@@ -1074,68 +1118,124 @@ interface RemoveItemsOptions {
|
|
|
1074
1118
|
itemsIds?: string[];
|
|
1075
1119
|
}
|
|
1076
1120
|
|
|
1077
|
-
|
|
1078
|
-
interface
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1121
|
+
declare function get$1(httpClient: HttpClient): GetSignature;
|
|
1122
|
+
interface GetSignature {
|
|
1123
|
+
/**
|
|
1124
|
+
* Get a specific collection by its id
|
|
1125
|
+
* @param - Collection id
|
|
1126
|
+
* @returns The collection
|
|
1127
|
+
*/
|
|
1128
|
+
(mediaCollectionId: string, options?: GetOptions | undefined): Promise<MediaCollection & MediaCollectionNonNullableFields>;
|
|
1082
1129
|
}
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
};
|
|
1091
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1092
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1093
|
-
url: string;
|
|
1094
|
-
data?: Data;
|
|
1095
|
-
params?: URLSearchParams;
|
|
1096
|
-
} & APIMetadata;
|
|
1097
|
-
type APIMetadata = {
|
|
1098
|
-
methodFqn?: string;
|
|
1099
|
-
entityFqdn?: string;
|
|
1100
|
-
packageName?: string;
|
|
1101
|
-
};
|
|
1102
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
1103
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1104
|
-
__type: 'event-definition';
|
|
1105
|
-
type: Type;
|
|
1106
|
-
isDomainEvent?: boolean;
|
|
1107
|
-
transformations?: (envelope: unknown) => Payload;
|
|
1108
|
-
__payload: Payload;
|
|
1109
|
-
};
|
|
1110
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1111
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1112
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1113
|
-
|
|
1114
|
-
declare global {
|
|
1115
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1116
|
-
interface SymbolConstructor {
|
|
1117
|
-
readonly observable: symbol;
|
|
1118
|
-
}
|
|
1130
|
+
declare function listCollectionsForItem$1(httpClient: HttpClient): ListCollectionsForItemSignature;
|
|
1131
|
+
interface ListCollectionsForItemSignature {
|
|
1132
|
+
/**
|
|
1133
|
+
* List all collections that the member has a role in them
|
|
1134
|
+
* @param - Item id
|
|
1135
|
+
*/
|
|
1136
|
+
(itemId: string, options?: ListCollectionsForItemOptions | undefined): Promise<ListCollectionsForItemResponse & ListCollectionsForItemResponseNonNullableFields>;
|
|
1119
1137
|
}
|
|
1120
|
-
|
|
1121
|
-
|
|
1138
|
+
declare function getCollectionItem$1(httpClient: HttpClient): GetCollectionItemSignature;
|
|
1139
|
+
interface GetCollectionItemSignature {
|
|
1140
|
+
/**
|
|
1141
|
+
* Get a specific item from a collection
|
|
1142
|
+
*/
|
|
1143
|
+
(identifiers: GetCollectionItemIdentifiers): Promise<GetCollectionItemResponse & GetCollectionItemResponseNonNullableFields>;
|
|
1144
|
+
}
|
|
1145
|
+
declare function list$1(httpClient: HttpClient): ListSignature;
|
|
1146
|
+
interface ListSignature {
|
|
1147
|
+
/**
|
|
1148
|
+
* List all collections that the item belongs to
|
|
1149
|
+
*/
|
|
1150
|
+
(options?: ListOptions | undefined): Promise<ListMediaCollectionsResponse & ListMediaCollectionsResponseNonNullableFields>;
|
|
1151
|
+
}
|
|
1152
|
+
declare function create$1(httpClient: HttpClient): CreateSignature;
|
|
1153
|
+
interface CreateSignature {
|
|
1154
|
+
/**
|
|
1155
|
+
* Create a new collection
|
|
1156
|
+
* @param - Name of the collection
|
|
1157
|
+
*/
|
|
1158
|
+
(name: string, options?: CreateOptions | undefined): Promise<CreateMediaCollectionResponse & CreateMediaCollectionResponseNonNullableFields>;
|
|
1159
|
+
}
|
|
1160
|
+
declare function partiallyUpdate$1(httpClient: HttpClient): PartiallyUpdateSignature;
|
|
1161
|
+
interface PartiallyUpdateSignature {
|
|
1162
|
+
/**
|
|
1163
|
+
* Update a collection
|
|
1164
|
+
* @param - Collection id
|
|
1165
|
+
*/
|
|
1166
|
+
(_id: string, mediaCollection: PartiallyUpdateMediaCollection): Promise<void>;
|
|
1167
|
+
}
|
|
1168
|
+
declare function _delete$1(httpClient: HttpClient): _deleteSignature;
|
|
1169
|
+
interface _deleteSignature {
|
|
1170
|
+
/**
|
|
1171
|
+
* Delete a collection
|
|
1172
|
+
* @param - the collection to delete
|
|
1173
|
+
*/
|
|
1174
|
+
(mediaCollectionId: string): Promise<void>;
|
|
1175
|
+
}
|
|
1176
|
+
declare function listCollectionMembers$1(httpClient: HttpClient): ListCollectionMembersSignature;
|
|
1177
|
+
interface ListCollectionMembersSignature {
|
|
1178
|
+
/**
|
|
1179
|
+
* List all members of a collection
|
|
1180
|
+
* @param - the collection to get its members
|
|
1181
|
+
*/
|
|
1182
|
+
(mediaCollectionId: string, options?: ListCollectionMembersOptions | undefined): Promise<ListCollectionMembersResponse & ListCollectionMembersResponseNonNullableFields>;
|
|
1183
|
+
}
|
|
1184
|
+
declare function addItems$1(httpClient: HttpClient): AddItemsSignature;
|
|
1185
|
+
interface AddItemsSignature {
|
|
1186
|
+
/**
|
|
1187
|
+
* Add items to a collection
|
|
1188
|
+
* @param - Collection to add items
|
|
1189
|
+
*/
|
|
1190
|
+
(mediaCollectionId: string, options?: AddItemsOptions | undefined): Promise<void>;
|
|
1191
|
+
}
|
|
1192
|
+
declare function removeItems$1(httpClient: HttpClient): RemoveItemsSignature;
|
|
1193
|
+
interface RemoveItemsSignature {
|
|
1194
|
+
/**
|
|
1195
|
+
* Remove items from a collection
|
|
1196
|
+
* @param - Collection to remove items from
|
|
1197
|
+
*/
|
|
1198
|
+
(mediaCollectionId: string, options?: RemoveItemsOptions | undefined): Promise<void>;
|
|
1199
|
+
}
|
|
1200
|
+
declare function joinToCollection$1(httpClient: HttpClient): JoinToCollectionSignature;
|
|
1201
|
+
interface JoinToCollectionSignature {
|
|
1202
|
+
/**
|
|
1203
|
+
* Join to a collection
|
|
1204
|
+
* @param - Collection to join
|
|
1205
|
+
*/
|
|
1206
|
+
(mediaCollectionId: string): Promise<void>;
|
|
1207
|
+
}
|
|
1208
|
+
declare function leaveCollection$1(httpClient: HttpClient): LeaveCollectionSignature;
|
|
1209
|
+
interface LeaveCollectionSignature {
|
|
1210
|
+
/** @param - Collection the member will be leaving */
|
|
1211
|
+
(mediaCollectionId: string): Promise<void>;
|
|
1212
|
+
}
|
|
1213
|
+
declare function listCollectionItems$1(httpClient: HttpClient): ListCollectionItemsSignature;
|
|
1214
|
+
interface ListCollectionItemsSignature {
|
|
1215
|
+
/** @param - Collection to get its items */
|
|
1216
|
+
(mediaCollectionId: string): Promise<ListCollectionItemsResponse & ListCollectionItemsResponseNonNullableFields>;
|
|
1217
|
+
}
|
|
1218
|
+
declare const onCollectionCreated$1: EventDefinition<CollectionCreatedEnvelope, "wix.collections.collection_created">;
|
|
1122
1219
|
|
|
1123
1220
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1124
1221
|
|
|
1125
|
-
declare const get:
|
|
1126
|
-
declare const listCollectionsForItem:
|
|
1127
|
-
declare const getCollectionItem:
|
|
1128
|
-
declare const list:
|
|
1129
|
-
declare const create:
|
|
1130
|
-
declare const partiallyUpdate:
|
|
1131
|
-
declare const _delete:
|
|
1132
|
-
declare const listCollectionMembers:
|
|
1133
|
-
declare const addItems:
|
|
1134
|
-
declare const removeItems:
|
|
1135
|
-
declare const joinToCollection:
|
|
1136
|
-
declare const leaveCollection:
|
|
1137
|
-
declare const listCollectionItems:
|
|
1138
|
-
|
|
1222
|
+
declare const get: BuildRESTFunction<typeof get$1> & typeof get$1;
|
|
1223
|
+
declare const listCollectionsForItem: BuildRESTFunction<typeof listCollectionsForItem$1> & typeof listCollectionsForItem$1;
|
|
1224
|
+
declare const getCollectionItem: BuildRESTFunction<typeof getCollectionItem$1> & typeof getCollectionItem$1;
|
|
1225
|
+
declare const list: BuildRESTFunction<typeof list$1> & typeof list$1;
|
|
1226
|
+
declare const create: BuildRESTFunction<typeof create$1> & typeof create$1;
|
|
1227
|
+
declare const partiallyUpdate: BuildRESTFunction<typeof partiallyUpdate$1> & typeof partiallyUpdate$1;
|
|
1228
|
+
declare const _delete: BuildRESTFunction<typeof _delete$1> & typeof _delete$1;
|
|
1229
|
+
declare const listCollectionMembers: BuildRESTFunction<typeof listCollectionMembers$1> & typeof listCollectionMembers$1;
|
|
1230
|
+
declare const addItems: BuildRESTFunction<typeof addItems$1> & typeof addItems$1;
|
|
1231
|
+
declare const removeItems: BuildRESTFunction<typeof removeItems$1> & typeof removeItems$1;
|
|
1232
|
+
declare const joinToCollection: BuildRESTFunction<typeof joinToCollection$1> & typeof joinToCollection$1;
|
|
1233
|
+
declare const leaveCollection: BuildRESTFunction<typeof leaveCollection$1> & typeof leaveCollection$1;
|
|
1234
|
+
declare const listCollectionItems: BuildRESTFunction<typeof listCollectionItems$1> & typeof listCollectionItems$1;
|
|
1235
|
+
|
|
1236
|
+
type _publicOnCollectionCreatedType = typeof onCollectionCreated$1;
|
|
1237
|
+
/** */
|
|
1238
|
+
declare const onCollectionCreated: ReturnType<typeof createEventModule<_publicOnCollectionCreatedType>>;
|
|
1139
1239
|
|
|
1140
1240
|
type context_ActionEvent = ActionEvent;
|
|
1141
1241
|
type context_AddItem = AddItem;
|
|
@@ -1262,6 +1362,7 @@ type context_WhatsAppLink = WhatsAppLink;
|
|
|
1262
1362
|
type context_WixLink = WixLink;
|
|
1263
1363
|
type context_WixLinkLinkOneOf = WixLinkLinkOneOf;
|
|
1264
1364
|
declare const context__delete: typeof _delete;
|
|
1365
|
+
type context__publicOnCollectionCreatedType = _publicOnCollectionCreatedType;
|
|
1265
1366
|
declare const context_addItems: typeof addItems;
|
|
1266
1367
|
declare const context_create: typeof create;
|
|
1267
1368
|
declare const context_get: typeof get;
|
|
@@ -1276,7 +1377,7 @@ declare const context_onCollectionCreated: typeof onCollectionCreated;
|
|
|
1276
1377
|
declare const context_partiallyUpdate: typeof partiallyUpdate;
|
|
1277
1378
|
declare const context_removeItems: typeof removeItems;
|
|
1278
1379
|
declare namespace context {
|
|
1279
|
-
export { type context_ActionEvent as ActionEvent, type context_AddItem as AddItem, type context_AddItemsOptions as AddItemsOptions, type context_AddItemsRequest as AddItemsRequest, type context_AddItemsResponse as AddItemsResponse, type context_AddressLink as AddressLink, type context_AnchorLink as AnchorLink, type context_BaseEventMetadata as BaseEventMetadata, type context_CollectionAndStatus as CollectionAndStatus, type context_CollectionCreated as CollectionCreated, type context_CollectionCreatedEnvelope as CollectionCreatedEnvelope, type context_CollectionEvent as CollectionEvent, type context_CollectionEventEventTypeOneOf as CollectionEventEventTypeOneOf, type context_CollectionItem as CollectionItem, type context_CollectionItemId as CollectionItemId, type context_CollectionMember as CollectionMember, type context_CreateMediaCollectionRequest as CreateMediaCollectionRequest, type context_CreateMediaCollectionResponse as CreateMediaCollectionResponse, type context_CreateMediaCollectionResponseNonNullableFields as CreateMediaCollectionResponseNonNullableFields, type context_CreateOptions as CreateOptions, context_DataType as DataType, type context_DeleteMediaCollectionRequest as DeleteMediaCollectionRequest, type context_DeleteMediaCollectionResponse as DeleteMediaCollectionResponse, type context_DocumentLink as DocumentLink, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_DynamicPageLink as DynamicPageLink, type context_EmailLink as EmailLink, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_ExternalLink as ExternalLink, type context_FilterBy as FilterBy, type context_FilterByRoles as FilterByRoles, type context_GetCollectionItemIdentifiers as GetCollectionItemIdentifiers, type context_GetCollectionItemRequest as GetCollectionItemRequest, type context_GetCollectionItemResponse as GetCollectionItemResponse, type context_GetCollectionItemResponseNonNullableFields as GetCollectionItemResponseNonNullableFields, type context_GetMediaCollectionRequest as GetMediaCollectionRequest, type context_GetMediaCollectionResponse as GetMediaCollectionResponse, type context_GetMediaCollectionResponseNonNullableFields as GetMediaCollectionResponseNonNullableFields, type context_GetOptions as GetOptions, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ItemInCollection as ItemInCollection, type context_ItemsAddedToCollection as ItemsAddedToCollection, type context_ItemsRemovedFromCollection as ItemsRemovedFromCollection, type context_JoinToCollectionRequest as JoinToCollectionRequest, type context_JoinToCollectionResponse as JoinToCollectionResponse, type context_LeaveCollectionRequest as LeaveCollectionRequest, type context_LeaveCollectionResponse as LeaveCollectionResponse, type context_Link as Link, context_LinkRel as LinkRel, type context_ListAllItemsBelongToCollectionRequest as ListAllItemsBelongToCollectionRequest, type context_ListAllItemsBelongToCollectionResponse as ListAllItemsBelongToCollectionResponse, type context_ListCollectionItemsRequest as ListCollectionItemsRequest, type context_ListCollectionItemsResponse as ListCollectionItemsResponse, type context_ListCollectionItemsResponseNonNullableFields as ListCollectionItemsResponseNonNullableFields, type context_ListCollectionMembersOptions as ListCollectionMembersOptions, type context_ListCollectionMembersRequest as ListCollectionMembersRequest, type context_ListCollectionMembersResponse as ListCollectionMembersResponse, type context_ListCollectionMembersResponseNonNullableFields as ListCollectionMembersResponseNonNullableFields, type context_ListCollectionsForItemOptions as ListCollectionsForItemOptions, type context_ListCollectionsForItemRequest as ListCollectionsForItemRequest, type context_ListCollectionsForItemResponse as ListCollectionsForItemResponse, type context_ListCollectionsForItemResponseNonNullableFields as ListCollectionsForItemResponseNonNullableFields, type context_ListMediaCollectionsRequest as ListMediaCollectionsRequest, type context_ListMediaCollectionsResponse as ListMediaCollectionsResponse, type context_ListMediaCollectionsResponseNonNullableFields as ListMediaCollectionsResponseNonNullableFields, type context_ListOptions as ListOptions, type context_MediaCollection as MediaCollection, type context_MediaCollectionItem as MediaCollectionItem, type context_MediaCollectionItemMetadataOneOf as MediaCollectionItemMetadataOneOf, type context_MediaCollectionNonNullableFields as MediaCollectionNonNullableFields, context_MediaOwner as MediaOwner, type context_MemberAndStatus as MemberAndStatus, type context_MemberJoinedToCollection as MemberJoinedToCollection, type context_MemberLeftCollection as MemberLeftCollection, context_MemberStatus as MemberStatus, type context_MessageEnvelope as MessageEnvelope, type context_PageLink as PageLink, type context_PartiallyUpdateMediaCollection as PartiallyUpdateMediaCollection, type context_PartiallyUpdateMediaCollectionRequest as PartiallyUpdateMediaCollectionRequest, type context_PartiallyUpdateMediaCollectionResponse as PartiallyUpdateMediaCollectionResponse, type context_PermanentSiteDeletedResponse as PermanentSiteDeletedResponse, type context_PhoneLink as PhoneLink, type context_PhotoMetadata as PhotoMetadata, type context_Point as Point, context_PrivacySettings as PrivacySettings, type context_RemoveItemsOptions as RemoveItemsOptions, type context_RemoveItemsRequest as RemoveItemsRequest, type context_RemoveItemsResponse as RemoveItemsResponse, type context_RemoveMemberFromCollectionRequest as RemoveMemberFromCollectionRequest, type context_RemoveMemberFromCollectionResponse as RemoveMemberFromCollectionResponse, type context_Resolution as Resolution, type context_RestoreInfo as RestoreInfo, context_Source as Source, context_Status as Status, type context_TextMetadata as TextMetadata, type context_Thumbnail as Thumbnail, type context_TpaPageLink as TpaPageLink, context_Type as Type, type context_UnsharpMasking as UnsharpMasking, type context_UpdateCollectionLockRequest as UpdateCollectionLockRequest, type context_UpdateCollectionLockResponse as UpdateCollectionLockResponse, type context_UpdateItem as UpdateItem, type context_UpdateItemsRequest as UpdateItemsRequest, type context_UpdateItemsResponse as UpdateItemsResponse, type context_VideoMetadata as VideoMetadata, context_WebhookIdentityType as WebhookIdentityType, type context_WhatsAppLink as WhatsAppLink, type context_WixLink as WixLink, type context_WixLinkLinkOneOf as WixLinkLinkOneOf, context__delete as _delete, context_addItems as addItems, context_create as create, context_get as get, context_getCollectionItem as getCollectionItem, context_joinToCollection as joinToCollection, context_leaveCollection as leaveCollection, context_list as list, context_listCollectionItems as listCollectionItems, context_listCollectionMembers as listCollectionMembers, context_listCollectionsForItem as listCollectionsForItem, context_onCollectionCreated as onCollectionCreated, context_partiallyUpdate as partiallyUpdate, context_removeItems as removeItems };
|
|
1380
|
+
export { type context_ActionEvent as ActionEvent, type context_AddItem as AddItem, type context_AddItemsOptions as AddItemsOptions, type context_AddItemsRequest as AddItemsRequest, type context_AddItemsResponse as AddItemsResponse, type context_AddressLink as AddressLink, type context_AnchorLink as AnchorLink, type context_BaseEventMetadata as BaseEventMetadata, type context_CollectionAndStatus as CollectionAndStatus, type context_CollectionCreated as CollectionCreated, type context_CollectionCreatedEnvelope as CollectionCreatedEnvelope, type context_CollectionEvent as CollectionEvent, type context_CollectionEventEventTypeOneOf as CollectionEventEventTypeOneOf, type context_CollectionItem as CollectionItem, type context_CollectionItemId as CollectionItemId, type context_CollectionMember as CollectionMember, type context_CreateMediaCollectionRequest as CreateMediaCollectionRequest, type context_CreateMediaCollectionResponse as CreateMediaCollectionResponse, type context_CreateMediaCollectionResponseNonNullableFields as CreateMediaCollectionResponseNonNullableFields, type context_CreateOptions as CreateOptions, context_DataType as DataType, type context_DeleteMediaCollectionRequest as DeleteMediaCollectionRequest, type context_DeleteMediaCollectionResponse as DeleteMediaCollectionResponse, type context_DocumentLink as DocumentLink, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_DynamicPageLink as DynamicPageLink, type context_EmailLink as EmailLink, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_ExternalLink as ExternalLink, type context_FilterBy as FilterBy, type context_FilterByRoles as FilterByRoles, type context_GetCollectionItemIdentifiers as GetCollectionItemIdentifiers, type context_GetCollectionItemRequest as GetCollectionItemRequest, type context_GetCollectionItemResponse as GetCollectionItemResponse, type context_GetCollectionItemResponseNonNullableFields as GetCollectionItemResponseNonNullableFields, type context_GetMediaCollectionRequest as GetMediaCollectionRequest, type context_GetMediaCollectionResponse as GetMediaCollectionResponse, type context_GetMediaCollectionResponseNonNullableFields as GetMediaCollectionResponseNonNullableFields, type context_GetOptions as GetOptions, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ItemInCollection as ItemInCollection, type context_ItemsAddedToCollection as ItemsAddedToCollection, type context_ItemsRemovedFromCollection as ItemsRemovedFromCollection, type context_JoinToCollectionRequest as JoinToCollectionRequest, type context_JoinToCollectionResponse as JoinToCollectionResponse, type context_LeaveCollectionRequest as LeaveCollectionRequest, type context_LeaveCollectionResponse as LeaveCollectionResponse, type context_Link as Link, context_LinkRel as LinkRel, type context_ListAllItemsBelongToCollectionRequest as ListAllItemsBelongToCollectionRequest, type context_ListAllItemsBelongToCollectionResponse as ListAllItemsBelongToCollectionResponse, type context_ListCollectionItemsRequest as ListCollectionItemsRequest, type context_ListCollectionItemsResponse as ListCollectionItemsResponse, type context_ListCollectionItemsResponseNonNullableFields as ListCollectionItemsResponseNonNullableFields, type context_ListCollectionMembersOptions as ListCollectionMembersOptions, type context_ListCollectionMembersRequest as ListCollectionMembersRequest, type context_ListCollectionMembersResponse as ListCollectionMembersResponse, type context_ListCollectionMembersResponseNonNullableFields as ListCollectionMembersResponseNonNullableFields, type context_ListCollectionsForItemOptions as ListCollectionsForItemOptions, type context_ListCollectionsForItemRequest as ListCollectionsForItemRequest, type context_ListCollectionsForItemResponse as ListCollectionsForItemResponse, type context_ListCollectionsForItemResponseNonNullableFields as ListCollectionsForItemResponseNonNullableFields, type context_ListMediaCollectionsRequest as ListMediaCollectionsRequest, type context_ListMediaCollectionsResponse as ListMediaCollectionsResponse, type context_ListMediaCollectionsResponseNonNullableFields as ListMediaCollectionsResponseNonNullableFields, type context_ListOptions as ListOptions, type context_MediaCollection as MediaCollection, type context_MediaCollectionItem as MediaCollectionItem, type context_MediaCollectionItemMetadataOneOf as MediaCollectionItemMetadataOneOf, type context_MediaCollectionNonNullableFields as MediaCollectionNonNullableFields, context_MediaOwner as MediaOwner, type context_MemberAndStatus as MemberAndStatus, type context_MemberJoinedToCollection as MemberJoinedToCollection, type context_MemberLeftCollection as MemberLeftCollection, context_MemberStatus as MemberStatus, type context_MessageEnvelope as MessageEnvelope, type context_PageLink as PageLink, type context_PartiallyUpdateMediaCollection as PartiallyUpdateMediaCollection, type context_PartiallyUpdateMediaCollectionRequest as PartiallyUpdateMediaCollectionRequest, type context_PartiallyUpdateMediaCollectionResponse as PartiallyUpdateMediaCollectionResponse, type context_PermanentSiteDeletedResponse as PermanentSiteDeletedResponse, type context_PhoneLink as PhoneLink, type context_PhotoMetadata as PhotoMetadata, type context_Point as Point, context_PrivacySettings as PrivacySettings, type context_RemoveItemsOptions as RemoveItemsOptions, type context_RemoveItemsRequest as RemoveItemsRequest, type context_RemoveItemsResponse as RemoveItemsResponse, type context_RemoveMemberFromCollectionRequest as RemoveMemberFromCollectionRequest, type context_RemoveMemberFromCollectionResponse as RemoveMemberFromCollectionResponse, type context_Resolution as Resolution, type context_RestoreInfo as RestoreInfo, context_Source as Source, context_Status as Status, type context_TextMetadata as TextMetadata, type context_Thumbnail as Thumbnail, type context_TpaPageLink as TpaPageLink, context_Type as Type, type context_UnsharpMasking as UnsharpMasking, type context_UpdateCollectionLockRequest as UpdateCollectionLockRequest, type context_UpdateCollectionLockResponse as UpdateCollectionLockResponse, type context_UpdateItem as UpdateItem, type context_UpdateItemsRequest as UpdateItemsRequest, type context_UpdateItemsResponse as UpdateItemsResponse, type context_VideoMetadata as VideoMetadata, context_WebhookIdentityType as WebhookIdentityType, type context_WhatsAppLink as WhatsAppLink, type context_WixLink as WixLink, type context_WixLinkLinkOneOf as WixLinkLinkOneOf, context__delete as _delete, type context__publicOnCollectionCreatedType as _publicOnCollectionCreatedType, context_addItems as addItems, context_create as create, context_get as get, context_getCollectionItem as getCollectionItem, context_joinToCollection as joinToCollection, context_leaveCollection as leaveCollection, context_list as list, context_listCollectionItems as listCollectionItems, context_listCollectionMembers as listCollectionMembers, context_listCollectionsForItem as listCollectionsForItem, context_onCollectionCreated as onCollectionCreated, context_partiallyUpdate as partiallyUpdate, onCollectionCreated$1 as publicOnCollectionCreated, context_removeItems as removeItems };
|
|
1280
1381
|
}
|
|
1281
1382
|
|
|
1282
1383
|
export { context as mediaCollections };
|
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
+
interface HttpClient {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4
|
+
fetchWithAuth: typeof fetch;
|
|
5
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
|
+
}
|
|
7
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
+
type HttpResponse<T = any> = {
|
|
9
|
+
data: T;
|
|
10
|
+
status: number;
|
|
11
|
+
statusText: string;
|
|
12
|
+
headers: any;
|
|
13
|
+
request?: any;
|
|
14
|
+
};
|
|
15
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
|
+
url: string;
|
|
18
|
+
data?: Data;
|
|
19
|
+
params?: URLSearchParams;
|
|
20
|
+
} & APIMetadata;
|
|
21
|
+
type APIMetadata = {
|
|
22
|
+
methodFqn?: string;
|
|
23
|
+
entityFqdn?: string;
|
|
24
|
+
packageName?: string;
|
|
25
|
+
};
|
|
26
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
28
|
+
__type: 'event-definition';
|
|
29
|
+
type: Type;
|
|
30
|
+
isDomainEvent?: boolean;
|
|
31
|
+
transformations?: (envelope: unknown) => Payload;
|
|
32
|
+
__payload: Payload;
|
|
33
|
+
};
|
|
34
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
37
|
+
|
|
38
|
+
declare global {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
40
|
+
interface SymbolConstructor {
|
|
41
|
+
readonly observable: symbol;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
1
45
|
interface MediaCollection {
|
|
2
46
|
/**
|
|
3
47
|
* Collection id
|
|
@@ -1074,68 +1118,124 @@ interface RemoveItemsOptions {
|
|
|
1074
1118
|
itemsIds?: string[];
|
|
1075
1119
|
}
|
|
1076
1120
|
|
|
1077
|
-
|
|
1078
|
-
interface
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1121
|
+
declare function get$1(httpClient: HttpClient): GetSignature;
|
|
1122
|
+
interface GetSignature {
|
|
1123
|
+
/**
|
|
1124
|
+
* Get a specific collection by its id
|
|
1125
|
+
* @param - Collection id
|
|
1126
|
+
* @returns The collection
|
|
1127
|
+
*/
|
|
1128
|
+
(mediaCollectionId: string, options?: GetOptions | undefined): Promise<MediaCollection & MediaCollectionNonNullableFields>;
|
|
1082
1129
|
}
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
};
|
|
1091
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1092
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1093
|
-
url: string;
|
|
1094
|
-
data?: Data;
|
|
1095
|
-
params?: URLSearchParams;
|
|
1096
|
-
} & APIMetadata;
|
|
1097
|
-
type APIMetadata = {
|
|
1098
|
-
methodFqn?: string;
|
|
1099
|
-
entityFqdn?: string;
|
|
1100
|
-
packageName?: string;
|
|
1101
|
-
};
|
|
1102
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
1103
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
1104
|
-
__type: 'event-definition';
|
|
1105
|
-
type: Type;
|
|
1106
|
-
isDomainEvent?: boolean;
|
|
1107
|
-
transformations?: (envelope: unknown) => Payload;
|
|
1108
|
-
__payload: Payload;
|
|
1109
|
-
};
|
|
1110
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
1111
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
1112
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
1113
|
-
|
|
1114
|
-
declare global {
|
|
1115
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1116
|
-
interface SymbolConstructor {
|
|
1117
|
-
readonly observable: symbol;
|
|
1118
|
-
}
|
|
1130
|
+
declare function listCollectionsForItem$1(httpClient: HttpClient): ListCollectionsForItemSignature;
|
|
1131
|
+
interface ListCollectionsForItemSignature {
|
|
1132
|
+
/**
|
|
1133
|
+
* List all collections that the member has a role in them
|
|
1134
|
+
* @param - Item id
|
|
1135
|
+
*/
|
|
1136
|
+
(itemId: string, options?: ListCollectionsForItemOptions | undefined): Promise<ListCollectionsForItemResponse & ListCollectionsForItemResponseNonNullableFields>;
|
|
1119
1137
|
}
|
|
1120
|
-
|
|
1121
|
-
|
|
1138
|
+
declare function getCollectionItem$1(httpClient: HttpClient): GetCollectionItemSignature;
|
|
1139
|
+
interface GetCollectionItemSignature {
|
|
1140
|
+
/**
|
|
1141
|
+
* Get a specific item from a collection
|
|
1142
|
+
*/
|
|
1143
|
+
(identifiers: GetCollectionItemIdentifiers): Promise<GetCollectionItemResponse & GetCollectionItemResponseNonNullableFields>;
|
|
1144
|
+
}
|
|
1145
|
+
declare function list$1(httpClient: HttpClient): ListSignature;
|
|
1146
|
+
interface ListSignature {
|
|
1147
|
+
/**
|
|
1148
|
+
* List all collections that the item belongs to
|
|
1149
|
+
*/
|
|
1150
|
+
(options?: ListOptions | undefined): Promise<ListMediaCollectionsResponse & ListMediaCollectionsResponseNonNullableFields>;
|
|
1151
|
+
}
|
|
1152
|
+
declare function create$1(httpClient: HttpClient): CreateSignature;
|
|
1153
|
+
interface CreateSignature {
|
|
1154
|
+
/**
|
|
1155
|
+
* Create a new collection
|
|
1156
|
+
* @param - Name of the collection
|
|
1157
|
+
*/
|
|
1158
|
+
(name: string, options?: CreateOptions | undefined): Promise<CreateMediaCollectionResponse & CreateMediaCollectionResponseNonNullableFields>;
|
|
1159
|
+
}
|
|
1160
|
+
declare function partiallyUpdate$1(httpClient: HttpClient): PartiallyUpdateSignature;
|
|
1161
|
+
interface PartiallyUpdateSignature {
|
|
1162
|
+
/**
|
|
1163
|
+
* Update a collection
|
|
1164
|
+
* @param - Collection id
|
|
1165
|
+
*/
|
|
1166
|
+
(_id: string, mediaCollection: PartiallyUpdateMediaCollection): Promise<void>;
|
|
1167
|
+
}
|
|
1168
|
+
declare function _delete$1(httpClient: HttpClient): _deleteSignature;
|
|
1169
|
+
interface _deleteSignature {
|
|
1170
|
+
/**
|
|
1171
|
+
* Delete a collection
|
|
1172
|
+
* @param - the collection to delete
|
|
1173
|
+
*/
|
|
1174
|
+
(mediaCollectionId: string): Promise<void>;
|
|
1175
|
+
}
|
|
1176
|
+
declare function listCollectionMembers$1(httpClient: HttpClient): ListCollectionMembersSignature;
|
|
1177
|
+
interface ListCollectionMembersSignature {
|
|
1178
|
+
/**
|
|
1179
|
+
* List all members of a collection
|
|
1180
|
+
* @param - the collection to get its members
|
|
1181
|
+
*/
|
|
1182
|
+
(mediaCollectionId: string, options?: ListCollectionMembersOptions | undefined): Promise<ListCollectionMembersResponse & ListCollectionMembersResponseNonNullableFields>;
|
|
1183
|
+
}
|
|
1184
|
+
declare function addItems$1(httpClient: HttpClient): AddItemsSignature;
|
|
1185
|
+
interface AddItemsSignature {
|
|
1186
|
+
/**
|
|
1187
|
+
* Add items to a collection
|
|
1188
|
+
* @param - Collection to add items
|
|
1189
|
+
*/
|
|
1190
|
+
(mediaCollectionId: string, options?: AddItemsOptions | undefined): Promise<void>;
|
|
1191
|
+
}
|
|
1192
|
+
declare function removeItems$1(httpClient: HttpClient): RemoveItemsSignature;
|
|
1193
|
+
interface RemoveItemsSignature {
|
|
1194
|
+
/**
|
|
1195
|
+
* Remove items from a collection
|
|
1196
|
+
* @param - Collection to remove items from
|
|
1197
|
+
*/
|
|
1198
|
+
(mediaCollectionId: string, options?: RemoveItemsOptions | undefined): Promise<void>;
|
|
1199
|
+
}
|
|
1200
|
+
declare function joinToCollection$1(httpClient: HttpClient): JoinToCollectionSignature;
|
|
1201
|
+
interface JoinToCollectionSignature {
|
|
1202
|
+
/**
|
|
1203
|
+
* Join to a collection
|
|
1204
|
+
* @param - Collection to join
|
|
1205
|
+
*/
|
|
1206
|
+
(mediaCollectionId: string): Promise<void>;
|
|
1207
|
+
}
|
|
1208
|
+
declare function leaveCollection$1(httpClient: HttpClient): LeaveCollectionSignature;
|
|
1209
|
+
interface LeaveCollectionSignature {
|
|
1210
|
+
/** @param - Collection the member will be leaving */
|
|
1211
|
+
(mediaCollectionId: string): Promise<void>;
|
|
1212
|
+
}
|
|
1213
|
+
declare function listCollectionItems$1(httpClient: HttpClient): ListCollectionItemsSignature;
|
|
1214
|
+
interface ListCollectionItemsSignature {
|
|
1215
|
+
/** @param - Collection to get its items */
|
|
1216
|
+
(mediaCollectionId: string): Promise<ListCollectionItemsResponse & ListCollectionItemsResponseNonNullableFields>;
|
|
1217
|
+
}
|
|
1218
|
+
declare const onCollectionCreated$1: EventDefinition<CollectionCreatedEnvelope, "wix.collections.collection_created">;
|
|
1122
1219
|
|
|
1123
1220
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1124
1221
|
|
|
1125
|
-
declare const get:
|
|
1126
|
-
declare const listCollectionsForItem:
|
|
1127
|
-
declare const getCollectionItem:
|
|
1128
|
-
declare const list:
|
|
1129
|
-
declare const create:
|
|
1130
|
-
declare const partiallyUpdate:
|
|
1131
|
-
declare const _delete:
|
|
1132
|
-
declare const listCollectionMembers:
|
|
1133
|
-
declare const addItems:
|
|
1134
|
-
declare const removeItems:
|
|
1135
|
-
declare const joinToCollection:
|
|
1136
|
-
declare const leaveCollection:
|
|
1137
|
-
declare const listCollectionItems:
|
|
1138
|
-
|
|
1222
|
+
declare const get: BuildRESTFunction<typeof get$1> & typeof get$1;
|
|
1223
|
+
declare const listCollectionsForItem: BuildRESTFunction<typeof listCollectionsForItem$1> & typeof listCollectionsForItem$1;
|
|
1224
|
+
declare const getCollectionItem: BuildRESTFunction<typeof getCollectionItem$1> & typeof getCollectionItem$1;
|
|
1225
|
+
declare const list: BuildRESTFunction<typeof list$1> & typeof list$1;
|
|
1226
|
+
declare const create: BuildRESTFunction<typeof create$1> & typeof create$1;
|
|
1227
|
+
declare const partiallyUpdate: BuildRESTFunction<typeof partiallyUpdate$1> & typeof partiallyUpdate$1;
|
|
1228
|
+
declare const _delete: BuildRESTFunction<typeof _delete$1> & typeof _delete$1;
|
|
1229
|
+
declare const listCollectionMembers: BuildRESTFunction<typeof listCollectionMembers$1> & typeof listCollectionMembers$1;
|
|
1230
|
+
declare const addItems: BuildRESTFunction<typeof addItems$1> & typeof addItems$1;
|
|
1231
|
+
declare const removeItems: BuildRESTFunction<typeof removeItems$1> & typeof removeItems$1;
|
|
1232
|
+
declare const joinToCollection: BuildRESTFunction<typeof joinToCollection$1> & typeof joinToCollection$1;
|
|
1233
|
+
declare const leaveCollection: BuildRESTFunction<typeof leaveCollection$1> & typeof leaveCollection$1;
|
|
1234
|
+
declare const listCollectionItems: BuildRESTFunction<typeof listCollectionItems$1> & typeof listCollectionItems$1;
|
|
1235
|
+
|
|
1236
|
+
type _publicOnCollectionCreatedType = typeof onCollectionCreated$1;
|
|
1237
|
+
/** */
|
|
1238
|
+
declare const onCollectionCreated: ReturnType<typeof createEventModule<_publicOnCollectionCreatedType>>;
|
|
1139
1239
|
|
|
1140
1240
|
type index_d_ActionEvent = ActionEvent;
|
|
1141
1241
|
type index_d_AddItem = AddItem;
|
|
@@ -1262,6 +1362,7 @@ type index_d_WhatsAppLink = WhatsAppLink;
|
|
|
1262
1362
|
type index_d_WixLink = WixLink;
|
|
1263
1363
|
type index_d_WixLinkLinkOneOf = WixLinkLinkOneOf;
|
|
1264
1364
|
declare const index_d__delete: typeof _delete;
|
|
1365
|
+
type index_d__publicOnCollectionCreatedType = _publicOnCollectionCreatedType;
|
|
1265
1366
|
declare const index_d_addItems: typeof addItems;
|
|
1266
1367
|
declare const index_d_create: typeof create;
|
|
1267
1368
|
declare const index_d_get: typeof get;
|
|
@@ -1276,7 +1377,7 @@ declare const index_d_onCollectionCreated: typeof onCollectionCreated;
|
|
|
1276
1377
|
declare const index_d_partiallyUpdate: typeof partiallyUpdate;
|
|
1277
1378
|
declare const index_d_removeItems: typeof removeItems;
|
|
1278
1379
|
declare namespace index_d {
|
|
1279
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_AddItem as AddItem, type index_d_AddItemsOptions as AddItemsOptions, type index_d_AddItemsRequest as AddItemsRequest, type index_d_AddItemsResponse as AddItemsResponse, type index_d_AddressLink as AddressLink, type index_d_AnchorLink as AnchorLink, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CollectionAndStatus as CollectionAndStatus, type index_d_CollectionCreated as CollectionCreated, type index_d_CollectionCreatedEnvelope as CollectionCreatedEnvelope, type index_d_CollectionEvent as CollectionEvent, type index_d_CollectionEventEventTypeOneOf as CollectionEventEventTypeOneOf, type index_d_CollectionItem as CollectionItem, type index_d_CollectionItemId as CollectionItemId, type index_d_CollectionMember as CollectionMember, type index_d_CreateMediaCollectionRequest as CreateMediaCollectionRequest, type index_d_CreateMediaCollectionResponse as CreateMediaCollectionResponse, type index_d_CreateMediaCollectionResponseNonNullableFields as CreateMediaCollectionResponseNonNullableFields, type index_d_CreateOptions as CreateOptions, index_d_DataType as DataType, type index_d_DeleteMediaCollectionRequest as DeleteMediaCollectionRequest, type index_d_DeleteMediaCollectionResponse as DeleteMediaCollectionResponse, type index_d_DocumentLink as DocumentLink, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_DynamicPageLink as DynamicPageLink, type index_d_EmailLink as EmailLink, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExternalLink as ExternalLink, type index_d_FilterBy as FilterBy, type index_d_FilterByRoles as FilterByRoles, type index_d_GetCollectionItemIdentifiers as GetCollectionItemIdentifiers, type index_d_GetCollectionItemRequest as GetCollectionItemRequest, type index_d_GetCollectionItemResponse as GetCollectionItemResponse, type index_d_GetCollectionItemResponseNonNullableFields as GetCollectionItemResponseNonNullableFields, type index_d_GetMediaCollectionRequest as GetMediaCollectionRequest, type index_d_GetMediaCollectionResponse as GetMediaCollectionResponse, type index_d_GetMediaCollectionResponseNonNullableFields as GetMediaCollectionResponseNonNullableFields, type index_d_GetOptions as GetOptions, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemInCollection as ItemInCollection, type index_d_ItemsAddedToCollection as ItemsAddedToCollection, type index_d_ItemsRemovedFromCollection as ItemsRemovedFromCollection, type index_d_JoinToCollectionRequest as JoinToCollectionRequest, type index_d_JoinToCollectionResponse as JoinToCollectionResponse, type index_d_LeaveCollectionRequest as LeaveCollectionRequest, type index_d_LeaveCollectionResponse as LeaveCollectionResponse, type index_d_Link as Link, index_d_LinkRel as LinkRel, type index_d_ListAllItemsBelongToCollectionRequest as ListAllItemsBelongToCollectionRequest, type index_d_ListAllItemsBelongToCollectionResponse as ListAllItemsBelongToCollectionResponse, type index_d_ListCollectionItemsRequest as ListCollectionItemsRequest, type index_d_ListCollectionItemsResponse as ListCollectionItemsResponse, type index_d_ListCollectionItemsResponseNonNullableFields as ListCollectionItemsResponseNonNullableFields, type index_d_ListCollectionMembersOptions as ListCollectionMembersOptions, type index_d_ListCollectionMembersRequest as ListCollectionMembersRequest, type index_d_ListCollectionMembersResponse as ListCollectionMembersResponse, type index_d_ListCollectionMembersResponseNonNullableFields as ListCollectionMembersResponseNonNullableFields, type index_d_ListCollectionsForItemOptions as ListCollectionsForItemOptions, type index_d_ListCollectionsForItemRequest as ListCollectionsForItemRequest, type index_d_ListCollectionsForItemResponse as ListCollectionsForItemResponse, type index_d_ListCollectionsForItemResponseNonNullableFields as ListCollectionsForItemResponseNonNullableFields, type index_d_ListMediaCollectionsRequest as ListMediaCollectionsRequest, type index_d_ListMediaCollectionsResponse as ListMediaCollectionsResponse, type index_d_ListMediaCollectionsResponseNonNullableFields as ListMediaCollectionsResponseNonNullableFields, type index_d_ListOptions as ListOptions, type index_d_MediaCollection as MediaCollection, type index_d_MediaCollectionItem as MediaCollectionItem, type index_d_MediaCollectionItemMetadataOneOf as MediaCollectionItemMetadataOneOf, type index_d_MediaCollectionNonNullableFields as MediaCollectionNonNullableFields, index_d_MediaOwner as MediaOwner, type index_d_MemberAndStatus as MemberAndStatus, type index_d_MemberJoinedToCollection as MemberJoinedToCollection, type index_d_MemberLeftCollection as MemberLeftCollection, index_d_MemberStatus as MemberStatus, type index_d_MessageEnvelope as MessageEnvelope, type index_d_PageLink as PageLink, type index_d_PartiallyUpdateMediaCollection as PartiallyUpdateMediaCollection, type index_d_PartiallyUpdateMediaCollectionRequest as PartiallyUpdateMediaCollectionRequest, type index_d_PartiallyUpdateMediaCollectionResponse as PartiallyUpdateMediaCollectionResponse, type index_d_PermanentSiteDeletedResponse as PermanentSiteDeletedResponse, type index_d_PhoneLink as PhoneLink, type index_d_PhotoMetadata as PhotoMetadata, type index_d_Point as Point, index_d_PrivacySettings as PrivacySettings, type index_d_RemoveItemsOptions as RemoveItemsOptions, type index_d_RemoveItemsRequest as RemoveItemsRequest, type index_d_RemoveItemsResponse as RemoveItemsResponse, type index_d_RemoveMemberFromCollectionRequest as RemoveMemberFromCollectionRequest, type index_d_RemoveMemberFromCollectionResponse as RemoveMemberFromCollectionResponse, type index_d_Resolution as Resolution, type index_d_RestoreInfo as RestoreInfo, index_d_Source as Source, index_d_Status as Status, type index_d_TextMetadata as TextMetadata, type index_d_Thumbnail as Thumbnail, type index_d_TpaPageLink as TpaPageLink, index_d_Type as Type, type index_d_UnsharpMasking as UnsharpMasking, type index_d_UpdateCollectionLockRequest as UpdateCollectionLockRequest, type index_d_UpdateCollectionLockResponse as UpdateCollectionLockResponse, type index_d_UpdateItem as UpdateItem, type index_d_UpdateItemsRequest as UpdateItemsRequest, type index_d_UpdateItemsResponse as UpdateItemsResponse, type index_d_VideoMetadata as VideoMetadata, index_d_WebhookIdentityType as WebhookIdentityType, type index_d_WhatsAppLink as WhatsAppLink, type index_d_WixLink as WixLink, type index_d_WixLinkLinkOneOf as WixLinkLinkOneOf, index_d__delete as _delete, index_d_addItems as addItems, index_d_create as create, index_d_get as get, index_d_getCollectionItem as getCollectionItem, index_d_joinToCollection as joinToCollection, index_d_leaveCollection as leaveCollection, index_d_list as list, index_d_listCollectionItems as listCollectionItems, index_d_listCollectionMembers as listCollectionMembers, index_d_listCollectionsForItem as listCollectionsForItem, index_d_onCollectionCreated as onCollectionCreated, index_d_partiallyUpdate as partiallyUpdate, index_d_removeItems as removeItems };
|
|
1380
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_AddItem as AddItem, type index_d_AddItemsOptions as AddItemsOptions, type index_d_AddItemsRequest as AddItemsRequest, type index_d_AddItemsResponse as AddItemsResponse, type index_d_AddressLink as AddressLink, type index_d_AnchorLink as AnchorLink, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CollectionAndStatus as CollectionAndStatus, type index_d_CollectionCreated as CollectionCreated, type index_d_CollectionCreatedEnvelope as CollectionCreatedEnvelope, type index_d_CollectionEvent as CollectionEvent, type index_d_CollectionEventEventTypeOneOf as CollectionEventEventTypeOneOf, type index_d_CollectionItem as CollectionItem, type index_d_CollectionItemId as CollectionItemId, type index_d_CollectionMember as CollectionMember, type index_d_CreateMediaCollectionRequest as CreateMediaCollectionRequest, type index_d_CreateMediaCollectionResponse as CreateMediaCollectionResponse, type index_d_CreateMediaCollectionResponseNonNullableFields as CreateMediaCollectionResponseNonNullableFields, type index_d_CreateOptions as CreateOptions, index_d_DataType as DataType, type index_d_DeleteMediaCollectionRequest as DeleteMediaCollectionRequest, type index_d_DeleteMediaCollectionResponse as DeleteMediaCollectionResponse, type index_d_DocumentLink as DocumentLink, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_DynamicPageLink as DynamicPageLink, type index_d_EmailLink as EmailLink, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExternalLink as ExternalLink, type index_d_FilterBy as FilterBy, type index_d_FilterByRoles as FilterByRoles, type index_d_GetCollectionItemIdentifiers as GetCollectionItemIdentifiers, type index_d_GetCollectionItemRequest as GetCollectionItemRequest, type index_d_GetCollectionItemResponse as GetCollectionItemResponse, type index_d_GetCollectionItemResponseNonNullableFields as GetCollectionItemResponseNonNullableFields, type index_d_GetMediaCollectionRequest as GetMediaCollectionRequest, type index_d_GetMediaCollectionResponse as GetMediaCollectionResponse, type index_d_GetMediaCollectionResponseNonNullableFields as GetMediaCollectionResponseNonNullableFields, type index_d_GetOptions as GetOptions, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemInCollection as ItemInCollection, type index_d_ItemsAddedToCollection as ItemsAddedToCollection, type index_d_ItemsRemovedFromCollection as ItemsRemovedFromCollection, type index_d_JoinToCollectionRequest as JoinToCollectionRequest, type index_d_JoinToCollectionResponse as JoinToCollectionResponse, type index_d_LeaveCollectionRequest as LeaveCollectionRequest, type index_d_LeaveCollectionResponse as LeaveCollectionResponse, type index_d_Link as Link, index_d_LinkRel as LinkRel, type index_d_ListAllItemsBelongToCollectionRequest as ListAllItemsBelongToCollectionRequest, type index_d_ListAllItemsBelongToCollectionResponse as ListAllItemsBelongToCollectionResponse, type index_d_ListCollectionItemsRequest as ListCollectionItemsRequest, type index_d_ListCollectionItemsResponse as ListCollectionItemsResponse, type index_d_ListCollectionItemsResponseNonNullableFields as ListCollectionItemsResponseNonNullableFields, type index_d_ListCollectionMembersOptions as ListCollectionMembersOptions, type index_d_ListCollectionMembersRequest as ListCollectionMembersRequest, type index_d_ListCollectionMembersResponse as ListCollectionMembersResponse, type index_d_ListCollectionMembersResponseNonNullableFields as ListCollectionMembersResponseNonNullableFields, type index_d_ListCollectionsForItemOptions as ListCollectionsForItemOptions, type index_d_ListCollectionsForItemRequest as ListCollectionsForItemRequest, type index_d_ListCollectionsForItemResponse as ListCollectionsForItemResponse, type index_d_ListCollectionsForItemResponseNonNullableFields as ListCollectionsForItemResponseNonNullableFields, type index_d_ListMediaCollectionsRequest as ListMediaCollectionsRequest, type index_d_ListMediaCollectionsResponse as ListMediaCollectionsResponse, type index_d_ListMediaCollectionsResponseNonNullableFields as ListMediaCollectionsResponseNonNullableFields, type index_d_ListOptions as ListOptions, type index_d_MediaCollection as MediaCollection, type index_d_MediaCollectionItem as MediaCollectionItem, type index_d_MediaCollectionItemMetadataOneOf as MediaCollectionItemMetadataOneOf, type index_d_MediaCollectionNonNullableFields as MediaCollectionNonNullableFields, index_d_MediaOwner as MediaOwner, type index_d_MemberAndStatus as MemberAndStatus, type index_d_MemberJoinedToCollection as MemberJoinedToCollection, type index_d_MemberLeftCollection as MemberLeftCollection, index_d_MemberStatus as MemberStatus, type index_d_MessageEnvelope as MessageEnvelope, type index_d_PageLink as PageLink, type index_d_PartiallyUpdateMediaCollection as PartiallyUpdateMediaCollection, type index_d_PartiallyUpdateMediaCollectionRequest as PartiallyUpdateMediaCollectionRequest, type index_d_PartiallyUpdateMediaCollectionResponse as PartiallyUpdateMediaCollectionResponse, type index_d_PermanentSiteDeletedResponse as PermanentSiteDeletedResponse, type index_d_PhoneLink as PhoneLink, type index_d_PhotoMetadata as PhotoMetadata, type index_d_Point as Point, index_d_PrivacySettings as PrivacySettings, type index_d_RemoveItemsOptions as RemoveItemsOptions, type index_d_RemoveItemsRequest as RemoveItemsRequest, type index_d_RemoveItemsResponse as RemoveItemsResponse, type index_d_RemoveMemberFromCollectionRequest as RemoveMemberFromCollectionRequest, type index_d_RemoveMemberFromCollectionResponse as RemoveMemberFromCollectionResponse, type index_d_Resolution as Resolution, type index_d_RestoreInfo as RestoreInfo, index_d_Source as Source, index_d_Status as Status, type index_d_TextMetadata as TextMetadata, type index_d_Thumbnail as Thumbnail, type index_d_TpaPageLink as TpaPageLink, index_d_Type as Type, type index_d_UnsharpMasking as UnsharpMasking, type index_d_UpdateCollectionLockRequest as UpdateCollectionLockRequest, type index_d_UpdateCollectionLockResponse as UpdateCollectionLockResponse, type index_d_UpdateItem as UpdateItem, type index_d_UpdateItemsRequest as UpdateItemsRequest, type index_d_UpdateItemsResponse as UpdateItemsResponse, type index_d_VideoMetadata as VideoMetadata, index_d_WebhookIdentityType as WebhookIdentityType, type index_d_WhatsAppLink as WhatsAppLink, type index_d_WixLink as WixLink, type index_d_WixLinkLinkOneOf as WixLinkLinkOneOf, index_d__delete as _delete, type index_d__publicOnCollectionCreatedType as _publicOnCollectionCreatedType, index_d_addItems as addItems, index_d_create as create, index_d_get as get, index_d_getCollectionItem as getCollectionItem, index_d_joinToCollection as joinToCollection, index_d_leaveCollection as leaveCollection, index_d_list as list, index_d_listCollectionItems as listCollectionItems, index_d_listCollectionMembers as listCollectionMembers, index_d_listCollectionsForItem as listCollectionsForItem, index_d_onCollectionCreated as onCollectionCreated, index_d_partiallyUpdate as partiallyUpdate, onCollectionCreated$1 as publicOnCollectionCreated, index_d_removeItems as removeItems };
|
|
1280
1381
|
}
|
|
1281
1382
|
|
|
1282
1383
|
export { index_d as mediaCollections };
|