@wix/auto_sdk_data_collections 1.0.37 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +27 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +27 -7
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +27 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +27 -7
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +27 -7
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +27 -7
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +27 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +27 -7
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1153,7 +1153,7 @@ interface SnapshotCollection {
|
|
|
1153
1153
|
/** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
|
|
1154
1154
|
interface Index {
|
|
1155
1155
|
/**
|
|
1156
|
-
*
|
|
1156
|
+
* ID of the index.
|
|
1157
1157
|
* @readonly
|
|
1158
1158
|
* @format GUID
|
|
1159
1159
|
*/
|
|
@@ -1183,8 +1183,8 @@ interface Index {
|
|
|
1183
1183
|
*/
|
|
1184
1184
|
failure?: Failure;
|
|
1185
1185
|
/**
|
|
1186
|
-
* Whether the index enforces uniqueness of values in the field for which it
|
|
1187
|
-
* If `true`, the index can have only
|
|
1186
|
+
* Whether the index enforces uniqueness of values in the field for which it's defined.
|
|
1187
|
+
* If `true`, the index can have only 1 field.
|
|
1188
1188
|
*
|
|
1189
1189
|
* Default: `false`
|
|
1190
1190
|
*/
|
|
@@ -1195,7 +1195,11 @@ interface Index {
|
|
|
1195
1195
|
* Default: `false`
|
|
1196
1196
|
*/
|
|
1197
1197
|
caseInsensitive?: boolean;
|
|
1198
|
-
/**
|
|
1198
|
+
/**
|
|
1199
|
+
* Source of the index. See index sources in [Index Types](https://dev.wix.com/docs/api-reference/business-solutions/cms/indexes/index-types#index-sources).
|
|
1200
|
+
*
|
|
1201
|
+
* Default: `USER`
|
|
1202
|
+
*/
|
|
1199
1203
|
source?: IndexSourceWithLiterals;
|
|
1200
1204
|
}
|
|
1201
1205
|
/**
|
|
@@ -1264,11 +1268,22 @@ interface Failure {
|
|
|
1264
1268
|
declare enum IndexSource {
|
|
1265
1269
|
/** Place holder. Never returned by the service. */
|
|
1266
1270
|
UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
|
|
1267
|
-
/**
|
|
1271
|
+
/**
|
|
1272
|
+
* Automatically created by Wix for all collections.
|
|
1273
|
+
*
|
|
1274
|
+
* System indexes are created for essential attributes, such as ID and creation date.
|
|
1275
|
+
* You can't delete them and they don't count towards the index limit.
|
|
1276
|
+
*/
|
|
1268
1277
|
SYSTEM = "SYSTEM",
|
|
1269
|
-
/**
|
|
1278
|
+
/** Created by a Wix user via the API or in the dashboard. */
|
|
1270
1279
|
USER = "USER",
|
|
1271
|
-
/**
|
|
1280
|
+
/**
|
|
1281
|
+
* Created automatically by Wix based on a Wix user's queries.
|
|
1282
|
+
*
|
|
1283
|
+
* For large collections, Wix identifies slow-running queries and creates indexes automatically to improve performance.
|
|
1284
|
+
* These indexes don't count towards the index limit. They're created dynamically, and may be deleted if they no longer fit
|
|
1285
|
+
* the system's parameters. To keep an automatic index permanently, manually create an identical `USER` index.
|
|
1286
|
+
*/
|
|
1272
1287
|
AUTO = "AUTO"
|
|
1273
1288
|
}
|
|
1274
1289
|
/** @enumType */
|
|
@@ -1300,6 +1315,11 @@ interface CreateAppCollectionsSnapshotRequest {
|
|
|
1300
1315
|
* @maxSize 1000
|
|
1301
1316
|
*/
|
|
1302
1317
|
collections?: CollectionDefinition[];
|
|
1318
|
+
/**
|
|
1319
|
+
* Whether to remove snapshot with all its collections if it already exists.
|
|
1320
|
+
* Existing snapshot must be owned by the same app.
|
|
1321
|
+
*/
|
|
1322
|
+
replaceIfExists?: boolean;
|
|
1303
1323
|
}
|
|
1304
1324
|
interface CollectionDefinition {
|
|
1305
1325
|
/** Data collection */
|