@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
package/build/es/meta.d.mts
CHANGED
|
@@ -1154,7 +1154,7 @@ interface SnapshotCollection {
|
|
|
1154
1154
|
/** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
|
|
1155
1155
|
interface Index {
|
|
1156
1156
|
/**
|
|
1157
|
-
*
|
|
1157
|
+
* ID of the index.
|
|
1158
1158
|
* @readonly
|
|
1159
1159
|
* @format GUID
|
|
1160
1160
|
*/
|
|
@@ -1184,8 +1184,8 @@ interface Index {
|
|
|
1184
1184
|
*/
|
|
1185
1185
|
failure?: Failure;
|
|
1186
1186
|
/**
|
|
1187
|
-
* Whether the index enforces uniqueness of values in the field for which it
|
|
1188
|
-
* If `true`, the index can have only
|
|
1187
|
+
* Whether the index enforces uniqueness of values in the field for which it's defined.
|
|
1188
|
+
* If `true`, the index can have only 1 field.
|
|
1189
1189
|
*
|
|
1190
1190
|
* Default: `false`
|
|
1191
1191
|
*/
|
|
@@ -1196,7 +1196,11 @@ interface Index {
|
|
|
1196
1196
|
* Default: `false`
|
|
1197
1197
|
*/
|
|
1198
1198
|
caseInsensitive?: boolean;
|
|
1199
|
-
/**
|
|
1199
|
+
/**
|
|
1200
|
+
* 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).
|
|
1201
|
+
*
|
|
1202
|
+
* Default: `USER`
|
|
1203
|
+
*/
|
|
1200
1204
|
source?: IndexSourceWithLiterals;
|
|
1201
1205
|
}
|
|
1202
1206
|
/**
|
|
@@ -1265,11 +1269,22 @@ interface Failure {
|
|
|
1265
1269
|
declare enum IndexSource {
|
|
1266
1270
|
/** Place holder. Never returned by the service. */
|
|
1267
1271
|
UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
|
|
1268
|
-
/**
|
|
1272
|
+
/**
|
|
1273
|
+
* Automatically created by Wix for all collections.
|
|
1274
|
+
*
|
|
1275
|
+
* System indexes are created for essential attributes, such as ID and creation date.
|
|
1276
|
+
* You can't delete them and they don't count towards the index limit.
|
|
1277
|
+
*/
|
|
1269
1278
|
SYSTEM = "SYSTEM",
|
|
1270
|
-
/**
|
|
1279
|
+
/** Created by a Wix user via the API or in the dashboard. */
|
|
1271
1280
|
USER = "USER",
|
|
1272
|
-
/**
|
|
1281
|
+
/**
|
|
1282
|
+
* Created automatically by Wix based on a Wix user's queries.
|
|
1283
|
+
*
|
|
1284
|
+
* For large collections, Wix identifies slow-running queries and creates indexes automatically to improve performance.
|
|
1285
|
+
* These indexes don't count towards the index limit. They're created dynamically, and may be deleted if they no longer fit
|
|
1286
|
+
* the system's parameters. To keep an automatic index permanently, manually create an identical `USER` index.
|
|
1287
|
+
*/
|
|
1273
1288
|
AUTO = "AUTO"
|
|
1274
1289
|
}
|
|
1275
1290
|
/** @enumType */
|
|
@@ -1301,6 +1316,11 @@ interface CreateAppCollectionsSnapshotRequest {
|
|
|
1301
1316
|
* @maxSize 1000
|
|
1302
1317
|
*/
|
|
1303
1318
|
collections?: CollectionDefinition[];
|
|
1319
|
+
/**
|
|
1320
|
+
* Whether to remove snapshot with all its collections if it already exists.
|
|
1321
|
+
* Existing snapshot must be owned by the same app.
|
|
1322
|
+
*/
|
|
1323
|
+
replaceIfExists?: boolean;
|
|
1304
1324
|
}
|
|
1305
1325
|
interface CollectionDefinition {
|
|
1306
1326
|
/** Data collection */
|