@wix/auto_sdk_data-backend-public-sdk-poc_data 1.0.0
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/data-v1-data-service-data.context.d.ts +5 -0
- package/build/cjs/src/data-v1-data-service-data.context.js +47 -0
- package/build/cjs/src/data-v1-data-service-data.context.js.map +1 -0
- package/build/cjs/src/data-v1-data-service-data.http.d.ts +161 -0
- package/build/cjs/src/data-v1-data-service-data.http.js +845 -0
- package/build/cjs/src/data-v1-data-service-data.http.js.map +1 -0
- package/build/cjs/src/data-v1-data-service-data.meta.d.ts +37 -0
- package/build/cjs/src/data-v1-data-service-data.meta.js +389 -0
- package/build/cjs/src/data-v1-data-service-data.meta.js.map +1 -0
- package/build/cjs/src/data-v1-data-service-data.public.d.ts +15 -0
- package/build/cjs/src/data-v1-data-service-data.public.js +142 -0
- package/build/cjs/src/data-v1-data-service-data.public.js.map +1 -0
- package/build/cjs/src/data-v1-data-service-data.types.d.ts +609 -0
- package/build/cjs/src/data-v1-data-service-data.types.js +23 -0
- package/build/cjs/src/data-v1-data-service-data.types.js.map +1 -0
- package/build/cjs/src/data-v1-data-service-data.universal.d.ts +828 -0
- package/build/cjs/src/data-v1-data-service-data.universal.js +908 -0
- package/build/cjs/src/data-v1-data-service-data.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/data-v1-data-service-data.context.d.ts +5 -0
- package/build/es/src/data-v1-data-service-data.context.js +41 -0
- package/build/es/src/data-v1-data-service-data.context.js.map +1 -0
- package/build/es/src/data-v1-data-service-data.http.d.ts +161 -0
- package/build/es/src/data-v1-data-service-data.http.js +823 -0
- package/build/es/src/data-v1-data-service-data.http.js.map +1 -0
- package/build/es/src/data-v1-data-service-data.meta.d.ts +37 -0
- package/build/es/src/data-v1-data-service-data.meta.js +344 -0
- package/build/es/src/data-v1-data-service-data.meta.js.map +1 -0
- package/build/es/src/data-v1-data-service-data.public.d.ts +15 -0
- package/build/es/src/data-v1-data-service-data.public.js +117 -0
- package/build/es/src/data-v1-data-service-data.public.js.map +1 -0
- package/build/es/src/data-v1-data-service-data.types.d.ts +609 -0
- package/build/es/src/data-v1-data-service-data.types.js +20 -0
- package/build/es/src/data-v1-data-service-data.types.js.map +1 -0
- package/build/es/src/data-v1-data-service-data.universal.d.ts +828 -0
- package/build/es/src/data-v1-data-service-data.universal.js +863 -0
- package/build/es/src/data-v1-data-service-data.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/data-v1-data-service-data.context.d.ts +41 -0
- package/build/internal/cjs/src/data-v1-data-service-data.context.js +47 -0
- package/build/internal/cjs/src/data-v1-data-service-data.context.js.map +1 -0
- package/build/internal/cjs/src/data-v1-data-service-data.http.d.ts +161 -0
- package/build/internal/cjs/src/data-v1-data-service-data.http.js +845 -0
- package/build/internal/cjs/src/data-v1-data-service-data.http.js.map +1 -0
- package/build/internal/cjs/src/data-v1-data-service-data.meta.d.ts +37 -0
- package/build/internal/cjs/src/data-v1-data-service-data.meta.js +389 -0
- package/build/internal/cjs/src/data-v1-data-service-data.meta.js.map +1 -0
- package/build/internal/cjs/src/data-v1-data-service-data.public.d.ts +252 -0
- package/build/internal/cjs/src/data-v1-data-service-data.public.js +142 -0
- package/build/internal/cjs/src/data-v1-data-service-data.public.js.map +1 -0
- package/build/internal/cjs/src/data-v1-data-service-data.types.d.ts +609 -0
- package/build/internal/cjs/src/data-v1-data-service-data.types.js +23 -0
- package/build/internal/cjs/src/data-v1-data-service-data.types.js.map +1 -0
- package/build/internal/cjs/src/data-v1-data-service-data.universal.d.ts +1139 -0
- package/build/internal/cjs/src/data-v1-data-service-data.universal.js +908 -0
- package/build/internal/cjs/src/data-v1-data-service-data.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/data-v1-data-service-data.context.d.ts +41 -0
- package/build/internal/es/src/data-v1-data-service-data.context.js +41 -0
- package/build/internal/es/src/data-v1-data-service-data.context.js.map +1 -0
- package/build/internal/es/src/data-v1-data-service-data.http.d.ts +161 -0
- package/build/internal/es/src/data-v1-data-service-data.http.js +823 -0
- package/build/internal/es/src/data-v1-data-service-data.http.js.map +1 -0
- package/build/internal/es/src/data-v1-data-service-data.meta.d.ts +37 -0
- package/build/internal/es/src/data-v1-data-service-data.meta.js +344 -0
- package/build/internal/es/src/data-v1-data-service-data.meta.js.map +1 -0
- package/build/internal/es/src/data-v1-data-service-data.public.d.ts +252 -0
- package/build/internal/es/src/data-v1-data-service-data.public.js +117 -0
- package/build/internal/es/src/data-v1-data-service-data.public.js.map +1 -0
- package/build/internal/es/src/data-v1-data-service-data.types.d.ts +609 -0
- package/build/internal/es/src/data-v1-data-service-data.types.js +20 -0
- package/build/internal/es/src/data-v1-data-service-data.types.js.map +1 -0
- package/build/internal/es/src/data-v1-data-service-data.universal.d.ts +1139 -0
- package/build/internal/es/src/data-v1-data-service-data.universal.js +863 -0
- package/build/internal/es/src/data-v1-data-service-data.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { AggregateOptions, AggregationResponse, BulkInsertOptions, BulkInsertReferencesOptions, BulkInsertResponse, BulkInsertResponseNonNullableFields, BulkRemoveOptions, BulkRemoveReferencesOptions, BulkRemoveResponse, BulkRemoveResponseNonNullableFields, BulkReplaceReferencesOptions, BulkSaveOptions, BulkSaveResponse, BulkSaveResponseNonNullableFields, BulkUpdateOptions, BulkUpdateResponse, BulkUpdateResponseNonNullableFields, CountOptions, CountResponse, CountResponseNonNullableFields, DistinctOptions, DistinctResponse, GetOptions, GetResponse, InsertOptions, InsertResponse, IsReferencedOptions, IsReferencedResponse, IsReferencedResponseNonNullableFields, QueryOptions, QueryReferencedOptions, QueryReferencedResponse, QueryReferencedResponseNonNullableFields, QueryResponse, QueryResponseNonNullableFields, RemoveOptions, RemoveResponse, SaveOptions, SaveResponse, TruncateOptions, UpdateOptions, UpdateResponse } from './data-v1-data-service-data.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare function insert(httpClient: HttpClient): InsertSignature;
|
|
8
|
+
interface InsertSignature {
|
|
9
|
+
/**
|
|
10
|
+
* Adds an item to a collection.
|
|
11
|
+
*
|
|
12
|
+
* When an item is inserted into a collection, the following properties and values are added to it:
|
|
13
|
+
* * `_id`: A unique identifier for an item in a collection. You can optionally provide your own ID when inserting the item. If you specify an ID that already exists in the collection, the insertion will fail.
|
|
14
|
+
* * `_createdDate`: The date the item was added to the collection.
|
|
15
|
+
* * `_updatedDate`: The date the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have the same value.
|
|
16
|
+
*/
|
|
17
|
+
(options?: InsertOptions | undefined): Promise<InsertResponse>;
|
|
18
|
+
}
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare function update(httpClient: HttpClient): UpdateSignature;
|
|
21
|
+
interface UpdateSignature {
|
|
22
|
+
/**
|
|
23
|
+
* Updates an item in a collection.
|
|
24
|
+
*
|
|
25
|
+
* An item ID must be submitted as part of the request, either as a path parameter or within the `item` body parameter. If an item is found in the specified collection with
|
|
26
|
+
* the same ID, that item is updated. If the collection doesn't contain an item with that ID, the request fails.
|
|
27
|
+
*
|
|
28
|
+
* When an item is updated, its `_updatedDate` property is changed to the current date.
|
|
29
|
+
*
|
|
30
|
+
* **Note:**
|
|
31
|
+
* After an item is updated, it only contains the properties included in the Update Data Item request. If the existing item has properties with values and those properties
|
|
32
|
+
* aren't included in the updated item, their values are lost.
|
|
33
|
+
*/
|
|
34
|
+
(options?: UpdateOptions | undefined): Promise<UpdateResponse>;
|
|
35
|
+
}
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare function save(httpClient: HttpClient): SaveSignature;
|
|
38
|
+
interface SaveSignature {
|
|
39
|
+
/**
|
|
40
|
+
* Inserts or updates an item in a collection.
|
|
41
|
+
*
|
|
42
|
+
* The Save Data Item endpoint inserts or updates the specified item, depending on whether it already exists in the collection.
|
|
43
|
+
*
|
|
44
|
+
* * If you don't provide an ID, a new item is created.
|
|
45
|
+
*
|
|
46
|
+
* * If you provide an ID that doesn't exist in the collection, a new item is created with that ID.
|
|
47
|
+
*
|
|
48
|
+
* * If an item with the ID you provide already exists in the collection, that item is updated. When an item is updated, its `_updatedDate` property is changed to the current date.
|
|
49
|
+
*
|
|
50
|
+
* ***Note:*** When you provide an item with an ID that already exists in the collection, the item you provide completely replaces the existing item with that ID.
|
|
51
|
+
* This means that all of the item's previous properties and values are lost.
|
|
52
|
+
*/
|
|
53
|
+
(options?: SaveOptions | undefined): Promise<SaveResponse>;
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare function get(httpClient: HttpClient): GetSignature;
|
|
57
|
+
interface GetSignature {
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves an item from a collection.
|
|
60
|
+
* @param - ID of the item to retrieve.
|
|
61
|
+
*/
|
|
62
|
+
(itemId: string, options?: GetOptions | undefined): Promise<GetResponse>;
|
|
63
|
+
}
|
|
64
|
+
/** @internal */
|
|
65
|
+
export declare function remove(httpClient: HttpClient): RemoveSignature;
|
|
66
|
+
interface RemoveSignature {
|
|
67
|
+
/**
|
|
68
|
+
* Removes an item from a collection.
|
|
69
|
+
*
|
|
70
|
+
* If any items in other collections reference the removed item in a reference or multi-reference field, the field is cleared.
|
|
71
|
+
*
|
|
72
|
+
* **Note:**
|
|
73
|
+
* Once an item has been removed from a collection, it can't be restored.
|
|
74
|
+
* @param - ID of the item to remove.
|
|
75
|
+
*/
|
|
76
|
+
(itemId: string, options?: RemoveOptions | undefined): Promise<RemoveResponse>;
|
|
77
|
+
}
|
|
78
|
+
/** @internal */
|
|
79
|
+
export declare function truncate(httpClient: HttpClient): TruncateSignature;
|
|
80
|
+
interface TruncateSignature {
|
|
81
|
+
/**
|
|
82
|
+
* Removes all items from a collection. Site owner (`ADMIN`) permissions are required in order to invoke this operation.
|
|
83
|
+
*
|
|
84
|
+
* If any items in other collections reference the removed items in reference or multi-reference fields, those fields are cleared.
|
|
85
|
+
*
|
|
86
|
+
* **Note:**
|
|
87
|
+
* Once items have been removed from a collection, they can't be restored.
|
|
88
|
+
*/
|
|
89
|
+
(options?: TruncateOptions | undefined): Promise<void>;
|
|
90
|
+
}
|
|
91
|
+
export declare function query(httpClient: HttpClient): QuerySignature;
|
|
92
|
+
interface QuerySignature {
|
|
93
|
+
/**
|
|
94
|
+
* Retrieves a list of items, on the basis of the filtering, sorting, and paging preferences you provide.
|
|
95
|
+
*
|
|
96
|
+
* For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
97
|
+
*/
|
|
98
|
+
(options?: QueryOptions | undefined): Promise<QueryResponse & QueryResponseNonNullableFields>;
|
|
99
|
+
}
|
|
100
|
+
/** @internal */
|
|
101
|
+
export declare function aggregate(httpClient: HttpClient): AggregateSignature;
|
|
102
|
+
interface AggregateSignature {
|
|
103
|
+
/** */
|
|
104
|
+
(options?: AggregateOptions | undefined): Promise<AggregationResponse>;
|
|
105
|
+
}
|
|
106
|
+
/** @internal */
|
|
107
|
+
export declare function count(httpClient: HttpClient): CountSignature;
|
|
108
|
+
interface CountSignature {
|
|
109
|
+
/**
|
|
110
|
+
* Returns the number of items in a collection that match a query.
|
|
111
|
+
*/
|
|
112
|
+
(options?: CountOptions | undefined): Promise<CountResponse & CountResponseNonNullableFields>;
|
|
113
|
+
}
|
|
114
|
+
/** @internal */
|
|
115
|
+
export declare function distinct(httpClient: HttpClient): DistinctSignature;
|
|
116
|
+
interface DistinctSignature {
|
|
117
|
+
/**
|
|
118
|
+
* Retrieves a list of distinct values for a given property in all items that match a query, without duplicates.
|
|
119
|
+
*
|
|
120
|
+
* As with the [Query Data Items]() endpoint, this endpoint retrieves items based on the filtering, sorting, and paging preferences you provide.
|
|
121
|
+
* However, the Query Distinct Values endpoint doesn't return all of the full items that match the query.
|
|
122
|
+
* Rather, it returns all unique values of the property you specify in `propertyName` for items that match the query.
|
|
123
|
+
* If more than one item has the same value for that property, that value appears only once.
|
|
124
|
+
*
|
|
125
|
+
* For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
126
|
+
*/
|
|
127
|
+
(options?: DistinctOptions | undefined): Promise<DistinctResponse>;
|
|
128
|
+
}
|
|
129
|
+
/** @internal */
|
|
130
|
+
export declare function bulkInsert(httpClient: HttpClient): BulkInsertSignature;
|
|
131
|
+
interface BulkInsertSignature {
|
|
132
|
+
/**
|
|
133
|
+
* Adds multiple items to a collection.
|
|
134
|
+
*
|
|
135
|
+
* When each item is inserted into a collection, the following properties and values are added to it:
|
|
136
|
+
* * `_id`: A unique identifier for an item in a collection. You can optionally provide your own ID when inserting the item. If you specify an ID that already exists in the collection, the insertion will fail.
|
|
137
|
+
* * `_createdDate`: The date the item was added to the collection.
|
|
138
|
+
* * `_updatedDate`: The date the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have the same value.
|
|
139
|
+
*
|
|
140
|
+
* The endpoint returns a list of the IDs of items successfully inserted in `insertedItemIds`.
|
|
141
|
+
* When any items can't be inserted, error details are provided for each failed item in `errors`.
|
|
142
|
+
*/
|
|
143
|
+
(options?: BulkInsertOptions | undefined): Promise<BulkInsertResponse & BulkInsertResponseNonNullableFields>;
|
|
144
|
+
}
|
|
145
|
+
/** @internal */
|
|
146
|
+
export declare function bulkSave(httpClient: HttpClient): BulkSaveSignature;
|
|
147
|
+
interface BulkSaveSignature {
|
|
148
|
+
/**
|
|
149
|
+
* Inserts or updates multiple items in a collection.
|
|
150
|
+
*
|
|
151
|
+
* The Bulk Save Data Items endpoint inserts or updates each item, depending on whether it already exists in the collection. For each item:
|
|
152
|
+
*
|
|
153
|
+
* * If you don't provide an ID, a new item is created.
|
|
154
|
+
*
|
|
155
|
+
* * If you provide an ID that doesn't exist in the collection, a new item is created with that ID.
|
|
156
|
+
*
|
|
157
|
+
* * If an item with the ID you provide already exists in the collection, that item is updated. When an item is updated, its `_updatedDate` property is changed to the current date.
|
|
158
|
+
*
|
|
159
|
+
* The endpoint returns a list of the IDs of items successfully inserted in `insertedItemIds` and a list of the IDs of items successfully updated in `updatedItemIds`.
|
|
160
|
+
* When any items can't be inserted or updated, error details are provided for each failed item in `errors`.
|
|
161
|
+
*
|
|
162
|
+
* ***Note:*** When you provide an item with an ID that already exists in the collection, the item you provide completely replaces the existing item with that ID.
|
|
163
|
+
* This means that all of the item's previous properties and values are lost.
|
|
164
|
+
*/
|
|
165
|
+
(options?: BulkSaveOptions | undefined): Promise<BulkSaveResponse & BulkSaveResponseNonNullableFields>;
|
|
166
|
+
}
|
|
167
|
+
/** @internal */
|
|
168
|
+
export declare function bulkUpdate(httpClient: HttpClient): BulkUpdateSignature;
|
|
169
|
+
interface BulkUpdateSignature {
|
|
170
|
+
/**
|
|
171
|
+
* Updates multiple items in a collection.
|
|
172
|
+
*
|
|
173
|
+
* Each item in the request must include an ID. If an item is found in the specified collection with
|
|
174
|
+
* the same ID, that item is updated. If the collection doesn't contain an item with that ID, the update fails.
|
|
175
|
+
*
|
|
176
|
+
* When an item is updated, its `_updatedDate` property is changed to the current date.
|
|
177
|
+
*
|
|
178
|
+
* The endpoint returns a list of the IDs of items successfully updated in `updatedItemIds`.
|
|
179
|
+
* When any items can't be inserted, error details are provided for each failed item in `errors`.
|
|
180
|
+
*
|
|
181
|
+
* **Note:**
|
|
182
|
+
* After each item is updated, it only contains the properties included in the Update Data Item request. If the existing item has properties with values and those properties
|
|
183
|
+
* aren't included in the updated item, their values are lost.
|
|
184
|
+
*/
|
|
185
|
+
(options?: BulkUpdateOptions | undefined): Promise<BulkUpdateResponse & BulkUpdateResponseNonNullableFields>;
|
|
186
|
+
}
|
|
187
|
+
/** @internal */
|
|
188
|
+
export declare function bulkRemove(httpClient: HttpClient): BulkRemoveSignature;
|
|
189
|
+
interface BulkRemoveSignature {
|
|
190
|
+
/**
|
|
191
|
+
* Removes multiple items from a collection.
|
|
192
|
+
*
|
|
193
|
+
* If any items in other collections reference the removed items in reference or multi-reference fields, the fields are cleared.
|
|
194
|
+
*
|
|
195
|
+
* The endpoint returns a list of the IDs of items successfully removed in `removedItemIds`.
|
|
196
|
+
* When any items can't be removed, error details are provided for each failed item in `errors`.
|
|
197
|
+
*
|
|
198
|
+
* **Note:** Once an item has been removed from a collection, it can't be restored.
|
|
199
|
+
*/
|
|
200
|
+
(options?: BulkRemoveOptions | undefined): Promise<BulkRemoveResponse & BulkRemoveResponseNonNullableFields>;
|
|
201
|
+
}
|
|
202
|
+
/** @internal */
|
|
203
|
+
export declare function queryReferenced(httpClient: HttpClient): QueryReferencedSignature;
|
|
204
|
+
interface QueryReferencedSignature {
|
|
205
|
+
/**
|
|
206
|
+
* Gets the full items referenced in the specified property of an item.
|
|
207
|
+
*
|
|
208
|
+
* For example, suppose you have a **Movies** collection with an **Actors** field that contains references to items in a **People** collection.
|
|
209
|
+
* Querying the **Movies** collection using the Query Referenced Data Items endpoint returns the relevant **People** items referenced in the **Actors** field of the specified **Movie** item.
|
|
210
|
+
* This gives you information from the **People** collection about each of the actors in the specified movie.
|
|
211
|
+
*/
|
|
212
|
+
(options?: QueryReferencedOptions | undefined): Promise<QueryReferencedResponse & QueryReferencedResponseNonNullableFields>;
|
|
213
|
+
}
|
|
214
|
+
/** @internal */
|
|
215
|
+
export declare function bulkInsertReferences(httpClient: HttpClient): BulkInsertReferencesSignature;
|
|
216
|
+
interface BulkInsertReferencesSignature {
|
|
217
|
+
/**
|
|
218
|
+
* Inserts one or more references in the specified properties of items in a collection.
|
|
219
|
+
*
|
|
220
|
+
* The Bulk Insert References endpoint adds one or more references to a collection.
|
|
221
|
+
* Each new reference in the `references` field specifies a referring item's ID, the property in which to insert the reference, and the ID of the referenced item.
|
|
222
|
+
*/
|
|
223
|
+
(options?: BulkInsertReferencesOptions | undefined): Promise<void>;
|
|
224
|
+
}
|
|
225
|
+
/** @internal */
|
|
226
|
+
export declare function bulkReplaceReferences(httpClient: HttpClient): BulkReplaceReferencesSignature;
|
|
227
|
+
interface BulkReplaceReferencesSignature {
|
|
228
|
+
/**
|
|
229
|
+
* Replaces references in a specified property of a specified data item.
|
|
230
|
+
*
|
|
231
|
+
* The Bulk Replace References endpoint replaces the existing reference or references contained in the property specified in `propertyName` within the data item specified in `referringItemId`.
|
|
232
|
+
* The endpoint removes existing references and in their place it adds references to the items specified in `newReferencedItemIds`.
|
|
233
|
+
*/
|
|
234
|
+
(options?: BulkReplaceReferencesOptions | undefined): Promise<void>;
|
|
235
|
+
}
|
|
236
|
+
/** @internal */
|
|
237
|
+
export declare function bulkRemoveReferences(httpClient: HttpClient): BulkRemoveReferencesSignature;
|
|
238
|
+
interface BulkRemoveReferencesSignature {
|
|
239
|
+
/**
|
|
240
|
+
* Removes one or more references.
|
|
241
|
+
*/
|
|
242
|
+
(options?: BulkRemoveReferencesOptions | undefined): Promise<void>;
|
|
243
|
+
}
|
|
244
|
+
/** @internal */
|
|
245
|
+
export declare function isReferenced(httpClient: HttpClient): IsReferencedSignature;
|
|
246
|
+
interface IsReferencedSignature {
|
|
247
|
+
/**
|
|
248
|
+
* Checks if a specific property of a referring item contains a reference to another specific item.
|
|
249
|
+
*/
|
|
250
|
+
(options?: IsReferencedOptions | undefined): Promise<IsReferencedResponse & IsReferencedResponseNonNullableFields>;
|
|
251
|
+
}
|
|
252
|
+
export { AggregateOptions, AggregationRequest, AggregationResponse, ApplicationError, BulkError, BulkInsertOptions, BulkInsertReferencesOptions, BulkInsertReferencesRequest, BulkInsertReferencesResponse, BulkInsertRequest, BulkInsertResponse, BulkInsertResponseNonNullableFields, BulkPatchRequest, BulkPatchResponse, BulkRemoveOptions, BulkRemoveReferencesOptions, BulkRemoveReferencesRequest, BulkRemoveReferencesResponse, BulkRemoveRequest, BulkRemoveRequestEntry, BulkRemoveResponse, BulkRemoveResponseNonNullableFields, BulkReplaceReferencesOptions, BulkReplaceReferencesRequest, BulkReplaceReferencesResponse, BulkSaveOptions, BulkSaveRequest, BulkSaveResponse, BulkSaveResponseNonNullableFields, BulkUpdateOptions, BulkUpdateRequest, BulkUpdateResponse, BulkUpdateResponseNonNullableFields, CountOptions, CountRequest, CountResponse, CountResponseNonNullableFields, CursorPaging, Cursors, Details, DistinctOptions, DistinctRequest, DistinctResponse, Entry, GetOptions, GetRequest, GetResponse, InsertOptions, InsertRequest, InsertResponse, IsReferencedOptions, IsReferencedRequest, IsReferencedResponse, IsReferencedResponseNonNullableFields, Item, Options, Order, Paging, PagingMetadataV2, PatchRequest, PatchResponse, PatchWhereRequest, PatchWhereResponse, Query, QueryOptions, QueryReferencedOptions, QueryReferencedRequest, QueryReferencedResponse, QueryReferencedResponseNonNullableFields, QueryRequest, QueryResponse, QueryResponseNonNullableFields, QueryV2, QueryV2PagingMethodOneOf, ReadOptions, Reference, ReferencedEntity, ReferencedEntityEntityOneOf, RemoveOptions, RemoveRequest, RemoveResponse, RestoreFromTrashBinRequest, RestoreFromTrashBinResponse, SaveOptions, SaveRequest, SaveResponse, Segment, SortOrder, Sorting, TruncateOptions, TruncateRequest, TruncateResponse, UpdateOptions, UpdateRequest, UpdateResponse, } from './data-v1-data-service-data.universal.js';
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { aggregate as universalAggregate, bulkInsert as universalBulkInsert, bulkInsertReferences as universalBulkInsertReferences, bulkRemove as universalBulkRemove, bulkRemoveReferences as universalBulkRemoveReferences, bulkReplaceReferences as universalBulkReplaceReferences, bulkSave as universalBulkSave, bulkUpdate as universalBulkUpdate, count as universalCount, distinct as universalDistinct, get as universalGet, insert as universalInsert, isReferenced as universalIsReferenced, query as universalQuery, queryReferenced as universalQueryReferenced, remove as universalRemove, save as universalSave, truncate as universalTruncate, update as universalUpdate, } from './data-v1-data-service-data.universal.js';
|
|
2
|
+
export const __metadata = { PACKAGE_NAME: '@wix/data-backend-public-sdk-poc' };
|
|
3
|
+
/** @internal */
|
|
4
|
+
export function insert(httpClient) {
|
|
5
|
+
return (options) => universalInsert(options,
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
{ httpClient });
|
|
8
|
+
}
|
|
9
|
+
/** @internal */
|
|
10
|
+
export function update(httpClient) {
|
|
11
|
+
return (options) => universalUpdate(options,
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
{ httpClient });
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export function save(httpClient) {
|
|
17
|
+
return (options) => universalSave(options,
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
{ httpClient });
|
|
20
|
+
}
|
|
21
|
+
/** @internal */
|
|
22
|
+
export function get(httpClient) {
|
|
23
|
+
return (itemId, options) => universalGet(itemId, options,
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
{ httpClient });
|
|
26
|
+
}
|
|
27
|
+
/** @internal */
|
|
28
|
+
export function remove(httpClient) {
|
|
29
|
+
return (itemId, options) => universalRemove(itemId, options,
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
{ httpClient });
|
|
32
|
+
}
|
|
33
|
+
/** @internal */
|
|
34
|
+
export function truncate(httpClient) {
|
|
35
|
+
return (options) => universalTruncate(options,
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
{ httpClient });
|
|
38
|
+
}
|
|
39
|
+
export function query(httpClient) {
|
|
40
|
+
return (options) => universalQuery(options,
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
{ httpClient });
|
|
43
|
+
}
|
|
44
|
+
/** @internal */
|
|
45
|
+
export function aggregate(httpClient) {
|
|
46
|
+
return (options) => universalAggregate(options,
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
{ httpClient });
|
|
49
|
+
}
|
|
50
|
+
/** @internal */
|
|
51
|
+
export function count(httpClient) {
|
|
52
|
+
return (options) => universalCount(options,
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
{ httpClient });
|
|
55
|
+
}
|
|
56
|
+
/** @internal */
|
|
57
|
+
export function distinct(httpClient) {
|
|
58
|
+
return (options) => universalDistinct(options,
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
{ httpClient });
|
|
61
|
+
}
|
|
62
|
+
/** @internal */
|
|
63
|
+
export function bulkInsert(httpClient) {
|
|
64
|
+
return (options) => universalBulkInsert(options,
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
{ httpClient });
|
|
67
|
+
}
|
|
68
|
+
/** @internal */
|
|
69
|
+
export function bulkSave(httpClient) {
|
|
70
|
+
return (options) => universalBulkSave(options,
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
{ httpClient });
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
export function bulkUpdate(httpClient) {
|
|
76
|
+
return (options) => universalBulkUpdate(options,
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
{ httpClient });
|
|
79
|
+
}
|
|
80
|
+
/** @internal */
|
|
81
|
+
export function bulkRemove(httpClient) {
|
|
82
|
+
return (options) => universalBulkRemove(options,
|
|
83
|
+
// @ts-ignore
|
|
84
|
+
{ httpClient });
|
|
85
|
+
}
|
|
86
|
+
/** @internal */
|
|
87
|
+
export function queryReferenced(httpClient) {
|
|
88
|
+
return (options) => universalQueryReferenced(options,
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
{ httpClient });
|
|
91
|
+
}
|
|
92
|
+
/** @internal */
|
|
93
|
+
export function bulkInsertReferences(httpClient) {
|
|
94
|
+
return (options) => universalBulkInsertReferences(options,
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
{ httpClient });
|
|
97
|
+
}
|
|
98
|
+
/** @internal */
|
|
99
|
+
export function bulkReplaceReferences(httpClient) {
|
|
100
|
+
return (options) => universalBulkReplaceReferences(options,
|
|
101
|
+
// @ts-ignore
|
|
102
|
+
{ httpClient });
|
|
103
|
+
}
|
|
104
|
+
/** @internal */
|
|
105
|
+
export function bulkRemoveReferences(httpClient) {
|
|
106
|
+
return (options) => universalBulkRemoveReferences(options,
|
|
107
|
+
// @ts-ignore
|
|
108
|
+
{ httpClient });
|
|
109
|
+
}
|
|
110
|
+
/** @internal */
|
|
111
|
+
export function isReferenced(httpClient) {
|
|
112
|
+
return (options) => universalIsReferenced(options,
|
|
113
|
+
// @ts-ignore
|
|
114
|
+
{ httpClient });
|
|
115
|
+
}
|
|
116
|
+
export { Order, Segment, SortOrder, } from './data-v1-data-service-data.universal.js';
|
|
117
|
+
//# sourceMappingURL=data-v1-data-service-data.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-v1-data-service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