@osdk/client 2.56.0 → 2.56.1-main-8ce066f137d77dda1ac4326bcbbd4fb68c8d50a8

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @osdk/client
2
2
 
3
+ ## 2.56.1-main-8ce066f137d77dda1ac4326bcbbd4fb68c8d50a8
4
+
5
+ ### Patch Changes
6
+
7
+ - @osdk/api@2.56.1-main-8ce066f137d77dda1ac4326bcbbd4fb68c8d50a8
8
+ - @osdk/client.unstable@2.56.1-main-8ce066f137d77dda1ac4326bcbbd4fb68c8d50a8
9
+ - @osdk/generator-converters@2.56.1-main-8ce066f137d77dda1ac4326bcbbd4fb68c8d50a8
10
+
3
11
  ## 2.56.0
4
12
 
5
13
  ### Patch Changes
@@ -21,7 +21,7 @@
21
21
  export const additionalContext = Symbol("additionalContext");
22
22
 
23
23
  // BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.
24
- const MaxOsdkVersion = "2.56.0";
24
+ const MaxOsdkVersion = "2.56.1";
25
25
  // END: THIS IS GENERATED CODE. DO NOT EDIT.
26
26
 
27
27
  const ErrorMessage = Symbol("ErrorMessage");
@@ -1 +1 @@
1
- {"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ActionDefinition,\n ActionMetadata,\n CompileTimeMetadata,\n InterfaceDefinition,\n InterfaceMetadata,\n ObjectMetadata,\n ObjectSet,\n ObjectTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n VersionBound,\n} from \"@osdk/api\";\nimport type {\n Experiment,\n ExperimentFns,\n MinimalObjectSet,\n} from \"@osdk/api/unstable\";\nimport type { SharedClient } from \"@osdk/shared.client2\";\n\nimport type { ActionSignatureFromDef } from \"./actions/applyAction.js\";\nimport type { MinimalClient } from \"./MinimalClientContext.js\";\nimport type { QuerySignatureFromDef } from \"./queries/types.js\";\nimport type { SatisfiesSemver } from \"./SatisfiesSemver.js\";\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype OldSharedClient = import(\"@osdk/shared.client\").SharedClient;\n\nexport type CheckVersionBound<Q> =\n Q extends VersionBound<infer V>\n ? SatisfiesSemver<V, MaxOsdkVersion> extends true\n ? Q\n : Q & {\n [ErrorMessage]: `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n /**\n * Returns the operation surface for the given ontology definition. The shape of the\n * returned value is dispatched on what kind of definition is passed:\n * - object type → the object set type for that ontology object (typically a generated extension of {@link ObjectSet})\n * - interface → a {@link MinimalObjectSet} for the interface\n * - action → a callable with `applyAction` / `batchApplyAction`\n * - query → a callable with `executeFunction`\n * - experiment → the unstable feature surface for that experiment\n *\n * @param o - The object type definition to wrap.\n * @example\n * ```ts\n * const employees = await client(Employee).fetchPage({ $pageSize: 30 });\n * const employee = await client(Employee).fetchOne(12345);\n * ```\n * @returns an object set scoped to all objects of this type.\n */\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The interface definition to wrap.\n * @example\n * ```ts\n * const page = await client(MyInterface).fetchPage({ $pageSize: 30 });\n * ```\n * @returns a minimal object set over all objects implementing the interface.\n */\n <Q extends InterfaceDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The action definition to invoke.\n * @example\n * ```ts\n * const result = await client(createEmployee).applyAction(\n * { name: \"Jane\", department: \"Engineering\" },\n * { $returnEdits: true },\n * );\n * ```\n * @returns a callable for applying (or batch-applying) the action.\n */\n <Q extends ActionDefinition<any>>(o: Q): ActionSignatureFromDef<Q>;\n\n /**\n * @param o - The query definition to invoke.\n * @example\n * ```ts\n * const result = await client(getEmployeeCount).executeFunction({ department: \"Engineering\" });\n * ```\n * @returns a callable for executing the query function.\n */\n <Q extends QueryDefinition<any>>(o: Q): QuerySignatureFromDef<Q>;\n\n /**\n * @param experiment - The experiment marker that gates an unstable feature.\n * @example\n * ```ts\n * const employee = await client(__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid)\n * .fetchOneByRid(Employee, \"ri.phonograph2-objects.main.object.1234\");\n * ```\n * @returns the experiment-specific function surface.\n */\n <\n Q extends\n | Experiment<\"2.0.8\">\n | Experiment<\"2.1.0\">\n | Experiment<\"2.2.0\">\n | Experiment<\"2.8.0\">\n | Experiment<\"2.19.0\">,\n >(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n /**\n * Fetches runtime metadata for the given ontology definition. The returned shape\n * is dispatched on the kind of definition passed: {@link ObjectMetadata},\n * {@link InterfaceMetadata}, {@link ActionMetadata}, or {@link QueryMetadata}.\n * @param o - The object type, interface, action, or query definition to look up.\n * @example\n * ```ts\n * const meta = await client.fetchMetadata(Employee);\n * console.log(meta.displayName, meta.description);\n * ```\n * @returns a promise resolving to the metadata for the given definition.\n */\n fetchMetadata<\n Q extends\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>,\n >(\n o: Q,\n ): Promise<\n Q extends ObjectTypeDefinition\n ? ObjectMetadata\n : Q extends InterfaceDefinition\n ? InterfaceMetadata\n : Q extends ActionDefinition<any>\n ? ActionMetadata\n : Q extends QueryDefinition<any>\n ? QueryMetadata\n : never\n >;\n\n /** @internal */\n [additionalContext]: MinimalClient;\n}\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext: unique symbol = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.56.0\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\nexport type MaxOsdkVersion = typeof MaxOsdkVersion;\nconst ErrorMessage: unique symbol = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2BA;;AAiIA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,QAAQ;AAC/B;;AAEA,MAAMC,YAA2B,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ActionDefinition,\n ActionMetadata,\n CompileTimeMetadata,\n InterfaceDefinition,\n InterfaceMetadata,\n ObjectMetadata,\n ObjectSet,\n ObjectTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n VersionBound,\n} from \"@osdk/api\";\nimport type {\n Experiment,\n ExperimentFns,\n MinimalObjectSet,\n} from \"@osdk/api/unstable\";\nimport type { SharedClient } from \"@osdk/shared.client2\";\n\nimport type { ActionSignatureFromDef } from \"./actions/applyAction.js\";\nimport type { MinimalClient } from \"./MinimalClientContext.js\";\nimport type { QuerySignatureFromDef } from \"./queries/types.js\";\nimport type { SatisfiesSemver } from \"./SatisfiesSemver.js\";\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype OldSharedClient = import(\"@osdk/shared.client\").SharedClient;\n\nexport type CheckVersionBound<Q> =\n Q extends VersionBound<infer V>\n ? SatisfiesSemver<V, MaxOsdkVersion> extends true\n ? Q\n : Q & {\n [ErrorMessage]: `Your SDK requires a semver compatible version with ${V}. You have ${MaxOsdkVersion}. Update your package.json`;\n }\n : Q;\n\nexport interface Client extends SharedClient, OldSharedClient {\n /**\n * Returns the operation surface for the given ontology definition. The shape of the\n * returned value is dispatched on what kind of definition is passed:\n * - object type → the object set type for that ontology object (typically a generated extension of {@link ObjectSet})\n * - interface → a {@link MinimalObjectSet} for the interface\n * - action → a callable with `applyAction` / `batchApplyAction`\n * - query → a callable with `executeFunction`\n * - experiment → the unstable feature surface for that experiment\n *\n * @param o - The object type definition to wrap.\n * @example\n * ```ts\n * const employees = await client(Employee).fetchPage({ $pageSize: 30 });\n * const employee = await client(Employee).fetchOne(12345);\n * ```\n * @returns an object set scoped to all objects of this type.\n */\n <Q extends ObjectTypeDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? ObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The interface definition to wrap.\n * @example\n * ```ts\n * const page = await client(MyInterface).fetchPage({ $pageSize: 30 });\n * ```\n * @returns a minimal object set over all objects implementing the interface.\n */\n <Q extends InterfaceDefinition>(\n o: Q,\n ): unknown extends CompileTimeMetadata<Q>[\"objectSet\"]\n ? MinimalObjectSet<Q>\n : CompileTimeMetadata<Q>[\"objectSet\"];\n\n /**\n * @param o - The action definition to invoke.\n * @example\n * ```ts\n * const result = await client(createEmployee).applyAction(\n * { name: \"Jane\", department: \"Engineering\" },\n * { $returnEdits: true },\n * );\n * ```\n * @returns a callable for applying (or batch-applying) the action.\n */\n <Q extends ActionDefinition<any>>(o: Q): ActionSignatureFromDef<Q>;\n\n /**\n * @param o - The query definition to invoke.\n * @example\n * ```ts\n * const result = await client(getEmployeeCount).executeFunction({ department: \"Engineering\" });\n * ```\n * @returns a callable for executing the query function.\n */\n <Q extends QueryDefinition<any>>(o: Q): QuerySignatureFromDef<Q>;\n\n /**\n * @param experiment - The experiment marker that gates an unstable feature.\n * @example\n * ```ts\n * const employee = await client(__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid)\n * .fetchOneByRid(Employee, \"ri.phonograph2-objects.main.object.1234\");\n * ```\n * @returns the experiment-specific function surface.\n */\n <\n Q extends\n | Experiment<\"2.0.8\">\n | Experiment<\"2.1.0\">\n | Experiment<\"2.2.0\">\n | Experiment<\"2.8.0\">\n | Experiment<\"2.19.0\">,\n >(\n experiment: Q,\n ): ExperimentFns<Q>;\n\n /**\n * Fetches runtime metadata for the given ontology definition. The returned shape\n * is dispatched on the kind of definition passed: {@link ObjectMetadata},\n * {@link InterfaceMetadata}, {@link ActionMetadata}, or {@link QueryMetadata}.\n * @param o - The object type, interface, action, or query definition to look up.\n * @example\n * ```ts\n * const meta = await client.fetchMetadata(Employee);\n * console.log(meta.displayName, meta.description);\n * ```\n * @returns a promise resolving to the metadata for the given definition.\n */\n fetchMetadata<\n Q extends\n | ObjectTypeDefinition\n | InterfaceDefinition\n | ActionDefinition<any>\n | QueryDefinition<any>,\n >(\n o: Q,\n ): Promise<\n Q extends ObjectTypeDefinition\n ? ObjectMetadata\n : Q extends InterfaceDefinition\n ? InterfaceMetadata\n : Q extends ActionDefinition<any>\n ? ActionMetadata\n : Q extends QueryDefinition<any>\n ? QueryMetadata\n : never\n >;\n\n /** @internal */\n [additionalContext]: MinimalClient;\n}\n\n// DO NOT EXPORT FROM PACKAGE\n/** @internal */\nexport const additionalContext: unique symbol = Symbol(\"additionalContext\");\n\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.56.1\";\n// END: THIS IS GENERATED CODE. DO NOT EDIT.\nexport type MaxOsdkVersion = typeof MaxOsdkVersion;\nconst ErrorMessage: unique symbol = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2BA;;AAiIA;AACA;AACA,OAAO,MAAMA,iBAAgC,GAAGC,MAAM,CAAC,mBAAmB,CAAC;;AAE3E;AACA,MAAMC,cAAc,GAAG,QAAQ;AAC/B;;AAEA,MAAMC,YAA2B,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.56.0"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.56.0"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.56.1-main-8ce066f137d77dda1ac4326bcbbd4fb68c8d50a8"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.56.1-main-8ce066f137d77dda1ac4326bcbbd4fb68c8d50a8"}`;
19
19
  //# sourceMappingURL=UserAgent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAgent.js","names":["USER_AGENT","OBSERVABLE_USER_AGENT"],"sources":["UserAgent.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT: string = `osdk-client/${process.env.PACKAGE_VERSION}`;\nexport const OBSERVABLE_USER_AGENT: string = `osdk-observable-client/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,UAAkB,GAAG,yBAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GAAG,oCAAuD","ignoreList":[]}
1
+ {"version":3,"file":"UserAgent.js","names":["USER_AGENT","OBSERVABLE_USER_AGENT"],"sources":["UserAgent.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const USER_AGENT: string = `osdk-client/${process.env.PACKAGE_VERSION}`;\nexport const OBSERVABLE_USER_AGENT: string = `osdk-observable-client/${process.env.PACKAGE_VERSION}`;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,UAAkB,GAAG,uEAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GAAG,kFAAuD","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkL2OCTTF6_cjs = require('./chunk-L2OCTTF6.cjs');
4
- var chunk4IRBNPVB_cjs = require('./chunk-4IRBNPVB.cjs');
3
+ var chunkXJZE246J_cjs = require('./chunk-XJZE246J.cjs');
4
+ var chunkNXUXVJEA_cjs = require('./chunk-NXUXVJEA.cjs');
5
5
  var shared_net_fetch = require('@osdk/shared.net.fetch');
6
6
  var rxjs = require('rxjs');
7
7
  var invariant5 = require('tiny-invariant');
@@ -66,8 +66,8 @@ var ObservableClientImpl = class {
66
66
  const instances = [];
67
67
  const objectSetWires = [];
68
68
  for (const item of options.dependsOnObjects ?? []) {
69
- if (chunk4IRBNPVB_cjs.isObjectSet(item)) {
70
- objectSetWires.push(chunk4IRBNPVB_cjs.getWireObjectSet(item));
69
+ if (chunkNXUXVJEA_cjs.isObjectSet(item)) {
70
+ objectSetWires.push(chunkNXUXVJEA_cjs.getWireObjectSet(item));
71
71
  } else {
72
72
  instances.push({
73
73
  $apiName: item.$objectType ?? item.$apiName,
@@ -75,7 +75,7 @@ var ObservableClientImpl = class {
75
75
  });
76
76
  }
77
77
  }
78
- const objectSetTypesPromise = objectSetWires.length > 0 ? Promise.all(objectSetWires.map((wire) => chunk4IRBNPVB_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunk4IRBNPVB_cjs.additionalContext], wire))).then((types) => types.filter((t) => t != null).map((t) => t.apiName)) : void 0;
78
+ const objectSetTypesPromise = objectSetWires.length > 0 ? Promise.all(objectSetWires.map((wire) => chunkNXUXVJEA_cjs.extractObjectOrInterfaceType(this.__experimentalStore.client[chunkNXUXVJEA_cjs.additionalContext], wire))).then((types) => types.filter((t) => t != null).map((t) => t.apiName)) : void 0;
79
79
  return this.__experimentalStore.functions.observe({
80
80
  ...options,
81
81
  queryDef,
@@ -138,7 +138,7 @@ var ObservableClientImpl = class {
138
138
  if (!arr || arr.length === 0) {
139
139
  return arr;
140
140
  }
141
- const wireStrings = arr.map((os) => JSON.stringify(chunk4IRBNPVB_cjs.getWireObjectSet(os)));
141
+ const wireStrings = arr.map((os) => JSON.stringify(chunkNXUXVJEA_cjs.getWireObjectSet(os)));
142
142
  const canonKey = canonicalize(wireStrings);
143
143
  let cached = cache.get(canonKey);
144
144
  if (!cached) {
@@ -353,7 +353,7 @@ var OptimisticJob = class {
353
353
  return this;
354
354
  },
355
355
  createObject(type, pk, properties) {
356
- const create = store.client[chunk4IRBNPVB_cjs.additionalContext].objectFactory(store.client[chunk4IRBNPVB_cjs.additionalContext], [{
356
+ const create = store.client[chunkNXUXVJEA_cjs.additionalContext].objectFactory(store.client[chunkNXUXVJEA_cjs.additionalContext], [{
357
357
  $primaryKey: pk,
358
358
  $apiName: type.apiName,
359
359
  $objectType: type.apiName,
@@ -859,7 +859,7 @@ var Query = class {
859
859
  this.store = store;
860
860
  this.cacheKeys = store.cacheKeys;
861
861
  this.#subject = observable;
862
- this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunk4IRBNPVB_cjs.additionalContext].logger : store.client[chunk4IRBNPVB_cjs.additionalContext].logger?.child({}, {
862
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkNXUXVJEA_cjs.additionalContext].logger : store.client[chunkNXUXVJEA_cjs.additionalContext].logger?.child({}, {
863
863
  msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
864
864
  }));
865
865
  }
@@ -1021,7 +1021,7 @@ var AggregationQuery = class extends Query {
1021
1021
  #invalidationTypes;
1022
1022
  #invalidationTypesPromise;
1023
1023
  constructor(store, subject, cacheKey, opts) {
1024
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4IRBNPVB_cjs.additionalContext].logger?.child({}, {
1024
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkNXUXVJEA_cjs.additionalContext].logger?.child({}, {
1025
1025
  msgPrefix: `AggregationQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1026
1026
  }) : void 0);
1027
1027
  this.apiName = cacheKey.otherKeys[API_NAME_IDX2];
@@ -1039,7 +1039,7 @@ var AggregationQuery = class extends Query {
1039
1039
  try {
1040
1040
  const {
1041
1041
  invalidationSet
1042
- } = await getObjectTypesThatInvalidate(this.store.client[chunk4IRBNPVB_cjs.additionalContext], wireObjectSet);
1042
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkNXUXVJEA_cjs.additionalContext], wireObjectSet);
1043
1043
  return /* @__PURE__ */ new Set([this.apiName, ...invalidationSet]);
1044
1044
  } catch (error) {
1045
1045
  this.store.logger?.error("Failed to compute invalidation types for aggregation, falling back to base type only", error);
@@ -1110,7 +1110,7 @@ var ObjectAggregationQuery = class extends AggregationQuery {
1110
1110
  };
1111
1111
  let objectSet;
1112
1112
  if (this.parsedWireObjectSet) {
1113
- objectSet = chunk4IRBNPVB_cjs.createObjectSet(objectTypeDef, this.store.client[chunk4IRBNPVB_cjs.additionalContext], this.parsedWireObjectSet);
1113
+ objectSet = chunkNXUXVJEA_cjs.createObjectSet(objectTypeDef, this.store.client[chunkNXUXVJEA_cjs.additionalContext], this.parsedWireObjectSet);
1114
1114
  } else {
1115
1115
  objectSet = this.store.client(objectTypeDef);
1116
1116
  }
@@ -1152,7 +1152,7 @@ var AggregationsHelper = class extends AbstractHelper {
1152
1152
  return this.getOrCreateQuery(options, void 0);
1153
1153
  }
1154
1154
  getQueryWithObjectSet(options) {
1155
- const serializedObjectSet = JSON.stringify(chunk4IRBNPVB_cjs.getWireObjectSet(options.objectSet));
1155
+ const serializedObjectSet = JSON.stringify(chunkNXUXVJEA_cjs.getWireObjectSet(options.objectSet));
1156
1156
  return this.getOrCreateQuery(options, serializedObjectSet);
1157
1157
  }
1158
1158
  getOrCreateQuery(options, serializedObjectSet) {
@@ -1502,7 +1502,7 @@ var FunctionParamsCanonicalizer = class {
1502
1502
  path.push("$:map_end");
1503
1503
  return arr;
1504
1504
  }
1505
- if (chunkL2OCTTF6_cjs.isObjectSpecifiersObject(value)) {
1505
+ if (chunkXJZE246J_cjs.isObjectSpecifiersObject(value)) {
1506
1506
  const objectType = value.$objectType ?? value.$apiName;
1507
1507
  path.push("$:osdk", objectType, value.$primaryKey);
1508
1508
  return {
@@ -1510,8 +1510,8 @@ var FunctionParamsCanonicalizer = class {
1510
1510
  $primaryKey: value.$primaryKey
1511
1511
  };
1512
1512
  }
1513
- if (chunk4IRBNPVB_cjs.isObjectSet(value)) {
1514
- const wire = JSON.stringify(chunk4IRBNPVB_cjs.getWireObjectSet(value));
1513
+ if (chunkNXUXVJEA_cjs.isObjectSet(value)) {
1514
+ const wire = JSON.stringify(chunkNXUXVJEA_cjs.getWireObjectSet(value));
1515
1515
  path.push("$:objectset", wire);
1516
1516
  return wire;
1517
1517
  }
@@ -1571,7 +1571,7 @@ var FunctionQuery = class extends Query {
1571
1571
  #dependsOnObjects;
1572
1572
  #queryDef;
1573
1573
  constructor(store, subject, queryDef, params, cacheKey, opts, objectSetTypesPromise) {
1574
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4IRBNPVB_cjs.additionalContext].logger?.child({}, {
1574
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkNXUXVJEA_cjs.additionalContext].logger?.child({}, {
1575
1575
  msgPrefix: `FunctionQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
1576
1576
  }) : void 0);
1577
1577
  this.#apiName = queryDef.apiName;
@@ -1628,7 +1628,7 @@ var FunctionQuery = class extends Query {
1628
1628
  }).debug("calling _fetchAndStore");
1629
1629
  }
1630
1630
  try {
1631
- const result = await chunkL2OCTTF6_cjs.applyQuery(this.store.client[chunk4IRBNPVB_cjs.additionalContext], this.#queryDef, this.#params);
1631
+ const result = await chunkXJZE246J_cjs.applyQuery(this.store.client[chunkNXUXVJEA_cjs.additionalContext], this.#queryDef, this.#params);
1632
1632
  const executedAt = Date.now();
1633
1633
  this.store.batch({}, (batch) => {
1634
1634
  this.writeToStore({
@@ -2208,11 +2208,11 @@ function isStringEncodedNumericType(type) {
2208
2208
  return type != null && NUMERIC_STRING_PROPERTY_TYPES.has(type);
2209
2209
  }
2210
2210
  function resolvePropertyType(holder, key, derivedPropertyMetadata = {}) {
2211
- const objectType = holder?.[chunkL2OCTTF6_cjs.ObjectDefRef]?.properties?.[key]?.type;
2211
+ const objectType = holder?.[chunkXJZE246J_cjs.ObjectDefRef]?.properties?.[key]?.type;
2212
2212
  if (typeof objectType === "string") {
2213
2213
  return objectType;
2214
2214
  }
2215
- const interfaceType = resolveInterfacePropertyType(holder?.[chunkL2OCTTF6_cjs.InterfaceDefRef], key);
2215
+ const interfaceType = resolveInterfacePropertyType(holder?.[chunkXJZE246J_cjs.InterfaceDefRef], key);
2216
2216
  if (typeof interfaceType === "string") {
2217
2217
  return interfaceType;
2218
2218
  }
@@ -2227,7 +2227,7 @@ function resolveInterfacePropertyType(interfaceDef, key) {
2227
2227
  if (typeof direct === "string") {
2228
2228
  return direct;
2229
2229
  }
2230
- const [namespace] = chunk4IRBNPVB_cjs.extractNamespace(interfaceDef.apiName);
2230
+ const [namespace] = chunkNXUXVJEA_cjs.extractNamespace(interfaceDef.apiName);
2231
2231
  if (namespace == null) {
2232
2232
  return void 0;
2233
2233
  }
@@ -2306,8 +2306,8 @@ function stripRdpFields(value, rdpFields) {
2306
2306
  if (rdpFields.size === 0) {
2307
2307
  return value;
2308
2308
  }
2309
- const underlying = value[chunkL2OCTTF6_cjs.UnderlyingOsdkObject];
2310
- const objectDef = requireObjectDef(value[chunkL2OCTTF6_cjs.ObjectDefRef], underlying);
2309
+ const underlying = value[chunkXJZE246J_cjs.UnderlyingOsdkObject];
2310
+ const objectDef = requireObjectDef(value[chunkXJZE246J_cjs.ObjectDefRef], underlying);
2311
2311
  const newProps = {
2312
2312
  $apiName: underlying.$apiName,
2313
2313
  $objectType: underlying.$objectType,
@@ -2320,7 +2320,7 @@ function stripRdpFields(value, rdpFields) {
2320
2320
  newProps[key] = underlying[key];
2321
2321
  }
2322
2322
  }
2323
- return chunkL2OCTTF6_cjs.createOsdkObject(value[chunkL2OCTTF6_cjs.ClientRef], objectDef, newProps);
2323
+ return chunkXJZE246J_cjs.createOsdkObject(value[chunkXJZE246J_cjs.ClientRef], objectDef, newProps);
2324
2324
  }
2325
2325
  function isSuperset(superset, subset) {
2326
2326
  for (const field of subset) {
@@ -2331,8 +2331,8 @@ function isSuperset(superset, subset) {
2331
2331
  return true;
2332
2332
  }
2333
2333
  function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
2334
- const underlying = value[chunkL2OCTTF6_cjs.UnderlyingOsdkObject];
2335
- const objectDef = requireObjectDef(value[chunkL2OCTTF6_cjs.ObjectDefRef], underlying);
2334
+ const underlying = value[chunkXJZE246J_cjs.UnderlyingOsdkObject];
2335
+ const objectDef = requireObjectDef(value[chunkXJZE246J_cjs.ObjectDefRef], underlying);
2336
2336
  const newProps = {
2337
2337
  $apiName: underlying.$apiName,
2338
2338
  $objectType: underlying.$objectType,
@@ -2349,12 +2349,12 @@ function filterToRdpFields(value, rdpFieldsToKeep, sourceRdpFields) {
2349
2349
  newProps[key] = underlying[key];
2350
2350
  }
2351
2351
  }
2352
- return chunkL2OCTTF6_cjs.createOsdkObject(value[chunkL2OCTTF6_cjs.ClientRef], objectDef, newProps);
2352
+ return chunkXJZE246J_cjs.createOsdkObject(value[chunkXJZE246J_cjs.ClientRef], objectDef, newProps);
2353
2353
  }
2354
2354
  function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFields) {
2355
- const sourceUnderlying = sourceValue[chunkL2OCTTF6_cjs.UnderlyingOsdkObject];
2356
- const existingUnderlying = existingValue[chunkL2OCTTF6_cjs.UnderlyingOsdkObject];
2357
- const objectDef = requireObjectDef(sourceValue[chunkL2OCTTF6_cjs.ObjectDefRef], sourceUnderlying);
2355
+ const sourceUnderlying = sourceValue[chunkXJZE246J_cjs.UnderlyingOsdkObject];
2356
+ const existingUnderlying = existingValue[chunkXJZE246J_cjs.UnderlyingOsdkObject];
2357
+ const objectDef = requireObjectDef(sourceValue[chunkXJZE246J_cjs.ObjectDefRef], sourceUnderlying);
2358
2358
  const newProps = {
2359
2359
  $apiName: sourceUnderlying.$apiName,
2360
2360
  $objectType: sourceUnderlying.$objectType,
@@ -2374,7 +2374,7 @@ function mergeSelectFields(sourceValue, selectFields, existingValue, sourceRdpFi
2374
2374
  newProps[key] = sourceUnderlying[key];
2375
2375
  }
2376
2376
  }
2377
- return chunkL2OCTTF6_cjs.createOsdkObject(sourceValue[chunkL2OCTTF6_cjs.ClientRef], objectDef, newProps);
2377
+ return chunkXJZE246J_cjs.createOsdkObject(sourceValue[chunkXJZE246J_cjs.ClientRef], objectDef, newProps);
2378
2378
  }
2379
2379
  function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, targetCurrentValue) {
2380
2380
  if (targetRdpFields.size === 0) {
@@ -2386,8 +2386,8 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
2386
2386
  }
2387
2387
  return filterToRdpFields(sourceValue, targetRdpFields, sourceRdpFields);
2388
2388
  }
2389
- const sourceUnderlying = sourceValue[chunkL2OCTTF6_cjs.UnderlyingOsdkObject];
2390
- const objectDef = requireObjectDef(sourceValue[chunkL2OCTTF6_cjs.ObjectDefRef], sourceUnderlying);
2389
+ const sourceUnderlying = sourceValue[chunkXJZE246J_cjs.UnderlyingOsdkObject];
2390
+ const objectDef = requireObjectDef(sourceValue[chunkXJZE246J_cjs.ObjectDefRef], sourceUnderlying);
2391
2391
  const newProps = {
2392
2392
  $apiName: sourceUnderlying.$apiName,
2393
2393
  $objectType: sourceUnderlying.$objectType,
@@ -2406,14 +2406,14 @@ function mergeObjectFields(sourceValue, sourceRdpFields, targetRdpFields, target
2406
2406
  }
2407
2407
  }
2408
2408
  if (targetCurrentValue) {
2409
- const targetUnderlying = targetCurrentValue[chunkL2OCTTF6_cjs.UnderlyingOsdkObject];
2409
+ const targetUnderlying = targetCurrentValue[chunkXJZE246J_cjs.UnderlyingOsdkObject];
2410
2410
  for (const field of targetRdpFields) {
2411
2411
  if (!sourceRdpFields.has(field) && field in targetUnderlying) {
2412
2412
  newProps[field] = targetUnderlying[field];
2413
2413
  }
2414
2414
  }
2415
2415
  }
2416
- return chunkL2OCTTF6_cjs.createOsdkObject(sourceValue[chunkL2OCTTF6_cjs.ClientRef], objectDef, newProps);
2416
+ return chunkXJZE246J_cjs.createOsdkObject(sourceValue[chunkXJZE246J_cjs.ClientRef], objectDef, newProps);
2417
2417
  }
2418
2418
  function createCollectionConnectable(subject, subjects, createPayload) {
2419
2419
  return rxjs.connectable(subject.pipe(rxjs.switchMap((listEntry) => {
@@ -3059,7 +3059,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3059
3059
  batch.changes.modified.add(this.cacheKey);
3060
3060
  }
3061
3061
  constructor(store, subject, cacheKey, opts) {
3062
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4IRBNPVB_cjs.additionalContext].logger?.child({}, {
3062
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkNXUXVJEA_cjs.additionalContext].logger?.child({}, {
3063
3063
  msgPrefix: `SpecificLinkQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3064
3064
  }) : void 0);
3065
3065
  [this.#sourceApiName, this.#sourceTypeKind, this.#sourceUnderlyingObjectType, this.#sourcePk, this.#linkName, this.#whereClause, this.#orderBy] = cacheKey.otherKeys;
@@ -3081,7 +3081,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3081
3081
  */
3082
3082
  async fetchPageData(signal) {
3083
3083
  const client = this.store.client;
3084
- const ontologyProvider = client[chunk4IRBNPVB_cjs.additionalContext].ontologyProvider;
3084
+ const ontologyProvider = client[chunkNXUXVJEA_cjs.additionalContext].ontologyProvider;
3085
3085
  const isInterface = this.#sourceTypeKind === "interface";
3086
3086
  const hasOrderBy = this.#orderBy && Object.keys(this.#orderBy).length > 0;
3087
3087
  let target;
@@ -3213,7 +3213,7 @@ var SpecificLinkQuery = class extends BaseListQuery {
3213
3213
  }
3214
3214
  return (async () => {
3215
3215
  try {
3216
- const ontologyProvider = this.store.client[chunk4IRBNPVB_cjs.additionalContext].ontologyProvider;
3216
+ const ontologyProvider = this.store.client[chunkNXUXVJEA_cjs.additionalContext].ontologyProvider;
3217
3217
  if (this.#sourceTypeKind === "interface") {
3218
3218
  const objectMetadata2 = await ontologyProvider.getObjectDefinition(objectType);
3219
3219
  if (this.#sourceApiName in objectMetadata2.interfaceMap) {
@@ -3394,7 +3394,7 @@ var ListQuery = class extends BaseListQuery {
3394
3394
  batch.changes.registerList(this.cacheKey);
3395
3395
  }
3396
3396
  constructor(store, subject, apiName, cacheKey, opts) {
3397
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4IRBNPVB_cjs.additionalContext].logger?.child({}, {
3397
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkNXUXVJEA_cjs.additionalContext].logger?.child({}, {
3398
3398
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
3399
3399
  }) : void 0);
3400
3400
  this.apiName = apiName;
@@ -3447,11 +3447,11 @@ var ListQuery = class extends BaseListQuery {
3447
3447
  async fetchPageData(signal) {
3448
3448
  const needsResultType = Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy) || this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied;
3449
3449
  if (needsResultType) {
3450
- const wireObjectSet = chunk4IRBNPVB_cjs.getWireObjectSet(this.#objectSet);
3450
+ const wireObjectSet = chunkNXUXVJEA_cjs.getWireObjectSet(this.#objectSet);
3451
3451
  const {
3452
3452
  resultType,
3453
3453
  invalidationSet
3454
- } = await getObjectTypesThatInvalidate(this.store.client[chunk4IRBNPVB_cjs.additionalContext], wireObjectSet);
3454
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkNXUXVJEA_cjs.additionalContext], wireObjectSet);
3455
3455
  this.#updateFetchedObjectType(resultType.apiName);
3456
3456
  this.#rdpInvalidationSet = invalidationSet;
3457
3457
  if (Object.keys(this.#orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
@@ -3461,7 +3461,7 @@ var ListQuery = class extends BaseListQuery {
3461
3461
  // Carries derived-property type metadata so string-encoded numeric
3462
3462
  // derived properties (decimal/long) sort by value. Returns {} when
3463
3463
  // there are no derived properties.
3464
- await chunk4IRBNPVB_cjs.extractRdpDefinition(this.store.client[chunk4IRBNPVB_cjs.additionalContext], wireObjectSet)
3464
+ await chunkNXUXVJEA_cjs.extractRdpDefinition(this.store.client[chunkNXUXVJEA_cjs.additionalContext], wireObjectSet)
3465
3465
  );
3466
3466
  }
3467
3467
  if (this.#pivotInfo != null && this.#intersectWith != null && this.#intersectWith.length > 0 && !this.#pivotIntersectApplied) {
@@ -3488,11 +3488,11 @@ var ListQuery = class extends BaseListQuery {
3488
3488
  }
3489
3489
  if (this.#fetchedObjectType == null) {
3490
3490
  try {
3491
- const wireObjectSet = chunk4IRBNPVB_cjs.getWireObjectSet(this.#objectSet);
3491
+ const wireObjectSet = chunkNXUXVJEA_cjs.getWireObjectSet(this.#objectSet);
3492
3492
  const {
3493
3493
  resultType,
3494
3494
  invalidationSet
3495
- } = await getObjectTypesThatInvalidate(this.store.client[chunk4IRBNPVB_cjs.additionalContext], wireObjectSet);
3495
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkNXUXVJEA_cjs.additionalContext], wireObjectSet);
3496
3496
  this.#updateFetchedObjectType(resultType.apiName);
3497
3497
  this.#rdpInvalidationSet = invalidationSet;
3498
3498
  } catch {
@@ -3755,7 +3755,7 @@ var InterfaceListQuery = class extends ListQuery {
3755
3755
  type,
3756
3756
  apiName: this.apiName
3757
3757
  };
3758
- const clientCtx = store.client[chunk4IRBNPVB_cjs.additionalContext];
3758
+ const clientCtx = store.client[chunkNXUXVJEA_cjs.additionalContext];
3759
3759
  let objectSet;
3760
3760
  if (rids != null) {
3761
3761
  objectSet = clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
@@ -3799,7 +3799,7 @@ var InterfaceListQuery = class extends ListQuery {
3799
3799
  }
3800
3800
  extractRelevantObjects(changes) {
3801
3801
  const matchesApiName = ([, object]) => {
3802
- return this.apiName in object[chunkL2OCTTF6_cjs.ObjectDefRef].interfaceMap;
3802
+ return this.apiName in object[chunkXJZE246J_cjs.ObjectDefRef].interfaceMap;
3803
3803
  };
3804
3804
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
3805
3805
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => this.wrapObject(object));
@@ -3818,7 +3818,7 @@ var InterfaceListQuery = class extends ListQuery {
3818
3818
  }
3819
3819
  };
3820
3820
  function createSourceSetForPivot(store, pivotInfo, rids) {
3821
- const clientCtx = store.client[chunk4IRBNPVB_cjs.additionalContext];
3821
+ const clientCtx = store.client[chunkNXUXVJEA_cjs.additionalContext];
3822
3822
  if (rids != null) {
3823
3823
  return clientCtx.objectSetFactory({
3824
3824
  type: "object",
@@ -3847,7 +3847,7 @@ var ObjectListQuery = class extends ListQuery {
3847
3847
  const intersectWith = this.cacheKey.otherKeys[INTERSECT_IDX];
3848
3848
  const pivotInfo = this.cacheKey.otherKeys[PIVOT_IDX];
3849
3849
  const rids = this.cacheKey.otherKeys[RIDS_IDX];
3850
- const clientCtx = store.client[chunk4IRBNPVB_cjs.additionalContext];
3850
+ const clientCtx = store.client[chunkNXUXVJEA_cjs.additionalContext];
3851
3851
  const typeDefinition = {
3852
3852
  type: "object",
3853
3853
  apiName: this.apiName
@@ -4108,7 +4108,7 @@ var MediaMetadataQuery = class extends Query {
4108
4108
  #propertyName;
4109
4109
  #preview;
4110
4110
  constructor(store, subject, objectType, primaryKey, propertyName, cacheKey, opts) {
4111
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4IRBNPVB_cjs.additionalContext].logger?.child({}, {
4111
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkNXUXVJEA_cjs.additionalContext].logger?.child({}, {
4112
4112
  msgPrefix: `MediaMetadataQuery<${objectType}, ${JSON.stringify(primaryKey)}, ${propertyName}>`
4113
4113
  }) : void 0);
4114
4114
  this.#objectType = objectType;
@@ -4141,8 +4141,8 @@ var MediaMetadataQuery = class extends Query {
4141
4141
  this.setStatus("loading", batch);
4142
4142
  });
4143
4143
  try {
4144
- const ontologyRid = await this.store.client[chunk4IRBNPVB_cjs.additionalContext].ontologyRid;
4145
- const response = await chunkL2OCTTF6_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk4IRBNPVB_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
4144
+ const ontologyRid = await this.store.client[chunkNXUXVJEA_cjs.additionalContext].ontologyRid;
4145
+ const response = await chunkXJZE246J_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkNXUXVJEA_cjs.additionalContext], ontologyRid, this.#objectType, String(this.#primaryKey), this.#propertyName, {
4146
4146
  preview: this.#preview
4147
4147
  });
4148
4148
  const metadata = {
@@ -4264,8 +4264,8 @@ var MediaHelper = class extends AbstractHelper {
4264
4264
  return this._subscribe(query, options, observer);
4265
4265
  }
4266
4266
  async fetchMetadata(coords, options) {
4267
- const ontologyRid = await this.store.client[chunk4IRBNPVB_cjs.additionalContext].ontologyRid;
4268
- const response = await chunkL2OCTTF6_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunk4IRBNPVB_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4267
+ const ontologyRid = await this.store.client[chunkNXUXVJEA_cjs.additionalContext].ontologyRid;
4268
+ const response = await chunkXJZE246J_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.store.client[chunkNXUXVJEA_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4269
4269
  preview: options?.preview ?? true
4270
4270
  });
4271
4271
  return {
@@ -4285,8 +4285,8 @@ var MediaHelper = class extends AbstractHelper {
4285
4285
  let response;
4286
4286
  const coords = this.resolveToCoords(mediaOrLocation);
4287
4287
  if (coords) {
4288
- const ontologyRid = await this.store.client[chunk4IRBNPVB_cjs.additionalContext].ontologyRid;
4289
- response = await chunkL2OCTTF6_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunk4IRBNPVB_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4288
+ const ontologyRid = await this.store.client[chunkNXUXVJEA_cjs.additionalContext].ontologyRid;
4289
+ response = await chunkXJZE246J_cjs.MediaReferenceProperty_exports.getMediaContent(this.store.client[chunkNXUXVJEA_cjs.additionalContext], ontologyRid, coords.objectType, String(coords.primaryKey), coords.propertyName, {
4290
4290
  preview
4291
4291
  });
4292
4292
  } else if ("fetchContents" in mediaOrLocation) {
@@ -4473,7 +4473,7 @@ var ObjectCacheKeyRegistry = class {
4473
4473
 
4474
4474
  // src/object/convertWireToOsdkObjects/InterfaceHolder.ts
4475
4475
  function isInterfaceHolder(v) {
4476
- return typeof v === "object" && v != null && chunkL2OCTTF6_cjs.InterfaceDefRef in v;
4476
+ return typeof v === "object" && v != null && chunkXJZE246J_cjs.InterfaceDefRef in v;
4477
4477
  }
4478
4478
 
4479
4479
  // ../../node_modules/.pnpm/p-defer@4.0.1/node_modules/p-defer/index.js
@@ -4532,7 +4532,7 @@ var BulkObjectLoader = class {
4532
4532
  #maxEntries;
4533
4533
  constructor(client, maxWait = 25, maxEntries = 100) {
4534
4534
  this.#client = client;
4535
- this.#logger = client[chunk4IRBNPVB_cjs.additionalContext].logger;
4535
+ this.#logger = client[chunkNXUXVJEA_cjs.additionalContext].logger;
4536
4536
  this.#maxWait = maxWait;
4537
4537
  this.#maxEntries = maxEntries;
4538
4538
  }
@@ -4701,7 +4701,7 @@ var ObjectQuery = class extends Query {
4701
4701
  #includeAllBaseObjectProperties;
4702
4702
  #implementingTypes;
4703
4703
  constructor(store, subject, type, pk, cacheKey, opts, defType = "object", select, loadPropertySecurityMetadata, includeAllBaseObjectProperties) {
4704
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4IRBNPVB_cjs.additionalContext].logger?.child({}, {
4704
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkNXUXVJEA_cjs.additionalContext].logger?.child({}, {
4705
4705
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4706
4706
  }) : void 0);
4707
4707
  this.#apiName = type;
@@ -4816,7 +4816,7 @@ var ObjectsHelper = class extends AbstractHelper {
4816
4816
  select,
4817
4817
  $loadPropertySecurityMetadata
4818
4818
  } = options;
4819
- const defType = chunkL2OCTTF6_cjs.getDefType(options.apiName);
4819
+ const defType = chunkXJZE246J_cjs.getDefType(options.apiName);
4820
4820
  const $includeAllBaseObjectProperties = defType === "interface" && options.$includeAllBaseObjectProperties ? true : void 0;
4821
4821
  const canonSelect = select && select.length > 0 ? this.store.selectCanonicalizer.canonicalize(select) : void 0;
4822
4822
  const objectCacheKey = this.cacheKeys.get("object", apiName, pk, rdpConfig ?? void 0, canonSelect, $loadPropertySecurityMetadata ? true : void 0, $includeAllBaseObjectProperties);
@@ -4833,7 +4833,7 @@ var ObjectsHelper = class extends AbstractHelper {
4833
4833
  storeOsdkInstances(values, batch, rdpConfig, selectFields, includeAllBaseObjectProperties, computedRdpFields) {
4834
4834
  const holders = values;
4835
4835
  return holders.map((v) => {
4836
- const concreteHolder = isInterfaceHolder(v) ? v[chunkL2OCTTF6_cjs.UnderlyingOsdkObject] : v;
4836
+ const concreteHolder = isInterfaceHolder(v) ? v[chunkXJZE246J_cjs.UnderlyingOsdkObject] : v;
4837
4837
  return this.getQuery({
4838
4838
  apiName: v.$objectType ?? v.$apiName,
4839
4839
  pk: v.$primaryKey,
@@ -4931,7 +4931,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4931
4931
  // revalidation. Lazily populated on first fetch when `withProperties` is set.
4932
4932
  #rdpInvalidationSet;
4933
4933
  constructor(store, subject, baseObjectSetWire, operations, cacheKey, opts) {
4934
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunk4IRBNPVB_cjs.additionalContext].logger?.child({}, {
4934
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkNXUXVJEA_cjs.additionalContext].logger?.child({}, {
4935
4935
  msgPrefix: `ObjectSetQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
4936
4936
  }) : void 0);
4937
4937
  this.#baseObjectSetWire = baseObjectSetWire;
@@ -4999,7 +4999,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
4999
4999
  return;
5000
5000
  }
5001
5001
  for (const os of sets) {
5002
- const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunk4IRBNPVB_cjs.getWireObjectSet(os));
5002
+ const typeName = _ObjectSetQuery.#extractTypeFromWireObjectSet(chunkNXUXVJEA_cjs.getWireObjectSet(os));
5003
5003
  if (typeName) {
5004
5004
  types.add(typeName);
5005
5005
  }
@@ -5026,16 +5026,16 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
5026
5026
  */
5027
5027
  async fetchPageData(signal) {
5028
5028
  if (this.#operations.orderBy && Object.keys(this.#operations.orderBy).length > 0 && !(this.sortingStrategy instanceof OrderBySortingStrategy)) {
5029
- const wireObjectSet = chunk4IRBNPVB_cjs.getWireObjectSet(this.#composedObjectSet);
5029
+ const wireObjectSet = chunkNXUXVJEA_cjs.getWireObjectSet(this.#composedObjectSet);
5030
5030
  const {
5031
5031
  resultType,
5032
5032
  invalidationSet
5033
- } = await getObjectTypesThatInvalidate(this.store.client[chunk4IRBNPVB_cjs.additionalContext], wireObjectSet);
5034
- this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy, await chunk4IRBNPVB_cjs.extractRdpDefinition(this.store.client[chunk4IRBNPVB_cjs.additionalContext], wireObjectSet));
5033
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkNXUXVJEA_cjs.additionalContext], wireObjectSet);
5034
+ this.sortingStrategy = new OrderBySortingStrategy(resultType.apiName, this.#operations.orderBy, await chunkNXUXVJEA_cjs.extractRdpDefinition(this.store.client[chunkNXUXVJEA_cjs.additionalContext], wireObjectSet));
5035
5035
  this.#rdpInvalidationSet = invalidationSet;
5036
5036
  }
5037
5037
  if (this.#rdpInvalidationSet == null && this.#operations.withProperties != null) {
5038
- const wireObjectSet = chunk4IRBNPVB_cjs.getWireObjectSet(this.#composedObjectSet);
5038
+ const wireObjectSet = chunkNXUXVJEA_cjs.getWireObjectSet(this.#composedObjectSet);
5039
5039
  this.#rdpInvalidationSet = await this.#computeInvalidationTypes(wireObjectSet);
5040
5040
  }
5041
5041
  const resp = await this.#composedObjectSet.fetchPage({
@@ -5184,7 +5184,7 @@ var ObjectSetQuery = class _ObjectSetQuery extends BaseListQuery {
5184
5184
  try {
5185
5185
  const {
5186
5186
  invalidationSet
5187
- } = await getObjectTypesThatInvalidate(this.store.client[chunk4IRBNPVB_cjs.additionalContext], wireObjectSet);
5187
+ } = await getObjectTypesThatInvalidate(this.store.client[chunkNXUXVJEA_cjs.additionalContext], wireObjectSet);
5188
5188
  return invalidationSet;
5189
5189
  } catch (error) {
5190
5190
  this.store.logger?.error("Failed to compute invalidation types for object set query, falling back to empty set", error);
@@ -5265,7 +5265,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5265
5265
  if (process.env.NODE_ENV !== "production") {
5266
5266
  console.warn("[@osdk/client] streamUpdates is not supported with pivotTo. The server does not support websocket subscriptions for link-traversal queries. Ignoring streamUpdates.");
5267
5267
  }
5268
- } else if (options.withProperties || chunk4IRBNPVB_cjs.hasWithProperties(chunk4IRBNPVB_cjs.getWireObjectSet(options.baseObjectSet))) {
5268
+ } else if (options.withProperties || chunkNXUXVJEA_cjs.hasWithProperties(chunkNXUXVJEA_cjs.getWireObjectSet(options.baseObjectSet))) {
5269
5269
  if (process.env.NODE_ENV !== "production") {
5270
5270
  console.warn("[@osdk/client] streamUpdates is not supported with withProperties. The server does not support websocket subscriptions for object sets that include derived properties. Ignoring streamUpdates.");
5271
5271
  }
@@ -5279,7 +5279,7 @@ var ObjectSetHelper = class extends AbstractHelper {
5279
5279
  const {
5280
5280
  baseObjectSet
5281
5281
  } = options;
5282
- const baseObjectSetWire = JSON.stringify(chunk4IRBNPVB_cjs.getWireObjectSet(baseObjectSet));
5282
+ const baseObjectSetWire = JSON.stringify(chunkNXUXVJEA_cjs.getWireObjectSet(baseObjectSet));
5283
5283
  const operations = this.buildCanonicalizedOperations(options);
5284
5284
  const objectSetCacheKey = this.cacheKeys.get("objectSet", baseObjectSetWire, operations);
5285
5285
  return this.store.queries.get(objectSetCacheKey, () => {
@@ -5295,13 +5295,13 @@ var ObjectSetHelper = class extends AbstractHelper {
5295
5295
  operations.withProperties = this.rdpCanonicalizer.canonicalize(options.withProperties);
5296
5296
  }
5297
5297
  if (options.union && options.union.length > 0) {
5298
- operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunk4IRBNPVB_cjs.getWireObjectSet(os))));
5298
+ operations.union = this.objectSetArrayCanonicalizer.canonicalizeUnion(options.union.map((os) => JSON.stringify(chunkNXUXVJEA_cjs.getWireObjectSet(os))));
5299
5299
  }
5300
5300
  if (options.intersect && options.intersect.length > 0) {
5301
- operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunk4IRBNPVB_cjs.getWireObjectSet(os))));
5301
+ operations.intersect = this.objectSetArrayCanonicalizer.canonicalizeIntersect(options.intersect.map((os) => JSON.stringify(chunkNXUXVJEA_cjs.getWireObjectSet(os))));
5302
5302
  }
5303
5303
  if (options.subtract && options.subtract.length > 0) {
5304
- operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunk4IRBNPVB_cjs.getWireObjectSet(os))));
5304
+ operations.subtract = this.objectSetArrayCanonicalizer.canonicalizeSubtract(options.subtract.map((os) => JSON.stringify(chunkNXUXVJEA_cjs.getWireObjectSet(os))));
5305
5305
  }
5306
5306
  if (options.pivotTo) {
5307
5307
  operations.pivotTo = options.pivotTo;
@@ -5449,7 +5449,7 @@ var RdpCanonicalizer = class extends CachingCanonicalizer {
5449
5449
  apiName: "__rdp_canonicalizer_holder__"
5450
5450
  };
5451
5451
  for (const [key, rdpFunction] of Object.entries(rdp)) {
5452
- const builder = chunk4IRBNPVB_cjs.createWithPropertiesObjectSet(
5452
+ const builder = chunkNXUXVJEA_cjs.createWithPropertiesObjectSet(
5453
5453
  objectTypeHolder,
5454
5454
  {
5455
5455
  type: "methodInput"
@@ -5626,7 +5626,7 @@ var Store = class {
5626
5626
  subjects = this.layers.subjects;
5627
5627
  // these are hopefully temporary
5628
5628
  constructor(client, options) {
5629
- this.logger = client[chunk4IRBNPVB_cjs.additionalContext].logger?.child({}, {
5629
+ this.logger = client[chunkNXUXVJEA_cjs.additionalContext].logger?.child({}, {
5630
5630
  msgPrefix: "Store",
5631
5631
  level: options?.devMode?.logLevel
5632
5632
  });
@@ -6065,10 +6065,10 @@ var Store = class {
6065
6065
 
6066
6066
  // src/observable/ObservableClient.ts
6067
6067
  function createObservableClient(client, extraUserAgents, options) {
6068
- const tweakedClient = chunkL2OCTTF6_cjs.createClientFromContext({
6069
- ...client[chunk4IRBNPVB_cjs.additionalContext],
6070
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunk4IRBNPVB_cjs.additionalContext].fetch, (headers) => {
6071
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkL2OCTTF6_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6068
+ const tweakedClient = chunkXJZE246J_cjs.createClientFromContext({
6069
+ ...client[chunkNXUXVJEA_cjs.additionalContext],
6070
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkNXUXVJEA_cjs.additionalContext].fetch, (headers) => {
6071
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkXJZE246J_cjs.OBSERVABLE_USER_AGENT, ...extraUserAgents?.() ?? []].filter((x) => x && x?.length > 0).join(" "));
6072
6072
  return headers;
6073
6073
  })
6074
6074
  });
@@ -6076,5 +6076,5 @@ function createObservableClient(client, extraUserAgents, options) {
6076
6076
  }
6077
6077
 
6078
6078
  exports.createObservableClient = createObservableClient;
6079
- //# sourceMappingURL=chunk-I3FN6XUC.cjs.map
6080
- //# sourceMappingURL=chunk-I3FN6XUC.cjs.map
6079
+ //# sourceMappingURL=chunk-GL2KGAVG.cjs.map
6080
+ //# sourceMappingURL=chunk-GL2KGAVG.cjs.map