@osdk/client 2.8.0 → 2.8.1-main-20260406220320
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/CHANGELOG.md +12 -0
- package/build/browser/Client.js +1 -1
- package/build/browser/Client.js.map +1 -1
- package/build/browser/createClient.js.map +1 -1
- package/build/browser/createMinimalClient.js +1 -1
- package/build/browser/createMinimalClient.js.map +1 -1
- package/build/browser/public/unstable-do-not-use.js +0 -1
- package/build/browser/public/unstable-do-not-use.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/browser/util/addUserAgentAndRequestContextHeaders.js +2 -1
- package/build/browser/util/addUserAgentAndRequestContextHeaders.js.map +1 -1
- package/build/cjs/{chunk-KVUKOKWX.cjs → chunk-BMA3FGP2.cjs} +4 -3
- package/build/cjs/chunk-BMA3FGP2.cjs.map +1 -0
- package/build/cjs/{chunk-HIX3UAPT.cjs → chunk-VE53MA3W.cjs} +40 -40
- package/build/cjs/chunk-VE53MA3W.cjs.map +1 -0
- package/build/cjs/{createObjectSet-BECh9BaB.d.cts → createObjectSet-Dw0lUkKl.d.cts} +1 -0
- package/build/cjs/index.cjs +10 -10
- package/build/cjs/index.d.cts +1 -1
- package/build/cjs/public/internal.cjs +8 -8
- package/build/cjs/public/unstable-do-not-use.cjs +217 -258
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.d.cts +7 -18
- package/build/esm/Client.js +1 -1
- package/build/esm/Client.js.map +1 -1
- package/build/esm/createClient.js.map +1 -1
- package/build/esm/createMinimalClient.js +1 -1
- package/build/esm/createMinimalClient.js.map +1 -1
- package/build/esm/public/unstable-do-not-use.js +0 -1
- package/build/esm/public/unstable-do-not-use.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/esm/util/UserAgent.js.map +1 -1
- package/build/esm/util/addUserAgentAndRequestContextHeaders.js +2 -1
- package/build/esm/util/addUserAgentAndRequestContextHeaders.js.map +1 -1
- package/build/types/Client.d.ts +1 -1
- package/build/types/createClient.d.ts +1 -0
- package/build/types/createClient.d.ts.map +1 -1
- package/build/types/public/unstable-do-not-use.d.ts +0 -1
- package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
- package/build/types/util/addUserAgentAndRequestContextHeaders.d.ts.map +1 -1
- package/package.json +7 -7
- package/build/browser/observable/computeObjectSetCacheKey.js +0 -67
- package/build/browser/observable/computeObjectSetCacheKey.js.map +0 -1
- package/build/cjs/chunk-HIX3UAPT.cjs.map +0 -1
- package/build/cjs/chunk-KVUKOKWX.cjs.map +0 -1
- package/build/esm/observable/computeObjectSetCacheKey.js +0 -67
- package/build/esm/observable/computeObjectSetCacheKey.js.map +0 -1
- package/build/types/observable/computeObjectSetCacheKey.d.ts +0 -16
- package/build/types/observable/computeObjectSetCacheKey.d.ts.map +0 -1
|
@@ -1,185 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkVE53MA3W_cjs = require('../chunk-VE53MA3W.cjs');
|
|
4
|
+
var chunkBMA3FGP2_cjs = require('../chunk-BMA3FGP2.cjs');
|
|
5
5
|
require('../chunk-LCI6OHTV.cjs');
|
|
6
6
|
require('../chunk-D26YLHTV.cjs');
|
|
7
7
|
require('../chunk-YJG67XL4.cjs');
|
|
8
8
|
require('../chunk-HEMBBCBS.cjs');
|
|
9
|
-
var trie = require('@wry/trie');
|
|
10
|
-
var deepEqual = require('fast-deep-equal');
|
|
11
|
-
var invariant5 = require('tiny-invariant');
|
|
12
9
|
var shared_net_fetch = require('@osdk/shared.net.fetch');
|
|
13
10
|
var rxjs = require('rxjs');
|
|
11
|
+
var invariant4 = require('tiny-invariant');
|
|
12
|
+
var trie = require('@wry/trie');
|
|
13
|
+
var deepEqual = require('fast-deep-equal');
|
|
14
14
|
var shared_net_errors = require('@osdk/shared.net.errors');
|
|
15
15
|
var unstable = require('@osdk/api/unstable');
|
|
16
16
|
|
|
17
17
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
18
|
|
|
19
|
+
var invariant4__default = /*#__PURE__*/_interopDefault(invariant4);
|
|
19
20
|
var deepEqual__default = /*#__PURE__*/_interopDefault(deepEqual);
|
|
20
|
-
var invariant5__default = /*#__PURE__*/_interopDefault(invariant5);
|
|
21
|
-
|
|
22
|
-
var defaultMakeData = () => /* @__PURE__ */ Object.create(null);
|
|
23
|
-
var WeakRefTrie = class {
|
|
24
|
-
#finalizer = new FinalizationRegistry((orderBy) => {
|
|
25
|
-
this.#trie.removeArray(Object.entries(orderBy).flat());
|
|
26
|
-
});
|
|
27
|
-
#trie;
|
|
28
|
-
constructor(makeData = defaultMakeData) {
|
|
29
|
-
this.#trie = new trie.Trie(false, (array) => {
|
|
30
|
-
const data = makeData(array);
|
|
31
|
-
this.#finalizer.register(data, array);
|
|
32
|
-
return new WeakRef(data);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
lookupArray(array) {
|
|
36
|
-
const maybe = this.#trie.lookupArray(array);
|
|
37
|
-
let ret = maybe.deref();
|
|
38
|
-
if (maybe && !ret) {
|
|
39
|
-
this.#trie.removeArray(array);
|
|
40
|
-
ret = this.#trie.lookupArray(array).deref();
|
|
41
|
-
}
|
|
42
|
-
return ret;
|
|
43
|
-
}
|
|
44
|
-
peekArray(array) {
|
|
45
|
-
const maybe = this.#trie.peekArray(array);
|
|
46
|
-
const ret = maybe?.deref();
|
|
47
|
-
if (maybe && !ret) {
|
|
48
|
-
this.#trie.removeArray(array);
|
|
49
|
-
}
|
|
50
|
-
return ret;
|
|
51
|
-
}
|
|
52
|
-
removeArray(array) {
|
|
53
|
-
return this.#trie.removeArray(array)?.deref();
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// src/observable/internal/OrderByCanonicalizer.ts
|
|
58
|
-
var OrderByCanonicalizer = class {
|
|
59
|
-
#trie = new WeakRefTrie((array) => {
|
|
60
|
-
const pairs = array.reduce((result, _, index, array2) => {
|
|
61
|
-
if (index % 2 === 0 && array2[index] != null) {
|
|
62
|
-
result.push(array2.slice(index, index + 2));
|
|
63
|
-
}
|
|
64
|
-
return result;
|
|
65
|
-
}, []);
|
|
66
|
-
const data = Object.fromEntries(pairs);
|
|
67
|
-
return data;
|
|
68
|
-
});
|
|
69
|
-
canonicalize(orderBy) {
|
|
70
|
-
if (orderBy == null) {
|
|
71
|
-
return void 0;
|
|
72
|
-
}
|
|
73
|
-
const strings = Object.entries(orderBy).flat();
|
|
74
|
-
return this.#trie.lookupArray(strings);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var WhereClauseCanonicalizer = class {
|
|
78
|
-
/**
|
|
79
|
-
* This is a shortcut cache for any WhereClause's that we have
|
|
80
|
-
* seen and already canonicalized. The theory behind this
|
|
81
|
-
* is that well behaving React applications will either `useMemo`
|
|
82
|
-
* their where clause, or store it in state or pass it through as
|
|
83
|
-
* props such that we are likely to get the same WhereClause
|
|
84
|
-
* object multiple times and we can skip unnecessary work.
|
|
85
|
-
*/
|
|
86
|
-
#cache = /* @__PURE__ */ new WeakMap();
|
|
87
|
-
/**
|
|
88
|
-
* This is a trie that stores the sorted collapsed keys of a where clause to
|
|
89
|
-
* the cache key for canonicalized options. In theory this keeps the number of
|
|
90
|
-
* deepEqual comparisons down to a minimum but its probably overkill.
|
|
91
|
-
*/
|
|
92
|
-
#trie = new trie.Trie();
|
|
93
|
-
/**
|
|
94
|
-
* This is a cache from the cacheKey provided by `this.#trie` to the potential
|
|
95
|
-
* canonicalized options.
|
|
96
|
-
*/
|
|
97
|
-
#existingOptions = /* @__PURE__ */ new Map();
|
|
98
|
-
canonicalize(where) {
|
|
99
|
-
if (where == null) {
|
|
100
|
-
return void 0;
|
|
101
|
-
}
|
|
102
|
-
if (this.#cache.has(where)) {
|
|
103
|
-
return this.#cache.get(where);
|
|
104
|
-
}
|
|
105
|
-
const keysSet = /* @__PURE__ */ new Set();
|
|
106
|
-
const calculatedCanon = this.#toCanon(where, keysSet);
|
|
107
|
-
const cacheKey = this.#trie.lookupArray(Array.from(keysSet).sort());
|
|
108
|
-
const lookupEntry = this.#existingOptions.get(cacheKey) ?? {
|
|
109
|
-
options: []
|
|
110
|
-
};
|
|
111
|
-
this.#existingOptions.set(cacheKey, lookupEntry);
|
|
112
|
-
const canon = lookupEntry.options.find((ref) => deepEqual__default.default(ref.deref(), calculatedCanon))?.deref() ?? calculatedCanon;
|
|
113
|
-
if (canon === calculatedCanon) {
|
|
114
|
-
lookupEntry.options.push(new WeakRef(canon));
|
|
115
|
-
}
|
|
116
|
-
this.#cache.set(where, canon);
|
|
117
|
-
return canon;
|
|
118
|
-
}
|
|
119
|
-
#toCanon = (where, set = /* @__PURE__ */ new Set()) => {
|
|
120
|
-
if ("$and" in where) {
|
|
121
|
-
if (process.env.NODE_ENV !== "production") {
|
|
122
|
-
!Array.isArray(where.$and) ? process.env.NODE_ENV !== "production" ? invariant5__default.default(false, "expected $and to be an array") : invariant5__default.default(false) : void 0;
|
|
123
|
-
!(Object.keys(where).length === 1) ? process.env.NODE_ENV !== "production" ? invariant5__default.default(false, "expected only $and to be present") : invariant5__default.default(false) : void 0;
|
|
124
|
-
}
|
|
125
|
-
if (where.$and.length === 0) {
|
|
126
|
-
return {};
|
|
127
|
-
}
|
|
128
|
-
if (where.$and.length === 1) {
|
|
129
|
-
return this.#toCanon(where.$and[0], set);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return Object.fromEntries(Object.entries(where).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => {
|
|
133
|
-
set.add(k);
|
|
134
|
-
if (k === "$and" || k === "$or") {
|
|
135
|
-
return [k, v.map((x) => this.#toCanon(x, set))];
|
|
136
|
-
}
|
|
137
|
-
if (k !== "$not" && typeof v === "object" && v != null && "$eq" in v) {
|
|
138
|
-
return [k, v.$eq];
|
|
139
|
-
}
|
|
140
|
-
return [k, v];
|
|
141
|
-
}));
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
// src/observable/computeObjectSetCacheKey.ts
|
|
146
|
-
var whereCanonicalizer = new WhereClauseCanonicalizer();
|
|
147
|
-
var orderByCanonicalizer = new OrderByCanonicalizer();
|
|
148
|
-
function computeObjectSetCacheKey(objectSet, options) {
|
|
149
|
-
const keyParts = ["objectSet", chunkKVUKOKWX_cjs.getWireObjectSet(objectSet)];
|
|
150
|
-
if (!options) {
|
|
151
|
-
return JSON.stringify(keyParts);
|
|
152
|
-
}
|
|
153
|
-
if (options.where) {
|
|
154
|
-
keyParts.push("where", whereCanonicalizer.canonicalize(options.where));
|
|
155
|
-
}
|
|
156
|
-
if (options.withProperties) {
|
|
157
|
-
const propKeys = Object.keys(options.withProperties).sort();
|
|
158
|
-
keyParts.push("props", propKeys);
|
|
159
|
-
}
|
|
160
|
-
if (options.union && options.union.length > 0) {
|
|
161
|
-
keyParts.push("union", options.union.map((os) => chunkKVUKOKWX_cjs.getWireObjectSet(os)));
|
|
162
|
-
}
|
|
163
|
-
if (options.intersect && options.intersect.length > 0) {
|
|
164
|
-
keyParts.push("intersect", options.intersect.map((os) => chunkKVUKOKWX_cjs.getWireObjectSet(os)));
|
|
165
|
-
}
|
|
166
|
-
if (options.subtract && options.subtract.length > 0) {
|
|
167
|
-
keyParts.push("subtract", options.subtract.map((os) => chunkKVUKOKWX_cjs.getWireObjectSet(os)));
|
|
168
|
-
}
|
|
169
|
-
if (options.pivotTo) {
|
|
170
|
-
keyParts.push("pivotTo", options.pivotTo);
|
|
171
|
-
}
|
|
172
|
-
if (options.orderBy) {
|
|
173
|
-
keyParts.push("orderBy", orderByCanonicalizer.canonicalize(options.orderBy));
|
|
174
|
-
}
|
|
175
|
-
if (options.select && options.select.length > 0) {
|
|
176
|
-
keyParts.push("select", [...options.select].sort());
|
|
177
|
-
}
|
|
178
|
-
if (options.pageSize) {
|
|
179
|
-
keyParts.push("pageSize", options.pageSize);
|
|
180
|
-
}
|
|
181
|
-
return JSON.stringify(keyParts);
|
|
182
|
-
}
|
|
183
21
|
|
|
184
22
|
// src/observable/internal/UnsubscribableWrapper.ts
|
|
185
23
|
var UnsubscribableWrapper = class {
|
|
@@ -231,8 +69,8 @@ var ObservableClientImpl = class {
|
|
|
231
69
|
const instances = [];
|
|
232
70
|
const objectSetWires = [];
|
|
233
71
|
for (const item of options.dependsOnObjects ?? []) {
|
|
234
|
-
if (
|
|
235
|
-
objectSetWires.push(
|
|
72
|
+
if (chunkBMA3FGP2_cjs.isObjectSet(item)) {
|
|
73
|
+
objectSetWires.push(chunkBMA3FGP2_cjs.getWireObjectSet(item));
|
|
236
74
|
} else {
|
|
237
75
|
instances.push({
|
|
238
76
|
$apiName: item.$objectType ?? item.$apiName,
|
|
@@ -240,7 +78,7 @@ var ObservableClientImpl = class {
|
|
|
240
78
|
});
|
|
241
79
|
}
|
|
242
80
|
}
|
|
243
|
-
const objectSetTypesPromise = objectSetWires.length > 0 ? Promise.all(objectSetWires.map((wire) =>
|
|
81
|
+
const objectSetTypesPromise = objectSetWires.length > 0 ? Promise.all(objectSetWires.map((wire) => chunkBMA3FGP2_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunkBMA3FGP2_cjs.additionalContext], wire))).then((types) => types.filter((t) => t != null).map((t) => t.apiName)) : void 0;
|
|
244
82
|
return this.__experimentalStore.functions.observe({
|
|
245
83
|
...options,
|
|
246
84
|
queryDef,
|
|
@@ -303,7 +141,7 @@ var ObservableClientImpl = class {
|
|
|
303
141
|
if (!arr || arr.length === 0) {
|
|
304
142
|
return arr;
|
|
305
143
|
}
|
|
306
|
-
const wireStrings = arr.map((os) => JSON.stringify(
|
|
144
|
+
const wireStrings = arr.map((os) => JSON.stringify(chunkBMA3FGP2_cjs.getWireObjectSet(os)));
|
|
307
145
|
const canonKey = canonicalize(wireStrings);
|
|
308
146
|
let cached = cache.get(canonKey);
|
|
309
147
|
if (!cached) {
|
|
@@ -498,7 +336,7 @@ var OptimisticJob = class {
|
|
|
498
336
|
return this;
|
|
499
337
|
},
|
|
500
338
|
createObject(type, pk, properties) {
|
|
501
|
-
const create = store.client[
|
|
339
|
+
const create = store.client[chunkBMA3FGP2_cjs.additionalContext].objectFactory2(store.client[chunkBMA3FGP2_cjs.additionalContext], [{
|
|
502
340
|
$primaryKey: pk,
|
|
503
341
|
$apiName: type.apiName,
|
|
504
342
|
$objectType: type.apiName,
|
|
@@ -835,7 +673,7 @@ async function calcObjectSet(os, ctx) {
|
|
|
835
673
|
return await bumpInterface(os.interfaceType);
|
|
836
674
|
case "interfaceLinkSearchAround": {
|
|
837
675
|
const srcDef = await calcObjectSet(os.objectSet, ctx);
|
|
838
|
-
!(srcDef.type === "interface") ? process.env.NODE_ENV !== "production" ?
|
|
676
|
+
!(srcDef.type === "interface") ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false) : invariant4__default.default(false) : void 0;
|
|
839
677
|
for (const [k, v] of Object.entries(srcDef.links)) {
|
|
840
678
|
if (k === os.interfaceLink) {
|
|
841
679
|
if (v.targetType === "object") {
|
|
@@ -848,7 +686,7 @@ async function calcObjectSet(os, ctx) {
|
|
|
848
686
|
}
|
|
849
687
|
case "searchAround": {
|
|
850
688
|
const contextDef = await calcObjectSet(os.objectSet, ctx);
|
|
851
|
-
!(contextDef.type === "object") ? process.env.NODE_ENV !== "production" ?
|
|
689
|
+
!(contextDef.type === "object") ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false) : invariant4__default.default(false) : void 0;
|
|
852
690
|
for (const [k, v] of Object.entries(contextDef.links)) {
|
|
853
691
|
if (k === os.link) {
|
|
854
692
|
return await bumpObject(v.targetType);
|
|
@@ -902,7 +740,7 @@ async function calcObjectSet(os, ctx) {
|
|
|
902
740
|
});
|
|
903
741
|
// used by rdps
|
|
904
742
|
case "methodInput":
|
|
905
|
-
!ctx.methodInput ? process.env.NODE_ENV !== "production" ?
|
|
743
|
+
!ctx.methodInput ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "methodInput must be provided") : invariant4__default.default(false) : void 0;
|
|
906
744
|
return await calcObjectSet(ctx.methodInput, {
|
|
907
745
|
...ctx,
|
|
908
746
|
counts: {}
|
|
@@ -965,7 +803,7 @@ var Query = class {
|
|
|
965
803
|
this.store = store;
|
|
966
804
|
this.cacheKeys = store.cacheKeys;
|
|
967
805
|
this.#subject = observable;
|
|
968
|
-
this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[
|
|
806
|
+
this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkBMA3FGP2_cjs.additionalContext].logger : store.client[chunkBMA3FGP2_cjs.additionalContext].logger?.child({}, {
|
|
969
807
|
msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
|
|
970
808
|
}));
|
|
971
809
|
}
|
|
@@ -1127,7 +965,7 @@ var AggregationQuery = class extends Query {
|
|
|
1127
965
|
#invalidationTypes;
|
|
1128
966
|
#invalidationTypesPromise;
|
|
1129
967
|
constructor(store, subject, cacheKey, opts) {
|
|
1130
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
968
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkBMA3FGP2_cjs.additionalContext].logger?.child({}, {
|
|
1131
969
|
msgPrefix: `AggregationQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
1132
970
|
}) : void 0);
|
|
1133
971
|
this.apiName = cacheKey.otherKeys[API_NAME_IDX];
|
|
@@ -1145,7 +983,7 @@ var AggregationQuery = class extends Query {
|
|
|
1145
983
|
try {
|
|
1146
984
|
const {
|
|
1147
985
|
invalidationSet
|
|
1148
|
-
} = await getObjectTypesThatInvalidate(this.store.client[
|
|
986
|
+
} = await getObjectTypesThatInvalidate(this.store.client[chunkBMA3FGP2_cjs.additionalContext], wireObjectSet);
|
|
1149
987
|
return /* @__PURE__ */ new Set([this.apiName, ...invalidationSet]);
|
|
1150
988
|
} catch (error) {
|
|
1151
989
|
this.store.logger?.error("Failed to compute invalidation types for aggregation, falling back to base type only", error);
|
|
@@ -1216,7 +1054,7 @@ var ObjectAggregationQuery = class extends AggregationQuery {
|
|
|
1216
1054
|
};
|
|
1217
1055
|
let objectSet;
|
|
1218
1056
|
if (this.parsedWireObjectSet) {
|
|
1219
|
-
objectSet =
|
|
1057
|
+
objectSet = chunkBMA3FGP2_cjs.createObjectSet(objectTypeDef, this.store.client[chunkBMA3FGP2_cjs.additionalContext], this.parsedWireObjectSet);
|
|
1220
1058
|
} else {
|
|
1221
1059
|
objectSet = this.store.client(objectTypeDef);
|
|
1222
1060
|
}
|
|
@@ -1240,9 +1078,9 @@ var ObjectAggregationQuery = class extends AggregationQuery {
|
|
|
1240
1078
|
|
|
1241
1079
|
// src/observable/internal/aggregation/AggregationsHelper.ts
|
|
1242
1080
|
var AggregationsHelper = class extends AbstractHelper {
|
|
1243
|
-
constructor(store, cacheKeys,
|
|
1081
|
+
constructor(store, cacheKeys, whereCanonicalizer, rdpCanonicalizer, intersectCanonicalizer) {
|
|
1244
1082
|
super(store, cacheKeys);
|
|
1245
|
-
this.whereCanonicalizer =
|
|
1083
|
+
this.whereCanonicalizer = whereCanonicalizer;
|
|
1246
1084
|
this.rdpCanonicalizer = rdpCanonicalizer;
|
|
1247
1085
|
this.intersectCanonicalizer = intersectCanonicalizer;
|
|
1248
1086
|
}
|
|
@@ -1258,7 +1096,7 @@ var AggregationsHelper = class extends AbstractHelper {
|
|
|
1258
1096
|
return this.getOrCreateQuery(options, void 0);
|
|
1259
1097
|
}
|
|
1260
1098
|
getQueryWithObjectSet(options) {
|
|
1261
|
-
const serializedObjectSet = JSON.stringify(
|
|
1099
|
+
const serializedObjectSet = JSON.stringify(chunkBMA3FGP2_cjs.getWireObjectSet(options.objectSet));
|
|
1262
1100
|
return this.getOrCreateQuery(options, serializedObjectSet);
|
|
1263
1101
|
}
|
|
1264
1102
|
getOrCreateQuery(options, serializedObjectSet) {
|
|
@@ -1581,7 +1419,7 @@ var FunctionParamsCanonicalizer = class {
|
|
|
1581
1419
|
path.push("$:map_end");
|
|
1582
1420
|
return arr;
|
|
1583
1421
|
}
|
|
1584
|
-
if (
|
|
1422
|
+
if (chunkVE53MA3W_cjs.isObjectSpecifiersObject(value)) {
|
|
1585
1423
|
const objectType = value.$objectType ?? value.$apiName;
|
|
1586
1424
|
path.push("$:osdk", objectType, value.$primaryKey);
|
|
1587
1425
|
return {
|
|
@@ -1589,8 +1427,8 @@ var FunctionParamsCanonicalizer = class {
|
|
|
1589
1427
|
$primaryKey: value.$primaryKey
|
|
1590
1428
|
};
|
|
1591
1429
|
}
|
|
1592
|
-
if (
|
|
1593
|
-
const wire =
|
|
1430
|
+
if (chunkBMA3FGP2_cjs.isObjectSet(value)) {
|
|
1431
|
+
const wire = chunkBMA3FGP2_cjs.getWireObjectSet(value);
|
|
1594
1432
|
path.push("$:objectset", wire);
|
|
1595
1433
|
return wire;
|
|
1596
1434
|
}
|
|
@@ -1650,7 +1488,7 @@ var FunctionQuery = class extends Query {
|
|
|
1650
1488
|
#dependsOnObjects;
|
|
1651
1489
|
#queryDef;
|
|
1652
1490
|
constructor(store, subject, queryDef, params, cacheKey, opts, objectSetTypesPromise) {
|
|
1653
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
1491
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkBMA3FGP2_cjs.additionalContext].logger?.child({}, {
|
|
1654
1492
|
msgPrefix: `FunctionQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
1655
1493
|
}) : void 0);
|
|
1656
1494
|
this.#apiName = queryDef.apiName;
|
|
@@ -1707,7 +1545,7 @@ var FunctionQuery = class extends Query {
|
|
|
1707
1545
|
}).debug("calling _fetchAndStore");
|
|
1708
1546
|
}
|
|
1709
1547
|
try {
|
|
1710
|
-
const result = await
|
|
1548
|
+
const result = await chunkVE53MA3W_cjs.applyQuery(this.store.client[chunkBMA3FGP2_cjs.additionalContext], this.#queryDef, this.#params);
|
|
1711
1549
|
const executedAt = Date.now();
|
|
1712
1550
|
this.store.batch({}, (batch) => {
|
|
1713
1551
|
this.writeToStore({
|
|
@@ -1925,9 +1763,9 @@ var GenericCanonicalizer = class extends CachingCanonicalizer {
|
|
|
1925
1763
|
// src/observable/internal/IntersectCanonicalizer.ts
|
|
1926
1764
|
var IntersectCanonicalizer = class extends CachingCanonicalizer {
|
|
1927
1765
|
structuralCache = /* @__PURE__ */ new Map();
|
|
1928
|
-
constructor(
|
|
1766
|
+
constructor(whereCanonicalizer) {
|
|
1929
1767
|
super();
|
|
1930
|
-
this.whereCanonicalizer =
|
|
1768
|
+
this.whereCanonicalizer = whereCanonicalizer;
|
|
1931
1769
|
}
|
|
1932
1770
|
lookupOrCreate(intersectWith) {
|
|
1933
1771
|
const canonicalClauses = intersectWith.map((item) => this.whereCanonicalizer.canonicalize(item.where ?? {}));
|
|
@@ -2161,7 +1999,7 @@ var Layers = class {
|
|
|
2161
1999
|
return this.#truthLayer;
|
|
2162
2000
|
}
|
|
2163
2001
|
remove(layerId) {
|
|
2164
|
-
!(layerId != null) ? process.env.NODE_ENV !== "production" ?
|
|
2002
|
+
!(layerId != null) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "undefined is the reserved layerId for the truth layer") : invariant4__default.default(false) : void 0;
|
|
2165
2003
|
let currentLayer = this.#topLayer;
|
|
2166
2004
|
const cacheKeys = /* @__PURE__ */ new Map();
|
|
2167
2005
|
while (currentLayer != null && currentLayer.parentLayer != null) {
|
|
@@ -2189,7 +2027,7 @@ var Layers = class {
|
|
|
2189
2027
|
optimisticId,
|
|
2190
2028
|
changes
|
|
2191
2029
|
}, batchFn) {
|
|
2192
|
-
!(optimisticId === void 0 || !!optimisticId) ? process.env.NODE_ENV !== "production" ?
|
|
2030
|
+
!(optimisticId === void 0 || !!optimisticId) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "optimistic must be undefined or not falsy") : invariant4__default.default(false) : void 0;
|
|
2193
2031
|
const batchContext = this.#createBatchContext({
|
|
2194
2032
|
optimisticId,
|
|
2195
2033
|
changes
|
|
@@ -2921,7 +2759,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
|
|
|
2921
2759
|
batch.changes.modified.add(this.cacheKey);
|
|
2922
2760
|
}
|
|
2923
2761
|
constructor(store, subject, cacheKey, opts) {
|
|
2924
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
2762
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkBMA3FGP2_cjs.additionalContext].logger?.child({}, {
|
|
2925
2763
|
msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
2926
2764
|
}) : void 0);
|
|
2927
2765
|
[this.#sourceApiName, this.#sourceTypeKind, this.#sourceUnderlyingObjectType, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
|
|
@@ -2935,7 +2773,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
|
|
|
2935
2773
|
*/
|
|
2936
2774
|
async fetchPageData(signal) {
|
|
2937
2775
|
const client = this.store.client;
|
|
2938
|
-
const ontologyProvider = client[
|
|
2776
|
+
const ontologyProvider = client[chunkBMA3FGP2_cjs.additionalContext].ontologyProvider;
|
|
2939
2777
|
const isInterface = this.#sourceTypeKind === "interface";
|
|
2940
2778
|
if (this.#orderBy && Object.keys(this.#orderBy).length > 0) {
|
|
2941
2779
|
let targetTypeApiName;
|
|
@@ -3046,7 +2884,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
|
|
|
3046
2884
|
}
|
|
3047
2885
|
return (async () => {
|
|
3048
2886
|
try {
|
|
3049
|
-
const ontologyProvider = this.store.client[
|
|
2887
|
+
const ontologyProvider = this.store.client[chunkBMA3FGP2_cjs.additionalContext].ontologyProvider;
|
|
3050
2888
|
if (this.#sourceTypeKind === "interface") {
|
|
3051
2889
|
const objectMetadata = await ontologyProvider.getObjectDefinition(objectType);
|
|
3052
2890
|
if (this.#sourceApiName in objectMetadata.interfaceMap) {
|
|
@@ -3092,10 +2930,10 @@ var SpecificLinkQuery = class extends BaseListQuery {
|
|
|
3092
2930
|
|
|
3093
2931
|
// src/observable/internal/links/LinksHelper.ts
|
|
3094
2932
|
var LinksHelper = class extends AbstractHelper {
|
|
3095
|
-
constructor(store, cacheKeys,
|
|
2933
|
+
constructor(store, cacheKeys, whereCanonicalizer, orderByCanonicalizer, selectCanonicalizer) {
|
|
3096
2934
|
super(store, cacheKeys);
|
|
3097
|
-
this.whereCanonicalizer =
|
|
3098
|
-
this.orderByCanonicalizer =
|
|
2935
|
+
this.whereCanonicalizer = whereCanonicalizer;
|
|
2936
|
+
this.orderByCanonicalizer = orderByCanonicalizer;
|
|
3099
2937
|
this.selectCanonicalizer = selectCanonicalizer;
|
|
3100
2938
|
}
|
|
3101
2939
|
getQuery(options) {
|
|
@@ -3142,7 +2980,7 @@ function evaluateFilter(f, realValue, expected, strict) {
|
|
|
3142
2980
|
return !strict;
|
|
3143
2981
|
default:
|
|
3144
2982
|
if (process.env.NODE_ENV !== "production") {
|
|
3145
|
-
process.env.NODE_ENV !== "production" ?
|
|
2983
|
+
process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Unknown where filter ${f}`) : invariant4__default.default(false) ;
|
|
3146
2984
|
}
|
|
3147
2985
|
return !strict;
|
|
3148
2986
|
}
|
|
@@ -3152,8 +2990,8 @@ function evaluateFilter(f, realValue, expected, strict) {
|
|
|
3152
2990
|
function is$and(whereClause) {
|
|
3153
2991
|
if (process.env.NODE_ENV !== "production") {
|
|
3154
2992
|
if ("$and" in whereClause) {
|
|
3155
|
-
!Array.isArray(whereClause.$and) ? process.env.NODE_ENV !== "production" ?
|
|
3156
|
-
!(Object.keys(whereClause).length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
2993
|
+
!Array.isArray(whereClause.$and) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "expected $and to be an array") : invariant4__default.default(false) : void 0;
|
|
2994
|
+
!(Object.keys(whereClause).length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "expected only $and to be present") : invariant4__default.default(false) : void 0;
|
|
3157
2995
|
}
|
|
3158
2996
|
}
|
|
3159
2997
|
return "$and" in whereClause;
|
|
@@ -3161,8 +2999,8 @@ function is$and(whereClause) {
|
|
|
3161
2999
|
function is$or(whereClause) {
|
|
3162
3000
|
if (process.env.NODE_ENV !== "production") {
|
|
3163
3001
|
if ("$or" in whereClause) {
|
|
3164
|
-
!Array.isArray(whereClause.$or) ? process.env.NODE_ENV !== "production" ?
|
|
3165
|
-
!(Object.keys(whereClause).length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
3002
|
+
!Array.isArray(whereClause.$or) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "expected $or to be an array") : invariant4__default.default(false) : void 0;
|
|
3003
|
+
!(Object.keys(whereClause).length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "expected only $or to be present") : invariant4__default.default(false) : void 0;
|
|
3166
3004
|
}
|
|
3167
3005
|
}
|
|
3168
3006
|
return "$or" in whereClause;
|
|
@@ -3170,7 +3008,7 @@ function is$or(whereClause) {
|
|
|
3170
3008
|
function is$not(whereClause) {
|
|
3171
3009
|
if (process.env.NODE_ENV !== "production") {
|
|
3172
3010
|
if ("$not" in whereClause) {
|
|
3173
|
-
!(Object.keys(whereClause).length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
3011
|
+
!(Object.keys(whereClause).length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "expected only $not to be present") : invariant4__default.default(false) : void 0;
|
|
3174
3012
|
}
|
|
3175
3013
|
}
|
|
3176
3014
|
return "$not" in whereClause;
|
|
@@ -3221,7 +3059,7 @@ var ListQuery = class extends BaseListQuery {
|
|
|
3221
3059
|
batch.changes.registerList(this.cacheKey);
|
|
3222
3060
|
}
|
|
3223
3061
|
constructor(store, subject, apiName, cacheKey, opts) {
|
|
3224
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
3062
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkBMA3FGP2_cjs.additionalContext].logger?.child({}, {
|
|
3225
3063
|
msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
3226
3064
|
}) : void 0);
|
|
3227
3065
|
this.apiName = apiName;
|
|
@@ -3263,10 +3101,10 @@ var ListQuery = class extends BaseListQuery {
|
|
|
3263
3101
|
async fetchPageData(signal) {
|
|
3264
3102
|
const needsResultType = Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy) || this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied;
|
|
3265
3103
|
if (needsResultType) {
|
|
3266
|
-
const wireObjectSet =
|
|
3104
|
+
const wireObjectSet = chunkBMA3FGP2_cjs.getWireObjectSet(this.#objectSet);
|
|
3267
3105
|
const {
|
|
3268
3106
|
resultType
|
|
3269
|
-
} = await getObjectTypesThatInvalidate(this.store.client[
|
|
3107
|
+
} = await getObjectTypesThatInvalidate(this.store.client[chunkBMA3FGP2_cjs.additionalContext], wireObjectSet);
|
|
3270
3108
|
if (Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
|
|
3271
3109
|
this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#orderBy);
|
|
3272
3110
|
}
|
|
@@ -3476,7 +3314,7 @@ var ListQuery = class extends BaseListQuery {
|
|
|
3476
3314
|
}) : this.logger;
|
|
3477
3315
|
this.store.batch({}, (batch) => {
|
|
3478
3316
|
const existing = batch.read(this.cacheKey);
|
|
3479
|
-
!existing ? process.env.NODE_ENV !== "production" ?
|
|
3317
|
+
!existing ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "the truth value for our list should exist as we already subscribed") : invariant4__default.default(false) : void 0;
|
|
3480
3318
|
if (existing.status === "loaded") {
|
|
3481
3319
|
const objectCacheKey = this.getObjectCacheKey(objOrIface);
|
|
3482
3320
|
const newObjects = existing.value?.data.filter((o) => o !== objectCacheKey);
|
|
@@ -3541,7 +3379,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
3541
3379
|
type,
|
|
3542
3380
|
apiName: this.apiName
|
|
3543
3381
|
};
|
|
3544
|
-
const clientCtx = store.client[
|
|
3382
|
+
const clientCtx = store.client[chunkBMA3FGP2_cjs.additionalContext];
|
|
3545
3383
|
let objectSet;
|
|
3546
3384
|
if (rids != null) {
|
|
3547
3385
|
objectSet = clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
|
|
@@ -3580,7 +3418,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
3580
3418
|
}
|
|
3581
3419
|
extractRelevantObjects(changes) {
|
|
3582
3420
|
const matchesApiName = ([, object]) => {
|
|
3583
|
-
return this.apiName in object[
|
|
3421
|
+
return this.apiName in object[chunkVE53MA3W_cjs.ObjectDefRef].interfaceMap;
|
|
3584
3422
|
};
|
|
3585
3423
|
const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
|
|
3586
3424
|
const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
|
|
@@ -3599,7 +3437,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
3599
3437
|
}
|
|
3600
3438
|
};
|
|
3601
3439
|
function createSourceSetForPivot(store, pivotInfo, rids) {
|
|
3602
|
-
const clientCtx = store.client[
|
|
3440
|
+
const clientCtx = store.client[chunkBMA3FGP2_cjs.additionalContext];
|
|
3603
3441
|
if (rids != null) {
|
|
3604
3442
|
return clientCtx.objectSetFactory({
|
|
3605
3443
|
type: "object",
|
|
@@ -3642,7 +3480,7 @@ async function reloadDataAsFullObjects(client, data) {
|
|
|
3642
3480
|
})));
|
|
3643
3481
|
return data.map((obj) => {
|
|
3644
3482
|
const fullObject = objectTypeToPrimaryKeyToObject[obj.$objectType][obj.$primaryKey];
|
|
3645
|
-
!fullObject ? process.env.NODE_ENV !== "production" ?
|
|
3483
|
+
!fullObject ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Could not find object ${obj.$objectType} ${obj.$primaryKey}`) : invariant4__default.default(false) : void 0;
|
|
3646
3484
|
return fullObject;
|
|
3647
3485
|
});
|
|
3648
3486
|
}
|
|
@@ -3654,7 +3492,7 @@ var ObjectListQuery = class extends ListQuery {
|
|
|
3654
3492
|
const intersectWith = this.cacheKey.otherKeys[INTERSECT_IDX2];
|
|
3655
3493
|
const pivotInfo = this.cacheKey.otherKeys[PIVOT_IDX];
|
|
3656
3494
|
const rids = this.cacheKey.otherKeys[RIDS_IDX];
|
|
3657
|
-
const clientCtx = store.client[
|
|
3495
|
+
const clientCtx = store.client[chunkBMA3FGP2_cjs.additionalContext];
|
|
3658
3496
|
const typeDefinition = {
|
|
3659
3497
|
type: "object",
|
|
3660
3498
|
apiName: this.apiName
|
|
@@ -3741,10 +3579,10 @@ var ObjectListQuery = class extends ListQuery {
|
|
|
3741
3579
|
|
|
3742
3580
|
// src/observable/internal/list/ListsHelper.ts
|
|
3743
3581
|
var ListsHelper = class extends AbstractHelper {
|
|
3744
|
-
constructor(store, cacheKeys,
|
|
3582
|
+
constructor(store, cacheKeys, whereCanonicalizer, orderByCanonicalizer, rdpCanonicalizer, intersectCanonicalizer, pivotCanonicalizer, ridListCanonicalizer, selectCanonicalizer) {
|
|
3745
3583
|
super(store, cacheKeys);
|
|
3746
|
-
this.whereCanonicalizer =
|
|
3747
|
-
this.orderByCanonicalizer =
|
|
3584
|
+
this.whereCanonicalizer = whereCanonicalizer;
|
|
3585
|
+
this.orderByCanonicalizer = orderByCanonicalizer;
|
|
3748
3586
|
this.rdpCanonicalizer = rdpCanonicalizer;
|
|
3749
3587
|
this.intersectCanonicalizer = intersectCanonicalizer;
|
|
3750
3588
|
this.pivotCanonicalizer = pivotCanonicalizer;
|
|
@@ -3800,8 +3638,8 @@ function stripRdpFields(value, rdpFields) {
|
|
|
3800
3638
|
if (rdpFields.size === 0) {
|
|
3801
3639
|
return value;
|
|
3802
3640
|
}
|
|
3803
|
-
const underlying = value[
|
|
3804
|
-
const objectDef = value[
|
|
3641
|
+
const underlying = value[chunkVE53MA3W_cjs.UnderlyingOsdkObject];
|
|
3642
|
+
const objectDef = value[chunkVE53MA3W_cjs.ObjectDefRef];
|
|
3805
3643
|
const newProps = {
|
|
3806
3644
|
$apiName: underlying.$apiName,
|
|
3807
3645
|
$objectType: underlying.$objectType,
|
|
@@ -3814,7 +3652,7 @@ function stripRdpFields(value, rdpFields) {
|
|
|
3814
3652
|
newProps[key] = underlying[key];
|
|
3815
3653
|
}
|
|
3816
3654
|
}
|
|
3817
|
-
return
|
|
3655
|
+
return chunkVE53MA3W_cjs.createOsdkObject(value[chunkVE53MA3W_cjs.ClientRef], objectDef, newProps);
|
|
3818
3656
|
}
|
|
3819
3657
|
function isSuperset(superset, subset) {
|
|
3820
3658
|
for (const field of subset) {
|
|
@@ -3825,8 +3663,8 @@ function isSuperset(superset, subset) {
|
|
|
3825
3663
|
return true;
|
|
3826
3664
|
}
|
|
3827
3665
|
function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
|
|
3828
|
-
const underlying = value[
|
|
3829
|
-
const objectDef = value[
|
|
3666
|
+
const underlying = value[chunkVE53MA3W_cjs.UnderlyingOsdkObject];
|
|
3667
|
+
const objectDef = value[chunkVE53MA3W_cjs.ObjectDefRef];
|
|
3830
3668
|
const newProps = {
|
|
3831
3669
|
$apiName: underlying.$apiName,
|
|
3832
3670
|
$objectType: underlying.$objectType,
|
|
@@ -3842,12 +3680,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
|
|
|
3842
3680
|
}
|
|
3843
3681
|
}
|
|
3844
3682
|
}
|
|
3845
|
-
return
|
|
3683
|
+
return chunkVE53MA3W_cjs.createOsdkObject(value[chunkVE53MA3W_cjs.ClientRef], objectDef, newProps);
|
|
3846
3684
|
}
|
|
3847
3685
|
function mergeSelectFields(sourceValue, selectFields, existingValue) {
|
|
3848
|
-
const sourceUnderlying = sourceValue[
|
|
3849
|
-
const existingUnderlying = existingValue[
|
|
3850
|
-
const objectDef = sourceValue[
|
|
3686
|
+
const sourceUnderlying = sourceValue[chunkVE53MA3W_cjs.UnderlyingOsdkObject];
|
|
3687
|
+
const existingUnderlying = existingValue[chunkVE53MA3W_cjs.UnderlyingOsdkObject];
|
|
3688
|
+
const objectDef = sourceValue[chunkVE53MA3W_cjs.ObjectDefRef];
|
|
3851
3689
|
const newProps = {
|
|
3852
3690
|
$apiName: sourceUnderlying.$apiName,
|
|
3853
3691
|
$objectType: sourceUnderlying.$objectType,
|
|
@@ -3865,7 +3703,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue) {
|
|
|
3865
3703
|
newProps[key] = sourceUnderlying[key];
|
|
3866
3704
|
}
|
|
3867
3705
|
}
|
|
3868
|
-
return
|
|
3706
|
+
return chunkVE53MA3W_cjs.createOsdkObject(sourceValue[chunkVE53MA3W_cjs.ClientRef], objectDef, newProps);
|
|
3869
3707
|
}
|
|
3870
3708
|
function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
|
|
3871
3709
|
if (targetRdpFields.size === 0) {
|
|
@@ -3877,8 +3715,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
|
|
|
3877
3715
|
}
|
|
3878
3716
|
return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
|
|
3879
3717
|
}
|
|
3880
|
-
const sourceUnderlying = sourceValue[
|
|
3881
|
-
const objectDef = sourceValue[
|
|
3718
|
+
const sourceUnderlying = sourceValue[chunkVE53MA3W_cjs.UnderlyingOsdkObject];
|
|
3719
|
+
const objectDef = sourceValue[chunkVE53MA3W_cjs.ObjectDefRef];
|
|
3882
3720
|
const newProps = {
|
|
3883
3721
|
$apiName: sourceUnderlying.$apiName,
|
|
3884
3722
|
$objectType: sourceUnderlying.$objectType,
|
|
@@ -3892,7 +3730,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
|
|
|
3892
3730
|
}
|
|
3893
3731
|
}
|
|
3894
3732
|
if (targetCurrentValue) {
|
|
3895
|
-
const targetUnderlying = targetCurrentValue[
|
|
3733
|
+
const targetUnderlying = targetCurrentValue[chunkVE53MA3W_cjs.UnderlyingOsdkObject];
|
|
3896
3734
|
for (const field of targetRdpFields) {
|
|
3897
3735
|
if (field in targetUnderlying) {
|
|
3898
3736
|
if (!sourceRdpFields.has(field) || newProps[field] === void 0) {
|
|
@@ -3901,7 +3739,7 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
|
|
|
3901
3739
|
}
|
|
3902
3740
|
}
|
|
3903
3741
|
}
|
|
3904
|
-
return
|
|
3742
|
+
return chunkVE53MA3W_cjs.createOsdkObject(sourceValue[chunkVE53MA3W_cjs.ClientRef], objectDef, newProps);
|
|
3905
3743
|
}
|
|
3906
3744
|
|
|
3907
3745
|
// src/observable/internal/object/ObjectCacheKeyRegistry.ts
|
|
@@ -4056,7 +3894,7 @@ var BulkObjectLoader = class {
|
|
|
4056
3894
|
#maxEntries;
|
|
4057
3895
|
constructor(client, maxWait = 25, maxEntries = 100) {
|
|
4058
3896
|
this.#client = client;
|
|
4059
|
-
this.#logger = client[
|
|
3897
|
+
this.#logger = client[chunkBMA3FGP2_cjs.additionalContext].logger;
|
|
4060
3898
|
this.#maxWait = maxWait;
|
|
4061
3899
|
this.#maxEntries = maxEntries;
|
|
4062
3900
|
}
|
|
@@ -4206,7 +4044,7 @@ var ObjectQuery = class extends Query {
|
|
|
4206
4044
|
#loadPropertySecurityMetadata;
|
|
4207
4045
|
#implementingTypes;
|
|
4208
4046
|
constructor(store, subject, type, pk, cacheKey, opts, defType = "object", select, loadPropertySecurityMetadata) {
|
|
4209
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
4047
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkBMA3FGP2_cjs.additionalContext].logger?.child({}, {
|
|
4210
4048
|
msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
4211
4049
|
}) : void 0);
|
|
4212
4050
|
this.#apiName = type;
|
|
@@ -4308,7 +4146,7 @@ var ObjectsHelper = class extends AbstractHelper {
|
|
|
4308
4146
|
select,
|
|
4309
4147
|
$loadPropertySecurityMetadata
|
|
4310
4148
|
} = options;
|
|
4311
|
-
const defType =
|
|
4149
|
+
const defType = chunkVE53MA3W_cjs.getDefType(options.apiName);
|
|
4312
4150
|
const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0);
|
|
4313
4151
|
return this.store.queries.get(objectCacheKey, () => new ObjectQuery(this.store, this.store.subjects.get(objectCacheKey), apiName, pk, objectCacheKey, {
|
|
4314
4152
|
dedupeInterval: 0
|
|
@@ -4346,7 +4184,7 @@ var ObjectsHelper = class extends AbstractHelper {
|
|
|
4346
4184
|
if (valueToWrite !== tombstone && existing?.value && this.isObjectHolder(existing.value)) {
|
|
4347
4185
|
const expectedRdpFields = this.store.objectCacheKeyRegistry.getRdpFieldSet(sourceCacheKey);
|
|
4348
4186
|
if (expectedRdpFields.size > 0) {
|
|
4349
|
-
const underlying = valueToWrite[
|
|
4187
|
+
const underlying = valueToWrite[chunkVE53MA3W_cjs.UnderlyingOsdkObject];
|
|
4350
4188
|
const actualRdpFields = /* @__PURE__ */ new Set();
|
|
4351
4189
|
for (const field of expectedRdpFields) {
|
|
4352
4190
|
if (underlying && field in underlying) {
|
|
@@ -4416,7 +4254,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
|
|
|
4416
4254
|
#requiresServerEvaluation;
|
|
4417
4255
|
#resultTypeApiName;
|
|
4418
4256
|
constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
|
|
4419
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
4257
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkBMA3FGP2_cjs.additionalContext].logger?.child({}, {
|
|
4420
4258
|
msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
4421
4259
|
}) : void 0);
|
|
4422
4260
|
this.#baseObjectSetWire = baseObjectSetWire;
|
|
@@ -4484,7 +4322,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
|
|
|
4484
4322
|
return;
|
|
4485
4323
|
}
|
|
4486
4324
|
for (const os of sets) {
|
|
4487
|
-
const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(
|
|
4325
|
+
const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunkBMA3FGP2_cjs.getWireObjectSet(os));
|
|
4488
4326
|
if (typeName) {
|
|
4489
4327
|
types.add(typeName);
|
|
4490
4328
|
}
|
|
@@ -4511,10 +4349,10 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
|
|
|
4511
4349
|
*/
|
|
4512
4350
|
async fetchPageData(signal) {
|
|
4513
4351
|
if (this.#operations.orderBy && Object.keys(this.#operations.orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
|
|
4514
|
-
const wireObjectSet =
|
|
4352
|
+
const wireObjectSet = chunkBMA3FGP2_cjs.getWireObjectSet(this.#composedObjectSet);
|
|
4515
4353
|
const {
|
|
4516
4354
|
resultType
|
|
4517
|
-
} = await getObjectTypesThatInvalidate(this.store.client[
|
|
4355
|
+
} = await getObjectTypesThatInvalidate(this.store.client[chunkBMA3FGP2_cjs.additionalContext], wireObjectSet);
|
|
4518
4356
|
this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy);
|
|
4519
4357
|
}
|
|
4520
4358
|
const resp = await this.#composedObjectSet.fetchPage({
|
|
@@ -4716,10 +4554,10 @@ function reconcileListChanges(existingKeys, addedDefiniteMatches, modifiedObject
|
|
|
4716
4554
|
|
|
4717
4555
|
// src/observable/internal/objectset/ObjectSetHelper.ts
|
|
4718
4556
|
var ObjectSetHelper = class extends AbstractHelper {
|
|
4719
|
-
constructor(store, cacheKeys,
|
|
4557
|
+
constructor(store, cacheKeys, whereCanonicalizer, orderByCanonicalizer, rdpCanonicalizer, selectCanonicalizer, objectSetArrayCanonicalizer) {
|
|
4720
4558
|
super(store, cacheKeys);
|
|
4721
|
-
this.whereCanonicalizer =
|
|
4722
|
-
this.orderByCanonicalizer =
|
|
4559
|
+
this.whereCanonicalizer = whereCanonicalizer;
|
|
4560
|
+
this.orderByCanonicalizer = orderByCanonicalizer;
|
|
4723
4561
|
this.rdpCanonicalizer = rdpCanonicalizer;
|
|
4724
4562
|
this.selectCanonicalizer = selectCanonicalizer;
|
|
4725
4563
|
this.objectSetArrayCanonicalizer = objectSetArrayCanonicalizer;
|
|
@@ -4735,7 +4573,7 @@ var ObjectSetHelper = class extends AbstractHelper {
|
|
|
4735
4573
|
const {
|
|
4736
4574
|
baseObjectSet
|
|
4737
4575
|
} = options;
|
|
4738
|
-
const baseObjectSetWire = JSON.stringify(
|
|
4576
|
+
const baseObjectSetWire = JSON.stringify(chunkBMA3FGP2_cjs.getWireObjectSet(baseObjectSet));
|
|
4739
4577
|
const operations = this.buildCanonicalizedOperations(options);
|
|
4740
4578
|
const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
|
|
4741
4579
|
return this.store.queries.get(objectSetCacheKey, () => {
|
|
@@ -4751,13 +4589,13 @@ var ObjectSetHelper = class extends AbstractHelper {
|
|
|
4751
4589
|
operations.withProperties = this.rdpCanonicalizer.canonicalize(options.withProperties);
|
|
4752
4590
|
}
|
|
4753
4591
|
if (options.union && options.union.length > 0) {
|
|
4754
|
-
operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(
|
|
4592
|
+
operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunkBMA3FGP2_cjs.getWireObjectSet(os))));
|
|
4755
4593
|
}
|
|
4756
4594
|
if (options.intersect && options.intersect.length > 0) {
|
|
4757
|
-
operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(
|
|
4595
|
+
operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunkBMA3FGP2_cjs.getWireObjectSet(os))));
|
|
4758
4596
|
}
|
|
4759
4597
|
if (options.subtract && options.subtract.length > 0) {
|
|
4760
|
-
operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(
|
|
4598
|
+
operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunkBMA3FGP2_cjs.getWireObjectSet(os))));
|
|
4761
4599
|
}
|
|
4762
4600
|
if (options.pivotTo) {
|
|
4763
4601
|
operations.pivotTo = options.pivotTo;
|
|
@@ -4777,6 +4615,40 @@ var ObjectSetHelper = class extends AbstractHelper {
|
|
|
4777
4615
|
return operations;
|
|
4778
4616
|
}
|
|
4779
4617
|
};
|
|
4618
|
+
var defaultMakeData = () => /* @__PURE__ */ Object.create(null);
|
|
4619
|
+
var WeakRefTrie = class {
|
|
4620
|
+
#finalizer = new FinalizationRegistry((orderBy) => {
|
|
4621
|
+
this.#trie.removeArray(Object.entries(orderBy).flat());
|
|
4622
|
+
});
|
|
4623
|
+
#trie;
|
|
4624
|
+
constructor(makeData = defaultMakeData) {
|
|
4625
|
+
this.#trie = new trie.Trie(false, (array) => {
|
|
4626
|
+
const data = makeData(array);
|
|
4627
|
+
this.#finalizer.register(data, array);
|
|
4628
|
+
return new WeakRef(data);
|
|
4629
|
+
});
|
|
4630
|
+
}
|
|
4631
|
+
lookupArray(array) {
|
|
4632
|
+
const maybe = this.#trie.lookupArray(array);
|
|
4633
|
+
let ret = maybe.deref();
|
|
4634
|
+
if (maybe && !ret) {
|
|
4635
|
+
this.#trie.removeArray(array);
|
|
4636
|
+
ret = this.#trie.lookupArray(array).deref();
|
|
4637
|
+
}
|
|
4638
|
+
return ret;
|
|
4639
|
+
}
|
|
4640
|
+
peekArray(array) {
|
|
4641
|
+
const maybe = this.#trie.peekArray(array);
|
|
4642
|
+
const ret = maybe?.deref();
|
|
4643
|
+
if (maybe && !ret) {
|
|
4644
|
+
this.#trie.removeArray(array);
|
|
4645
|
+
}
|
|
4646
|
+
return ret;
|
|
4647
|
+
}
|
|
4648
|
+
removeArray(array) {
|
|
4649
|
+
return this.#trie.removeArray(array)?.deref();
|
|
4650
|
+
}
|
|
4651
|
+
};
|
|
4780
4652
|
|
|
4781
4653
|
// src/observable/internal/ObjectSetArrayCanonicalizer.ts
|
|
4782
4654
|
var ObjectSetArrayCanonicalizer = class {
|
|
@@ -4796,6 +4668,27 @@ var ObjectSetArrayCanonicalizer = class {
|
|
|
4796
4668
|
}
|
|
4797
4669
|
};
|
|
4798
4670
|
|
|
4671
|
+
// src/observable/internal/OrderByCanonicalizer.ts
|
|
4672
|
+
var OrderByCanonicalizer = class {
|
|
4673
|
+
#trie = new WeakRefTrie((array) => {
|
|
4674
|
+
const pairs = array.reduce((result, _, index, array2) => {
|
|
4675
|
+
if (index % 2 === 0 && array2[index] != null) {
|
|
4676
|
+
result.push(array2.slice(index, index + 2));
|
|
4677
|
+
}
|
|
4678
|
+
return result;
|
|
4679
|
+
}, []);
|
|
4680
|
+
const data = Object.fromEntries(pairs);
|
|
4681
|
+
return data;
|
|
4682
|
+
});
|
|
4683
|
+
canonicalize(orderBy) {
|
|
4684
|
+
if (orderBy == null) {
|
|
4685
|
+
return void 0;
|
|
4686
|
+
}
|
|
4687
|
+
const strings = Object.entries(orderBy).flat();
|
|
4688
|
+
return this.#trie.lookupArray(strings);
|
|
4689
|
+
}
|
|
4690
|
+
};
|
|
4691
|
+
|
|
4799
4692
|
// src/observable/internal/PivotCanonicalizer.ts
|
|
4800
4693
|
var PivotCanonicalizer = class {
|
|
4801
4694
|
#cache = /* @__PURE__ */ new Map();
|
|
@@ -4850,7 +4743,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
|
|
|
4850
4743
|
apiName: "__rdp_canonicalizer_holder__"
|
|
4851
4744
|
};
|
|
4852
4745
|
for (const [key, rdpFunction] of Object.entries(rdp)) {
|
|
4853
|
-
const builder =
|
|
4746
|
+
const builder = chunkBMA3FGP2_cjs.createWithPropertiesObjectSet(
|
|
4854
4747
|
objectTypeHolder,
|
|
4855
4748
|
{
|
|
4856
4749
|
type: "methodInput"
|
|
@@ -4916,6 +4809,73 @@ var SelectCanonicalizer = class {
|
|
|
4916
4809
|
return canonical;
|
|
4917
4810
|
}
|
|
4918
4811
|
};
|
|
4812
|
+
var WhereClauseCanonicalizer = class {
|
|
4813
|
+
/**
|
|
4814
|
+
* This is a shortcut cache for any WhereClause's that we have
|
|
4815
|
+
* seen and already canonicalized. The theory behind this
|
|
4816
|
+
* is that well behaving React applications will either `useMemo`
|
|
4817
|
+
* their where clause, or store it in state or pass it through as
|
|
4818
|
+
* props such that we are likely to get the same WhereClause
|
|
4819
|
+
* object multiple times and we can skip unnecessary work.
|
|
4820
|
+
*/
|
|
4821
|
+
#cache = /* @__PURE__ */ new WeakMap();
|
|
4822
|
+
/**
|
|
4823
|
+
* This is a trie that stores the sorted collapsed keys of a where clause to
|
|
4824
|
+
* the cache key for canonicalized options. In theory this keeps the number of
|
|
4825
|
+
* deepEqual comparisons down to a minimum but its probably overkill.
|
|
4826
|
+
*/
|
|
4827
|
+
#trie = new trie.Trie();
|
|
4828
|
+
/**
|
|
4829
|
+
* This is a cache from the cacheKey provided by `this.#trie` to the potential
|
|
4830
|
+
* canonicalized options.
|
|
4831
|
+
*/
|
|
4832
|
+
#existingOptions = /* @__PURE__ */ new Map();
|
|
4833
|
+
canonicalize(where) {
|
|
4834
|
+
if (where == null) {
|
|
4835
|
+
return void 0;
|
|
4836
|
+
}
|
|
4837
|
+
if (this.#cache.has(where)) {
|
|
4838
|
+
return this.#cache.get(where);
|
|
4839
|
+
}
|
|
4840
|
+
const keysSet = /* @__PURE__ */ new Set();
|
|
4841
|
+
const calculatedCanon = this.#toCanon(where, keysSet);
|
|
4842
|
+
const cacheKey = this.#trie.lookupArray(Array.from(keysSet).sort());
|
|
4843
|
+
const lookupEntry = this.#existingOptions.get(cacheKey) ?? {
|
|
4844
|
+
options: []
|
|
4845
|
+
};
|
|
4846
|
+
this.#existingOptions.set(cacheKey, lookupEntry);
|
|
4847
|
+
const canon = lookupEntry.options.find((ref) => deepEqual__default.default(ref.deref(), calculatedCanon))?.deref() ?? calculatedCanon;
|
|
4848
|
+
if (canon === calculatedCanon) {
|
|
4849
|
+
lookupEntry.options.push(new WeakRef(canon));
|
|
4850
|
+
}
|
|
4851
|
+
this.#cache.set(where, canon);
|
|
4852
|
+
return canon;
|
|
4853
|
+
}
|
|
4854
|
+
#toCanon = (where, set = /* @__PURE__ */ new Set()) => {
|
|
4855
|
+
if ("$and" in where) {
|
|
4856
|
+
if (process.env.NODE_ENV !== "production") {
|
|
4857
|
+
!Array.isArray(where.$and) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "expected $and to be an array") : invariant4__default.default(false) : void 0;
|
|
4858
|
+
!(Object.keys(where).length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "expected only $and to be present") : invariant4__default.default(false) : void 0;
|
|
4859
|
+
}
|
|
4860
|
+
if (where.$and.length === 0) {
|
|
4861
|
+
return {};
|
|
4862
|
+
}
|
|
4863
|
+
if (where.$and.length === 1) {
|
|
4864
|
+
return this.#toCanon(where.$and[0], set);
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
return Object.fromEntries(Object.entries(where).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => {
|
|
4868
|
+
set.add(k);
|
|
4869
|
+
if (k === "$and" || k === "$or") {
|
|
4870
|
+
return [k, v.map((x) => this.#toCanon(x, set))];
|
|
4871
|
+
}
|
|
4872
|
+
if (k !== "$not" && typeof v === "object" && v != null && "$eq" in v) {
|
|
4873
|
+
return [k, v.$eq];
|
|
4874
|
+
}
|
|
4875
|
+
return [k, v];
|
|
4876
|
+
}));
|
|
4877
|
+
};
|
|
4878
|
+
};
|
|
4919
4879
|
|
|
4920
4880
|
// src/observable/internal/Store.ts
|
|
4921
4881
|
var Store = class {
|
|
@@ -4949,7 +4909,7 @@ var Store = class {
|
|
|
4949
4909
|
subjects = this.layers.subjects;
|
|
4950
4910
|
// these are hopefully temporary
|
|
4951
4911
|
constructor(client) {
|
|
4952
|
-
this.logger = client[
|
|
4912
|
+
this.logger = client[chunkBMA3FGP2_cjs.additionalContext].logger?.child({}, {
|
|
4953
4913
|
msgPrefix: "Store"
|
|
4954
4914
|
});
|
|
4955
4915
|
this.client = client;
|
|
@@ -4970,7 +4930,7 @@ var Store = class {
|
|
|
4970
4930
|
#cleanupCacheKey = (key) => {
|
|
4971
4931
|
const subject = this.subjects.peek(key);
|
|
4972
4932
|
if (process.env.NODE_ENV !== "production") {
|
|
4973
|
-
!subject ? process.env.NODE_ENV !== "production" ?
|
|
4933
|
+
!subject ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false) : invariant4__default.default(false) : void 0;
|
|
4974
4934
|
}
|
|
4975
4935
|
this.subjects.delete(key);
|
|
4976
4936
|
this.queries.delete(key);
|
|
@@ -5250,10 +5210,10 @@ var Store = class {
|
|
|
5250
5210
|
|
|
5251
5211
|
// src/observable/ObservableClient.ts
|
|
5252
5212
|
function createObservableClient(client) {
|
|
5253
|
-
const tweakedClient =
|
|
5254
|
-
...client[
|
|
5255
|
-
fetch: shared_net_fetch.createFetchHeaderMutator(client[
|
|
5256
|
-
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"),
|
|
5213
|
+
const tweakedClient = chunkVE53MA3W_cjs.createClientFromContext({
|
|
5214
|
+
...client[chunkBMA3FGP2_cjs.additionalContext],
|
|
5215
|
+
fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkBMA3FGP2_cjs.additionalContext].fetch, (headers) => {
|
|
5216
|
+
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkVE53MA3W_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
|
|
5257
5217
|
return headers;
|
|
5258
5218
|
})
|
|
5259
5219
|
});
|
|
@@ -5417,7 +5377,7 @@ function getLinkQueryOptions(linkDef, sourceObject, pageSize) {
|
|
|
5417
5377
|
return options;
|
|
5418
5378
|
}
|
|
5419
5379
|
async function buildObjectSetFromLinkDefByType(client, sourceType, sourcePrimaryKey, linkDef) {
|
|
5420
|
-
const metadata = await client[
|
|
5380
|
+
const metadata = await client[chunkBMA3FGP2_cjs.additionalContext].ontologyProvider.getObjectDefinition(sourceType.apiName);
|
|
5421
5381
|
const pkFieldName = metadata.primaryKeyApiName;
|
|
5422
5382
|
let objectSet = client(sourceType).where({
|
|
5423
5383
|
[pkFieldName]: sourcePrimaryKey
|
|
@@ -5476,24 +5436,23 @@ function resolveSymbolBindings(value, sourcePrimaryKey) {
|
|
|
5476
5436
|
|
|
5477
5437
|
Object.defineProperty(exports, "createClientWithTransaction", {
|
|
5478
5438
|
enumerable: true,
|
|
5479
|
-
get: function () { return
|
|
5439
|
+
get: function () { return chunkVE53MA3W_cjs.createClientWithTransaction; }
|
|
5480
5440
|
});
|
|
5481
5441
|
Object.defineProperty(exports, "augment", {
|
|
5482
5442
|
enumerable: true,
|
|
5483
|
-
get: function () { return
|
|
5443
|
+
get: function () { return chunkBMA3FGP2_cjs.augment; }
|
|
5484
5444
|
});
|
|
5485
5445
|
Object.defineProperty(exports, "getWireObjectSet", {
|
|
5486
5446
|
enumerable: true,
|
|
5487
|
-
get: function () { return
|
|
5447
|
+
get: function () { return chunkBMA3FGP2_cjs.getWireObjectSet; }
|
|
5488
5448
|
});
|
|
5489
5449
|
Object.defineProperty(exports, "isObjectSet", {
|
|
5490
5450
|
enumerable: true,
|
|
5491
|
-
get: function () { return
|
|
5451
|
+
get: function () { return chunkBMA3FGP2_cjs.isObjectSet; }
|
|
5492
5452
|
});
|
|
5493
5453
|
exports.applyShapeTransformations = applyShapeTransformations;
|
|
5494
5454
|
exports.applyShapeTransformationsToArray = applyShapeTransformationsToArray;
|
|
5495
5455
|
exports.buildObjectSetFromLinkDefByType = buildObjectSetFromLinkDefByType;
|
|
5496
|
-
exports.computeObjectSetCacheKey = computeObjectSetCacheKey;
|
|
5497
5456
|
exports.createObservableClient = createObservableClient;
|
|
5498
5457
|
exports.getLinkQueryOptions = getLinkQueryOptions;
|
|
5499
5458
|
exports.getMetaTagContent = getMetaTagContent;
|