@osdk/client 2.7.0-beta.1 → 2.7.0-beta.2
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 +13 -0
- package/build/browser/Client.js +1 -1
- package/build/browser/Client.js.map +1 -1
- package/build/browser/observable/internal/links/SpecificLinkQuery.js +9 -1
- package/build/browser/observable/internal/links/SpecificLinkQuery.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/cjs/{chunk-WQL7SQ7H.cjs → chunk-R5RI54KA.cjs} +65 -65
- package/build/cjs/{chunk-WQL7SQ7H.cjs.map → chunk-R5RI54KA.cjs.map} +1 -1
- package/build/cjs/{chunk-VDAI3GGL.cjs → chunk-VYHIAGVJ.cjs} +2 -2
- package/build/cjs/{chunk-VDAI3GGL.cjs.map → chunk-VYHIAGVJ.cjs.map} +1 -1
- package/build/cjs/index.cjs +8 -8
- package/build/cjs/public/internal.cjs +8 -8
- package/build/cjs/public/unstable-do-not-use.cjs +40 -34
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/esm/Client.js +1 -1
- package/build/esm/Client.js.map +1 -1
- package/build/esm/observable/internal/links/SpecificLinkQuery.js +9 -1
- package/build/esm/observable/internal/links/SpecificLinkQuery.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/types/Client.d.ts +1 -1
- package/build/types/observable/internal/links/SpecificLinkQuery.d.ts.map +1 -1
- package/package.json +6 -6
package/build/cjs/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkR5RI54KA_cjs = require('./chunk-R5RI54KA.cjs');
|
|
4
|
+
require('./chunk-VYHIAGVJ.cjs');
|
|
5
5
|
var chunk6SCDLAU2_cjs = require('./chunk-6SCDLAU2.cjs');
|
|
6
6
|
var api = require('@osdk/api');
|
|
7
7
|
var shared_net_errors = require('@osdk/shared.net.errors');
|
|
@@ -18,7 +18,7 @@ chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
|
18
18
|
// src/createPlatformClient.ts
|
|
19
19
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
20
20
|
function createPlatformClient(baseUrl, tokenProvider, options = void 0, fetchFn = fetch) {
|
|
21
|
-
return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider,
|
|
21
|
+
return shared_client_impl.createSharedClientContext(baseUrl, tokenProvider, chunkR5RI54KA_cjs.USER_AGENT, fetchFn);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// src/util/datetimeConverters.ts
|
|
@@ -45,23 +45,23 @@ var extractDateFromIsoString = (dateTime) => {
|
|
|
45
45
|
|
|
46
46
|
Object.defineProperty(exports, "ActionValidationError", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkR5RI54KA_cjs.ActionValidationError; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "createAttachmentUpload", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkR5RI54KA_cjs.createAttachmentUpload; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "createClient", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkR5RI54KA_cjs.createClient; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "createObjectSpecifierFromPrimaryKey", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkR5RI54KA_cjs.createObjectSpecifierFromPrimaryKey; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "extractPrimaryKeyFromObjectSpecifier", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkR5RI54KA_cjs.extractPrimaryKeyFromObjectSpecifier; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "NULL_VALUE", {
|
|
67
67
|
enumerable: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVYHIAGVJ_cjs = require('../chunk-VYHIAGVJ.cjs');
|
|
4
4
|
var chunk6SCDLAU2_cjs = require('../chunk-6SCDLAU2.cjs');
|
|
5
5
|
|
|
6
6
|
// src/public/internal.ts
|
|
@@ -9,8 +9,8 @@ chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
|
9
9
|
// src/public-utils/createAndFetchTempObjectSetRid.ts
|
|
10
10
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
11
11
|
async function createAndFetchTempObjectSetRid(client, objectSet) {
|
|
12
|
-
const response = await
|
|
13
|
-
objectSet:
|
|
12
|
+
const response = await chunkVYHIAGVJ_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkVYHIAGVJ_cjs.additionalContext].ontologyRid, {
|
|
13
|
+
objectSet: chunkVYHIAGVJ_cjs.getWireObjectSet(objectSet)
|
|
14
14
|
});
|
|
15
15
|
return response.objectSetRid;
|
|
16
16
|
}
|
|
@@ -18,7 +18,7 @@ async function createAndFetchTempObjectSetRid(client, objectSet) {
|
|
|
18
18
|
// src/public-utils/hydrateObjectSetFromObjectRids.ts
|
|
19
19
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
20
20
|
function hydrateObjectSetFromObjectRids(client, definition, rids) {
|
|
21
|
-
return
|
|
21
|
+
return chunkVYHIAGVJ_cjs.createObjectSet(definition, client[chunkVYHIAGVJ_cjs.additionalContext], {
|
|
22
22
|
type: "intersect",
|
|
23
23
|
objectSets: [definition.type === "interface" ? {
|
|
24
24
|
type: "interfaceBase",
|
|
@@ -39,7 +39,7 @@ function asMutableArray(array) {
|
|
|
39
39
|
// src/public-utils/hydrateObjectSetFromRid.ts
|
|
40
40
|
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
41
41
|
function hydrateObjectSetFromRid(client, definition, rid) {
|
|
42
|
-
return
|
|
42
|
+
return chunkVYHIAGVJ_cjs.createObjectSet(definition, client[chunkVYHIAGVJ_cjs.additionalContext], {
|
|
43
43
|
type: "intersect",
|
|
44
44
|
objectSets: [definition.type === "interface" ? {
|
|
45
45
|
type: "interfaceBase",
|
|
@@ -81,7 +81,7 @@ var levelStyles = {
|
|
|
81
81
|
color: "orange"
|
|
82
82
|
})
|
|
83
83
|
};
|
|
84
|
-
var BrowserLogger = class _BrowserLogger extends
|
|
84
|
+
var BrowserLogger = class _BrowserLogger extends chunkVYHIAGVJ_cjs.BaseLogger {
|
|
85
85
|
constructor(bindings = {}, options = {}) {
|
|
86
86
|
super(bindings, {
|
|
87
87
|
...options,
|
|
@@ -107,11 +107,11 @@ var BrowserLogger = class _BrowserLogger extends chunkVDAI3GGL_cjs.BaseLogger {
|
|
|
107
107
|
|
|
108
108
|
Object.defineProperty(exports, "MinimalLogger", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkVYHIAGVJ_cjs.MinimalLogger; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "hydrateAttachmentFromRid", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkVYHIAGVJ_cjs.hydrateAttachmentFromRid; }
|
|
115
115
|
});
|
|
116
116
|
exports.BrowserLogger = BrowserLogger;
|
|
117
117
|
exports.createAndFetchTempObjectSetRid = createAndFetchTempObjectSetRid;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkR5RI54KA_cjs = require('../chunk-R5RI54KA.cjs');
|
|
4
|
+
var chunkVYHIAGVJ_cjs = require('../chunk-VYHIAGVJ.cjs');
|
|
5
5
|
var chunk6SCDLAU2_cjs = require('../chunk-6SCDLAU2.cjs');
|
|
6
6
|
var trie = require('@wry/trie');
|
|
7
7
|
var deepEqual = require('fast-deep-equal');
|
|
@@ -153,7 +153,7 @@ var WhereClauseCanonicalizer = class {
|
|
|
153
153
|
var whereCanonicalizer = new WhereClauseCanonicalizer();
|
|
154
154
|
var orderByCanonicalizer = new OrderByCanonicalizer();
|
|
155
155
|
function computeObjectSetCacheKey(objectSet, options) {
|
|
156
|
-
const keyParts = ["objectSet",
|
|
156
|
+
const keyParts = ["objectSet", chunkVYHIAGVJ_cjs.getWireObjectSet(objectSet)];
|
|
157
157
|
if (!options) {
|
|
158
158
|
return JSON.stringify(keyParts);
|
|
159
159
|
}
|
|
@@ -165,13 +165,13 @@ function computeObjectSetCacheKey(objectSet, options) {
|
|
|
165
165
|
keyParts.push("props", propKeys);
|
|
166
166
|
}
|
|
167
167
|
if (options.union && options.union.length > 0) {
|
|
168
|
-
keyParts.push("union", options.union.map((os) =>
|
|
168
|
+
keyParts.push("union", options.union.map((os) => chunkVYHIAGVJ_cjs.getWireObjectSet(os)));
|
|
169
169
|
}
|
|
170
170
|
if (options.intersect && options.intersect.length > 0) {
|
|
171
|
-
keyParts.push("intersect", options.intersect.map((os) =>
|
|
171
|
+
keyParts.push("intersect", options.intersect.map((os) => chunkVYHIAGVJ_cjs.getWireObjectSet(os)));
|
|
172
172
|
}
|
|
173
173
|
if (options.subtract && options.subtract.length > 0) {
|
|
174
|
-
keyParts.push("subtract", options.subtract.map((os) =>
|
|
174
|
+
keyParts.push("subtract", options.subtract.map((os) => chunkVYHIAGVJ_cjs.getWireObjectSet(os)));
|
|
175
175
|
}
|
|
176
176
|
if (options.pivotTo) {
|
|
177
177
|
keyParts.push("pivotTo", options.pivotTo);
|
|
@@ -351,7 +351,7 @@ var OptimisticJob = class {
|
|
|
351
351
|
return this;
|
|
352
352
|
},
|
|
353
353
|
createObject(type, pk, properties) {
|
|
354
|
-
const create = store.client[
|
|
354
|
+
const create = store.client[chunkVYHIAGVJ_cjs.additionalContext].objectFactory2(store.client[chunkVYHIAGVJ_cjs.additionalContext], [{
|
|
355
355
|
$primaryKey: pk,
|
|
356
356
|
$apiName: type.apiName,
|
|
357
357
|
$objectType: type.apiName,
|
|
@@ -569,7 +569,7 @@ var Query = class {
|
|
|
569
569
|
this.store = store;
|
|
570
570
|
this.cacheKeys = store.cacheKeys;
|
|
571
571
|
this.#subject = observable;
|
|
572
|
-
this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[
|
|
572
|
+
this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkVYHIAGVJ_cjs.additionalContext].logger : store.client[chunkVYHIAGVJ_cjs.additionalContext].logger?.child({}, {
|
|
573
573
|
msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
|
|
574
574
|
}));
|
|
575
575
|
}
|
|
@@ -727,7 +727,7 @@ var Query = class {
|
|
|
727
727
|
// src/observable/internal/aggregation/AggregationQuery.ts
|
|
728
728
|
var AggregationQuery = class extends Query {
|
|
729
729
|
constructor(store, subject, cacheKey, opts) {
|
|
730
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
730
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVYHIAGVJ_cjs.additionalContext].logger?.child({}, {
|
|
731
731
|
msgPrefix: `AggregationQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
732
732
|
}) : void 0);
|
|
733
733
|
this.apiName = cacheKey.otherKeys[API_NAME_IDX];
|
|
@@ -1978,11 +1978,10 @@ var SpecificLinkQuery = class extends BaseListQuery {
|
|
|
1978
1978
|
batch.changes.modified.add(this.cacheKey);
|
|
1979
1979
|
}
|
|
1980
1980
|
constructor(store, subject, cacheKey, opts) {
|
|
1981
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
1981
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVYHIAGVJ_cjs.additionalContext].logger?.child({}, {
|
|
1982
1982
|
msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
1983
1983
|
}) : void 0);
|
|
1984
1984
|
[this.#sourceApiName, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
|
|
1985
|
-
this.sortingStrategy = new OrderBySortingStrategy(this.#linkName, this.#orderBy);
|
|
1986
1985
|
}
|
|
1987
1986
|
// _fetchAndStore is now implemented in BaseCollectionQuery
|
|
1988
1987
|
/**
|
|
@@ -1995,7 +1994,14 @@ var SpecificLinkQuery = class extends BaseListQuery {
|
|
|
1995
1994
|
type: "object",
|
|
1996
1995
|
apiName: this.#sourceApiName
|
|
1997
1996
|
};
|
|
1998
|
-
const sourceMetadata = await client[
|
|
1997
|
+
const sourceMetadata = await client[chunkVYHIAGVJ_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
|
|
1998
|
+
if (this.#orderBy && Object.keys(this.#orderBy).length > 0) {
|
|
1999
|
+
const linkDef = sourceMetadata.links?.[this.#linkName];
|
|
2000
|
+
if (!linkDef?.targetType) {
|
|
2001
|
+
throw new Error(`Missing link definition or targetType for link '${this.#linkName}' on object type '${this.#sourceApiName}'`);
|
|
2002
|
+
}
|
|
2003
|
+
this.sortingStrategy = new OrderBySortingStrategy(linkDef.targetType, this.#orderBy);
|
|
2004
|
+
}
|
|
1999
2005
|
const sourceQuery = client(sourceObjectDef).where({
|
|
2000
2006
|
[sourceMetadata.primaryKeyApiName]: this.#sourcePk
|
|
2001
2007
|
});
|
|
@@ -2059,7 +2065,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
|
|
|
2059
2065
|
return this.revalidate(true);
|
|
2060
2066
|
} else {
|
|
2061
2067
|
return (async () => {
|
|
2062
|
-
const sourceMetadata = await this.store.client[
|
|
2068
|
+
const sourceMetadata = await this.store.client[chunkVYHIAGVJ_cjs.additionalContext].ontologyProvider.getObjectDefinition(this.#sourceApiName);
|
|
2063
2069
|
const linkDef = sourceMetadata.links?.[this.#linkName];
|
|
2064
2070
|
if (!linkDef || linkDef.targetType !== objectType) return;
|
|
2065
2071
|
const promise = this.revalidate(true);
|
|
@@ -2211,7 +2217,7 @@ var ListQuery = class extends BaseListQuery {
|
|
|
2211
2217
|
batch.changes.registerList(this.cacheKey);
|
|
2212
2218
|
}
|
|
2213
2219
|
constructor(store, subject, apiName, cacheKey, opts) {
|
|
2214
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
2220
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVYHIAGVJ_cjs.additionalContext].logger?.child({}, {
|
|
2215
2221
|
msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
2216
2222
|
}) : void 0);
|
|
2217
2223
|
this.apiName = apiName;
|
|
@@ -2491,7 +2497,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
2491
2497
|
}
|
|
2492
2498
|
extractRelevantObjects(changes) {
|
|
2493
2499
|
const matchesApiName = ([, object]) => {
|
|
2494
|
-
return this.apiName in object[
|
|
2500
|
+
return this.apiName in object[chunkR5RI54KA_cjs.ObjectDefRef].interfaceMap;
|
|
2495
2501
|
};
|
|
2496
2502
|
const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
|
|
2497
2503
|
const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.apiName));
|
|
@@ -2512,7 +2518,7 @@ var InterfaceListQuery = class extends ListQuery {
|
|
|
2512
2518
|
async function reloadDataAsFullObjects(client, data) {
|
|
2513
2519
|
const groups = groupBy__default.default(data, (x) => x.$objectType);
|
|
2514
2520
|
const objectTypeToPrimaryKeyToObject = Object.fromEntries(await Promise.all(Object.entries(groups).map(async ([apiName, objects]) => {
|
|
2515
|
-
const objectDef = objects[0][
|
|
2521
|
+
const objectDef = objects[0][chunkR5RI54KA_cjs.UnderlyingOsdkObject][chunkR5RI54KA_cjs.ObjectDefRef];
|
|
2516
2522
|
const where = {
|
|
2517
2523
|
[objectDef.primaryKeyApiName]: {
|
|
2518
2524
|
$in: objects.map((x) => x.$primaryKey)
|
|
@@ -2865,7 +2871,7 @@ var BulkObjectLoader = class {
|
|
|
2865
2871
|
#maxEntries;
|
|
2866
2872
|
constructor(client, maxWait = 25, maxEntries = 100) {
|
|
2867
2873
|
this.#client = client;
|
|
2868
|
-
this.#logger = client[
|
|
2874
|
+
this.#logger = client[chunkVYHIAGVJ_cjs.additionalContext].logger;
|
|
2869
2875
|
this.#maxWait = maxWait;
|
|
2870
2876
|
this.#maxEntries = maxEntries;
|
|
2871
2877
|
}
|
|
@@ -2933,7 +2939,7 @@ var ObjectQuery = class extends Query {
|
|
|
2933
2939
|
#apiName;
|
|
2934
2940
|
#pk;
|
|
2935
2941
|
constructor(store, subject, type, pk, cacheKey, opts) {
|
|
2936
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
2942
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVYHIAGVJ_cjs.additionalContext].logger?.child({}, {
|
|
2937
2943
|
msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
2938
2944
|
}) : void 0);
|
|
2939
2945
|
this.#apiName = type;
|
|
@@ -3081,7 +3087,7 @@ var ObjectSetQuery = class extends BaseListQuery {
|
|
|
3081
3087
|
#composedObjectSet;
|
|
3082
3088
|
#objectTypes;
|
|
3083
3089
|
constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
|
|
3084
|
-
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[
|
|
3090
|
+
super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkVYHIAGVJ_cjs.additionalContext].logger?.child({}, {
|
|
3085
3091
|
msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
|
|
3086
3092
|
}) : void 0);
|
|
3087
3093
|
this.#baseObjectSetWire = baseObjectSetWire;
|
|
@@ -3130,7 +3136,7 @@ var ObjectSetQuery = class extends BaseListQuery {
|
|
|
3130
3136
|
}
|
|
3131
3137
|
if (opts.union) {
|
|
3132
3138
|
for (const os of opts.union) {
|
|
3133
|
-
const wire =
|
|
3139
|
+
const wire = chunkVYHIAGVJ_cjs.getWireObjectSet(os);
|
|
3134
3140
|
if (wire.type) {
|
|
3135
3141
|
types.add(wire.type);
|
|
3136
3142
|
}
|
|
@@ -3138,7 +3144,7 @@ var ObjectSetQuery = class extends BaseListQuery {
|
|
|
3138
3144
|
}
|
|
3139
3145
|
if (opts.intersect) {
|
|
3140
3146
|
for (const os of opts.intersect) {
|
|
3141
|
-
const wire =
|
|
3147
|
+
const wire = chunkVYHIAGVJ_cjs.getWireObjectSet(os);
|
|
3142
3148
|
if (wire.type) {
|
|
3143
3149
|
types.add(wire.type);
|
|
3144
3150
|
}
|
|
@@ -3146,7 +3152,7 @@ var ObjectSetQuery = class extends BaseListQuery {
|
|
|
3146
3152
|
}
|
|
3147
3153
|
if (opts.subtract) {
|
|
3148
3154
|
for (const os of opts.subtract) {
|
|
3149
|
-
const wire =
|
|
3155
|
+
const wire = chunkVYHIAGVJ_cjs.getWireObjectSet(os);
|
|
3150
3156
|
if (wire.type) {
|
|
3151
3157
|
types.add(wire.type);
|
|
3152
3158
|
}
|
|
@@ -3227,7 +3233,7 @@ var ObjectSetHelper = class extends AbstractHelper {
|
|
|
3227
3233
|
const {
|
|
3228
3234
|
baseObjectSet
|
|
3229
3235
|
} = options;
|
|
3230
|
-
const baseObjectSetWire = JSON.stringify(
|
|
3236
|
+
const baseObjectSetWire = JSON.stringify(chunkVYHIAGVJ_cjs.getWireObjectSet(baseObjectSet));
|
|
3231
3237
|
const operations = this.buildCanonicalizedOperations(options);
|
|
3232
3238
|
const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
|
|
3233
3239
|
return this.store.queries.get(objectSetCacheKey, () => {
|
|
@@ -3243,13 +3249,13 @@ var ObjectSetHelper = class extends AbstractHelper {
|
|
|
3243
3249
|
operations.withProperties = Object.keys(options.withProperties).sort();
|
|
3244
3250
|
}
|
|
3245
3251
|
if (options.union && options.union.length > 0) {
|
|
3246
|
-
operations.union = options.union.map((os) => JSON.stringify(
|
|
3252
|
+
operations.union = options.union.map((os) => JSON.stringify(chunkVYHIAGVJ_cjs.getWireObjectSet(os)));
|
|
3247
3253
|
}
|
|
3248
3254
|
if (options.intersect && options.intersect.length > 0) {
|
|
3249
|
-
operations.intersect = options.intersect.map((os) => JSON.stringify(
|
|
3255
|
+
operations.intersect = options.intersect.map((os) => JSON.stringify(chunkVYHIAGVJ_cjs.getWireObjectSet(os)));
|
|
3250
3256
|
}
|
|
3251
3257
|
if (options.subtract && options.subtract.length > 0) {
|
|
3252
|
-
operations.subtract = options.subtract.map((os) => JSON.stringify(
|
|
3258
|
+
operations.subtract = options.subtract.map((os) => JSON.stringify(chunkVYHIAGVJ_cjs.getWireObjectSet(os)));
|
|
3253
3259
|
}
|
|
3254
3260
|
if (options.pivotTo) {
|
|
3255
3261
|
operations.pivotTo = options.pivotTo;
|
|
@@ -3321,7 +3327,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
|
|
|
3321
3327
|
apiName: "__rdp_canonicalizer_holder__"
|
|
3322
3328
|
};
|
|
3323
3329
|
for (const [key, rdpFunction] of Object.entries(rdp)) {
|
|
3324
|
-
const builder =
|
|
3330
|
+
const builder = chunkVYHIAGVJ_cjs.createWithPropertiesObjectSet(
|
|
3325
3331
|
objectTypeHolder,
|
|
3326
3332
|
{
|
|
3327
3333
|
type: "methodInput"
|
|
@@ -3372,7 +3378,7 @@ var Store = class {
|
|
|
3372
3378
|
subjects = this.layers.subjects;
|
|
3373
3379
|
// these are hopefully temporary
|
|
3374
3380
|
constructor(client) {
|
|
3375
|
-
this.logger = client[
|
|
3381
|
+
this.logger = client[chunkVYHIAGVJ_cjs.additionalContext].logger?.child({}, {
|
|
3376
3382
|
msgPrefix: "Store"
|
|
3377
3383
|
});
|
|
3378
3384
|
this.client = client;
|
|
@@ -3638,10 +3644,10 @@ var Store = class {
|
|
|
3638
3644
|
|
|
3639
3645
|
// src/observable/ObservableClient.ts
|
|
3640
3646
|
function createObservableClient(client) {
|
|
3641
|
-
const tweakedClient =
|
|
3642
|
-
...client[
|
|
3643
|
-
fetch: shared_net_fetch.createFetchHeaderMutator(client[
|
|
3644
|
-
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"),
|
|
3647
|
+
const tweakedClient = chunkR5RI54KA_cjs.createClientFromContext({
|
|
3648
|
+
...client[chunkVYHIAGVJ_cjs.additionalContext],
|
|
3649
|
+
fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkVYHIAGVJ_cjs.additionalContext].fetch, (headers) => {
|
|
3650
|
+
headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkR5RI54KA_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
|
|
3645
3651
|
return headers;
|
|
3646
3652
|
})
|
|
3647
3653
|
});
|
|
@@ -3685,11 +3691,11 @@ function getOsdkConfig(ontologyRid) {
|
|
|
3685
3691
|
|
|
3686
3692
|
Object.defineProperty(exports, "createClientWithTransaction", {
|
|
3687
3693
|
enumerable: true,
|
|
3688
|
-
get: function () { return
|
|
3694
|
+
get: function () { return chunkR5RI54KA_cjs.createClientWithTransaction; }
|
|
3689
3695
|
});
|
|
3690
3696
|
Object.defineProperty(exports, "augment", {
|
|
3691
3697
|
enumerable: true,
|
|
3692
|
-
get: function () { return
|
|
3698
|
+
get: function () { return chunkVYHIAGVJ_cjs.augment; }
|
|
3693
3699
|
});
|
|
3694
3700
|
exports.computeObjectSetCacheKey = computeObjectSetCacheKey;
|
|
3695
3701
|
exports.createObservableClient = createObservableClient;
|