@wix/wix-data-items-sdk 1.0.542 → 1.0.544
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/data-v2-data-item-items.context.d.ts +261 -49
- package/build/cjs/src/data-v2-data-item-items.context.js +7 -14
- package/build/cjs/src/data-v2-data-item-items.context.js.map +1 -1
- package/build/cjs/src/data-v2-data-item-items.universal.d.ts +2 -2
- package/build/cjs/src/data-v2-data-item-items.universal.js.map +1 -1
- package/build/es/src/data-v2-data-item-items.context.d.ts +261 -49
- package/build/es/src/data-v2-data-item-items.context.js +7 -14
- package/build/es/src/data-v2-data-item-items.context.js.map +1 -1
- package/build/es/src/data-v2-data-item-items.universal.d.ts +2 -2
- package/build/es/src/data-v2-data-item-items.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { truncate as publicTruncate, bulkRemove as publicBulkRemove, isReferenced as publicIsReferenced, insertReference as publicInsertReference, removeReference as publicRemoveReference, replaceReferences as publicReplaceReferences, bulkPatch as publicBulkPatch, asyncPatchByFilter as publicAsyncPatchByFilter, asyncRemoveByFilter as publicAsyncRemoveByFilter, getAsyncJobStatus as publicGetAsyncJobStatus, aggregate as publicAggregate, aggregatePipeline as publicAggregatePipeline, distinct as publicDistinct, count as publicCount, queryReferenced as publicQueryReferenced, queryReferencedItems as publicQueryReferencedItems, filter as publicFilter, withEnvironment as publicWithEnvironment, onDataItemCreated as publicOnDataItemCreated, onDataItemUpdated as publicOnDataItemUpdated, onDataItemDeleted as publicOnDataItemDeleted } from './data-v2-data-item-items.public';
|
|
1
|
+
import { insert as publicInsert, update as publicUpdate, save as publicSave, get as publicGet, remove as publicRemove, truncate as publicTruncate, bulkInsert as publicBulkInsert, bulkUpdate as publicBulkUpdate, bulkSave as publicBulkSave, bulkRemove as publicBulkRemove, isReferenced as publicIsReferenced, insertReference as publicInsertReference, removeReference as publicRemoveReference, replaceReferences as publicReplaceReferences, query as publicQuery, search as publicSearch, patch as publicPatch, bulkPatch as publicBulkPatch, asyncPatchByFilter as publicAsyncPatchByFilter, asyncRemoveByFilter as publicAsyncRemoveByFilter, getAsyncJobStatus as publicGetAsyncJobStatus, aggregate as publicAggregate, aggregatePipeline as publicAggregatePipeline, distinct as publicDistinct, count as publicCount, queryReferenced as publicQueryReferenced, queryReferencedItems as publicQueryReferencedItems, filter as publicFilter, withEnvironment as publicWithEnvironment, onDataItemCreated as publicOnDataItemCreated, onDataItemUpdated as publicOnDataItemUpdated, onDataItemDeleted as publicOnDataItemDeleted } from './data-v2-data-item-items.public';
|
|
2
2
|
import { BuildRESTFunction, HttpClient, MaybeContext } from '@wix/sdk-types';
|
|
3
3
|
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
4
4
|
import type { WixDataItem, WixDataUpdateOptions, WixDataRemoveOptions, WixDataSaveOptions, WixDataOptions, WixDataInsertOptions, WixDataBulkUpdateOptions, WixDataBulkRemoveOptions, WixDataGetOptions, WixDataQueryRequest, WixDataQueryOptions, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, WixDataQuery, WixDataSearchRequest, WixDataSearchOptions, WixDataSearch, WixDataBulkResult, WixDataBulkSaveOptions, WixDataPatch, WixDataBulkPatch, WixDataPatchOptions, WixDataBulkPatchOptions, FieldModification, WixDataAsyncRemoveByFilterOptions, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJobStatus, WixDataFilterInput, WixDataAggregate, AggregationPipeline, WixDataAggregateOptions, WixDataDistinctOptions, WixDataIsReferencedOptions, WithId } from './data-v2-data-item-items.universal';
|
|
@@ -13,11 +13,36 @@ type NoInfer<T> = [T][T extends any ? 0 : never];
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* declare module '@wix/wix-data-items-sdk' {
|
|
15
15
|
* interface WixDataCollectionRegistry {
|
|
16
|
-
* 'moto-fleet': {
|
|
16
|
+
* 'moto-fleet': {
|
|
17
|
+
* item: MotoFleetItem
|
|
18
|
+
* insert: MotoFleetInsert
|
|
19
|
+
* refs: { owner: 'owners'; manual: 'service-manuals' }
|
|
20
|
+
* }
|
|
21
|
+
* owners: { item: OwnerItem; insert: OwnerInsert }
|
|
17
22
|
* }
|
|
18
23
|
* }
|
|
19
24
|
* ```
|
|
20
25
|
*
|
|
26
|
+
* `item` and `insert` are required. `item` is both the read shape and the
|
|
27
|
+
* authoritative field list: it drives `distinct`'s `fieldName` parameter — the
|
|
28
|
+
* one place a field name is checked strictly, dotted paths included — and the
|
|
29
|
+
* type of the values it returns. Reference fields belong on it too, typed as
|
|
30
|
+
* either an id or the resolved item (`owner?: string | OwnerItem` when single),
|
|
31
|
+
* and `refs` is what tells `distinct` they are references: it reports their
|
|
32
|
+
* `_id`s, so their value type is `string` rather than that union.
|
|
33
|
+
*
|
|
34
|
+
* `refs` is OPTIONAL: it maps each reference and multi-reference field to the id
|
|
35
|
+
* of the collection that field points at (the schema's `referencedCollection`),
|
|
36
|
+
* and drives the reference APIs — `queryReferencedItems` returns that
|
|
37
|
+
* collection's item type, and the mutation methods type their `referencedItem`
|
|
38
|
+
* argument with it. Codegen omits `refs` for collections with no reference
|
|
39
|
+
* fields, and entries written before `refs` existed keep working unchanged. A
|
|
40
|
+
* `refs` target need not itself be registered (`'service-manuals'` above isn't)
|
|
41
|
+
* — those resolve to the open `WixDataItem`.
|
|
42
|
+
*
|
|
43
|
+
* `refs` has no runtime counterpart. Nothing validates it against the live
|
|
44
|
+
* schema, so a stale hand-written entry silently yields a wrong item type.
|
|
45
|
+
*
|
|
21
46
|
* Its behavior is tested in the `wix-data-items-sdk-consumer-tests` package,
|
|
22
47
|
* which consumes the built package through node_modules and augments the
|
|
23
48
|
* specifier above exactly as codegen does. The tests have to live outside this
|
|
@@ -28,8 +53,9 @@ export interface WixDataCollectionRegistry {
|
|
|
28
53
|
}
|
|
29
54
|
/**
|
|
30
55
|
* Registered collection ids. Resolves to `never` while the registry is empty,
|
|
31
|
-
* so `ItemOf`/`InsertOf` fall back to the open `WixDataItem` shapes
|
|
32
|
-
*
|
|
56
|
+
* so `ItemOf`/`InsertOf` fall back to the open `WixDataItem` shapes,
|
|
57
|
+
* `ReferenceFieldOf` is `never`, `ReferenceFieldName` is plain `string`, and
|
|
58
|
+
* every signature below behaves exactly as it did before this feature.
|
|
33
59
|
*/
|
|
34
60
|
type RegisteredCollections = keyof WixDataCollectionRegistry;
|
|
35
61
|
/**
|
|
@@ -42,6 +68,147 @@ RegisteredCollections | (string & {});
|
|
|
42
68
|
export type ItemOf<C> = C extends RegisteredCollections ? WixDataCollectionRegistry[C]['item'] : WixDataItem;
|
|
43
69
|
/** Write shape for a collection. Falls back to `Partial<WixDataItem>`. */
|
|
44
70
|
export type InsertOf<C> = C extends RegisteredCollections ? WixDataCollectionRegistry[C]['insert'] : Partial<WixDataItem>;
|
|
71
|
+
/**
|
|
72
|
+
* Safe indexed access: `Entry[Key]` when the key exists, `Fallback` otherwise.
|
|
73
|
+
*
|
|
74
|
+
* `Key` has to be a *type parameter* rather than an inline `'refs'` literal.
|
|
75
|
+
* `'refs' extends keyof Entry ? Entry['refs'] : …` does not compile —
|
|
76
|
+
* TypeScript only forms the substitution type that makes the indexed access
|
|
77
|
+
* legal when the checked type is itself a type parameter. `NonNullable`
|
|
78
|
+
* additionally tolerates a hand-written `refs?: …`.
|
|
79
|
+
*/
|
|
80
|
+
type PropOr<Entry, Key, Fallback> = Key extends keyof Entry ? NonNullable<Entry[Key]> : Fallback;
|
|
81
|
+
/**
|
|
82
|
+
* Reference fields declared for a collection: field name -> referenced
|
|
83
|
+
* collection id. `{}` when the collection is unregistered or its registry
|
|
84
|
+
* entry has no `refs` key — the common case, since `refs` is optional.
|
|
85
|
+
*
|
|
86
|
+
* Not exported: `NonNullable<T>` is `T & {}` in TypeScript >= 4.9, so the
|
|
87
|
+
* resolved type carries an `& {}` artifact. `ReferenceFieldOf` and
|
|
88
|
+
* `ReferencedItemOf` are the consumer-facing forms and are free of it.
|
|
89
|
+
*/
|
|
90
|
+
type RefsOf<C> = C extends RegisteredCollections ? PropOr<WixDataCollectionRegistry[C], 'refs', {}> : {};
|
|
91
|
+
/** Names of the reference fields declared for a collection; `never` when none. */
|
|
92
|
+
export type ReferenceFieldOf<C> = Extract<keyof RefsOf<C>, string>;
|
|
93
|
+
/**
|
|
94
|
+
* Field-name parameter: declared reference fields autocomplete while any other
|
|
95
|
+
* string is still allowed. Same shape and rationale as `CollectionId`.
|
|
96
|
+
*/
|
|
97
|
+
type ReferenceFieldName<C> = [ReferenceFieldOf<C>] extends [never] ? string : ReferenceFieldOf<C> | (string & {});
|
|
98
|
+
/** Element type of an array field; every other field type is left alone. */
|
|
99
|
+
type ElementOf<T> = T extends readonly (infer E)[] ? NonNullable<E> : T;
|
|
100
|
+
/**
|
|
101
|
+
* What one path segment resolves to: array fields collapse to their element
|
|
102
|
+
* type and `null`/`undefined` are stripped, so `tags?: string[]` reads as
|
|
103
|
+
* `string`.
|
|
104
|
+
*
|
|
105
|
+
* ASSUMPTION: the service returns the *elements* of an array field rather than
|
|
106
|
+
* the arrays themselves, and never a null distinct value. Neither is expressed
|
|
107
|
+
* anywhere in this repo — the wire type is `distinctValues?: any[]`.
|
|
108
|
+
*/
|
|
109
|
+
type FieldType<T> = ElementOf<NonNullable<T>>;
|
|
110
|
+
/**
|
|
111
|
+
* Whether a dot-path may descend into `T`. Objects yes, with three exceptions
|
|
112
|
+
* that would otherwise expose their methods as field paths: arrays (already
|
|
113
|
+
* unwrapped one level by `FieldType`, so this only rejects nested arrays),
|
|
114
|
+
* `Date`, and functions.
|
|
115
|
+
*/
|
|
116
|
+
type Descendable<T> = T extends readonly any[] ? false : T extends Date ? false : T extends (...args: any[]) => any ? false : T extends object ? true : false;
|
|
117
|
+
/**
|
|
118
|
+
* Nesting budget for `FieldPath`: one element per level beyond the first, so
|
|
119
|
+
* this admits up to four segments (`owner.address.geo.lat`).
|
|
120
|
+
*
|
|
121
|
+
* Named rather than inlined so the constraint reads as
|
|
122
|
+
* `FieldPath<MotoFleetItem, PathDepth>` in the compiler's error message for a
|
|
123
|
+
* rejected field name, instead of a bare tuple of `unknown`s.
|
|
124
|
+
*/
|
|
125
|
+
type PathDepth = [unknown, unknown, unknown];
|
|
126
|
+
/**
|
|
127
|
+
* Field names of `T` plus every dotted path into it that the shape allows.
|
|
128
|
+
*
|
|
129
|
+
* `NoDescend` names fields that are valid on their own but may not be descended
|
|
130
|
+
* into. Only the top level passes anything here — the reference fields, since
|
|
131
|
+
* `distinct` does not support nesting through them. Nested objects aren't
|
|
132
|
+
* collections, so they have no reference fields of their own.
|
|
133
|
+
*
|
|
134
|
+
* The `Depth` bound keeps deeply or circularly nested plain objects from
|
|
135
|
+
* recursing forever.
|
|
136
|
+
*/
|
|
137
|
+
type FieldPath<T, NoDescend extends string = never, Depth extends readonly unknown[] = PathDepth> = Extract<keyof T, string> | (Depth extends readonly [unknown, ...infer Rest] ? {
|
|
138
|
+
[K in Exclude<Extract<keyof T, string>, NoDescend>]: Descendable<FieldType<T[K]>> extends true ? `${K}.${FieldPath<FieldType<T[K]>, never, Rest>}` : never;
|
|
139
|
+
}[Exclude<Extract<keyof T, string>, NoDescend>] : never);
|
|
140
|
+
/**
|
|
141
|
+
* Field names — and dotted paths — accepted for a collection.
|
|
142
|
+
*
|
|
143
|
+
* STRICT, unlike `CollectionId` and `ReferenceFieldName`: there is no
|
|
144
|
+
* `| (string & {})` alternative, so a name the registered `item` type doesn't
|
|
145
|
+
* have is a compile error, and so is a widened `string` variable. Dot-paths are
|
|
146
|
+
* allowed where the shape permits descending — `'address.city'` resolves, while
|
|
147
|
+
* `'category.foo'` (a string field) and `'_createdDate.getTime'` (a `Date`) do
|
|
148
|
+
* not — with one carve-out: reference and multi-reference fields are valid on
|
|
149
|
+
* their own but cannot be nested through, because `distinct` doesn't support it.
|
|
150
|
+
* A registry left stale by a schema change therefore breaks the build instead of
|
|
151
|
+
* silently yielding a wrong type; pass an explicit `<any>` type argument to opt
|
|
152
|
+
* out.
|
|
153
|
+
*
|
|
154
|
+
* `string` for an unregistered collection, and for every collection while the
|
|
155
|
+
* registry is empty, so untyped projects keep passing arbitrary field names.
|
|
156
|
+
*
|
|
157
|
+
* An `item` type carrying an index signature degrades to plain `string` rather
|
|
158
|
+
* than erroring — such collections keep their pre-registry behavior.
|
|
159
|
+
*
|
|
160
|
+
* Being a *conditional* type is also what keeps literal inference alive at the
|
|
161
|
+
* call site: the checker unwraps a conditional constraint into the union of its
|
|
162
|
+
* branches, sees `string`, and therefore does not widen `'category'` to
|
|
163
|
+
* `string` — exactly how `F extends ReferenceFieldName<C>` behaves below.
|
|
164
|
+
*/
|
|
165
|
+
export type FieldOf<C> = [C] extends [never] ? string : C extends RegisteredCollections ? FieldPath<WixDataCollectionRegistry[C]['item'], ReferenceFieldOf<C>> : string;
|
|
166
|
+
/**
|
|
167
|
+
* Value type at field — or dotted path — `F` of collection `C`, as `distinct`
|
|
168
|
+
* reports it.
|
|
169
|
+
*
|
|
170
|
+
* A reference or multi-reference field always yields `string`: the service
|
|
171
|
+
* returns the `_id`s of the referenced items, never the items themselves. That
|
|
172
|
+
* is why `refs` is consulted here rather than the `item` field type — codegen
|
|
173
|
+
* types a single reference as `string | Item` (either an id or a resolved item),
|
|
174
|
+
* which is the read shape, not what `distinct` hands back.
|
|
175
|
+
*
|
|
176
|
+
* `any` in every "don't know" case: unregistered collection, unknown field, a
|
|
177
|
+
* path that runs past the end of the shape, or an `item` type with an index
|
|
178
|
+
* signature.
|
|
179
|
+
*
|
|
180
|
+
* A collection whose registry entry omits the optional `refs` key falls through
|
|
181
|
+
* to the `item` field type, so its reference fields resolve to the wider
|
|
182
|
+
* `string | Item` instead of `string`. Nothing else can distinguish a reference
|
|
183
|
+
* field from a union-typed plain one.
|
|
184
|
+
*
|
|
185
|
+
* Unlike `RefsOf`, this is safe to export: `NonNullable<string>` resolves to
|
|
186
|
+
* plain `string`, so the `& {}` artifact described above never appears here —
|
|
187
|
+
* that only sticks on deferred indexed accesses.
|
|
188
|
+
*/
|
|
189
|
+
export type FieldValueOf<C, F> = C extends RegisteredCollections ? F extends ReferenceFieldOf<C> ? string : ValueAtPath<WixDataCollectionRegistry[C]['item'], F> : any;
|
|
190
|
+
type ValueAtPath<T, P> = P extends `${infer Head}.${infer Rest}` ? Head extends keyof T ? ValueAtPath<FieldType<T[Head]>, Rest> : any : P extends keyof T ? FieldType<T[P]> : any;
|
|
191
|
+
/**
|
|
192
|
+
* Id of the collection that field `F` of collection `C` points at, or `never`
|
|
193
|
+
* when the registry doesn't say.
|
|
194
|
+
*/
|
|
195
|
+
type ReferencedCollectionOf<C, F> = F extends keyof RefsOf<C> ? RefsOf<C>[F] : never;
|
|
196
|
+
/**
|
|
197
|
+
* Read shape of the collection referenced by field `F` of collection `C`.
|
|
198
|
+
*
|
|
199
|
+
* Falls back to the open `WixDataItem` in every "don't know" case: `C` is
|
|
200
|
+
* unregistered, `C` declares no `refs`, `F` is not one of the declared
|
|
201
|
+
* reference fields, or `F` resolves to a collection id that is itself
|
|
202
|
+
* unregistered (that last one falls out of `ItemOf`).
|
|
203
|
+
*
|
|
204
|
+
* The `[…] extends [never]` guard is load-bearing: `ItemOf` is a distributive
|
|
205
|
+
* conditional, and distributing over `never` — the empty union — produces
|
|
206
|
+
* `never` rather than taking the false branch. Without it the three "don't
|
|
207
|
+
* know" cases above would resolve to `never` instead of `WixDataItem`.
|
|
208
|
+
*/
|
|
209
|
+
export type ReferencedItemOf<C, F> = [ReferencedCollectionOf<C, F>] extends [
|
|
210
|
+
never
|
|
211
|
+
] ? WixDataItem : ItemOf<ReferencedCollectionOf<C, F>>;
|
|
45
212
|
/**
|
|
46
213
|
* Below, each request/mutation function keeps ONE signature (no permissive
|
|
47
214
|
* fallback overload — a bad payload for a registered collection would silently
|
|
@@ -57,63 +224,112 @@ export type InsertOf<C> = C extends RegisteredCollections ? WixDataCollectionReg
|
|
|
57
224
|
type WriteInput<C, Explicit> = [Explicit] extends [never] ? InsertOf<C> : Explicit;
|
|
58
225
|
type ItemInput<C, Explicit> = [Explicit] extends [never] ? ItemOf<C> : Explicit;
|
|
59
226
|
type ResultOf<C, Explicit> = [Explicit] extends [never] ? ItemOf<C> : Explicit & WixDataItem;
|
|
227
|
+
/**
|
|
228
|
+
* Result item type for `queryReferencedItems`. Unlike `ResultOf`, an explicit
|
|
229
|
+
* `Item` is NOT intersected with `WixDataItem`: at this layer
|
|
230
|
+
* `queryReferencedItems<Product>(…)` has always resolved to
|
|
231
|
+
* `WixDataQueryReferencedItemsResponse<Product>`, and that stays true.
|
|
232
|
+
*/
|
|
233
|
+
type ReferencedResultOf<C, F, Explicit> = [Explicit] extends [never] ? ReferencedItemOf<C, F> : Explicit;
|
|
234
|
+
/** Same `Explicit`-wins rule as `ResultOf`, over a field value instead of an item. */
|
|
235
|
+
type DistinctValueOf<C, F, Explicit> = [Explicit] extends [never] ? FieldValueOf<C, F> : Explicit;
|
|
236
|
+
/**
|
|
237
|
+
* Item shapes accepted by the reference APIs. Strict for a registered
|
|
238
|
+
* collection, and otherwise `WithId` — which is exactly the constraint these
|
|
239
|
+
* methods carried before the registry, so unregistered collections behave
|
|
240
|
+
* identically.
|
|
241
|
+
*
|
|
242
|
+
* `WithId` and NOT `WixDataItem`: interfaces get no implicit index signature,
|
|
243
|
+
* so `interface Product { _id: string }` is not assignable to `WixDataItem`.
|
|
244
|
+
* Falling back to `WixDataItem` here would reject existing callers.
|
|
245
|
+
*
|
|
246
|
+
* `C` is `never` whenever the registry couldn't name a collection, and a
|
|
247
|
+
* distributive conditional over `never` yields `never` rather than the false
|
|
248
|
+
* branch — hence the explicit guard.
|
|
249
|
+
*/
|
|
250
|
+
type StrictItemOr<C, Fallback> = [C] extends [never] ? Fallback : C extends RegisteredCollections ? WixDataCollectionRegistry[C]['item'] : Fallback;
|
|
251
|
+
/**
|
|
252
|
+
* Neither of these includes the `| string` id alternative, and that is
|
|
253
|
+
* deliberate: the id union is added at the parameter, OUTSIDE the `NoInfer`
|
|
254
|
+
* wrapper. `NoInfer<Conditional>` blocks inference, but `NoInfer<Conditional |
|
|
255
|
+
* string>` does not — the checker infers into both branches of a conditional
|
|
256
|
+
* target, so `Explicit` would capture the very argument it is meant to check
|
|
257
|
+
* and the false branch would make any payload legal. Keeping these
|
|
258
|
+
* single-branch, exactly like `WriteInput`/`ItemInput` above, is what makes
|
|
259
|
+
* `insertReference('moto-fleet', 'owner', 'b1', wrongShape)` an error.
|
|
260
|
+
*/
|
|
261
|
+
type ReferringInput<C, Explicit> = [Explicit] extends [never] ? StrictItemOr<C, WithId> : Explicit;
|
|
262
|
+
type ReferencedInput<C, F, Explicit> = [Explicit] extends [never] ? StrictItemOr<ReferencedCollectionOf<C, F>, WithId> : Explicit;
|
|
60
263
|
/**
|
|
61
264
|
* Registry-aware signatures for the context exports.
|
|
62
265
|
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
266
|
+
* The type parameters are `<Item, C>`: `C` is inferred from the id and drives
|
|
267
|
+
* the registry lookup; an explicit `insert<Product>(...)` sets `Item` and wins.
|
|
268
|
+
*
|
|
269
|
+
* Each `*Generic` below is `Signature & ((httpClient) => Signature)` — the
|
|
270
|
+
* strict signature first, the curried one last — and each export keeps the
|
|
271
|
+
* `BuildRESTFunction<typeof publicX> &` intersection, so the pre-existing
|
|
272
|
+
* direct, non-curried call form stays in the published `.d.ts`. Both positions
|
|
273
|
+
* in that ordering are load-bearing:
|
|
274
|
+
*
|
|
275
|
+
* - Overload resolution walks an intersection left to right. The flattened
|
|
276
|
+
* order is [publicDirect, strict, curried]; the permissive `publicDirect`
|
|
277
|
+
* signature is only reachable by a direct call, which was never
|
|
278
|
+
* registry-typed. `insert(httpClient)('moto-fleet', bad)` and the elevated
|
|
279
|
+
* `items.insert('moto-fleet', bad)` both hit the strict signature and are
|
|
280
|
+
* rejected.
|
|
281
|
+
* - `BuildRESTFunction<T> = T extends RESTFunctionDescriptor<infer U> ? U
|
|
282
|
+
* : never` infers from the LAST call signature, so the curried one must come
|
|
283
|
+
* last or an elevated `items.insert(…)` unwraps to the wrong signature and
|
|
284
|
+
* silently loses its registry typing.
|
|
285
|
+
*
|
|
286
|
+
* The curried-last ordering is pinned by the elevated-client assertions in
|
|
287
|
+
* `registry-augmentation.ts` (`wix-data-items-sdk-consumer-tests`); flipping it
|
|
288
|
+
* fails there.
|
|
69
289
|
*/
|
|
70
290
|
type InsertSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, dataItem: NoInfer<WriteInput<C, Item>>, options?: WixDataInsertOptions) => Promise<ResultOf<C, Item>>;
|
|
71
|
-
type InsertGeneric = (httpClient: HttpClient) => InsertSignature;
|
|
291
|
+
type InsertGeneric = InsertSignature & ((httpClient: HttpClient) => InsertSignature);
|
|
72
292
|
type UpdateSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, dataItem: NoInfer<ItemInput<C, Item>>, options?: WixDataUpdateOptions) => Promise<ResultOf<C, Item>>;
|
|
73
|
-
type UpdateGeneric = (httpClient: HttpClient) => UpdateSignature;
|
|
293
|
+
type UpdateGeneric = UpdateSignature & ((httpClient: HttpClient) => UpdateSignature);
|
|
74
294
|
type SaveSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, dataItem: NoInfer<WriteInput<C, Item>>, options?: WixDataSaveOptions) => Promise<ResultOf<C, Item>>;
|
|
75
|
-
type SaveGeneric = (httpClient: HttpClient) => SaveSignature;
|
|
295
|
+
type SaveGeneric = SaveSignature & ((httpClient: HttpClient) => SaveSignature);
|
|
76
296
|
type GetSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, dataItemId: string, options?: WixDataGetOptions) => Promise<ResultOf<C, Item> | null>;
|
|
77
|
-
type GetGeneric = (httpClient: HttpClient) => GetSignature;
|
|
297
|
+
type GetGeneric = GetSignature & ((httpClient: HttpClient) => GetSignature);
|
|
78
298
|
type RemoveSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, dataItemId: string, options?: WixDataRemoveOptions) => Promise<ResultOf<C, Item> | null>;
|
|
79
|
-
type RemoveGeneric = (httpClient: HttpClient) => RemoveSignature;
|
|
299
|
+
type RemoveGeneric = RemoveSignature & ((httpClient: HttpClient) => RemoveSignature);
|
|
80
300
|
type BulkInsertSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, items: NoInfer<WriteInput<C, Item>>[], options?: WixDataOptions) => Promise<WixDataBulkResult>;
|
|
81
|
-
type BulkInsertGeneric = (httpClient: HttpClient) => BulkInsertSignature;
|
|
301
|
+
type BulkInsertGeneric = BulkInsertSignature & ((httpClient: HttpClient) => BulkInsertSignature);
|
|
82
302
|
type BulkUpdateSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, items: NoInfer<ItemInput<C, Item>>[], options?: WixDataBulkUpdateOptions) => Promise<WixDataBulkResult>;
|
|
83
|
-
type BulkUpdateGeneric = (httpClient: HttpClient) => BulkUpdateSignature;
|
|
303
|
+
type BulkUpdateGeneric = BulkUpdateSignature & ((httpClient: HttpClient) => BulkUpdateSignature);
|
|
84
304
|
type BulkSaveSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, items: NoInfer<WriteInput<C, Item>>[], options?: WixDataBulkSaveOptions) => Promise<WixDataBulkResult>;
|
|
85
|
-
type BulkSaveGeneric = (httpClient: HttpClient) => BulkSaveSignature;
|
|
305
|
+
type BulkSaveGeneric = BulkSaveSignature & ((httpClient: HttpClient) => BulkSaveSignature);
|
|
86
306
|
type BulkRemoveGeneric = {
|
|
87
307
|
(httpClient: HttpClient): ReturnType<typeof publicBulkRemove>;
|
|
88
308
|
(dataCollectionId: CollectionId, itemIds: string[], options?: WixDataBulkRemoveOptions): Promise<WixDataBulkResult>;
|
|
89
309
|
};
|
|
90
|
-
type
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
type ReferenceMutationGeneric = {
|
|
95
|
-
(httpClient: HttpClient): <ItemLeft extends WithId, ItemRight extends WithId>(dataCollectionId: CollectionId, propertyName: string, referringItem: ItemLeft | string, referencedItem: ItemRight | string | ItemRight[] | string[], options?: WixDataOptions) => Promise<void>;
|
|
96
|
-
<ItemLeft extends WithId, ItemRight extends WithId>(dataCollectionId: CollectionId, propertyName: string, referringItem: ItemLeft | string, referencedItem: ItemRight | string | ItemRight[] | string[], options?: WixDataOptions): Promise<void>;
|
|
97
|
-
};
|
|
310
|
+
type IsReferencedSignature = <ItemLeft extends WithId = never, ItemRight extends WithId = never, C extends CollectionId = CollectionId, F extends ReferenceFieldName<C> = ReferenceFieldName<C>>(dataCollectionId: C, propertyName: F, referringItem: NoInfer<ReferringInput<C, ItemLeft>> | string, referencedItem: NoInfer<ReferencedInput<C, F, ItemRight>> | string, options?: WixDataIsReferencedOptions) => Promise<boolean>;
|
|
311
|
+
type IsReferencedGeneric = IsReferencedSignature & ((httpClient: HttpClient) => IsReferencedSignature);
|
|
312
|
+
type ReferenceMutationSignature = <ItemLeft extends WithId = never, ItemRight extends WithId = never, C extends CollectionId = CollectionId, F extends ReferenceFieldName<C> = ReferenceFieldName<C>>(dataCollectionId: C, propertyName: F, referringItem: NoInfer<ReferringInput<C, ItemLeft>> | string, referencedItem: NoInfer<ReferencedInput<C, F, ItemRight>> | string | (NoInfer<ReferencedInput<C, F, ItemRight>> | string)[], options?: WixDataOptions) => Promise<void>;
|
|
313
|
+
type ReferenceMutationGeneric = ReferenceMutationSignature & ((httpClient: HttpClient) => ReferenceMutationSignature);
|
|
98
314
|
type QueryRequestSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, queryRequest: WixDataQueryRequest, options?: WixDataQueryOptions) => Promise<WixDataQueryResponse<ResultOf<C, Item>>>;
|
|
99
315
|
type QueryFluentSignature = (dataCollectionId: string) => WixDataQuery;
|
|
100
|
-
type QueryGeneric = (httpClient: HttpClient) => QueryRequestSignature & QueryFluentSignature;
|
|
316
|
+
type QueryGeneric = QueryRequestSignature & QueryFluentSignature & ((httpClient: HttpClient) => QueryRequestSignature & QueryFluentSignature);
|
|
101
317
|
type SearchRequestSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, searchRequest: WixDataSearchRequest, options?: WixDataSearchOptions) => Promise<WixDataSearchResponse<ResultOf<C, Item>>>;
|
|
102
318
|
type SearchFluentSignature = (dataCollectionId: string) => WixDataSearch;
|
|
103
|
-
type SearchGeneric = (httpClient: HttpClient) => SearchRequestSignature & SearchFluentSignature;
|
|
104
|
-
type
|
|
105
|
-
|
|
106
|
-
<Item = WixDataItem>(dataCollectionId: string, referringItem: WixDataItem | string | (WixDataItem | string)[], referringItemFieldName: string, options?: WixDataQueryReferencedItemsOptions): Promise<WixDataQueryReferencedItemsResponse<Item>>;
|
|
107
|
-
};
|
|
319
|
+
type SearchGeneric = SearchRequestSignature & SearchFluentSignature & ((httpClient: HttpClient) => SearchRequestSignature & SearchFluentSignature);
|
|
320
|
+
type QueryReferencedItemsSignature = <Item = never, C extends CollectionId = CollectionId, F extends ReferenceFieldName<C> = ReferenceFieldName<C>>(dataCollectionId: C, referringItem: WixDataItem | string | (WixDataItem | string)[], referringItemFieldName: F, options?: WixDataQueryReferencedItemsOptions) => Promise<WixDataQueryReferencedItemsResponse<ReferencedResultOf<C, F, Item>>>;
|
|
321
|
+
type QueryReferencedItemsGeneric = QueryReferencedItemsSignature & ((httpClient: HttpClient) => QueryReferencedItemsSignature);
|
|
108
322
|
type AggregateGeneric = {
|
|
109
323
|
(httpClient: HttpClient): (<Result = Record<string, any>>(dataCollectionId: string, pipeline: AggregationPipeline, options?: WixDataAggregateOptions) => Promise<WixDataAggregateResponse<Result>>) & ((dataCollectionId: string) => WixDataAggregate);
|
|
110
324
|
(dataCollectionId: string): WixDataAggregate;
|
|
111
325
|
<Result = Record<string, any>>(dataCollectionId: string, pipeline: AggregationPipeline, options?: WixDataAggregateOptions): Promise<WixDataAggregateResponse<Result>>;
|
|
112
326
|
};
|
|
327
|
+
type DistinctSignature = <Value = never, C extends CollectionId = CollectionId, F extends FieldOf<C> = FieldOf<C>>(dataCollectionId: C, fieldName: F, options?: WixDataDistinctOptions) => Promise<WixDataDistinctResponse<DistinctValueOf<C, F, Value>>>;
|
|
328
|
+
type DistinctGeneric = DistinctSignature & ((httpClient: HttpClient) => DistinctSignature);
|
|
113
329
|
type PatchResultOf<C, Explicit> = ([Explicit] extends [never] ? ItemOf<C> : Explicit) | null;
|
|
114
330
|
type PatchRequestSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, itemId: string, fieldModifications: FieldModification[], options?: WixDataPatchOptions) => Promise<PatchResultOf<C, Item>>;
|
|
115
331
|
type PatchBuilderSignature = (dataCollectionId: string, itemId: string) => WixDataPatch;
|
|
116
|
-
type PatchGeneric = (httpClient: HttpClient) => PatchRequestSignature & PatchBuilderSignature;
|
|
332
|
+
type PatchGeneric = PatchRequestSignature & PatchBuilderSignature & ((httpClient: HttpClient) => PatchRequestSignature & PatchBuilderSignature);
|
|
117
333
|
type BulkPatchGeneric = {
|
|
118
334
|
(httpClient: HttpClient): {
|
|
119
335
|
(dataCollectionId: CollectionId, itemIds: string[]): WixDataBulkPatch;
|
|
@@ -134,33 +350,29 @@ type GetAsyncJobStatusGeneric = {
|
|
|
134
350
|
(httpClient: HttpClient): (jobId: string) => Promise<WixDataAsyncJobStatus>;
|
|
135
351
|
(jobId: string): Promise<WixDataAsyncJobStatus>;
|
|
136
352
|
};
|
|
137
|
-
export declare const insert: MaybeContext<InsertGeneric>;
|
|
138
|
-
export declare const update: MaybeContext<UpdateGeneric>;
|
|
139
|
-
export declare const save: MaybeContext<SaveGeneric>;
|
|
140
|
-
export declare const get: MaybeContext<GetGeneric>;
|
|
141
|
-
export declare const remove: MaybeContext<RemoveGeneric>;
|
|
353
|
+
export declare const insert: MaybeContext<BuildRESTFunction<typeof publicInsert> & InsertGeneric>;
|
|
354
|
+
export declare const update: MaybeContext<BuildRESTFunction<typeof publicUpdate> & UpdateGeneric>;
|
|
355
|
+
export declare const save: MaybeContext<BuildRESTFunction<typeof publicSave> & SaveGeneric>;
|
|
356
|
+
export declare const get: MaybeContext<BuildRESTFunction<typeof publicGet> & GetGeneric>;
|
|
357
|
+
export declare const remove: MaybeContext<BuildRESTFunction<typeof publicRemove> & RemoveGeneric>;
|
|
142
358
|
export declare const truncate: MaybeContext<BuildRESTFunction<typeof publicTruncate> & typeof publicTruncate>;
|
|
143
|
-
export declare const bulkInsert: MaybeContext<BulkInsertGeneric>;
|
|
144
|
-
export declare const bulkUpdate: MaybeContext<BulkUpdateGeneric>;
|
|
145
|
-
export declare const bulkSave: MaybeContext<BulkSaveGeneric>;
|
|
359
|
+
export declare const bulkInsert: MaybeContext<BuildRESTFunction<typeof publicBulkInsert> & BulkInsertGeneric>;
|
|
360
|
+
export declare const bulkUpdate: MaybeContext<BuildRESTFunction<typeof publicBulkUpdate> & BulkUpdateGeneric>;
|
|
361
|
+
export declare const bulkSave: MaybeContext<BuildRESTFunction<typeof publicBulkSave> & BulkSaveGeneric>;
|
|
146
362
|
export declare const bulkRemove: MaybeContext<BuildRESTFunction<typeof publicBulkRemove> & BulkRemoveGeneric>;
|
|
147
363
|
export declare const isReferenced: MaybeContext<BuildRESTFunction<typeof publicIsReferenced> & IsReferencedGeneric>;
|
|
148
364
|
export declare const insertReference: MaybeContext<BuildRESTFunction<typeof publicInsertReference> & ReferenceMutationGeneric>;
|
|
149
365
|
export declare const removeReference: MaybeContext<BuildRESTFunction<typeof publicRemoveReference> & ReferenceMutationGeneric>;
|
|
150
366
|
export declare const replaceReferences: MaybeContext<BuildRESTFunction<typeof publicReplaceReferences> & ReferenceMutationGeneric>;
|
|
151
|
-
export declare const query: MaybeContext<QueryGeneric>;
|
|
152
|
-
export declare const search: MaybeContext<SearchGeneric>;
|
|
153
|
-
export declare const patch: MaybeContext<PatchGeneric>;
|
|
367
|
+
export declare const query: MaybeContext<BuildRESTFunction<typeof publicQuery> & QueryGeneric>;
|
|
368
|
+
export declare const search: MaybeContext<BuildRESTFunction<typeof publicSearch> & SearchGeneric>;
|
|
369
|
+
export declare const patch: MaybeContext<BuildRESTFunction<typeof publicPatch> & PatchGeneric>;
|
|
154
370
|
export declare const bulkPatch: MaybeContext<BuildRESTFunction<typeof publicBulkPatch> & BulkPatchGeneric>;
|
|
155
371
|
export declare const asyncPatchByFilter: MaybeContext<BuildRESTFunction<typeof publicAsyncPatchByFilter> & AsyncPatchByFilterGeneric>;
|
|
156
372
|
export declare const asyncRemoveByFilter: MaybeContext<BuildRESTFunction<typeof publicAsyncRemoveByFilter> & AsyncRemoveByFilterGeneric>;
|
|
157
373
|
export declare const getAsyncJobStatus: MaybeContext<BuildRESTFunction<typeof publicGetAsyncJobStatus> & GetAsyncJobStatusGeneric>;
|
|
158
374
|
export declare const aggregate: MaybeContext<BuildRESTFunction<typeof publicAggregate> & AggregateGeneric>;
|
|
159
375
|
export declare const aggregatePipeline: MaybeContext<BuildRESTFunction<typeof publicAggregatePipeline> & typeof publicAggregatePipeline>;
|
|
160
|
-
type DistinctGeneric = {
|
|
161
|
-
(httpClient: HttpClient): (dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions) => Promise<WixDataDistinctResponse>;
|
|
162
|
-
(dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions): Promise<WixDataDistinctResponse>;
|
|
163
|
-
};
|
|
164
376
|
export declare const distinct: MaybeContext<BuildRESTFunction<typeof publicDistinct> & DistinctGeneric>;
|
|
165
377
|
export declare const count: MaybeContext<BuildRESTFunction<typeof publicCount> & typeof publicCount>;
|
|
166
378
|
export declare const queryReferenced: MaybeContext<BuildRESTFunction<typeof publicQueryReferenced> & typeof publicQueryReferenced>;
|
|
@@ -179,6 +391,6 @@ export declare const onDataItemUpdated: ReturnType<typeof createEventModule<type
|
|
|
179
391
|
* Triggered when a data item is deleted or truncated.
|
|
180
392
|
*/
|
|
181
393
|
export declare const onDataItemDeleted: ReturnType<typeof createEventModule<typeof publicOnDataItemDeleted>>;
|
|
182
|
-
export { Environment, WixDataReadOptions, WixDataReadWithProjectionOptions, WixDataGetOptions, WixDataPatchOptions, WixDataBulkPatchOptions, FieldModification, FieldModificationsBuilder, WixDataFieldModificationsBuilder, WixDataAsyncByFilterOptions, WixDataOptions, WixDataInsertOptions, WixDataUpdateOptions, WixDataAggregateOptions, WixDataItem, WixDataBulkResult, WixDataBulkError, WixDataQuery, WixDataSearch, WixDataPatch, WixDataPatchByFilter, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJobStatus, WixDataFilterInput, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, AggregationPipeline, pipelineBuilder, PipelineBuilder, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, WixDataFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, PipelineStage, stages, Stages, expressions, Expressions, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, WixDataDistinctOptions, QueryBuilder, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, Filter, Sort, WixDataSearchRequest, SearchBuilder, SearchParams, } from './data-v2-data-item-items.universal';
|
|
394
|
+
export { Environment, WixDataReadOptions, WixDataReadWithProjectionOptions, WixDataGetOptions, WixDataPatchOptions, WixDataBulkPatchOptions, FieldModification, FieldModificationsBuilder, WixDataFieldModificationsBuilder, WixDataAsyncByFilterOptions, WixDataOptions, WixDataInsertOptions, WixDataUpdateOptions, WixDataAggregateOptions, WixDataItem, WixDataBulkResult, WixDataBulkError, WixDataQuery, WixDataSearch, WixDataPatch, WixDataPatchByFilter, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJobStatus, WixDataFilterInput, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, AggregationPipeline, pipelineBuilder, PipelineBuilder, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, WixDataFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, ReferencedResult, UnresolvedReference, PipelineStage, stages, Stages, expressions, Expressions, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, WixDataDistinctOptions, QueryBuilder, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, Filter, Sort, WixDataSearchRequest, SearchBuilder, SearchParams, } from './data-v2-data-item-items.universal';
|
|
183
395
|
export type { WixDataIsReferencedOptions, WixDataGetOptionsBuilder, WixDataQueryOptionsBuilder, WixDataQueryReferencedItemsOptionsBuilder, WixDataAggregateOptionsBuilder, WixDataDistinctOptionsBuilder, WixDataCountOptionsBuilder, WixDataIsReferencedOptionsBuilder, WixDataSearchOptionsBuilder, WixDataInsertOptionsBuilder, WixDataRemoveOptionsBuilder, WixDataBulkRemoveOptionsBuilder, WixDataAsyncRemoveByFilterOptionsBuilder, WixDataAsyncPatchByFilterOptionsBuilder, WixDataPatchOptionsBuilder, WixDataBulkPatchOptionsBuilder, WixDataSaveOptionsBuilder, WixDataBulkSaveOptionsBuilder, WixDataUpdateOptionsBuilder, WixDataBulkUpdateOptionsBuilder, WixDataBulkInsertOptionsBuilder, } from './data-v2-data-item-items.universal';
|
|
184
396
|
export * from './data-v2-data-item-items.types';
|
|
@@ -19,29 +19,22 @@ exports.SearchParams = exports.SearchBuilder = exports.Sort = exports.Filter = e
|
|
|
19
19
|
const data_v2_data_item_items_public_1 = require("./data-v2-data-item-items.public");
|
|
20
20
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
21
21
|
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
22
|
-
exports.insert =
|
|
23
|
-
|
|
24
|
-
exports.update =
|
|
25
|
-
/*#__PURE__*/ (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.update);
|
|
22
|
+
exports.insert = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.insert);
|
|
23
|
+
exports.update = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.update);
|
|
26
24
|
exports.save = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.save);
|
|
27
25
|
exports.get = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.get);
|
|
28
|
-
exports.remove =
|
|
29
|
-
/*#__PURE__*/ (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.remove);
|
|
26
|
+
exports.remove = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.remove);
|
|
30
27
|
exports.truncate = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.truncate);
|
|
31
|
-
exports.bulkInsert =
|
|
32
|
-
|
|
33
|
-
exports.
|
|
34
|
-
/*#__PURE__*/ (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.bulkUpdate);
|
|
35
|
-
exports.bulkSave =
|
|
36
|
-
/*#__PURE__*/ (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.bulkSave);
|
|
28
|
+
exports.bulkInsert = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.bulkInsert);
|
|
29
|
+
exports.bulkUpdate = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.bulkUpdate);
|
|
30
|
+
exports.bulkSave = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.bulkSave);
|
|
37
31
|
exports.bulkRemove = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.bulkRemove);
|
|
38
32
|
exports.isReferenced = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.isReferenced);
|
|
39
33
|
exports.insertReference = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.insertReference);
|
|
40
34
|
exports.removeReference = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.removeReference);
|
|
41
35
|
exports.replaceReferences = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.replaceReferences);
|
|
42
36
|
exports.query = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.query);
|
|
43
|
-
exports.search =
|
|
44
|
-
/*#__PURE__*/ (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.search);
|
|
37
|
+
exports.search = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.search);
|
|
45
38
|
exports.patch = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.patch);
|
|
46
39
|
exports.bulkPatch = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.bulkPatch);
|
|
47
40
|
exports.asyncPatchByFilter = (0, rest_modules_1.createRESTModule)(data_v2_data_item_items_public_1.asyncPatchByFilter);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-v2-data-item-items.context.js","sourceRoot":"","sources":["../../../src/data-v2-data-item-items.context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qFAiCyC;AAEzC,gEAAgE;AAChE,wFAA6E;
|
|
1
|
+
{"version":3,"file":"data-v2-data-item-items.context.js","sourceRoot":"","sources":["../../../src/data-v2-data-item-items.context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qFAiCyC;AAEzC,gEAAgE;AAChE,wFAA6E;AAwsBhE,QAAA,MAAM,GAED,IAAA,+BAAgB,EAAC,uCAAY,CAE9C,CAAA;AAEY,QAAA,MAAM,GAED,IAAA,+BAAgB,EAAC,uCAAY,CAE9C,CAAA;AAEY,QAAA,IAAI,GAEC,IAAA,+BAAgB,EAAC,qCAAU,CAE5C,CAAA;AAEY,QAAA,GAAG,GAEE,IAAA,+BAAgB,EAAC,oCAAS,CAE3C,CAAA;AAEY,QAAA,MAAM,GAED,IAAA,+BAAgB,EAAC,uCAAY,CAE9C,CAAA;AAEY,QAAA,QAAQ,GAEH,IAAA,+BAAgB,EAAC,yCAAc,CAAC,CAAA;AAErC,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,2CAAgB,CAElD,CAAA;AAEY,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,2CAAgB,CAElD,CAAA;AAEY,QAAA,QAAQ,GAEH,IAAA,+BAAgB,EAAC,yCAAc,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A;AACb,iIAAA,YAAY,OAAA;AAyBd,kEAA+C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WixDataIsReferencedOptions } from '@wix/wix-data-items-common';
|
|
2
|
-
import { WixDataUpdateOptions, WixDataCountOptions, WixDataReadOptions, WixDataRemoveOptions, WixDataSaveOptions, WixDataInsertOptions, WixDataOptions, WixDataBulkRemoveOptions, WixDataBulkUpdateOptions, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, WixDataAggregateOptions, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, WixDataBulkPatch, WixDataBulkPatchOptions, WixDataBulkResult, WixDataBulkError, WixDataItem, WithId, WixDataReadWithProjectionOptions, WithIncludeFieldGroupsOption, WixDataGetOptions, WixDataPatch, WixDataPatchByFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQuery, WixDataSearch, QueryBase, WixDataFilter, WixDataQueryReferencedOptions, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, WixDataQueryRequest, WixDataPatchOptions, FieldModification, WixDataAsyncByFilterOptions, WixDataAsyncRemoveByFilterOptions, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJob, WixDataAsyncJobStatus, WixDataFilterInput, WixDataApi, PipelineStage, pipelineBuilder, PipelineBuilder as _PipelineBuilder, QueryBuilder, Sort, Filter, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, WixDataBulkInsertOptions, WixDataBulkSaveOptions, WixDataQueryOptions, expressions, stages, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, AggregationPipeline, AggregatePipelineDataItemsResponse, WixDataDistinctOptions, WixDataSearchRequest, WixDataSearchOptions, SearchBuilder, SearchParams, FieldModificationsBuilder, WixDataFieldModificationsBuilder } from '@wix/wix-data-items-common';
|
|
2
|
+
import { WixDataUpdateOptions, WixDataCountOptions, WixDataReadOptions, WixDataRemoveOptions, WixDataSaveOptions, WixDataInsertOptions, WixDataOptions, WixDataBulkRemoveOptions, WixDataBulkUpdateOptions, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, WixDataAggregateOptions, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, WixDataBulkPatch, WixDataBulkPatchOptions, WixDataBulkResult, WixDataBulkError, WixDataItem, WithId, WixDataReadWithProjectionOptions, WithIncludeFieldGroupsOption, WixDataGetOptions, WixDataPatch, WixDataPatchByFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQuery, WixDataSearch, QueryBase, WixDataFilter, WixDataQueryReferencedOptions, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, ReferencedResult, UnresolvedReference, WixDataQueryRequest, WixDataPatchOptions, FieldModification, WixDataAsyncByFilterOptions, WixDataAsyncRemoveByFilterOptions, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJob, WixDataAsyncJobStatus, WixDataFilterInput, WixDataApi, PipelineStage, pipelineBuilder, PipelineBuilder as _PipelineBuilder, QueryBuilder, Sort, Filter, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, WixDataBulkInsertOptions, WixDataBulkSaveOptions, WixDataQueryOptions, expressions, stages, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, AggregationPipeline, AggregatePipelineDataItemsResponse, WixDataDistinctOptions, WixDataSearchRequest, WixDataSearchOptions, SearchBuilder, SearchParams, FieldModificationsBuilder, WixDataFieldModificationsBuilder } from '@wix/wix-data-items-common';
|
|
3
3
|
import { DataItemCreatedEnvelope, DataItemDeletedEnvelope, DataItemUpdatedEnvelope } from './data-v2-data-item-items.types';
|
|
4
4
|
/**
|
|
5
5
|
* Adds an item to a collection.
|
|
@@ -812,7 +812,7 @@ export declare function onDataItemUpdated(handler: (event: DataItemUpdatedEnvelo
|
|
|
812
812
|
* @slug deleted
|
|
813
813
|
*/
|
|
814
814
|
export declare function onDataItemDeleted(handler: (event: DataItemDeletedEnvelope) => void | Promise<void>): void;
|
|
815
|
-
export { WixDataReadOptions, WixDataReadWithProjectionOptions, WithIncludeFieldGroupsOption, WixDataGetOptions, WixDataOptions, WixDataRemoveOptions, WixDataInsertOptions, WixDataUpdateOptions, WixDataSaveOptions, WixDataBulkSaveOptions, WixDataItem, WithId, WixDataBulkResult, WixDataBulkError, WixDataBulkUpdateOptions, WixDataBulkRemoveOptions, WixDataQuery, WixDataPatch, WixDataBulkPatch, WixDataPatchByFilter, WixDataAsyncByFilterOptions, WixDataAsyncRemoveByFilterOptions, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJob, WixDataAsyncJobStatus, WixDataFilterInput, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, QueryBase, WixDataFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQueryReferencedOptions, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, WixDataPatchOptions, WixDataBulkPatchOptions, FieldModification, FieldModificationsBuilder, WixDataFieldModificationsBuilder, WixDataSearch, PipelineStage, pipelineBuilder, QueryBuilder, Sort, Filter, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, WixDataQueryOptions, WixDataSearchRequest, WixDataSearchOptions, SearchBuilder, SearchParams, expressions, stages, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, WixDataAggregateOptions, WixDataCountOptions, AggregationPipeline, AggregatePipelineDataItemsResponse, WixDataDistinctOptions, };
|
|
815
|
+
export { WixDataReadOptions, WixDataReadWithProjectionOptions, WithIncludeFieldGroupsOption, WixDataGetOptions, WixDataOptions, WixDataRemoveOptions, WixDataInsertOptions, WixDataUpdateOptions, WixDataSaveOptions, WixDataBulkSaveOptions, WixDataItem, WithId, WixDataBulkResult, WixDataBulkError, WixDataBulkUpdateOptions, WixDataBulkRemoveOptions, WixDataQuery, WixDataPatch, WixDataBulkPatch, WixDataPatchByFilter, WixDataAsyncByFilterOptions, WixDataAsyncRemoveByFilterOptions, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJob, WixDataAsyncJobStatus, WixDataFilterInput, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, QueryBase, WixDataFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQueryReferencedOptions, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, ReferencedResult, UnresolvedReference, WixDataPatchOptions, WixDataBulkPatchOptions, FieldModification, FieldModificationsBuilder, WixDataFieldModificationsBuilder, WixDataSearch, PipelineStage, pipelineBuilder, QueryBuilder, Sort, Filter, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, WixDataQueryOptions, WixDataSearchRequest, WixDataSearchOptions, SearchBuilder, SearchParams, expressions, stages, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, WixDataAggregateOptions, WixDataCountOptions, AggregationPipeline, AggregatePipelineDataItemsResponse, WixDataDistinctOptions, };
|
|
816
816
|
/** @builder */
|
|
817
817
|
export interface PipelineBuilder extends _PipelineBuilder {
|
|
818
818
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-v2-data-item-items.universal.js","sourceRoot":"","sources":["../../../src/data-v2-data-item-items.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,iDAA8C;AAE9C,sEAmHmC;AAu4CjC,0FAl9CA,iCAAS,OAk9CA;AAiBT,gGAj9CA,uCAAe,OAi9CA;AACf,6FAh9CA,oCAAY,OAg9CA;AACZ,qFAh9CA,4BAAI,OAg9CA;AACJ,uFAh9CA,8BAAM,OAg9CA;AACN,qGAh9CA,4CAAoB,OAg9CA;AACpB,mGAh9CA,0CAAkB,OAg9CA;AAClB,uGAh9CA,8CAAsB,OAg9CA;AACtB,kGAh9CA,yCAAiB,OAg9CA;AACjB,oGAh9CA,2CAAmB,OAg9CA;AACnB,mHAh9CA,0DAAkC,OAg9CA;AAClC,wGAh9CA,+CAAuB,OAg9CA;AACvB,uGAh9CA,8CAAsB,OAg9CA;AACtB,oGAh9CA,2CAAmB,OAg9CA;AACnB,2GAh9CA,kDAA0B,OAg9CA;AAC1B,qGAh9CA,4CAAoB,OAg9CA;AACpB,qGAh9CA,4CAAoB,OAg9CA;AACpB,yGAh9CA,gDAAwB,OAg9CA;AACxB,yGAh9CA,gDAAwB,OAg9CA;AACxB,oGAh9CA,2CAAmB,OAg9CA;AACnB,wGAh9CA,+CAAuB,OAg9CA;AACvB,yGAh9CA,gDAAwB,OAg9CA;AACxB,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aAA8D,EAC9D,KAAa,EACb,OAA4C;IAE5C,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAA;IAED,OAAO,IAAA,4BAAa,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC,oBAAoB,CAChE,gBAAgB,EAChB,aAAa,EACb,KAAK,EACL,OAAO,CACR,CAAA;AACH,CAAC;AAnBD,oDAmBC;AAED,SAAgB,MAAM;IACpB,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAA;IAED,OAAO,IAAA,4BAAa,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC,MAAM,CAAA;AACtD,CAAC;AAPD,wBAOC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,eAAe,CAAC,WAAwB;IACtD,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAA;IAED,OAAO,IAAA,4BAAa,EAAC,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC,CAAA;AAC5D,CAAC;AAPD,0CAOC;AAED,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,6IAA6I;IAC7I,4BAAa,CAAA;IACb,mJAAmJ;IACnJ,kCAAmB,CAAA;IACnB,oPAAoP;IACpP,sDAAuC,CAAA;AACzC,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAkKD;;;;;;;;;;GAUG;AACU,QAAA,eAAe,GAA2B,uCAAe,CAAA;AACtE;;;;;;;GAOG;AACU,QAAA,MAAM,GAAG,8BAAM,CAAA;AAE5B;;;;;GAKG;AACU,QAAA,WAAW,GAAG,mCAAW,CAAA;AA4BtC,kEAA+C"}
|
|
1
|
+
{"version":3,"file":"data-v2-data-item-items.universal.js","sourceRoot":"","sources":["../../../src/data-v2-data-item-items.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,iDAA8C;AAE9C,sEAqHmC;AAu4CjC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ACtD,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAA;IAED,OAAO,IAAA,4BAAa,EAAC,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC,CAAA;AAC5D,CAAC;AAPD,0CAOC;AAED,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,6IAA6I;IAC7I,4BAAa,CAAA;IACb,mJAAmJ;IACnJ,kCAAmB,CAAA;IACnB,oPAAoP;IACpP,sDAAuC,CAAA;AACzC,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAoKD;;;;;;;;;;GAUG;AACU,QAAA,eAAe,GAA2B,uCAAe,CAAA;AACtE;;;;;;;GAOG;AACU,QAAA,MAAM,GAAG,8BAAM,CAAA;AAE5B;;;;;GAKG;AACU,QAAA,WAAW,GAAG,mCAAW,CAAA;AA4BtC,kEAA+C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { truncate as publicTruncate, bulkRemove as publicBulkRemove, isReferenced as publicIsReferenced, insertReference as publicInsertReference, removeReference as publicRemoveReference, replaceReferences as publicReplaceReferences, bulkPatch as publicBulkPatch, asyncPatchByFilter as publicAsyncPatchByFilter, asyncRemoveByFilter as publicAsyncRemoveByFilter, getAsyncJobStatus as publicGetAsyncJobStatus, aggregate as publicAggregate, aggregatePipeline as publicAggregatePipeline, distinct as publicDistinct, count as publicCount, queryReferenced as publicQueryReferenced, queryReferencedItems as publicQueryReferencedItems, filter as publicFilter, withEnvironment as publicWithEnvironment, onDataItemCreated as publicOnDataItemCreated, onDataItemUpdated as publicOnDataItemUpdated, onDataItemDeleted as publicOnDataItemDeleted } from './data-v2-data-item-items.public';
|
|
1
|
+
import { insert as publicInsert, update as publicUpdate, save as publicSave, get as publicGet, remove as publicRemove, truncate as publicTruncate, bulkInsert as publicBulkInsert, bulkUpdate as publicBulkUpdate, bulkSave as publicBulkSave, bulkRemove as publicBulkRemove, isReferenced as publicIsReferenced, insertReference as publicInsertReference, removeReference as publicRemoveReference, replaceReferences as publicReplaceReferences, query as publicQuery, search as publicSearch, patch as publicPatch, bulkPatch as publicBulkPatch, asyncPatchByFilter as publicAsyncPatchByFilter, asyncRemoveByFilter as publicAsyncRemoveByFilter, getAsyncJobStatus as publicGetAsyncJobStatus, aggregate as publicAggregate, aggregatePipeline as publicAggregatePipeline, distinct as publicDistinct, count as publicCount, queryReferenced as publicQueryReferenced, queryReferencedItems as publicQueryReferencedItems, filter as publicFilter, withEnvironment as publicWithEnvironment, onDataItemCreated as publicOnDataItemCreated, onDataItemUpdated as publicOnDataItemUpdated, onDataItemDeleted as publicOnDataItemDeleted } from './data-v2-data-item-items.public';
|
|
2
2
|
import { BuildRESTFunction, HttpClient, MaybeContext } from '@wix/sdk-types';
|
|
3
3
|
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
4
4
|
import type { WixDataItem, WixDataUpdateOptions, WixDataRemoveOptions, WixDataSaveOptions, WixDataOptions, WixDataInsertOptions, WixDataBulkUpdateOptions, WixDataBulkRemoveOptions, WixDataGetOptions, WixDataQueryRequest, WixDataQueryOptions, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, WixDataQuery, WixDataSearchRequest, WixDataSearchOptions, WixDataSearch, WixDataBulkResult, WixDataBulkSaveOptions, WixDataPatch, WixDataBulkPatch, WixDataPatchOptions, WixDataBulkPatchOptions, FieldModification, WixDataAsyncRemoveByFilterOptions, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJobStatus, WixDataFilterInput, WixDataAggregate, AggregationPipeline, WixDataAggregateOptions, WixDataDistinctOptions, WixDataIsReferencedOptions, WithId } from './data-v2-data-item-items.universal';
|
|
@@ -13,11 +13,36 @@ type NoInfer<T> = [T][T extends any ? 0 : never];
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* declare module '@wix/wix-data-items-sdk' {
|
|
15
15
|
* interface WixDataCollectionRegistry {
|
|
16
|
-
* 'moto-fleet': {
|
|
16
|
+
* 'moto-fleet': {
|
|
17
|
+
* item: MotoFleetItem
|
|
18
|
+
* insert: MotoFleetInsert
|
|
19
|
+
* refs: { owner: 'owners'; manual: 'service-manuals' }
|
|
20
|
+
* }
|
|
21
|
+
* owners: { item: OwnerItem; insert: OwnerInsert }
|
|
17
22
|
* }
|
|
18
23
|
* }
|
|
19
24
|
* ```
|
|
20
25
|
*
|
|
26
|
+
* `item` and `insert` are required. `item` is both the read shape and the
|
|
27
|
+
* authoritative field list: it drives `distinct`'s `fieldName` parameter — the
|
|
28
|
+
* one place a field name is checked strictly, dotted paths included — and the
|
|
29
|
+
* type of the values it returns. Reference fields belong on it too, typed as
|
|
30
|
+
* either an id or the resolved item (`owner?: string | OwnerItem` when single),
|
|
31
|
+
* and `refs` is what tells `distinct` they are references: it reports their
|
|
32
|
+
* `_id`s, so their value type is `string` rather than that union.
|
|
33
|
+
*
|
|
34
|
+
* `refs` is OPTIONAL: it maps each reference and multi-reference field to the id
|
|
35
|
+
* of the collection that field points at (the schema's `referencedCollection`),
|
|
36
|
+
* and drives the reference APIs — `queryReferencedItems` returns that
|
|
37
|
+
* collection's item type, and the mutation methods type their `referencedItem`
|
|
38
|
+
* argument with it. Codegen omits `refs` for collections with no reference
|
|
39
|
+
* fields, and entries written before `refs` existed keep working unchanged. A
|
|
40
|
+
* `refs` target need not itself be registered (`'service-manuals'` above isn't)
|
|
41
|
+
* — those resolve to the open `WixDataItem`.
|
|
42
|
+
*
|
|
43
|
+
* `refs` has no runtime counterpart. Nothing validates it against the live
|
|
44
|
+
* schema, so a stale hand-written entry silently yields a wrong item type.
|
|
45
|
+
*
|
|
21
46
|
* Its behavior is tested in the `wix-data-items-sdk-consumer-tests` package,
|
|
22
47
|
* which consumes the built package through node_modules and augments the
|
|
23
48
|
* specifier above exactly as codegen does. The tests have to live outside this
|
|
@@ -28,8 +53,9 @@ export interface WixDataCollectionRegistry {
|
|
|
28
53
|
}
|
|
29
54
|
/**
|
|
30
55
|
* Registered collection ids. Resolves to `never` while the registry is empty,
|
|
31
|
-
* so `ItemOf`/`InsertOf` fall back to the open `WixDataItem` shapes
|
|
32
|
-
*
|
|
56
|
+
* so `ItemOf`/`InsertOf` fall back to the open `WixDataItem` shapes,
|
|
57
|
+
* `ReferenceFieldOf` is `never`, `ReferenceFieldName` is plain `string`, and
|
|
58
|
+
* every signature below behaves exactly as it did before this feature.
|
|
33
59
|
*/
|
|
34
60
|
type RegisteredCollections = keyof WixDataCollectionRegistry;
|
|
35
61
|
/**
|
|
@@ -42,6 +68,147 @@ RegisteredCollections | (string & {});
|
|
|
42
68
|
export type ItemOf<C> = C extends RegisteredCollections ? WixDataCollectionRegistry[C]['item'] : WixDataItem;
|
|
43
69
|
/** Write shape for a collection. Falls back to `Partial<WixDataItem>`. */
|
|
44
70
|
export type InsertOf<C> = C extends RegisteredCollections ? WixDataCollectionRegistry[C]['insert'] : Partial<WixDataItem>;
|
|
71
|
+
/**
|
|
72
|
+
* Safe indexed access: `Entry[Key]` when the key exists, `Fallback` otherwise.
|
|
73
|
+
*
|
|
74
|
+
* `Key` has to be a *type parameter* rather than an inline `'refs'` literal.
|
|
75
|
+
* `'refs' extends keyof Entry ? Entry['refs'] : …` does not compile —
|
|
76
|
+
* TypeScript only forms the substitution type that makes the indexed access
|
|
77
|
+
* legal when the checked type is itself a type parameter. `NonNullable`
|
|
78
|
+
* additionally tolerates a hand-written `refs?: …`.
|
|
79
|
+
*/
|
|
80
|
+
type PropOr<Entry, Key, Fallback> = Key extends keyof Entry ? NonNullable<Entry[Key]> : Fallback;
|
|
81
|
+
/**
|
|
82
|
+
* Reference fields declared for a collection: field name -> referenced
|
|
83
|
+
* collection id. `{}` when the collection is unregistered or its registry
|
|
84
|
+
* entry has no `refs` key — the common case, since `refs` is optional.
|
|
85
|
+
*
|
|
86
|
+
* Not exported: `NonNullable<T>` is `T & {}` in TypeScript >= 4.9, so the
|
|
87
|
+
* resolved type carries an `& {}` artifact. `ReferenceFieldOf` and
|
|
88
|
+
* `ReferencedItemOf` are the consumer-facing forms and are free of it.
|
|
89
|
+
*/
|
|
90
|
+
type RefsOf<C> = C extends RegisteredCollections ? PropOr<WixDataCollectionRegistry[C], 'refs', {}> : {};
|
|
91
|
+
/** Names of the reference fields declared for a collection; `never` when none. */
|
|
92
|
+
export type ReferenceFieldOf<C> = Extract<keyof RefsOf<C>, string>;
|
|
93
|
+
/**
|
|
94
|
+
* Field-name parameter: declared reference fields autocomplete while any other
|
|
95
|
+
* string is still allowed. Same shape and rationale as `CollectionId`.
|
|
96
|
+
*/
|
|
97
|
+
type ReferenceFieldName<C> = [ReferenceFieldOf<C>] extends [never] ? string : ReferenceFieldOf<C> | (string & {});
|
|
98
|
+
/** Element type of an array field; every other field type is left alone. */
|
|
99
|
+
type ElementOf<T> = T extends readonly (infer E)[] ? NonNullable<E> : T;
|
|
100
|
+
/**
|
|
101
|
+
* What one path segment resolves to: array fields collapse to their element
|
|
102
|
+
* type and `null`/`undefined` are stripped, so `tags?: string[]` reads as
|
|
103
|
+
* `string`.
|
|
104
|
+
*
|
|
105
|
+
* ASSUMPTION: the service returns the *elements* of an array field rather than
|
|
106
|
+
* the arrays themselves, and never a null distinct value. Neither is expressed
|
|
107
|
+
* anywhere in this repo — the wire type is `distinctValues?: any[]`.
|
|
108
|
+
*/
|
|
109
|
+
type FieldType<T> = ElementOf<NonNullable<T>>;
|
|
110
|
+
/**
|
|
111
|
+
* Whether a dot-path may descend into `T`. Objects yes, with three exceptions
|
|
112
|
+
* that would otherwise expose their methods as field paths: arrays (already
|
|
113
|
+
* unwrapped one level by `FieldType`, so this only rejects nested arrays),
|
|
114
|
+
* `Date`, and functions.
|
|
115
|
+
*/
|
|
116
|
+
type Descendable<T> = T extends readonly any[] ? false : T extends Date ? false : T extends (...args: any[]) => any ? false : T extends object ? true : false;
|
|
117
|
+
/**
|
|
118
|
+
* Nesting budget for `FieldPath`: one element per level beyond the first, so
|
|
119
|
+
* this admits up to four segments (`owner.address.geo.lat`).
|
|
120
|
+
*
|
|
121
|
+
* Named rather than inlined so the constraint reads as
|
|
122
|
+
* `FieldPath<MotoFleetItem, PathDepth>` in the compiler's error message for a
|
|
123
|
+
* rejected field name, instead of a bare tuple of `unknown`s.
|
|
124
|
+
*/
|
|
125
|
+
type PathDepth = [unknown, unknown, unknown];
|
|
126
|
+
/**
|
|
127
|
+
* Field names of `T` plus every dotted path into it that the shape allows.
|
|
128
|
+
*
|
|
129
|
+
* `NoDescend` names fields that are valid on their own but may not be descended
|
|
130
|
+
* into. Only the top level passes anything here — the reference fields, since
|
|
131
|
+
* `distinct` does not support nesting through them. Nested objects aren't
|
|
132
|
+
* collections, so they have no reference fields of their own.
|
|
133
|
+
*
|
|
134
|
+
* The `Depth` bound keeps deeply or circularly nested plain objects from
|
|
135
|
+
* recursing forever.
|
|
136
|
+
*/
|
|
137
|
+
type FieldPath<T, NoDescend extends string = never, Depth extends readonly unknown[] = PathDepth> = Extract<keyof T, string> | (Depth extends readonly [unknown, ...infer Rest] ? {
|
|
138
|
+
[K in Exclude<Extract<keyof T, string>, NoDescend>]: Descendable<FieldType<T[K]>> extends true ? `${K}.${FieldPath<FieldType<T[K]>, never, Rest>}` : never;
|
|
139
|
+
}[Exclude<Extract<keyof T, string>, NoDescend>] : never);
|
|
140
|
+
/**
|
|
141
|
+
* Field names — and dotted paths — accepted for a collection.
|
|
142
|
+
*
|
|
143
|
+
* STRICT, unlike `CollectionId` and `ReferenceFieldName`: there is no
|
|
144
|
+
* `| (string & {})` alternative, so a name the registered `item` type doesn't
|
|
145
|
+
* have is a compile error, and so is a widened `string` variable. Dot-paths are
|
|
146
|
+
* allowed where the shape permits descending — `'address.city'` resolves, while
|
|
147
|
+
* `'category.foo'` (a string field) and `'_createdDate.getTime'` (a `Date`) do
|
|
148
|
+
* not — with one carve-out: reference and multi-reference fields are valid on
|
|
149
|
+
* their own but cannot be nested through, because `distinct` doesn't support it.
|
|
150
|
+
* A registry left stale by a schema change therefore breaks the build instead of
|
|
151
|
+
* silently yielding a wrong type; pass an explicit `<any>` type argument to opt
|
|
152
|
+
* out.
|
|
153
|
+
*
|
|
154
|
+
* `string` for an unregistered collection, and for every collection while the
|
|
155
|
+
* registry is empty, so untyped projects keep passing arbitrary field names.
|
|
156
|
+
*
|
|
157
|
+
* An `item` type carrying an index signature degrades to plain `string` rather
|
|
158
|
+
* than erroring — such collections keep their pre-registry behavior.
|
|
159
|
+
*
|
|
160
|
+
* Being a *conditional* type is also what keeps literal inference alive at the
|
|
161
|
+
* call site: the checker unwraps a conditional constraint into the union of its
|
|
162
|
+
* branches, sees `string`, and therefore does not widen `'category'` to
|
|
163
|
+
* `string` — exactly how `F extends ReferenceFieldName<C>` behaves below.
|
|
164
|
+
*/
|
|
165
|
+
export type FieldOf<C> = [C] extends [never] ? string : C extends RegisteredCollections ? FieldPath<WixDataCollectionRegistry[C]['item'], ReferenceFieldOf<C>> : string;
|
|
166
|
+
/**
|
|
167
|
+
* Value type at field — or dotted path — `F` of collection `C`, as `distinct`
|
|
168
|
+
* reports it.
|
|
169
|
+
*
|
|
170
|
+
* A reference or multi-reference field always yields `string`: the service
|
|
171
|
+
* returns the `_id`s of the referenced items, never the items themselves. That
|
|
172
|
+
* is why `refs` is consulted here rather than the `item` field type — codegen
|
|
173
|
+
* types a single reference as `string | Item` (either an id or a resolved item),
|
|
174
|
+
* which is the read shape, not what `distinct` hands back.
|
|
175
|
+
*
|
|
176
|
+
* `any` in every "don't know" case: unregistered collection, unknown field, a
|
|
177
|
+
* path that runs past the end of the shape, or an `item` type with an index
|
|
178
|
+
* signature.
|
|
179
|
+
*
|
|
180
|
+
* A collection whose registry entry omits the optional `refs` key falls through
|
|
181
|
+
* to the `item` field type, so its reference fields resolve to the wider
|
|
182
|
+
* `string | Item` instead of `string`. Nothing else can distinguish a reference
|
|
183
|
+
* field from a union-typed plain one.
|
|
184
|
+
*
|
|
185
|
+
* Unlike `RefsOf`, this is safe to export: `NonNullable<string>` resolves to
|
|
186
|
+
* plain `string`, so the `& {}` artifact described above never appears here —
|
|
187
|
+
* that only sticks on deferred indexed accesses.
|
|
188
|
+
*/
|
|
189
|
+
export type FieldValueOf<C, F> = C extends RegisteredCollections ? F extends ReferenceFieldOf<C> ? string : ValueAtPath<WixDataCollectionRegistry[C]['item'], F> : any;
|
|
190
|
+
type ValueAtPath<T, P> = P extends `${infer Head}.${infer Rest}` ? Head extends keyof T ? ValueAtPath<FieldType<T[Head]>, Rest> : any : P extends keyof T ? FieldType<T[P]> : any;
|
|
191
|
+
/**
|
|
192
|
+
* Id of the collection that field `F` of collection `C` points at, or `never`
|
|
193
|
+
* when the registry doesn't say.
|
|
194
|
+
*/
|
|
195
|
+
type ReferencedCollectionOf<C, F> = F extends keyof RefsOf<C> ? RefsOf<C>[F] : never;
|
|
196
|
+
/**
|
|
197
|
+
* Read shape of the collection referenced by field `F` of collection `C`.
|
|
198
|
+
*
|
|
199
|
+
* Falls back to the open `WixDataItem` in every "don't know" case: `C` is
|
|
200
|
+
* unregistered, `C` declares no `refs`, `F` is not one of the declared
|
|
201
|
+
* reference fields, or `F` resolves to a collection id that is itself
|
|
202
|
+
* unregistered (that last one falls out of `ItemOf`).
|
|
203
|
+
*
|
|
204
|
+
* The `[…] extends [never]` guard is load-bearing: `ItemOf` is a distributive
|
|
205
|
+
* conditional, and distributing over `never` — the empty union — produces
|
|
206
|
+
* `never` rather than taking the false branch. Without it the three "don't
|
|
207
|
+
* know" cases above would resolve to `never` instead of `WixDataItem`.
|
|
208
|
+
*/
|
|
209
|
+
export type ReferencedItemOf<C, F> = [ReferencedCollectionOf<C, F>] extends [
|
|
210
|
+
never
|
|
211
|
+
] ? WixDataItem : ItemOf<ReferencedCollectionOf<C, F>>;
|
|
45
212
|
/**
|
|
46
213
|
* Below, each request/mutation function keeps ONE signature (no permissive
|
|
47
214
|
* fallback overload — a bad payload for a registered collection would silently
|
|
@@ -57,63 +224,112 @@ export type InsertOf<C> = C extends RegisteredCollections ? WixDataCollectionReg
|
|
|
57
224
|
type WriteInput<C, Explicit> = [Explicit] extends [never] ? InsertOf<C> : Explicit;
|
|
58
225
|
type ItemInput<C, Explicit> = [Explicit] extends [never] ? ItemOf<C> : Explicit;
|
|
59
226
|
type ResultOf<C, Explicit> = [Explicit] extends [never] ? ItemOf<C> : Explicit & WixDataItem;
|
|
227
|
+
/**
|
|
228
|
+
* Result item type for `queryReferencedItems`. Unlike `ResultOf`, an explicit
|
|
229
|
+
* `Item` is NOT intersected with `WixDataItem`: at this layer
|
|
230
|
+
* `queryReferencedItems<Product>(…)` has always resolved to
|
|
231
|
+
* `WixDataQueryReferencedItemsResponse<Product>`, and that stays true.
|
|
232
|
+
*/
|
|
233
|
+
type ReferencedResultOf<C, F, Explicit> = [Explicit] extends [never] ? ReferencedItemOf<C, F> : Explicit;
|
|
234
|
+
/** Same `Explicit`-wins rule as `ResultOf`, over a field value instead of an item. */
|
|
235
|
+
type DistinctValueOf<C, F, Explicit> = [Explicit] extends [never] ? FieldValueOf<C, F> : Explicit;
|
|
236
|
+
/**
|
|
237
|
+
* Item shapes accepted by the reference APIs. Strict for a registered
|
|
238
|
+
* collection, and otherwise `WithId` — which is exactly the constraint these
|
|
239
|
+
* methods carried before the registry, so unregistered collections behave
|
|
240
|
+
* identically.
|
|
241
|
+
*
|
|
242
|
+
* `WithId` and NOT `WixDataItem`: interfaces get no implicit index signature,
|
|
243
|
+
* so `interface Product { _id: string }` is not assignable to `WixDataItem`.
|
|
244
|
+
* Falling back to `WixDataItem` here would reject existing callers.
|
|
245
|
+
*
|
|
246
|
+
* `C` is `never` whenever the registry couldn't name a collection, and a
|
|
247
|
+
* distributive conditional over `never` yields `never` rather than the false
|
|
248
|
+
* branch — hence the explicit guard.
|
|
249
|
+
*/
|
|
250
|
+
type StrictItemOr<C, Fallback> = [C] extends [never] ? Fallback : C extends RegisteredCollections ? WixDataCollectionRegistry[C]['item'] : Fallback;
|
|
251
|
+
/**
|
|
252
|
+
* Neither of these includes the `| string` id alternative, and that is
|
|
253
|
+
* deliberate: the id union is added at the parameter, OUTSIDE the `NoInfer`
|
|
254
|
+
* wrapper. `NoInfer<Conditional>` blocks inference, but `NoInfer<Conditional |
|
|
255
|
+
* string>` does not — the checker infers into both branches of a conditional
|
|
256
|
+
* target, so `Explicit` would capture the very argument it is meant to check
|
|
257
|
+
* and the false branch would make any payload legal. Keeping these
|
|
258
|
+
* single-branch, exactly like `WriteInput`/`ItemInput` above, is what makes
|
|
259
|
+
* `insertReference('moto-fleet', 'owner', 'b1', wrongShape)` an error.
|
|
260
|
+
*/
|
|
261
|
+
type ReferringInput<C, Explicit> = [Explicit] extends [never] ? StrictItemOr<C, WithId> : Explicit;
|
|
262
|
+
type ReferencedInput<C, F, Explicit> = [Explicit] extends [never] ? StrictItemOr<ReferencedCollectionOf<C, F>, WithId> : Explicit;
|
|
60
263
|
/**
|
|
61
264
|
* Registry-aware signatures for the context exports.
|
|
62
265
|
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
266
|
+
* The type parameters are `<Item, C>`: `C` is inferred from the id and drives
|
|
267
|
+
* the registry lookup; an explicit `insert<Product>(...)` sets `Item` and wins.
|
|
268
|
+
*
|
|
269
|
+
* Each `*Generic` below is `Signature & ((httpClient) => Signature)` — the
|
|
270
|
+
* strict signature first, the curried one last — and each export keeps the
|
|
271
|
+
* `BuildRESTFunction<typeof publicX> &` intersection, so the pre-existing
|
|
272
|
+
* direct, non-curried call form stays in the published `.d.ts`. Both positions
|
|
273
|
+
* in that ordering are load-bearing:
|
|
274
|
+
*
|
|
275
|
+
* - Overload resolution walks an intersection left to right. The flattened
|
|
276
|
+
* order is [publicDirect, strict, curried]; the permissive `publicDirect`
|
|
277
|
+
* signature is only reachable by a direct call, which was never
|
|
278
|
+
* registry-typed. `insert(httpClient)('moto-fleet', bad)` and the elevated
|
|
279
|
+
* `items.insert('moto-fleet', bad)` both hit the strict signature and are
|
|
280
|
+
* rejected.
|
|
281
|
+
* - `BuildRESTFunction<T> = T extends RESTFunctionDescriptor<infer U> ? U
|
|
282
|
+
* : never` infers from the LAST call signature, so the curried one must come
|
|
283
|
+
* last or an elevated `items.insert(…)` unwraps to the wrong signature and
|
|
284
|
+
* silently loses its registry typing.
|
|
285
|
+
*
|
|
286
|
+
* The curried-last ordering is pinned by the elevated-client assertions in
|
|
287
|
+
* `registry-augmentation.ts` (`wix-data-items-sdk-consumer-tests`); flipping it
|
|
288
|
+
* fails there.
|
|
69
289
|
*/
|
|
70
290
|
type InsertSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, dataItem: NoInfer<WriteInput<C, Item>>, options?: WixDataInsertOptions) => Promise<ResultOf<C, Item>>;
|
|
71
|
-
type InsertGeneric = (httpClient: HttpClient) => InsertSignature;
|
|
291
|
+
type InsertGeneric = InsertSignature & ((httpClient: HttpClient) => InsertSignature);
|
|
72
292
|
type UpdateSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, dataItem: NoInfer<ItemInput<C, Item>>, options?: WixDataUpdateOptions) => Promise<ResultOf<C, Item>>;
|
|
73
|
-
type UpdateGeneric = (httpClient: HttpClient) => UpdateSignature;
|
|
293
|
+
type UpdateGeneric = UpdateSignature & ((httpClient: HttpClient) => UpdateSignature);
|
|
74
294
|
type SaveSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, dataItem: NoInfer<WriteInput<C, Item>>, options?: WixDataSaveOptions) => Promise<ResultOf<C, Item>>;
|
|
75
|
-
type SaveGeneric = (httpClient: HttpClient) => SaveSignature;
|
|
295
|
+
type SaveGeneric = SaveSignature & ((httpClient: HttpClient) => SaveSignature);
|
|
76
296
|
type GetSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, dataItemId: string, options?: WixDataGetOptions) => Promise<ResultOf<C, Item> | null>;
|
|
77
|
-
type GetGeneric = (httpClient: HttpClient) => GetSignature;
|
|
297
|
+
type GetGeneric = GetSignature & ((httpClient: HttpClient) => GetSignature);
|
|
78
298
|
type RemoveSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, dataItemId: string, options?: WixDataRemoveOptions) => Promise<ResultOf<C, Item> | null>;
|
|
79
|
-
type RemoveGeneric = (httpClient: HttpClient) => RemoveSignature;
|
|
299
|
+
type RemoveGeneric = RemoveSignature & ((httpClient: HttpClient) => RemoveSignature);
|
|
80
300
|
type BulkInsertSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, items: NoInfer<WriteInput<C, Item>>[], options?: WixDataOptions) => Promise<WixDataBulkResult>;
|
|
81
|
-
type BulkInsertGeneric = (httpClient: HttpClient) => BulkInsertSignature;
|
|
301
|
+
type BulkInsertGeneric = BulkInsertSignature & ((httpClient: HttpClient) => BulkInsertSignature);
|
|
82
302
|
type BulkUpdateSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, items: NoInfer<ItemInput<C, Item>>[], options?: WixDataBulkUpdateOptions) => Promise<WixDataBulkResult>;
|
|
83
|
-
type BulkUpdateGeneric = (httpClient: HttpClient) => BulkUpdateSignature;
|
|
303
|
+
type BulkUpdateGeneric = BulkUpdateSignature & ((httpClient: HttpClient) => BulkUpdateSignature);
|
|
84
304
|
type BulkSaveSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, items: NoInfer<WriteInput<C, Item>>[], options?: WixDataBulkSaveOptions) => Promise<WixDataBulkResult>;
|
|
85
|
-
type BulkSaveGeneric = (httpClient: HttpClient) => BulkSaveSignature;
|
|
305
|
+
type BulkSaveGeneric = BulkSaveSignature & ((httpClient: HttpClient) => BulkSaveSignature);
|
|
86
306
|
type BulkRemoveGeneric = {
|
|
87
307
|
(httpClient: HttpClient): ReturnType<typeof publicBulkRemove>;
|
|
88
308
|
(dataCollectionId: CollectionId, itemIds: string[], options?: WixDataBulkRemoveOptions): Promise<WixDataBulkResult>;
|
|
89
309
|
};
|
|
90
|
-
type
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
type ReferenceMutationGeneric = {
|
|
95
|
-
(httpClient: HttpClient): <ItemLeft extends WithId, ItemRight extends WithId>(dataCollectionId: CollectionId, propertyName: string, referringItem: ItemLeft | string, referencedItem: ItemRight | string | ItemRight[] | string[], options?: WixDataOptions) => Promise<void>;
|
|
96
|
-
<ItemLeft extends WithId, ItemRight extends WithId>(dataCollectionId: CollectionId, propertyName: string, referringItem: ItemLeft | string, referencedItem: ItemRight | string | ItemRight[] | string[], options?: WixDataOptions): Promise<void>;
|
|
97
|
-
};
|
|
310
|
+
type IsReferencedSignature = <ItemLeft extends WithId = never, ItemRight extends WithId = never, C extends CollectionId = CollectionId, F extends ReferenceFieldName<C> = ReferenceFieldName<C>>(dataCollectionId: C, propertyName: F, referringItem: NoInfer<ReferringInput<C, ItemLeft>> | string, referencedItem: NoInfer<ReferencedInput<C, F, ItemRight>> | string, options?: WixDataIsReferencedOptions) => Promise<boolean>;
|
|
311
|
+
type IsReferencedGeneric = IsReferencedSignature & ((httpClient: HttpClient) => IsReferencedSignature);
|
|
312
|
+
type ReferenceMutationSignature = <ItemLeft extends WithId = never, ItemRight extends WithId = never, C extends CollectionId = CollectionId, F extends ReferenceFieldName<C> = ReferenceFieldName<C>>(dataCollectionId: C, propertyName: F, referringItem: NoInfer<ReferringInput<C, ItemLeft>> | string, referencedItem: NoInfer<ReferencedInput<C, F, ItemRight>> | string | (NoInfer<ReferencedInput<C, F, ItemRight>> | string)[], options?: WixDataOptions) => Promise<void>;
|
|
313
|
+
type ReferenceMutationGeneric = ReferenceMutationSignature & ((httpClient: HttpClient) => ReferenceMutationSignature);
|
|
98
314
|
type QueryRequestSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, queryRequest: WixDataQueryRequest, options?: WixDataQueryOptions) => Promise<WixDataQueryResponse<ResultOf<C, Item>>>;
|
|
99
315
|
type QueryFluentSignature = (dataCollectionId: string) => WixDataQuery;
|
|
100
|
-
type QueryGeneric = (httpClient: HttpClient) => QueryRequestSignature & QueryFluentSignature;
|
|
316
|
+
type QueryGeneric = QueryRequestSignature & QueryFluentSignature & ((httpClient: HttpClient) => QueryRequestSignature & QueryFluentSignature);
|
|
101
317
|
type SearchRequestSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, searchRequest: WixDataSearchRequest, options?: WixDataSearchOptions) => Promise<WixDataSearchResponse<ResultOf<C, Item>>>;
|
|
102
318
|
type SearchFluentSignature = (dataCollectionId: string) => WixDataSearch;
|
|
103
|
-
type SearchGeneric = (httpClient: HttpClient) => SearchRequestSignature & SearchFluentSignature;
|
|
104
|
-
type
|
|
105
|
-
|
|
106
|
-
<Item = WixDataItem>(dataCollectionId: string, referringItem: WixDataItem | string | (WixDataItem | string)[], referringItemFieldName: string, options?: WixDataQueryReferencedItemsOptions): Promise<WixDataQueryReferencedItemsResponse<Item>>;
|
|
107
|
-
};
|
|
319
|
+
type SearchGeneric = SearchRequestSignature & SearchFluentSignature & ((httpClient: HttpClient) => SearchRequestSignature & SearchFluentSignature);
|
|
320
|
+
type QueryReferencedItemsSignature = <Item = never, C extends CollectionId = CollectionId, F extends ReferenceFieldName<C> = ReferenceFieldName<C>>(dataCollectionId: C, referringItem: WixDataItem | string | (WixDataItem | string)[], referringItemFieldName: F, options?: WixDataQueryReferencedItemsOptions) => Promise<WixDataQueryReferencedItemsResponse<ReferencedResultOf<C, F, Item>>>;
|
|
321
|
+
type QueryReferencedItemsGeneric = QueryReferencedItemsSignature & ((httpClient: HttpClient) => QueryReferencedItemsSignature);
|
|
108
322
|
type AggregateGeneric = {
|
|
109
323
|
(httpClient: HttpClient): (<Result = Record<string, any>>(dataCollectionId: string, pipeline: AggregationPipeline, options?: WixDataAggregateOptions) => Promise<WixDataAggregateResponse<Result>>) & ((dataCollectionId: string) => WixDataAggregate);
|
|
110
324
|
(dataCollectionId: string): WixDataAggregate;
|
|
111
325
|
<Result = Record<string, any>>(dataCollectionId: string, pipeline: AggregationPipeline, options?: WixDataAggregateOptions): Promise<WixDataAggregateResponse<Result>>;
|
|
112
326
|
};
|
|
327
|
+
type DistinctSignature = <Value = never, C extends CollectionId = CollectionId, F extends FieldOf<C> = FieldOf<C>>(dataCollectionId: C, fieldName: F, options?: WixDataDistinctOptions) => Promise<WixDataDistinctResponse<DistinctValueOf<C, F, Value>>>;
|
|
328
|
+
type DistinctGeneric = DistinctSignature & ((httpClient: HttpClient) => DistinctSignature);
|
|
113
329
|
type PatchResultOf<C, Explicit> = ([Explicit] extends [never] ? ItemOf<C> : Explicit) | null;
|
|
114
330
|
type PatchRequestSignature = <Item = never, C extends CollectionId = CollectionId>(dataCollectionId: C, itemId: string, fieldModifications: FieldModification[], options?: WixDataPatchOptions) => Promise<PatchResultOf<C, Item>>;
|
|
115
331
|
type PatchBuilderSignature = (dataCollectionId: string, itemId: string) => WixDataPatch;
|
|
116
|
-
type PatchGeneric = (httpClient: HttpClient) => PatchRequestSignature & PatchBuilderSignature;
|
|
332
|
+
type PatchGeneric = PatchRequestSignature & PatchBuilderSignature & ((httpClient: HttpClient) => PatchRequestSignature & PatchBuilderSignature);
|
|
117
333
|
type BulkPatchGeneric = {
|
|
118
334
|
(httpClient: HttpClient): {
|
|
119
335
|
(dataCollectionId: CollectionId, itemIds: string[]): WixDataBulkPatch;
|
|
@@ -134,33 +350,29 @@ type GetAsyncJobStatusGeneric = {
|
|
|
134
350
|
(httpClient: HttpClient): (jobId: string) => Promise<WixDataAsyncJobStatus>;
|
|
135
351
|
(jobId: string): Promise<WixDataAsyncJobStatus>;
|
|
136
352
|
};
|
|
137
|
-
export declare const insert: MaybeContext<InsertGeneric>;
|
|
138
|
-
export declare const update: MaybeContext<UpdateGeneric>;
|
|
139
|
-
export declare const save: MaybeContext<SaveGeneric>;
|
|
140
|
-
export declare const get: MaybeContext<GetGeneric>;
|
|
141
|
-
export declare const remove: MaybeContext<RemoveGeneric>;
|
|
353
|
+
export declare const insert: MaybeContext<BuildRESTFunction<typeof publicInsert> & InsertGeneric>;
|
|
354
|
+
export declare const update: MaybeContext<BuildRESTFunction<typeof publicUpdate> & UpdateGeneric>;
|
|
355
|
+
export declare const save: MaybeContext<BuildRESTFunction<typeof publicSave> & SaveGeneric>;
|
|
356
|
+
export declare const get: MaybeContext<BuildRESTFunction<typeof publicGet> & GetGeneric>;
|
|
357
|
+
export declare const remove: MaybeContext<BuildRESTFunction<typeof publicRemove> & RemoveGeneric>;
|
|
142
358
|
export declare const truncate: MaybeContext<BuildRESTFunction<typeof publicTruncate> & typeof publicTruncate>;
|
|
143
|
-
export declare const bulkInsert: MaybeContext<BulkInsertGeneric>;
|
|
144
|
-
export declare const bulkUpdate: MaybeContext<BulkUpdateGeneric>;
|
|
145
|
-
export declare const bulkSave: MaybeContext<BulkSaveGeneric>;
|
|
359
|
+
export declare const bulkInsert: MaybeContext<BuildRESTFunction<typeof publicBulkInsert> & BulkInsertGeneric>;
|
|
360
|
+
export declare const bulkUpdate: MaybeContext<BuildRESTFunction<typeof publicBulkUpdate> & BulkUpdateGeneric>;
|
|
361
|
+
export declare const bulkSave: MaybeContext<BuildRESTFunction<typeof publicBulkSave> & BulkSaveGeneric>;
|
|
146
362
|
export declare const bulkRemove: MaybeContext<BuildRESTFunction<typeof publicBulkRemove> & BulkRemoveGeneric>;
|
|
147
363
|
export declare const isReferenced: MaybeContext<BuildRESTFunction<typeof publicIsReferenced> & IsReferencedGeneric>;
|
|
148
364
|
export declare const insertReference: MaybeContext<BuildRESTFunction<typeof publicInsertReference> & ReferenceMutationGeneric>;
|
|
149
365
|
export declare const removeReference: MaybeContext<BuildRESTFunction<typeof publicRemoveReference> & ReferenceMutationGeneric>;
|
|
150
366
|
export declare const replaceReferences: MaybeContext<BuildRESTFunction<typeof publicReplaceReferences> & ReferenceMutationGeneric>;
|
|
151
|
-
export declare const query: MaybeContext<QueryGeneric>;
|
|
152
|
-
export declare const search: MaybeContext<SearchGeneric>;
|
|
153
|
-
export declare const patch: MaybeContext<PatchGeneric>;
|
|
367
|
+
export declare const query: MaybeContext<BuildRESTFunction<typeof publicQuery> & QueryGeneric>;
|
|
368
|
+
export declare const search: MaybeContext<BuildRESTFunction<typeof publicSearch> & SearchGeneric>;
|
|
369
|
+
export declare const patch: MaybeContext<BuildRESTFunction<typeof publicPatch> & PatchGeneric>;
|
|
154
370
|
export declare const bulkPatch: MaybeContext<BuildRESTFunction<typeof publicBulkPatch> & BulkPatchGeneric>;
|
|
155
371
|
export declare const asyncPatchByFilter: MaybeContext<BuildRESTFunction<typeof publicAsyncPatchByFilter> & AsyncPatchByFilterGeneric>;
|
|
156
372
|
export declare const asyncRemoveByFilter: MaybeContext<BuildRESTFunction<typeof publicAsyncRemoveByFilter> & AsyncRemoveByFilterGeneric>;
|
|
157
373
|
export declare const getAsyncJobStatus: MaybeContext<BuildRESTFunction<typeof publicGetAsyncJobStatus> & GetAsyncJobStatusGeneric>;
|
|
158
374
|
export declare const aggregate: MaybeContext<BuildRESTFunction<typeof publicAggregate> & AggregateGeneric>;
|
|
159
375
|
export declare const aggregatePipeline: MaybeContext<BuildRESTFunction<typeof publicAggregatePipeline> & typeof publicAggregatePipeline>;
|
|
160
|
-
type DistinctGeneric = {
|
|
161
|
-
(httpClient: HttpClient): (dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions) => Promise<WixDataDistinctResponse>;
|
|
162
|
-
(dataCollectionId: string, fieldName: string, options?: WixDataDistinctOptions): Promise<WixDataDistinctResponse>;
|
|
163
|
-
};
|
|
164
376
|
export declare const distinct: MaybeContext<BuildRESTFunction<typeof publicDistinct> & DistinctGeneric>;
|
|
165
377
|
export declare const count: MaybeContext<BuildRESTFunction<typeof publicCount> & typeof publicCount>;
|
|
166
378
|
export declare const queryReferenced: MaybeContext<BuildRESTFunction<typeof publicQueryReferenced> & typeof publicQueryReferenced>;
|
|
@@ -179,6 +391,6 @@ export declare const onDataItemUpdated: ReturnType<typeof createEventModule<type
|
|
|
179
391
|
* Triggered when a data item is deleted or truncated.
|
|
180
392
|
*/
|
|
181
393
|
export declare const onDataItemDeleted: ReturnType<typeof createEventModule<typeof publicOnDataItemDeleted>>;
|
|
182
|
-
export { Environment, WixDataReadOptions, WixDataReadWithProjectionOptions, WixDataGetOptions, WixDataPatchOptions, WixDataBulkPatchOptions, FieldModification, FieldModificationsBuilder, WixDataFieldModificationsBuilder, WixDataAsyncByFilterOptions, WixDataOptions, WixDataInsertOptions, WixDataUpdateOptions, WixDataAggregateOptions, WixDataItem, WixDataBulkResult, WixDataBulkError, WixDataQuery, WixDataSearch, WixDataPatch, WixDataPatchByFilter, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJobStatus, WixDataFilterInput, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, AggregationPipeline, pipelineBuilder, PipelineBuilder, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, WixDataFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, PipelineStage, stages, Stages, expressions, Expressions, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, WixDataDistinctOptions, QueryBuilder, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, Filter, Sort, WixDataSearchRequest, SearchBuilder, SearchParams, } from './data-v2-data-item-items.universal';
|
|
394
|
+
export { Environment, WixDataReadOptions, WixDataReadWithProjectionOptions, WixDataGetOptions, WixDataPatchOptions, WixDataBulkPatchOptions, FieldModification, FieldModificationsBuilder, WixDataFieldModificationsBuilder, WixDataAsyncByFilterOptions, WixDataOptions, WixDataInsertOptions, WixDataUpdateOptions, WixDataAggregateOptions, WixDataItem, WixDataBulkResult, WixDataBulkError, WixDataQuery, WixDataSearch, WixDataPatch, WixDataPatchByFilter, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJobStatus, WixDataFilterInput, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, AggregationPipeline, pipelineBuilder, PipelineBuilder, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, WixDataFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, ReferencedResult, UnresolvedReference, PipelineStage, stages, Stages, expressions, Expressions, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, WixDataDistinctOptions, QueryBuilder, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, Filter, Sort, WixDataSearchRequest, SearchBuilder, SearchParams, } from './data-v2-data-item-items.universal';
|
|
183
395
|
export type { WixDataIsReferencedOptions, WixDataGetOptionsBuilder, WixDataQueryOptionsBuilder, WixDataQueryReferencedItemsOptionsBuilder, WixDataAggregateOptionsBuilder, WixDataDistinctOptionsBuilder, WixDataCountOptionsBuilder, WixDataIsReferencedOptionsBuilder, WixDataSearchOptionsBuilder, WixDataInsertOptionsBuilder, WixDataRemoveOptionsBuilder, WixDataBulkRemoveOptionsBuilder, WixDataAsyncRemoveByFilterOptionsBuilder, WixDataAsyncPatchByFilterOptionsBuilder, WixDataPatchOptionsBuilder, WixDataBulkPatchOptionsBuilder, WixDataSaveOptionsBuilder, WixDataBulkSaveOptionsBuilder, WixDataUpdateOptionsBuilder, WixDataBulkUpdateOptionsBuilder, WixDataBulkInsertOptionsBuilder, } from './data-v2-data-item-items.universal';
|
|
184
396
|
export * from './data-v2-data-item-items.types';
|
|
@@ -1,29 +1,22 @@
|
|
|
1
1
|
import { insert as publicInsert, update as publicUpdate, save as publicSave, get as publicGet, remove as publicRemove, truncate as publicTruncate, bulkInsert as publicBulkInsert, bulkUpdate as publicBulkUpdate, bulkSave as publicBulkSave, bulkRemove as publicBulkRemove, isReferenced as publicIsReferenced, insertReference as publicInsertReference, removeReference as publicRemoveReference, replaceReferences as publicReplaceReferences, query as publicQuery, search as publicSearch, patch as publicPatch, bulkPatch as publicBulkPatch, asyncPatchByFilter as publicAsyncPatchByFilter, asyncRemoveByFilter as publicAsyncRemoveByFilter, getAsyncJobStatus as publicGetAsyncJobStatus, aggregate as publicAggregate, aggregatePipeline as publicAggregatePipeline, distinct as publicDistinct, count as publicCount, queryReferenced as publicQueryReferenced, queryReferencedItems as publicQueryReferencedItems, filter as publicFilter, withEnvironment as publicWithEnvironment, onDataItemCreated as publicOnDataItemCreated, onDataItemUpdated as publicOnDataItemUpdated, onDataItemDeleted as publicOnDataItemDeleted, } from './data-v2-data-item-items.public';
|
|
2
2
|
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
3
|
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
4
|
-
export const insert =
|
|
5
|
-
/*#__PURE__*/ createRESTModule(
|
|
6
|
-
export const update =
|
|
7
|
-
/*#__PURE__*/ createRESTModule(publicUpdate);
|
|
4
|
+
export const insert = /*#__PURE__*/ createRESTModule(publicInsert);
|
|
5
|
+
export const update = /*#__PURE__*/ createRESTModule(publicUpdate);
|
|
8
6
|
export const save = /*#__PURE__*/ createRESTModule(publicSave);
|
|
9
7
|
export const get = /*#__PURE__*/ createRESTModule(publicGet);
|
|
10
|
-
export const remove =
|
|
11
|
-
/*#__PURE__*/ createRESTModule(publicRemove);
|
|
8
|
+
export const remove = /*#__PURE__*/ createRESTModule(publicRemove);
|
|
12
9
|
export const truncate = /*#__PURE__*/ createRESTModule(publicTruncate);
|
|
13
|
-
export const bulkInsert =
|
|
14
|
-
/*#__PURE__*/ createRESTModule(
|
|
15
|
-
export const
|
|
16
|
-
/*#__PURE__*/ createRESTModule(publicBulkUpdate);
|
|
17
|
-
export const bulkSave =
|
|
18
|
-
/*#__PURE__*/ createRESTModule(publicBulkSave);
|
|
10
|
+
export const bulkInsert = /*#__PURE__*/ createRESTModule(publicBulkInsert);
|
|
11
|
+
export const bulkUpdate = /*#__PURE__*/ createRESTModule(publicBulkUpdate);
|
|
12
|
+
export const bulkSave = /*#__PURE__*/ createRESTModule(publicBulkSave);
|
|
19
13
|
export const bulkRemove = /*#__PURE__*/ createRESTModule(publicBulkRemove);
|
|
20
14
|
export const isReferenced = /*#__PURE__*/ createRESTModule(publicIsReferenced);
|
|
21
15
|
export const insertReference = /*#__PURE__*/ createRESTModule(publicInsertReference);
|
|
22
16
|
export const removeReference = /*#__PURE__*/ createRESTModule(publicRemoveReference);
|
|
23
17
|
export const replaceReferences = /*#__PURE__*/ createRESTModule(publicReplaceReferences);
|
|
24
18
|
export const query = /*#__PURE__*/ createRESTModule(publicQuery);
|
|
25
|
-
export const search =
|
|
26
|
-
/*#__PURE__*/ createRESTModule(publicSearch);
|
|
19
|
+
export const search = /*#__PURE__*/ createRESTModule(publicSearch);
|
|
27
20
|
export const patch = /*#__PURE__*/ createRESTModule(publicPatch);
|
|
28
21
|
export const bulkPatch = /*#__PURE__*/ createRESTModule(publicBulkPatch);
|
|
29
22
|
export const asyncPatchByFilter = /*#__PURE__*/ createRESTModule(publicAsyncPatchByFilter);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-v2-data-item-items.context.js","sourceRoot":"","sources":["../../../src/data-v2-data-item-items.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,YAAY,EACtB,MAAM,IAAI,YAAY,EACtB,IAAI,IAAI,UAAU,EAClB,GAAG,IAAI,SAAS,EAChB,MAAM,IAAI,YAAY,EACtB,QAAQ,IAAI,cAAc,EAC1B,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,QAAQ,IAAI,cAAc,EAC1B,UAAU,IAAI,gBAAgB,EAC9B,YAAY,IAAI,kBAAkB,EAClC,eAAe,IAAI,qBAAqB,EACxC,eAAe,IAAI,qBAAqB,EACxC,iBAAiB,IAAI,uBAAuB,EAC5C,KAAK,IAAI,WAAW,EACpB,MAAM,IAAI,YAAY,EACtB,KAAK,IAAI,WAAW,EACpB,SAAS,IAAI,eAAe,EAC5B,kBAAkB,IAAI,wBAAwB,EAC9C,mBAAmB,IAAI,yBAAyB,EAChD,iBAAiB,IAAI,uBAAuB,EAC5C,SAAS,IAAI,eAAe,EAC5B,iBAAiB,IAAI,uBAAuB,EAC5C,QAAQ,IAAI,cAAc,EAC1B,KAAK,IAAI,WAAW,EACpB,eAAe,IAAI,qBAAqB,EACxC,oBAAoB,IAAI,0BAA0B,EAClD,MAAM,IAAI,YAAY,EACtB,eAAe,IAAI,qBAAqB,EACxC,iBAAiB,IAAI,uBAAuB,EAC5C,iBAAiB,IAAI,uBAAuB,EAC5C,iBAAiB,IAAI,uBAAuB,GAC7C,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;
|
|
1
|
+
{"version":3,"file":"data-v2-data-item-items.context.js","sourceRoot":"","sources":["../../../src/data-v2-data-item-items.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,YAAY,EACtB,MAAM,IAAI,YAAY,EACtB,IAAI,IAAI,UAAU,EAClB,GAAG,IAAI,SAAS,EAChB,MAAM,IAAI,YAAY,EACtB,QAAQ,IAAI,cAAc,EAC1B,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,QAAQ,IAAI,cAAc,EAC1B,UAAU,IAAI,gBAAgB,EAC9B,YAAY,IAAI,kBAAkB,EAClC,eAAe,IAAI,qBAAqB,EACxC,eAAe,IAAI,qBAAqB,EACxC,iBAAiB,IAAI,uBAAuB,EAC5C,KAAK,IAAI,WAAW,EACpB,MAAM,IAAI,YAAY,EACtB,KAAK,IAAI,WAAW,EACpB,SAAS,IAAI,eAAe,EAC5B,kBAAkB,IAAI,wBAAwB,EAC9C,mBAAmB,IAAI,yBAAyB,EAChD,iBAAiB,IAAI,uBAAuB,EAC5C,SAAS,IAAI,eAAe,EAC5B,iBAAiB,IAAI,uBAAuB,EAC5C,QAAQ,IAAI,cAAc,EAC1B,KAAK,IAAI,WAAW,EACpB,eAAe,IAAI,qBAAqB,EACxC,oBAAoB,IAAI,0BAA0B,EAClD,MAAM,IAAI,YAAY,EACtB,eAAe,IAAI,qBAAqB,EACxC,iBAAiB,IAAI,uBAAuB,EAC5C,iBAAiB,IAAI,uBA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BAAgB,CAAC,YAAY,CAAC,CAAA;AAEhD,MAAM,CAAC,MAAM,eAAe,GAExB,aAAa,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAA;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAE1B,iBAAiB,CAAC,uBAAuB,CAAC,CAAA;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAE1B,iBAAiB,CAAC,uBAAuB,CAAC,CAAA;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAE1B,iBAAiB,CAAC,uBAAuB,CAAC,CAAA;AAE9C,OAAO,EACL,WAAW,EAOX,yBAAyB,EAuBzB,eAAe,EACf,eAAe,EAoBf,MAAM,EACN,MAAM,EACN,WAAW,EACX,WAAW,EAoBX,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,kCAAkC,EAClC,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,iCAAiC,EACjC,gCAAgC,EAChC,MAAM,EACN,IAAI,EAEJ,aAAa,EACb,YAAY,GACb,MAAM,qCAAqC,CAAA;AAwB5C,cAAc,iCAAiC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WixDataIsReferencedOptions } from '@wix/wix-data-items-common';
|
|
2
|
-
import { WixDataUpdateOptions, WixDataCountOptions, WixDataReadOptions, WixDataRemoveOptions, WixDataSaveOptions, WixDataInsertOptions, WixDataOptions, WixDataBulkRemoveOptions, WixDataBulkUpdateOptions, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, WixDataAggregateOptions, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, WixDataBulkPatch, WixDataBulkPatchOptions, WixDataBulkResult, WixDataBulkError, WixDataItem, WithId, WixDataReadWithProjectionOptions, WithIncludeFieldGroupsOption, WixDataGetOptions, WixDataPatch, WixDataPatchByFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQuery, WixDataSearch, QueryBase, WixDataFilter, WixDataQueryReferencedOptions, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, WixDataQueryRequest, WixDataPatchOptions, FieldModification, WixDataAsyncByFilterOptions, WixDataAsyncRemoveByFilterOptions, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJob, WixDataAsyncJobStatus, WixDataFilterInput, WixDataApi, PipelineStage, pipelineBuilder, PipelineBuilder as _PipelineBuilder, QueryBuilder, Sort, Filter, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, WixDataBulkInsertOptions, WixDataBulkSaveOptions, WixDataQueryOptions, expressions, stages, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, AggregationPipeline, AggregatePipelineDataItemsResponse, WixDataDistinctOptions, WixDataSearchRequest, WixDataSearchOptions, SearchBuilder, SearchParams, FieldModificationsBuilder, WixDataFieldModificationsBuilder } from '@wix/wix-data-items-common';
|
|
2
|
+
import { WixDataUpdateOptions, WixDataCountOptions, WixDataReadOptions, WixDataRemoveOptions, WixDataSaveOptions, WixDataInsertOptions, WixDataOptions, WixDataBulkRemoveOptions, WixDataBulkUpdateOptions, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, WixDataAggregateOptions, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, WixDataBulkPatch, WixDataBulkPatchOptions, WixDataBulkResult, WixDataBulkError, WixDataItem, WithId, WixDataReadWithProjectionOptions, WithIncludeFieldGroupsOption, WixDataGetOptions, WixDataPatch, WixDataPatchByFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQuery, WixDataSearch, QueryBase, WixDataFilter, WixDataQueryReferencedOptions, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, ReferencedResult, UnresolvedReference, WixDataQueryRequest, WixDataPatchOptions, FieldModification, WixDataAsyncByFilterOptions, WixDataAsyncRemoveByFilterOptions, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJob, WixDataAsyncJobStatus, WixDataFilterInput, WixDataApi, PipelineStage, pipelineBuilder, PipelineBuilder as _PipelineBuilder, QueryBuilder, Sort, Filter, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, WixDataBulkInsertOptions, WixDataBulkSaveOptions, WixDataQueryOptions, expressions, stages, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, AggregationPipeline, AggregatePipelineDataItemsResponse, WixDataDistinctOptions, WixDataSearchRequest, WixDataSearchOptions, SearchBuilder, SearchParams, FieldModificationsBuilder, WixDataFieldModificationsBuilder } from '@wix/wix-data-items-common';
|
|
3
3
|
import { DataItemCreatedEnvelope, DataItemDeletedEnvelope, DataItemUpdatedEnvelope } from './data-v2-data-item-items.types';
|
|
4
4
|
/**
|
|
5
5
|
* Adds an item to a collection.
|
|
@@ -812,7 +812,7 @@ export declare function onDataItemUpdated(handler: (event: DataItemUpdatedEnvelo
|
|
|
812
812
|
* @slug deleted
|
|
813
813
|
*/
|
|
814
814
|
export declare function onDataItemDeleted(handler: (event: DataItemDeletedEnvelope) => void | Promise<void>): void;
|
|
815
|
-
export { WixDataReadOptions, WixDataReadWithProjectionOptions, WithIncludeFieldGroupsOption, WixDataGetOptions, WixDataOptions, WixDataRemoveOptions, WixDataInsertOptions, WixDataUpdateOptions, WixDataSaveOptions, WixDataBulkSaveOptions, WixDataItem, WithId, WixDataBulkResult, WixDataBulkError, WixDataBulkUpdateOptions, WixDataBulkRemoveOptions, WixDataQuery, WixDataPatch, WixDataBulkPatch, WixDataPatchByFilter, WixDataAsyncByFilterOptions, WixDataAsyncRemoveByFilterOptions, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJob, WixDataAsyncJobStatus, WixDataFilterInput, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, QueryBase, WixDataFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQueryReferencedOptions, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, WixDataPatchOptions, WixDataBulkPatchOptions, FieldModification, FieldModificationsBuilder, WixDataFieldModificationsBuilder, WixDataSearch, PipelineStage, pipelineBuilder, QueryBuilder, Sort, Filter, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, WixDataQueryOptions, WixDataSearchRequest, WixDataSearchOptions, SearchBuilder, SearchParams, expressions, stages, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, WixDataAggregateOptions, WixDataCountOptions, AggregationPipeline, AggregatePipelineDataItemsResponse, WixDataDistinctOptions, };
|
|
815
|
+
export { WixDataReadOptions, WixDataReadWithProjectionOptions, WithIncludeFieldGroupsOption, WixDataGetOptions, WixDataOptions, WixDataRemoveOptions, WixDataInsertOptions, WixDataUpdateOptions, WixDataSaveOptions, WixDataBulkSaveOptions, WixDataItem, WithId, WixDataBulkResult, WixDataBulkError, WixDataBulkUpdateOptions, WixDataBulkRemoveOptions, WixDataQuery, WixDataPatch, WixDataBulkPatch, WixDataPatchByFilter, WixDataAsyncByFilterOptions, WixDataAsyncRemoveByFilterOptions, WixDataAsyncRemoveByFilterResponse, WixDataAsyncPatchByFilterOptions, WixDataAsyncPatchByFilterResponse, WixDataAsyncJob, WixDataAsyncJobStatus, WixDataFilterInput, WixDataAggregate, WixDataAggregatePipelineExpressions, WixDataAggregatePipelineStages, FilterStage, ProjectStage, GroupStage, UnwindStage, SortStage, LimitStage, SkipStage, ObjectToArrayStage, QueryBase, WixDataFilter, WixDataResult, WixDataQueryResponse, WixDataSearchResponse, WixDataAggregateResponse, WixDataDistinctResponse, WixDataQueryReferencedOptions, WixDataQueryReferencedItemsOptions, WixDataQueryReferencedItemsResponse, ReferencedResult, UnresolvedReference, WixDataPatchOptions, WixDataBulkPatchOptions, FieldModification, FieldModificationsBuilder, WixDataFieldModificationsBuilder, WixDataSearch, PipelineStage, pipelineBuilder, QueryBuilder, Sort, Filter, InsertOptionsBuilder, SaveOptionsBuilder, BulkSaveOptionsBuilder, GetOptionsBuilder, QueryOptionsBuilder, QueryReferencedItemsOptionsBuilder, AggregateOptionsBuilder, DistinctOptionsBuilder, CountOptionsBuilder, IsReferencedOptionsBuilder, SearchOptionsBuilder, UpdateOptionsBuilder, BulkUpdateOptionsBuilder, BulkInsertOptionsBuilder, PatchOptionsBuilder, BulkPatchOptionsBuilder, BulkRemoveOptionsBuilder, RemoveOptionsBuilder, AsyncRemoveByFilterOptionsBuilder, AsyncPatchByFilterOptionsBuilder, WixDataQueryOptions, WixDataSearchRequest, WixDataSearchOptions, SearchBuilder, SearchParams, expressions, stages, FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, WixDataAggregateOptions, WixDataCountOptions, AggregationPipeline, AggregatePipelineDataItemsResponse, WixDataDistinctOptions, };
|
|
816
816
|
/** @builder */
|
|
817
817
|
export interface PipelineBuilder extends _PipelineBuilder {
|
|
818
818
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-v2-data-item-items.universal.js","sourceRoot":"","sources":["../../../src/data-v2-data-item-items.universal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9C,OAAO,EAwCL,SAAS,
|
|
1
|
+
{"version":3,"file":"data-v2-data-item-items.universal.js","sourceRoot":"","sources":["../../../src/data-v2-data-item-items.universal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9C,OAAO,EAwCL,SAAS,EAoBT,eAAe,EAEf,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,kCAAkC,EAClC,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,iCAAiC,EACjC,gCAAgC,EAIhC,WAAW,EACX,MAAM,EAwBN,aAAa,EACb,YAAY,EACZ,yBAAyB,GAE1B,MAAM,4BAA4B,CAAA;AAOnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,gBAAwB,EACxB,IAAU,EACV,OAA8B;IAE9B,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAA;IAED,OAAO,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,MAAM,CAClD,gBAAgB,EAChB,IAAI,EACJ,OAAO,CACR,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,gBAAwB,EACx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ACvB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,iCAAiC,EACjC,gCAAgC,EAIhC,aAAa,EACb,YAAY,EACZ,WAAW,EACX,MAAM,GAwBP,CAAA;AAID;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAA2B,eAAe,CAAA;AACtE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAA;AAE5B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAA;AA4BtC,cAAc,iCAAiC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/wix-data-items-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.544",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Rimvydas Gimbutas",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"wallaby": {
|
|
96
96
|
"autoDetect": true
|
|
97
97
|
},
|
|
98
|
-
"falconPackageHash": "
|
|
98
|
+
"falconPackageHash": "493f4d67bd9cf995f143dd67dc86f40785124f7225b64c2874a557e1"
|
|
99
99
|
}
|