@wix/data 1.0.38 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/data-v1-external-database-connection.http.d.ts +5 -5
- package/build/cjs/src/data-v1-external-database-connection.http.js.map +1 -1
- package/build/cjs/src/data-v1-external-database-connection.public.d.ts +24 -6
- package/build/cjs/src/data-v1-external-database-connection.public.js +2 -1
- package/build/cjs/src/data-v1-external-database-connection.public.js.map +1 -1
- package/build/cjs/src/data-v1-external-database-connection.types.d.ts +46 -0
- package/build/cjs/src/data-v1-external-database-connection.types.js +8 -1
- package/build/cjs/src/data-v1-external-database-connection.types.js.map +1 -1
- package/build/cjs/src/data-v1-external-database-connection.universal.d.ts +46 -4
- package/build/cjs/src/data-v1-external-database-connection.universal.js +8 -1
- package/build/cjs/src/data-v1-external-database-connection.universal.js.map +1 -1
- package/build/cjs/src/data-v2-data-collection.http.d.ts +5 -5
- package/build/cjs/src/data-v2-data-collection.http.js.map +1 -1
- package/build/cjs/src/data-v2-data-collection.public.d.ts +263 -5
- package/build/cjs/src/data-v2-data-collection.types.d.ts +458 -0
- package/build/cjs/src/data-v2-data-collection.universal.d.ts +447 -4
- package/build/cjs/src/data-v2-data-collection.universal.js.map +1 -1
- package/build/cjs/src/data-v2-data-item.http.d.ts +19 -19
- package/build/cjs/src/data-v2-data-item.http.js.map +1 -1
- package/build/cjs/src/data-v2-data-item.public.d.ts +23 -21
- package/build/cjs/src/data-v2-data-item.public.js.map +1 -1
- package/build/cjs/src/data-v2-data-item.types.d.ts +193 -0
- package/build/cjs/src/data-v2-data-item.universal.d.ts +212 -32
- package/build/cjs/src/data-v2-data-item.universal.js +0 -13
- package/build/cjs/src/data-v2-data-item.universal.js.map +1 -1
- package/build/cjs/src/data-v2-index.http.d.ts +3 -3
- package/build/cjs/src/data-v2-index.http.js.map +1 -1
- package/build/cjs/src/data-v2-index.public.d.ts +16 -3
- package/build/cjs/src/data-v2-index.types.d.ts +34 -0
- package/build/cjs/src/data-v2-index.universal.d.ts +34 -2
- package/build/cjs/src/data-v2-index.universal.js.map +1 -1
- package/build/es/src/data-v1-external-database-connection.http.d.ts +5 -5
- package/build/es/src/data-v1-external-database-connection.http.js.map +1 -1
- package/build/es/src/data-v1-external-database-connection.public.d.ts +24 -6
- package/build/es/src/data-v1-external-database-connection.public.js +1 -1
- package/build/es/src/data-v1-external-database-connection.public.js.map +1 -1
- package/build/es/src/data-v1-external-database-connection.types.d.ts +46 -0
- package/build/es/src/data-v1-external-database-connection.types.js +7 -0
- package/build/es/src/data-v1-external-database-connection.types.js.map +1 -1
- package/build/es/src/data-v1-external-database-connection.universal.d.ts +46 -4
- package/build/es/src/data-v1-external-database-connection.universal.js +7 -0
- package/build/es/src/data-v1-external-database-connection.universal.js.map +1 -1
- package/build/es/src/data-v2-data-collection.http.d.ts +5 -5
- package/build/es/src/data-v2-data-collection.http.js.map +1 -1
- package/build/es/src/data-v2-data-collection.public.d.ts +263 -5
- package/build/es/src/data-v2-data-collection.types.d.ts +458 -0
- package/build/es/src/data-v2-data-collection.universal.d.ts +447 -4
- package/build/es/src/data-v2-data-collection.universal.js.map +1 -1
- package/build/es/src/data-v2-data-item.http.d.ts +19 -19
- package/build/es/src/data-v2-data-item.http.js.map +1 -1
- package/build/es/src/data-v2-data-item.public.d.ts +23 -21
- package/build/es/src/data-v2-data-item.public.js.map +1 -1
- package/build/es/src/data-v2-data-item.types.d.ts +193 -0
- package/build/es/src/data-v2-data-item.universal.d.ts +212 -32
- package/build/es/src/data-v2-data-item.universal.js +0 -13
- package/build/es/src/data-v2-data-item.universal.js.map +1 -1
- package/build/es/src/data-v2-index.http.d.ts +3 -3
- package/build/es/src/data-v2-index.http.js.map +1 -1
- package/build/es/src/data-v2-index.public.d.ts +16 -3
- package/build/es/src/data-v2-index.types.d.ts +34 -0
- package/build/es/src/data-v2-index.universal.d.ts +34 -2
- package/build/es/src/data-v2-index.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,10 +3,268 @@ import { DataCollection, ListDataCollectionsOptions } from './data-v2-data-colle
|
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function createDataCollection(httpClient: HttpClient): (collection: DataCollection) => Promise<DataCollection
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
export declare function createDataCollection(httpClient: HttpClient): (collection: DataCollection) => Promise<DataCollection & {
|
|
7
|
+
_id: string;
|
|
8
|
+
collectionType: import("./data-v2-data-collection.universal").CollectionType;
|
|
9
|
+
defaultDisplayOrder?: {
|
|
10
|
+
fieldKey: string;
|
|
11
|
+
direction: import("./data-v2-data-collection.universal").Direction;
|
|
12
|
+
} | undefined;
|
|
13
|
+
capabilities?: {
|
|
14
|
+
dataOperations: import("./data-v2-data-collection.universal").DataOperation[];
|
|
15
|
+
collectionOperations: import("./data-v2-data-collection.universal").CollectionOperation[];
|
|
16
|
+
indexLimits?: {
|
|
17
|
+
regular: number;
|
|
18
|
+
unique: number;
|
|
19
|
+
total: number;
|
|
20
|
+
} | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
fields: {
|
|
23
|
+
key: string;
|
|
24
|
+
type: import("./data-v2-data-collection.universal").FieldType;
|
|
25
|
+
typeMetadata?: {
|
|
26
|
+
reference?: {
|
|
27
|
+
referencedCollectionId: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
multiReference?: {
|
|
30
|
+
referencedCollectionId: string;
|
|
31
|
+
referencingFieldKey: string;
|
|
32
|
+
referencingDisplayName: string;
|
|
33
|
+
} | undefined;
|
|
34
|
+
object?: {
|
|
35
|
+
fields: {
|
|
36
|
+
key: string;
|
|
37
|
+
type: import("./data-v2-data-collection.universal").FieldType;
|
|
38
|
+
capabilities?: {
|
|
39
|
+
sortable: boolean;
|
|
40
|
+
queryOperators: import("./data-v2-data-collection.universal").QueryOperator[];
|
|
41
|
+
} | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
} | undefined;
|
|
44
|
+
array?: {
|
|
45
|
+
elementType: import("./data-v2-data-collection.universal").FieldType;
|
|
46
|
+
} | undefined;
|
|
47
|
+
pageLink?: {
|
|
48
|
+
calculator?: {
|
|
49
|
+
fieldsPattern?: {
|
|
50
|
+
pattern: string;
|
|
51
|
+
lowercase: boolean;
|
|
52
|
+
} | undefined;
|
|
53
|
+
urlizedOnlyPattern?: {
|
|
54
|
+
pattern: string;
|
|
55
|
+
} | undefined;
|
|
56
|
+
_id: string;
|
|
57
|
+
} | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
systemField: boolean;
|
|
61
|
+
capabilities?: {
|
|
62
|
+
sortable: boolean;
|
|
63
|
+
queryOperators: import("./data-v2-data-collection.universal").QueryOperator[];
|
|
64
|
+
} | undefined;
|
|
65
|
+
encrypted: boolean;
|
|
66
|
+
}[];
|
|
67
|
+
permissions?: {
|
|
68
|
+
insert: import("./data-v2-data-collection.universal").Role;
|
|
69
|
+
update: import("./data-v2-data-collection.universal").Role;
|
|
70
|
+
remove: import("./data-v2-data-collection.universal").Role;
|
|
71
|
+
read: import("./data-v2-data-collection.universal").Role;
|
|
72
|
+
} | undefined;
|
|
73
|
+
plugins: {
|
|
74
|
+
publishOptions?: {
|
|
75
|
+
defaultStatus: import("./data-v2-data-collection.universal").Status;
|
|
76
|
+
} | undefined;
|
|
77
|
+
singleItemOptions?: {
|
|
78
|
+
singleItemId: string;
|
|
79
|
+
} | undefined;
|
|
80
|
+
urlizedOptions?: {
|
|
81
|
+
format: import("./data-v2-data-collection.universal").Format;
|
|
82
|
+
} | undefined;
|
|
83
|
+
gridapplessOptions?: {
|
|
84
|
+
migrated: boolean;
|
|
85
|
+
} | undefined;
|
|
86
|
+
multilingualOptions?: {
|
|
87
|
+
translatableFieldKeys: string[];
|
|
88
|
+
} | undefined;
|
|
89
|
+
type: import("./data-v2-data-collection.universal").Type;
|
|
90
|
+
}[];
|
|
91
|
+
pagingModes: import("./data-v2-data-collection.universal").PagingMode[];
|
|
92
|
+
}>;
|
|
93
|
+
export declare function getDataCollection(httpClient: HttpClient): (dataCollectionId: string) => Promise<DataCollection & {
|
|
94
|
+
_id: string;
|
|
95
|
+
collectionType: import("./data-v2-data-collection.universal").CollectionType;
|
|
96
|
+
defaultDisplayOrder?: {
|
|
97
|
+
fieldKey: string;
|
|
98
|
+
direction: import("./data-v2-data-collection.universal").Direction;
|
|
99
|
+
} | undefined;
|
|
100
|
+
capabilities?: {
|
|
101
|
+
dataOperations: import("./data-v2-data-collection.universal").DataOperation[];
|
|
102
|
+
collectionOperations: import("./data-v2-data-collection.universal").CollectionOperation[];
|
|
103
|
+
indexLimits?: {
|
|
104
|
+
regular: number;
|
|
105
|
+
unique: number;
|
|
106
|
+
total: number;
|
|
107
|
+
} | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
fields: {
|
|
110
|
+
key: string;
|
|
111
|
+
type: import("./data-v2-data-collection.universal").FieldType;
|
|
112
|
+
typeMetadata?: {
|
|
113
|
+
reference?: {
|
|
114
|
+
referencedCollectionId: string;
|
|
115
|
+
} | undefined;
|
|
116
|
+
multiReference?: {
|
|
117
|
+
referencedCollectionId: string;
|
|
118
|
+
referencingFieldKey: string;
|
|
119
|
+
referencingDisplayName: string;
|
|
120
|
+
} | undefined;
|
|
121
|
+
object?: {
|
|
122
|
+
fields: {
|
|
123
|
+
key: string;
|
|
124
|
+
type: import("./data-v2-data-collection.universal").FieldType;
|
|
125
|
+
capabilities?: {
|
|
126
|
+
sortable: boolean;
|
|
127
|
+
queryOperators: import("./data-v2-data-collection.universal").QueryOperator[];
|
|
128
|
+
} | undefined;
|
|
129
|
+
}[];
|
|
130
|
+
} | undefined;
|
|
131
|
+
array?: {
|
|
132
|
+
elementType: import("./data-v2-data-collection.universal").FieldType;
|
|
133
|
+
} | undefined;
|
|
134
|
+
pageLink?: {
|
|
135
|
+
calculator?: {
|
|
136
|
+
fieldsPattern?: {
|
|
137
|
+
pattern: string;
|
|
138
|
+
lowercase: boolean;
|
|
139
|
+
} | undefined;
|
|
140
|
+
urlizedOnlyPattern?: {
|
|
141
|
+
pattern: string;
|
|
142
|
+
} | undefined;
|
|
143
|
+
_id: string;
|
|
144
|
+
} | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
systemField: boolean;
|
|
148
|
+
capabilities?: {
|
|
149
|
+
sortable: boolean;
|
|
150
|
+
queryOperators: import("./data-v2-data-collection.universal").QueryOperator[];
|
|
151
|
+
} | undefined;
|
|
152
|
+
encrypted: boolean;
|
|
153
|
+
}[];
|
|
154
|
+
permissions?: {
|
|
155
|
+
insert: import("./data-v2-data-collection.universal").Role;
|
|
156
|
+
update: import("./data-v2-data-collection.universal").Role;
|
|
157
|
+
remove: import("./data-v2-data-collection.universal").Role;
|
|
158
|
+
read: import("./data-v2-data-collection.universal").Role;
|
|
159
|
+
} | undefined;
|
|
160
|
+
plugins: {
|
|
161
|
+
publishOptions?: {
|
|
162
|
+
defaultStatus: import("./data-v2-data-collection.universal").Status;
|
|
163
|
+
} | undefined;
|
|
164
|
+
singleItemOptions?: {
|
|
165
|
+
singleItemId: string;
|
|
166
|
+
} | undefined;
|
|
167
|
+
urlizedOptions?: {
|
|
168
|
+
format: import("./data-v2-data-collection.universal").Format;
|
|
169
|
+
} | undefined;
|
|
170
|
+
gridapplessOptions?: {
|
|
171
|
+
migrated: boolean;
|
|
172
|
+
} | undefined;
|
|
173
|
+
multilingualOptions?: {
|
|
174
|
+
translatableFieldKeys: string[];
|
|
175
|
+
} | undefined;
|
|
176
|
+
type: import("./data-v2-data-collection.universal").Type;
|
|
177
|
+
}[];
|
|
178
|
+
pagingModes: import("./data-v2-data-collection.universal").PagingMode[];
|
|
179
|
+
}>;
|
|
180
|
+
export declare function listDataCollections(httpClient: HttpClient): (options?: ListDataCollectionsOptions | undefined) => Promise<import("./data-v2-data-collection.universal").ListDataCollectionsResponse & import("./data-v2-data-collection.universal").ListDataCollectionsResponseNonNullableFields>;
|
|
181
|
+
export declare function updateDataCollection(httpClient: HttpClient): (collection: DataCollection) => Promise<DataCollection & {
|
|
182
|
+
_id: string;
|
|
183
|
+
collectionType: import("./data-v2-data-collection.universal").CollectionType;
|
|
184
|
+
defaultDisplayOrder?: {
|
|
185
|
+
fieldKey: string;
|
|
186
|
+
direction: import("./data-v2-data-collection.universal").Direction;
|
|
187
|
+
} | undefined;
|
|
188
|
+
capabilities?: {
|
|
189
|
+
dataOperations: import("./data-v2-data-collection.universal").DataOperation[];
|
|
190
|
+
collectionOperations: import("./data-v2-data-collection.universal").CollectionOperation[];
|
|
191
|
+
indexLimits?: {
|
|
192
|
+
regular: number;
|
|
193
|
+
unique: number;
|
|
194
|
+
total: number;
|
|
195
|
+
} | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
fields: {
|
|
198
|
+
key: string;
|
|
199
|
+
type: import("./data-v2-data-collection.universal").FieldType;
|
|
200
|
+
typeMetadata?: {
|
|
201
|
+
reference?: {
|
|
202
|
+
referencedCollectionId: string;
|
|
203
|
+
} | undefined;
|
|
204
|
+
multiReference?: {
|
|
205
|
+
referencedCollectionId: string;
|
|
206
|
+
referencingFieldKey: string;
|
|
207
|
+
referencingDisplayName: string;
|
|
208
|
+
} | undefined;
|
|
209
|
+
object?: {
|
|
210
|
+
fields: {
|
|
211
|
+
key: string;
|
|
212
|
+
type: import("./data-v2-data-collection.universal").FieldType;
|
|
213
|
+
capabilities?: {
|
|
214
|
+
sortable: boolean;
|
|
215
|
+
queryOperators: import("./data-v2-data-collection.universal").QueryOperator[];
|
|
216
|
+
} | undefined;
|
|
217
|
+
}[];
|
|
218
|
+
} | undefined;
|
|
219
|
+
array?: {
|
|
220
|
+
elementType: import("./data-v2-data-collection.universal").FieldType;
|
|
221
|
+
} | undefined;
|
|
222
|
+
pageLink?: {
|
|
223
|
+
calculator?: {
|
|
224
|
+
fieldsPattern?: {
|
|
225
|
+
pattern: string;
|
|
226
|
+
lowercase: boolean;
|
|
227
|
+
} | undefined;
|
|
228
|
+
urlizedOnlyPattern?: {
|
|
229
|
+
pattern: string;
|
|
230
|
+
} | undefined;
|
|
231
|
+
_id: string;
|
|
232
|
+
} | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
systemField: boolean;
|
|
236
|
+
capabilities?: {
|
|
237
|
+
sortable: boolean;
|
|
238
|
+
queryOperators: import("./data-v2-data-collection.universal").QueryOperator[];
|
|
239
|
+
} | undefined;
|
|
240
|
+
encrypted: boolean;
|
|
241
|
+
}[];
|
|
242
|
+
permissions?: {
|
|
243
|
+
insert: import("./data-v2-data-collection.universal").Role;
|
|
244
|
+
update: import("./data-v2-data-collection.universal").Role;
|
|
245
|
+
remove: import("./data-v2-data-collection.universal").Role;
|
|
246
|
+
read: import("./data-v2-data-collection.universal").Role;
|
|
247
|
+
} | undefined;
|
|
248
|
+
plugins: {
|
|
249
|
+
publishOptions?: {
|
|
250
|
+
defaultStatus: import("./data-v2-data-collection.universal").Status;
|
|
251
|
+
} | undefined;
|
|
252
|
+
singleItemOptions?: {
|
|
253
|
+
singleItemId: string;
|
|
254
|
+
} | undefined;
|
|
255
|
+
urlizedOptions?: {
|
|
256
|
+
format: import("./data-v2-data-collection.universal").Format;
|
|
257
|
+
} | undefined;
|
|
258
|
+
gridapplessOptions?: {
|
|
259
|
+
migrated: boolean;
|
|
260
|
+
} | undefined;
|
|
261
|
+
multilingualOptions?: {
|
|
262
|
+
translatableFieldKeys: string[];
|
|
263
|
+
} | undefined;
|
|
264
|
+
type: import("./data-v2-data-collection.universal").Type;
|
|
265
|
+
}[];
|
|
266
|
+
pagingModes: import("./data-v2-data-collection.universal").PagingMode[];
|
|
267
|
+
}>;
|
|
10
268
|
export declare function deleteDataCollection(httpClient: HttpClient): (dataCollectionId: string) => Promise<void>;
|
|
11
269
|
export { CollectionType, Direction, DataOperation, CollectionOperation, FieldType, QueryOperator, Role, Status, Format, Type, PagingMode, SortOrder, } from './data-v2-data-collection.universal';
|
|
12
|
-
export { DataCollection, Sort, CollectionCapabilities, IndexLimits, Field, FieldRangeValidationsOneOf, TypeMetadata, TypeMetadataMetadataOneOf, FieldCapabilities, ObjectField, FieldsPattern, UrlizedOnlyPattern, Calculator, CalculatorPatternOneOf, Reference, MultiReference, Object, Array, PageLink, NumberRange, StringLengthRange, ArraySizeRange, Permissions, Plugin, PluginOptionsOneOf, PublishPluginOptions, SingleItemPluginOptions, UrlizedPluginOptions, GridapplessPluginOptions, MultilingualOptions, DataCollectionClonedEvent, DataCollectionChangedEvent, FieldUpdate, PluginUpdate, CreateDataCollectionRequest, CreateDataCollectionResponse, GetDataCollectionRequest, GetDataCollectionResponse, ListDataCollectionsRequest, Sorting, Paging, ListDataCollectionsResponse, PagingMetadataV2, BulkGetDataCollectionsRequest, BulkGetDataCollectionsResponse, UpdateDataCollectionRequest, UpdateDataCollectionResponse, DeleteDataCollectionRequest, DeleteDataCollectionResponse, BulkGetDataCollectionsBySnapshotsRequest, BulkGetDataCollectionsBySnapshotsResponse, SnapshotDataCollections, CreateDataCollectionsSnapshotRequest, CreateDataCollectionsSnapshotResponse, RestoreDataCollectionsFromSnapshotRequest, RestoreDataCollectionsFromSnapshotResponse, DeleteDataCollectionsSnapshotRequest, DeleteDataCollectionsSnapshotResponse, ListDataCollectionsOptions, } from './data-v2-data-collection.universal';
|
|
270
|
+
export { DataCollection, Sort, CollectionCapabilities, IndexLimits, Field, FieldRangeValidationsOneOf, TypeMetadata, TypeMetadataMetadataOneOf, FieldCapabilities, ObjectField, FieldsPattern, UrlizedOnlyPattern, Calculator, CalculatorPatternOneOf, Reference, MultiReference, Object, Array, PageLink, NumberRange, StringLengthRange, ArraySizeRange, Permissions, Plugin, PluginOptionsOneOf, PublishPluginOptions, SingleItemPluginOptions, UrlizedPluginOptions, GridapplessPluginOptions, MultilingualOptions, DataCollectionClonedEvent, DataCollectionChangedEvent, FieldUpdate, PluginUpdate, CreateDataCollectionRequest, CreateDataCollectionResponse, GetDataCollectionRequest, GetDataCollectionResponse, ListDataCollectionsRequest, Sorting, Paging, ListDataCollectionsResponse, PagingMetadataV2, BulkGetDataCollectionsRequest, BulkGetDataCollectionsResponse, UpdateDataCollectionRequest, UpdateDataCollectionResponse, DeleteDataCollectionRequest, DeleteDataCollectionResponse, BulkGetDataCollectionsBySnapshotsRequest, BulkGetDataCollectionsBySnapshotsResponse, SnapshotDataCollections, CreateDataCollectionsSnapshotRequest, CreateDataCollectionsSnapshotResponse, RestoreDataCollectionsFromSnapshotRequest, RestoreDataCollectionsFromSnapshotResponse, DeleteDataCollectionsSnapshotRequest, DeleteDataCollectionsSnapshotResponse, CreateDataCollectionResponseNonNullableFields, GetDataCollectionResponseNonNullableFields, ListDataCollectionsResponseNonNullableFields, UpdateDataCollectionResponseNonNullableFields, ListDataCollectionsOptions, } from './data-v2-data-collection.universal';
|