@wix/auto_sdk_data-backend-public-sdk-poc_data 1.0.30 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/build/cjs/{src/data-v1-data-service-data.universal.d.ts → data-v1-data-service-data.universal-DwJ77xKF.d.ts} +91 -104
  2. package/build/cjs/index.d.ts +18 -1
  3. package/build/cjs/index.js +1506 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +504 -1
  6. package/build/cjs/meta.js +1090 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/es/{src/data-v1-data-service-data.universal.d.ts → data-v1-data-service-data.universal-DwJ77xKF.d.mts} +91 -104
  9. package/build/es/index.d.mts +18 -0
  10. package/build/es/index.mjs +1464 -0
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/{cjs/src/data-v1-data-service-data.types.d.ts → es/meta.d.mts} +94 -167
  13. package/build/es/meta.mjs +1048 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/{es/src/data-v1-data-service-data.types.d.ts → internal/cjs/data-v1-data-service-data.universal-B0E_2MN6.d.ts} +284 -72
  16. package/build/internal/cjs/index.d.ts +308 -1
  17. package/build/internal/cjs/index.js +1506 -15
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +504 -1
  20. package/build/internal/cjs/meta.js +1090 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/data-v1-data-service-data.universal-B0E_2MN6.d.mts +789 -0
  23. package/build/internal/es/{src/data-v1-data-service-data.public.d.ts → index.d.mts} +63 -25
  24. package/build/internal/es/index.mjs +1464 -0
  25. package/build/internal/es/index.mjs.map +1 -0
  26. package/build/internal/{cjs/src/data-v1-data-service-data.types.d.ts → es/meta.d.mts} +94 -167
  27. package/build/internal/es/meta.mjs +1048 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +9 -8
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/data-v1-data-service-data.context.d.ts +0 -5
  34. package/build/cjs/src/data-v1-data-service-data.context.js +0 -47
  35. package/build/cjs/src/data-v1-data-service-data.context.js.map +0 -1
  36. package/build/cjs/src/data-v1-data-service-data.http.d.ts +0 -188
  37. package/build/cjs/src/data-v1-data-service-data.http.js +0 -872
  38. package/build/cjs/src/data-v1-data-service-data.http.js.map +0 -1
  39. package/build/cjs/src/data-v1-data-service-data.meta.d.ts +0 -37
  40. package/build/cjs/src/data-v1-data-service-data.meta.js +0 -389
  41. package/build/cjs/src/data-v1-data-service-data.meta.js.map +0 -1
  42. package/build/cjs/src/data-v1-data-service-data.public.d.ts +0 -16
  43. package/build/cjs/src/data-v1-data-service-data.public.js +0 -142
  44. package/build/cjs/src/data-v1-data-service-data.public.js.map +0 -1
  45. package/build/cjs/src/data-v1-data-service-data.types.js +0 -23
  46. package/build/cjs/src/data-v1-data-service-data.types.js.map +0 -1
  47. package/build/cjs/src/data-v1-data-service-data.universal.js +0 -930
  48. package/build/cjs/src/data-v1-data-service-data.universal.js.map +0 -1
  49. package/build/es/index.d.ts +0 -1
  50. package/build/es/index.js +0 -2
  51. package/build/es/index.js.map +0 -1
  52. package/build/es/index.typings.d.ts +0 -1
  53. package/build/es/index.typings.js +0 -2
  54. package/build/es/index.typings.js.map +0 -1
  55. package/build/es/meta.d.ts +0 -1
  56. package/build/es/meta.js +0 -2
  57. package/build/es/meta.js.map +0 -1
  58. package/build/es/src/data-v1-data-service-data.context.d.ts +0 -5
  59. package/build/es/src/data-v1-data-service-data.context.js +0 -41
  60. package/build/es/src/data-v1-data-service-data.context.js.map +0 -1
  61. package/build/es/src/data-v1-data-service-data.http.d.ts +0 -188
  62. package/build/es/src/data-v1-data-service-data.http.js +0 -850
  63. package/build/es/src/data-v1-data-service-data.http.js.map +0 -1
  64. package/build/es/src/data-v1-data-service-data.meta.d.ts +0 -37
  65. package/build/es/src/data-v1-data-service-data.meta.js +0 -344
  66. package/build/es/src/data-v1-data-service-data.meta.js.map +0 -1
  67. package/build/es/src/data-v1-data-service-data.public.d.ts +0 -16
  68. package/build/es/src/data-v1-data-service-data.public.js +0 -117
  69. package/build/es/src/data-v1-data-service-data.public.js.map +0 -1
  70. package/build/es/src/data-v1-data-service-data.types.js +0 -20
  71. package/build/es/src/data-v1-data-service-data.types.js.map +0 -1
  72. package/build/es/src/data-v1-data-service-data.universal.js +0 -885
  73. package/build/es/src/data-v1-data-service-data.universal.js.map +0 -1
  74. package/build/internal/cjs/index.typings.d.ts +0 -1
  75. package/build/internal/cjs/index.typings.js +0 -18
  76. package/build/internal/cjs/index.typings.js.map +0 -1
  77. package/build/internal/cjs/src/data-v1-data-service-data.context.d.ts +0 -41
  78. package/build/internal/cjs/src/data-v1-data-service-data.context.js +0 -47
  79. package/build/internal/cjs/src/data-v1-data-service-data.context.js.map +0 -1
  80. package/build/internal/cjs/src/data-v1-data-service-data.http.d.ts +0 -188
  81. package/build/internal/cjs/src/data-v1-data-service-data.http.js +0 -872
  82. package/build/internal/cjs/src/data-v1-data-service-data.http.js.map +0 -1
  83. package/build/internal/cjs/src/data-v1-data-service-data.meta.d.ts +0 -37
  84. package/build/internal/cjs/src/data-v1-data-service-data.meta.js +0 -389
  85. package/build/internal/cjs/src/data-v1-data-service-data.meta.js.map +0 -1
  86. package/build/internal/cjs/src/data-v1-data-service-data.public.d.ts +0 -270
  87. package/build/internal/cjs/src/data-v1-data-service-data.public.js +0 -142
  88. package/build/internal/cjs/src/data-v1-data-service-data.public.js.map +0 -1
  89. package/build/internal/cjs/src/data-v1-data-service-data.types.js +0 -23
  90. package/build/internal/cjs/src/data-v1-data-service-data.types.js.map +0 -1
  91. package/build/internal/cjs/src/data-v1-data-service-data.universal.d.ts +0 -1136
  92. package/build/internal/cjs/src/data-v1-data-service-data.universal.js +0 -930
  93. package/build/internal/cjs/src/data-v1-data-service-data.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/data-v1-data-service-data.context.d.ts +0 -41
  104. package/build/internal/es/src/data-v1-data-service-data.context.js +0 -41
  105. package/build/internal/es/src/data-v1-data-service-data.context.js.map +0 -1
  106. package/build/internal/es/src/data-v1-data-service-data.http.d.ts +0 -188
  107. package/build/internal/es/src/data-v1-data-service-data.http.js +0 -850
  108. package/build/internal/es/src/data-v1-data-service-data.http.js.map +0 -1
  109. package/build/internal/es/src/data-v1-data-service-data.meta.d.ts +0 -37
  110. package/build/internal/es/src/data-v1-data-service-data.meta.js +0 -344
  111. package/build/internal/es/src/data-v1-data-service-data.meta.js.map +0 -1
  112. package/build/internal/es/src/data-v1-data-service-data.public.js +0 -117
  113. package/build/internal/es/src/data-v1-data-service-data.public.js.map +0 -1
  114. package/build/internal/es/src/data-v1-data-service-data.types.d.ts +0 -577
  115. package/build/internal/es/src/data-v1-data-service-data.types.js +0 -20
  116. package/build/internal/es/src/data-v1-data-service-data.types.js.map +0 -1
  117. package/build/internal/es/src/data-v1-data-service-data.universal.d.ts +0 -1136
  118. package/build/internal/es/src/data-v1-data-service-data.universal.js +0 -885
  119. package/build/internal/es/src/data-v1-data-service-data.universal.js.map +0 -1
@@ -1,270 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { 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 } 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
- * @deprecated
17
- */
18
- (options?: InsertOptions | undefined): Promise<InsertResponse>;
19
- }
20
- /** @internal */
21
- export declare function update(httpClient: HttpClient): UpdateSignature;
22
- interface UpdateSignature {
23
- /**
24
- * Updates an item in a collection.
25
- *
26
- * 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
27
- * the same ID, that item is updated. If the collection doesn't contain an item with that ID, the request fails.
28
- *
29
- * When an item is updated, its `_updatedDate` property is changed to the current date.
30
- *
31
- * **Note:**
32
- * 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
33
- * aren't included in the updated item, their values are lost.
34
- * @deprecated
35
- */
36
- (options?: UpdateOptions | undefined): Promise<UpdateResponse>;
37
- }
38
- /** @internal */
39
- export declare function save(httpClient: HttpClient): SaveSignature;
40
- interface SaveSignature {
41
- /**
42
- * Inserts or updates an item in a collection.
43
- *
44
- * The Save Data Item endpoint inserts or updates the specified item, depending on whether it already exists in the collection.
45
- *
46
- * * If you don't provide an ID, a new item is created.
47
- *
48
- * * If you provide an ID that doesn't exist in the collection, a new item is created with that ID.
49
- *
50
- * * 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.
51
- *
52
- * ***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.
53
- * This means that all of the item's previous properties and values are lost.
54
- * @deprecated
55
- */
56
- (options?: SaveOptions | undefined): Promise<SaveResponse>;
57
- }
58
- /** @internal */
59
- export declare function get(httpClient: HttpClient): GetSignature;
60
- interface GetSignature {
61
- /**
62
- * Retrieves an item from a collection.
63
- * @param - ID of the item to retrieve.
64
- * @deprecated
65
- */
66
- (itemId: string, options?: GetOptions | undefined): Promise<GetResponse>;
67
- }
68
- /** @internal */
69
- export declare function remove(httpClient: HttpClient): RemoveSignature;
70
- interface RemoveSignature {
71
- /**
72
- * Removes an item from a collection.
73
- *
74
- * If any items in other collections reference the removed item in a reference or multi-reference field, the field is cleared.
75
- *
76
- * **Note:**
77
- * Once an item has been removed from a collection, it can't be restored.
78
- * @param - ID of the item to remove.
79
- * @deprecated
80
- */
81
- (itemId: string, options?: RemoveOptions | undefined): Promise<RemoveResponse>;
82
- }
83
- /** @internal */
84
- export declare function truncate(httpClient: HttpClient): TruncateSignature;
85
- interface TruncateSignature {
86
- /**
87
- * Removes all items from a collection. Site owner (`ADMIN`) permissions are required in order to invoke this operation.
88
- *
89
- * If any items in other collections reference the removed items in reference or multi-reference fields, those fields are cleared.
90
- *
91
- * **Note:**
92
- * Once items have been removed from a collection, they can't be restored.
93
- * @deprecated
94
- */
95
- (options?: TruncateOptions | undefined): Promise<void>;
96
- }
97
- export declare function query(httpClient: HttpClient): QuerySignature;
98
- interface QuerySignature {
99
- /**
100
- * Retrieves a list of items, on the basis of the filtering, sorting, and paging preferences you provide.
101
- *
102
- * For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
103
- * @deprecated
104
- */
105
- (options?: QueryOptions | undefined): Promise<QueryResponse>;
106
- }
107
- /** @internal */
108
- export declare function aggregate(httpClient: HttpClient): AggregateSignature;
109
- interface AggregateSignature {
110
- /** @deprecated */
111
- (options?: AggregateOptions | undefined): Promise<AggregationResponse>;
112
- }
113
- /** @internal */
114
- export declare function count(httpClient: HttpClient): CountSignature;
115
- interface CountSignature {
116
- /**
117
- * Returns the number of items in a collection that match a query.
118
- * @deprecated
119
- */
120
- (options?: CountOptions | undefined): Promise<CountResponse>;
121
- }
122
- /** @internal */
123
- export declare function distinct(httpClient: HttpClient): DistinctSignature;
124
- interface DistinctSignature {
125
- /**
126
- * Retrieves a list of distinct values for a given property in all items that match a query, without duplicates.
127
- *
128
- * As with the [Query Data Items]() endpoint, this endpoint retrieves items based on the filtering, sorting, and paging preferences you provide.
129
- * However, the Query Distinct Values endpoint doesn't return all of the full items that match the query.
130
- * Rather, it returns all unique values of the property you specify in `propertyName` for items that match the query.
131
- * If more than one item has the same value for that property, that value appears only once.
132
- *
133
- * For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
134
- * @deprecated
135
- */
136
- (options?: DistinctOptions | undefined): Promise<DistinctResponse>;
137
- }
138
- /** @internal */
139
- export declare function bulkInsert(httpClient: HttpClient): BulkInsertSignature;
140
- interface BulkInsertSignature {
141
- /**
142
- * Adds multiple items to a collection.
143
- *
144
- * When each item is inserted into a collection, the following properties and values are added to it:
145
- * * `_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.
146
- * * `_createdDate`: The date the item was added to the collection.
147
- * * `_updatedDate`: The date the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have the same value.
148
- *
149
- * The endpoint returns a list of the IDs of items successfully inserted in `insertedItemIds`.
150
- * When any items can't be inserted, error details are provided for each failed item in `errors`.
151
- * @deprecated
152
- */
153
- (options?: BulkInsertOptions | undefined): Promise<BulkInsertResponse>;
154
- }
155
- /** @internal */
156
- export declare function bulkSave(httpClient: HttpClient): BulkSaveSignature;
157
- interface BulkSaveSignature {
158
- /**
159
- * Inserts or updates multiple items in a collection.
160
- *
161
- * The Bulk Save Data Items endpoint inserts or updates each item, depending on whether it already exists in the collection. For each item:
162
- *
163
- * * If you don't provide an ID, a new item is created.
164
- *
165
- * * If you provide an ID that doesn't exist in the collection, a new item is created with that ID.
166
- *
167
- * * 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.
168
- *
169
- * 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`.
170
- * When any items can't be inserted or updated, error details are provided for each failed item in `errors`.
171
- *
172
- * ***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.
173
- * This means that all of the item's previous properties and values are lost.
174
- * @deprecated
175
- */
176
- (options?: BulkSaveOptions | undefined): Promise<BulkSaveResponse>;
177
- }
178
- /** @internal */
179
- export declare function bulkUpdate(httpClient: HttpClient): BulkUpdateSignature;
180
- interface BulkUpdateSignature {
181
- /**
182
- * Updates multiple items in a collection.
183
- *
184
- * Each item in the request must include an ID. If an item is found in the specified collection with
185
- * the same ID, that item is updated. If the collection doesn't contain an item with that ID, the update fails.
186
- *
187
- * When an item is updated, its `_updatedDate` property is changed to the current date.
188
- *
189
- * The endpoint returns a list of the IDs of items successfully updated in `updatedItemIds`.
190
- * When any items can't be inserted, error details are provided for each failed item in `errors`.
191
- *
192
- * **Note:**
193
- * 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
194
- * aren't included in the updated item, their values are lost.
195
- * @deprecated
196
- */
197
- (options?: BulkUpdateOptions | undefined): Promise<BulkUpdateResponse>;
198
- }
199
- /** @internal */
200
- export declare function bulkRemove(httpClient: HttpClient): BulkRemoveSignature;
201
- interface BulkRemoveSignature {
202
- /**
203
- * Removes multiple items from a collection.
204
- *
205
- * If any items in other collections reference the removed items in reference or multi-reference fields, the fields are cleared.
206
- *
207
- * The endpoint returns a list of the IDs of items successfully removed in `removedItemIds`.
208
- * When any items can't be removed, error details are provided for each failed item in `errors`.
209
- *
210
- * **Note:** Once an item has been removed from a collection, it can't be restored.
211
- * @deprecated
212
- */
213
- (options?: BulkRemoveOptions | undefined): Promise<BulkRemoveResponse>;
214
- }
215
- /** @internal */
216
- export declare function queryReferenced(httpClient: HttpClient): QueryReferencedSignature;
217
- interface QueryReferencedSignature {
218
- /**
219
- * Gets the full items referenced in the specified property of an item.
220
- *
221
- * For example, suppose you have a **Movies** collection with an **Actors** field that contains references to items in a **People** collection.
222
- * 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.
223
- * This gives you information from the **People** collection about each of the actors in the specified movie.
224
- * @deprecated
225
- */
226
- (options?: QueryReferencedOptions | undefined): Promise<QueryReferencedResponse>;
227
- }
228
- /** @internal */
229
- export declare function bulkInsertReferences(httpClient: HttpClient): BulkInsertReferencesSignature;
230
- interface BulkInsertReferencesSignature {
231
- /**
232
- * Inserts one or more references in the specified properties of items in a collection.
233
- *
234
- * The Bulk Insert References endpoint adds one or more references to a collection.
235
- * 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.
236
- * @deprecated
237
- */
238
- (options?: BulkInsertReferencesOptions | undefined): Promise<void>;
239
- }
240
- /** @internal */
241
- export declare function bulkReplaceReferences(httpClient: HttpClient): BulkReplaceReferencesSignature;
242
- interface BulkReplaceReferencesSignature {
243
- /**
244
- * Replaces references in a specified property of a specified data item.
245
- *
246
- * 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`.
247
- * The endpoint removes existing references and in their place it adds references to the items specified in `newReferencedItemIds`.
248
- * @deprecated
249
- */
250
- (options?: BulkReplaceReferencesOptions | undefined): Promise<void>;
251
- }
252
- /** @internal */
253
- export declare function bulkRemoveReferences(httpClient: HttpClient): BulkRemoveReferencesSignature;
254
- interface BulkRemoveReferencesSignature {
255
- /**
256
- * Removes one or more references.
257
- * @deprecated
258
- */
259
- (options?: BulkRemoveReferencesOptions | undefined): Promise<void>;
260
- }
261
- /** @internal */
262
- export declare function isReferenced(httpClient: HttpClient): IsReferencedSignature;
263
- interface IsReferencedSignature {
264
- /**
265
- * Checks if a specific property of a referring item contains a reference to another specific item.
266
- * @deprecated
267
- */
268
- (options?: IsReferencedOptions | undefined): Promise<IsReferencedResponse>;
269
- }
270
- export { AggregateOptions, AggregationRequest, AggregationResponse, ApplicationError, BulkError, BulkInsertOptions, BulkInsertReferencesOptions, BulkInsertReferencesRequest, BulkInsertReferencesResponse, BulkInsertRequest, BulkInsertResponse, BulkPatchRequest, BulkPatchResponse, BulkRemoveOptions, BulkRemoveReferencesOptions, BulkRemoveReferencesRequest, BulkRemoveReferencesResponse, BulkRemoveRequest, BulkRemoveRequestEntry, BulkRemoveResponse, BulkReplaceReferencesOptions, BulkReplaceReferencesRequest, BulkReplaceReferencesResponse, BulkSaveOptions, BulkSaveRequest, BulkSaveResponse, BulkUpdateOptions, BulkUpdateRequest, BulkUpdateResponse, CountOptions, CountRequest, CountResponse, CursorPaging, Cursors, Details, DistinctOptions, DistinctRequest, DistinctResponse, Entry, GetOptions, GetRequest, GetResponse, InsertOptions, InsertRequest, InsertResponse, IsReferencedOptions, IsReferencedRequest, IsReferencedResponse, Item, Options, Order, Paging, PagingMetadataV2, PatchRequest, PatchResponse, PatchWhereRequest, PatchWhereResponse, Query, QueryOptions, QueryReferencedOptions, QueryReferencedRequest, QueryReferencedResponse, QueryRequest, QueryResponse, 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';
@@ -1,142 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SortOrder = exports.Segment = exports.Order = exports.isReferenced = exports.bulkRemoveReferences = exports.bulkReplaceReferences = exports.bulkInsertReferences = exports.queryReferenced = exports.bulkRemove = exports.bulkUpdate = exports.bulkSave = exports.bulkInsert = exports.distinct = exports.count = exports.aggregate = exports.query = exports.truncate = exports.remove = exports.get = exports.save = exports.update = exports.insert = exports.__metadata = void 0;
4
- const data_v1_data_service_data_universal_js_1 = require("./data-v1-data-service-data.universal.js");
5
- exports.__metadata = { PACKAGE_NAME: '@wix/data-backend-public-sdk-poc' };
6
- /** @internal */
7
- function insert(httpClient) {
8
- return (options) => (0, data_v1_data_service_data_universal_js_1.insert)(options,
9
- // @ts-ignore
10
- { httpClient });
11
- }
12
- exports.insert = insert;
13
- /** @internal */
14
- function update(httpClient) {
15
- return (options) => (0, data_v1_data_service_data_universal_js_1.update)(options,
16
- // @ts-ignore
17
- { httpClient });
18
- }
19
- exports.update = update;
20
- /** @internal */
21
- function save(httpClient) {
22
- return (options) => (0, data_v1_data_service_data_universal_js_1.save)(options,
23
- // @ts-ignore
24
- { httpClient });
25
- }
26
- exports.save = save;
27
- /** @internal */
28
- function get(httpClient) {
29
- return (itemId, options) => (0, data_v1_data_service_data_universal_js_1.get)(itemId, options,
30
- // @ts-ignore
31
- { httpClient });
32
- }
33
- exports.get = get;
34
- /** @internal */
35
- function remove(httpClient) {
36
- return (itemId, options) => (0, data_v1_data_service_data_universal_js_1.remove)(itemId, options,
37
- // @ts-ignore
38
- { httpClient });
39
- }
40
- exports.remove = remove;
41
- /** @internal */
42
- function truncate(httpClient) {
43
- return (options) => (0, data_v1_data_service_data_universal_js_1.truncate)(options,
44
- // @ts-ignore
45
- { httpClient });
46
- }
47
- exports.truncate = truncate;
48
- function query(httpClient) {
49
- return (options) => (0, data_v1_data_service_data_universal_js_1.query)(options,
50
- // @ts-ignore
51
- { httpClient });
52
- }
53
- exports.query = query;
54
- /** @internal */
55
- function aggregate(httpClient) {
56
- return (options) => (0, data_v1_data_service_data_universal_js_1.aggregate)(options,
57
- // @ts-ignore
58
- { httpClient });
59
- }
60
- exports.aggregate = aggregate;
61
- /** @internal */
62
- function count(httpClient) {
63
- return (options) => (0, data_v1_data_service_data_universal_js_1.count)(options,
64
- // @ts-ignore
65
- { httpClient });
66
- }
67
- exports.count = count;
68
- /** @internal */
69
- function distinct(httpClient) {
70
- return (options) => (0, data_v1_data_service_data_universal_js_1.distinct)(options,
71
- // @ts-ignore
72
- { httpClient });
73
- }
74
- exports.distinct = distinct;
75
- /** @internal */
76
- function bulkInsert(httpClient) {
77
- return (options) => (0, data_v1_data_service_data_universal_js_1.bulkInsert)(options,
78
- // @ts-ignore
79
- { httpClient });
80
- }
81
- exports.bulkInsert = bulkInsert;
82
- /** @internal */
83
- function bulkSave(httpClient) {
84
- return (options) => (0, data_v1_data_service_data_universal_js_1.bulkSave)(options,
85
- // @ts-ignore
86
- { httpClient });
87
- }
88
- exports.bulkSave = bulkSave;
89
- /** @internal */
90
- function bulkUpdate(httpClient) {
91
- return (options) => (0, data_v1_data_service_data_universal_js_1.bulkUpdate)(options,
92
- // @ts-ignore
93
- { httpClient });
94
- }
95
- exports.bulkUpdate = bulkUpdate;
96
- /** @internal */
97
- function bulkRemove(httpClient) {
98
- return (options) => (0, data_v1_data_service_data_universal_js_1.bulkRemove)(options,
99
- // @ts-ignore
100
- { httpClient });
101
- }
102
- exports.bulkRemove = bulkRemove;
103
- /** @internal */
104
- function queryReferenced(httpClient) {
105
- return (options) => (0, data_v1_data_service_data_universal_js_1.queryReferenced)(options,
106
- // @ts-ignore
107
- { httpClient });
108
- }
109
- exports.queryReferenced = queryReferenced;
110
- /** @internal */
111
- function bulkInsertReferences(httpClient) {
112
- return (options) => (0, data_v1_data_service_data_universal_js_1.bulkInsertReferences)(options,
113
- // @ts-ignore
114
- { httpClient });
115
- }
116
- exports.bulkInsertReferences = bulkInsertReferences;
117
- /** @internal */
118
- function bulkReplaceReferences(httpClient) {
119
- return (options) => (0, data_v1_data_service_data_universal_js_1.bulkReplaceReferences)(options,
120
- // @ts-ignore
121
- { httpClient });
122
- }
123
- exports.bulkReplaceReferences = bulkReplaceReferences;
124
- /** @internal */
125
- function bulkRemoveReferences(httpClient) {
126
- return (options) => (0, data_v1_data_service_data_universal_js_1.bulkRemoveReferences)(options,
127
- // @ts-ignore
128
- { httpClient });
129
- }
130
- exports.bulkRemoveReferences = bulkRemoveReferences;
131
- /** @internal */
132
- function isReferenced(httpClient) {
133
- return (options) => (0, data_v1_data_service_data_universal_js_1.isReferenced)(options,
134
- // @ts-ignore
135
- { httpClient });
136
- }
137
- exports.isReferenced = isReferenced;
138
- var data_v1_data_service_data_universal_js_2 = require("./data-v1-data-service-data.universal.js");
139
- Object.defineProperty(exports, "Order", { enumerable: true, get: function () { return data_v1_data_service_data_universal_js_2.Order; } });
140
- Object.defineProperty(exports, "Segment", { enumerable: true, get: function () { return data_v1_data_service_data_universal_js_2.Segment; } });
141
- Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return data_v1_data_service_data_universal_js_2.SortOrder; } });
142
- //# sourceMappingURL=data-v1-data-service-data.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-v1-data-service-data.public.js","sourceRoot":"","sources":["../../../../src/data-v1-data-service-data.public.ts"],"names":[],"mappings":";;;AACA,qGAsDkD;AAErC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,kCAAkC,EAAE,CAAC;AAE/E,gBAAgB;AAChB,SAAgB,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,OAAuB,EAAE,EAAE,CACjC,IAAA,+CAAe,EACb,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,wBAOC;AAeD,gBAAgB;AAChB,SAAgB,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,OAAiD,EAAE,EAAE,CAC3D,IAAA,+CAAe,EACb,OAAO;I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,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAdD,0CAcC;AAgBD,gBAAgB;AAChB,SAAgB,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CACL,OAMC,EACD,EAAE,CACF,IAAA,6DAA6B,EAC3B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAjBD,oDAiBC;AAaD,gBAAgB;AAChB,SAAgB,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,CACL,OAGC,EACD,EAAE,CACF,IAAA,8DAA8B,EAC5B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAdD,sDAcC;AAaD,gBAAgB;AAChB,SAAgB,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CACL,OAGC,EACD,EAAE,CACF,IAAA,6DAA6B,EAC3B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAdD,oDAcC;AAUD,gBAAgB;AAChB,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CACL,OAGC,EACD,EAAE,CACF,IAAA,qDAAqB,EACnB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAZD,oCAYC;AAUD,mGAwFkD;AArChD,+HAAA,KAAK,OAAA;AA4BL,iIAAA,OAAO,OAAA;AACP,mIAAA,SAAS,OAAA"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Order = exports.SortOrder = exports.Segment = void 0;
4
- var Segment;
5
- (function (Segment) {
6
- /** Access database used in the Live site. */
7
- Segment["LIVE"] = "LIVE";
8
- /** Access staging (sandbox) database used in the editor. */
9
- Segment["SANDBOX"] = "SANDBOX";
10
- /** Access deleted database used in the Live site. */
11
- Segment["TRASH_LIVE"] = "TRASH_LIVE";
12
- })(Segment || (exports.Segment = Segment = {}));
13
- var SortOrder;
14
- (function (SortOrder) {
15
- SortOrder["ASC"] = "ASC";
16
- SortOrder["DESC"] = "DESC";
17
- })(SortOrder || (exports.SortOrder = SortOrder = {}));
18
- var Order;
19
- (function (Order) {
20
- Order["ASC"] = "ASC";
21
- Order["DESC"] = "DESC";
22
- })(Order || (exports.Order = Order = {}));
23
- //# sourceMappingURL=data-v1-data-service-data.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-v1-data-service-data.types.js","sourceRoot":"","sources":["../../../../src/data-v1-data-service-data.types.ts"],"names":[],"mappings":";;;AAWA,IAAY,OAOX;AAPD,WAAY,OAAO;IACjB,6CAA6C;IAC7C,wBAAa,CAAA;IACb,4DAA4D;IAC5D,8BAAmB,CAAA;IACnB,qDAAqD;IACrD,oCAAyB,CAAA;AAC3B,CAAC,EAPW,OAAO,uBAAP,OAAO,QAOlB;AAwJD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAqVD,IAAY,KAGX;AAHD,WAAY,KAAK;IACf,oBAAW,CAAA;IACX,sBAAa,CAAA;AACf,CAAC,EAHW,KAAK,qBAAL,KAAK,QAGhB"}