@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.
- package/build/cjs/src/data-v2-data-collection-collections.context.d.ts +1 -1
- package/build/cjs/src/data-v2-data-collection-collections.context.js +2 -1
- package/build/cjs/src/data-v2-data-collection-collections.context.js.map +1 -1
- package/build/cjs/src/data-v2-data-collection-collections.public.d.ts +1 -1
- package/build/cjs/src/data-v2-data-collection-collections.public.js +2 -1
- package/build/cjs/src/data-v2-data-collection-collections.public.js.map +1 -1
- package/build/cjs/src/data-v2-data-collection-collections.types.d.ts +306 -65
- package/build/cjs/src/data-v2-data-collection-collections.types.js +10 -1
- package/build/cjs/src/data-v2-data-collection-collections.types.js.map +1 -1
- package/build/cjs/src/data-v2-data-collection-collections.universal.d.ts +314 -66
- package/build/cjs/src/data-v2-data-collection-collections.universal.js +10 -1
- package/build/cjs/src/data-v2-data-collection-collections.universal.js.map +1 -1
- package/build/es/src/data-v2-data-collection-collections.context.d.ts +1 -1
- package/build/es/src/data-v2-data-collection-collections.context.js +1 -1
- package/build/es/src/data-v2-data-collection-collections.context.js.map +1 -1
- package/build/es/src/data-v2-data-collection-collections.public.d.ts +1 -1
- package/build/es/src/data-v2-data-collection-collections.public.js +1 -1
- package/build/es/src/data-v2-data-collection-collections.public.js.map +1 -1
- package/build/es/src/data-v2-data-collection-collections.types.d.ts +306 -65
- package/build/es/src/data-v2-data-collection-collections.types.js +9 -0
- package/build/es/src/data-v2-data-collection-collections.types.js.map +1 -1
- package/build/es/src/data-v2-data-collection-collections.universal.d.ts +314 -66
- package/build/es/src/data-v2-data-collection-collections.universal.js +9 -0
- package/build/es/src/data-v2-data-collection-collections.universal.js.map +1 -1
- package/build/internal/cjs/src/data-v2-data-collection-collections.context.d.ts +1 -1
- package/build/internal/cjs/src/data-v2-data-collection-collections.context.js +2 -1
- package/build/internal/cjs/src/data-v2-data-collection-collections.context.js.map +1 -1
- package/build/internal/cjs/src/data-v2-data-collection-collections.public.d.ts +1 -1
- package/build/internal/cjs/src/data-v2-data-collection-collections.public.js +2 -1
- package/build/internal/cjs/src/data-v2-data-collection-collections.public.js.map +1 -1
- package/build/internal/cjs/src/data-v2-data-collection-collections.types.d.ts +306 -65
- package/build/internal/cjs/src/data-v2-data-collection-collections.types.js +10 -1
- package/build/internal/cjs/src/data-v2-data-collection-collections.types.js.map +1 -1
- package/build/internal/cjs/src/data-v2-data-collection-collections.universal.d.ts +314 -66
- package/build/internal/cjs/src/data-v2-data-collection-collections.universal.js +10 -1
- package/build/internal/cjs/src/data-v2-data-collection-collections.universal.js.map +1 -1
- package/build/internal/es/src/data-v2-data-collection-collections.context.d.ts +1 -1
- package/build/internal/es/src/data-v2-data-collection-collections.context.js +1 -1
- package/build/internal/es/src/data-v2-data-collection-collections.context.js.map +1 -1
- package/build/internal/es/src/data-v2-data-collection-collections.public.d.ts +1 -1
- package/build/internal/es/src/data-v2-data-collection-collections.public.js +1 -1
- package/build/internal/es/src/data-v2-data-collection-collections.public.js.map +1 -1
- package/build/internal/es/src/data-v2-data-collection-collections.types.d.ts +306 -65
- package/build/internal/es/src/data-v2-data-collection-collections.types.js +9 -0
- package/build/internal/es/src/data-v2-data-collection-collections.types.js.map +1 -1
- package/build/internal/es/src/data-v2-data-collection-collections.universal.d.ts +314 -66
- package/build/internal/es/src/data-v2-data-collection-collections.universal.js +9 -0
- package/build/internal/es/src/data-v2-data-collection-collections.universal.js.map +1 -1
- 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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
/**
|
|
@@ -77,7 +96,10 @@ export declare enum CollectionType {
|
|
|
77
96
|
EXTERNAL = "EXTERNAL"
|
|
78
97
|
}
|
|
79
98
|
export interface Sort {
|
|
80
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* Field to sort by.
|
|
101
|
+
* @maxLength 1000
|
|
102
|
+
*/
|
|
81
103
|
fieldKey?: string;
|
|
82
104
|
/**
|
|
83
105
|
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
@@ -95,9 +117,13 @@ export interface CollectionCapabilities {
|
|
|
95
117
|
* Data operations the collection supports. The listed operations can be performed on data the collection contains.
|
|
96
118
|
*
|
|
97
119
|
* > **Note**: The `PATCH` and `BULK_PATCH` oeprations aren't currently supported.
|
|
120
|
+
* @maxSize 100
|
|
98
121
|
*/
|
|
99
122
|
dataOperations?: DataOperation[];
|
|
100
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* Collection operations supported. The listed operations can be performed on the collection itself.
|
|
125
|
+
* @maxSize 100
|
|
126
|
+
*/
|
|
101
127
|
collectionOperations?: CollectionOperation[];
|
|
102
128
|
/** Maximum number of indexes for the collection. */
|
|
103
129
|
indexLimits?: IndexLimits;
|
|
@@ -146,9 +172,15 @@ export interface Field extends FieldRangeValidationsOneOf {
|
|
|
146
172
|
stringLengthRange?: StringLengthRange;
|
|
147
173
|
/** Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`. */
|
|
148
174
|
arraySizeRange?: ArraySizeRange;
|
|
149
|
-
/**
|
|
175
|
+
/**
|
|
176
|
+
* Unique identifier for the field. For example, `firstName`.
|
|
177
|
+
* @maxLength 1000
|
|
178
|
+
*/
|
|
150
179
|
key?: string;
|
|
151
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* Field's display name when displayed in the CMS. For example, `First Name`.
|
|
182
|
+
* @maxLength 1000
|
|
183
|
+
*/
|
|
152
184
|
displayName?: string | null;
|
|
153
185
|
/** Field's data type. */
|
|
154
186
|
type?: Type;
|
|
@@ -166,7 +198,10 @@ export interface Field extends FieldRangeValidationsOneOf {
|
|
|
166
198
|
capabilities?: FieldCapabilities;
|
|
167
199
|
/** Whether the field is encrypted. */
|
|
168
200
|
encrypted?: boolean;
|
|
169
|
-
/**
|
|
201
|
+
/**
|
|
202
|
+
* Field description.
|
|
203
|
+
* @maxLength 16000
|
|
204
|
+
*/
|
|
170
205
|
description?: string | null;
|
|
171
206
|
/**
|
|
172
207
|
* Whether the field is read-only. A read-only field can't be changed.
|
|
@@ -186,7 +221,10 @@ export interface Field extends FieldRangeValidationsOneOf {
|
|
|
186
221
|
* Default: `false`
|
|
187
222
|
*/
|
|
188
223
|
required?: boolean | null;
|
|
189
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* Additional optional plugins for the field.
|
|
226
|
+
* @maxSize 100
|
|
227
|
+
*/
|
|
190
228
|
plugins?: FieldPlugin[];
|
|
191
229
|
}
|
|
192
230
|
/** @oneof */
|
|
@@ -271,7 +309,10 @@ export interface FieldCapabilities {
|
|
|
271
309
|
* Default: `false`
|
|
272
310
|
*/
|
|
273
311
|
sortable?: boolean;
|
|
274
|
-
/**
|
|
312
|
+
/**
|
|
313
|
+
* Query operators that can be used for this field.
|
|
314
|
+
* @maxSize 100
|
|
315
|
+
*/
|
|
275
316
|
queryOperators?: QueryOperator[];
|
|
276
317
|
}
|
|
277
318
|
export declare enum QueryOperator {
|
|
@@ -290,9 +331,15 @@ export declare enum QueryOperator {
|
|
|
290
331
|
URLIZED = "URLIZED"
|
|
291
332
|
}
|
|
292
333
|
export interface ObjectField {
|
|
293
|
-
/**
|
|
334
|
+
/**
|
|
335
|
+
* Field ID.
|
|
336
|
+
* @maxLength 1000
|
|
337
|
+
*/
|
|
294
338
|
key?: string;
|
|
295
|
-
/**
|
|
339
|
+
/**
|
|
340
|
+
* Display name for the field.
|
|
341
|
+
* @maxLength 1000
|
|
342
|
+
*/
|
|
296
343
|
displayName?: string | null;
|
|
297
344
|
/** Field type. */
|
|
298
345
|
type?: Type;
|
|
@@ -305,10 +352,12 @@ export interface ObjectField {
|
|
|
305
352
|
capabilities?: FieldCapabilities;
|
|
306
353
|
}
|
|
307
354
|
export interface FieldsPattern {
|
|
355
|
+
/** @maxLength 1000 */
|
|
308
356
|
pattern?: string;
|
|
309
357
|
lowercase?: boolean;
|
|
310
358
|
}
|
|
311
359
|
export interface UrlizedOnlyPattern {
|
|
360
|
+
/** @maxLength 1000 */
|
|
312
361
|
pattern?: string;
|
|
313
362
|
}
|
|
314
363
|
export interface Calculator extends CalculatorPatternOneOf {
|
|
@@ -325,19 +374,34 @@ export interface CalculatorPatternOneOf {
|
|
|
325
374
|
urlizedOnlyPattern?: UrlizedOnlyPattern;
|
|
326
375
|
}
|
|
327
376
|
export interface Reference {
|
|
328
|
-
/**
|
|
377
|
+
/**
|
|
378
|
+
* Referenced collection ID.
|
|
379
|
+
* @maxLength 256
|
|
380
|
+
*/
|
|
329
381
|
referencedCollectionId?: string;
|
|
330
382
|
}
|
|
331
383
|
export interface MultiReference {
|
|
332
|
-
/**
|
|
384
|
+
/**
|
|
385
|
+
* Referenced collection ID.
|
|
386
|
+
* @maxLength 256
|
|
387
|
+
*/
|
|
333
388
|
referencedCollectionId?: string;
|
|
334
|
-
/**
|
|
389
|
+
/**
|
|
390
|
+
* Referencing field ID.
|
|
391
|
+
* @maxLength 1000
|
|
392
|
+
*/
|
|
335
393
|
referencingFieldKey?: string;
|
|
336
|
-
/**
|
|
394
|
+
/**
|
|
395
|
+
* Display name in the CMS for the referenced data.
|
|
396
|
+
* @maxLength 1000
|
|
397
|
+
*/
|
|
337
398
|
referencingDisplayName?: string;
|
|
338
399
|
}
|
|
339
400
|
export interface _Object {
|
|
340
|
-
/**
|
|
401
|
+
/**
|
|
402
|
+
* Fields within the object.
|
|
403
|
+
* @maxSize 1000
|
|
404
|
+
*/
|
|
341
405
|
fields?: ObjectField[];
|
|
342
406
|
}
|
|
343
407
|
export interface _Array {
|
|
@@ -348,7 +412,10 @@ export interface _Array {
|
|
|
348
412
|
}
|
|
349
413
|
export interface PageLink {
|
|
350
414
|
calculator?: Calculator;
|
|
351
|
-
/**
|
|
415
|
+
/**
|
|
416
|
+
* Defines reference to router pattern in the site document.
|
|
417
|
+
* @maxLength 1000
|
|
418
|
+
*/
|
|
352
419
|
linkedRouterPage?: string | null;
|
|
353
420
|
}
|
|
354
421
|
export interface NumberRange {
|
|
@@ -493,7 +560,10 @@ export declare enum Format {
|
|
|
493
560
|
}
|
|
494
561
|
/** if CMS-defined sort is enabled and should be used in site */
|
|
495
562
|
export interface SiteSort {
|
|
496
|
-
/**
|
|
563
|
+
/**
|
|
564
|
+
* Field and order for the site sort.
|
|
565
|
+
* @maxSize 100
|
|
566
|
+
*/
|
|
497
567
|
sort?: Sort[];
|
|
498
568
|
}
|
|
499
569
|
export declare enum PluginType {
|
|
@@ -521,7 +591,10 @@ export interface PublishPluginOptions {
|
|
|
521
591
|
defaultStatus?: Status;
|
|
522
592
|
}
|
|
523
593
|
export interface SingleItemPluginOptions {
|
|
524
|
-
/**
|
|
594
|
+
/**
|
|
595
|
+
* ID of the single item in this collection. If you insert or update an item, its ID value is always changed to this.
|
|
596
|
+
* @maxLength 16000
|
|
597
|
+
*/
|
|
525
598
|
singleItemId?: string;
|
|
526
599
|
}
|
|
527
600
|
export interface UrlizedPluginOptions {
|
|
@@ -529,7 +602,11 @@ export interface UrlizedPluginOptions {
|
|
|
529
602
|
format?: Format;
|
|
530
603
|
}
|
|
531
604
|
export interface MultilingualOptions {
|
|
532
|
-
/**
|
|
605
|
+
/**
|
|
606
|
+
* IDs of fields to allow translation.
|
|
607
|
+
* @maxSize 1000
|
|
608
|
+
* @maxLength 1000
|
|
609
|
+
*/
|
|
533
610
|
translatableFieldKeys?: string[];
|
|
534
611
|
}
|
|
535
612
|
export interface PageLinkPluginOptions {
|
|
@@ -586,23 +663,47 @@ export interface AllowedDataPermissions {
|
|
|
586
663
|
itemRemove?: boolean;
|
|
587
664
|
}
|
|
588
665
|
export interface DataCollectionClonedEvent {
|
|
589
|
-
/**
|
|
666
|
+
/**
|
|
667
|
+
* Instance ID of the collection from which the data is cloned.
|
|
668
|
+
* @format GUID
|
|
669
|
+
*/
|
|
590
670
|
originInstanceId?: string;
|
|
591
|
-
/**
|
|
671
|
+
/**
|
|
672
|
+
* ID of the collection from which the data is cloned.
|
|
673
|
+
* @maxLength 256
|
|
674
|
+
*/
|
|
592
675
|
originId?: string;
|
|
593
676
|
}
|
|
594
677
|
export interface DataCollectionChangedEvent {
|
|
595
|
-
/**
|
|
678
|
+
/**
|
|
679
|
+
* list of new fields
|
|
680
|
+
* @maxSize 1000
|
|
681
|
+
*/
|
|
596
682
|
fieldsAdded?: Field[];
|
|
597
|
-
/**
|
|
683
|
+
/**
|
|
684
|
+
* list of changed fields
|
|
685
|
+
* @maxSize 1000
|
|
686
|
+
*/
|
|
598
687
|
fieldsUpdated?: FieldUpdate[];
|
|
599
|
-
/**
|
|
688
|
+
/**
|
|
689
|
+
* list of removed fields
|
|
690
|
+
* @maxSize 1000
|
|
691
|
+
*/
|
|
600
692
|
fieldsRemoved?: Field[];
|
|
601
|
-
/**
|
|
693
|
+
/**
|
|
694
|
+
* list of new plugins
|
|
695
|
+
* @maxSize 100
|
|
696
|
+
*/
|
|
602
697
|
pluginsAdded?: Plugin[];
|
|
603
|
-
/**
|
|
698
|
+
/**
|
|
699
|
+
* list of changed plugins
|
|
700
|
+
* @maxSize 100
|
|
701
|
+
*/
|
|
604
702
|
pluginsUpdated?: PluginUpdate[];
|
|
605
|
-
/**
|
|
703
|
+
/**
|
|
704
|
+
* list of removed plugins
|
|
705
|
+
* @maxSize 100
|
|
706
|
+
*/
|
|
606
707
|
pluginsRemoved?: Plugin[];
|
|
607
708
|
}
|
|
608
709
|
export interface FieldUpdate {
|
|
@@ -618,7 +719,11 @@ export interface PluginUpdate {
|
|
|
618
719
|
current?: Plugin;
|
|
619
720
|
}
|
|
620
721
|
export interface DataCollectionEvictedEvent {
|
|
621
|
-
/**
|
|
722
|
+
/**
|
|
723
|
+
* ID of the collection that was permanently deleted.
|
|
724
|
+
* @minLength 1
|
|
725
|
+
* @maxLength 1000
|
|
726
|
+
*/
|
|
622
727
|
id?: string;
|
|
623
728
|
}
|
|
624
729
|
export interface CreateDataCollectionRequest {
|
|
@@ -630,7 +735,10 @@ export interface CreateDataCollectionResponse {
|
|
|
630
735
|
collection?: DataCollection;
|
|
631
736
|
}
|
|
632
737
|
export interface GetDataCollectionRequest {
|
|
633
|
-
/**
|
|
738
|
+
/**
|
|
739
|
+
* ID of the collection to retrieve.
|
|
740
|
+
* @maxLength 256
|
|
741
|
+
*/
|
|
634
742
|
dataCollectionId: string;
|
|
635
743
|
/**
|
|
636
744
|
* Whether to retrieve data from the primary database instance.
|
|
@@ -643,6 +751,8 @@ export interface GetDataCollectionRequest {
|
|
|
643
751
|
/**
|
|
644
752
|
* List of specific field names to return, if empty all fields are returned.
|
|
645
753
|
* Affects all returned collections
|
|
754
|
+
* @maxSize 100
|
|
755
|
+
* @maxLength 1000
|
|
646
756
|
*/
|
|
647
757
|
fields?: string[];
|
|
648
758
|
}
|
|
@@ -680,11 +790,16 @@ export interface ListDataCollectionsRequest {
|
|
|
680
790
|
/**
|
|
681
791
|
* List of specific field names to return, if empty all fields are returned.
|
|
682
792
|
* Affects all returned collections
|
|
793
|
+
* @maxSize 100
|
|
794
|
+
* @maxLength 128
|
|
683
795
|
*/
|
|
684
796
|
fields?: string[];
|
|
685
797
|
}
|
|
686
798
|
export interface Sorting {
|
|
687
|
-
/**
|
|
799
|
+
/**
|
|
800
|
+
* Name of the field to sort by.
|
|
801
|
+
* @maxLength 1000
|
|
802
|
+
*/
|
|
688
803
|
fieldName?: string;
|
|
689
804
|
/** Sort order. */
|
|
690
805
|
order?: SortOrder;
|
|
@@ -716,7 +831,12 @@ export interface PagingMetadataV2 {
|
|
|
716
831
|
tooManyToCount?: boolean | null;
|
|
717
832
|
}
|
|
718
833
|
export interface BulkGetDataCollectionsRequest {
|
|
719
|
-
/**
|
|
834
|
+
/**
|
|
835
|
+
* IDs of the collections to retrieve.
|
|
836
|
+
* @minSize 1
|
|
837
|
+
* @maxSize 100
|
|
838
|
+
* @maxLength 256
|
|
839
|
+
*/
|
|
720
840
|
dataCollectionIds?: string[];
|
|
721
841
|
/**
|
|
722
842
|
* Whether to include deleted collections.
|
|
@@ -743,6 +863,8 @@ export interface BulkGetDataCollectionsRequest {
|
|
|
743
863
|
/**
|
|
744
864
|
* List of specific field names to return, if empty all fields are returned.
|
|
745
865
|
* Affects all returned collections
|
|
866
|
+
* @maxSize 100
|
|
867
|
+
* @maxLength 1000
|
|
746
868
|
*/
|
|
747
869
|
fields?: string[];
|
|
748
870
|
}
|
|
@@ -764,13 +886,19 @@ export interface UpdateDataCollectionResponse {
|
|
|
764
886
|
collection?: DataCollection;
|
|
765
887
|
}
|
|
766
888
|
export interface DeleteDataCollectionRequest {
|
|
767
|
-
/**
|
|
889
|
+
/**
|
|
890
|
+
* ID of the collection to delete.
|
|
891
|
+
* @maxLength 256
|
|
892
|
+
*/
|
|
768
893
|
dataCollectionId: string;
|
|
769
894
|
}
|
|
770
895
|
export interface DeleteDataCollectionResponse {
|
|
771
896
|
}
|
|
772
897
|
export interface RestoreDataCollectionRequest {
|
|
773
|
-
/**
|
|
898
|
+
/**
|
|
899
|
+
* Data Collection ID to restore
|
|
900
|
+
* @maxLength 256
|
|
901
|
+
*/
|
|
774
902
|
dataCollectionId?: string;
|
|
775
903
|
}
|
|
776
904
|
export interface RestoreDataCollectionResponse {
|
|
@@ -778,7 +906,10 @@ export interface RestoreDataCollectionResponse {
|
|
|
778
906
|
dataCollection?: DataCollection;
|
|
779
907
|
}
|
|
780
908
|
export interface CreateDataCollectionFieldRequest {
|
|
781
|
-
/**
|
|
909
|
+
/**
|
|
910
|
+
* ID of data collection to update
|
|
911
|
+
* @maxLength 256
|
|
912
|
+
*/
|
|
782
913
|
dataCollectionId: string;
|
|
783
914
|
/** field to create */
|
|
784
915
|
field: Field;
|
|
@@ -788,7 +919,10 @@ export interface CreateDataCollectionFieldResponse {
|
|
|
788
919
|
dataCollection?: DataCollection;
|
|
789
920
|
}
|
|
790
921
|
export interface UpdateDataCollectionFieldRequest {
|
|
791
|
-
/**
|
|
922
|
+
/**
|
|
923
|
+
* ID of data collection to update
|
|
924
|
+
* @maxLength 256
|
|
925
|
+
*/
|
|
792
926
|
dataCollectionId: string;
|
|
793
927
|
/** Field to update */
|
|
794
928
|
field: Field;
|
|
@@ -798,9 +932,15 @@ export interface UpdateDataCollectionFieldResponse {
|
|
|
798
932
|
dataCollection?: DataCollection;
|
|
799
933
|
}
|
|
800
934
|
export interface DeleteDataCollectionFieldRequest {
|
|
801
|
-
/**
|
|
935
|
+
/**
|
|
936
|
+
* ID of data collection to update
|
|
937
|
+
* @maxLength 256
|
|
938
|
+
*/
|
|
802
939
|
dataCollectionId: string;
|
|
803
|
-
/**
|
|
940
|
+
/**
|
|
941
|
+
* Field ID to delete
|
|
942
|
+
* @maxLength 1000
|
|
943
|
+
*/
|
|
804
944
|
fieldKey: string;
|
|
805
945
|
}
|
|
806
946
|
export interface DeleteDataCollectionFieldResponse {
|
|
@@ -808,7 +948,10 @@ export interface DeleteDataCollectionFieldResponse {
|
|
|
808
948
|
dataCollection?: DataCollection;
|
|
809
949
|
}
|
|
810
950
|
export interface UpdateDataPermissionsRequest {
|
|
811
|
-
/**
|
|
951
|
+
/**
|
|
952
|
+
* ID of data collections to update
|
|
953
|
+
* @maxLength 256
|
|
954
|
+
*/
|
|
812
955
|
dataCollectionId?: string;
|
|
813
956
|
/** Data permissions to set */
|
|
814
957
|
dataPermissions?: DataPermissions;
|
|
@@ -818,7 +961,12 @@ export interface UpdateDataPermissionsResponse {
|
|
|
818
961
|
dataCollection?: DataCollection;
|
|
819
962
|
}
|
|
820
963
|
export interface BulkGetDataCollectionsPageBySnapshotsRequest {
|
|
821
|
-
/**
|
|
964
|
+
/**
|
|
965
|
+
* Ids of schema snapshot
|
|
966
|
+
* @format GUID
|
|
967
|
+
* @minSize 1
|
|
968
|
+
* @maxSize 1000
|
|
969
|
+
*/
|
|
822
970
|
snapshotIds?: string[];
|
|
823
971
|
/** Pagination information. */
|
|
824
972
|
paging?: Paging;
|
|
@@ -830,21 +978,33 @@ export interface BulkGetDataCollectionsPageBySnapshotsResponse {
|
|
|
830
978
|
pagingMetadata?: PagingMetadataV2;
|
|
831
979
|
}
|
|
832
980
|
export interface SnapshotCollection {
|
|
833
|
-
/**
|
|
981
|
+
/**
|
|
982
|
+
* snapshot to which collection belongs
|
|
983
|
+
* @format GUID
|
|
984
|
+
*/
|
|
834
985
|
snapshotId?: string;
|
|
835
986
|
/** snapshot collection */
|
|
836
987
|
collection?: DataCollection;
|
|
837
|
-
/**
|
|
988
|
+
/**
|
|
989
|
+
* snapshot of collection indexes
|
|
990
|
+
* @maxSize 100
|
|
991
|
+
*/
|
|
838
992
|
indexes?: Index[];
|
|
839
993
|
}
|
|
840
994
|
/** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
|
|
841
995
|
export interface Index {
|
|
842
|
-
/**
|
|
996
|
+
/**
|
|
997
|
+
* Name of the index.
|
|
998
|
+
* @minLength 1
|
|
999
|
+
* @maxLength 128
|
|
1000
|
+
*/
|
|
843
1001
|
name?: string;
|
|
844
1002
|
/**
|
|
845
1003
|
* Fields for which the index is defined.
|
|
846
1004
|
*
|
|
847
1005
|
* Max: 3 fields (for a unique index: 1 field)
|
|
1006
|
+
* @minSize 1
|
|
1007
|
+
* @maxSize 3
|
|
848
1008
|
*/
|
|
849
1009
|
fields?: IndexField[];
|
|
850
1010
|
/**
|
|
@@ -870,6 +1030,11 @@ export interface Index {
|
|
|
870
1030
|
* Default: `false`
|
|
871
1031
|
*/
|
|
872
1032
|
caseInsensitive?: boolean;
|
|
1033
|
+
/**
|
|
1034
|
+
* Specifies the origin of the index definition.
|
|
1035
|
+
* @readonly
|
|
1036
|
+
*/
|
|
1037
|
+
source?: IndexSource;
|
|
873
1038
|
}
|
|
874
1039
|
/**
|
|
875
1040
|
* Order determines how values are ordered in the index. This is important when
|
|
@@ -880,7 +1045,11 @@ export declare enum Order {
|
|
|
880
1045
|
DESC = "DESC"
|
|
881
1046
|
}
|
|
882
1047
|
export interface IndexField {
|
|
883
|
-
/**
|
|
1048
|
+
/**
|
|
1049
|
+
* Path of the field to index. For example: `title` or `options.price`.
|
|
1050
|
+
* @minLength 1
|
|
1051
|
+
* @maxLength 128
|
|
1052
|
+
*/
|
|
884
1053
|
path?: string;
|
|
885
1054
|
/**
|
|
886
1055
|
* Sort order for the index. Base on how the data is regularly queried.
|
|
@@ -911,45 +1080,80 @@ export interface Failure {
|
|
|
911
1080
|
* - `WDE0112`: Unknown error while building collection index.
|
|
912
1081
|
* - `WDE0113`: Duplicate key error while building collection index.
|
|
913
1082
|
* - `WDE0114`: Document too large while building collection index.
|
|
1083
|
+
* @maxLength 7
|
|
914
1084
|
*/
|
|
915
1085
|
code?: string;
|
|
916
|
-
/**
|
|
1086
|
+
/**
|
|
1087
|
+
* Description of the failure.
|
|
1088
|
+
* @maxLength 1024
|
|
1089
|
+
*/
|
|
917
1090
|
description?: string;
|
|
918
1091
|
/**
|
|
919
1092
|
* ID of the data item that caused the failure.
|
|
920
1093
|
* For example, if `unique` is `true`, the ID of an item containing a duplicate value.
|
|
1094
|
+
* @maxLength 16000
|
|
921
1095
|
*/
|
|
922
1096
|
itemId?: string | null;
|
|
923
1097
|
}
|
|
1098
|
+
export declare enum IndexSource {
|
|
1099
|
+
/** Place holder. Never returned by the service. */
|
|
1100
|
+
UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
|
|
1101
|
+
/** Index is created by the system, present for all collections. */
|
|
1102
|
+
SYSTEM = "SYSTEM",
|
|
1103
|
+
/** Index was created by a user via API or UI. */
|
|
1104
|
+
USER = "USER"
|
|
1105
|
+
}
|
|
924
1106
|
export interface CreateDataCollectionsSnapshotRequest {
|
|
925
1107
|
}
|
|
926
1108
|
export interface CreateDataCollectionsSnapshotResponse {
|
|
927
|
-
/**
|
|
1109
|
+
/**
|
|
1110
|
+
* created snapshot ID
|
|
1111
|
+
* @format GUID
|
|
1112
|
+
*/
|
|
928
1113
|
snapshotId?: string;
|
|
929
1114
|
/** data collections in snapshot */
|
|
930
1115
|
snapshotCollections?: DataCollection[];
|
|
931
1116
|
}
|
|
932
1117
|
export interface RestoreDataCollectionsFromSnapshotRequest {
|
|
933
|
-
/**
|
|
1118
|
+
/**
|
|
1119
|
+
* snapshot ID to restore
|
|
1120
|
+
* @format GUID
|
|
1121
|
+
*/
|
|
934
1122
|
snapshotId?: string;
|
|
935
1123
|
/**
|
|
936
1124
|
* collection IDs to restore, if empty – all collections would be restored
|
|
1125
|
+
* @maxSize 1000
|
|
1126
|
+
* @maxLength 256
|
|
937
1127
|
* @deprecated
|
|
938
1128
|
* @replacedBy restoration_collections
|
|
939
1129
|
* @targetRemovalDate 2025-12-31
|
|
940
1130
|
*/
|
|
941
1131
|
dataCollectionIds?: string[];
|
|
942
|
-
/**
|
|
1132
|
+
/**
|
|
1133
|
+
* collection to restore, if empty – all collections would be restored
|
|
1134
|
+
* @maxSize 1000
|
|
1135
|
+
*/
|
|
943
1136
|
restorationCollections?: RestorationCollection[];
|
|
944
1137
|
}
|
|
945
1138
|
export interface Destination {
|
|
946
|
-
/**
|
|
1139
|
+
/**
|
|
1140
|
+
* Collection id.
|
|
1141
|
+
* @minLength 1
|
|
1142
|
+
* @maxLength 1000
|
|
1143
|
+
*/
|
|
947
1144
|
dataCollectionId?: string;
|
|
948
|
-
/**
|
|
1145
|
+
/**
|
|
1146
|
+
* Display name. When not specified value is taken from the snapshot.
|
|
1147
|
+
* @maxLength 1000
|
|
1148
|
+
*/
|
|
949
1149
|
displayName?: string | null;
|
|
950
1150
|
}
|
|
951
1151
|
export interface RestorationCollection {
|
|
952
|
-
/**
|
|
1152
|
+
/**
|
|
1153
|
+
* Collection ID to restore
|
|
1154
|
+
* @minLength 1
|
|
1155
|
+
* @maxLength 1000
|
|
1156
|
+
*/
|
|
953
1157
|
dataCollectionId?: string;
|
|
954
1158
|
/**
|
|
955
1159
|
* Destination where to restore the collection.
|
|
@@ -962,17 +1166,24 @@ export interface RestoreDataCollectionsFromSnapshotResponse {
|
|
|
962
1166
|
restoredCollections?: DataCollection[];
|
|
963
1167
|
}
|
|
964
1168
|
export interface DeleteDataCollectionsSnapshotRequest {
|
|
965
|
-
/**
|
|
1169
|
+
/**
|
|
1170
|
+
* snapshot ID to delete
|
|
1171
|
+
* @format GUID
|
|
1172
|
+
*/
|
|
966
1173
|
snapshotId?: string;
|
|
967
1174
|
}
|
|
968
1175
|
export interface DeleteDataCollectionsSnapshotResponse {
|
|
969
1176
|
}
|
|
970
1177
|
export interface CreateMigratedCollectionsSnapshotRequest {
|
|
1178
|
+
/** @format GUID */
|
|
971
1179
|
existingSnapshotId?: string;
|
|
1180
|
+
/** @maxLength 255 */
|
|
972
1181
|
newNamespace?: string;
|
|
1182
|
+
/** @maxLength 255 */
|
|
973
1183
|
existingNamespace?: string;
|
|
974
1184
|
}
|
|
975
1185
|
export interface CreateMigratedCollectionsSnapshotResponse {
|
|
1186
|
+
/** @format GUID */
|
|
976
1187
|
snapshotId?: string;
|
|
977
1188
|
}
|
|
978
1189
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1048,9 +1259,15 @@ export interface ActionEvent {
|
|
|
1048
1259
|
bodyAsJson?: string;
|
|
1049
1260
|
}
|
|
1050
1261
|
export interface MessageEnvelope {
|
|
1051
|
-
/**
|
|
1262
|
+
/**
|
|
1263
|
+
* App instance ID.
|
|
1264
|
+
* @format GUID
|
|
1265
|
+
*/
|
|
1052
1266
|
instanceId?: string | null;
|
|
1053
|
-
/**
|
|
1267
|
+
/**
|
|
1268
|
+
* Event type.
|
|
1269
|
+
* @maxLength 150
|
|
1270
|
+
*/
|
|
1054
1271
|
eventType?: string;
|
|
1055
1272
|
/** The identification type and identity data. */
|
|
1056
1273
|
identity?: IdentificationData;
|
|
@@ -1058,26 +1275,50 @@ export interface MessageEnvelope {
|
|
|
1058
1275
|
data?: string;
|
|
1059
1276
|
}
|
|
1060
1277
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1061
|
-
/**
|
|
1278
|
+
/**
|
|
1279
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1280
|
+
* @format GUID
|
|
1281
|
+
*/
|
|
1062
1282
|
anonymousVisitorId?: string;
|
|
1063
|
-
/**
|
|
1283
|
+
/**
|
|
1284
|
+
* ID of a site visitor that has logged in to the site.
|
|
1285
|
+
* @format GUID
|
|
1286
|
+
*/
|
|
1064
1287
|
memberId?: string;
|
|
1065
|
-
/**
|
|
1288
|
+
/**
|
|
1289
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1290
|
+
* @format GUID
|
|
1291
|
+
*/
|
|
1066
1292
|
wixUserId?: string;
|
|
1067
|
-
/**
|
|
1293
|
+
/**
|
|
1294
|
+
* ID of an app.
|
|
1295
|
+
* @format GUID
|
|
1296
|
+
*/
|
|
1068
1297
|
appId?: string;
|
|
1069
1298
|
/** @readonly */
|
|
1070
1299
|
identityType?: WebhookIdentityType;
|
|
1071
1300
|
}
|
|
1072
1301
|
/** @oneof */
|
|
1073
1302
|
export interface IdentificationDataIdOneOf {
|
|
1074
|
-
/**
|
|
1303
|
+
/**
|
|
1304
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1305
|
+
* @format GUID
|
|
1306
|
+
*/
|
|
1075
1307
|
anonymousVisitorId?: string;
|
|
1076
|
-
/**
|
|
1308
|
+
/**
|
|
1309
|
+
* ID of a site visitor that has logged in to the site.
|
|
1310
|
+
* @format GUID
|
|
1311
|
+
*/
|
|
1077
1312
|
memberId?: string;
|
|
1078
|
-
/**
|
|
1313
|
+
/**
|
|
1314
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1315
|
+
* @format GUID
|
|
1316
|
+
*/
|
|
1079
1317
|
wixUserId?: string;
|
|
1080
|
-
/**
|
|
1318
|
+
/**
|
|
1319
|
+
* ID of an app.
|
|
1320
|
+
* @format GUID
|
|
1321
|
+
*/
|
|
1081
1322
|
appId?: string;
|
|
1082
1323
|
}
|
|
1083
1324
|
export declare enum WebhookIdentityType {
|