@wix/auto_sdk_data_collections 1.0.11 → 1.0.12

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.
Files changed (134) hide show
  1. package/build/{es/src/data-v2-data-collection-collections.types.d.ts → data-v2-data-collection-collections.universal-DFG8hhGA.d.mts} +199 -144
  2. package/build/{cjs/src/data-v2-data-collection-collections.types.d.ts → data-v2-data-collection-collections.universal-DFG8hhGA.d.ts} +199 -144
  3. package/build/index.d.mts +75 -0
  4. package/build/index.d.ts +75 -0
  5. package/build/index.js +1278 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1227 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/data-v2-data-collection-collections.types.d.ts → data-v2-data-collection-collections.universal-DZ3_N2Cv.d.mts} +230 -144
  10. package/build/internal/{es/src/data-v2-data-collection-collections.types.d.ts → data-v2-data-collection-collections.universal-DZ3_N2Cv.d.ts} +230 -144
  11. package/build/internal/index.d.mts +121 -0
  12. package/build/internal/index.d.ts +121 -0
  13. package/build/internal/index.js +1278 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1227 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +882 -0
  18. package/build/internal/meta.d.ts +882 -0
  19. package/build/internal/meta.js +883 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +848 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +882 -0
  24. package/build/meta.d.ts +882 -0
  25. package/build/meta.js +883 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +848 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/data-v2-data-collection-collections.context.d.ts +0 -9
  40. package/build/cjs/src/data-v2-data-collection-collections.context.js +0 -39
  41. package/build/cjs/src/data-v2-data-collection-collections.context.js.map +0 -1
  42. package/build/cjs/src/data-v2-data-collection-collections.http.d.ts +0 -48
  43. package/build/cjs/src/data-v2-data-collection-collections.http.js +0 -704
  44. package/build/cjs/src/data-v2-data-collection-collections.http.js.map +0 -1
  45. package/build/cjs/src/data-v2-data-collection-collections.meta.d.ts +0 -27
  46. package/build/cjs/src/data-v2-data-collection-collections.meta.js +0 -199
  47. package/build/cjs/src/data-v2-data-collection-collections.meta.js.map +0 -1
  48. package/build/cjs/src/data-v2-data-collection-collections.public.d.ts +0 -69
  49. package/build/cjs/src/data-v2-data-collection-collections.public.js +0 -84
  50. package/build/cjs/src/data-v2-data-collection-collections.public.js.map +0 -1
  51. package/build/cjs/src/data-v2-data-collection-collections.types.js +0 -270
  52. package/build/cjs/src/data-v2-data-collection-collections.types.js.map +0 -1
  53. package/build/cjs/src/data-v2-data-collection-collections.universal.d.ts +0 -1572
  54. package/build/cjs/src/data-v2-data-collection-collections.universal.js +0 -704
  55. package/build/cjs/src/data-v2-data-collection-collections.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/data-v2-data-collection-collections.context.d.ts +0 -9
  67. package/build/es/src/data-v2-data-collection-collections.context.js +0 -17
  68. package/build/es/src/data-v2-data-collection-collections.context.js.map +0 -1
  69. package/build/es/src/data-v2-data-collection-collections.http.d.ts +0 -48
  70. package/build/es/src/data-v2-data-collection-collections.http.js +0 -692
  71. package/build/es/src/data-v2-data-collection-collections.http.js.map +0 -1
  72. package/build/es/src/data-v2-data-collection-collections.meta.d.ts +0 -27
  73. package/build/es/src/data-v2-data-collection-collections.meta.js +0 -164
  74. package/build/es/src/data-v2-data-collection-collections.meta.js.map +0 -1
  75. package/build/es/src/data-v2-data-collection-collections.public.d.ts +0 -69
  76. package/build/es/src/data-v2-data-collection-collections.public.js +0 -53
  77. package/build/es/src/data-v2-data-collection-collections.public.js.map +0 -1
  78. package/build/es/src/data-v2-data-collection-collections.types.js +0 -267
  79. package/build/es/src/data-v2-data-collection-collections.types.js.map +0 -1
  80. package/build/es/src/data-v2-data-collection-collections.universal.d.ts +0 -1572
  81. package/build/es/src/data-v2-data-collection-collections.universal.js +0 -669
  82. package/build/es/src/data-v2-data-collection-collections.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/data-v2-data-collection-collections.context.d.ts +0 -17
  93. package/build/internal/cjs/src/data-v2-data-collection-collections.context.js +0 -39
  94. package/build/internal/cjs/src/data-v2-data-collection-collections.context.js.map +0 -1
  95. package/build/internal/cjs/src/data-v2-data-collection-collections.http.d.ts +0 -48
  96. package/build/internal/cjs/src/data-v2-data-collection-collections.http.js +0 -704
  97. package/build/internal/cjs/src/data-v2-data-collection-collections.http.js.map +0 -1
  98. package/build/internal/cjs/src/data-v2-data-collection-collections.meta.d.ts +0 -27
  99. package/build/internal/cjs/src/data-v2-data-collection-collections.meta.js +0 -199
  100. package/build/internal/cjs/src/data-v2-data-collection-collections.meta.js.map +0 -1
  101. package/build/internal/cjs/src/data-v2-data-collection-collections.public.d.ts +0 -107
  102. package/build/internal/cjs/src/data-v2-data-collection-collections.public.js +0 -84
  103. package/build/internal/cjs/src/data-v2-data-collection-collections.public.js.map +0 -1
  104. package/build/internal/cjs/src/data-v2-data-collection-collections.types.js +0 -270
  105. package/build/internal/cjs/src/data-v2-data-collection-collections.types.js.map +0 -1
  106. package/build/internal/cjs/src/data-v2-data-collection-collections.universal.d.ts +0 -1679
  107. package/build/internal/cjs/src/data-v2-data-collection-collections.universal.js +0 -704
  108. package/build/internal/cjs/src/data-v2-data-collection-collections.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/data-v2-data-collection-collections.context.d.ts +0 -17
  119. package/build/internal/es/src/data-v2-data-collection-collections.context.js +0 -17
  120. package/build/internal/es/src/data-v2-data-collection-collections.context.js.map +0 -1
  121. package/build/internal/es/src/data-v2-data-collection-collections.http.d.ts +0 -48
  122. package/build/internal/es/src/data-v2-data-collection-collections.http.js +0 -692
  123. package/build/internal/es/src/data-v2-data-collection-collections.http.js.map +0 -1
  124. package/build/internal/es/src/data-v2-data-collection-collections.meta.d.ts +0 -27
  125. package/build/internal/es/src/data-v2-data-collection-collections.meta.js +0 -164
  126. package/build/internal/es/src/data-v2-data-collection-collections.meta.js.map +0 -1
  127. package/build/internal/es/src/data-v2-data-collection-collections.public.d.ts +0 -107
  128. package/build/internal/es/src/data-v2-data-collection-collections.public.js +0 -53
  129. package/build/internal/es/src/data-v2-data-collection-collections.public.js.map +0 -1
  130. package/build/internal/es/src/data-v2-data-collection-collections.types.js +0 -267
  131. package/build/internal/es/src/data-v2-data-collection-collections.types.js.map +0 -1
  132. package/build/internal/es/src/data-v2-data-collection-collections.universal.d.ts +0 -1679
  133. package/build/internal/es/src/data-v2-data-collection-collections.universal.js +0 -669
  134. package/build/internal/es/src/data-v2-data-collection-collections.universal.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  /** A data collection determines the structure of data to be stored in a database. */
2
- export interface DataCollection {
2
+ interface DataCollection {
3
3
  /**
4
4
  * Collection ID. For example, `my-first-collection`. May include a namespace.
5
5
  * @immutable
6
6
  * @maxLength 256
7
7
  */
8
- id?: string;
8
+ _id?: string;
9
9
  /**
10
10
  * Collection type. Indicates how the collection was created and how it is stored.
11
11
  * @readonly
@@ -78,14 +78,25 @@ export interface DataCollection {
78
78
  * Date the collection was created.
79
79
  * @readonly
80
80
  */
81
- createdDate?: Date | null;
81
+ _createdDate?: Date | null;
82
82
  /**
83
83
  * Date the collection was last updated.
84
84
  * @readonly
85
85
  */
86
- updatedDate?: Date | null;
86
+ _updatedDate?: Date | null;
87
+ /**
88
+ * Levels of permission for accessing and modifying data.
89
+ * @internal
90
+ */
91
+ dataPermissions?: DataPermissions;
92
+ /**
93
+ * Actual data operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`
94
+ * @internal
95
+ * @readonly
96
+ */
97
+ allowedDataPermissions?: AllowedDataPermissions;
87
98
  }
88
- export declare enum CollectionType {
99
+ declare enum CollectionType {
89
100
  /** User-created collection. */
90
101
  NATIVE = "NATIVE",
91
102
  /** [Collection](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-collections) created by a Wix app when it is installed. This type of collection can be modified dynamically by that app (for example, Wix Forms). */
@@ -96,8 +107,8 @@ export declare enum CollectionType {
96
107
  EXTERNAL = "EXTERNAL"
97
108
  }
98
109
  /** @enumType */
99
- export type CollectionTypeWithLiterals = CollectionType | 'NATIVE' | 'WIX_APP' | 'BLOCKS_APP' | 'EXTERNAL';
100
- export interface Sort {
110
+ type CollectionTypeWithLiterals = CollectionType | 'NATIVE' | 'WIX_APP' | 'BLOCKS_APP' | 'EXTERNAL';
111
+ interface Sort {
101
112
  /**
102
113
  * Field to sort by.
103
114
  * @maxLength 1000
@@ -110,13 +121,13 @@ export interface Sort {
110
121
  */
111
122
  direction?: DirectionWithLiterals;
112
123
  }
113
- export declare enum Direction {
124
+ declare enum Direction {
114
125
  ASC = "ASC",
115
126
  DESC = "DESC"
116
127
  }
117
128
  /** @enumType */
118
- export type DirectionWithLiterals = Direction | 'ASC' | 'DESC';
119
- export interface CollectionCapabilities {
129
+ type DirectionWithLiterals = Direction | 'ASC' | 'DESC';
130
+ interface CollectionCapabilities {
120
131
  /**
121
132
  * Data operations the collection supports. The listed operations can be performed on data the collection contains.
122
133
  *
@@ -131,8 +142,13 @@ export interface CollectionCapabilities {
131
142
  collectionOperations?: CollectionOperationWithLiterals[];
132
143
  /** Maximum number of indexes for the collection. */
133
144
  indexLimits?: IndexLimits;
145
+ /**
146
+ * Maximum number of indexes for the collection.
147
+ * @internal
148
+ */
149
+ indexQuotaLimits?: IndexQuotaLimits;
134
150
  }
135
- export declare enum DataOperation {
151
+ declare enum DataOperation {
136
152
  AGGREGATE = "AGGREGATE",
137
153
  BULK_INSERT = "BULK_INSERT",
138
154
  BULK_REMOVE = "BULK_REMOVE",
@@ -156,16 +172,16 @@ export declare enum DataOperation {
156
172
  BULK_PATCH = "BULK_PATCH"
157
173
  }
158
174
  /** @enumType */
159
- export type DataOperationWithLiterals = DataOperation | 'AGGREGATE' | 'BULK_INSERT' | 'BULK_REMOVE' | 'BULK_SAVE' | 'BULK_UPDATE' | 'COUNT' | 'DISTINCT' | 'FIND' | 'GET' | 'INSERT' | 'INSERT_REFERENCE' | 'IS_REFERENCED' | 'QUERY_REFERENCED' | 'REMOVE' | 'REMOVE_REFERENCE' | 'REPLACE_REFERENCES' | 'SAVE' | 'TRUNCATE' | 'UPDATE' | 'PATCH' | 'BULK_PATCH';
160
- export declare enum CollectionOperation {
175
+ type DataOperationWithLiterals = DataOperation | 'AGGREGATE' | 'BULK_INSERT' | 'BULK_REMOVE' | 'BULK_SAVE' | 'BULK_UPDATE' | 'COUNT' | 'DISTINCT' | 'FIND' | 'GET' | 'INSERT' | 'INSERT_REFERENCE' | 'IS_REFERENCED' | 'QUERY_REFERENCED' | 'REMOVE' | 'REMOVE_REFERENCE' | 'REPLACE_REFERENCES' | 'SAVE' | 'TRUNCATE' | 'UPDATE' | 'PATCH' | 'BULK_PATCH';
176
+ declare enum CollectionOperation {
161
177
  /** Allows updating the collection's structure, for example adding, updating, or deleting fields. If not included, the collection's structure can't be changed. */
162
178
  UPDATE = "UPDATE",
163
179
  /** Allows deleting the entire collection. If not included, the collection can't be deleted. */
164
180
  REMOVE = "REMOVE"
165
181
  }
166
182
  /** @enumType */
167
- export type CollectionOperationWithLiterals = CollectionOperation | 'UPDATE' | 'REMOVE';
168
- export interface IndexLimits {
183
+ type CollectionOperationWithLiterals = CollectionOperation | 'UPDATE' | 'REMOVE';
184
+ interface IndexLimits {
169
185
  /** Maximum number of regular (non-unique) indexes allowed for this collection. */
170
186
  regular?: number;
171
187
  /** Maximum number of unique indexes allowed for this collection. */
@@ -173,7 +189,7 @@ export interface IndexLimits {
173
189
  /** Maximum number of regular and unique indexes allowed for this collection. */
174
190
  total?: number;
175
191
  }
176
- export interface IndexQuotaLimits {
192
+ interface IndexQuotaLimits {
177
193
  /**
178
194
  * limit of regular single-field indexes, even if 0 1-field indices may be created using
179
195
  * 3-field quota (if available)
@@ -186,7 +202,7 @@ export interface IndexQuotaLimits {
186
202
  /** Maximum number of regular and unique indexes allowed for this collection. */
187
203
  total?: number;
188
204
  }
189
- export interface Field extends FieldRangeValidationsOneOf {
205
+ interface Field extends FieldRangeValidationsOneOf {
190
206
  /** Range of possible values for a numerical field. */
191
207
  numberRange?: NumberRange;
192
208
  /** Length range permitted for a text field. Relevant for fields that hold strings, such as those of type `TEXT` or `RICH_TEXT`. */
@@ -253,7 +269,7 @@ export interface Field extends FieldRangeValidationsOneOf {
253
269
  plugins?: FieldPlugin[];
254
270
  }
255
271
  /** @oneof */
256
- export interface FieldRangeValidationsOneOf {
272
+ interface FieldRangeValidationsOneOf {
257
273
  /** Range of possible values for a numerical field. */
258
274
  numberRange?: NumberRange;
259
275
  /** Length range permitted for a text field. Relevant for fields that hold strings, such as those of type `TEXT` or `RICH_TEXT`. */
@@ -261,7 +277,7 @@ export interface FieldRangeValidationsOneOf {
261
277
  /** Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`. */
262
278
  arraySizeRange?: ArraySizeRange;
263
279
  }
264
- export declare enum Type {
280
+ declare enum Type {
265
281
  UNKNOWN_FIELD_TYPE = "UNKNOWN_FIELD_TYPE",
266
282
  /** Plain-text string. */
267
283
  TEXT = "TEXT",
@@ -327,8 +343,8 @@ export declare enum Type {
327
343
  LEGACY_EXTERNAL_VIDEO = "LEGACY_EXTERNAL_VIDEO"
328
344
  }
329
345
  /** @enumType */
330
- export type TypeWithLiterals = Type | 'UNKNOWN_FIELD_TYPE' | 'TEXT' | 'NUMBER' | 'DATE' | 'DATETIME' | 'IMAGE' | 'BOOLEAN' | 'DOCUMENT' | 'URL' | 'RICH_TEXT' | 'VIDEO' | 'ANY' | 'ARRAY_STRING' | 'ARRAY_DOCUMENT' | 'AUDIO' | 'TIME' | 'LANGUAGE' | 'RICH_CONTENT' | 'MEDIA_GALLERY' | 'ADDRESS' | 'PAGE_LINK' | 'REFERENCE' | 'MULTI_REFERENCE' | 'OBJECT' | 'ARRAY' | 'LEGACY_TIME' | 'LEGACY_BOOK' | 'LEGACY_EXTERNAL_URL' | 'LEGACY_BROKEN_REFERENCE' | 'LEGACY_IMAGE' | 'LEGACY_COLOR' | 'LEGACY_EXTERNAL_VIDEO';
331
- export interface TypeMetadata extends TypeMetadataMetadataOneOf {
346
+ type TypeWithLiterals = Type | 'UNKNOWN_FIELD_TYPE' | 'TEXT' | 'NUMBER' | 'DATE' | 'DATETIME' | 'IMAGE' | 'BOOLEAN' | 'DOCUMENT' | 'URL' | 'RICH_TEXT' | 'VIDEO' | 'ANY' | 'ARRAY_STRING' | 'ARRAY_DOCUMENT' | 'AUDIO' | 'TIME' | 'LANGUAGE' | 'RICH_CONTENT' | 'MEDIA_GALLERY' | 'ADDRESS' | 'PAGE_LINK' | 'REFERENCE' | 'MULTI_REFERENCE' | 'OBJECT' | 'ARRAY' | 'LEGACY_TIME' | 'LEGACY_BOOK' | 'LEGACY_EXTERNAL_URL' | 'LEGACY_BROKEN_REFERENCE' | 'LEGACY_IMAGE' | 'LEGACY_COLOR' | 'LEGACY_EXTERNAL_VIDEO';
347
+ interface TypeMetadata extends TypeMetadataMetadataOneOf {
332
348
  /** Metadata for a reference field. */
333
349
  reference?: Reference;
334
350
  /** Metadata for a multi-reference field. */
@@ -341,7 +357,7 @@ export interface TypeMetadata extends TypeMetadataMetadataOneOf {
341
357
  pageLink?: PageLink;
342
358
  }
343
359
  /** @oneof */
344
- export interface TypeMetadataMetadataOneOf {
360
+ interface TypeMetadataMetadataOneOf {
345
361
  /** Metadata for a reference field. */
346
362
  reference?: Reference;
347
363
  /** Metadata for a multi-reference field. */
@@ -353,7 +369,7 @@ export interface TypeMetadataMetadataOneOf {
353
369
  /** Metadata for a page link field. */
354
370
  pageLink?: PageLink;
355
371
  }
356
- export interface FieldCapabilities {
372
+ interface FieldCapabilities {
357
373
  /**
358
374
  * Whether the collection can be sorted by this field.
359
375
  *
@@ -366,7 +382,7 @@ export interface FieldCapabilities {
366
382
  */
367
383
  queryOperators?: QueryOperatorWithLiterals[];
368
384
  }
369
- export declare enum QueryOperator {
385
+ declare enum QueryOperator {
370
386
  EQ = "EQ",
371
387
  LT = "LT",
372
388
  GT = "GT",
@@ -382,8 +398,8 @@ export declare enum QueryOperator {
382
398
  URLIZED = "URLIZED"
383
399
  }
384
400
  /** @enumType */
385
- export type QueryOperatorWithLiterals = QueryOperator | 'EQ' | 'LT' | 'GT' | 'NE' | 'LTE' | 'GTE' | 'STARTS_WITH' | 'ENDS_WITH' | 'CONTAINS' | 'HAS_SOME' | 'HAS_ALL' | 'EXISTS' | 'URLIZED';
386
- export interface ObjectField {
401
+ type QueryOperatorWithLiterals = QueryOperator | 'EQ' | 'LT' | 'GT' | 'NE' | 'LTE' | 'GTE' | 'STARTS_WITH' | 'ENDS_WITH' | 'CONTAINS' | 'HAS_SOME' | 'HAS_ALL' | 'EXISTS' | 'URLIZED';
402
+ interface ObjectField {
387
403
  /**
388
404
  * Field ID.
389
405
  * @maxLength 1000
@@ -408,36 +424,36 @@ export interface ObjectField {
408
424
  */
409
425
  capabilities?: FieldCapabilities;
410
426
  }
411
- export interface FieldsPattern {
427
+ interface FieldsPattern {
412
428
  /** @maxLength 1000 */
413
429
  pattern?: string;
414
430
  lowercase?: boolean;
415
431
  }
416
- export interface UrlizedOnlyPattern {
432
+ interface UrlizedOnlyPattern {
417
433
  /** @maxLength 1000 */
418
434
  pattern?: string;
419
435
  }
420
- export interface Calculator extends CalculatorPatternOneOf {
436
+ interface Calculator extends CalculatorPatternOneOf {
421
437
  /** Value is calculated according to pattern, whitespaces are replaced with dash [-]. */
422
438
  fieldsPattern?: FieldsPattern;
423
439
  /** Value is only URL encoded. */
424
440
  urlizedOnlyPattern?: UrlizedOnlyPattern;
425
441
  }
426
442
  /** @oneof */
427
- export interface CalculatorPatternOneOf {
443
+ interface CalculatorPatternOneOf {
428
444
  /** Value is calculated according to pattern, whitespaces are replaced with dash [-]. */
429
445
  fieldsPattern?: FieldsPattern;
430
446
  /** Value is only URL encoded. */
431
447
  urlizedOnlyPattern?: UrlizedOnlyPattern;
432
448
  }
433
- export interface Reference {
449
+ interface Reference {
434
450
  /**
435
451
  * Referenced collection ID.
436
452
  * @maxLength 256
437
453
  */
438
454
  referencedCollectionId?: string;
439
455
  }
440
- export interface MultiReference {
456
+ interface MultiReference {
441
457
  /**
442
458
  * Referenced collection ID.
443
459
  * @maxLength 256
@@ -454,20 +470,20 @@ export interface MultiReference {
454
470
  */
455
471
  referencingDisplayName?: string;
456
472
  }
457
- export interface _Object {
473
+ interface _Object {
458
474
  /**
459
475
  * Fields within the object.
460
476
  * @maxSize 1000
461
477
  */
462
478
  fields?: ObjectField[];
463
479
  }
464
- export interface _Array {
480
+ interface _Array {
465
481
  /** Element's data type. */
466
482
  elementType?: TypeWithLiterals;
467
483
  /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
468
484
  typeMetadata?: TypeMetadata;
469
485
  }
470
- export interface PageLink {
486
+ interface PageLink {
471
487
  calculator?: Calculator;
472
488
  /**
473
489
  * Defines reference to router pattern in the site document.
@@ -475,7 +491,7 @@ export interface PageLink {
475
491
  */
476
492
  linkedRouterPage?: string | null;
477
493
  }
478
- export interface NumberRange {
494
+ interface NumberRange {
479
495
  /**
480
496
  * Minimum permitted value for a numerical field.
481
497
  *
@@ -489,7 +505,7 @@ export interface NumberRange {
489
505
  */
490
506
  max?: number | null;
491
507
  }
492
- export interface StringLengthRange {
508
+ interface StringLengthRange {
493
509
  /**
494
510
  * Minimum permitted length for a text field.
495
511
  *
@@ -503,7 +519,7 @@ export interface StringLengthRange {
503
519
  */
504
520
  maxLength?: number | null;
505
521
  }
506
- export interface ArraySizeRange {
522
+ interface ArraySizeRange {
507
523
  /**
508
524
  * Minimum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.
509
525
  *
@@ -518,26 +534,26 @@ export interface ArraySizeRange {
518
534
  maxSize?: number | null;
519
535
  }
520
536
  /** Optional plug-in aspects for fields */
521
- export interface FieldPlugin extends FieldPluginOptionsOneOf {
537
+ interface FieldPlugin extends FieldPluginOptionsOneOf {
522
538
  /** Options for the CMS plugin. */
523
539
  cmsOptions?: CmsOptions;
524
540
  type?: FieldPluginTypeWithLiterals;
525
541
  }
526
542
  /** @oneof */
527
- export interface FieldPluginOptionsOneOf {
543
+ interface FieldPluginOptionsOneOf {
528
544
  /** Options for the CMS plugin. */
529
545
  cmsOptions?: CmsOptions;
530
546
  }
531
- export declare enum FieldPluginType {
547
+ declare enum FieldPluginType {
532
548
  /** Uknown plugin type. */
533
549
  UNKNOWN = "UNKNOWN",
534
550
  /** CMS-related field attributes */
535
551
  CMS = "CMS"
536
552
  }
537
553
  /** @enumType */
538
- export type FieldPluginTypeWithLiterals = FieldPluginType | 'UNKNOWN' | 'CMS';
554
+ type FieldPluginTypeWithLiterals = FieldPluginType | 'UNKNOWN' | 'CMS';
539
555
  /** Options for the CMS plugin. */
540
- export interface CmsOptions {
556
+ interface CmsOptions {
541
557
  /**
542
558
  * Indicates an internal CMS field. The CMS does not display internal fields.
543
559
  *
@@ -546,7 +562,7 @@ export interface CmsOptions {
546
562
  internal?: boolean;
547
563
  }
548
564
  /** Permissions defined by the lowest role needed to perform each action. */
549
- export interface Permissions {
565
+ interface Permissions {
550
566
  /** Lowest role needed to add a collection. */
551
567
  insert?: RoleWithLiterals;
552
568
  /** Lowest role needed to update a collection. */
@@ -556,7 +572,7 @@ export interface Permissions {
556
572
  /** Lowest role needed to read a collection. */
557
573
  read?: RoleWithLiterals;
558
574
  }
559
- export declare enum Role {
575
+ declare enum Role {
560
576
  /** Unknown role. */
561
577
  UNKNOWN_ROLE = "UNKNOWN_ROLE",
562
578
  /** Site administrator. */
@@ -569,8 +585,8 @@ export declare enum Role {
569
585
  ANYONE = "ANYONE"
570
586
  }
571
587
  /** @enumType */
572
- export type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'ADMIN' | 'SITE_MEMBER_AUTHOR' | 'SITE_MEMBER' | 'ANYONE';
573
- export interface Plugin extends PluginOptionsOneOf {
588
+ type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'ADMIN' | 'SITE_MEMBER_AUTHOR' | 'SITE_MEMBER' | 'ANYONE';
589
+ interface Plugin extends PluginOptionsOneOf {
574
590
  /**
575
591
  * Options for the Publish plugin.
576
592
  * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
@@ -590,7 +606,7 @@ export interface Plugin extends PluginOptionsOneOf {
590
606
  type?: PluginTypeWithLiterals;
591
607
  }
592
608
  /** @oneof */
593
- export interface PluginOptionsOneOf {
609
+ interface PluginOptionsOneOf {
594
610
  /**
595
611
  * Options for the Publish plugin.
596
612
  * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.
@@ -607,14 +623,14 @@ export interface PluginOptionsOneOf {
607
623
  /** Options for the CMS plugin. */
608
624
  cmsOptions?: PluginCmsOptions;
609
625
  }
610
- export declare enum Status {
626
+ declare enum Status {
611
627
  UNKNOWN_PUBLISH_PLUGIN_STATUS = "UNKNOWN_PUBLISH_PLUGIN_STATUS",
612
628
  PUBLISHED = "PUBLISHED",
613
629
  DRAFT = "DRAFT"
614
630
  }
615
631
  /** @enumType */
616
- export type StatusWithLiterals = Status | 'UNKNOWN_PUBLISH_PLUGIN_STATUS' | 'PUBLISHED' | 'DRAFT';
617
- export declare enum Format {
632
+ type StatusWithLiterals = Status | 'UNKNOWN_PUBLISH_PLUGIN_STATUS' | 'PUBLISHED' | 'DRAFT';
633
+ declare enum Format {
618
634
  UNKNOWN_URLIZED_PLUGIN_FORMAT = "UNKNOWN_URLIZED_PLUGIN_FORMAT",
619
635
  /** Letters are converted to lower case and spaces are replaced with dashes before generating the encoded URL. */
620
636
  ORIGINAL = "ORIGINAL",
@@ -622,16 +638,16 @@ export declare enum Format {
622
638
  PLAIN = "PLAIN"
623
639
  }
624
640
  /** @enumType */
625
- export type FormatWithLiterals = Format | 'UNKNOWN_URLIZED_PLUGIN_FORMAT' | 'ORIGINAL' | 'PLAIN';
641
+ type FormatWithLiterals = Format | 'UNKNOWN_URLIZED_PLUGIN_FORMAT' | 'ORIGINAL' | 'PLAIN';
626
642
  /** if CMS-defined sort is enabled and should be used in site */
627
- export interface SiteSort {
643
+ interface SiteSort {
628
644
  /**
629
645
  * Field and order for the site sort.
630
646
  * @maxSize 100
631
647
  */
632
648
  sort?: Sort[];
633
649
  }
634
- export declare enum PluginType {
650
+ declare enum PluginType {
635
651
  /** Unknown plugin type. */
636
652
  UNKNOWN_PLUGIN_TYPE = "UNKNOWN_PLUGIN_TYPE",
637
653
  /** Allows items to be marked as either draft or published. For each item you can set a publishing time when the item will become visible to site visitors. */
@@ -652,23 +668,23 @@ export declare enum PluginType {
652
668
  CMS = "CMS"
653
669
  }
654
670
  /** @enumType */
655
- export type PluginTypeWithLiterals = PluginType | 'UNKNOWN_PLUGIN_TYPE' | 'PUBLISH' | 'SINGLE_ITEM' | 'URLIZED' | 'GRIDAPPLESS' | 'MULTILINGUAL' | 'SHARED' | 'EDITABLE_PAGE_LINK' | 'CMS';
656
- export interface PublishPluginOptions {
671
+ type PluginTypeWithLiterals = PluginType | 'UNKNOWN_PLUGIN_TYPE' | 'PUBLISH' | 'SINGLE_ITEM' | 'URLIZED' | 'GRIDAPPLESS' | 'MULTILINGUAL' | 'SHARED' | 'EDITABLE_PAGE_LINK' | 'CMS';
672
+ interface PublishPluginOptions {
657
673
  /** Default status. */
658
674
  defaultStatus?: StatusWithLiterals;
659
675
  }
660
- export interface SingleItemPluginOptions {
676
+ interface SingleItemPluginOptions {
661
677
  /**
662
678
  * ID of the single item in this collection. If you insert or update an item, its ID value is always changed to this.
663
679
  * @maxLength 16000
664
680
  */
665
681
  singleItemId?: string;
666
682
  }
667
- export interface UrlizedPluginOptions {
683
+ interface UrlizedPluginOptions {
668
684
  /** Encoding method for generating a URL in ASCII characters. */
669
685
  format?: FormatWithLiterals;
670
686
  }
671
- export interface MultilingualOptions {
687
+ interface MultilingualOptions {
672
688
  /**
673
689
  * IDs of fields to allow translation.
674
690
  * @maxSize 1000
@@ -676,24 +692,24 @@ export interface MultilingualOptions {
676
692
  */
677
693
  translatableFieldKeys?: string[];
678
694
  }
679
- export interface PageLinkPluginOptions {
695
+ interface PageLinkPluginOptions {
680
696
  isPersisted?: boolean;
681
697
  isMutable?: boolean;
682
698
  }
683
- export interface PluginCmsOptions {
699
+ interface PluginCmsOptions {
684
700
  /** CMS sort, applied when a collection is displayed on a site. */
685
701
  siteSort?: SiteSort;
686
702
  }
687
- export declare enum PagingMode {
703
+ declare enum PagingMode {
688
704
  /** Offset-based paging. */
689
705
  OFFSET = "OFFSET",
690
706
  /** Cursor-based paging. */
691
707
  CURSOR = "CURSOR"
692
708
  }
693
709
  /** @enumType */
694
- export type PagingModeWithLiterals = PagingMode | 'OFFSET' | 'CURSOR';
710
+ type PagingModeWithLiterals = PagingMode | 'OFFSET' | 'CURSOR';
695
711
  /** Data permissions defined by access level for each action. */
696
- export interface DataPermissions {
712
+ interface DataPermissions {
697
713
  /** Access level for data items read */
698
714
  itemRead?: AccessLevelWithLiterals;
699
715
  /** Access level for data items insert */
@@ -707,7 +723,7 @@ export interface DataPermissions {
707
723
  * Describes who can perform certain action.
708
724
  * Each level includes all levels below it (except UNDEFINED).
709
725
  */
710
- export declare enum AccessLevel {
726
+ declare enum AccessLevel {
711
727
  /** Not set. */
712
728
  UNDEFINED = "UNDEFINED",
713
729
  /** Any subject, including visitors. */
@@ -722,8 +738,8 @@ export declare enum AccessLevel {
722
738
  PRIVILEGED = "PRIVILEGED"
723
739
  }
724
740
  /** @enumType */
725
- export type AccessLevelWithLiterals = AccessLevel | 'UNDEFINED' | 'ANYONE' | 'SITE_MEMBER' | 'SITE_MEMBER_AUTHOR' | 'CMS_EDITOR' | 'PRIVILEGED';
726
- export interface AllowedDataPermissions {
741
+ type AccessLevelWithLiterals = AccessLevel | 'UNDEFINED' | 'ANYONE' | 'SITE_MEMBER' | 'SITE_MEMBER_AUTHOR' | 'CMS_EDITOR' | 'PRIVILEGED';
742
+ interface AllowedDataPermissions {
727
743
  /** If data items read permitted */
728
744
  itemRead?: boolean;
729
745
  /** If for data items insert permitted */
@@ -733,7 +749,7 @@ export interface AllowedDataPermissions {
733
749
  /** If data items removal permitted */
734
750
  itemRemove?: boolean;
735
751
  }
736
- export interface DataCollectionClonedEvent {
752
+ interface DataCollectionClonedEvent {
737
753
  /**
738
754
  * Instance ID of the collection from which the data is cloned.
739
755
  * @format GUID
@@ -745,7 +761,7 @@ export interface DataCollectionClonedEvent {
745
761
  */
746
762
  originId?: string;
747
763
  }
748
- export interface DataCollectionChangedEvent {
764
+ interface DataCollectionChangedEvent {
749
765
  /**
750
766
  * list of new fields
751
767
  * @maxSize 1000
@@ -777,35 +793,35 @@ export interface DataCollectionChangedEvent {
777
793
  */
778
794
  pluginsRemoved?: Plugin[];
779
795
  }
780
- export interface FieldUpdate {
796
+ interface FieldUpdate {
781
797
  /** previous state of the field */
782
798
  previous?: Field;
783
799
  /** current state of the field */
784
800
  current?: Field;
785
801
  }
786
- export interface PluginUpdate {
802
+ interface PluginUpdate {
787
803
  /** previous state of the plugin */
788
804
  previous?: Plugin;
789
805
  /** current state of the plugin */
790
806
  current?: Plugin;
791
807
  }
792
- export interface DataCollectionEvictedEvent {
808
+ interface DataCollectionEvictedEvent {
793
809
  /**
794
810
  * ID of the collection that was permanently deleted.
795
811
  * @minLength 1
796
812
  * @maxLength 1000
797
813
  */
798
- id?: string;
814
+ _id?: string;
799
815
  }
800
- export interface CreateDataCollectionRequest {
816
+ interface CreateDataCollectionRequest {
801
817
  /** Collection details. */
802
818
  collection: DataCollection;
803
819
  }
804
- export interface CreateDataCollectionResponse {
820
+ interface CreateDataCollectionResponse {
805
821
  /** Details of collection created. */
806
822
  collection?: DataCollection;
807
823
  }
808
- export interface GetDataCollectionRequest {
824
+ interface GetDataCollectionRequest {
809
825
  /**
810
826
  * ID of the collection to retrieve.
811
827
  * @maxLength 256
@@ -819,6 +835,11 @@ export interface GetDataCollectionRequest {
819
835
  * Default: `false`
820
836
  */
821
837
  consistentRead?: boolean;
838
+ /**
839
+ * If set allowed for caller data permissions would be included in the response
840
+ * @internal
841
+ */
842
+ includeAllowedDataPermissions?: boolean;
822
843
  /**
823
844
  * List of specific field names to return, if empty all fields are returned.
824
845
  * Affects all returned collections
@@ -827,14 +848,12 @@ export interface GetDataCollectionRequest {
827
848
  */
828
849
  fields?: string[];
829
850
  }
830
- export declare enum Segment {
851
+ declare enum Segment {
831
852
  UNKNOWN_SEGMENT = "UNKNOWN_SEGMENT",
832
853
  PUBLIC = "PUBLIC",
833
854
  DEV = "DEV"
834
855
  }
835
- /** @enumType */
836
- export type SegmentWithLiterals = Segment | 'UNKNOWN_SEGMENT' | 'PUBLIC' | 'DEV';
837
- export interface GetDataCollectionResponse {
856
+ interface GetDataCollectionResponse {
838
857
  /** Details of the collection requested. */
839
858
  collection?: DataCollection;
840
859
  /**
@@ -843,7 +862,7 @@ export interface GetDataCollectionResponse {
843
862
  */
844
863
  referencedCollections?: DataCollection[];
845
864
  }
846
- export interface ListDataCollectionsRequest {
865
+ interface ListDataCollectionsRequest {
847
866
  /**
848
867
  * Defines how collections in the response are sorted.
849
868
  *
@@ -860,6 +879,11 @@ export interface ListDataCollectionsRequest {
860
879
  * Default: `false`
861
880
  */
862
881
  consistentRead?: boolean;
882
+ /**
883
+ * If set allowed for caller data permissions would be included in the response
884
+ * @internal
885
+ */
886
+ includeAllowedDataPermissions?: boolean;
863
887
  /**
864
888
  * List of specific field names to return, if empty all fields are returned.
865
889
  * Affects all returned collections
@@ -868,7 +892,7 @@ export interface ListDataCollectionsRequest {
868
892
  */
869
893
  fields?: string[];
870
894
  }
871
- export interface Sorting {
895
+ interface Sorting {
872
896
  /**
873
897
  * Name of the field to sort by.
874
898
  * @maxLength 1000
@@ -877,25 +901,25 @@ export interface Sorting {
877
901
  /** Sort order. */
878
902
  order?: SortOrderWithLiterals;
879
903
  }
880
- export declare enum SortOrder {
904
+ declare enum SortOrder {
881
905
  ASC = "ASC",
882
906
  DESC = "DESC"
883
907
  }
884
908
  /** @enumType */
885
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
886
- export interface Paging {
909
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
910
+ interface Paging {
887
911
  /** Number of items to load. */
888
912
  limit?: number | null;
889
913
  /** Number of items to skip in the current sort order. */
890
914
  offset?: number | null;
891
915
  }
892
- export interface ListDataCollectionsResponse {
916
+ interface ListDataCollectionsResponse {
893
917
  /** List of collections. */
894
918
  collections?: DataCollection[];
895
919
  /** Paging information. */
896
920
  pagingMetadata?: PagingMetadataV2;
897
921
  }
898
- export interface PagingMetadataV2 {
922
+ interface PagingMetadataV2 {
899
923
  /** Number of items returned in the response. */
900
924
  count?: number | null;
901
925
  /** Offset that was requested. */
@@ -905,7 +929,7 @@ export interface PagingMetadataV2 {
905
929
  /** Flag that indicates the server failed to calculate the `total` field. */
906
930
  tooManyToCount?: boolean | null;
907
931
  }
908
- export interface BulkGetDataCollectionsRequest {
932
+ interface BulkGetDataCollectionsRequest {
909
933
  /**
910
934
  * IDs of the collections to retrieve.
911
935
  * @minSize 1
@@ -935,6 +959,11 @@ export interface BulkGetDataCollectionsRequest {
935
959
  * Default: `false`
936
960
  */
937
961
  consistentRead?: boolean;
962
+ /**
963
+ * If set allowed for caller data permissions would be included in the response
964
+ * @internal
965
+ */
966
+ includeAllowedDataPermissions?: boolean;
938
967
  /**
939
968
  * List of specific field names to return, if empty all fields are returned.
940
969
  * Affects all returned collections
@@ -943,7 +972,7 @@ export interface BulkGetDataCollectionsRequest {
943
972
  */
944
973
  fields?: string[];
945
974
  }
946
- export interface BulkGetDataCollectionsResponse {
975
+ interface BulkGetDataCollectionsResponse {
947
976
  /**
948
977
  * List of requested collections.
949
978
  * When `include_referenced_collections` is `true` in the request, referenced collections are included here.
@@ -952,35 +981,35 @@ export interface BulkGetDataCollectionsResponse {
952
981
  /** List of requested deleted collections. Only populated when `showDeletedCollections` is true in the request. */
953
982
  deletedCollections?: DataCollection[];
954
983
  }
955
- export interface UpdateDataCollectionRequest {
984
+ interface UpdateDataCollectionRequest {
956
985
  /** Updated collection details. The existing collection is replaced with this version. */
957
986
  collection: DataCollection;
958
987
  }
959
- export interface UpdateDataCollectionResponse {
988
+ interface UpdateDataCollectionResponse {
960
989
  /** Updated collection details. */
961
990
  collection?: DataCollection;
962
991
  }
963
- export interface DeleteDataCollectionRequest {
992
+ interface DeleteDataCollectionRequest {
964
993
  /**
965
994
  * ID of the collection to delete.
966
995
  * @maxLength 256
967
996
  */
968
997
  dataCollectionId: string;
969
998
  }
970
- export interface DeleteDataCollectionResponse {
999
+ interface DeleteDataCollectionResponse {
971
1000
  }
972
- export interface RestoreDataCollectionRequest {
1001
+ interface RestoreDataCollectionRequest {
973
1002
  /**
974
1003
  * Data Collection ID to restore
975
1004
  * @maxLength 256
976
1005
  */
977
1006
  dataCollectionId?: string;
978
1007
  }
979
- export interface RestoreDataCollectionResponse {
1008
+ interface RestoreDataCollectionResponse {
980
1009
  /** Restored data collection */
981
1010
  dataCollection?: DataCollection;
982
1011
  }
983
- export interface CreateDataCollectionFieldRequest {
1012
+ interface CreateDataCollectionFieldRequest {
984
1013
  /**
985
1014
  * ID of data collection to update
986
1015
  * @maxLength 256
@@ -989,11 +1018,11 @@ export interface CreateDataCollectionFieldRequest {
989
1018
  /** field to create */
990
1019
  field: Field;
991
1020
  }
992
- export interface CreateDataCollectionFieldResponse {
1021
+ interface CreateDataCollectionFieldResponse {
993
1022
  /** updated data collection */
994
1023
  dataCollection?: DataCollection;
995
1024
  }
996
- export interface UpdateDataCollectionFieldRequest {
1025
+ interface UpdateDataCollectionFieldRequest {
997
1026
  /**
998
1027
  * ID of data collection to update
999
1028
  * @maxLength 256
@@ -1002,11 +1031,11 @@ export interface UpdateDataCollectionFieldRequest {
1002
1031
  /** Field to update */
1003
1032
  field: Field;
1004
1033
  }
1005
- export interface UpdateDataCollectionFieldResponse {
1034
+ interface UpdateDataCollectionFieldResponse {
1006
1035
  /** updated data collection */
1007
1036
  dataCollection?: DataCollection;
1008
1037
  }
1009
- export interface DeleteDataCollectionFieldRequest {
1038
+ interface DeleteDataCollectionFieldRequest {
1010
1039
  /**
1011
1040
  * ID of data collection to update
1012
1041
  * @maxLength 256
@@ -1018,11 +1047,11 @@ export interface DeleteDataCollectionFieldRequest {
1018
1047
  */
1019
1048
  fieldKey: string;
1020
1049
  }
1021
- export interface DeleteDataCollectionFieldResponse {
1050
+ interface DeleteDataCollectionFieldResponse {
1022
1051
  /** updated data collection */
1023
1052
  dataCollection?: DataCollection;
1024
1053
  }
1025
- export interface UpdateDataPermissionsRequest {
1054
+ interface UpdateDataPermissionsRequest {
1026
1055
  /**
1027
1056
  * ID of data collections to update
1028
1057
  * @maxLength 256
@@ -1031,11 +1060,11 @@ export interface UpdateDataPermissionsRequest {
1031
1060
  /** Data permissions to set */
1032
1061
  dataPermissions?: DataPermissions;
1033
1062
  }
1034
- export interface UpdateDataPermissionsResponse {
1063
+ interface UpdateDataPermissionsResponse {
1035
1064
  /** Updated data collection */
1036
1065
  dataCollection?: DataCollection;
1037
1066
  }
1038
- export interface BulkGetDataCollectionsPageBySnapshotsRequest {
1067
+ interface BulkGetDataCollectionsPageBySnapshotsRequest {
1039
1068
  /**
1040
1069
  * Ids of schema snapshot
1041
1070
  * @format GUID
@@ -1046,13 +1075,13 @@ export interface BulkGetDataCollectionsPageBySnapshotsRequest {
1046
1075
  /** Pagination information. */
1047
1076
  paging?: Paging;
1048
1077
  }
1049
- export interface BulkGetDataCollectionsPageBySnapshotsResponse {
1078
+ interface BulkGetDataCollectionsPageBySnapshotsResponse {
1050
1079
  /** List of snapshot collection map */
1051
1080
  snapshotCollections?: SnapshotCollection[];
1052
1081
  /** Paging information. */
1053
1082
  pagingMetadata?: PagingMetadataV2;
1054
1083
  }
1055
- export interface SnapshotCollection {
1084
+ interface SnapshotCollection {
1056
1085
  /**
1057
1086
  * snapshot to which collection belongs
1058
1087
  * @format GUID
@@ -1067,7 +1096,7 @@ export interface SnapshotCollection {
1067
1096
  indexes?: Index[];
1068
1097
  }
1069
1098
  /** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
1070
- export interface Index {
1099
+ interface Index {
1071
1100
  /**
1072
1101
  * Name of the index.
1073
1102
  * @minLength 1
@@ -1112,13 +1141,13 @@ export interface Index {
1112
1141
  * Order determines how values are ordered in the index. This is important when
1113
1142
  * ordering and/or range querying by indexed fields.
1114
1143
  */
1115
- export declare enum Order {
1144
+ declare enum Order {
1116
1145
  ASC = "ASC",
1117
1146
  DESC = "DESC"
1118
1147
  }
1119
1148
  /** @enumType */
1120
- export type OrderWithLiterals = Order | 'ASC' | 'DESC';
1121
- export interface IndexField {
1149
+ type OrderWithLiterals = Order | 'ASC' | 'DESC';
1150
+ interface IndexField {
1122
1151
  /**
1123
1152
  * Path of the field to index. For example: `title` or `options.price`.
1124
1153
  * @minLength 1
@@ -1132,7 +1161,7 @@ export interface IndexField {
1132
1161
  */
1133
1162
  order?: OrderWithLiterals;
1134
1163
  }
1135
- export declare enum IndexStatus {
1164
+ declare enum IndexStatus {
1136
1165
  /** Place holder. Never returned by the service. */
1137
1166
  UNKNOWN = "UNKNOWN",
1138
1167
  /** Index creation is in progress. */
@@ -1149,8 +1178,8 @@ export declare enum IndexStatus {
1149
1178
  INVALID = "INVALID"
1150
1179
  }
1151
1180
  /** @enumType */
1152
- export type IndexStatusWithLiterals = IndexStatus | 'UNKNOWN' | 'BUILDING' | 'ACTIVE' | 'DROPPING' | 'DROPPED' | 'FAILED' | 'INVALID';
1153
- export interface Failure {
1181
+ type IndexStatusWithLiterals = IndexStatus | 'UNKNOWN' | 'BUILDING' | 'ACTIVE' | 'DROPPING' | 'DROPPED' | 'FAILED' | 'INVALID';
1182
+ interface Failure {
1154
1183
  /**
1155
1184
  * Error code.
1156
1185
  * - `WDE0112`: Unknown error while building collection index.
@@ -1171,7 +1200,7 @@ export interface Failure {
1171
1200
  */
1172
1201
  itemId?: string | null;
1173
1202
  }
1174
- export declare enum IndexSource {
1203
+ declare enum IndexSource {
1175
1204
  /** Place holder. Never returned by the service. */
1176
1205
  UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
1177
1206
  /** Index is created by the system, present for all collections. */
@@ -1182,10 +1211,10 @@ export declare enum IndexSource {
1182
1211
  AUTO = "AUTO"
1183
1212
  }
1184
1213
  /** @enumType */
1185
- export type IndexSourceWithLiterals = IndexSource | 'UNKNOWN_INDEX_SOURCE' | 'SYSTEM' | 'USER' | 'AUTO';
1186
- export interface CreateDataCollectionsSnapshotRequest {
1214
+ type IndexSourceWithLiterals = IndexSource | 'UNKNOWN_INDEX_SOURCE' | 'SYSTEM' | 'USER' | 'AUTO';
1215
+ interface CreateDataCollectionsSnapshotRequest {
1187
1216
  }
1188
- export interface CreateDataCollectionsSnapshotResponse {
1217
+ interface CreateDataCollectionsSnapshotResponse {
1189
1218
  /**
1190
1219
  * created snapshot ID
1191
1220
  * @format GUID
@@ -1194,7 +1223,7 @@ export interface CreateDataCollectionsSnapshotResponse {
1194
1223
  /** data collections in snapshot */
1195
1224
  snapshotCollections?: DataCollection[];
1196
1225
  }
1197
- export interface RestoreDataCollectionsFromSnapshotRequest {
1226
+ interface RestoreDataCollectionsFromSnapshotRequest {
1198
1227
  /**
1199
1228
  * snapshot ID to restore
1200
1229
  * @format GUID
@@ -1215,7 +1244,7 @@ export interface RestoreDataCollectionsFromSnapshotRequest {
1215
1244
  */
1216
1245
  restorationCollections?: RestorationCollection[];
1217
1246
  }
1218
- export interface Destination {
1247
+ interface Destination {
1219
1248
  /**
1220
1249
  * Collection id.
1221
1250
  * @minLength 1
@@ -1228,7 +1257,7 @@ export interface Destination {
1228
1257
  */
1229
1258
  displayName?: string | null;
1230
1259
  }
1231
- export interface RestorationCollection {
1260
+ interface RestorationCollection {
1232
1261
  /**
1233
1262
  * Collection ID to restore
1234
1263
  * @minLength 1
@@ -1241,20 +1270,20 @@ export interface RestorationCollection {
1241
1270
  */
1242
1271
  destination?: Destination;
1243
1272
  }
1244
- export interface RestoreDataCollectionsFromSnapshotResponse {
1273
+ interface RestoreDataCollectionsFromSnapshotResponse {
1245
1274
  /** restored collections */
1246
1275
  restoredCollections?: DataCollection[];
1247
1276
  }
1248
- export interface DeleteDataCollectionsSnapshotRequest {
1277
+ interface DeleteDataCollectionsSnapshotRequest {
1249
1278
  /**
1250
1279
  * snapshot ID to delete
1251
1280
  * @format GUID
1252
1281
  */
1253
1282
  snapshotId?: string;
1254
1283
  }
1255
- export interface DeleteDataCollectionsSnapshotResponse {
1284
+ interface DeleteDataCollectionsSnapshotResponse {
1256
1285
  }
1257
- export interface CreateMigratedCollectionsSnapshotRequest {
1286
+ interface CreateMigratedCollectionsSnapshotRequest {
1258
1287
  /** @format GUID */
1259
1288
  existingSnapshotId?: string;
1260
1289
  /** @maxLength 255 */
@@ -1262,17 +1291,17 @@ export interface CreateMigratedCollectionsSnapshotRequest {
1262
1291
  /** @maxLength 255 */
1263
1292
  existingNamespace?: string;
1264
1293
  }
1265
- export interface CreateMigratedCollectionsSnapshotResponse {
1294
+ interface CreateMigratedCollectionsSnapshotResponse {
1266
1295
  /** @format GUID */
1267
1296
  snapshotId?: string;
1268
1297
  }
1269
- export interface DomainEvent extends DomainEventBodyOneOf {
1298
+ interface DomainEvent extends DomainEventBodyOneOf {
1270
1299
  createdEvent?: EntityCreatedEvent;
1271
1300
  updatedEvent?: EntityUpdatedEvent;
1272
1301
  deletedEvent?: EntityDeletedEvent;
1273
1302
  actionEvent?: ActionEvent;
1274
1303
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1275
- id?: string;
1304
+ _id?: string;
1276
1305
  /**
1277
1306
  * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1278
1307
  * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
@@ -1301,36 +1330,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
1301
1330
  entityEventSequence?: string | null;
1302
1331
  }
1303
1332
  /** @oneof */
1304
- export interface DomainEventBodyOneOf {
1333
+ interface DomainEventBodyOneOf {
1305
1334
  createdEvent?: EntityCreatedEvent;
1306
1335
  updatedEvent?: EntityUpdatedEvent;
1307
1336
  deletedEvent?: EntityDeletedEvent;
1308
1337
  actionEvent?: ActionEvent;
1309
1338
  }
1310
- export interface EntityCreatedEvent {
1311
- entityAsJson?: string;
1312
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1313
- restoreInfo?: RestoreInfo;
1339
+ interface EntityCreatedEvent {
1340
+ entity?: string;
1314
1341
  }
1315
- export interface RestoreInfo {
1342
+ interface RestoreInfo {
1316
1343
  deletedDate?: Date | null;
1317
1344
  }
1318
- export interface EntityUpdatedEvent {
1345
+ interface EntityUpdatedEvent {
1319
1346
  /**
1320
1347
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1321
1348
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1322
1349
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1323
1350
  */
1324
- currentEntityAsJson?: string;
1351
+ currentEntity?: string;
1325
1352
  }
1326
- export interface EntityDeletedEvent {
1353
+ interface EntityDeletedEvent {
1327
1354
  /** Entity that was deleted. */
1328
- deletedEntityAsJson?: string | null;
1355
+ deletedEntity?: string | null;
1329
1356
  }
1330
- export interface ActionEvent {
1331
- bodyAsJson?: string;
1357
+ interface ActionEvent {
1358
+ body?: string;
1332
1359
  }
1333
- export interface MessageEnvelope {
1360
+ interface MessageEnvelope {
1334
1361
  /**
1335
1362
  * App instance ID.
1336
1363
  * @format GUID
@@ -1346,7 +1373,7 @@ export interface MessageEnvelope {
1346
1373
  /** Stringify payload. */
1347
1374
  data?: string;
1348
1375
  }
1349
- export interface IdentificationData extends IdentificationDataIdOneOf {
1376
+ interface IdentificationData extends IdentificationDataIdOneOf {
1350
1377
  /**
1351
1378
  * ID of a site visitor that has not logged in to the site.
1352
1379
  * @format GUID
@@ -1371,7 +1398,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
1371
1398
  identityType?: WebhookIdentityTypeWithLiterals;
1372
1399
  }
1373
1400
  /** @oneof */
1374
- export interface IdentificationDataIdOneOf {
1401
+ interface IdentificationDataIdOneOf {
1375
1402
  /**
1376
1403
  * ID of a site visitor that has not logged in to the site.
1377
1404
  * @format GUID
@@ -1393,7 +1420,7 @@ export interface IdentificationDataIdOneOf {
1393
1420
  */
1394
1421
  appId?: string;
1395
1422
  }
1396
- export declare enum WebhookIdentityType {
1423
+ declare enum WebhookIdentityType {
1397
1424
  UNKNOWN = "UNKNOWN",
1398
1425
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1399
1426
  MEMBER = "MEMBER",
@@ -1401,4 +1428,63 @@ export declare enum WebhookIdentityType {
1401
1428
  APP = "APP"
1402
1429
  }
1403
1430
  /** @enumType */
1404
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1431
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1432
+ interface GetDataCollectionOptions {
1433
+ /**
1434
+ * Whether to retrieve data from the primary database instance.
1435
+ * This decreases performance but ensures data retrieved is up to date even immediately after an update.
1436
+ * Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).
1437
+ *
1438
+ * Default: `false`
1439
+ */
1440
+ consistentRead?: boolean;
1441
+ /**
1442
+ * List of specific field names to return, if empty all fields are returned.
1443
+ * Affects all returned collections
1444
+ * @maxSize 100
1445
+ * @maxLength 1000
1446
+ */
1447
+ fields?: string[];
1448
+ }
1449
+ interface ListDataCollectionsOptions {
1450
+ /**
1451
+ * Defines how collections in the response are sorted.
1452
+ *
1453
+ * Default: Ordered by ID in ascending order.
1454
+ */
1455
+ sort?: Sorting;
1456
+ /** Pagination information. */
1457
+ paging?: Paging;
1458
+ /**
1459
+ * Whether to retrieve data from the primary database instance.
1460
+ * This decreases performance but ensures data retrieved is up to date even immediately after an update.
1461
+ * Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).
1462
+ *
1463
+ * Default: `false`
1464
+ */
1465
+ consistentRead?: boolean;
1466
+ /**
1467
+ * List of specific field names to return, if empty all fields are returned.
1468
+ * Affects all returned collections
1469
+ * @maxSize 100
1470
+ * @maxLength 128
1471
+ */
1472
+ fields?: string[];
1473
+ }
1474
+ interface CreateDataCollectionFieldOptions {
1475
+ /** field to create */
1476
+ field: Field;
1477
+ }
1478
+ interface UpdateDataCollectionFieldOptions {
1479
+ /** Field to update */
1480
+ field: Field;
1481
+ }
1482
+ interface DeleteDataCollectionFieldOptions {
1483
+ /**
1484
+ * Field ID to delete
1485
+ * @maxLength 1000
1486
+ */
1487
+ fieldKey: string;
1488
+ }
1489
+
1490
+ export { type FieldPluginOptionsOneOf as $, AccessLevel as A, type UrlizedOnlyPattern as B, type CreateDataCollectionFieldOptions as C, type DataCollection as D, type Calculator as E, FieldPluginType as F, type GetDataCollectionOptions as G, type CalculatorPatternOneOf as H, IndexStatus as I, type Reference as J, type _Array as K, type ListDataCollectionsOptions as L, type MultiReference as M, type PageLink as N, Order as O, PluginType as P, QueryOperator as Q, type RestoreDataCollectionResponse as R, Status as S, Type as T, type UpdateDataCollectionFieldOptions as U, type NumberRange as V, WebhookIdentityType as W, type StringLengthRange as X, type ArraySizeRange as Y, type FieldPlugin as Z, type _Object as _, type ListDataCollectionsResponse as a, type IdentificationDataIdOneOf as a$, type CmsOptions as a0, type Permissions as a1, type Plugin as a2, type PluginOptionsOneOf as a3, type SiteSort as a4, type PublishPluginOptions as a5, type SingleItemPluginOptions as a6, type UrlizedPluginOptions as a7, type MultilingualOptions as a8, type PageLinkPluginOptions as a9, type UpdateDataPermissionsRequest as aA, type UpdateDataPermissionsResponse as aB, type BulkGetDataCollectionsPageBySnapshotsRequest as aC, type BulkGetDataCollectionsPageBySnapshotsResponse as aD, type SnapshotCollection as aE, type Index as aF, type IndexField as aG, type Failure as aH, type CreateDataCollectionsSnapshotRequest as aI, type CreateDataCollectionsSnapshotResponse as aJ, type RestoreDataCollectionsFromSnapshotRequest as aK, type Destination as aL, type RestorationCollection as aM, type RestoreDataCollectionsFromSnapshotResponse as aN, type DeleteDataCollectionsSnapshotRequest as aO, type DeleteDataCollectionsSnapshotResponse as aP, type CreateMigratedCollectionsSnapshotRequest as aQ, type CreateMigratedCollectionsSnapshotResponse as aR, type DomainEvent as aS, type DomainEventBodyOneOf as aT, type EntityCreatedEvent as aU, type RestoreInfo as aV, type EntityUpdatedEvent as aW, type EntityDeletedEvent as aX, type ActionEvent as aY, type MessageEnvelope as aZ, type IdentificationData as a_, type PluginCmsOptions as aa, type DataPermissions as ab, type AllowedDataPermissions as ac, type DataCollectionClonedEvent as ad, type DataCollectionChangedEvent as ae, type FieldUpdate as af, type PluginUpdate as ag, type DataCollectionEvictedEvent as ah, type CreateDataCollectionRequest as ai, type CreateDataCollectionResponse as aj, type GetDataCollectionRequest as ak, type GetDataCollectionResponse as al, type ListDataCollectionsRequest as am, type Sorting as an, type Paging as ao, type PagingMetadataV2 as ap, type BulkGetDataCollectionsRequest as aq, type BulkGetDataCollectionsResponse as ar, type UpdateDataCollectionRequest as as, type UpdateDataCollectionResponse as at, type DeleteDataCollectionRequest as au, type DeleteDataCollectionResponse as av, type RestoreDataCollectionRequest as aw, type CreateDataCollectionFieldRequest as ax, type UpdateDataCollectionFieldRequest as ay, type DeleteDataCollectionFieldRequest as az, type CreateDataCollectionFieldResponse as b, type UpdateDataCollectionFieldResponse as c, type DeleteDataCollectionFieldOptions as d, type DeleteDataCollectionFieldResponse as e, CollectionType as f, Direction as g, DataOperation as h, CollectionOperation as i, Role as j, Format as k, PagingMode as l, Segment as m, SortOrder as n, IndexSource as o, type Sort as p, type CollectionCapabilities as q, type IndexLimits as r, type IndexQuotaLimits as s, type Field as t, type FieldRangeValidationsOneOf as u, type TypeMetadata as v, type TypeMetadataMetadataOneOf as w, type FieldCapabilities as x, type ObjectField as y, type FieldsPattern as z };