@wix/auto_sdk_data-backend-public-sdk-poc_data 1.0.29 → 1.0.31
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-data-service-data.universal.d.ts → data-v1-data-service-data.universal-DwJ77xKF.d.mts} +91 -104
- package/build/{es/src/data-v1-data-service-data.universal.d.ts → data-v1-data-service-data.universal-DwJ77xKF.d.ts} +91 -104
- package/build/index.d.mts +18 -0
- package/build/index.d.ts +18 -0
- package/build/index.js +1509 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1464 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/data-v1-data-service-data.universal-B0E_2MN6.d.mts +789 -0
- package/build/internal/data-v1-data-service-data.universal-B0E_2MN6.d.ts +789 -0
- package/build/internal/{cjs/src/data-v1-data-service-data.public.d.ts → index.d.mts} +63 -25
- package/build/internal/{es/src/data-v1-data-service-data.public.d.ts → index.d.ts} +63 -25
- package/build/internal/index.js +1509 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1464 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/data-v1-data-service-data.types.d.ts → internal/meta.d.mts} +94 -167
- package/build/internal/{es/src/data-v1-data-service-data.types.d.ts → meta.d.ts} +94 -167
- package/build/internal/meta.js +1093 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +1048 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/data-v1-data-service-data.types.d.ts → meta.d.mts} +94 -167
- package/build/{internal/cjs/src/data-v1-data-service-data.types.d.ts → meta.d.ts} +94 -167
- package/build/meta.js +1093 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +1048 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.context.d.ts +0 -5
- package/build/cjs/src/data-v1-data-service-data.context.js +0 -47
- package/build/cjs/src/data-v1-data-service-data.context.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.http.d.ts +0 -188
- package/build/cjs/src/data-v1-data-service-data.http.js +0 -872
- package/build/cjs/src/data-v1-data-service-data.http.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.meta.d.ts +0 -37
- package/build/cjs/src/data-v1-data-service-data.meta.js +0 -389
- package/build/cjs/src/data-v1-data-service-data.meta.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.public.d.ts +0 -16
- package/build/cjs/src/data-v1-data-service-data.public.js +0 -142
- package/build/cjs/src/data-v1-data-service-data.public.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.types.js +0 -23
- package/build/cjs/src/data-v1-data-service-data.types.js.map +0 -1
- package/build/cjs/src/data-v1-data-service-data.universal.js +0 -930
- package/build/cjs/src/data-v1-data-service-data.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/data-v1-data-service-data.context.d.ts +0 -5
- package/build/es/src/data-v1-data-service-data.context.js +0 -41
- package/build/es/src/data-v1-data-service-data.context.js.map +0 -1
- package/build/es/src/data-v1-data-service-data.http.d.ts +0 -188
- package/build/es/src/data-v1-data-service-data.http.js +0 -850
- package/build/es/src/data-v1-data-service-data.http.js.map +0 -1
- package/build/es/src/data-v1-data-service-data.meta.d.ts +0 -37
- package/build/es/src/data-v1-data-service-data.meta.js +0 -344
- package/build/es/src/data-v1-data-service-data.meta.js.map +0 -1
- package/build/es/src/data-v1-data-service-data.public.d.ts +0 -16
- package/build/es/src/data-v1-data-service-data.public.js +0 -117
- package/build/es/src/data-v1-data-service-data.public.js.map +0 -1
- package/build/es/src/data-v1-data-service-data.types.js +0 -20
- package/build/es/src/data-v1-data-service-data.types.js.map +0 -1
- package/build/es/src/data-v1-data-service-data.universal.js +0 -885
- package/build/es/src/data-v1-data-service-data.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.context.d.ts +0 -41
- package/build/internal/cjs/src/data-v1-data-service-data.context.js +0 -47
- package/build/internal/cjs/src/data-v1-data-service-data.context.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.http.d.ts +0 -188
- package/build/internal/cjs/src/data-v1-data-service-data.http.js +0 -872
- package/build/internal/cjs/src/data-v1-data-service-data.http.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.meta.d.ts +0 -37
- package/build/internal/cjs/src/data-v1-data-service-data.meta.js +0 -389
- package/build/internal/cjs/src/data-v1-data-service-data.meta.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.public.js +0 -142
- package/build/internal/cjs/src/data-v1-data-service-data.public.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.types.js +0 -23
- package/build/internal/cjs/src/data-v1-data-service-data.types.js.map +0 -1
- package/build/internal/cjs/src/data-v1-data-service-data.universal.d.ts +0 -1136
- package/build/internal/cjs/src/data-v1-data-service-data.universal.js +0 -930
- package/build/internal/cjs/src/data-v1-data-service-data.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.context.d.ts +0 -41
- package/build/internal/es/src/data-v1-data-service-data.context.js +0 -41
- package/build/internal/es/src/data-v1-data-service-data.context.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.http.d.ts +0 -188
- package/build/internal/es/src/data-v1-data-service-data.http.js +0 -850
- package/build/internal/es/src/data-v1-data-service-data.http.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.meta.d.ts +0 -37
- package/build/internal/es/src/data-v1-data-service-data.meta.js +0 -344
- package/build/internal/es/src/data-v1-data-service-data.meta.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.public.js +0 -117
- package/build/internal/es/src/data-v1-data-service-data.public.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.types.js +0 -20
- package/build/internal/es/src/data-v1-data-service-data.types.js.map +0 -1
- package/build/internal/es/src/data-v1-data-service-data.universal.d.ts +0 -1136
- package/build/internal/es/src/data-v1-data-service-data.universal.js +0 -885
- package/build/internal/es/src/data-v1-data-service-data.universal.js.map +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
};
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { I as InsertOptions, a as InsertResponse, U as UpdateOptions, b as UpdateResponse, S as SaveOptions, c as SaveResponse, G as GetOptions, d as GetResponse, R as RemoveOptions, e as RemoveResponse, T as TruncateOptions, Q as QueryOptions, f as QueryResponse, A as AggregateOptions, g as AggregationResponse, C as CountOptions, h as CountResponse, D as DistinctOptions, i as DistinctResponse, B as BulkInsertOptions, j as BulkInsertResponse, k as BulkSaveOptions, l as BulkSaveResponse, m as BulkUpdateOptions, n as BulkUpdateResponse, o as BulkRemoveOptions, p as BulkRemoveResponse, q as QueryReferencedOptions, r as QueryReferencedResponse, s as BulkInsertReferencesOptions, t as BulkReplaceReferencesOptions, u as BulkRemoveReferencesOptions, v as IsReferencedOptions, w as IsReferencedResponse } from './data-v1-data-service-data.universal-B0E_2MN6.mjs';
|
|
3
|
+
export { a6 as AggregationRequest, ab as ApplicationError, aa as BulkError, an as BulkInsertReferencesRequest, ap as BulkInsertReferencesResponse, a9 as BulkInsertRequest, af as BulkPatchRequest, ah as BulkPatchResponse, as as BulkRemoveReferencesRequest, at as BulkRemoveReferencesResponse, ai as BulkRemoveRequest, aj as BulkRemoveRequestEntry, aq as BulkReplaceReferencesRequest, ar as BulkReplaceReferencesResponse, ad as BulkSaveRequest, ae as BulkUpdateRequest, a7 as CountRequest, a3 as CursorPaging, a5 as Cursors, ac as Details, a8 as DistinctRequest, ag as Entry, N as GetRequest, E as InsertRequest, au as IsReferencedRequest, z as Item, F as Options, O as Order, a0 as Paging, a4 as PagingMetadataV2, P as PatchRequest, K as PatchResponse, L as PatchWhereRequest, M as PatchWhereResponse, _ as Query, ak as QueryReferencedRequest, Z as QueryRequest, a1 as QueryV2, a2 as QueryV2PagingMethodOneOf, V as ReadOptions, ao as Reference, al as ReferencedEntity, am as ReferencedEntityEntityOneOf, W as RemoveRequest, av as RestoreFromTrashBinRequest, aw as RestoreFromTrashBinResponse, J as SaveRequest, x as Segment, y as SortOrder, $ as Sorting, X as TruncateRequest, Y as TruncateResponse, H as UpdateRequest } from './data-v1-data-service-data.universal-B0E_2MN6.mjs';
|
|
4
|
+
|
|
6
5
|
/** @internal */
|
|
7
|
-
|
|
6
|
+
declare function insert$1(httpClient: HttpClient): InsertSignature;
|
|
8
7
|
interface InsertSignature {
|
|
9
8
|
/**
|
|
10
9
|
* Adds an item to a collection.
|
|
@@ -18,7 +17,7 @@ interface InsertSignature {
|
|
|
18
17
|
(options?: InsertOptions | undefined): Promise<InsertResponse>;
|
|
19
18
|
}
|
|
20
19
|
/** @internal */
|
|
21
|
-
|
|
20
|
+
declare function update$1(httpClient: HttpClient): UpdateSignature;
|
|
22
21
|
interface UpdateSignature {
|
|
23
22
|
/**
|
|
24
23
|
* Updates an item in a collection.
|
|
@@ -36,7 +35,7 @@ interface UpdateSignature {
|
|
|
36
35
|
(options?: UpdateOptions | undefined): Promise<UpdateResponse>;
|
|
37
36
|
}
|
|
38
37
|
/** @internal */
|
|
39
|
-
|
|
38
|
+
declare function save$1(httpClient: HttpClient): SaveSignature;
|
|
40
39
|
interface SaveSignature {
|
|
41
40
|
/**
|
|
42
41
|
* Inserts or updates an item in a collection.
|
|
@@ -56,7 +55,7 @@ interface SaveSignature {
|
|
|
56
55
|
(options?: SaveOptions | undefined): Promise<SaveResponse>;
|
|
57
56
|
}
|
|
58
57
|
/** @internal */
|
|
59
|
-
|
|
58
|
+
declare function get$1(httpClient: HttpClient): GetSignature;
|
|
60
59
|
interface GetSignature {
|
|
61
60
|
/**
|
|
62
61
|
* Retrieves an item from a collection.
|
|
@@ -66,7 +65,7 @@ interface GetSignature {
|
|
|
66
65
|
(itemId: string, options?: GetOptions | undefined): Promise<GetResponse>;
|
|
67
66
|
}
|
|
68
67
|
/** @internal */
|
|
69
|
-
|
|
68
|
+
declare function remove$1(httpClient: HttpClient): RemoveSignature;
|
|
70
69
|
interface RemoveSignature {
|
|
71
70
|
/**
|
|
72
71
|
* Removes an item from a collection.
|
|
@@ -81,7 +80,7 @@ interface RemoveSignature {
|
|
|
81
80
|
(itemId: string, options?: RemoveOptions | undefined): Promise<RemoveResponse>;
|
|
82
81
|
}
|
|
83
82
|
/** @internal */
|
|
84
|
-
|
|
83
|
+
declare function truncate$1(httpClient: HttpClient): TruncateSignature;
|
|
85
84
|
interface TruncateSignature {
|
|
86
85
|
/**
|
|
87
86
|
* Removes all items from a collection. Site owner (`ADMIN`) permissions are required in order to invoke this operation.
|
|
@@ -94,7 +93,7 @@ interface TruncateSignature {
|
|
|
94
93
|
*/
|
|
95
94
|
(options?: TruncateOptions | undefined): Promise<void>;
|
|
96
95
|
}
|
|
97
|
-
|
|
96
|
+
declare function query$1(httpClient: HttpClient): QuerySignature;
|
|
98
97
|
interface QuerySignature {
|
|
99
98
|
/**
|
|
100
99
|
* Retrieves a list of items, on the basis of the filtering, sorting, and paging preferences you provide.
|
|
@@ -105,13 +104,13 @@ interface QuerySignature {
|
|
|
105
104
|
(options?: QueryOptions | undefined): Promise<QueryResponse>;
|
|
106
105
|
}
|
|
107
106
|
/** @internal */
|
|
108
|
-
|
|
107
|
+
declare function aggregate$1(httpClient: HttpClient): AggregateSignature;
|
|
109
108
|
interface AggregateSignature {
|
|
110
109
|
/** @deprecated */
|
|
111
110
|
(options?: AggregateOptions | undefined): Promise<AggregationResponse>;
|
|
112
111
|
}
|
|
113
112
|
/** @internal */
|
|
114
|
-
|
|
113
|
+
declare function count$1(httpClient: HttpClient): CountSignature;
|
|
115
114
|
interface CountSignature {
|
|
116
115
|
/**
|
|
117
116
|
* Returns the number of items in a collection that match a query.
|
|
@@ -120,7 +119,7 @@ interface CountSignature {
|
|
|
120
119
|
(options?: CountOptions | undefined): Promise<CountResponse>;
|
|
121
120
|
}
|
|
122
121
|
/** @internal */
|
|
123
|
-
|
|
122
|
+
declare function distinct$1(httpClient: HttpClient): DistinctSignature;
|
|
124
123
|
interface DistinctSignature {
|
|
125
124
|
/**
|
|
126
125
|
* Retrieves a list of distinct values for a given property in all items that match a query, without duplicates.
|
|
@@ -136,7 +135,7 @@ interface DistinctSignature {
|
|
|
136
135
|
(options?: DistinctOptions | undefined): Promise<DistinctResponse>;
|
|
137
136
|
}
|
|
138
137
|
/** @internal */
|
|
139
|
-
|
|
138
|
+
declare function bulkInsert$1(httpClient: HttpClient): BulkInsertSignature;
|
|
140
139
|
interface BulkInsertSignature {
|
|
141
140
|
/**
|
|
142
141
|
* Adds multiple items to a collection.
|
|
@@ -153,7 +152,7 @@ interface BulkInsertSignature {
|
|
|
153
152
|
(options?: BulkInsertOptions | undefined): Promise<BulkInsertResponse>;
|
|
154
153
|
}
|
|
155
154
|
/** @internal */
|
|
156
|
-
|
|
155
|
+
declare function bulkSave$1(httpClient: HttpClient): BulkSaveSignature;
|
|
157
156
|
interface BulkSaveSignature {
|
|
158
157
|
/**
|
|
159
158
|
* Inserts or updates multiple items in a collection.
|
|
@@ -176,7 +175,7 @@ interface BulkSaveSignature {
|
|
|
176
175
|
(options?: BulkSaveOptions | undefined): Promise<BulkSaveResponse>;
|
|
177
176
|
}
|
|
178
177
|
/** @internal */
|
|
179
|
-
|
|
178
|
+
declare function bulkUpdate$1(httpClient: HttpClient): BulkUpdateSignature;
|
|
180
179
|
interface BulkUpdateSignature {
|
|
181
180
|
/**
|
|
182
181
|
* Updates multiple items in a collection.
|
|
@@ -197,7 +196,7 @@ interface BulkUpdateSignature {
|
|
|
197
196
|
(options?: BulkUpdateOptions | undefined): Promise<BulkUpdateResponse>;
|
|
198
197
|
}
|
|
199
198
|
/** @internal */
|
|
200
|
-
|
|
199
|
+
declare function bulkRemove$1(httpClient: HttpClient): BulkRemoveSignature;
|
|
201
200
|
interface BulkRemoveSignature {
|
|
202
201
|
/**
|
|
203
202
|
* Removes multiple items from a collection.
|
|
@@ -213,7 +212,7 @@ interface BulkRemoveSignature {
|
|
|
213
212
|
(options?: BulkRemoveOptions | undefined): Promise<BulkRemoveResponse>;
|
|
214
213
|
}
|
|
215
214
|
/** @internal */
|
|
216
|
-
|
|
215
|
+
declare function queryReferenced$1(httpClient: HttpClient): QueryReferencedSignature;
|
|
217
216
|
interface QueryReferencedSignature {
|
|
218
217
|
/**
|
|
219
218
|
* Gets the full items referenced in the specified property of an item.
|
|
@@ -226,7 +225,7 @@ interface QueryReferencedSignature {
|
|
|
226
225
|
(options?: QueryReferencedOptions | undefined): Promise<QueryReferencedResponse>;
|
|
227
226
|
}
|
|
228
227
|
/** @internal */
|
|
229
|
-
|
|
228
|
+
declare function bulkInsertReferences$1(httpClient: HttpClient): BulkInsertReferencesSignature;
|
|
230
229
|
interface BulkInsertReferencesSignature {
|
|
231
230
|
/**
|
|
232
231
|
* Inserts one or more references in the specified properties of items in a collection.
|
|
@@ -238,7 +237,7 @@ interface BulkInsertReferencesSignature {
|
|
|
238
237
|
(options?: BulkInsertReferencesOptions | undefined): Promise<void>;
|
|
239
238
|
}
|
|
240
239
|
/** @internal */
|
|
241
|
-
|
|
240
|
+
declare function bulkReplaceReferences$1(httpClient: HttpClient): BulkReplaceReferencesSignature;
|
|
242
241
|
interface BulkReplaceReferencesSignature {
|
|
243
242
|
/**
|
|
244
243
|
* Replaces references in a specified property of a specified data item.
|
|
@@ -250,7 +249,7 @@ interface BulkReplaceReferencesSignature {
|
|
|
250
249
|
(options?: BulkReplaceReferencesOptions | undefined): Promise<void>;
|
|
251
250
|
}
|
|
252
251
|
/** @internal */
|
|
253
|
-
|
|
252
|
+
declare function bulkRemoveReferences$1(httpClient: HttpClient): BulkRemoveReferencesSignature;
|
|
254
253
|
interface BulkRemoveReferencesSignature {
|
|
255
254
|
/**
|
|
256
255
|
* Removes one or more references.
|
|
@@ -259,7 +258,7 @@ interface BulkRemoveReferencesSignature {
|
|
|
259
258
|
(options?: BulkRemoveReferencesOptions | undefined): Promise<void>;
|
|
260
259
|
}
|
|
261
260
|
/** @internal */
|
|
262
|
-
|
|
261
|
+
declare function isReferenced$1(httpClient: HttpClient): IsReferencedSignature;
|
|
263
262
|
interface IsReferencedSignature {
|
|
264
263
|
/**
|
|
265
264
|
* Checks if a specific property of a referring item contains a reference to another specific item.
|
|
@@ -267,4 +266,43 @@ interface IsReferencedSignature {
|
|
|
267
266
|
*/
|
|
268
267
|
(options?: IsReferencedOptions | undefined): Promise<IsReferencedResponse>;
|
|
269
268
|
}
|
|
270
|
-
|
|
269
|
+
|
|
270
|
+
/** @internal */
|
|
271
|
+
declare const insert: MaybeContext<BuildRESTFunction<typeof insert$1> & typeof insert$1>;
|
|
272
|
+
/** @internal */
|
|
273
|
+
declare const update: MaybeContext<BuildRESTFunction<typeof update$1> & typeof update$1>;
|
|
274
|
+
/** @internal */
|
|
275
|
+
declare const save: MaybeContext<BuildRESTFunction<typeof save$1> & typeof save$1>;
|
|
276
|
+
/** @internal */
|
|
277
|
+
declare const get: MaybeContext<BuildRESTFunction<typeof get$1> & typeof get$1>;
|
|
278
|
+
/** @internal */
|
|
279
|
+
declare const remove: MaybeContext<BuildRESTFunction<typeof remove$1> & typeof remove$1>;
|
|
280
|
+
/** @internal */
|
|
281
|
+
declare const truncate: MaybeContext<BuildRESTFunction<typeof truncate$1> & typeof truncate$1>;
|
|
282
|
+
declare const query: MaybeContext<BuildRESTFunction<typeof query$1> & typeof query$1>;
|
|
283
|
+
/** @internal */
|
|
284
|
+
declare const aggregate: MaybeContext<BuildRESTFunction<typeof aggregate$1> & typeof aggregate$1>;
|
|
285
|
+
/** @internal */
|
|
286
|
+
declare const count: MaybeContext<BuildRESTFunction<typeof count$1> & typeof count$1>;
|
|
287
|
+
/** @internal */
|
|
288
|
+
declare const distinct: MaybeContext<BuildRESTFunction<typeof distinct$1> & typeof distinct$1>;
|
|
289
|
+
/** @internal */
|
|
290
|
+
declare const bulkInsert: MaybeContext<BuildRESTFunction<typeof bulkInsert$1> & typeof bulkInsert$1>;
|
|
291
|
+
/** @internal */
|
|
292
|
+
declare const bulkSave: MaybeContext<BuildRESTFunction<typeof bulkSave$1> & typeof bulkSave$1>;
|
|
293
|
+
/** @internal */
|
|
294
|
+
declare const bulkUpdate: MaybeContext<BuildRESTFunction<typeof bulkUpdate$1> & typeof bulkUpdate$1>;
|
|
295
|
+
/** @internal */
|
|
296
|
+
declare const bulkRemove: MaybeContext<BuildRESTFunction<typeof bulkRemove$1> & typeof bulkRemove$1>;
|
|
297
|
+
/** @internal */
|
|
298
|
+
declare const queryReferenced: MaybeContext<BuildRESTFunction<typeof queryReferenced$1> & typeof queryReferenced$1>;
|
|
299
|
+
/** @internal */
|
|
300
|
+
declare const bulkInsertReferences: MaybeContext<BuildRESTFunction<typeof bulkInsertReferences$1> & typeof bulkInsertReferences$1>;
|
|
301
|
+
/** @internal */
|
|
302
|
+
declare const bulkReplaceReferences: MaybeContext<BuildRESTFunction<typeof bulkReplaceReferences$1> & typeof bulkReplaceReferences$1>;
|
|
303
|
+
/** @internal */
|
|
304
|
+
declare const bulkRemoveReferences: MaybeContext<BuildRESTFunction<typeof bulkRemoveReferences$1> & typeof bulkRemoveReferences$1>;
|
|
305
|
+
/** @internal */
|
|
306
|
+
declare const isReferenced: MaybeContext<BuildRESTFunction<typeof isReferenced$1> & typeof isReferenced$1>;
|
|
307
|
+
|
|
308
|
+
export { AggregateOptions, AggregationResponse, BulkInsertOptions, BulkInsertReferencesOptions, BulkInsertResponse, BulkRemoveOptions, BulkRemoveReferencesOptions, BulkRemoveResponse, BulkReplaceReferencesOptions, BulkSaveOptions, BulkSaveResponse, BulkUpdateOptions, BulkUpdateResponse, CountOptions, CountResponse, DistinctOptions, DistinctResponse, GetOptions, GetResponse, InsertOptions, InsertResponse, IsReferencedOptions, IsReferencedResponse, QueryOptions, QueryReferencedOptions, QueryReferencedResponse, QueryResponse, RemoveOptions, RemoveResponse, SaveOptions, SaveResponse, TruncateOptions, UpdateOptions, UpdateResponse, aggregate, bulkInsert, bulkInsertReferences, bulkRemove, bulkRemoveReferences, bulkReplaceReferences, bulkSave, bulkUpdate, count, distinct, get, insert, isReferenced, query, queryReferenced, remove, save, truncate, update };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
};
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { I as InsertOptions, a as InsertResponse, U as UpdateOptions, b as UpdateResponse, S as SaveOptions, c as SaveResponse, G as GetOptions, d as GetResponse, R as RemoveOptions, e as RemoveResponse, T as TruncateOptions, Q as QueryOptions, f as QueryResponse, A as AggregateOptions, g as AggregationResponse, C as CountOptions, h as CountResponse, D as DistinctOptions, i as DistinctResponse, B as BulkInsertOptions, j as BulkInsertResponse, k as BulkSaveOptions, l as BulkSaveResponse, m as BulkUpdateOptions, n as BulkUpdateResponse, o as BulkRemoveOptions, p as BulkRemoveResponse, q as QueryReferencedOptions, r as QueryReferencedResponse, s as BulkInsertReferencesOptions, t as BulkReplaceReferencesOptions, u as BulkRemoveReferencesOptions, v as IsReferencedOptions, w as IsReferencedResponse } from './data-v1-data-service-data.universal-B0E_2MN6.js';
|
|
3
|
+
export { a6 as AggregationRequest, ab as ApplicationError, aa as BulkError, an as BulkInsertReferencesRequest, ap as BulkInsertReferencesResponse, a9 as BulkInsertRequest, af as BulkPatchRequest, ah as BulkPatchResponse, as as BulkRemoveReferencesRequest, at as BulkRemoveReferencesResponse, ai as BulkRemoveRequest, aj as BulkRemoveRequestEntry, aq as BulkReplaceReferencesRequest, ar as BulkReplaceReferencesResponse, ad as BulkSaveRequest, ae as BulkUpdateRequest, a7 as CountRequest, a3 as CursorPaging, a5 as Cursors, ac as Details, a8 as DistinctRequest, ag as Entry, N as GetRequest, E as InsertRequest, au as IsReferencedRequest, z as Item, F as Options, O as Order, a0 as Paging, a4 as PagingMetadataV2, P as PatchRequest, K as PatchResponse, L as PatchWhereRequest, M as PatchWhereResponse, _ as Query, ak as QueryReferencedRequest, Z as QueryRequest, a1 as QueryV2, a2 as QueryV2PagingMethodOneOf, V as ReadOptions, ao as Reference, al as ReferencedEntity, am as ReferencedEntityEntityOneOf, W as RemoveRequest, av as RestoreFromTrashBinRequest, aw as RestoreFromTrashBinResponse, J as SaveRequest, x as Segment, y as SortOrder, $ as Sorting, X as TruncateRequest, Y as TruncateResponse, H as UpdateRequest } from './data-v1-data-service-data.universal-B0E_2MN6.js';
|
|
4
|
+
|
|
6
5
|
/** @internal */
|
|
7
|
-
|
|
6
|
+
declare function insert$1(httpClient: HttpClient): InsertSignature;
|
|
8
7
|
interface InsertSignature {
|
|
9
8
|
/**
|
|
10
9
|
* Adds an item to a collection.
|
|
@@ -18,7 +17,7 @@ interface InsertSignature {
|
|
|
18
17
|
(options?: InsertOptions | undefined): Promise<InsertResponse>;
|
|
19
18
|
}
|
|
20
19
|
/** @internal */
|
|
21
|
-
|
|
20
|
+
declare function update$1(httpClient: HttpClient): UpdateSignature;
|
|
22
21
|
interface UpdateSignature {
|
|
23
22
|
/**
|
|
24
23
|
* Updates an item in a collection.
|
|
@@ -36,7 +35,7 @@ interface UpdateSignature {
|
|
|
36
35
|
(options?: UpdateOptions | undefined): Promise<UpdateResponse>;
|
|
37
36
|
}
|
|
38
37
|
/** @internal */
|
|
39
|
-
|
|
38
|
+
declare function save$1(httpClient: HttpClient): SaveSignature;
|
|
40
39
|
interface SaveSignature {
|
|
41
40
|
/**
|
|
42
41
|
* Inserts or updates an item in a collection.
|
|
@@ -56,7 +55,7 @@ interface SaveSignature {
|
|
|
56
55
|
(options?: SaveOptions | undefined): Promise<SaveResponse>;
|
|
57
56
|
}
|
|
58
57
|
/** @internal */
|
|
59
|
-
|
|
58
|
+
declare function get$1(httpClient: HttpClient): GetSignature;
|
|
60
59
|
interface GetSignature {
|
|
61
60
|
/**
|
|
62
61
|
* Retrieves an item from a collection.
|
|
@@ -66,7 +65,7 @@ interface GetSignature {
|
|
|
66
65
|
(itemId: string, options?: GetOptions | undefined): Promise<GetResponse>;
|
|
67
66
|
}
|
|
68
67
|
/** @internal */
|
|
69
|
-
|
|
68
|
+
declare function remove$1(httpClient: HttpClient): RemoveSignature;
|
|
70
69
|
interface RemoveSignature {
|
|
71
70
|
/**
|
|
72
71
|
* Removes an item from a collection.
|
|
@@ -81,7 +80,7 @@ interface RemoveSignature {
|
|
|
81
80
|
(itemId: string, options?: RemoveOptions | undefined): Promise<RemoveResponse>;
|
|
82
81
|
}
|
|
83
82
|
/** @internal */
|
|
84
|
-
|
|
83
|
+
declare function truncate$1(httpClient: HttpClient): TruncateSignature;
|
|
85
84
|
interface TruncateSignature {
|
|
86
85
|
/**
|
|
87
86
|
* Removes all items from a collection. Site owner (`ADMIN`) permissions are required in order to invoke this operation.
|
|
@@ -94,7 +93,7 @@ interface TruncateSignature {
|
|
|
94
93
|
*/
|
|
95
94
|
(options?: TruncateOptions | undefined): Promise<void>;
|
|
96
95
|
}
|
|
97
|
-
|
|
96
|
+
declare function query$1(httpClient: HttpClient): QuerySignature;
|
|
98
97
|
interface QuerySignature {
|
|
99
98
|
/**
|
|
100
99
|
* Retrieves a list of items, on the basis of the filtering, sorting, and paging preferences you provide.
|
|
@@ -105,13 +104,13 @@ interface QuerySignature {
|
|
|
105
104
|
(options?: QueryOptions | undefined): Promise<QueryResponse>;
|
|
106
105
|
}
|
|
107
106
|
/** @internal */
|
|
108
|
-
|
|
107
|
+
declare function aggregate$1(httpClient: HttpClient): AggregateSignature;
|
|
109
108
|
interface AggregateSignature {
|
|
110
109
|
/** @deprecated */
|
|
111
110
|
(options?: AggregateOptions | undefined): Promise<AggregationResponse>;
|
|
112
111
|
}
|
|
113
112
|
/** @internal */
|
|
114
|
-
|
|
113
|
+
declare function count$1(httpClient: HttpClient): CountSignature;
|
|
115
114
|
interface CountSignature {
|
|
116
115
|
/**
|
|
117
116
|
* Returns the number of items in a collection that match a query.
|
|
@@ -120,7 +119,7 @@ interface CountSignature {
|
|
|
120
119
|
(options?: CountOptions | undefined): Promise<CountResponse>;
|
|
121
120
|
}
|
|
122
121
|
/** @internal */
|
|
123
|
-
|
|
122
|
+
declare function distinct$1(httpClient: HttpClient): DistinctSignature;
|
|
124
123
|
interface DistinctSignature {
|
|
125
124
|
/**
|
|
126
125
|
* Retrieves a list of distinct values for a given property in all items that match a query, without duplicates.
|
|
@@ -136,7 +135,7 @@ interface DistinctSignature {
|
|
|
136
135
|
(options?: DistinctOptions | undefined): Promise<DistinctResponse>;
|
|
137
136
|
}
|
|
138
137
|
/** @internal */
|
|
139
|
-
|
|
138
|
+
declare function bulkInsert$1(httpClient: HttpClient): BulkInsertSignature;
|
|
140
139
|
interface BulkInsertSignature {
|
|
141
140
|
/**
|
|
142
141
|
* Adds multiple items to a collection.
|
|
@@ -153,7 +152,7 @@ interface BulkInsertSignature {
|
|
|
153
152
|
(options?: BulkInsertOptions | undefined): Promise<BulkInsertResponse>;
|
|
154
153
|
}
|
|
155
154
|
/** @internal */
|
|
156
|
-
|
|
155
|
+
declare function bulkSave$1(httpClient: HttpClient): BulkSaveSignature;
|
|
157
156
|
interface BulkSaveSignature {
|
|
158
157
|
/**
|
|
159
158
|
* Inserts or updates multiple items in a collection.
|
|
@@ -176,7 +175,7 @@ interface BulkSaveSignature {
|
|
|
176
175
|
(options?: BulkSaveOptions | undefined): Promise<BulkSaveResponse>;
|
|
177
176
|
}
|
|
178
177
|
/** @internal */
|
|
179
|
-
|
|
178
|
+
declare function bulkUpdate$1(httpClient: HttpClient): BulkUpdateSignature;
|
|
180
179
|
interface BulkUpdateSignature {
|
|
181
180
|
/**
|
|
182
181
|
* Updates multiple items in a collection.
|
|
@@ -197,7 +196,7 @@ interface BulkUpdateSignature {
|
|
|
197
196
|
(options?: BulkUpdateOptions | undefined): Promise<BulkUpdateResponse>;
|
|
198
197
|
}
|
|
199
198
|
/** @internal */
|
|
200
|
-
|
|
199
|
+
declare function bulkRemove$1(httpClient: HttpClient): BulkRemoveSignature;
|
|
201
200
|
interface BulkRemoveSignature {
|
|
202
201
|
/**
|
|
203
202
|
* Removes multiple items from a collection.
|
|
@@ -213,7 +212,7 @@ interface BulkRemoveSignature {
|
|
|
213
212
|
(options?: BulkRemoveOptions | undefined): Promise<BulkRemoveResponse>;
|
|
214
213
|
}
|
|
215
214
|
/** @internal */
|
|
216
|
-
|
|
215
|
+
declare function queryReferenced$1(httpClient: HttpClient): QueryReferencedSignature;
|
|
217
216
|
interface QueryReferencedSignature {
|
|
218
217
|
/**
|
|
219
218
|
* Gets the full items referenced in the specified property of an item.
|
|
@@ -226,7 +225,7 @@ interface QueryReferencedSignature {
|
|
|
226
225
|
(options?: QueryReferencedOptions | undefined): Promise<QueryReferencedResponse>;
|
|
227
226
|
}
|
|
228
227
|
/** @internal */
|
|
229
|
-
|
|
228
|
+
declare function bulkInsertReferences$1(httpClient: HttpClient): BulkInsertReferencesSignature;
|
|
230
229
|
interface BulkInsertReferencesSignature {
|
|
231
230
|
/**
|
|
232
231
|
* Inserts one or more references in the specified properties of items in a collection.
|
|
@@ -238,7 +237,7 @@ interface BulkInsertReferencesSignature {
|
|
|
238
237
|
(options?: BulkInsertReferencesOptions | undefined): Promise<void>;
|
|
239
238
|
}
|
|
240
239
|
/** @internal */
|
|
241
|
-
|
|
240
|
+
declare function bulkReplaceReferences$1(httpClient: HttpClient): BulkReplaceReferencesSignature;
|
|
242
241
|
interface BulkReplaceReferencesSignature {
|
|
243
242
|
/**
|
|
244
243
|
* Replaces references in a specified property of a specified data item.
|
|
@@ -250,7 +249,7 @@ interface BulkReplaceReferencesSignature {
|
|
|
250
249
|
(options?: BulkReplaceReferencesOptions | undefined): Promise<void>;
|
|
251
250
|
}
|
|
252
251
|
/** @internal */
|
|
253
|
-
|
|
252
|
+
declare function bulkRemoveReferences$1(httpClient: HttpClient): BulkRemoveReferencesSignature;
|
|
254
253
|
interface BulkRemoveReferencesSignature {
|
|
255
254
|
/**
|
|
256
255
|
* Removes one or more references.
|
|
@@ -259,7 +258,7 @@ interface BulkRemoveReferencesSignature {
|
|
|
259
258
|
(options?: BulkRemoveReferencesOptions | undefined): Promise<void>;
|
|
260
259
|
}
|
|
261
260
|
/** @internal */
|
|
262
|
-
|
|
261
|
+
declare function isReferenced$1(httpClient: HttpClient): IsReferencedSignature;
|
|
263
262
|
interface IsReferencedSignature {
|
|
264
263
|
/**
|
|
265
264
|
* Checks if a specific property of a referring item contains a reference to another specific item.
|
|
@@ -267,4 +266,43 @@ interface IsReferencedSignature {
|
|
|
267
266
|
*/
|
|
268
267
|
(options?: IsReferencedOptions | undefined): Promise<IsReferencedResponse>;
|
|
269
268
|
}
|
|
270
|
-
|
|
269
|
+
|
|
270
|
+
/** @internal */
|
|
271
|
+
declare const insert: MaybeContext<BuildRESTFunction<typeof insert$1> & typeof insert$1>;
|
|
272
|
+
/** @internal */
|
|
273
|
+
declare const update: MaybeContext<BuildRESTFunction<typeof update$1> & typeof update$1>;
|
|
274
|
+
/** @internal */
|
|
275
|
+
declare const save: MaybeContext<BuildRESTFunction<typeof save$1> & typeof save$1>;
|
|
276
|
+
/** @internal */
|
|
277
|
+
declare const get: MaybeContext<BuildRESTFunction<typeof get$1> & typeof get$1>;
|
|
278
|
+
/** @internal */
|
|
279
|
+
declare const remove: MaybeContext<BuildRESTFunction<typeof remove$1> & typeof remove$1>;
|
|
280
|
+
/** @internal */
|
|
281
|
+
declare const truncate: MaybeContext<BuildRESTFunction<typeof truncate$1> & typeof truncate$1>;
|
|
282
|
+
declare const query: MaybeContext<BuildRESTFunction<typeof query$1> & typeof query$1>;
|
|
283
|
+
/** @internal */
|
|
284
|
+
declare const aggregate: MaybeContext<BuildRESTFunction<typeof aggregate$1> & typeof aggregate$1>;
|
|
285
|
+
/** @internal */
|
|
286
|
+
declare const count: MaybeContext<BuildRESTFunction<typeof count$1> & typeof count$1>;
|
|
287
|
+
/** @internal */
|
|
288
|
+
declare const distinct: MaybeContext<BuildRESTFunction<typeof distinct$1> & typeof distinct$1>;
|
|
289
|
+
/** @internal */
|
|
290
|
+
declare const bulkInsert: MaybeContext<BuildRESTFunction<typeof bulkInsert$1> & typeof bulkInsert$1>;
|
|
291
|
+
/** @internal */
|
|
292
|
+
declare const bulkSave: MaybeContext<BuildRESTFunction<typeof bulkSave$1> & typeof bulkSave$1>;
|
|
293
|
+
/** @internal */
|
|
294
|
+
declare const bulkUpdate: MaybeContext<BuildRESTFunction<typeof bulkUpdate$1> & typeof bulkUpdate$1>;
|
|
295
|
+
/** @internal */
|
|
296
|
+
declare const bulkRemove: MaybeContext<BuildRESTFunction<typeof bulkRemove$1> & typeof bulkRemove$1>;
|
|
297
|
+
/** @internal */
|
|
298
|
+
declare const queryReferenced: MaybeContext<BuildRESTFunction<typeof queryReferenced$1> & typeof queryReferenced$1>;
|
|
299
|
+
/** @internal */
|
|
300
|
+
declare const bulkInsertReferences: MaybeContext<BuildRESTFunction<typeof bulkInsertReferences$1> & typeof bulkInsertReferences$1>;
|
|
301
|
+
/** @internal */
|
|
302
|
+
declare const bulkReplaceReferences: MaybeContext<BuildRESTFunction<typeof bulkReplaceReferences$1> & typeof bulkReplaceReferences$1>;
|
|
303
|
+
/** @internal */
|
|
304
|
+
declare const bulkRemoveReferences: MaybeContext<BuildRESTFunction<typeof bulkRemoveReferences$1> & typeof bulkRemoveReferences$1>;
|
|
305
|
+
/** @internal */
|
|
306
|
+
declare const isReferenced: MaybeContext<BuildRESTFunction<typeof isReferenced$1> & typeof isReferenced$1>;
|
|
307
|
+
|
|
308
|
+
export { AggregateOptions, AggregationResponse, BulkInsertOptions, BulkInsertReferencesOptions, BulkInsertResponse, BulkRemoveOptions, BulkRemoveReferencesOptions, BulkRemoveResponse, BulkReplaceReferencesOptions, BulkSaveOptions, BulkSaveResponse, BulkUpdateOptions, BulkUpdateResponse, CountOptions, CountResponse, DistinctOptions, DistinctResponse, GetOptions, GetResponse, InsertOptions, InsertResponse, IsReferencedOptions, IsReferencedResponse, QueryOptions, QueryReferencedOptions, QueryReferencedResponse, QueryResponse, RemoveOptions, RemoveResponse, SaveOptions, SaveResponse, TruncateOptions, UpdateOptions, UpdateResponse, aggregate, bulkInsert, bulkInsertReferences, bulkRemove, bulkRemoveReferences, bulkReplaceReferences, bulkSave, bulkUpdate, count, distinct, get, insert, isReferenced, query, queryReferenced, remove, save, truncate, update };
|