@wix/auto_sdk_data_collections 1.0.0 → 1.0.2

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 (49) hide show
  1. package/build/cjs/src/data-v2-data-collection-collections.context.d.ts +1 -1
  2. package/build/cjs/src/data-v2-data-collection-collections.context.js +2 -1
  3. package/build/cjs/src/data-v2-data-collection-collections.context.js.map +1 -1
  4. package/build/cjs/src/data-v2-data-collection-collections.public.d.ts +1 -1
  5. package/build/cjs/src/data-v2-data-collection-collections.public.js +2 -1
  6. package/build/cjs/src/data-v2-data-collection-collections.public.js.map +1 -1
  7. package/build/cjs/src/data-v2-data-collection-collections.types.d.ts +306 -65
  8. package/build/cjs/src/data-v2-data-collection-collections.types.js +10 -1
  9. package/build/cjs/src/data-v2-data-collection-collections.types.js.map +1 -1
  10. package/build/cjs/src/data-v2-data-collection-collections.universal.d.ts +314 -66
  11. package/build/cjs/src/data-v2-data-collection-collections.universal.js +10 -1
  12. package/build/cjs/src/data-v2-data-collection-collections.universal.js.map +1 -1
  13. package/build/es/src/data-v2-data-collection-collections.context.d.ts +1 -1
  14. package/build/es/src/data-v2-data-collection-collections.context.js +1 -1
  15. package/build/es/src/data-v2-data-collection-collections.context.js.map +1 -1
  16. package/build/es/src/data-v2-data-collection-collections.public.d.ts +1 -1
  17. package/build/es/src/data-v2-data-collection-collections.public.js +1 -1
  18. package/build/es/src/data-v2-data-collection-collections.public.js.map +1 -1
  19. package/build/es/src/data-v2-data-collection-collections.types.d.ts +306 -65
  20. package/build/es/src/data-v2-data-collection-collections.types.js +9 -0
  21. package/build/es/src/data-v2-data-collection-collections.types.js.map +1 -1
  22. package/build/es/src/data-v2-data-collection-collections.universal.d.ts +314 -66
  23. package/build/es/src/data-v2-data-collection-collections.universal.js +9 -0
  24. package/build/es/src/data-v2-data-collection-collections.universal.js.map +1 -1
  25. package/build/internal/cjs/src/data-v2-data-collection-collections.context.d.ts +1 -1
  26. package/build/internal/cjs/src/data-v2-data-collection-collections.context.js +2 -1
  27. package/build/internal/cjs/src/data-v2-data-collection-collections.context.js.map +1 -1
  28. package/build/internal/cjs/src/data-v2-data-collection-collections.public.d.ts +1 -1
  29. package/build/internal/cjs/src/data-v2-data-collection-collections.public.js +2 -1
  30. package/build/internal/cjs/src/data-v2-data-collection-collections.public.js.map +1 -1
  31. package/build/internal/cjs/src/data-v2-data-collection-collections.types.d.ts +306 -65
  32. package/build/internal/cjs/src/data-v2-data-collection-collections.types.js +10 -1
  33. package/build/internal/cjs/src/data-v2-data-collection-collections.types.js.map +1 -1
  34. package/build/internal/cjs/src/data-v2-data-collection-collections.universal.d.ts +314 -66
  35. package/build/internal/cjs/src/data-v2-data-collection-collections.universal.js +10 -1
  36. package/build/internal/cjs/src/data-v2-data-collection-collections.universal.js.map +1 -1
  37. package/build/internal/es/src/data-v2-data-collection-collections.context.d.ts +1 -1
  38. package/build/internal/es/src/data-v2-data-collection-collections.context.js +1 -1
  39. package/build/internal/es/src/data-v2-data-collection-collections.context.js.map +1 -1
  40. package/build/internal/es/src/data-v2-data-collection-collections.public.d.ts +1 -1
  41. package/build/internal/es/src/data-v2-data-collection-collections.public.js +1 -1
  42. package/build/internal/es/src/data-v2-data-collection-collections.public.js.map +1 -1
  43. package/build/internal/es/src/data-v2-data-collection-collections.types.d.ts +306 -65
  44. package/build/internal/es/src/data-v2-data-collection-collections.types.js +9 -0
  45. package/build/internal/es/src/data-v2-data-collection-collections.types.js.map +1 -1
  46. package/build/internal/es/src/data-v2-data-collection-collections.universal.d.ts +314 -66
  47. package/build/internal/es/src/data-v2-data-collection-collections.universal.js +9 -0
  48. package/build/internal/es/src/data-v2-data-collection-collections.universal.js.map +1 -1
  49. package/package.json +2 -2
@@ -1,6 +1,10 @@
1
1
  /** A data collection determines the structure of data to be stored in a database. */
2
2
  export interface DataCollection {
3
- /** Collection ID. For example, `my-first-collection`. May include a namespace. */
3
+ /**
4
+ * Collection ID. For example, `my-first-collection`. May include a namespace.
5
+ * @immutable
6
+ * @maxLength 256
7
+ */
4
8
  _id?: string;
5
9
  /**
6
10
  * Collection type. Indicates how the collection was created and how it is stored.
@@ -9,6 +13,7 @@ export interface DataCollection {
9
13
  collectionType?: CollectionType;
10
14
  /**
11
15
  * ID of the app that defined this collection. For collections defined by Wix users, this value is null.
16
+ * @format GUID
12
17
  * @readonly
13
18
  */
14
19
  ownerAppId?: string | null;
@@ -19,7 +24,10 @@ export interface DataCollection {
19
24
  * @readonly
20
25
  */
21
26
  maxPageSize?: number | null;
22
- /** Collection's display name as shown in the CMS. For example, `My First Collection`. */
27
+ /**
28
+ * Collection's display name as shown in the CMS. For example, `My First Collection`.
29
+ * @maxLength 1000
30
+ */
23
31
  displayName?: string | null;
24
32
  /**
25
33
  * Default item sorting order when a query doesn't specify one.
@@ -30,16 +38,23 @@ export interface DataCollection {
30
38
  * UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings.
31
39
  * Empty for all data collections not owned by Wix apps.
32
40
  * @readonly
41
+ * @maxLength 1000
33
42
  */
34
43
  displayNamespace?: string | null;
35
- /** Field whose value the CMS displays to represent the collection item when referenced in a different collection. */
44
+ /**
45
+ * Field whose value the CMS displays to represent the collection item when referenced in a different collection.
46
+ * @maxLength 1000
47
+ */
36
48
  displayField?: string | null;
37
49
  /**
38
50
  * Capabilities the collection supports.
39
51
  * @readonly
40
52
  */
41
53
  capabilities?: CollectionCapabilities;
42
- /** Collection's field structure. */
54
+ /**
55
+ * Collection's field structure.
56
+ * @maxSize 1000
57
+ */
43
58
  fields?: Field[];
44
59
  /** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */
45
60
  permissions?: Permissions;
@@ -48,11 +63,15 @@ export interface DataCollection {
48
63
  * @readonly
49
64
  */
50
65
  revision?: string | null;
51
- /** Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality. */
66
+ /**
67
+ * Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality.
68
+ * @maxSize 100
69
+ */
52
70
  plugins?: Plugin[];
53
71
  /**
54
72
  * Paging modes the collection supports. In native collections, offset-based paging is supported by default.
55
73
  * @readonly
74
+ * @maxSize 2
56
75
  */
57
76
  pagingModes?: PagingMode[];
58
77
  /**
@@ -88,7 +107,10 @@ export declare enum CollectionType {
88
107
  EXTERNAL = "EXTERNAL"
89
108
  }
90
109
  export interface Sort {
91
- /** Field to sort by. */
110
+ /**
111
+ * Field to sort by.
112
+ * @maxLength 1000
113
+ */
92
114
  fieldKey?: string;
93
115
  /**
94
116
  * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
@@ -106,9 +128,13 @@ export interface CollectionCapabilities {
106
128
  * Data operations the collection supports. The listed operations can be performed on data the collection contains.
107
129
  *
108
130
  * > **Note**: The `PATCH` and `BULK_PATCH` oeprations aren't currently supported.
131
+ * @maxSize 100
109
132
  */
110
133
  dataOperations?: DataOperation[];
111
- /** Collection operations supported. The listed operations can be performed on the collection itself. */
134
+ /**
135
+ * Collection operations supported. The listed operations can be performed on the collection itself.
136
+ * @maxSize 100
137
+ */
112
138
  collectionOperations?: CollectionOperation[];
113
139
  /** Maximum number of indexes for the collection. */
114
140
  indexLimits?: IndexLimits;
@@ -157,9 +183,15 @@ export interface Field extends FieldRangeValidationsOneOf {
157
183
  stringLengthRange?: StringLengthRange;
158
184
  /** Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`. */
159
185
  arraySizeRange?: ArraySizeRange;
160
- /** Unique identifier for the field. For example, `firstName`. */
186
+ /**
187
+ * Unique identifier for the field. For example, `firstName`.
188
+ * @maxLength 1000
189
+ */
161
190
  key?: string;
162
- /** Field's display name when displayed in the CMS. For example, `First Name`. */
191
+ /**
192
+ * Field's display name when displayed in the CMS. For example, `First Name`.
193
+ * @maxLength 1000
194
+ */
163
195
  displayName?: string | null;
164
196
  /** Field's data type. */
165
197
  type?: Type;
@@ -177,7 +209,10 @@ export interface Field extends FieldRangeValidationsOneOf {
177
209
  capabilities?: FieldCapabilities;
178
210
  /** Whether the field is encrypted. */
179
211
  encrypted?: boolean;
180
- /** Field description. */
212
+ /**
213
+ * Field description.
214
+ * @maxLength 16000
215
+ */
181
216
  description?: string | null;
182
217
  /**
183
218
  * Whether the field is read-only. A read-only field can't be changed.
@@ -197,7 +232,10 @@ export interface Field extends FieldRangeValidationsOneOf {
197
232
  * Default: `false`
198
233
  */
199
234
  required?: boolean | null;
200
- /** Additional optional plugins for the field. */
235
+ /**
236
+ * Additional optional plugins for the field.
237
+ * @maxSize 100
238
+ */
201
239
  plugins?: FieldPlugin[];
202
240
  }
203
241
  /** @oneof */
@@ -282,7 +320,10 @@ export interface FieldCapabilities {
282
320
  * Default: `false`
283
321
  */
284
322
  sortable?: boolean;
285
- /** Query operators that can be used for this field. */
323
+ /**
324
+ * Query operators that can be used for this field.
325
+ * @maxSize 100
326
+ */
286
327
  queryOperators?: QueryOperator[];
287
328
  }
288
329
  export declare enum QueryOperator {
@@ -301,9 +342,15 @@ export declare enum QueryOperator {
301
342
  URLIZED = "URLIZED"
302
343
  }
303
344
  export interface ObjectField {
304
- /** Field ID. */
345
+ /**
346
+ * Field ID.
347
+ * @maxLength 1000
348
+ */
305
349
  key?: string;
306
- /** Display name for the field. */
350
+ /**
351
+ * Display name for the field.
352
+ * @maxLength 1000
353
+ */
307
354
  displayName?: string | null;
308
355
  /** Field type. */
309
356
  type?: Type;
@@ -316,10 +363,12 @@ export interface ObjectField {
316
363
  capabilities?: FieldCapabilities;
317
364
  }
318
365
  export interface FieldsPattern {
366
+ /** @maxLength 1000 */
319
367
  pattern?: string;
320
368
  lowercase?: boolean;
321
369
  }
322
370
  export interface UrlizedOnlyPattern {
371
+ /** @maxLength 1000 */
323
372
  pattern?: string;
324
373
  }
325
374
  export interface Calculator extends CalculatorPatternOneOf {
@@ -336,19 +385,34 @@ export interface CalculatorPatternOneOf {
336
385
  urlizedOnlyPattern?: UrlizedOnlyPattern;
337
386
  }
338
387
  export interface Reference {
339
- /** Referenced collection ID. */
388
+ /**
389
+ * Referenced collection ID.
390
+ * @maxLength 256
391
+ */
340
392
  referencedCollectionId?: string;
341
393
  }
342
394
  export interface MultiReference {
343
- /** Referenced collection ID. */
395
+ /**
396
+ * Referenced collection ID.
397
+ * @maxLength 256
398
+ */
344
399
  referencedCollectionId?: string;
345
- /** Referencing field ID. */
400
+ /**
401
+ * Referencing field ID.
402
+ * @maxLength 1000
403
+ */
346
404
  referencingFieldKey?: string;
347
- /** Display name in the CMS for the referenced data. */
405
+ /**
406
+ * Display name in the CMS for the referenced data.
407
+ * @maxLength 1000
408
+ */
348
409
  referencingDisplayName?: string;
349
410
  }
350
411
  export interface _Object {
351
- /** Fields within the object. */
412
+ /**
413
+ * Fields within the object.
414
+ * @maxSize 1000
415
+ */
352
416
  fields?: ObjectField[];
353
417
  }
354
418
  export interface _Array {
@@ -359,7 +423,10 @@ export interface _Array {
359
423
  }
360
424
  export interface PageLink {
361
425
  calculator?: Calculator;
362
- /** Defines reference to router pattern in the site document. */
426
+ /**
427
+ * Defines reference to router pattern in the site document.
428
+ * @maxLength 1000
429
+ */
363
430
  linkedRouterPage?: string | null;
364
431
  }
365
432
  export interface NumberRange {
@@ -504,7 +571,10 @@ export declare enum Format {
504
571
  }
505
572
  /** if CMS-defined sort is enabled and should be used in site */
506
573
  export interface SiteSort {
507
- /** Field and order for the site sort. */
574
+ /**
575
+ * Field and order for the site sort.
576
+ * @maxSize 100
577
+ */
508
578
  sort?: Sort[];
509
579
  }
510
580
  export declare enum PluginType {
@@ -532,7 +602,10 @@ export interface PublishPluginOptions {
532
602
  defaultStatus?: Status;
533
603
  }
534
604
  export interface SingleItemPluginOptions {
535
- /** ID of the single item in this collection. If you insert or update an item, its ID value is always changed to this. */
605
+ /**
606
+ * ID of the single item in this collection. If you insert or update an item, its ID value is always changed to this.
607
+ * @maxLength 16000
608
+ */
536
609
  singleItemId?: string;
537
610
  }
538
611
  export interface UrlizedPluginOptions {
@@ -540,7 +613,11 @@ export interface UrlizedPluginOptions {
540
613
  format?: Format;
541
614
  }
542
615
  export interface MultilingualOptions {
543
- /** IDs of fields to allow translation. */
616
+ /**
617
+ * IDs of fields to allow translation.
618
+ * @maxSize 1000
619
+ * @maxLength 1000
620
+ */
544
621
  translatableFieldKeys?: string[];
545
622
  }
546
623
  export interface PageLinkPluginOptions {
@@ -597,23 +674,47 @@ export interface AllowedDataPermissions {
597
674
  itemRemove?: boolean;
598
675
  }
599
676
  export interface DataCollectionClonedEvent {
600
- /** Instance ID of the collection from which the data is cloned. */
677
+ /**
678
+ * Instance ID of the collection from which the data is cloned.
679
+ * @format GUID
680
+ */
601
681
  originInstanceId?: string;
602
- /** ID of the collection from which the data is cloned. */
682
+ /**
683
+ * ID of the collection from which the data is cloned.
684
+ * @maxLength 256
685
+ */
603
686
  originId?: string;
604
687
  }
605
688
  export interface DataCollectionChangedEvent {
606
- /** list of new fields */
689
+ /**
690
+ * list of new fields
691
+ * @maxSize 1000
692
+ */
607
693
  fieldsAdded?: Field[];
608
- /** list of changed fields */
694
+ /**
695
+ * list of changed fields
696
+ * @maxSize 1000
697
+ */
609
698
  fieldsUpdated?: FieldUpdate[];
610
- /** list of removed fields */
699
+ /**
700
+ * list of removed fields
701
+ * @maxSize 1000
702
+ */
611
703
  fieldsRemoved?: Field[];
612
- /** list of new plugins */
704
+ /**
705
+ * list of new plugins
706
+ * @maxSize 100
707
+ */
613
708
  pluginsAdded?: Plugin[];
614
- /** list of changed plugins */
709
+ /**
710
+ * list of changed plugins
711
+ * @maxSize 100
712
+ */
615
713
  pluginsUpdated?: PluginUpdate[];
616
- /** list of removed plugins */
714
+ /**
715
+ * list of removed plugins
716
+ * @maxSize 100
717
+ */
617
718
  pluginsRemoved?: Plugin[];
618
719
  }
619
720
  export interface FieldUpdate {
@@ -629,7 +730,11 @@ export interface PluginUpdate {
629
730
  current?: Plugin;
630
731
  }
631
732
  export interface DataCollectionEvictedEvent {
632
- /** ID of the collection that was permanently deleted. */
733
+ /**
734
+ * ID of the collection that was permanently deleted.
735
+ * @minLength 1
736
+ * @maxLength 1000
737
+ */
633
738
  _id?: string;
634
739
  }
635
740
  export interface CreateDataCollectionRequest {
@@ -641,7 +746,10 @@ export interface CreateDataCollectionResponse {
641
746
  collection?: DataCollection;
642
747
  }
643
748
  export interface GetDataCollectionRequest {
644
- /** ID of the collection to retrieve. */
749
+ /**
750
+ * ID of the collection to retrieve.
751
+ * @maxLength 256
752
+ */
645
753
  dataCollectionId: string;
646
754
  /**
647
755
  * Whether to retrieve data from the primary database instance.
@@ -659,6 +767,8 @@ export interface GetDataCollectionRequest {
659
767
  /**
660
768
  * List of specific field names to return, if empty all fields are returned.
661
769
  * Affects all returned collections
770
+ * @maxSize 100
771
+ * @maxLength 1000
662
772
  */
663
773
  fields?: string[];
664
774
  }
@@ -701,11 +811,16 @@ export interface ListDataCollectionsRequest {
701
811
  /**
702
812
  * List of specific field names to return, if empty all fields are returned.
703
813
  * Affects all returned collections
814
+ * @maxSize 100
815
+ * @maxLength 128
704
816
  */
705
817
  fields?: string[];
706
818
  }
707
819
  export interface Sorting {
708
- /** Name of the field to sort by. */
820
+ /**
821
+ * Name of the field to sort by.
822
+ * @maxLength 1000
823
+ */
709
824
  fieldName?: string;
710
825
  /** Sort order. */
711
826
  order?: SortOrder;
@@ -737,7 +852,12 @@ export interface PagingMetadataV2 {
737
852
  tooManyToCount?: boolean | null;
738
853
  }
739
854
  export interface BulkGetDataCollectionsRequest {
740
- /** IDs of the collections to retrieve. */
855
+ /**
856
+ * IDs of the collections to retrieve.
857
+ * @minSize 1
858
+ * @maxSize 100
859
+ * @maxLength 256
860
+ */
741
861
  dataCollectionIds?: string[];
742
862
  /**
743
863
  * Whether to include deleted collections.
@@ -769,6 +889,8 @@ export interface BulkGetDataCollectionsRequest {
769
889
  /**
770
890
  * List of specific field names to return, if empty all fields are returned.
771
891
  * Affects all returned collections
892
+ * @maxSize 100
893
+ * @maxLength 1000
772
894
  */
773
895
  fields?: string[];
774
896
  }
@@ -790,13 +912,19 @@ export interface UpdateDataCollectionResponse {
790
912
  collection?: DataCollection;
791
913
  }
792
914
  export interface DeleteDataCollectionRequest {
793
- /** ID of the collection to delete. */
915
+ /**
916
+ * ID of the collection to delete.
917
+ * @maxLength 256
918
+ */
794
919
  dataCollectionId: string;
795
920
  }
796
921
  export interface DeleteDataCollectionResponse {
797
922
  }
798
923
  export interface RestoreDataCollectionRequest {
799
- /** Data Collection ID to restore */
924
+ /**
925
+ * Data Collection ID to restore
926
+ * @maxLength 256
927
+ */
800
928
  dataCollectionId?: string;
801
929
  }
802
930
  export interface RestoreDataCollectionResponse {
@@ -804,7 +932,10 @@ export interface RestoreDataCollectionResponse {
804
932
  dataCollection?: DataCollection;
805
933
  }
806
934
  export interface CreateDataCollectionFieldRequest {
807
- /** ID of data collection to update */
935
+ /**
936
+ * ID of data collection to update
937
+ * @maxLength 256
938
+ */
808
939
  dataCollectionId: string;
809
940
  /** field to create */
810
941
  field: Field;
@@ -814,7 +945,10 @@ export interface CreateDataCollectionFieldResponse {
814
945
  dataCollection?: DataCollection;
815
946
  }
816
947
  export interface UpdateDataCollectionFieldRequest {
817
- /** ID of data collection to update */
948
+ /**
949
+ * ID of data collection to update
950
+ * @maxLength 256
951
+ */
818
952
  dataCollectionId: string;
819
953
  /** Field to update */
820
954
  field: Field;
@@ -824,9 +958,15 @@ export interface UpdateDataCollectionFieldResponse {
824
958
  dataCollection?: DataCollection;
825
959
  }
826
960
  export interface DeleteDataCollectionFieldRequest {
827
- /** ID of data collection to update */
961
+ /**
962
+ * ID of data collection to update
963
+ * @maxLength 256
964
+ */
828
965
  dataCollectionId: string;
829
- /** Field ID to delete */
966
+ /**
967
+ * Field ID to delete
968
+ * @maxLength 1000
969
+ */
830
970
  fieldKey: string;
831
971
  }
832
972
  export interface DeleteDataCollectionFieldResponse {
@@ -834,7 +974,10 @@ export interface DeleteDataCollectionFieldResponse {
834
974
  dataCollection?: DataCollection;
835
975
  }
836
976
  export interface UpdateDataPermissionsRequest {
837
- /** ID of data collections to update */
977
+ /**
978
+ * ID of data collections to update
979
+ * @maxLength 256
980
+ */
838
981
  dataCollectionId?: string;
839
982
  /** Data permissions to set */
840
983
  dataPermissions?: DataPermissions;
@@ -844,7 +987,12 @@ export interface UpdateDataPermissionsResponse {
844
987
  dataCollection?: DataCollection;
845
988
  }
846
989
  export interface BulkGetDataCollectionsPageBySnapshotsRequest {
847
- /** Ids of schema snapshot */
990
+ /**
991
+ * Ids of schema snapshot
992
+ * @format GUID
993
+ * @minSize 1
994
+ * @maxSize 1000
995
+ */
848
996
  snapshotIds?: string[];
849
997
  /** Pagination information. */
850
998
  paging?: Paging;
@@ -856,21 +1004,33 @@ export interface BulkGetDataCollectionsPageBySnapshotsResponse {
856
1004
  pagingMetadata?: PagingMetadataV2;
857
1005
  }
858
1006
  export interface SnapshotCollection {
859
- /** snapshot to which collection belongs */
1007
+ /**
1008
+ * snapshot to which collection belongs
1009
+ * @format GUID
1010
+ */
860
1011
  snapshotId?: string;
861
1012
  /** snapshot collection */
862
1013
  collection?: DataCollection;
863
- /** snapshot of collection indexes */
1014
+ /**
1015
+ * snapshot of collection indexes
1016
+ * @maxSize 100
1017
+ */
864
1018
  indexes?: Index[];
865
1019
  }
866
1020
  /** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
867
1021
  export interface Index {
868
- /** Name of the index. */
1022
+ /**
1023
+ * Name of the index.
1024
+ * @minLength 1
1025
+ * @maxLength 128
1026
+ */
869
1027
  name?: string;
870
1028
  /**
871
1029
  * Fields for which the index is defined.
872
1030
  *
873
1031
  * Max: 3 fields (for a unique index: 1 field)
1032
+ * @minSize 1
1033
+ * @maxSize 3
874
1034
  */
875
1035
  fields?: IndexField[];
876
1036
  /**
@@ -896,6 +1056,11 @@ export interface Index {
896
1056
  * Default: `false`
897
1057
  */
898
1058
  caseInsensitive?: boolean;
1059
+ /**
1060
+ * Specifies the origin of the index definition.
1061
+ * @readonly
1062
+ */
1063
+ source?: IndexSource;
899
1064
  }
900
1065
  /**
901
1066
  * Order determines how values are ordered in the index. This is important when
@@ -906,7 +1071,11 @@ export declare enum Order {
906
1071
  DESC = "DESC"
907
1072
  }
908
1073
  export interface IndexField {
909
- /** Path of the field to index. For example: `title` or `options.price`. */
1074
+ /**
1075
+ * Path of the field to index. For example: `title` or `options.price`.
1076
+ * @minLength 1
1077
+ * @maxLength 128
1078
+ */
910
1079
  path?: string;
911
1080
  /**
912
1081
  * Sort order for the index. Base on how the data is regularly queried.
@@ -937,45 +1106,80 @@ export interface Failure {
937
1106
  * - `WDE0112`: Unknown error while building collection index.
938
1107
  * - `WDE0113`: Duplicate key error while building collection index.
939
1108
  * - `WDE0114`: Document too large while building collection index.
1109
+ * @maxLength 7
940
1110
  */
941
1111
  code?: string;
942
- /** Description of the failure. */
1112
+ /**
1113
+ * Description of the failure.
1114
+ * @maxLength 1024
1115
+ */
943
1116
  description?: string;
944
1117
  /**
945
1118
  * ID of the data item that caused the failure.
946
1119
  * For example, if `unique` is `true`, the ID of an item containing a duplicate value.
1120
+ * @maxLength 16000
947
1121
  */
948
1122
  itemId?: string | null;
949
1123
  }
1124
+ export declare enum IndexSource {
1125
+ /** Place holder. Never returned by the service. */
1126
+ UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
1127
+ /** Index is created by the system, present for all collections. */
1128
+ SYSTEM = "SYSTEM",
1129
+ /** Index was created by a user via API or UI. */
1130
+ USER = "USER"
1131
+ }
950
1132
  export interface CreateDataCollectionsSnapshotRequest {
951
1133
  }
952
1134
  export interface CreateDataCollectionsSnapshotResponse {
953
- /** created snapshot ID */
1135
+ /**
1136
+ * created snapshot ID
1137
+ * @format GUID
1138
+ */
954
1139
  snapshotId?: string;
955
1140
  /** data collections in snapshot */
956
1141
  snapshotCollections?: DataCollection[];
957
1142
  }
958
1143
  export interface RestoreDataCollectionsFromSnapshotRequest {
959
- /** snapshot ID to restore */
1144
+ /**
1145
+ * snapshot ID to restore
1146
+ * @format GUID
1147
+ */
960
1148
  snapshotId?: string;
961
1149
  /**
962
1150
  * collection IDs to restore, if empty – all collections would be restored
1151
+ * @maxSize 1000
1152
+ * @maxLength 256
963
1153
  * @deprecated
964
1154
  * @replacedBy restoration_collections
965
1155
  * @targetRemovalDate 2025-12-31
966
1156
  */
967
1157
  dataCollectionIds?: string[];
968
- /** collection to restore, if empty – all collections would be restored */
1158
+ /**
1159
+ * collection to restore, if empty – all collections would be restored
1160
+ * @maxSize 1000
1161
+ */
969
1162
  restorationCollections?: RestorationCollection[];
970
1163
  }
971
1164
  export interface Destination {
972
- /** Collection id. */
1165
+ /**
1166
+ * Collection id.
1167
+ * @minLength 1
1168
+ * @maxLength 1000
1169
+ */
973
1170
  dataCollectionId?: string;
974
- /** Display name. When not specified value is taken from the snapshot. */
1171
+ /**
1172
+ * Display name. When not specified value is taken from the snapshot.
1173
+ * @maxLength 1000
1174
+ */
975
1175
  displayName?: string | null;
976
1176
  }
977
1177
  export interface RestorationCollection {
978
- /** Collection ID to restore */
1178
+ /**
1179
+ * Collection ID to restore
1180
+ * @minLength 1
1181
+ * @maxLength 1000
1182
+ */
979
1183
  dataCollectionId?: string;
980
1184
  /**
981
1185
  * Destination where to restore the collection.
@@ -988,17 +1192,24 @@ export interface RestoreDataCollectionsFromSnapshotResponse {
988
1192
  restoredCollections?: DataCollection[];
989
1193
  }
990
1194
  export interface DeleteDataCollectionsSnapshotRequest {
991
- /** snapshot ID to delete */
1195
+ /**
1196
+ * snapshot ID to delete
1197
+ * @format GUID
1198
+ */
992
1199
  snapshotId?: string;
993
1200
  }
994
1201
  export interface DeleteDataCollectionsSnapshotResponse {
995
1202
  }
996
1203
  export interface CreateMigratedCollectionsSnapshotRequest {
1204
+ /** @format GUID */
997
1205
  existingSnapshotId?: string;
1206
+ /** @maxLength 255 */
998
1207
  newNamespace?: string;
1208
+ /** @maxLength 255 */
999
1209
  existingNamespace?: string;
1000
1210
  }
1001
1211
  export interface CreateMigratedCollectionsSnapshotResponse {
1212
+ /** @format GUID */
1002
1213
  snapshotId?: string;
1003
1214
  }
1004
1215
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -1072,9 +1283,15 @@ export interface ActionEvent {
1072
1283
  body?: string;
1073
1284
  }
1074
1285
  export interface MessageEnvelope {
1075
- /** App instance ID. */
1286
+ /**
1287
+ * App instance ID.
1288
+ * @format GUID
1289
+ */
1076
1290
  instanceId?: string | null;
1077
- /** Event type. */
1291
+ /**
1292
+ * Event type.
1293
+ * @maxLength 150
1294
+ */
1078
1295
  eventType?: string;
1079
1296
  /** The identification type and identity data. */
1080
1297
  identity?: IdentificationData;
@@ -1082,26 +1299,50 @@ export interface MessageEnvelope {
1082
1299
  data?: string;
1083
1300
  }
1084
1301
  export interface IdentificationData extends IdentificationDataIdOneOf {
1085
- /** ID of a site visitor that has not logged in to the site. */
1302
+ /**
1303
+ * ID of a site visitor that has not logged in to the site.
1304
+ * @format GUID
1305
+ */
1086
1306
  anonymousVisitorId?: string;
1087
- /** ID of a site visitor that has logged in to the site. */
1307
+ /**
1308
+ * ID of a site visitor that has logged in to the site.
1309
+ * @format GUID
1310
+ */
1088
1311
  memberId?: string;
1089
- /** ID of a Wix user (site owner, contributor, etc.). */
1312
+ /**
1313
+ * ID of a Wix user (site owner, contributor, etc.).
1314
+ * @format GUID
1315
+ */
1090
1316
  wixUserId?: string;
1091
- /** ID of an app. */
1317
+ /**
1318
+ * ID of an app.
1319
+ * @format GUID
1320
+ */
1092
1321
  appId?: string;
1093
1322
  /** @readonly */
1094
1323
  identityType?: WebhookIdentityType;
1095
1324
  }
1096
1325
  /** @oneof */
1097
1326
  export interface IdentificationDataIdOneOf {
1098
- /** ID of a site visitor that has not logged in to the site. */
1327
+ /**
1328
+ * ID of a site visitor that has not logged in to the site.
1329
+ * @format GUID
1330
+ */
1099
1331
  anonymousVisitorId?: string;
1100
- /** ID of a site visitor that has logged in to the site. */
1332
+ /**
1333
+ * ID of a site visitor that has logged in to the site.
1334
+ * @format GUID
1335
+ */
1101
1336
  memberId?: string;
1102
- /** ID of a Wix user (site owner, contributor, etc.). */
1337
+ /**
1338
+ * ID of a Wix user (site owner, contributor, etc.).
1339
+ * @format GUID
1340
+ */
1103
1341
  wixUserId?: string;
1104
- /** ID of an app. */
1342
+ /**
1343
+ * ID of an app.
1344
+ * @format GUID
1345
+ */
1105
1346
  appId?: string;
1106
1347
  }
1107
1348
  export declare enum WebhookIdentityType {
@@ -1329,6 +1570,8 @@ export interface GetDataCollectionOptions {
1329
1570
  /**
1330
1571
  * List of specific field names to return, if empty all fields are returned.
1331
1572
  * Affects all returned collections
1573
+ * @maxSize 100
1574
+ * @maxLength 1000
1332
1575
  */
1333
1576
  fields?: string[];
1334
1577
  }
@@ -1367,6 +1610,8 @@ export interface ListDataCollectionsOptions {
1367
1610
  /**
1368
1611
  * List of specific field names to return, if empty all fields are returned.
1369
1612
  * Affects all returned collections
1613
+ * @maxSize 100
1614
+ * @maxLength 128
1370
1615
  */
1371
1616
  fields?: string[];
1372
1617
  }
@@ -1498,7 +1743,10 @@ export interface UpdateDataCollectionFieldOptions {
1498
1743
  */
1499
1744
  export declare function deleteDataCollectionField(dataCollectionId: string, options: DeleteDataCollectionFieldOptions): Promise<DeleteDataCollectionFieldResponse & DeleteDataCollectionFieldResponseNonNullableFields>;
1500
1745
  export interface DeleteDataCollectionFieldOptions {
1501
- /** Field ID to delete */
1746
+ /**
1747
+ * Field ID to delete
1748
+ * @maxLength 1000
1749
+ */
1502
1750
  fieldKey: string;
1503
1751
  }
1504
1752
  export {};