@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.
@@ -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
- * Id of the index.
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 is defined.
1188
- * If `true`, the index can have only one field.
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
- /** Specifies the origin of the index definition. */
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
- /** Index is created by the system, present for all collections. */
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
- /** Index was created by a user via API or UI. */
1279
+ /** Created by a Wix user via the API or in the dashboard. */
1271
1280
  USER = "USER",
1272
- /** Index is created automatically by the system based on user queries. */
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 */