@wix/data 1.0.89 → 1.0.91
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/context.d.ts +4 -4
- package/build/cjs/context.js +4 -4
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -4
- package/build/cjs/meta.js +4 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +4 -4
- package/build/es/context.js +4 -4
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +4 -4
- package/build/es/index.js +4 -4
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +4 -4
- package/build/es/meta.js +4 -4
- package/build/es/meta.js.map +1 -1
- package/package.json +14 -9
- package/build/cjs/index.typings.d.ts +0 -4
- package/build/cjs/index.typings.js +0 -31
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/data-v1-external-database-connection.context.d.ts +0 -7
- package/build/cjs/src/data-v1-external-database-connection.context.js +0 -90
- package/build/cjs/src/data-v1-external-database-connection.context.js.map +0 -1
- package/build/cjs/src/data-v1-external-database-connection.http.d.ts +0 -28
- package/build/cjs/src/data-v1-external-database-connection.http.js +0 -393
- package/build/cjs/src/data-v1-external-database-connection.http.js.map +0 -1
- package/build/cjs/src/data-v1-external-database-connection.meta.d.ts +0 -23
- package/build/cjs/src/data-v1-external-database-connection.meta.js +0 -127
- package/build/cjs/src/data-v1-external-database-connection.meta.js.map +0 -1
- package/build/cjs/src/data-v1-external-database-connection.public.d.ts +0 -46
- package/build/cjs/src/data-v1-external-database-connection.public.js +0 -46
- package/build/cjs/src/data-v1-external-database-connection.public.js.map +0 -1
- package/build/cjs/src/data-v1-external-database-connection.types.d.ts +0 -321
- package/build/cjs/src/data-v1-external-database-connection.types.js +0 -88
- package/build/cjs/src/data-v1-external-database-connection.types.js.map +0 -1
- package/build/cjs/src/data-v1-external-database-connection.universal.d.ts +0 -433
- package/build/cjs/src/data-v1-external-database-connection.universal.js +0 -442
- package/build/cjs/src/data-v1-external-database-connection.universal.js.map +0 -1
- package/build/cjs/src/data-v2-data-collection.context.d.ts +0 -7
- package/build/cjs/src/data-v2-data-collection.context.js +0 -90
- package/build/cjs/src/data-v2-data-collection.context.js.map +0 -1
- package/build/cjs/src/data-v2-data-collection.http.d.ts +0 -36
- package/build/cjs/src/data-v2-data-collection.http.js +0 -494
- package/build/cjs/src/data-v2-data-collection.http.js.map +0 -1
- package/build/cjs/src/data-v2-data-collection.meta.d.ts +0 -21
- package/build/cjs/src/data-v2-data-collection.meta.js +0 -123
- package/build/cjs/src/data-v2-data-collection.meta.js.map +0 -1
- package/build/cjs/src/data-v2-data-collection.public.d.ts +0 -313
- package/build/cjs/src/data-v2-data-collection.public.js +0 -58
- package/build/cjs/src/data-v2-data-collection.public.js.map +0 -1
- package/build/cjs/src/data-v2-data-collection.types.d.ts +0 -1460
- package/build/cjs/src/data-v2-data-collection.types.js +0 -197
- package/build/cjs/src/data-v2-data-collection.types.js.map +0 -1
- package/build/cjs/src/data-v2-data-collection.universal.d.ts +0 -1626
- package/build/cjs/src/data-v2-data-collection.universal.js +0 -622
- package/build/cjs/src/data-v2-data-collection.universal.js.map +0 -1
- package/build/cjs/src/data-v2-data-item.context.d.ts +0 -23
- package/build/cjs/src/data-v2-data-item.context.js +0 -362
- package/build/cjs/src/data-v2-data-item.context.js.map +0 -1
- package/build/cjs/src/data-v2-data-item.http.d.ts +0 -225
- package/build/cjs/src/data-v2-data-item.http.js +0 -936
- package/build/cjs/src/data-v2-data-item.http.js.map +0 -1
- package/build/cjs/src/data-v2-data-item.meta.d.ts +0 -39
- package/build/cjs/src/data-v2-data-item.meta.js +0 -427
- package/build/cjs/src/data-v2-data-item.meta.js.map +0 -1
- package/build/cjs/src/data-v2-data-item.public.d.ts +0 -31
- package/build/cjs/src/data-v2-data-item.public.js +0 -137
- package/build/cjs/src/data-v2-data-item.public.js.map +0 -1
- package/build/cjs/src/data-v2-data-item.types.d.ts +0 -913
- package/build/cjs/src/data-v2-data-item.types.js +0 -27
- package/build/cjs/src/data-v2-data-item.types.js.map +0 -1
- package/build/cjs/src/data-v2-data-item.universal.d.ts +0 -1748
- package/build/cjs/src/data-v2-data-item.universal.js +0 -1639
- package/build/cjs/src/data-v2-data-item.universal.js.map +0 -1
- package/build/cjs/src/data-v2-index.context.d.ts +0 -5
- package/build/cjs/src/data-v2-index.context.js +0 -56
- package/build/cjs/src/data-v2-index.context.js.map +0 -1
- package/build/cjs/src/data-v2-index.http.d.ts +0 -28
- package/build/cjs/src/data-v2-index.http.js +0 -367
- package/build/cjs/src/data-v2-index.http.js.map +0 -1
- package/build/cjs/src/data-v2-index.meta.d.ts +0 -15
- package/build/cjs/src/data-v2-index.meta.js +0 -85
- package/build/cjs/src/data-v2-index.meta.js.map +0 -1
- package/build/cjs/src/data-v2-index.public.d.ts +0 -23
- package/build/cjs/src/data-v2-index.public.js +0 -28
- package/build/cjs/src/data-v2-index.public.js.map +0 -1
- package/build/cjs/src/data-v2-index.types.d.ts +0 -174
- package/build/cjs/src/data-v2-index.types.js +0 -35
- package/build/cjs/src/data-v2-index.types.js.map +0 -1
- package/build/cjs/src/data-v2-index.universal.d.ts +0 -237
- package/build/cjs/src/data-v2-index.universal.js +0 -274
- package/build/cjs/src/data-v2-index.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -4
- package/build/es/index.typings.js +0 -5
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/data-v1-external-database-connection.context.d.ts +0 -7
- package/build/es/src/data-v1-external-database-connection.context.js +0 -82
- package/build/es/src/data-v1-external-database-connection.context.js.map +0 -1
- package/build/es/src/data-v1-external-database-connection.http.d.ts +0 -28
- package/build/es/src/data-v1-external-database-connection.http.js +0 -385
- package/build/es/src/data-v1-external-database-connection.http.js.map +0 -1
- package/build/es/src/data-v1-external-database-connection.meta.d.ts +0 -23
- package/build/es/src/data-v1-external-database-connection.meta.js +0 -96
- package/build/es/src/data-v1-external-database-connection.meta.js.map +0 -1
- package/build/es/src/data-v1-external-database-connection.public.d.ts +0 -46
- package/build/es/src/data-v1-external-database-connection.public.js +0 -30
- package/build/es/src/data-v1-external-database-connection.public.js.map +0 -1
- package/build/es/src/data-v1-external-database-connection.types.d.ts +0 -321
- package/build/es/src/data-v1-external-database-connection.types.js +0 -85
- package/build/es/src/data-v1-external-database-connection.types.js.map +0 -1
- package/build/es/src/data-v1-external-database-connection.universal.d.ts +0 -433
- package/build/es/src/data-v1-external-database-connection.universal.js +0 -411
- package/build/es/src/data-v1-external-database-connection.universal.js.map +0 -1
- package/build/es/src/data-v2-data-collection.context.d.ts +0 -7
- package/build/es/src/data-v2-data-collection.context.js +0 -82
- package/build/es/src/data-v2-data-collection.context.js.map +0 -1
- package/build/es/src/data-v2-data-collection.http.d.ts +0 -36
- package/build/es/src/data-v2-data-collection.http.js +0 -486
- package/build/es/src/data-v2-data-collection.http.js.map +0 -1
- package/build/es/src/data-v2-data-collection.meta.d.ts +0 -21
- package/build/es/src/data-v2-data-collection.meta.js +0 -92
- package/build/es/src/data-v2-data-collection.meta.js.map +0 -1
- package/build/es/src/data-v2-data-collection.public.d.ts +0 -313
- package/build/es/src/data-v2-data-collection.public.js +0 -30
- package/build/es/src/data-v2-data-collection.public.js.map +0 -1
- package/build/es/src/data-v2-data-collection.types.d.ts +0 -1460
- package/build/es/src/data-v2-data-collection.types.js +0 -194
- package/build/es/src/data-v2-data-collection.types.js.map +0 -1
- package/build/es/src/data-v2-data-collection.universal.d.ts +0 -1626
- package/build/es/src/data-v2-data-collection.universal.js +0 -591
- package/build/es/src/data-v2-data-collection.universal.js.map +0 -1
- package/build/es/src/data-v2-data-item.context.d.ts +0 -23
- package/build/es/src/data-v2-data-item.context.js +0 -338
- package/build/es/src/data-v2-data-item.context.js.map +0 -1
- package/build/es/src/data-v2-data-item.http.d.ts +0 -225
- package/build/es/src/data-v2-data-item.http.js +0 -912
- package/build/es/src/data-v2-data-item.http.js.map +0 -1
- package/build/es/src/data-v2-data-item.meta.d.ts +0 -39
- package/build/es/src/data-v2-data-item.meta.js +0 -380
- package/build/es/src/data-v2-data-item.meta.js.map +0 -1
- package/build/es/src/data-v2-data-item.public.d.ts +0 -31
- package/build/es/src/data-v2-data-item.public.js +0 -109
- package/build/es/src/data-v2-data-item.public.js.map +0 -1
- package/build/es/src/data-v2-data-item.types.d.ts +0 -913
- package/build/es/src/data-v2-data-item.types.js +0 -24
- package/build/es/src/data-v2-data-item.types.js.map +0 -1
- package/build/es/src/data-v2-data-item.universal.d.ts +0 -1748
- package/build/es/src/data-v2-data-item.universal.js +0 -1592
- package/build/es/src/data-v2-data-item.universal.js.map +0 -1
- package/build/es/src/data-v2-index.context.d.ts +0 -5
- package/build/es/src/data-v2-index.context.js +0 -50
- package/build/es/src/data-v2-index.context.js.map +0 -1
- package/build/es/src/data-v2-index.http.d.ts +0 -28
- package/build/es/src/data-v2-index.http.js +0 -361
- package/build/es/src/data-v2-index.http.js.map +0 -1
- package/build/es/src/data-v2-index.meta.d.ts +0 -15
- package/build/es/src/data-v2-index.meta.js +0 -56
- package/build/es/src/data-v2-index.meta.js.map +0 -1
- package/build/es/src/data-v2-index.public.d.ts +0 -23
- package/build/es/src/data-v2-index.public.js +0 -19
- package/build/es/src/data-v2-index.public.js.map +0 -1
- package/build/es/src/data-v2-index.types.d.ts +0 -174
- package/build/es/src/data-v2-index.types.js +0 -32
- package/build/es/src/data-v2-index.types.js.map +0 -1
- package/build/es/src/data-v2-index.universal.d.ts +0 -237
- package/build/es/src/data-v2-index.universal.js +0 -245
- package/build/es/src/data-v2-index.universal.js.map +0 -1
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
import { insertDataItem as publicInsertDataItem, updateDataItem as publicUpdateDataItem, saveDataItem as publicSaveDataItem, getDataItem as publicGetDataItem, removeDataItem as publicRemoveDataItem, truncateDataItems as publicTruncateDataItems, queryDataItems as publicQueryDataItems, aggregateDataItems as publicAggregateDataItems, countDataItems as publicCountDataItems, queryDistinctValues as publicQueryDistinctValues, bulkInsertDataItems as publicBulkInsertDataItems, bulkUpdateDataItems as publicBulkUpdateDataItems, bulkSaveDataItems as publicBulkSaveDataItems, bulkRemoveDataItems as publicBulkRemoveDataItems, queryReferencedDataItems as publicQueryReferencedDataItems, isReferencedDataItem as publicIsReferencedDataItem, insertDataItemReference as publicInsertDataItemReference, removeDataItemReference as publicRemoveDataItemReference, bulkInsertDataItemReferences as publicBulkInsertDataItemReferences, bulkRemoveDataItemReferences as publicBulkRemoveDataItemReferences, replaceDataItemReferences as publicReplaceDataItemReferences, } from './data-v2-data-item.public';
|
|
2
|
-
export const insertDataItem = (...args) => {
|
|
3
|
-
var _a;
|
|
4
|
-
const context =
|
|
5
|
-
// @ts-expect-error
|
|
6
|
-
typeof $wixContext !== 'undefined'
|
|
7
|
-
? // @ts-expect-error
|
|
8
|
-
$wixContext
|
|
9
|
-
: // @ts-expect-error
|
|
10
|
-
globalThis.__wix_context__;
|
|
11
|
-
if (!context) {
|
|
12
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
13
|
-
}
|
|
14
|
-
return context
|
|
15
|
-
.initWixModules(publicInsertDataItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
16
|
-
.apply(undefined, args);
|
|
17
|
-
};
|
|
18
|
-
export const updateDataItem = (...args) => {
|
|
19
|
-
var _a;
|
|
20
|
-
const context =
|
|
21
|
-
// @ts-expect-error
|
|
22
|
-
typeof $wixContext !== 'undefined'
|
|
23
|
-
? // @ts-expect-error
|
|
24
|
-
$wixContext
|
|
25
|
-
: // @ts-expect-error
|
|
26
|
-
globalThis.__wix_context__;
|
|
27
|
-
if (!context) {
|
|
28
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
29
|
-
}
|
|
30
|
-
return context
|
|
31
|
-
.initWixModules(publicUpdateDataItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
32
|
-
.apply(undefined, args);
|
|
33
|
-
};
|
|
34
|
-
export const saveDataItem = (...args) => {
|
|
35
|
-
var _a;
|
|
36
|
-
const context =
|
|
37
|
-
// @ts-expect-error
|
|
38
|
-
typeof $wixContext !== 'undefined'
|
|
39
|
-
? // @ts-expect-error
|
|
40
|
-
$wixContext
|
|
41
|
-
: // @ts-expect-error
|
|
42
|
-
globalThis.__wix_context__;
|
|
43
|
-
if (!context) {
|
|
44
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
45
|
-
}
|
|
46
|
-
return context
|
|
47
|
-
.initWixModules(publicSaveDataItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
48
|
-
.apply(undefined, args);
|
|
49
|
-
};
|
|
50
|
-
export const getDataItem = (...args) => {
|
|
51
|
-
var _a;
|
|
52
|
-
const context =
|
|
53
|
-
// @ts-expect-error
|
|
54
|
-
typeof $wixContext !== 'undefined'
|
|
55
|
-
? // @ts-expect-error
|
|
56
|
-
$wixContext
|
|
57
|
-
: // @ts-expect-error
|
|
58
|
-
globalThis.__wix_context__;
|
|
59
|
-
if (!context) {
|
|
60
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
61
|
-
}
|
|
62
|
-
return context
|
|
63
|
-
.initWixModules(publicGetDataItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
64
|
-
.apply(undefined, args);
|
|
65
|
-
};
|
|
66
|
-
export const removeDataItem = (...args) => {
|
|
67
|
-
var _a;
|
|
68
|
-
const context =
|
|
69
|
-
// @ts-expect-error
|
|
70
|
-
typeof $wixContext !== 'undefined'
|
|
71
|
-
? // @ts-expect-error
|
|
72
|
-
$wixContext
|
|
73
|
-
: // @ts-expect-error
|
|
74
|
-
globalThis.__wix_context__;
|
|
75
|
-
if (!context) {
|
|
76
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
77
|
-
}
|
|
78
|
-
return context
|
|
79
|
-
.initWixModules(publicRemoveDataItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
80
|
-
.apply(undefined, args);
|
|
81
|
-
};
|
|
82
|
-
export const truncateDataItems = (...args) => {
|
|
83
|
-
var _a;
|
|
84
|
-
const context =
|
|
85
|
-
// @ts-expect-error
|
|
86
|
-
typeof $wixContext !== 'undefined'
|
|
87
|
-
? // @ts-expect-error
|
|
88
|
-
$wixContext
|
|
89
|
-
: // @ts-expect-error
|
|
90
|
-
globalThis.__wix_context__;
|
|
91
|
-
if (!context) {
|
|
92
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
93
|
-
}
|
|
94
|
-
return context
|
|
95
|
-
.initWixModules(publicTruncateDataItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
96
|
-
.apply(undefined, args);
|
|
97
|
-
};
|
|
98
|
-
export const queryDataItems = (...args) => {
|
|
99
|
-
var _a;
|
|
100
|
-
const context =
|
|
101
|
-
// @ts-expect-error
|
|
102
|
-
typeof $wixContext !== 'undefined'
|
|
103
|
-
? // @ts-expect-error
|
|
104
|
-
$wixContext
|
|
105
|
-
: // @ts-expect-error
|
|
106
|
-
globalThis.__wix_context__;
|
|
107
|
-
if (!context) {
|
|
108
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
109
|
-
}
|
|
110
|
-
return context
|
|
111
|
-
.initWixModules(publicQueryDataItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
112
|
-
.apply(undefined, args);
|
|
113
|
-
};
|
|
114
|
-
export const aggregateDataItems = (...args) => {
|
|
115
|
-
var _a;
|
|
116
|
-
const context =
|
|
117
|
-
// @ts-expect-error
|
|
118
|
-
typeof $wixContext !== 'undefined'
|
|
119
|
-
? // @ts-expect-error
|
|
120
|
-
$wixContext
|
|
121
|
-
: // @ts-expect-error
|
|
122
|
-
globalThis.__wix_context__;
|
|
123
|
-
if (!context) {
|
|
124
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
125
|
-
}
|
|
126
|
-
return context
|
|
127
|
-
.initWixModules(publicAggregateDataItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
128
|
-
.apply(undefined, args);
|
|
129
|
-
};
|
|
130
|
-
export const countDataItems = (...args) => {
|
|
131
|
-
var _a;
|
|
132
|
-
const context =
|
|
133
|
-
// @ts-expect-error
|
|
134
|
-
typeof $wixContext !== 'undefined'
|
|
135
|
-
? // @ts-expect-error
|
|
136
|
-
$wixContext
|
|
137
|
-
: // @ts-expect-error
|
|
138
|
-
globalThis.__wix_context__;
|
|
139
|
-
if (!context) {
|
|
140
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
141
|
-
}
|
|
142
|
-
return context
|
|
143
|
-
.initWixModules(publicCountDataItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
144
|
-
.apply(undefined, args);
|
|
145
|
-
};
|
|
146
|
-
export const queryDistinctValues = (...args) => {
|
|
147
|
-
var _a;
|
|
148
|
-
const context =
|
|
149
|
-
// @ts-expect-error
|
|
150
|
-
typeof $wixContext !== 'undefined'
|
|
151
|
-
? // @ts-expect-error
|
|
152
|
-
$wixContext
|
|
153
|
-
: // @ts-expect-error
|
|
154
|
-
globalThis.__wix_context__;
|
|
155
|
-
if (!context) {
|
|
156
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
157
|
-
}
|
|
158
|
-
return context
|
|
159
|
-
.initWixModules(publicQueryDistinctValues, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
160
|
-
.apply(undefined, args);
|
|
161
|
-
};
|
|
162
|
-
export const bulkInsertDataItems = (...args) => {
|
|
163
|
-
var _a;
|
|
164
|
-
const context =
|
|
165
|
-
// @ts-expect-error
|
|
166
|
-
typeof $wixContext !== 'undefined'
|
|
167
|
-
? // @ts-expect-error
|
|
168
|
-
$wixContext
|
|
169
|
-
: // @ts-expect-error
|
|
170
|
-
globalThis.__wix_context__;
|
|
171
|
-
if (!context) {
|
|
172
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
173
|
-
}
|
|
174
|
-
return context
|
|
175
|
-
.initWixModules(publicBulkInsertDataItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
176
|
-
.apply(undefined, args);
|
|
177
|
-
};
|
|
178
|
-
export const bulkUpdateDataItems = (...args) => {
|
|
179
|
-
var _a;
|
|
180
|
-
const context =
|
|
181
|
-
// @ts-expect-error
|
|
182
|
-
typeof $wixContext !== 'undefined'
|
|
183
|
-
? // @ts-expect-error
|
|
184
|
-
$wixContext
|
|
185
|
-
: // @ts-expect-error
|
|
186
|
-
globalThis.__wix_context__;
|
|
187
|
-
if (!context) {
|
|
188
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
189
|
-
}
|
|
190
|
-
return context
|
|
191
|
-
.initWixModules(publicBulkUpdateDataItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
192
|
-
.apply(undefined, args);
|
|
193
|
-
};
|
|
194
|
-
export const bulkSaveDataItems = (...args) => {
|
|
195
|
-
var _a;
|
|
196
|
-
const context =
|
|
197
|
-
// @ts-expect-error
|
|
198
|
-
typeof $wixContext !== 'undefined'
|
|
199
|
-
? // @ts-expect-error
|
|
200
|
-
$wixContext
|
|
201
|
-
: // @ts-expect-error
|
|
202
|
-
globalThis.__wix_context__;
|
|
203
|
-
if (!context) {
|
|
204
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
205
|
-
}
|
|
206
|
-
return context
|
|
207
|
-
.initWixModules(publicBulkSaveDataItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
208
|
-
.apply(undefined, args);
|
|
209
|
-
};
|
|
210
|
-
export const bulkRemoveDataItems = (...args) => {
|
|
211
|
-
var _a;
|
|
212
|
-
const context =
|
|
213
|
-
// @ts-expect-error
|
|
214
|
-
typeof $wixContext !== 'undefined'
|
|
215
|
-
? // @ts-expect-error
|
|
216
|
-
$wixContext
|
|
217
|
-
: // @ts-expect-error
|
|
218
|
-
globalThis.__wix_context__;
|
|
219
|
-
if (!context) {
|
|
220
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
221
|
-
}
|
|
222
|
-
return context
|
|
223
|
-
.initWixModules(publicBulkRemoveDataItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
224
|
-
.apply(undefined, args);
|
|
225
|
-
};
|
|
226
|
-
export const queryReferencedDataItems = (...args) => {
|
|
227
|
-
var _a;
|
|
228
|
-
const context =
|
|
229
|
-
// @ts-expect-error
|
|
230
|
-
typeof $wixContext !== 'undefined'
|
|
231
|
-
? // @ts-expect-error
|
|
232
|
-
$wixContext
|
|
233
|
-
: // @ts-expect-error
|
|
234
|
-
globalThis.__wix_context__;
|
|
235
|
-
if (!context) {
|
|
236
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
237
|
-
}
|
|
238
|
-
return context
|
|
239
|
-
.initWixModules(publicQueryReferencedDataItems, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
240
|
-
.apply(undefined, args);
|
|
241
|
-
};
|
|
242
|
-
export const isReferencedDataItem = (...args) => {
|
|
243
|
-
var _a;
|
|
244
|
-
const context =
|
|
245
|
-
// @ts-expect-error
|
|
246
|
-
typeof $wixContext !== 'undefined'
|
|
247
|
-
? // @ts-expect-error
|
|
248
|
-
$wixContext
|
|
249
|
-
: // @ts-expect-error
|
|
250
|
-
globalThis.__wix_context__;
|
|
251
|
-
if (!context) {
|
|
252
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
253
|
-
}
|
|
254
|
-
return context
|
|
255
|
-
.initWixModules(publicIsReferencedDataItem, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
256
|
-
.apply(undefined, args);
|
|
257
|
-
};
|
|
258
|
-
export const insertDataItemReference = (...args) => {
|
|
259
|
-
var _a;
|
|
260
|
-
const context =
|
|
261
|
-
// @ts-expect-error
|
|
262
|
-
typeof $wixContext !== 'undefined'
|
|
263
|
-
? // @ts-expect-error
|
|
264
|
-
$wixContext
|
|
265
|
-
: // @ts-expect-error
|
|
266
|
-
globalThis.__wix_context__;
|
|
267
|
-
if (!context) {
|
|
268
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
269
|
-
}
|
|
270
|
-
return context
|
|
271
|
-
.initWixModules(publicInsertDataItemReference, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
272
|
-
.apply(undefined, args);
|
|
273
|
-
};
|
|
274
|
-
export const removeDataItemReference = (...args) => {
|
|
275
|
-
var _a;
|
|
276
|
-
const context =
|
|
277
|
-
// @ts-expect-error
|
|
278
|
-
typeof $wixContext !== 'undefined'
|
|
279
|
-
? // @ts-expect-error
|
|
280
|
-
$wixContext
|
|
281
|
-
: // @ts-expect-error
|
|
282
|
-
globalThis.__wix_context__;
|
|
283
|
-
if (!context) {
|
|
284
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
285
|
-
}
|
|
286
|
-
return context
|
|
287
|
-
.initWixModules(publicRemoveDataItemReference, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
288
|
-
.apply(undefined, args);
|
|
289
|
-
};
|
|
290
|
-
export const bulkInsertDataItemReferences = (...args) => {
|
|
291
|
-
var _a;
|
|
292
|
-
const context =
|
|
293
|
-
// @ts-expect-error
|
|
294
|
-
typeof $wixContext !== 'undefined'
|
|
295
|
-
? // @ts-expect-error
|
|
296
|
-
$wixContext
|
|
297
|
-
: // @ts-expect-error
|
|
298
|
-
globalThis.__wix_context__;
|
|
299
|
-
if (!context) {
|
|
300
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
301
|
-
}
|
|
302
|
-
return context
|
|
303
|
-
.initWixModules(publicBulkInsertDataItemReferences, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
304
|
-
.apply(undefined, args);
|
|
305
|
-
};
|
|
306
|
-
export const bulkRemoveDataItemReferences = (...args) => {
|
|
307
|
-
var _a;
|
|
308
|
-
const context =
|
|
309
|
-
// @ts-expect-error
|
|
310
|
-
typeof $wixContext !== 'undefined'
|
|
311
|
-
? // @ts-expect-error
|
|
312
|
-
$wixContext
|
|
313
|
-
: // @ts-expect-error
|
|
314
|
-
globalThis.__wix_context__;
|
|
315
|
-
if (!context) {
|
|
316
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
317
|
-
}
|
|
318
|
-
return context
|
|
319
|
-
.initWixModules(publicBulkRemoveDataItemReferences, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
320
|
-
.apply(undefined, args);
|
|
321
|
-
};
|
|
322
|
-
export const replaceDataItemReferences = (...args) => {
|
|
323
|
-
var _a;
|
|
324
|
-
const context =
|
|
325
|
-
// @ts-expect-error
|
|
326
|
-
typeof $wixContext !== 'undefined'
|
|
327
|
-
? // @ts-expect-error
|
|
328
|
-
$wixContext
|
|
329
|
-
: // @ts-expect-error
|
|
330
|
-
globalThis.__wix_context__;
|
|
331
|
-
if (!context) {
|
|
332
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
333
|
-
}
|
|
334
|
-
return context
|
|
335
|
-
.initWixModules(publicReplaceDataItemReferences, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
336
|
-
.apply(undefined, args);
|
|
337
|
-
};
|
|
338
|
-
//# sourceMappingURL=data-v2-data-item.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-v2-data-item.context.js","sourceRoot":"","sources":["../../../src/data-v2-data-item.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,cAAc,IAAI,oBAAoB,EACtC,YAAY,IAAI,kBAAkB,EAClC,WAAW,IAAI,iBAAiB,EAChC,cAAc,IAAI,oBAAoB,EACtC,iBAAiB,IAAI,uBAAuB,EAC5C,cAAc,IAAI,oBAAoB,EACtC,kBAAkB,IAAI,wBAAwB,EAC9C,cAAc,IAAI,oBAAoB,EACtC,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,iBAAiB,IAAI,uBAAuB,EAC5C,mBAAmB,IAAI,yBAAyB,EAChD,wBAAwB,IAAI,8BAA8B,EAC1D,oBAAoB,IAAI,0BAA0B,EAClD,uBAAuB,IAAI,6BAA6B,EACxD,uBAAuB,IAAI,6BAA6B,EACxD,4BAA4B,IAAI,kCAAkC,EAClE,4BAA4B,IAAI,kCAAkC,EAClE,yBAAyB,IAAI,+BAA+B,GAC7D,MAAM,4BAA4B,CAAC;AAGpC,MAAM,CAAC,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;;IACF,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACj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3
|
-
* Adds an item to a collection.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* An item can only be inserted into an existing connection.
|
|
7
|
-
* You can create a new collection using the Data Collections API.
|
|
8
|
-
*
|
|
9
|
-
* When an item is inserted into a collection, the item's ID is automatically assigned a random value.
|
|
10
|
-
* You can optionally provide a custom ID in `dataItem.id` when inserting the item.
|
|
11
|
-
* If you specify an ID that already exists in the collection, the insertion will fail.
|
|
12
|
-
*
|
|
13
|
-
* If `options.dataItem.data` is empty, a new item is created with no data fields.
|
|
14
|
-
*/
|
|
15
|
-
export declare function insertDataItem(payload: object): RequestOptionsFactory<any>;
|
|
16
|
-
/**
|
|
17
|
-
* Updates an item in a collection.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* This function replaces the data item's existing data with the payload provided in `options.dataItem.data` in the request.
|
|
21
|
-
*
|
|
22
|
-
* To update an item, you need to specify an item ID and a collection ID.
|
|
23
|
-
* If an item is found in the specified collection with the specified ID, that item is updated.
|
|
24
|
-
* If the collection doesn't contain an item with that ID, the request fails.
|
|
25
|
-
*
|
|
26
|
-
* When an item is updated, its `data._updatedDate` field is changed to the current date and time.
|
|
27
|
-
*
|
|
28
|
-
* > **Note:**
|
|
29
|
-
* > After an item is updated, it only contains the fields included in the `options.dataItem.data` payload in the `updateDataItem()` call.
|
|
30
|
-
* > If the existing item has fields with values and those fields aren't included in the updated item, their values are lost.
|
|
31
|
-
*/
|
|
32
|
-
export declare function updateDataItem(payload: object): RequestOptionsFactory<any>;
|
|
33
|
-
/**
|
|
34
|
-
* Inserts or updates an item in a collection.
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* The `saveDataItem()` function inserts or updates the specified item, depending on whether it already exists in the collection.
|
|
38
|
-
*
|
|
39
|
-
* + If you don't provide an ID, a new item is created.
|
|
40
|
-
*
|
|
41
|
-
* + If you provide an ID that does not exist in the collection, a new item is created with that ID.
|
|
42
|
-
*
|
|
43
|
-
* + If an item with the ID you provide already exists in the collection, that item is updated. When an item is updated, its `data._updatedDate` field is changed to the current date and time.
|
|
44
|
-
*
|
|
45
|
-
* > **Note:** When you provide an item with an ID that already exists in the collection, the payload you provide in `options.dataItem.data` replaces the existing item with that ID.
|
|
46
|
-
* > This means that the item's previous fields and values are lost.
|
|
47
|
-
*/
|
|
48
|
-
export declare function saveDataItem(payload: object): RequestOptionsFactory<any>;
|
|
49
|
-
/**
|
|
50
|
-
* Retrieves an item from a collection.
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* > **Note**: When calling `getDataItem()` following an update to your collection, the data retrieved may not contain the most recent changes. If you need the most up-to-date data, set `options.consistentRead` to `true`.
|
|
54
|
-
*/
|
|
55
|
-
export declare function getDataItem(payload: object): RequestOptionsFactory<any>;
|
|
56
|
-
/**
|
|
57
|
-
* Removes an item from a collection.
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* If any items in other collections reference the removed item in reference or multi-reference fields, those fields are cleared.
|
|
61
|
-
*
|
|
62
|
-
* > **Note:**
|
|
63
|
-
* > Once an item has been removed from a collection, it can't be restored.
|
|
64
|
-
*/
|
|
65
|
-
export declare function removeDataItem(payload: object): RequestOptionsFactory<any>;
|
|
66
|
-
/**
|
|
67
|
-
* Removes all items from a collection.
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* If any items in other collections reference the removed items in reference or multi-reference fields, those fields are cleared.
|
|
71
|
-
*
|
|
72
|
-
* > **Note:**
|
|
73
|
-
* > Once items have been removed from a collection, they can't be restored.
|
|
74
|
-
*/
|
|
75
|
-
export declare function truncateDataItems(payload: object): RequestOptionsFactory<any>;
|
|
76
|
-
/**
|
|
77
|
-
* Creates a query to retrieve items from a database collection.
|
|
78
|
-
*
|
|
79
|
-
* The `queryDataItems()` function builds a query to retrieve data items from a collection and returns a `DataItemsQueryBuilder` object.
|
|
80
|
-
*
|
|
81
|
-
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
82
|
-
*
|
|
83
|
-
* You can refine the query by chaining `DataItemsQueryBuilder` functions onto the query. `DataItemsQueryBuilder` functions enable you to sort, filter, and control the results that `queryDataItems()` returns.
|
|
84
|
-
*
|
|
85
|
-
* The `queryDataItems()` function runs with the following `DataItemsQueryBuilder` defaults that you can override:
|
|
86
|
-
*
|
|
87
|
-
* + `skip`: 0
|
|
88
|
-
* + `limit`: 50
|
|
89
|
-
* + `descending`: by `_createdDate`
|
|
90
|
-
*
|
|
91
|
-
* The functions that are chained to `queryDataItems()` are applied in the order they are called. For example, if you sort on an `age` field in ascending order and then on a `name` field in descending order, the results are sorted first by the age of the items and then, if there are multiple results with the same age, the items are sorted by name in descending order, per age value.
|
|
92
|
-
*
|
|
93
|
-
* If the collection that you are querying has references to other collections, by default the data from referenced collections is not retrieved. To get the data from referenced items, specify them in the `options.includeReferencedItems` parameter.
|
|
94
|
-
*
|
|
95
|
-
* > **Note**: When calling `queryDataItems()` following an update to your collection, the data retrieved may not contain the most recent changes. If you need the most up-to-date data, set `options.consistentRead` to `true`.
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
|
-
export declare function queryDataItems(payload: object): RequestOptionsFactory<any>;
|
|
100
|
-
/**
|
|
101
|
-
* Runs an aggregation on a data collection and returns the resulting list of items.
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* An aggregation enables you to perform certain calculations on your collection data, or on groups of items that you define, to retrieve meaningful summaries.
|
|
105
|
-
* You can also add paging, filtering, and sorting preferences to your aggregation to retrieve exactly what you need.
|
|
106
|
-
*/
|
|
107
|
-
export declare function aggregateDataItems(payload: object): RequestOptionsFactory<any>;
|
|
108
|
-
/**
|
|
109
|
-
* Counts the number of items in a data collection that match the provided filtering preferences.
|
|
110
|
-
*
|
|
111
|
-
* > **Note**: When calling `countDataItems()` following an update to your collection, the result returned may not reflect the most recent changes. If you need the most up-to-date data, set `options.consistentRead` to `true`.
|
|
112
|
-
*/
|
|
113
|
-
export declare function countDataItems(payload: object): RequestOptionsFactory<any>;
|
|
114
|
-
/**
|
|
115
|
-
* Retrieves a list of distinct values for a given field in all items that match a query, without duplicates.
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* As with `queryDataItems()`, this endpoint retrieves items based on the filtering, sorting, and paging preferences you provide.
|
|
119
|
-
* However, `queryDistinctValues()` doesn't return all of the full items that match the query.
|
|
120
|
-
* Rather, it returns all unique values of the field you specify in `options.fieldName` for items that match the query.
|
|
121
|
-
* If more than one item has the same value for that field, that value appears only once.
|
|
122
|
-
*
|
|
123
|
-
* For more details on using queries, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
124
|
-
*
|
|
125
|
-
* > **Note**: When calling `queryDistinctValues()` following an update to your collection, the data retrieved may not reflect the most recent changes. If you need the most up-to-date data, set `options.consistentRead` to `true`.
|
|
126
|
-
*/
|
|
127
|
-
export declare function queryDistinctValues(payload: object): RequestOptionsFactory<any>;
|
|
128
|
-
/**
|
|
129
|
-
* Adds multiple items to a collection.
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* When each item is inserted into a collection, its ID is automatically assigned a random value.
|
|
133
|
-
* You can optionally provide your own ID when inserting the item. If you specify an ID that already exists in the collection, the insertion will fail.
|
|
134
|
-
*/
|
|
135
|
-
export declare function bulkInsertDataItems(payload: object): RequestOptionsFactory<any>;
|
|
136
|
-
/**
|
|
137
|
-
* Updates multiple items in a collection.
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* This function replaces each specified data item's existing data with the payload provided in the request.
|
|
141
|
-
*
|
|
142
|
-
* Each item in the request must include an ID. If an item is found in the specified collection with
|
|
143
|
-
* the same ID, that item is updated. If the collection doesn't contain an item with that ID, the update fails.
|
|
144
|
-
*
|
|
145
|
-
* When an item is updated, its `data._updatedDate` field is changed to the current date and time.
|
|
146
|
-
*
|
|
147
|
-
* > **Note:**
|
|
148
|
-
* > After each item is updated, it only contains the fields included in the request. If the existing item has fields with values and those fields
|
|
149
|
-
* > aren't included in the updated item, their values are lost.
|
|
150
|
-
*/
|
|
151
|
-
export declare function bulkUpdateDataItems(payload: object): RequestOptionsFactory<any>;
|
|
152
|
-
/**
|
|
153
|
-
* Inserts or updates multiple items in a collection.
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
* This function inserts or updates each item provided, depending on whether it already exists in the collection. For each item:
|
|
157
|
-
*
|
|
158
|
-
* + If you don't provide an ID, a new item is created.
|
|
159
|
-
*
|
|
160
|
-
* + If you provide an ID that doesn't exist in the collection, a new item is created with that ID.
|
|
161
|
-
*
|
|
162
|
-
* + If an item with the ID you provide already exists in the collection, that item is updated. When an item is updated, its `data._updatedDate` field is changed to the current date and time.
|
|
163
|
-
*
|
|
164
|
-
* > **Note:** When you provide an item with an ID that already exists in the collection, the item you provide completely replaces the existing item with that ID.
|
|
165
|
-
* > This means that all of the item's previous fields and values are lost.
|
|
166
|
-
*/
|
|
167
|
-
export declare function bulkSaveDataItems(payload: object): RequestOptionsFactory<any>;
|
|
168
|
-
/**
|
|
169
|
-
* Removes multiple items from a collection.
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* If any items in other collections reference the removed items in reference or multi-reference fields, those fields are cleared.
|
|
173
|
-
*
|
|
174
|
-
* > **Note:** Once an item has been removed from a collection, it can't be restored.
|
|
175
|
-
*/
|
|
176
|
-
export declare function bulkRemoveDataItems(payload: object): RequestOptionsFactory<any>;
|
|
177
|
-
/**
|
|
178
|
-
* Retrieves the full items referenced in the specified field of an item.
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
* Reference and multi-reference fields refer to items in different collections.
|
|
182
|
-
* Use this function to retrieve the full details of the referenced items themselves.
|
|
183
|
-
*
|
|
184
|
-
* For example, suppose you have a **Movies** collection with an **Actors** field that contains references to items in a **People** collection.
|
|
185
|
-
* Querying the **Movies** collection using `queryReferencedDataItems()` returns the relevant **People** items referenced in the **Actors** field of the specified **Movie** item.
|
|
186
|
-
* This gives you information from the **People** collection about each of the actors in the specified movie.
|
|
187
|
-
*
|
|
188
|
-
* > **Note**: When calling `queryReferencedDataItems()` following an update to your collection, the data retrieved may not contain the most recent changes. If you need the most up-to-date data, set `options.consistentRead` to `true`.
|
|
189
|
-
*/
|
|
190
|
-
export declare function queryReferencedDataItems(payload: object): RequestOptionsFactory<any>;
|
|
191
|
-
/**
|
|
192
|
-
* Checks whether a field in a referring item contains a reference to a specified item.
|
|
193
|
-
*
|
|
194
|
-
* > **Note**: When calling `isReferencedDataItem()` following an update to your collection, the result returned may not reflect the most recent changes. If you need the most up-to-date data, set `options.consistentRead` to `true`.
|
|
195
|
-
*/
|
|
196
|
-
export declare function isReferencedDataItem(payload: object): RequestOptionsFactory<any>;
|
|
197
|
-
/**
|
|
198
|
-
* Inserts a reference in the specified field in an item in a collection.
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
* A reference in `options.dataItemReference` specifies a referring item's ID, the field in which to insert the reference, and the ID of the referenced item.
|
|
202
|
-
*/
|
|
203
|
-
export declare function insertDataItemReference(payload: object): RequestOptionsFactory<any>;
|
|
204
|
-
/** Removes the specified reference from the specified field. */
|
|
205
|
-
export declare function removeDataItemReference(payload: object): RequestOptionsFactory<any>;
|
|
206
|
-
/**
|
|
207
|
-
* Inserts one or more references in the specified fields of items in a collection.
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
* This endpoint adds one or more references to a collection.
|
|
211
|
-
* Each new reference in `options.dataItemReferences` specifies a referring item's ID, the field in which to insert the reference, and the ID of the referenced item.
|
|
212
|
-
*/
|
|
213
|
-
export declare function bulkInsertDataItemReferences(payload: object): RequestOptionsFactory<any>;
|
|
214
|
-
/** Removes one or more references. */
|
|
215
|
-
export declare function bulkRemoveDataItemReferences(payload: object): RequestOptionsFactory<any>;
|
|
216
|
-
/**
|
|
217
|
-
* Replaces references in a specified field of a specified data item.
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
* This function replaces the existing reference or references contained in the field specified in `options.referringItemFieldName` within the data item specified in `options.referringItemId`.
|
|
221
|
-
* The function removes existing references and in their place it adds references to the items specified in `options.newReferencedItemIds`.
|
|
222
|
-
*
|
|
223
|
-
* > **Note:** If you pass an empty array in `options.newReferencedItemIds`, all existing references are removed.
|
|
224
|
-
*/
|
|
225
|
-
export declare function replaceDataItemReferences(payload: object): RequestOptionsFactory<any>;
|