@wix/data 1.0.123 → 1.0.125
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/data",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.125",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"service-plugins"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@wix/data_collections": "1.0.
|
|
23
|
-
"@wix/data_external-database": "1.0.
|
|
24
|
-
"@wix/data_external-database-connections": "1.0.
|
|
22
|
+
"@wix/data_collections": "1.0.28",
|
|
23
|
+
"@wix/data_external-database": "1.0.6",
|
|
24
|
+
"@wix/data_external-database-connections": "1.0.26",
|
|
25
25
|
"@wix/data_indexes": "1.0.22",
|
|
26
|
-
"@wix/data_items": "1.0.
|
|
26
|
+
"@wix/data_items": "1.0.34"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"glob": "^10.4.1",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"fqdn": ""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "457b0b224df30d9ea377ceb3083b575fc5413b1705200f419eb19426"
|
|
51
51
|
}
|
|
@@ -280,41 +280,41 @@ interface UpdateExternalDatabaseConnection {
|
|
|
280
280
|
capabilities?: Capabilities;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
type RESTFunctionDescriptor
|
|
284
|
-
interface HttpClient
|
|
285
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
283
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
284
|
+
interface HttpClient {
|
|
285
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
286
286
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
287
287
|
}
|
|
288
|
-
type RequestOptionsFactory
|
|
289
|
-
type HttpResponse
|
|
288
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
289
|
+
type HttpResponse<T = any> = {
|
|
290
290
|
data: T;
|
|
291
291
|
status: number;
|
|
292
292
|
statusText: string;
|
|
293
293
|
headers: any;
|
|
294
294
|
request?: any;
|
|
295
295
|
};
|
|
296
|
-
type RequestOptions
|
|
296
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
297
297
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
298
298
|
url: string;
|
|
299
299
|
data?: Data;
|
|
300
300
|
params?: URLSearchParams;
|
|
301
|
-
} & APIMetadata
|
|
302
|
-
type APIMetadata
|
|
301
|
+
} & APIMetadata;
|
|
302
|
+
type APIMetadata = {
|
|
303
303
|
methodFqn?: string;
|
|
304
304
|
entityFqdn?: string;
|
|
305
305
|
packageName?: string;
|
|
306
306
|
};
|
|
307
|
-
type BuildRESTFunction
|
|
308
|
-
type EventDefinition
|
|
307
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
308
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
309
309
|
__type: 'event-definition';
|
|
310
310
|
type: Type;
|
|
311
311
|
isDomainEvent?: boolean;
|
|
312
312
|
transformations?: (envelope: unknown) => Payload;
|
|
313
313
|
__payload: Payload;
|
|
314
314
|
};
|
|
315
|
-
declare function EventDefinition
|
|
316
|
-
type EventHandler
|
|
317
|
-
type BuildEventDefinition
|
|
315
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
316
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
317
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
318
318
|
|
|
319
319
|
declare global {
|
|
320
320
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -323,7 +323,7 @@ declare global {
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
declare function getExternalDatabaseConnection$1(httpClient: HttpClient
|
|
326
|
+
declare function getExternalDatabaseConnection$1(httpClient: HttpClient): (name: string) => Promise<ExternalDatabaseConnection & {
|
|
327
327
|
name: string;
|
|
328
328
|
connectionStatus?: {
|
|
329
329
|
successful: boolean;
|
|
@@ -335,8 +335,8 @@ declare function getExternalDatabaseConnection$1(httpClient: HttpClient$3): (nam
|
|
|
335
335
|
fieldTypes: FieldType[];
|
|
336
336
|
} | undefined;
|
|
337
337
|
}>;
|
|
338
|
-
declare function listExternalDatabaseConnections$1(httpClient: HttpClient
|
|
339
|
-
declare function createExternalDatabaseConnection$1(httpClient: HttpClient
|
|
338
|
+
declare function listExternalDatabaseConnections$1(httpClient: HttpClient): (options?: ListExternalDatabaseConnectionsOptions) => Promise<ListExternalDatabaseConnectionsResponse & ListExternalDatabaseConnectionsResponseNonNullableFields>;
|
|
339
|
+
declare function createExternalDatabaseConnection$1(httpClient: HttpClient): (externalDatabaseConnection: ExternalDatabaseConnection, options: CreateExternalDatabaseConnectionOptions) => Promise<ExternalDatabaseConnection & {
|
|
340
340
|
name: string;
|
|
341
341
|
connectionStatus?: {
|
|
342
342
|
successful: boolean;
|
|
@@ -348,7 +348,7 @@ declare function createExternalDatabaseConnection$1(httpClient: HttpClient$3): (
|
|
|
348
348
|
fieldTypes: FieldType[];
|
|
349
349
|
} | undefined;
|
|
350
350
|
}>;
|
|
351
|
-
declare function updateExternalDatabaseConnection$1(httpClient: HttpClient
|
|
351
|
+
declare function updateExternalDatabaseConnection$1(httpClient: HttpClient): (name: string, externalDatabaseConnection: UpdateExternalDatabaseConnection) => Promise<ExternalDatabaseConnection & {
|
|
352
352
|
name: string;
|
|
353
353
|
connectionStatus?: {
|
|
354
354
|
successful: boolean;
|
|
@@ -360,19 +360,19 @@ declare function updateExternalDatabaseConnection$1(httpClient: HttpClient$3): (
|
|
|
360
360
|
fieldTypes: FieldType[];
|
|
361
361
|
} | undefined;
|
|
362
362
|
}>;
|
|
363
|
-
declare function deleteExternalDatabaseConnection$1(httpClient: HttpClient
|
|
364
|
-
declare const onExternalDatabaseConnectionCreated$1: EventDefinition
|
|
365
|
-
declare const onExternalDatabaseConnectionUpdated$1: EventDefinition
|
|
366
|
-
declare const onExternalDatabaseConnectionDeleted$1: EventDefinition
|
|
363
|
+
declare function deleteExternalDatabaseConnection$1(httpClient: HttpClient): (name: string) => Promise<void>;
|
|
364
|
+
declare const onExternalDatabaseConnectionCreated$1: EventDefinition<ExternalDatabaseConnectionCreatedEnvelope, "wix.data.v1.external_database_connection_created">;
|
|
365
|
+
declare const onExternalDatabaseConnectionUpdated$1: EventDefinition<ExternalDatabaseConnectionUpdatedEnvelope, "wix.data.v1.external_database_connection_updated">;
|
|
366
|
+
declare const onExternalDatabaseConnectionDeleted$1: EventDefinition<ExternalDatabaseConnectionDeletedEnvelope, "wix.data.v1.external_database_connection_deleted">;
|
|
367
367
|
|
|
368
|
-
declare const getExternalDatabaseConnection: BuildRESTFunction
|
|
369
|
-
declare const listExternalDatabaseConnections: BuildRESTFunction
|
|
370
|
-
declare const createExternalDatabaseConnection: BuildRESTFunction
|
|
371
|
-
declare const updateExternalDatabaseConnection: BuildRESTFunction
|
|
372
|
-
declare const deleteExternalDatabaseConnection: BuildRESTFunction
|
|
373
|
-
declare const onExternalDatabaseConnectionCreated: BuildEventDefinition
|
|
374
|
-
declare const onExternalDatabaseConnectionUpdated: BuildEventDefinition
|
|
375
|
-
declare const onExternalDatabaseConnectionDeleted: BuildEventDefinition
|
|
368
|
+
declare const getExternalDatabaseConnection: BuildRESTFunction<typeof getExternalDatabaseConnection$1>;
|
|
369
|
+
declare const listExternalDatabaseConnections: BuildRESTFunction<typeof listExternalDatabaseConnections$1>;
|
|
370
|
+
declare const createExternalDatabaseConnection: BuildRESTFunction<typeof createExternalDatabaseConnection$1>;
|
|
371
|
+
declare const updateExternalDatabaseConnection: BuildRESTFunction<typeof updateExternalDatabaseConnection$1>;
|
|
372
|
+
declare const deleteExternalDatabaseConnection: BuildRESTFunction<typeof deleteExternalDatabaseConnection$1>;
|
|
373
|
+
declare const onExternalDatabaseConnectionCreated: BuildEventDefinition<typeof onExternalDatabaseConnectionCreated$1>;
|
|
374
|
+
declare const onExternalDatabaseConnectionUpdated: BuildEventDefinition<typeof onExternalDatabaseConnectionUpdated$1>;
|
|
375
|
+
declare const onExternalDatabaseConnectionDeleted: BuildEventDefinition<typeof onExternalDatabaseConnectionDeleted$1>;
|
|
376
376
|
|
|
377
377
|
declare const context$3_createExternalDatabaseConnection: typeof createExternalDatabaseConnection;
|
|
378
378
|
declare const context$3_deleteExternalDatabaseConnection: typeof deleteExternalDatabaseConnection;
|
|
@@ -1243,50 +1243,7 @@ interface ListDataCollectionsOptions {
|
|
|
1243
1243
|
consistentRead?: boolean;
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
|
-
|
|
1247
|
-
interface HttpClient$2 {
|
|
1248
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
1249
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1250
|
-
}
|
|
1251
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
1252
|
-
type HttpResponse$2<T = any> = {
|
|
1253
|
-
data: T;
|
|
1254
|
-
status: number;
|
|
1255
|
-
statusText: string;
|
|
1256
|
-
headers: any;
|
|
1257
|
-
request?: any;
|
|
1258
|
-
};
|
|
1259
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
1260
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1261
|
-
url: string;
|
|
1262
|
-
data?: Data;
|
|
1263
|
-
params?: URLSearchParams;
|
|
1264
|
-
} & APIMetadata$2;
|
|
1265
|
-
type APIMetadata$2 = {
|
|
1266
|
-
methodFqn?: string;
|
|
1267
|
-
entityFqdn?: string;
|
|
1268
|
-
packageName?: string;
|
|
1269
|
-
};
|
|
1270
|
-
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
1271
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
1272
|
-
__type: 'event-definition';
|
|
1273
|
-
type: Type;
|
|
1274
|
-
isDomainEvent?: boolean;
|
|
1275
|
-
transformations?: (envelope: unknown) => Payload;
|
|
1276
|
-
__payload: Payload;
|
|
1277
|
-
};
|
|
1278
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
1279
|
-
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
1280
|
-
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
1281
|
-
|
|
1282
|
-
declare global {
|
|
1283
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1284
|
-
interface SymbolConstructor {
|
|
1285
|
-
readonly observable: symbol;
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
declare function createDataCollection$1(httpClient: HttpClient$2): (collection: DataCollection) => Promise<DataCollection & {
|
|
1246
|
+
declare function createDataCollection$1(httpClient: HttpClient): (collection: DataCollection) => Promise<DataCollection & {
|
|
1290
1247
|
_id: string;
|
|
1291
1248
|
collectionType: CollectionType;
|
|
1292
1249
|
defaultDisplayOrder?: {
|
|
@@ -1387,7 +1344,7 @@ declare function createDataCollection$1(httpClient: HttpClient$2): (collection:
|
|
|
1387
1344
|
}[];
|
|
1388
1345
|
pagingModes: PagingMode[];
|
|
1389
1346
|
}>;
|
|
1390
|
-
declare function getDataCollection$1(httpClient: HttpClient
|
|
1347
|
+
declare function getDataCollection$1(httpClient: HttpClient): (dataCollectionId: string, options?: GetDataCollectionOptions) => Promise<DataCollection & {
|
|
1391
1348
|
_id: string;
|
|
1392
1349
|
collectionType: CollectionType;
|
|
1393
1350
|
defaultDisplayOrder?: {
|
|
@@ -1488,8 +1445,8 @@ declare function getDataCollection$1(httpClient: HttpClient$2): (dataCollectionI
|
|
|
1488
1445
|
}[];
|
|
1489
1446
|
pagingModes: PagingMode[];
|
|
1490
1447
|
}>;
|
|
1491
|
-
declare function listDataCollections$1(httpClient: HttpClient
|
|
1492
|
-
declare function updateDataCollection$1(httpClient: HttpClient
|
|
1448
|
+
declare function listDataCollections$1(httpClient: HttpClient): (options?: ListDataCollectionsOptions) => Promise<ListDataCollectionsResponse & ListDataCollectionsResponseNonNullableFields>;
|
|
1449
|
+
declare function updateDataCollection$1(httpClient: HttpClient): (collection: DataCollection) => Promise<DataCollection & {
|
|
1493
1450
|
_id: string;
|
|
1494
1451
|
collectionType: CollectionType;
|
|
1495
1452
|
defaultDisplayOrder?: {
|
|
@@ -1590,23 +1547,23 @@ declare function updateDataCollection$1(httpClient: HttpClient$2): (collection:
|
|
|
1590
1547
|
}[];
|
|
1591
1548
|
pagingModes: PagingMode[];
|
|
1592
1549
|
}>;
|
|
1593
|
-
declare function deleteDataCollection$1(httpClient: HttpClient
|
|
1594
|
-
declare const onDataCollectionClonedEvent$1: EventDefinition
|
|
1595
|
-
declare const onDataCollectionChangedEvent$1: EventDefinition
|
|
1596
|
-
declare const onDataCollectionCreated$1: EventDefinition
|
|
1597
|
-
declare const onDataCollectionUpdated$1: EventDefinition
|
|
1598
|
-
declare const onDataCollectionDeleted$1: EventDefinition
|
|
1550
|
+
declare function deleteDataCollection$1(httpClient: HttpClient): (dataCollectionId: string) => Promise<void>;
|
|
1551
|
+
declare const onDataCollectionClonedEvent$1: EventDefinition<DataCollectionClonedEnvelope, "wix.data.v2.data_collection_data_collection_cloned_event">;
|
|
1552
|
+
declare const onDataCollectionChangedEvent$1: EventDefinition<DataCollectionChangedEnvelope, "wix.data.v2.data_collection_data_collection_changed_event">;
|
|
1553
|
+
declare const onDataCollectionCreated$1: EventDefinition<DataCollectionCreatedEnvelope, "wix.data.v2.data_collection_created">;
|
|
1554
|
+
declare const onDataCollectionUpdated$1: EventDefinition<DataCollectionUpdatedEnvelope, "wix.data.v2.data_collection_updated">;
|
|
1555
|
+
declare const onDataCollectionDeleted$1: EventDefinition<DataCollectionDeletedEnvelope, "wix.data.v2.data_collection_deleted">;
|
|
1599
1556
|
|
|
1600
|
-
declare const createDataCollection: BuildRESTFunction
|
|
1601
|
-
declare const getDataCollection: BuildRESTFunction
|
|
1602
|
-
declare const listDataCollections: BuildRESTFunction
|
|
1603
|
-
declare const updateDataCollection: BuildRESTFunction
|
|
1604
|
-
declare const deleteDataCollection: BuildRESTFunction
|
|
1605
|
-
declare const onDataCollectionClonedEvent: BuildEventDefinition
|
|
1606
|
-
declare const onDataCollectionChangedEvent: BuildEventDefinition
|
|
1607
|
-
declare const onDataCollectionCreated: BuildEventDefinition
|
|
1608
|
-
declare const onDataCollectionUpdated: BuildEventDefinition
|
|
1609
|
-
declare const onDataCollectionDeleted: BuildEventDefinition
|
|
1557
|
+
declare const createDataCollection: BuildRESTFunction<typeof createDataCollection$1>;
|
|
1558
|
+
declare const getDataCollection: BuildRESTFunction<typeof getDataCollection$1>;
|
|
1559
|
+
declare const listDataCollections: BuildRESTFunction<typeof listDataCollections$1>;
|
|
1560
|
+
declare const updateDataCollection: BuildRESTFunction<typeof updateDataCollection$1>;
|
|
1561
|
+
declare const deleteDataCollection: BuildRESTFunction<typeof deleteDataCollection$1>;
|
|
1562
|
+
declare const onDataCollectionClonedEvent: BuildEventDefinition<typeof onDataCollectionClonedEvent$1>;
|
|
1563
|
+
declare const onDataCollectionChangedEvent: BuildEventDefinition<typeof onDataCollectionChangedEvent$1>;
|
|
1564
|
+
declare const onDataCollectionCreated: BuildEventDefinition<typeof onDataCollectionCreated$1>;
|
|
1565
|
+
declare const onDataCollectionUpdated: BuildEventDefinition<typeof onDataCollectionUpdated$1>;
|
|
1566
|
+
declare const onDataCollectionDeleted: BuildEventDefinition<typeof onDataCollectionDeleted$1>;
|
|
1610
1567
|
|
|
1611
1568
|
declare const context$2_createDataCollection: typeof createDataCollection;
|
|
1612
1569
|
declare const context$2_deleteDataCollection: typeof deleteDataCollection;
|
|
@@ -2231,6 +2188,7 @@ interface DataItemUpdatedEnvelope {
|
|
|
2231
2188
|
metadata: EventMetadata;
|
|
2232
2189
|
}
|
|
2233
2190
|
interface DataItemDeletedEnvelope {
|
|
2191
|
+
entity: DataItem;
|
|
2234
2192
|
metadata: EventMetadata;
|
|
2235
2193
|
}
|
|
2236
2194
|
interface InsertDataItemOptions {
|
|
@@ -2317,7 +2275,7 @@ interface QueryDataItemsOptions {
|
|
|
2317
2275
|
* Up to 50 referenced items can be included for each item that matches the query.
|
|
2318
2276
|
* @deprecated
|
|
2319
2277
|
* @replacedBy referenced_item_options
|
|
2320
|
-
* @
|
|
2278
|
+
* @targetRemovalDate 2025-08-01
|
|
2321
2279
|
*/
|
|
2322
2280
|
includeReferencedItems?: string[] | undefined;
|
|
2323
2281
|
/**
|
|
@@ -2668,98 +2626,55 @@ interface ReplaceDataItemReferencesOptions {
|
|
|
2668
2626
|
newReferencedItemIds?: string[];
|
|
2669
2627
|
}
|
|
2670
2628
|
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
}
|
|
2676
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
2677
|
-
type HttpResponse$1<T = any> = {
|
|
2678
|
-
data: T;
|
|
2679
|
-
status: number;
|
|
2680
|
-
statusText: string;
|
|
2681
|
-
headers: any;
|
|
2682
|
-
request?: any;
|
|
2683
|
-
};
|
|
2684
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
2685
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2686
|
-
url: string;
|
|
2687
|
-
data?: Data;
|
|
2688
|
-
params?: URLSearchParams;
|
|
2689
|
-
} & APIMetadata$1;
|
|
2690
|
-
type APIMetadata$1 = {
|
|
2691
|
-
methodFqn?: string;
|
|
2692
|
-
entityFqdn?: string;
|
|
2693
|
-
packageName?: string;
|
|
2694
|
-
};
|
|
2695
|
-
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
2696
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
2697
|
-
__type: 'event-definition';
|
|
2698
|
-
type: Type;
|
|
2699
|
-
isDomainEvent?: boolean;
|
|
2700
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2701
|
-
__payload: Payload;
|
|
2702
|
-
};
|
|
2703
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
2704
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
2705
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
2706
|
-
|
|
2707
|
-
declare global {
|
|
2708
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2709
|
-
interface SymbolConstructor {
|
|
2710
|
-
readonly observable: symbol;
|
|
2711
|
-
}
|
|
2712
|
-
}
|
|
2713
|
-
|
|
2714
|
-
declare function insertDataItem$1(httpClient: HttpClient$1): (options: InsertDataItemOptions) => Promise<InsertDataItemResponse & InsertDataItemResponseNonNullableFields>;
|
|
2715
|
-
declare function updateDataItem$1(httpClient: HttpClient$1): (_id: string, options: UpdateDataItemOptions) => Promise<UpdateDataItemResponse & UpdateDataItemResponseNonNullableFields>;
|
|
2716
|
-
declare function saveDataItem$1(httpClient: HttpClient$1): (options: SaveDataItemOptions) => Promise<SaveDataItemResponse & SaveDataItemResponseNonNullableFields>;
|
|
2717
|
-
declare function getDataItem$1(httpClient: HttpClient$1): (dataItemId: string, options?: GetDataItemOptions) => Promise<DataItem & {
|
|
2629
|
+
declare function insertDataItem$1(httpClient: HttpClient): (options: InsertDataItemOptions) => Promise<InsertDataItemResponse & InsertDataItemResponseNonNullableFields>;
|
|
2630
|
+
declare function updateDataItem$1(httpClient: HttpClient): (_id: string, options: UpdateDataItemOptions) => Promise<UpdateDataItemResponse & UpdateDataItemResponseNonNullableFields>;
|
|
2631
|
+
declare function saveDataItem$1(httpClient: HttpClient): (options: SaveDataItemOptions) => Promise<SaveDataItemResponse & SaveDataItemResponseNonNullableFields>;
|
|
2632
|
+
declare function getDataItem$1(httpClient: HttpClient): (dataItemId: string, options?: GetDataItemOptions) => Promise<DataItem & {
|
|
2718
2633
|
_id: string;
|
|
2719
2634
|
dataCollectionId: string;
|
|
2720
2635
|
}>;
|
|
2721
|
-
declare function removeDataItem$1(httpClient: HttpClient
|
|
2722
|
-
declare function truncateDataItems$1(httpClient: HttpClient
|
|
2723
|
-
declare function queryDataItems$1(httpClient: HttpClient
|
|
2724
|
-
declare function aggregateDataItems$1(httpClient: HttpClient
|
|
2725
|
-
declare function countDataItems$1(httpClient: HttpClient
|
|
2726
|
-
declare function queryDistinctValues$1(httpClient: HttpClient
|
|
2727
|
-
declare function bulkInsertDataItems$1(httpClient: HttpClient
|
|
2728
|
-
declare function bulkUpdateDataItems$1(httpClient: HttpClient
|
|
2729
|
-
declare function bulkSaveDataItems$1(httpClient: HttpClient
|
|
2730
|
-
declare function bulkRemoveDataItems$1(httpClient: HttpClient
|
|
2731
|
-
declare function queryReferencedDataItems$1(httpClient: HttpClient
|
|
2732
|
-
declare function isReferencedDataItem$1(httpClient: HttpClient
|
|
2733
|
-
declare function insertDataItemReference$1(httpClient: HttpClient
|
|
2734
|
-
declare function removeDataItemReference$1(httpClient: HttpClient
|
|
2735
|
-
declare function bulkInsertDataItemReferences$1(httpClient: HttpClient
|
|
2736
|
-
declare function bulkRemoveDataItemReferences$1(httpClient: HttpClient
|
|
2737
|
-
declare function replaceDataItemReferences$1(httpClient: HttpClient
|
|
2636
|
+
declare function removeDataItem$1(httpClient: HttpClient): (dataItemId: string, options: RemoveDataItemOptions) => Promise<RemoveDataItemResponse & RemoveDataItemResponseNonNullableFields>;
|
|
2637
|
+
declare function truncateDataItems$1(httpClient: HttpClient): (options: TruncateDataItemsOptions) => Promise<void>;
|
|
2638
|
+
declare function queryDataItems$1(httpClient: HttpClient): (options: QueryDataItemsOptions) => DataItemsQueryBuilder;
|
|
2639
|
+
declare function aggregateDataItems$1(httpClient: HttpClient): (options?: AggregateDataItemsOptions) => Promise<AggregateDataItemsResponse>;
|
|
2640
|
+
declare function countDataItems$1(httpClient: HttpClient): (options?: CountDataItemsOptions) => Promise<CountDataItemsResponse & CountDataItemsResponseNonNullableFields>;
|
|
2641
|
+
declare function queryDistinctValues$1(httpClient: HttpClient): (options?: QueryDistinctValuesOptions) => Promise<QueryDistinctValuesResponse>;
|
|
2642
|
+
declare function bulkInsertDataItems$1(httpClient: HttpClient): (options?: BulkInsertDataItemsOptions) => Promise<BulkInsertDataItemsResponse & BulkInsertDataItemsResponseNonNullableFields>;
|
|
2643
|
+
declare function bulkUpdateDataItems$1(httpClient: HttpClient): (options?: BulkUpdateDataItemsOptions) => Promise<BulkUpdateDataItemsResponse & BulkUpdateDataItemsResponseNonNullableFields>;
|
|
2644
|
+
declare function bulkSaveDataItems$1(httpClient: HttpClient): (options?: BulkSaveDataItemsOptions) => Promise<BulkSaveDataItemsResponse & BulkSaveDataItemsResponseNonNullableFields>;
|
|
2645
|
+
declare function bulkRemoveDataItems$1(httpClient: HttpClient): (options: BulkRemoveDataItemsOptions) => Promise<BulkRemoveDataItemsResponse & BulkRemoveDataItemsResponseNonNullableFields>;
|
|
2646
|
+
declare function queryReferencedDataItems$1(httpClient: HttpClient): (options?: QueryReferencedDataItemsOptions) => Promise<QueryReferencedDataItemsResponse & QueryReferencedDataItemsResponseNonNullableFields>;
|
|
2647
|
+
declare function isReferencedDataItem$1(httpClient: HttpClient): (options?: IsReferencedDataItemOptions) => Promise<IsReferencedDataItemResponse & IsReferencedDataItemResponseNonNullableFields>;
|
|
2648
|
+
declare function insertDataItemReference$1(httpClient: HttpClient): (options?: InsertDataItemReferenceOptions) => Promise<InsertDataItemReferenceResponse & InsertDataItemReferenceResponseNonNullableFields>;
|
|
2649
|
+
declare function removeDataItemReference$1(httpClient: HttpClient): (options: RemoveDataItemReferenceOptions) => Promise<RemoveDataItemReferenceResponse & RemoveDataItemReferenceResponseNonNullableFields>;
|
|
2650
|
+
declare function bulkInsertDataItemReferences$1(httpClient: HttpClient): (options?: BulkInsertDataItemReferencesOptions) => Promise<BulkInsertDataItemReferencesResponse & BulkInsertDataItemReferencesResponseNonNullableFields>;
|
|
2651
|
+
declare function bulkRemoveDataItemReferences$1(httpClient: HttpClient): (options: BulkRemoveDataItemReferencesOptions) => Promise<BulkRemoveDataItemReferencesResponse & BulkRemoveDataItemReferencesResponseNonNullableFields>;
|
|
2652
|
+
declare function replaceDataItemReferences$1(httpClient: HttpClient): (options?: ReplaceDataItemReferencesOptions) => Promise<ReplaceDataItemReferencesResponse & ReplaceDataItemReferencesResponseNonNullableFields>;
|
|
2738
2653
|
declare const onDataItemCreated$1: EventDefinition<DataItemCreatedEnvelope, "wix.data.v2.data_item_created">;
|
|
2739
2654
|
declare const onDataItemUpdated$1: EventDefinition<DataItemUpdatedEnvelope, "wix.data.v2.data_item_updated">;
|
|
2740
2655
|
declare const onDataItemDeleted$1: EventDefinition<DataItemDeletedEnvelope, "wix.data.v2.data_item_deleted">;
|
|
2741
2656
|
|
|
2742
|
-
declare const insertDataItem: BuildRESTFunction
|
|
2743
|
-
declare const updateDataItem: BuildRESTFunction
|
|
2744
|
-
declare const saveDataItem: BuildRESTFunction
|
|
2745
|
-
declare const getDataItem: BuildRESTFunction
|
|
2746
|
-
declare const removeDataItem: BuildRESTFunction
|
|
2747
|
-
declare const truncateDataItems: BuildRESTFunction
|
|
2748
|
-
declare const queryDataItems: BuildRESTFunction
|
|
2749
|
-
declare const aggregateDataItems: BuildRESTFunction
|
|
2750
|
-
declare const countDataItems: BuildRESTFunction
|
|
2751
|
-
declare const queryDistinctValues: BuildRESTFunction
|
|
2752
|
-
declare const bulkInsertDataItems: BuildRESTFunction
|
|
2753
|
-
declare const bulkUpdateDataItems: BuildRESTFunction
|
|
2754
|
-
declare const bulkSaveDataItems: BuildRESTFunction
|
|
2755
|
-
declare const bulkRemoveDataItems: BuildRESTFunction
|
|
2756
|
-
declare const queryReferencedDataItems: BuildRESTFunction
|
|
2757
|
-
declare const isReferencedDataItem: BuildRESTFunction
|
|
2758
|
-
declare const insertDataItemReference: BuildRESTFunction
|
|
2759
|
-
declare const removeDataItemReference: BuildRESTFunction
|
|
2760
|
-
declare const bulkInsertDataItemReferences: BuildRESTFunction
|
|
2761
|
-
declare const bulkRemoveDataItemReferences: BuildRESTFunction
|
|
2762
|
-
declare const replaceDataItemReferences: BuildRESTFunction
|
|
2657
|
+
declare const insertDataItem: BuildRESTFunction<typeof insertDataItem$1>;
|
|
2658
|
+
declare const updateDataItem: BuildRESTFunction<typeof updateDataItem$1>;
|
|
2659
|
+
declare const saveDataItem: BuildRESTFunction<typeof saveDataItem$1>;
|
|
2660
|
+
declare const getDataItem: BuildRESTFunction<typeof getDataItem$1>;
|
|
2661
|
+
declare const removeDataItem: BuildRESTFunction<typeof removeDataItem$1>;
|
|
2662
|
+
declare const truncateDataItems: BuildRESTFunction<typeof truncateDataItems$1>;
|
|
2663
|
+
declare const queryDataItems: BuildRESTFunction<typeof queryDataItems$1>;
|
|
2664
|
+
declare const aggregateDataItems: BuildRESTFunction<typeof aggregateDataItems$1>;
|
|
2665
|
+
declare const countDataItems: BuildRESTFunction<typeof countDataItems$1>;
|
|
2666
|
+
declare const queryDistinctValues: BuildRESTFunction<typeof queryDistinctValues$1>;
|
|
2667
|
+
declare const bulkInsertDataItems: BuildRESTFunction<typeof bulkInsertDataItems$1>;
|
|
2668
|
+
declare const bulkUpdateDataItems: BuildRESTFunction<typeof bulkUpdateDataItems$1>;
|
|
2669
|
+
declare const bulkSaveDataItems: BuildRESTFunction<typeof bulkSaveDataItems$1>;
|
|
2670
|
+
declare const bulkRemoveDataItems: BuildRESTFunction<typeof bulkRemoveDataItems$1>;
|
|
2671
|
+
declare const queryReferencedDataItems: BuildRESTFunction<typeof queryReferencedDataItems$1>;
|
|
2672
|
+
declare const isReferencedDataItem: BuildRESTFunction<typeof isReferencedDataItem$1>;
|
|
2673
|
+
declare const insertDataItemReference: BuildRESTFunction<typeof insertDataItemReference$1>;
|
|
2674
|
+
declare const removeDataItemReference: BuildRESTFunction<typeof removeDataItemReference$1>;
|
|
2675
|
+
declare const bulkInsertDataItemReferences: BuildRESTFunction<typeof bulkInsertDataItemReferences$1>;
|
|
2676
|
+
declare const bulkRemoveDataItemReferences: BuildRESTFunction<typeof bulkRemoveDataItemReferences$1>;
|
|
2677
|
+
declare const replaceDataItemReferences: BuildRESTFunction<typeof replaceDataItemReferences$1>;
|
|
2763
2678
|
declare const onDataItemCreated: BuildEventDefinition<typeof onDataItemCreated$1>;
|
|
2764
2679
|
declare const onDataItemUpdated: BuildEventDefinition<typeof onDataItemUpdated$1>;
|
|
2765
2680
|
declare const onDataItemDeleted: BuildEventDefinition<typeof onDataItemDeleted$1>;
|
|
@@ -2925,39 +2840,6 @@ interface ListIndexesOptions {
|
|
|
2925
2840
|
paging?: Paging;
|
|
2926
2841
|
}
|
|
2927
2842
|
|
|
2928
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2929
|
-
interface HttpClient {
|
|
2930
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2931
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2932
|
-
}
|
|
2933
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2934
|
-
type HttpResponse<T = any> = {
|
|
2935
|
-
data: T;
|
|
2936
|
-
status: number;
|
|
2937
|
-
statusText: string;
|
|
2938
|
-
headers: any;
|
|
2939
|
-
request?: any;
|
|
2940
|
-
};
|
|
2941
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
2942
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2943
|
-
url: string;
|
|
2944
|
-
data?: Data;
|
|
2945
|
-
params?: URLSearchParams;
|
|
2946
|
-
} & APIMetadata;
|
|
2947
|
-
type APIMetadata = {
|
|
2948
|
-
methodFqn?: string;
|
|
2949
|
-
entityFqdn?: string;
|
|
2950
|
-
packageName?: string;
|
|
2951
|
-
};
|
|
2952
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
2953
|
-
|
|
2954
|
-
declare global {
|
|
2955
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2956
|
-
interface SymbolConstructor {
|
|
2957
|
-
readonly observable: symbol;
|
|
2958
|
-
}
|
|
2959
|
-
}
|
|
2960
|
-
|
|
2961
2843
|
declare function createIndex$1(httpClient: HttpClient): (dataCollectionId: string, index: Index) => Promise<Index & {
|
|
2962
2844
|
name: string;
|
|
2963
2845
|
fields: {
|
|
@@ -244,6 +244,9 @@ interface DomainEventBodyOneOf$2 {
|
|
|
244
244
|
interface EntityCreatedEvent$2 {
|
|
245
245
|
entity?: string;
|
|
246
246
|
}
|
|
247
|
+
interface RestoreInfo$2 {
|
|
248
|
+
deletedDate?: Date;
|
|
249
|
+
}
|
|
247
250
|
interface EntityUpdatedEvent$2 {
|
|
248
251
|
/**
|
|
249
252
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -441,37 +444,37 @@ interface UpdateExternalDatabaseConnection {
|
|
|
441
444
|
capabilities?: Capabilities;
|
|
442
445
|
}
|
|
443
446
|
|
|
444
|
-
interface HttpClient
|
|
445
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
447
|
+
interface HttpClient {
|
|
448
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
446
449
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
447
450
|
}
|
|
448
|
-
type RequestOptionsFactory
|
|
449
|
-
type HttpResponse
|
|
451
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
452
|
+
type HttpResponse<T = any> = {
|
|
450
453
|
data: T;
|
|
451
454
|
status: number;
|
|
452
455
|
statusText: string;
|
|
453
456
|
headers: any;
|
|
454
457
|
request?: any;
|
|
455
458
|
};
|
|
456
|
-
type RequestOptions
|
|
459
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
457
460
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
458
461
|
url: string;
|
|
459
462
|
data?: Data;
|
|
460
463
|
params?: URLSearchParams;
|
|
461
|
-
} & APIMetadata
|
|
462
|
-
type APIMetadata
|
|
464
|
+
} & APIMetadata;
|
|
465
|
+
type APIMetadata = {
|
|
463
466
|
methodFqn?: string;
|
|
464
467
|
entityFqdn?: string;
|
|
465
468
|
packageName?: string;
|
|
466
469
|
};
|
|
467
|
-
type EventDefinition
|
|
470
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
468
471
|
__type: 'event-definition';
|
|
469
472
|
type: Type;
|
|
470
473
|
isDomainEvent?: boolean;
|
|
471
474
|
transformations?: (envelope: unknown) => Payload;
|
|
472
475
|
__payload: Payload;
|
|
473
476
|
};
|
|
474
|
-
declare function EventDefinition
|
|
477
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
475
478
|
|
|
476
479
|
declare global {
|
|
477
480
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -483,7 +486,7 @@ declare global {
|
|
|
483
486
|
declare const __metadata$3: {
|
|
484
487
|
PACKAGE_NAME: string;
|
|
485
488
|
};
|
|
486
|
-
declare function getExternalDatabaseConnection(httpClient: HttpClient
|
|
489
|
+
declare function getExternalDatabaseConnection(httpClient: HttpClient): (name: string) => Promise<ExternalDatabaseConnection & {
|
|
487
490
|
name: string;
|
|
488
491
|
connectionStatus?: {
|
|
489
492
|
successful: boolean;
|
|
@@ -495,8 +498,8 @@ declare function getExternalDatabaseConnection(httpClient: HttpClient$3): (name:
|
|
|
495
498
|
fieldTypes: FieldType[];
|
|
496
499
|
} | undefined;
|
|
497
500
|
}>;
|
|
498
|
-
declare function listExternalDatabaseConnections(httpClient: HttpClient
|
|
499
|
-
declare function createExternalDatabaseConnection(httpClient: HttpClient
|
|
501
|
+
declare function listExternalDatabaseConnections(httpClient: HttpClient): (options?: ListExternalDatabaseConnectionsOptions) => Promise<ListExternalDatabaseConnectionsResponse & ListExternalDatabaseConnectionsResponseNonNullableFields>;
|
|
502
|
+
declare function createExternalDatabaseConnection(httpClient: HttpClient): (externalDatabaseConnection: ExternalDatabaseConnection, options: CreateExternalDatabaseConnectionOptions) => Promise<ExternalDatabaseConnection & {
|
|
500
503
|
name: string;
|
|
501
504
|
connectionStatus?: {
|
|
502
505
|
successful: boolean;
|
|
@@ -508,7 +511,7 @@ declare function createExternalDatabaseConnection(httpClient: HttpClient$3): (ex
|
|
|
508
511
|
fieldTypes: FieldType[];
|
|
509
512
|
} | undefined;
|
|
510
513
|
}>;
|
|
511
|
-
declare function updateExternalDatabaseConnection(httpClient: HttpClient
|
|
514
|
+
declare function updateExternalDatabaseConnection(httpClient: HttpClient): (name: string, externalDatabaseConnection: UpdateExternalDatabaseConnection) => Promise<ExternalDatabaseConnection & {
|
|
512
515
|
name: string;
|
|
513
516
|
connectionStatus?: {
|
|
514
517
|
successful: boolean;
|
|
@@ -520,10 +523,10 @@ declare function updateExternalDatabaseConnection(httpClient: HttpClient$3): (na
|
|
|
520
523
|
fieldTypes: FieldType[];
|
|
521
524
|
} | undefined;
|
|
522
525
|
}>;
|
|
523
|
-
declare function deleteExternalDatabaseConnection(httpClient: HttpClient
|
|
524
|
-
declare const onExternalDatabaseConnectionCreated: EventDefinition
|
|
525
|
-
declare const onExternalDatabaseConnectionUpdated: EventDefinition
|
|
526
|
-
declare const onExternalDatabaseConnectionDeleted: EventDefinition
|
|
526
|
+
declare function deleteExternalDatabaseConnection(httpClient: HttpClient): (name: string) => Promise<void>;
|
|
527
|
+
declare const onExternalDatabaseConnectionCreated: EventDefinition<ExternalDatabaseConnectionCreatedEnvelope, "wix.data.v1.external_database_connection_created">;
|
|
528
|
+
declare const onExternalDatabaseConnectionUpdated: EventDefinition<ExternalDatabaseConnectionUpdatedEnvelope, "wix.data.v1.external_database_connection_updated">;
|
|
529
|
+
declare const onExternalDatabaseConnectionDeleted: EventDefinition<ExternalDatabaseConnectionDeletedEnvelope, "wix.data.v1.external_database_connection_deleted">;
|
|
527
530
|
|
|
528
531
|
type index_d$3_Capabilities = Capabilities;
|
|
529
532
|
type index_d$3_CauseOfFailure = CauseOfFailure;
|
|
@@ -567,7 +570,7 @@ declare const index_d$3_onExternalDatabaseConnectionDeleted: typeof onExternalDa
|
|
|
567
570
|
declare const index_d$3_onExternalDatabaseConnectionUpdated: typeof onExternalDatabaseConnectionUpdated;
|
|
568
571
|
declare const index_d$3_updateExternalDatabaseConnection: typeof updateExternalDatabaseConnection;
|
|
569
572
|
declare namespace index_d$3 {
|
|
570
|
-
export { type ActionEvent$2 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$3_Capabilities as Capabilities, index_d$3_CauseOfFailure as CauseOfFailure, index_d$3_CollectionsFound as CollectionsFound, type index_d$3_ConnectionStatus as ConnectionStatus, index_d$3_ConnectionType as ConnectionType, type index_d$3_CreateExternalDatabaseConnectionOptions as CreateExternalDatabaseConnectionOptions, type index_d$3_CreateExternalDatabaseConnectionRequest as CreateExternalDatabaseConnectionRequest, type index_d$3_CreateExternalDatabaseConnectionResponse as CreateExternalDatabaseConnectionResponse, type index_d$3_CreateExternalDatabaseConnectionResponseNonNullableFields as CreateExternalDatabaseConnectionResponseNonNullableFields, type index_d$3_DeleteExternalDatabaseConnectionRequest as DeleteExternalDatabaseConnectionRequest, type index_d$3_DeleteExternalDatabaseConnectionResponse as DeleteExternalDatabaseConnectionResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type index_d$3_ExternalDatabaseConnection as ExternalDatabaseConnection, type index_d$3_ExternalDatabaseConnectionCreatedEnvelope as ExternalDatabaseConnectionCreatedEnvelope, type index_d$3_ExternalDatabaseConnectionDeletedEnvelope as ExternalDatabaseConnectionDeletedEnvelope, type index_d$3_ExternalDatabaseConnectionUpdatedEnvelope as ExternalDatabaseConnectionUpdatedEnvelope, index_d$3_FieldType as FieldType, type index_d$3_GetExternalDatabaseConnectionRequest as GetExternalDatabaseConnectionRequest, type index_d$3_GetExternalDatabaseConnectionResponse as GetExternalDatabaseConnectionResponse, type index_d$3_GetExternalDatabaseConnectionResponseNonNullableFields as GetExternalDatabaseConnectionResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$3_ListExternalDatabaseConnectionsOptions as ListExternalDatabaseConnectionsOptions, type index_d$3_ListExternalDatabaseConnectionsRequest as ListExternalDatabaseConnectionsRequest, type index_d$3_ListExternalDatabaseConnectionsResponse as ListExternalDatabaseConnectionsResponse, type index_d$3_ListExternalDatabaseConnectionsResponseNonNullableFields as ListExternalDatabaseConnectionsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type Paging$3 as Paging, type PagingMetadata$1 as PagingMetadata, index_d$3_ProtocolVersion as ProtocolVersion, type index_d$3_UpdateExternalDatabaseConnection as UpdateExternalDatabaseConnection, type index_d$3_UpdateExternalDatabaseConnectionRequest as UpdateExternalDatabaseConnectionRequest, type index_d$3_UpdateExternalDatabaseConnectionResponse as UpdateExternalDatabaseConnectionResponse, type index_d$3_UpdateExternalDatabaseConnectionResponseNonNullableFields as UpdateExternalDatabaseConnectionResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, __metadata$3 as __metadata, index_d$3_createExternalDatabaseConnection as createExternalDatabaseConnection, index_d$3_deleteExternalDatabaseConnection as deleteExternalDatabaseConnection, index_d$3_getExternalDatabaseConnection as getExternalDatabaseConnection, index_d$3_listExternalDatabaseConnections as listExternalDatabaseConnections, index_d$3_onExternalDatabaseConnectionCreated as onExternalDatabaseConnectionCreated, index_d$3_onExternalDatabaseConnectionDeleted as onExternalDatabaseConnectionDeleted, index_d$3_onExternalDatabaseConnectionUpdated as onExternalDatabaseConnectionUpdated, index_d$3_updateExternalDatabaseConnection as updateExternalDatabaseConnection };
|
|
573
|
+
export { type ActionEvent$2 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$3_Capabilities as Capabilities, index_d$3_CauseOfFailure as CauseOfFailure, index_d$3_CollectionsFound as CollectionsFound, type index_d$3_ConnectionStatus as ConnectionStatus, index_d$3_ConnectionType as ConnectionType, type index_d$3_CreateExternalDatabaseConnectionOptions as CreateExternalDatabaseConnectionOptions, type index_d$3_CreateExternalDatabaseConnectionRequest as CreateExternalDatabaseConnectionRequest, type index_d$3_CreateExternalDatabaseConnectionResponse as CreateExternalDatabaseConnectionResponse, type index_d$3_CreateExternalDatabaseConnectionResponseNonNullableFields as CreateExternalDatabaseConnectionResponseNonNullableFields, type index_d$3_DeleteExternalDatabaseConnectionRequest as DeleteExternalDatabaseConnectionRequest, type index_d$3_DeleteExternalDatabaseConnectionResponse as DeleteExternalDatabaseConnectionResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type index_d$3_ExternalDatabaseConnection as ExternalDatabaseConnection, type index_d$3_ExternalDatabaseConnectionCreatedEnvelope as ExternalDatabaseConnectionCreatedEnvelope, type index_d$3_ExternalDatabaseConnectionDeletedEnvelope as ExternalDatabaseConnectionDeletedEnvelope, type index_d$3_ExternalDatabaseConnectionUpdatedEnvelope as ExternalDatabaseConnectionUpdatedEnvelope, index_d$3_FieldType as FieldType, type index_d$3_GetExternalDatabaseConnectionRequest as GetExternalDatabaseConnectionRequest, type index_d$3_GetExternalDatabaseConnectionResponse as GetExternalDatabaseConnectionResponse, type index_d$3_GetExternalDatabaseConnectionResponseNonNullableFields as GetExternalDatabaseConnectionResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$3_ListExternalDatabaseConnectionsOptions as ListExternalDatabaseConnectionsOptions, type index_d$3_ListExternalDatabaseConnectionsRequest as ListExternalDatabaseConnectionsRequest, type index_d$3_ListExternalDatabaseConnectionsResponse as ListExternalDatabaseConnectionsResponse, type index_d$3_ListExternalDatabaseConnectionsResponseNonNullableFields as ListExternalDatabaseConnectionsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type Paging$3 as Paging, type PagingMetadata$1 as PagingMetadata, index_d$3_ProtocolVersion as ProtocolVersion, type RestoreInfo$2 as RestoreInfo, type index_d$3_UpdateExternalDatabaseConnection as UpdateExternalDatabaseConnection, type index_d$3_UpdateExternalDatabaseConnectionRequest as UpdateExternalDatabaseConnectionRequest, type index_d$3_UpdateExternalDatabaseConnectionResponse as UpdateExternalDatabaseConnectionResponse, type index_d$3_UpdateExternalDatabaseConnectionResponseNonNullableFields as UpdateExternalDatabaseConnectionResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, __metadata$3 as __metadata, index_d$3_createExternalDatabaseConnection as createExternalDatabaseConnection, index_d$3_deleteExternalDatabaseConnection as deleteExternalDatabaseConnection, index_d$3_getExternalDatabaseConnection as getExternalDatabaseConnection, index_d$3_listExternalDatabaseConnections as listExternalDatabaseConnections, index_d$3_onExternalDatabaseConnectionCreated as onExternalDatabaseConnectionCreated, index_d$3_onExternalDatabaseConnectionDeleted as onExternalDatabaseConnectionDeleted, index_d$3_onExternalDatabaseConnectionUpdated as onExternalDatabaseConnectionUpdated, index_d$3_updateExternalDatabaseConnection as updateExternalDatabaseConnection };
|
|
571
574
|
}
|
|
572
575
|
|
|
573
576
|
/** A data collection determines the structure of data to be stored in a database. */
|
|
@@ -1512,6 +1515,9 @@ interface DomainEventBodyOneOf$1 {
|
|
|
1512
1515
|
interface EntityCreatedEvent$1 {
|
|
1513
1516
|
entity?: string;
|
|
1514
1517
|
}
|
|
1518
|
+
interface RestoreInfo$1 {
|
|
1519
|
+
deletedDate?: Date;
|
|
1520
|
+
}
|
|
1515
1521
|
interface EntityUpdatedEvent$1 {
|
|
1516
1522
|
/**
|
|
1517
1523
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -2174,49 +2180,10 @@ interface ListDataCollectionsOptions {
|
|
|
2174
2180
|
consistentRead?: boolean;
|
|
2175
2181
|
}
|
|
2176
2182
|
|
|
2177
|
-
interface HttpClient$2 {
|
|
2178
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
2179
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2180
|
-
}
|
|
2181
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
2182
|
-
type HttpResponse$2<T = any> = {
|
|
2183
|
-
data: T;
|
|
2184
|
-
status: number;
|
|
2185
|
-
statusText: string;
|
|
2186
|
-
headers: any;
|
|
2187
|
-
request?: any;
|
|
2188
|
-
};
|
|
2189
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
2190
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2191
|
-
url: string;
|
|
2192
|
-
data?: Data;
|
|
2193
|
-
params?: URLSearchParams;
|
|
2194
|
-
} & APIMetadata$2;
|
|
2195
|
-
type APIMetadata$2 = {
|
|
2196
|
-
methodFqn?: string;
|
|
2197
|
-
entityFqdn?: string;
|
|
2198
|
-
packageName?: string;
|
|
2199
|
-
};
|
|
2200
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
2201
|
-
__type: 'event-definition';
|
|
2202
|
-
type: Type;
|
|
2203
|
-
isDomainEvent?: boolean;
|
|
2204
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2205
|
-
__payload: Payload;
|
|
2206
|
-
};
|
|
2207
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
2208
|
-
|
|
2209
|
-
declare global {
|
|
2210
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2211
|
-
interface SymbolConstructor {
|
|
2212
|
-
readonly observable: symbol;
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
2183
|
declare const __metadata$2: {
|
|
2217
2184
|
PACKAGE_NAME: string;
|
|
2218
2185
|
};
|
|
2219
|
-
declare function createDataCollection(httpClient: HttpClient
|
|
2186
|
+
declare function createDataCollection(httpClient: HttpClient): (collection: DataCollection) => Promise<DataCollection & {
|
|
2220
2187
|
_id: string;
|
|
2221
2188
|
collectionType: CollectionType;
|
|
2222
2189
|
defaultDisplayOrder?: {
|
|
@@ -2317,7 +2284,7 @@ declare function createDataCollection(httpClient: HttpClient$2): (collection: Da
|
|
|
2317
2284
|
}[];
|
|
2318
2285
|
pagingModes: PagingMode[];
|
|
2319
2286
|
}>;
|
|
2320
|
-
declare function getDataCollection(httpClient: HttpClient
|
|
2287
|
+
declare function getDataCollection(httpClient: HttpClient): (dataCollectionId: string, options?: GetDataCollectionOptions) => Promise<DataCollection & {
|
|
2321
2288
|
_id: string;
|
|
2322
2289
|
collectionType: CollectionType;
|
|
2323
2290
|
defaultDisplayOrder?: {
|
|
@@ -2418,8 +2385,8 @@ declare function getDataCollection(httpClient: HttpClient$2): (dataCollectionId:
|
|
|
2418
2385
|
}[];
|
|
2419
2386
|
pagingModes: PagingMode[];
|
|
2420
2387
|
}>;
|
|
2421
|
-
declare function listDataCollections(httpClient: HttpClient
|
|
2422
|
-
declare function updateDataCollection(httpClient: HttpClient
|
|
2388
|
+
declare function listDataCollections(httpClient: HttpClient): (options?: ListDataCollectionsOptions) => Promise<ListDataCollectionsResponse & ListDataCollectionsResponseNonNullableFields>;
|
|
2389
|
+
declare function updateDataCollection(httpClient: HttpClient): (collection: DataCollection) => Promise<DataCollection & {
|
|
2423
2390
|
_id: string;
|
|
2424
2391
|
collectionType: CollectionType;
|
|
2425
2392
|
defaultDisplayOrder?: {
|
|
@@ -2520,12 +2487,12 @@ declare function updateDataCollection(httpClient: HttpClient$2): (collection: Da
|
|
|
2520
2487
|
}[];
|
|
2521
2488
|
pagingModes: PagingMode[];
|
|
2522
2489
|
}>;
|
|
2523
|
-
declare function deleteDataCollection(httpClient: HttpClient
|
|
2524
|
-
declare const onDataCollectionClonedEvent: EventDefinition
|
|
2525
|
-
declare const onDataCollectionChangedEvent: EventDefinition
|
|
2526
|
-
declare const onDataCollectionCreated: EventDefinition
|
|
2527
|
-
declare const onDataCollectionUpdated: EventDefinition
|
|
2528
|
-
declare const onDataCollectionDeleted: EventDefinition
|
|
2490
|
+
declare function deleteDataCollection(httpClient: HttpClient): (dataCollectionId: string) => Promise<void>;
|
|
2491
|
+
declare const onDataCollectionClonedEvent: EventDefinition<DataCollectionClonedEnvelope, "wix.data.v2.data_collection_data_collection_cloned_event">;
|
|
2492
|
+
declare const onDataCollectionChangedEvent: EventDefinition<DataCollectionChangedEnvelope, "wix.data.v2.data_collection_data_collection_changed_event">;
|
|
2493
|
+
declare const onDataCollectionCreated: EventDefinition<DataCollectionCreatedEnvelope, "wix.data.v2.data_collection_created">;
|
|
2494
|
+
declare const onDataCollectionUpdated: EventDefinition<DataCollectionUpdatedEnvelope, "wix.data.v2.data_collection_updated">;
|
|
2495
|
+
declare const onDataCollectionDeleted: EventDefinition<DataCollectionDeletedEnvelope, "wix.data.v2.data_collection_deleted">;
|
|
2529
2496
|
|
|
2530
2497
|
type index_d$2_ArraySizeRange = ArraySizeRange;
|
|
2531
2498
|
type index_d$2_BulkGetDataCollectionsPageBySnapshotsRequest = BulkGetDataCollectionsPageBySnapshotsRequest;
|
|
@@ -2637,7 +2604,7 @@ declare const index_d$2_onDataCollectionDeleted: typeof onDataCollectionDeleted;
|
|
|
2637
2604
|
declare const index_d$2_onDataCollectionUpdated: typeof onDataCollectionUpdated;
|
|
2638
2605
|
declare const index_d$2_updateDataCollection: typeof updateDataCollection;
|
|
2639
2606
|
declare namespace index_d$2 {
|
|
2640
|
-
export { type ActionEvent$1 as ActionEvent, type index_d$2_ArraySizeRange as ArraySizeRange, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_BulkGetDataCollectionsPageBySnapshotsRequest as BulkGetDataCollectionsPageBySnapshotsRequest, type index_d$2_BulkGetDataCollectionsPageBySnapshotsResponse as BulkGetDataCollectionsPageBySnapshotsResponse, type index_d$2_BulkGetDataCollectionsRequest as BulkGetDataCollectionsRequest, type index_d$2_BulkGetDataCollectionsResponse as BulkGetDataCollectionsResponse, type index_d$2_Calculator as Calculator, type index_d$2_CalculatorPatternOneOf as CalculatorPatternOneOf, type index_d$2_CmsOptions as CmsOptions, type index_d$2_CollectionCapabilities as CollectionCapabilities, index_d$2_CollectionOperation as CollectionOperation, index_d$2_CollectionType as CollectionType, type index_d$2_CreateDataCollectionFieldRequest as CreateDataCollectionFieldRequest, type index_d$2_CreateDataCollectionFieldResponse as CreateDataCollectionFieldResponse, type index_d$2_CreateDataCollectionRequest as CreateDataCollectionRequest, type index_d$2_CreateDataCollectionResponse as CreateDataCollectionResponse, type index_d$2_CreateDataCollectionResponseNonNullableFields as CreateDataCollectionResponseNonNullableFields, type index_d$2_CreateDataCollectionsSnapshotRequest as CreateDataCollectionsSnapshotRequest, type index_d$2_CreateDataCollectionsSnapshotResponse as CreateDataCollectionsSnapshotResponse, type index_d$2_DataCollection as DataCollection, type index_d$2_DataCollectionChangedEnvelope as DataCollectionChangedEnvelope, type index_d$2_DataCollectionChangedEvent as DataCollectionChangedEvent, type index_d$2_DataCollectionClonedEnvelope as DataCollectionClonedEnvelope, type index_d$2_DataCollectionClonedEvent as DataCollectionClonedEvent, type index_d$2_DataCollectionCreatedEnvelope as DataCollectionCreatedEnvelope, type index_d$2_DataCollectionDeletedEnvelope as DataCollectionDeletedEnvelope, type index_d$2_DataCollectionUpdatedEnvelope as DataCollectionUpdatedEnvelope, index_d$2_DataOperation as DataOperation, type index_d$2_DeleteDataCollectionFieldRequest as DeleteDataCollectionFieldRequest, type index_d$2_DeleteDataCollectionFieldResponse as DeleteDataCollectionFieldResponse, type index_d$2_DeleteDataCollectionRequest as DeleteDataCollectionRequest, type index_d$2_DeleteDataCollectionResponse as DeleteDataCollectionResponse, type index_d$2_DeleteDataCollectionsSnapshotRequest as DeleteDataCollectionsSnapshotRequest, type index_d$2_DeleteDataCollectionsSnapshotResponse as DeleteDataCollectionsSnapshotResponse, index_d$2_Direction as Direction, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type Failure$1 as Failure, type Field$1 as Field, type index_d$2_FieldCapabilities as FieldCapabilities, type index_d$2_FieldPlugin as FieldPlugin, type index_d$2_FieldPluginOptionsOneOf as FieldPluginOptionsOneOf, index_d$2_FieldPluginType as FieldPluginType, type index_d$2_FieldRangeValidationsOneOf as FieldRangeValidationsOneOf, type FieldUpdate$1 as FieldUpdate, type index_d$2_FieldsPattern as FieldsPattern, index_d$2_Format as Format, type index_d$2_GetDataCollectionOptions as GetDataCollectionOptions, type index_d$2_GetDataCollectionRequest as GetDataCollectionRequest, type index_d$2_GetDataCollectionResponse as GetDataCollectionResponse, type index_d$2_GetDataCollectionResponseNonNullableFields as GetDataCollectionResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Index$1 as Index, type index_d$2_IndexField as IndexField, type index_d$2_IndexLimits as IndexLimits, index_d$2_IndexStatus as IndexStatus, type index_d$2_ListDataCollectionsOptions as ListDataCollectionsOptions, type index_d$2_ListDataCollectionsRequest as ListDataCollectionsRequest, type index_d$2_ListDataCollectionsResponse as ListDataCollectionsResponse, type index_d$2_ListDataCollectionsResponseNonNullableFields as ListDataCollectionsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_MultiReference as MultiReference, type index_d$2_MultilingualOptions as MultilingualOptions, type index_d$2_NumberRange as NumberRange, type index_d$2_ObjectField as ObjectField, Order$1 as Order, type index_d$2_PageLink as PageLink, type index_d$2_PageLinkPluginOptions as PageLinkPluginOptions, type Paging$2 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, index_d$2_PagingMode as PagingMode, type index_d$2_Permissions as Permissions, type index_d$2_Plugin as Plugin, type index_d$2_PluginCmsOptions as PluginCmsOptions, type index_d$2_PluginOptionsOneOf as PluginOptionsOneOf, index_d$2_PluginType as PluginType, type index_d$2_PluginUpdate as PluginUpdate, type PublishPluginOptions$1 as PublishPluginOptions, index_d$2_QueryOperator as QueryOperator, type index_d$2_Reference as Reference, type index_d$2_RestoreDataCollectionsFromSnapshotRequest as RestoreDataCollectionsFromSnapshotRequest, type index_d$2_RestoreDataCollectionsFromSnapshotResponse as RestoreDataCollectionsFromSnapshotResponse, index_d$2_Role as Role, type index_d$2_SingleItemPluginOptions as SingleItemPluginOptions, type index_d$2_SiteSort as SiteSort, type index_d$2_SnapshotCollection as SnapshotCollection, type index_d$2_Sort as Sort, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Status$1 as Status, type index_d$2_StringLengthRange as StringLengthRange, index_d$2_Type as Type, type index_d$2_TypeMetadata as TypeMetadata, type index_d$2_TypeMetadataMetadataOneOf as TypeMetadataMetadataOneOf, type index_d$2_UpdateDataCollectionFieldRequest as UpdateDataCollectionFieldRequest, type index_d$2_UpdateDataCollectionFieldResponse as UpdateDataCollectionFieldResponse, type index_d$2_UpdateDataCollectionRequest as UpdateDataCollectionRequest, type index_d$2_UpdateDataCollectionResponse as UpdateDataCollectionResponse, type index_d$2_UpdateDataCollectionResponseNonNullableFields as UpdateDataCollectionResponseNonNullableFields, type index_d$2_UrlizedOnlyPattern as UrlizedOnlyPattern, type index_d$2_UrlizedPluginOptions as UrlizedPluginOptions, WebhookIdentityType$1 as WebhookIdentityType, type index_d$2__Array as _Array, type index_d$2__Object as _Object, __metadata$2 as __metadata, index_d$2_createDataCollection as createDataCollection, index_d$2_deleteDataCollection as deleteDataCollection, index_d$2_getDataCollection as getDataCollection, index_d$2_listDataCollections as listDataCollections, index_d$2_onDataCollectionChangedEvent as onDataCollectionChangedEvent, index_d$2_onDataCollectionClonedEvent as onDataCollectionClonedEvent, index_d$2_onDataCollectionCreated as onDataCollectionCreated, index_d$2_onDataCollectionDeleted as onDataCollectionDeleted, index_d$2_onDataCollectionUpdated as onDataCollectionUpdated, index_d$2_updateDataCollection as updateDataCollection };
|
|
2607
|
+
export { type ActionEvent$1 as ActionEvent, type index_d$2_ArraySizeRange as ArraySizeRange, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_BulkGetDataCollectionsPageBySnapshotsRequest as BulkGetDataCollectionsPageBySnapshotsRequest, type index_d$2_BulkGetDataCollectionsPageBySnapshotsResponse as BulkGetDataCollectionsPageBySnapshotsResponse, type index_d$2_BulkGetDataCollectionsRequest as BulkGetDataCollectionsRequest, type index_d$2_BulkGetDataCollectionsResponse as BulkGetDataCollectionsResponse, type index_d$2_Calculator as Calculator, type index_d$2_CalculatorPatternOneOf as CalculatorPatternOneOf, type index_d$2_CmsOptions as CmsOptions, type index_d$2_CollectionCapabilities as CollectionCapabilities, index_d$2_CollectionOperation as CollectionOperation, index_d$2_CollectionType as CollectionType, type index_d$2_CreateDataCollectionFieldRequest as CreateDataCollectionFieldRequest, type index_d$2_CreateDataCollectionFieldResponse as CreateDataCollectionFieldResponse, type index_d$2_CreateDataCollectionRequest as CreateDataCollectionRequest, type index_d$2_CreateDataCollectionResponse as CreateDataCollectionResponse, type index_d$2_CreateDataCollectionResponseNonNullableFields as CreateDataCollectionResponseNonNullableFields, type index_d$2_CreateDataCollectionsSnapshotRequest as CreateDataCollectionsSnapshotRequest, type index_d$2_CreateDataCollectionsSnapshotResponse as CreateDataCollectionsSnapshotResponse, type index_d$2_DataCollection as DataCollection, type index_d$2_DataCollectionChangedEnvelope as DataCollectionChangedEnvelope, type index_d$2_DataCollectionChangedEvent as DataCollectionChangedEvent, type index_d$2_DataCollectionClonedEnvelope as DataCollectionClonedEnvelope, type index_d$2_DataCollectionClonedEvent as DataCollectionClonedEvent, type index_d$2_DataCollectionCreatedEnvelope as DataCollectionCreatedEnvelope, type index_d$2_DataCollectionDeletedEnvelope as DataCollectionDeletedEnvelope, type index_d$2_DataCollectionUpdatedEnvelope as DataCollectionUpdatedEnvelope, index_d$2_DataOperation as DataOperation, type index_d$2_DeleteDataCollectionFieldRequest as DeleteDataCollectionFieldRequest, type index_d$2_DeleteDataCollectionFieldResponse as DeleteDataCollectionFieldResponse, type index_d$2_DeleteDataCollectionRequest as DeleteDataCollectionRequest, type index_d$2_DeleteDataCollectionResponse as DeleteDataCollectionResponse, type index_d$2_DeleteDataCollectionsSnapshotRequest as DeleteDataCollectionsSnapshotRequest, type index_d$2_DeleteDataCollectionsSnapshotResponse as DeleteDataCollectionsSnapshotResponse, index_d$2_Direction as Direction, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type Failure$1 as Failure, type Field$1 as Field, type index_d$2_FieldCapabilities as FieldCapabilities, type index_d$2_FieldPlugin as FieldPlugin, type index_d$2_FieldPluginOptionsOneOf as FieldPluginOptionsOneOf, index_d$2_FieldPluginType as FieldPluginType, type index_d$2_FieldRangeValidationsOneOf as FieldRangeValidationsOneOf, type FieldUpdate$1 as FieldUpdate, type index_d$2_FieldsPattern as FieldsPattern, index_d$2_Format as Format, type index_d$2_GetDataCollectionOptions as GetDataCollectionOptions, type index_d$2_GetDataCollectionRequest as GetDataCollectionRequest, type index_d$2_GetDataCollectionResponse as GetDataCollectionResponse, type index_d$2_GetDataCollectionResponseNonNullableFields as GetDataCollectionResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type Index$1 as Index, type index_d$2_IndexField as IndexField, type index_d$2_IndexLimits as IndexLimits, index_d$2_IndexStatus as IndexStatus, type index_d$2_ListDataCollectionsOptions as ListDataCollectionsOptions, type index_d$2_ListDataCollectionsRequest as ListDataCollectionsRequest, type index_d$2_ListDataCollectionsResponse as ListDataCollectionsResponse, type index_d$2_ListDataCollectionsResponseNonNullableFields as ListDataCollectionsResponseNonNullableFields, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_MultiReference as MultiReference, type index_d$2_MultilingualOptions as MultilingualOptions, type index_d$2_NumberRange as NumberRange, type index_d$2_ObjectField as ObjectField, Order$1 as Order, type index_d$2_PageLink as PageLink, type index_d$2_PageLinkPluginOptions as PageLinkPluginOptions, type Paging$2 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, index_d$2_PagingMode as PagingMode, type index_d$2_Permissions as Permissions, type index_d$2_Plugin as Plugin, type index_d$2_PluginCmsOptions as PluginCmsOptions, type index_d$2_PluginOptionsOneOf as PluginOptionsOneOf, index_d$2_PluginType as PluginType, type index_d$2_PluginUpdate as PluginUpdate, type PublishPluginOptions$1 as PublishPluginOptions, index_d$2_QueryOperator as QueryOperator, type index_d$2_Reference as Reference, type index_d$2_RestoreDataCollectionsFromSnapshotRequest as RestoreDataCollectionsFromSnapshotRequest, type index_d$2_RestoreDataCollectionsFromSnapshotResponse as RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo$1 as RestoreInfo, index_d$2_Role as Role, type index_d$2_SingleItemPluginOptions as SingleItemPluginOptions, type index_d$2_SiteSort as SiteSort, type index_d$2_SnapshotCollection as SnapshotCollection, type index_d$2_Sort as Sort, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, Status$1 as Status, type index_d$2_StringLengthRange as StringLengthRange, index_d$2_Type as Type, type index_d$2_TypeMetadata as TypeMetadata, type index_d$2_TypeMetadataMetadataOneOf as TypeMetadataMetadataOneOf, type index_d$2_UpdateDataCollectionFieldRequest as UpdateDataCollectionFieldRequest, type index_d$2_UpdateDataCollectionFieldResponse as UpdateDataCollectionFieldResponse, type index_d$2_UpdateDataCollectionRequest as UpdateDataCollectionRequest, type index_d$2_UpdateDataCollectionResponse as UpdateDataCollectionResponse, type index_d$2_UpdateDataCollectionResponseNonNullableFields as UpdateDataCollectionResponseNonNullableFields, type index_d$2_UrlizedOnlyPattern as UrlizedOnlyPattern, type index_d$2_UrlizedPluginOptions as UrlizedPluginOptions, WebhookIdentityType$1 as WebhookIdentityType, type index_d$2__Array as _Array, type index_d$2__Object as _Object, __metadata$2 as __metadata, index_d$2_createDataCollection as createDataCollection, index_d$2_deleteDataCollection as deleteDataCollection, index_d$2_getDataCollection as getDataCollection, index_d$2_listDataCollections as listDataCollections, index_d$2_onDataCollectionChangedEvent as onDataCollectionChangedEvent, index_d$2_onDataCollectionClonedEvent as onDataCollectionClonedEvent, index_d$2_onDataCollectionCreated as onDataCollectionCreated, index_d$2_onDataCollectionDeleted as onDataCollectionDeleted, index_d$2_onDataCollectionUpdated as onDataCollectionUpdated, index_d$2_updateDataCollection as updateDataCollection };
|
|
2641
2608
|
}
|
|
2642
2609
|
|
|
2643
2610
|
interface DataItem {
|
|
@@ -2893,7 +2860,7 @@ interface QueryDataItemsRequest {
|
|
|
2893
2860
|
* Up to 50 referenced items can be included for each item that matches the query.
|
|
2894
2861
|
* @deprecated
|
|
2895
2862
|
* @replacedBy referenced_item_options
|
|
2896
|
-
* @
|
|
2863
|
+
* @targetRemovalDate 2025-08-01
|
|
2897
2864
|
*/
|
|
2898
2865
|
includeReferencedItems?: string[];
|
|
2899
2866
|
/**
|
|
@@ -3847,6 +3814,7 @@ interface DataItemUpdatedEnvelope {
|
|
|
3847
3814
|
metadata: EventMetadata;
|
|
3848
3815
|
}
|
|
3849
3816
|
interface DataItemDeletedEnvelope {
|
|
3817
|
+
entity: DataItem;
|
|
3850
3818
|
metadata: EventMetadata;
|
|
3851
3819
|
}
|
|
3852
3820
|
interface InsertDataItemOptions {
|
|
@@ -3933,7 +3901,7 @@ interface QueryDataItemsOptions {
|
|
|
3933
3901
|
* Up to 50 referenced items can be included for each item that matches the query.
|
|
3934
3902
|
* @deprecated
|
|
3935
3903
|
* @replacedBy referenced_item_options
|
|
3936
|
-
* @
|
|
3904
|
+
* @targetRemovalDate 2025-08-01
|
|
3937
3905
|
*/
|
|
3938
3906
|
includeReferencedItems?: string[] | undefined;
|
|
3939
3907
|
/**
|
|
@@ -4284,72 +4252,33 @@ interface ReplaceDataItemReferencesOptions {
|
|
|
4284
4252
|
newReferencedItemIds?: string[];
|
|
4285
4253
|
}
|
|
4286
4254
|
|
|
4287
|
-
interface HttpClient$1 {
|
|
4288
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
4289
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4290
|
-
}
|
|
4291
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
4292
|
-
type HttpResponse$1<T = any> = {
|
|
4293
|
-
data: T;
|
|
4294
|
-
status: number;
|
|
4295
|
-
statusText: string;
|
|
4296
|
-
headers: any;
|
|
4297
|
-
request?: any;
|
|
4298
|
-
};
|
|
4299
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
4300
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4301
|
-
url: string;
|
|
4302
|
-
data?: Data;
|
|
4303
|
-
params?: URLSearchParams;
|
|
4304
|
-
} & APIMetadata$1;
|
|
4305
|
-
type APIMetadata$1 = {
|
|
4306
|
-
methodFqn?: string;
|
|
4307
|
-
entityFqdn?: string;
|
|
4308
|
-
packageName?: string;
|
|
4309
|
-
};
|
|
4310
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
4311
|
-
__type: 'event-definition';
|
|
4312
|
-
type: Type;
|
|
4313
|
-
isDomainEvent?: boolean;
|
|
4314
|
-
transformations?: (envelope: unknown) => Payload;
|
|
4315
|
-
__payload: Payload;
|
|
4316
|
-
};
|
|
4317
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
4318
|
-
|
|
4319
|
-
declare global {
|
|
4320
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4321
|
-
interface SymbolConstructor {
|
|
4322
|
-
readonly observable: symbol;
|
|
4323
|
-
}
|
|
4324
|
-
}
|
|
4325
|
-
|
|
4326
4255
|
declare const __metadata$1: {
|
|
4327
4256
|
PACKAGE_NAME: string;
|
|
4328
4257
|
};
|
|
4329
|
-
declare function insertDataItem(httpClient: HttpClient
|
|
4330
|
-
declare function updateDataItem(httpClient: HttpClient
|
|
4331
|
-
declare function saveDataItem(httpClient: HttpClient
|
|
4332
|
-
declare function getDataItem(httpClient: HttpClient
|
|
4258
|
+
declare function insertDataItem(httpClient: HttpClient): (options: InsertDataItemOptions) => Promise<InsertDataItemResponse & InsertDataItemResponseNonNullableFields>;
|
|
4259
|
+
declare function updateDataItem(httpClient: HttpClient): (_id: string, options: UpdateDataItemOptions) => Promise<UpdateDataItemResponse & UpdateDataItemResponseNonNullableFields>;
|
|
4260
|
+
declare function saveDataItem(httpClient: HttpClient): (options: SaveDataItemOptions) => Promise<SaveDataItemResponse & SaveDataItemResponseNonNullableFields>;
|
|
4261
|
+
declare function getDataItem(httpClient: HttpClient): (dataItemId: string, options?: GetDataItemOptions) => Promise<DataItem & {
|
|
4333
4262
|
_id: string;
|
|
4334
4263
|
dataCollectionId: string;
|
|
4335
4264
|
}>;
|
|
4336
|
-
declare function removeDataItem(httpClient: HttpClient
|
|
4337
|
-
declare function truncateDataItems(httpClient: HttpClient
|
|
4338
|
-
declare function queryDataItems(httpClient: HttpClient
|
|
4339
|
-
declare function aggregateDataItems(httpClient: HttpClient
|
|
4340
|
-
declare function countDataItems(httpClient: HttpClient
|
|
4341
|
-
declare function queryDistinctValues(httpClient: HttpClient
|
|
4342
|
-
declare function bulkInsertDataItems(httpClient: HttpClient
|
|
4343
|
-
declare function bulkUpdateDataItems(httpClient: HttpClient
|
|
4344
|
-
declare function bulkSaveDataItems(httpClient: HttpClient
|
|
4345
|
-
declare function bulkRemoveDataItems(httpClient: HttpClient
|
|
4346
|
-
declare function queryReferencedDataItems(httpClient: HttpClient
|
|
4347
|
-
declare function isReferencedDataItem(httpClient: HttpClient
|
|
4348
|
-
declare function insertDataItemReference(httpClient: HttpClient
|
|
4349
|
-
declare function removeDataItemReference(httpClient: HttpClient
|
|
4350
|
-
declare function bulkInsertDataItemReferences(httpClient: HttpClient
|
|
4351
|
-
declare function bulkRemoveDataItemReferences(httpClient: HttpClient
|
|
4352
|
-
declare function replaceDataItemReferences(httpClient: HttpClient
|
|
4265
|
+
declare function removeDataItem(httpClient: HttpClient): (dataItemId: string, options: RemoveDataItemOptions) => Promise<RemoveDataItemResponse & RemoveDataItemResponseNonNullableFields>;
|
|
4266
|
+
declare function truncateDataItems(httpClient: HttpClient): (options: TruncateDataItemsOptions) => Promise<void>;
|
|
4267
|
+
declare function queryDataItems(httpClient: HttpClient): (options: QueryDataItemsOptions) => DataItemsQueryBuilder;
|
|
4268
|
+
declare function aggregateDataItems(httpClient: HttpClient): (options?: AggregateDataItemsOptions) => Promise<AggregateDataItemsResponse>;
|
|
4269
|
+
declare function countDataItems(httpClient: HttpClient): (options?: CountDataItemsOptions) => Promise<CountDataItemsResponse & CountDataItemsResponseNonNullableFields>;
|
|
4270
|
+
declare function queryDistinctValues(httpClient: HttpClient): (options?: QueryDistinctValuesOptions) => Promise<QueryDistinctValuesResponse>;
|
|
4271
|
+
declare function bulkInsertDataItems(httpClient: HttpClient): (options?: BulkInsertDataItemsOptions) => Promise<BulkInsertDataItemsResponse & BulkInsertDataItemsResponseNonNullableFields>;
|
|
4272
|
+
declare function bulkUpdateDataItems(httpClient: HttpClient): (options?: BulkUpdateDataItemsOptions) => Promise<BulkUpdateDataItemsResponse & BulkUpdateDataItemsResponseNonNullableFields>;
|
|
4273
|
+
declare function bulkSaveDataItems(httpClient: HttpClient): (options?: BulkSaveDataItemsOptions) => Promise<BulkSaveDataItemsResponse & BulkSaveDataItemsResponseNonNullableFields>;
|
|
4274
|
+
declare function bulkRemoveDataItems(httpClient: HttpClient): (options: BulkRemoveDataItemsOptions) => Promise<BulkRemoveDataItemsResponse & BulkRemoveDataItemsResponseNonNullableFields>;
|
|
4275
|
+
declare function queryReferencedDataItems(httpClient: HttpClient): (options?: QueryReferencedDataItemsOptions) => Promise<QueryReferencedDataItemsResponse & QueryReferencedDataItemsResponseNonNullableFields>;
|
|
4276
|
+
declare function isReferencedDataItem(httpClient: HttpClient): (options?: IsReferencedDataItemOptions) => Promise<IsReferencedDataItemResponse & IsReferencedDataItemResponseNonNullableFields>;
|
|
4277
|
+
declare function insertDataItemReference(httpClient: HttpClient): (options?: InsertDataItemReferenceOptions) => Promise<InsertDataItemReferenceResponse & InsertDataItemReferenceResponseNonNullableFields>;
|
|
4278
|
+
declare function removeDataItemReference(httpClient: HttpClient): (options: RemoveDataItemReferenceOptions) => Promise<RemoveDataItemReferenceResponse & RemoveDataItemReferenceResponseNonNullableFields>;
|
|
4279
|
+
declare function bulkInsertDataItemReferences(httpClient: HttpClient): (options?: BulkInsertDataItemReferencesOptions) => Promise<BulkInsertDataItemReferencesResponse & BulkInsertDataItemReferencesResponseNonNullableFields>;
|
|
4280
|
+
declare function bulkRemoveDataItemReferences(httpClient: HttpClient): (options: BulkRemoveDataItemReferencesOptions) => Promise<BulkRemoveDataItemReferencesResponse & BulkRemoveDataItemReferencesResponseNonNullableFields>;
|
|
4281
|
+
declare function replaceDataItemReferences(httpClient: HttpClient): (options?: ReplaceDataItemReferencesOptions) => Promise<ReplaceDataItemReferencesResponse & ReplaceDataItemReferencesResponseNonNullableFields>;
|
|
4353
4282
|
declare const onDataItemCreated: EventDefinition<DataItemCreatedEnvelope, "wix.data.v2.data_item_created">;
|
|
4354
4283
|
declare const onDataItemUpdated: EventDefinition<DataItemUpdatedEnvelope, "wix.data.v2.data_item_updated">;
|
|
4355
4284
|
declare const onDataItemDeleted: EventDefinition<DataItemDeletedEnvelope, "wix.data.v2.data_item_deleted">;
|
|
@@ -4714,37 +4643,6 @@ interface ListIndexesOptions {
|
|
|
4714
4643
|
paging?: Paging;
|
|
4715
4644
|
}
|
|
4716
4645
|
|
|
4717
|
-
interface HttpClient {
|
|
4718
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4719
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4720
|
-
}
|
|
4721
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
4722
|
-
type HttpResponse<T = any> = {
|
|
4723
|
-
data: T;
|
|
4724
|
-
status: number;
|
|
4725
|
-
statusText: string;
|
|
4726
|
-
headers: any;
|
|
4727
|
-
request?: any;
|
|
4728
|
-
};
|
|
4729
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
4730
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4731
|
-
url: string;
|
|
4732
|
-
data?: Data;
|
|
4733
|
-
params?: URLSearchParams;
|
|
4734
|
-
} & APIMetadata;
|
|
4735
|
-
type APIMetadata = {
|
|
4736
|
-
methodFqn?: string;
|
|
4737
|
-
entityFqdn?: string;
|
|
4738
|
-
packageName?: string;
|
|
4739
|
-
};
|
|
4740
|
-
|
|
4741
|
-
declare global {
|
|
4742
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4743
|
-
interface SymbolConstructor {
|
|
4744
|
-
readonly observable: symbol;
|
|
4745
|
-
}
|
|
4746
|
-
}
|
|
4747
|
-
|
|
4748
4646
|
declare const __metadata: {
|
|
4749
4647
|
PACKAGE_NAME: string;
|
|
4750
4648
|
};
|
|
@@ -3061,7 +3061,7 @@ interface QueryDataItemsRequest$1 {
|
|
|
3061
3061
|
* Up to 50 referenced items can be included for each item that matches the query.
|
|
3062
3062
|
* @deprecated
|
|
3063
3063
|
* @replacedBy referenced_item_options
|
|
3064
|
-
* @
|
|
3064
|
+
* @targetRemovalDate 2025-08-01
|
|
3065
3065
|
*/
|
|
3066
3066
|
includeReferencedItems?: string[];
|
|
3067
3067
|
/**
|
|
@@ -4010,7 +4010,7 @@ interface QueryDataItemsRequest {
|
|
|
4010
4010
|
* Up to 50 referenced items can be included for each item that matches the query.
|
|
4011
4011
|
* @deprecated
|
|
4012
4012
|
* @replacedBy referenced_item_options
|
|
4013
|
-
* @
|
|
4013
|
+
* @targetRemovalDate 2025-08-01
|
|
4014
4014
|
*/
|
|
4015
4015
|
includeReferencedItems?: string[];
|
|
4016
4016
|
/**
|