@osdk/client 2.4.0-beta.9 → 2.4.0

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.
Files changed (165) hide show
  1. package/CHANGELOG.md +191 -0
  2. package/build/browser/MinimalClientContext.js.map +1 -1
  3. package/build/browser/createClient.js +5 -5
  4. package/build/browser/createClient.js.map +1 -1
  5. package/build/browser/createClient.test.js +3 -3
  6. package/build/browser/createClient.test.js.map +1 -1
  7. package/build/browser/createMinimalClient.js +1 -0
  8. package/build/browser/createMinimalClient.js.map +1 -1
  9. package/build/browser/derivedProperties/createWithPropertiesObjectSet.js +0 -17
  10. package/build/browser/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
  11. package/build/browser/fetchMetadata.test.js +7 -1
  12. package/build/browser/fetchMetadata.test.js.map +1 -1
  13. package/build/browser/index.js +2 -1
  14. package/build/browser/index.js.map +1 -1
  15. package/build/browser/object/convertWireToOsdkObjects.js +3 -2
  16. package/build/browser/object/convertWireToOsdkObjects.js.map +1 -1
  17. package/build/browser/object/convertWireToOsdkObjects.test.js +36 -24
  18. package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
  19. package/build/browser/object/fetchPage.js +9 -2
  20. package/build/browser/object/fetchPage.js.map +1 -1
  21. package/build/browser/object/mediaUpload.js +0 -3
  22. package/build/browser/object/mediaUpload.js.map +1 -1
  23. package/build/browser/objectSet/InterfaceObjectSet.test.js +5 -1
  24. package/build/browser/objectSet/InterfaceObjectSet.test.js.map +1 -1
  25. package/build/browser/objectSet/createObjectSet.js +5 -1
  26. package/build/browser/objectSet/createObjectSet.js.map +1 -1
  27. package/build/browser/observable/internal/ActionApplication.js +1 -1
  28. package/build/browser/observable/internal/ActionApplication.js.map +1 -1
  29. package/build/browser/observable/internal/Store.test.js +3 -0
  30. package/build/browser/observable/internal/Store.test.js.map +1 -1
  31. package/build/browser/ontology/StandardOntologyProvider.test.js +1 -1
  32. package/build/browser/ontology/StandardOntologyProvider.test.js.map +1 -1
  33. package/build/browser/public/unstable-do-not-use.js +1 -0
  34. package/build/browser/public/unstable-do-not-use.js.map +1 -1
  35. package/build/browser/public-utils/hydrateObjectSetFromObjectRids.js +4 -1
  36. package/build/browser/public-utils/hydrateObjectSetFromObjectRids.js.map +1 -1
  37. package/build/browser/public-utils/hydrateObjectSetFromRid.js +4 -1
  38. package/build/browser/public-utils/hydrateObjectSetFromRid.js.map +1 -1
  39. package/build/browser/queries/applyQuery.js +24 -1
  40. package/build/browser/queries/applyQuery.js.map +1 -1
  41. package/build/browser/queries/queries.test.js +27 -2
  42. package/build/browser/queries/queries.test.js.map +1 -1
  43. package/build/browser/queries/types.js.map +1 -1
  44. package/build/browser/util/UserAgent.js +2 -2
  45. package/build/browser/util/UserAgent.js.map +1 -1
  46. package/build/browser/util/WireObjectSet.js +1 -1
  47. package/build/browser/util/WireObjectSet.js.map +1 -1
  48. package/build/browser/util/extractObjectOrInterfaceType.js +96 -0
  49. package/build/browser/util/extractObjectOrInterfaceType.js.map +1 -0
  50. package/build/browser/util/extractObjectOrInterfaceType.test.js +135 -0
  51. package/build/browser/util/extractObjectOrInterfaceType.test.js.map +1 -0
  52. package/build/browser/util/interfaceUtils.js +10 -0
  53. package/build/browser/util/interfaceUtils.js.map +1 -1
  54. package/build/browser/util/objectSpecifierUtils.js +12 -0
  55. package/build/browser/util/objectSpecifierUtils.js.map +1 -1
  56. package/build/browser/util/toDataValue.js +1 -15
  57. package/build/browser/util/toDataValue.js.map +1 -1
  58. package/build/browser/util/toDataValue.test.js +2 -42
  59. package/build/browser/util/toDataValue.test.js.map +1 -1
  60. package/build/browser/util/toDataValueQueries.js +11 -0
  61. package/build/browser/util/toDataValueQueries.js.map +1 -1
  62. package/build/cjs/{Client-CgL2LKN9.d.cts → Client-CF85LpFu.d.cts} +2 -2
  63. package/build/cjs/{chunk-E5BQ7757.cjs → chunk-DSQAJPW5.cjs} +120 -64
  64. package/build/cjs/chunk-DSQAJPW5.cjs.map +1 -0
  65. package/build/cjs/chunk-Q7SFCCGT.cjs +11 -0
  66. package/build/cjs/chunk-Q7SFCCGT.cjs.map +1 -0
  67. package/build/cjs/{chunk-YZHCDIYC.cjs → chunk-RLFLBDLT.cjs} +117 -85
  68. package/build/cjs/chunk-RLFLBDLT.cjs.map +1 -0
  69. package/build/cjs/createClient-BJo8T7Js.d.cts +9 -0
  70. package/build/cjs/delay-QK4T7RVX.cjs +74 -0
  71. package/build/cjs/delay-QK4T7RVX.cjs.map +1 -0
  72. package/build/cjs/index.cjs +9 -8
  73. package/build/cjs/index.cjs.map +1 -1
  74. package/build/cjs/index.d.cts +15 -8
  75. package/build/cjs/public/internal.cjs +17 -10
  76. package/build/cjs/public/internal.cjs.map +1 -1
  77. package/build/cjs/public/internal.d.cts +1 -1
  78. package/build/cjs/public/unstable-do-not-use.cjs +22 -71
  79. package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
  80. package/build/cjs/public/unstable-do-not-use.d.cts +2 -1
  81. package/build/esm/MinimalClientContext.js.map +1 -1
  82. package/build/esm/createClient.js +5 -5
  83. package/build/esm/createClient.js.map +1 -1
  84. package/build/esm/createClient.test.js +3 -3
  85. package/build/esm/createClient.test.js.map +1 -1
  86. package/build/esm/createMinimalClient.js +1 -0
  87. package/build/esm/createMinimalClient.js.map +1 -1
  88. package/build/esm/derivedProperties/createWithPropertiesObjectSet.js +0 -17
  89. package/build/esm/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
  90. package/build/esm/fetchMetadata.test.js +7 -1
  91. package/build/esm/fetchMetadata.test.js.map +1 -1
  92. package/build/esm/index.js +2 -1
  93. package/build/esm/index.js.map +1 -1
  94. package/build/esm/object/convertWireToOsdkObjects.js +3 -2
  95. package/build/esm/object/convertWireToOsdkObjects.js.map +1 -1
  96. package/build/esm/object/convertWireToOsdkObjects.test.js +36 -24
  97. package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
  98. package/build/esm/object/fetchPage.js +9 -2
  99. package/build/esm/object/fetchPage.js.map +1 -1
  100. package/build/esm/object/mediaUpload.js +0 -3
  101. package/build/esm/object/mediaUpload.js.map +1 -1
  102. package/build/esm/objectSet/InterfaceObjectSet.test.js +5 -1
  103. package/build/esm/objectSet/InterfaceObjectSet.test.js.map +1 -1
  104. package/build/esm/objectSet/createObjectSet.js +5 -1
  105. package/build/esm/objectSet/createObjectSet.js.map +1 -1
  106. package/build/esm/observable/internal/ActionApplication.js +1 -1
  107. package/build/esm/observable/internal/ActionApplication.js.map +1 -1
  108. package/build/esm/observable/internal/Store.test.js +3 -0
  109. package/build/esm/observable/internal/Store.test.js.map +1 -1
  110. package/build/esm/ontology/StandardOntologyProvider.test.js +1 -1
  111. package/build/esm/ontology/StandardOntologyProvider.test.js.map +1 -1
  112. package/build/esm/public/unstable-do-not-use.js +1 -0
  113. package/build/esm/public/unstable-do-not-use.js.map +1 -1
  114. package/build/esm/public-utils/hydrateObjectSetFromObjectRids.js +4 -1
  115. package/build/esm/public-utils/hydrateObjectSetFromObjectRids.js.map +1 -1
  116. package/build/esm/public-utils/hydrateObjectSetFromRid.js +4 -1
  117. package/build/esm/public-utils/hydrateObjectSetFromRid.js.map +1 -1
  118. package/build/esm/queries/applyQuery.js +24 -1
  119. package/build/esm/queries/applyQuery.js.map +1 -1
  120. package/build/esm/queries/queries.test.js +27 -2
  121. package/build/esm/queries/queries.test.js.map +1 -1
  122. package/build/esm/queries/types.js.map +1 -1
  123. package/build/esm/util/UserAgent.js +2 -2
  124. package/build/esm/util/UserAgent.js.map +1 -1
  125. package/build/esm/util/WireObjectSet.js +1 -1
  126. package/build/esm/util/WireObjectSet.js.map +1 -1
  127. package/build/esm/util/extractObjectOrInterfaceType.js +96 -0
  128. package/build/esm/util/extractObjectOrInterfaceType.js.map +1 -0
  129. package/build/esm/util/extractObjectOrInterfaceType.test.js +135 -0
  130. package/build/esm/util/extractObjectOrInterfaceType.test.js.map +1 -0
  131. package/build/esm/util/interfaceUtils.js +10 -0
  132. package/build/esm/util/interfaceUtils.js.map +1 -1
  133. package/build/esm/util/objectSpecifierUtils.js +12 -0
  134. package/build/esm/util/objectSpecifierUtils.js.map +1 -1
  135. package/build/esm/util/toDataValue.js +1 -15
  136. package/build/esm/util/toDataValue.js.map +1 -1
  137. package/build/esm/util/toDataValue.test.js +2 -42
  138. package/build/esm/util/toDataValue.test.js.map +1 -1
  139. package/build/esm/util/toDataValueQueries.js +11 -0
  140. package/build/esm/util/toDataValueQueries.js.map +1 -1
  141. package/build/types/MinimalClientContext.d.ts +1 -0
  142. package/build/types/MinimalClientContext.d.ts.map +1 -1
  143. package/build/types/createClient.d.ts +1 -0
  144. package/build/types/createClient.d.ts.map +1 -1
  145. package/build/types/index.d.ts +3 -2
  146. package/build/types/index.d.ts.map +1 -1
  147. package/build/types/object/fetchPage.d.ts.map +1 -1
  148. package/build/types/object/mediaUpload.d.ts +1 -2
  149. package/build/types/object/mediaUpload.d.ts.map +1 -1
  150. package/build/types/observable/internal/ActionApplication.d.ts.map +1 -1
  151. package/build/types/public/unstable-do-not-use.d.ts +1 -0
  152. package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
  153. package/build/types/queries/applyQuery.d.ts +5 -1
  154. package/build/types/queries/applyQuery.d.ts.map +1 -1
  155. package/build/types/queries/types.d.ts +2 -2
  156. package/build/types/queries/types.d.ts.map +1 -1
  157. package/build/types/util/extractObjectOrInterfaceType.d.ts +1 -0
  158. package/build/types/util/extractObjectOrInterfaceType.d.ts.map +1 -0
  159. package/build/types/util/extractObjectOrInterfaceType.test.d.ts +1 -0
  160. package/build/types/util/extractObjectOrInterfaceType.test.d.ts.map +1 -0
  161. package/build/types/util/objectSpecifierUtils.d.ts +13 -1
  162. package/build/types/util/objectSpecifierUtils.d.ts.map +1 -1
  163. package/package.json +11 -11
  164. package/build/cjs/chunk-E5BQ7757.cjs.map +0 -1
  165. package/build/cjs/chunk-YZHCDIYC.cjs.map +0 -1
@@ -1,8 +1,9 @@
1
- import { Logger, AttachmentUpload } from '@osdk/api';
2
- export { ActionDefinition, ActionEditResponse, ActionMetadata, ActionParam, ActionReturnTypeForOptions, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions, Attachment, CompileTimeMetadata, InterfaceDefinition, Logger, NULL_VALUE, ObjectMetadata, ObjectSet, ObjectSpecifier, ObjectTypeDefinition, Osdk, OsdkObject, OsdkObjectCreatePropertyType, OsdkObjectPropertyType, PageResult, PropertyDef, PropertyKeys, PropertyValueWireToClient, QueryDefinition, QueryParam, QueryResult, Range, Result, SingleLinkAccessor, ThreeDimensionalAggregation, TwoDimensionalAggregation, VersionBound, WhereClause, isOk } from '@osdk/api';
1
+ import { AttachmentUpload, ObjectTypeDefinition, PrimaryKeyType, ObjectSpecifier } from '@osdk/api';
2
+ export { ActionDefinition, ActionEditResponse, ActionMetadata, ActionParam, ActionReturnTypeForOptions, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions, Attachment, CompileTimeMetadata, InterfaceDefinition, InterfaceMetadata, Logger, ObjectMetadata, ObjectSet, ObjectSpecifier, ObjectTypeDefinition, Osdk, OsdkObject, OsdkObjectCreatePropertyType, OsdkObjectPropertyType, PageResult, PropertyDef, PropertyKeys, PropertyValueWireToClient, QueryDefinition, QueryParam, QueryResult, Range, Result, SingleLinkAccessor, ThreeDimensionalAggregation, TwoDimensionalAggregation, VersionBound, WhereClause, isOk } from '@osdk/api';
3
3
  export { PalantirApiError } from '@osdk/shared.net.errors';
4
4
  import { ValidateActionResponseV2 } from '@osdk/foundry.ontologies';
5
- import { C as Client } from './Client-CgL2LKN9.cjs';
5
+ export { C as Client } from './Client-CF85LpFu.cjs';
6
+ export { c as createClient } from './createClient-BJo8T7Js.cjs';
6
7
  import { SharedClientContext } from '@osdk/shared.client2';
7
8
  import '@osdk/shared.client';
8
9
  import '@osdk/api/unstable';
@@ -12,10 +13,6 @@ declare class ActionValidationError extends Error {
12
13
  constructor(validation: ValidateActionResponseV2);
13
14
  }
14
15
 
15
- declare const createClient: (baseUrl: string, ontologyRid: string | Promise<string>, tokenProvider: () => Promise<string>, options?: {
16
- logger?: Logger;
17
- } | undefined, fetchFn?: typeof fetch | undefined) => Client;
18
-
19
16
  interface PlatformClient extends SharedClientContext {
20
17
  }
21
18
  /**
@@ -65,4 +62,14 @@ declare const extractDateInUTC: (date: Date) => string;
65
62
  */
66
63
  declare const extractDateInLocalTime: (date: Date) => string;
67
64
 
68
- export { ActionValidationError, Client, type PlatformClient, type ResultOrError, createAttachmentUpload, createClient, createPlatformClient, extractDate, extractDateInLocalTime, extractDateInUTC };
65
+ /**
66
+ * Creates an Object Specifier. An ObjectSpecifier is a string that uniquely identifies an object in the system,
67
+ * even when loading an interface object where primary key uniqueness is not guaranteed.
68
+ *
69
+ * @param objectDef - An Object Type Definition
70
+ * @param primaryKey - The value you want to use as the primary key
71
+ * @returns An Object Specifier
72
+ */
73
+ declare function createObjectSpecifierFromPrimaryKey<Q extends ObjectTypeDefinition>(objectDef: Q, primaryKey: PrimaryKeyType<Q>): ObjectSpecifier<Q>;
74
+
75
+ export { ActionValidationError, type PlatformClient, type ResultOrError, createAttachmentUpload, createObjectSpecifierFromPrimaryKey, createPlatformClient, extractDate, extractDateInLocalTime, extractDateInUTC };
@@ -1,20 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunkE5BQ7757_cjs = require('../chunk-E5BQ7757.cjs');
3
+ var chunkDSQAJPW5_cjs = require('../chunk-DSQAJPW5.cjs');
4
+ require('../chunk-Q7SFCCGT.cjs');
4
5
 
5
6
  // src/public-utils/createAndFetchTempObjectSetRid.ts
6
7
  async function createAndFetchTempObjectSetRid(client, objectSet) {
7
- const response = await chunkE5BQ7757_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkE5BQ7757_cjs.additionalContext].ontologyRid, {
8
- objectSet: chunkE5BQ7757_cjs.getWireObjectSet(objectSet)
8
+ const response = await chunkDSQAJPW5_cjs.OntologyObjectSet_exports.createTemporary(client, await client[chunkDSQAJPW5_cjs.additionalContext].ontologyRid, {
9
+ objectSet: chunkDSQAJPW5_cjs.getWireObjectSet(objectSet)
9
10
  });
10
11
  return response.objectSetRid;
11
12
  }
12
13
 
13
14
  // src/public-utils/hydrateObjectSetFromObjectRids.ts
14
15
  function hydrateObjectSetFromObjectRids(client, definition, rids) {
15
- return chunkE5BQ7757_cjs.createObjectSet(definition, client[chunkE5BQ7757_cjs.additionalContext], {
16
+ return chunkDSQAJPW5_cjs.createObjectSet(definition, client[chunkDSQAJPW5_cjs.additionalContext], {
16
17
  type: "intersect",
17
- objectSets: [{
18
+ objectSets: [definition.type === "interface" ? {
19
+ type: "interfaceBase",
20
+ interfaceType: definition.apiName
21
+ } : {
18
22
  type: "base",
19
23
  objectType: definition.apiName
20
24
  }, {
@@ -29,9 +33,12 @@ function asMutableArray(array) {
29
33
 
30
34
  // src/public-utils/hydrateObjectSetFromRid.ts
31
35
  function hydrateObjectSetFromRid(client, definition, rid) {
32
- return chunkE5BQ7757_cjs.createObjectSet(definition, client[chunkE5BQ7757_cjs.additionalContext], {
36
+ return chunkDSQAJPW5_cjs.createObjectSet(definition, client[chunkDSQAJPW5_cjs.additionalContext], {
33
37
  type: "intersect",
34
- objectSets: [{
38
+ objectSets: [definition.type === "interface" ? {
39
+ type: "interfaceBase",
40
+ interfaceType: definition.apiName
41
+ } : {
35
42
  type: "base",
36
43
  objectType: definition.apiName
37
44
  }, {
@@ -67,7 +74,7 @@ var levelStyles = {
67
74
  color: "orange"
68
75
  })
69
76
  };
70
- var BrowserLogger = class _BrowserLogger extends chunkE5BQ7757_cjs.BaseLogger {
77
+ var BrowserLogger = class _BrowserLogger extends chunkDSQAJPW5_cjs.BaseLogger {
71
78
  constructor(bindings = {}, options = {}) {
72
79
  super(bindings, {
73
80
  ...options,
@@ -93,11 +100,11 @@ var BrowserLogger = class _BrowserLogger extends chunkE5BQ7757_cjs.BaseLogger {
93
100
 
94
101
  Object.defineProperty(exports, "MinimalLogger", {
95
102
  enumerable: true,
96
- get: function () { return chunkE5BQ7757_cjs.MinimalLogger; }
103
+ get: function () { return chunkDSQAJPW5_cjs.MinimalLogger; }
97
104
  });
98
105
  Object.defineProperty(exports, "hydrateAttachmentFromRid", {
99
106
  enumerable: true,
100
- get: function () { return chunkE5BQ7757_cjs.hydrateAttachmentFromRid; }
107
+ get: function () { return chunkDSQAJPW5_cjs.hydrateAttachmentFromRid; }
101
108
  });
102
109
  exports.BrowserLogger = BrowserLogger;
103
110
  exports.createAndFetchTempObjectSetRid = createAndFetchTempObjectSetRid;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/public-utils/createAndFetchTempObjectSetRid.ts","../../../src/public-utils/hydrateObjectSetFromObjectRids.ts","../../../src/public-utils/hydrateObjectSetFromRid.ts","../../../src/logger/BrowserLogger.ts"],"names":["OntologyObjectSet_exports","additionalContext","getWireObjectSet","createObjectSet","BaseLogger"],"mappings":"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","file":"internal.cjs","sourcesContent":["/*\n * Copyright 2025 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 { OntologyObjectSets } from \"@osdk/foundry.ontologies\";\nimport { additionalContext } from \"../Client.js\";\nimport { getWireObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Fetches a temporary object set RID from the Foundry stack for the given object set.\n *\n * @param client - An OSDK client.\n * @param objectSet - The object set to fetch a RID for.\n * @returns A promise that resolves to the RID of the temporary object set.\n */\nexport async function createAndFetchTempObjectSetRid(client, objectSet) {\n const response = await OntologyObjectSets.createTemporary(client, await client[additionalContext].ontologyRid, {\n objectSet: getWireObjectSet(objectSet)\n });\n return response.objectSetRid;\n}","/*\n * Copyright 2025 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 { additionalContext } from \"../Client.js\";\nimport { createObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Creates an OSDK object set from object RIDs.\n * @param client - An OSDK client.\n * @param definition - An OSDK object or interface definition.\n * @param rids - An array of object RIDs.\n * @returns An OSDK object set.\n */\nexport function hydrateObjectSetFromObjectRids(client, definition, rids) {\n return createObjectSet(definition, client[additionalContext], {\n type: \"intersect\",\n objectSets: [{\n type: \"base\",\n objectType: definition.apiName\n }, {\n type: \"static\",\n objects: asMutableArray(rids)\n }]\n });\n}\nfunction asMutableArray(array) {\n return array;\n}","/*\n * Copyright 2025 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 { additionalContext } from \"../Client.js\";\nimport { createObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Creates an OSDK object set from an object set RID.\n * @param client - An OSDK client.\n * @param definition - An OSDK object or interface definition.\n * @param rid - The RID of an object set.\n * @returns An OSDK object set.\n */\nexport function hydrateObjectSetFromRid(client, definition, rid) {\n return createObjectSet(definition, client[additionalContext], {\n type: \"intersect\",\n objectSets: [{\n type: \"base\",\n objectType: definition.apiName\n }, {\n type: \"reference\",\n reference: rid\n }]\n });\n}","/*\n * Copyright 2025 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 { BaseLogger } from \"./BaseLogger.js\";\nfunction createStyle({\n color\n}) {\n return `color: ${color}; border: 1px solid ${color}; padding: 2px; border-radius: 3px;`;\n}\nconst levelStyles = {\n debug: createStyle({\n color: \"LightBlue\"\n }),\n error: createStyle({\n color: \"red\"\n }),\n fatal: createStyle({\n color: \"red\"\n }),\n info: createStyle({\n color: \"green\"\n }),\n trace: createStyle({\n color: \"gray\"\n }),\n warn: createStyle({\n color: \"orange\"\n })\n};\nexport class BrowserLogger extends BaseLogger {\n constructor(bindings = {}, options = {}) {\n super(bindings, {\n ...options,\n level: options.level ?? \"error\"\n }, BrowserLogger);\n }\n createLogMethod(name, bindings) {\n const msgs = [`%c${name}%c`];\n const styles = [levelStyles[name], \"\"];\n if (this.options?.msgPrefix) {\n msgs.push(`%c${this.options.msgPrefix}%c`);\n styles.push(\"font-style: italic; color: gray\", \"\");\n }\n if (typeof bindings === \"object\" && \"methodName\" in bindings) {\n msgs.push(`%c.${bindings.methodName}()%c`);\n styles.push(\"font-style: italic;color: orchid\", \"\");\n }\n return (...args) => {\n // eslint-disable-next-line no-console\n console[name === \"fatal\" ? \"error\" : name](msgs.join(\" \"), ...styles, ...args);\n };\n }\n}"]}
1
+ {"version":3,"sources":["../../../src/public-utils/createAndFetchTempObjectSetRid.ts","../../../src/public-utils/hydrateObjectSetFromObjectRids.ts","../../../src/public-utils/hydrateObjectSetFromRid.ts","../../../src/logger/BrowserLogger.ts"],"names":["OntologyObjectSet_exports","additionalContext","getWireObjectSet","createObjectSet","BaseLogger"],"mappings":"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","file":"internal.cjs","sourcesContent":["/*\n * Copyright 2025 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 { OntologyObjectSets } from \"@osdk/foundry.ontologies\";\nimport { additionalContext } from \"../Client.js\";\nimport { getWireObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Fetches a temporary object set RID from the Foundry stack for the given object set.\n *\n * @param client - An OSDK client.\n * @param objectSet - The object set to fetch a RID for.\n * @returns A promise that resolves to the RID of the temporary object set.\n */\nexport async function createAndFetchTempObjectSetRid(client, objectSet) {\n const response = await OntologyObjectSets.createTemporary(client, await client[additionalContext].ontologyRid, {\n objectSet: getWireObjectSet(objectSet)\n });\n return response.objectSetRid;\n}","/*\n * Copyright 2025 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 { additionalContext } from \"../Client.js\";\nimport { createObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Creates an OSDK object set from object RIDs.\n * @param client - An OSDK client.\n * @param definition - An OSDK object or interface definition.\n * @param rids - An array of object RIDs.\n * @returns An OSDK object set.\n */\nexport function hydrateObjectSetFromObjectRids(client, definition, rids) {\n return createObjectSet(definition, client[additionalContext], {\n type: \"intersect\",\n objectSets: [definition.type === \"interface\" ? {\n type: \"interfaceBase\",\n interfaceType: definition.apiName\n } : {\n type: \"base\",\n objectType: definition.apiName\n }, {\n type: \"static\",\n objects: asMutableArray(rids)\n }]\n });\n}\nfunction asMutableArray(array) {\n return array;\n}","/*\n * Copyright 2025 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 { additionalContext } from \"../Client.js\";\nimport { createObjectSet } from \"../objectSet/createObjectSet.js\";\n\n/**\n * Creates an OSDK object set from an object set RID.\n * @param client - An OSDK client.\n * @param definition - An OSDK object or interface definition.\n * @param rid - The RID of an object set.\n * @returns An OSDK object set.\n */\nexport function hydrateObjectSetFromRid(client, definition, rid) {\n return createObjectSet(definition, client[additionalContext], {\n type: \"intersect\",\n objectSets: [definition.type === \"interface\" ? {\n type: \"interfaceBase\",\n interfaceType: definition.apiName\n } : {\n type: \"base\",\n objectType: definition.apiName\n }, {\n type: \"reference\",\n reference: rid\n }]\n });\n}","/*\n * Copyright 2025 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 { BaseLogger } from \"./BaseLogger.js\";\nfunction createStyle({\n color\n}) {\n return `color: ${color}; border: 1px solid ${color}; padding: 2px; border-radius: 3px;`;\n}\nconst levelStyles = {\n debug: createStyle({\n color: \"LightBlue\"\n }),\n error: createStyle({\n color: \"red\"\n }),\n fatal: createStyle({\n color: \"red\"\n }),\n info: createStyle({\n color: \"green\"\n }),\n trace: createStyle({\n color: \"gray\"\n }),\n warn: createStyle({\n color: \"orange\"\n })\n};\nexport class BrowserLogger extends BaseLogger {\n constructor(bindings = {}, options = {}) {\n super(bindings, {\n ...options,\n level: options.level ?? \"error\"\n }, BrowserLogger);\n }\n createLogMethod(name, bindings) {\n const msgs = [`%c${name}%c`];\n const styles = [levelStyles[name], \"\"];\n if (this.options?.msgPrefix) {\n msgs.push(`%c${this.options.msgPrefix}%c`);\n styles.push(\"font-style: italic; color: gray\", \"\");\n }\n if (typeof bindings === \"object\" && \"methodName\" in bindings) {\n msgs.push(`%c.${bindings.methodName}()%c`);\n styles.push(\"font-style: italic;color: orchid\", \"\");\n }\n return (...args) => {\n // eslint-disable-next-line no-console\n console[name === \"fatal\" ? \"error\" : name](msgs.join(\" \"), ...styles, ...args);\n };\n }\n}"]}
@@ -1,5 +1,5 @@
1
1
  import { ObjectOrInterfaceDefinition, CompileTimeMetadata, ObjectSet, Attachment, Logger } from '@osdk/api';
2
- import { C as Client } from '../Client-CgL2LKN9.cjs';
2
+ import { C as Client } from '../Client-CF85LpFu.cjs';
3
3
  import '@osdk/shared.client';
4
4
  import '@osdk/api/unstable';
5
5
  import '@osdk/shared.client2';
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkYZHCDIYC_cjs = require('../chunk-YZHCDIYC.cjs');
4
- var chunkE5BQ7757_cjs = require('../chunk-E5BQ7757.cjs');
3
+ var chunkRLFLBDLT_cjs = require('../chunk-RLFLBDLT.cjs');
4
+ var chunkDSQAJPW5_cjs = require('../chunk-DSQAJPW5.cjs');
5
+ require('../chunk-Q7SFCCGT.cjs');
5
6
  var shared_net_fetch = require('@osdk/shared.net.fetch');
6
7
  var rxjs = require('rxjs');
7
8
  var invariant2 = require('tiny-invariant');
@@ -33,61 +34,6 @@ var ObservableClientImpl = class {
33
34
  process.env.NODE_ENV !== "production" && false;
34
35
  var DEBUG_CACHE_KEYS = process.env.NODE_ENV !== "production" && false;
35
36
 
36
- // ../../node_modules/.pnpm/delay@6.0.0/node_modules/delay/index.js
37
- var createAbortError = () => {
38
- const error = new Error("Delay aborted");
39
- error.name = "AbortError";
40
- return error;
41
- };
42
- var clearMethods = /* @__PURE__ */ new WeakMap();
43
- function createDelay({
44
- clearTimeout: defaultClear,
45
- setTimeout: defaultSet
46
- } = {}) {
47
- return (milliseconds, {
48
- value,
49
- signal
50
- } = {}) => {
51
- if (signal?.aborted) {
52
- return Promise.reject(createAbortError());
53
- }
54
- let timeoutId;
55
- let settle;
56
- let rejectFunction;
57
- const clear = defaultClear ?? clearTimeout;
58
- const signalListener = () => {
59
- clear(timeoutId);
60
- rejectFunction(createAbortError());
61
- };
62
- const cleanup = () => {
63
- if (signal) {
64
- signal.removeEventListener("abort", signalListener);
65
- }
66
- };
67
- const delayPromise = new Promise((resolve, reject) => {
68
- settle = () => {
69
- cleanup();
70
- resolve(value);
71
- };
72
- rejectFunction = reject;
73
- timeoutId = (defaultSet ?? setTimeout)(settle, milliseconds);
74
- });
75
- if (signal) {
76
- signal.addEventListener("abort", signalListener, {
77
- once: true
78
- });
79
- }
80
- clearMethods.set(delayPromise, () => {
81
- clear(timeoutId);
82
- timeoutId = null;
83
- settle();
84
- });
85
- return delayPromise;
86
- };
87
- }
88
- var delay = createDelay();
89
- var delay_default = delay;
90
-
91
37
  // src/observable/internal/OptimisticId.ts
92
38
  function createOptimisticId() {
93
39
  if (process.env.NODE_ENV !== "production") {
@@ -139,7 +85,7 @@ var OptimisticJob = class {
139
85
  return this;
140
86
  },
141
87
  createObject(type, pk, properties) {
142
- const create = store.client[chunkE5BQ7757_cjs.additionalContext].objectFactory2(store.client[chunkE5BQ7757_cjs.additionalContext], [{
88
+ const create = store.client[chunkDSQAJPW5_cjs.additionalContext].objectFactory2(store.client[chunkDSQAJPW5_cjs.additionalContext], [{
143
89
  $primaryKey: pk,
144
90
  $apiName: type.apiName,
145
91
  $objectType: type.apiName,
@@ -206,7 +152,8 @@ var ActionApplication = class {
206
152
  if (process.env.NODE_ENV !== "production") {
207
153
  if (ACTION_DELAY > 0) {
208
154
  logger?.debug("action done, pausing", actionResults);
209
- await delay_default(ACTION_DELAY);
155
+ const delay = (await import('../delay-QK4T7RVX.cjs')).default;
156
+ await delay(ACTION_DELAY);
210
157
  logger?.debug("action done, pausing done");
211
158
  }
212
159
  }
@@ -619,7 +566,7 @@ var BulkObjectLoader = class {
619
566
  #maxEntries;
620
567
  constructor(client, maxWait = 25, maxEntries = 100) {
621
568
  this.#client = client;
622
- this.#logger = client[chunkE5BQ7757_cjs.additionalContext].logger;
569
+ this.#logger = client[chunkDSQAJPW5_cjs.additionalContext].logger;
623
570
  this.#maxWait = maxWait;
624
571
  this.#maxEntries = maxEntries;
625
572
  }
@@ -689,7 +636,7 @@ var Query = class {
689
636
  this.cacheKey = cacheKey;
690
637
  this.store = store;
691
638
  this.#subject = observable;
692
- this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkE5BQ7757_cjs.additionalContext].logger : store.client[chunkE5BQ7757_cjs.additionalContext].logger?.child({}, {
639
+ this.logger = logger ?? (process.env.NODE_ENV === "production" ? store.client[chunkDSQAJPW5_cjs.additionalContext].logger : store.client[chunkDSQAJPW5_cjs.additionalContext].logger?.child({}, {
693
640
  msgPrefix: process.env.NODE_ENV !== "production" ? `Query<${cacheKey.type}, ${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>` : "Query"
694
641
  }));
695
642
  }
@@ -799,7 +746,7 @@ var ObjectQuery = class extends Query {
799
746
  #apiName;
800
747
  #pk;
801
748
  constructor(store, subject, type, pk, cacheKey, opts) {
802
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkE5BQ7757_cjs.additionalContext].logger?.child({}, {
749
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkDSQAJPW5_cjs.additionalContext].logger?.child({}, {
803
750
  msgPrefix: `ObjectQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
804
751
  }) : void 0);
805
752
  this.#apiName = type;
@@ -984,7 +931,7 @@ var ListQuery = class extends BaseListQuery {
984
931
  #objectSet;
985
932
  #sortFns;
986
933
  constructor(store, subject, apiType, apiName, whereClause, orderBy, cacheKey, opts) {
987
- super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkE5BQ7757_cjs.additionalContext].logger?.child({}, {
934
+ super(store, subject, opts, cacheKey, process.env.NODE_ENV !== "production" ? store.client[chunkDSQAJPW5_cjs.additionalContext].logger?.child({}, {
988
935
  msgPrefix: `ListQuery<${cacheKey.otherKeys.map((x) => JSON.stringify(x)).join(", ")}>`
989
936
  }) : void 0);
990
937
  this.#type = apiType;
@@ -1229,7 +1176,7 @@ var ListQuery = class extends BaseListQuery {
1229
1176
  }
1230
1177
  #extractRelevantObjectsForTypeInterface(changes) {
1231
1178
  const matchesApiName = ([, object]) => {
1232
- return this.#apiName in object[chunkYZHCDIYC_cjs.ObjectDefRef].interfaceMap;
1179
+ return this.#apiName in object[chunkRLFLBDLT_cjs.ObjectDefRef].interfaceMap;
1233
1180
  };
1234
1181
  const added = Array.from(changes.addedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.#apiName));
1235
1182
  const modified = Array.from(changes.modifiedObjects).filter(matchesApiName).map(([, object]) => object.$as(this.#apiName));
@@ -1405,7 +1352,7 @@ function createOrderBySortFns(orderBy) {
1405
1352
  async function reloadDataAsFullObjects(client, data) {
1406
1353
  const groups = groupBy__default.default(data, (x) => x.$objectType);
1407
1354
  const objectTypeToPrimaryKeyToObject = Object.fromEntries(await Promise.all(Object.entries(groups).map(async ([apiName, objects]) => {
1408
- const objectDef = objects[0][chunkYZHCDIYC_cjs.UnderlyingOsdkObject][chunkYZHCDIYC_cjs.ObjectDefRef];
1355
+ const objectDef = objects[0][chunkRLFLBDLT_cjs.UnderlyingOsdkObject][chunkRLFLBDLT_cjs.ObjectDefRef];
1409
1356
  const where = {
1410
1357
  [objectDef.primaryKeyApiName]: {
1411
1358
  $in: objects.map((x) => x.$primaryKey)
@@ -1613,7 +1560,7 @@ var Store = class {
1613
1560
  #finalizationRegistry;
1614
1561
  constructor(client) {
1615
1562
  this.client = client;
1616
- this.logger = client[chunkE5BQ7757_cjs.additionalContext].logger?.child({}, {
1563
+ this.logger = client[chunkDSQAJPW5_cjs.additionalContext].logger?.child({}, {
1617
1564
  msgPrefix: "Store"
1618
1565
  });
1619
1566
  this.#topLayer = this.#truthLayer;
@@ -1914,10 +1861,10 @@ var Store = class {
1914
1861
 
1915
1862
  // src/observable/ObservableClient.ts
1916
1863
  function createObservableClient(client) {
1917
- const tweakedClient = chunkYZHCDIYC_cjs.createClientFromContext({
1918
- ...client[chunkE5BQ7757_cjs.additionalContext],
1919
- fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkE5BQ7757_cjs.additionalContext].fetch, (headers) => {
1920
- headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkYZHCDIYC_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
1864
+ const tweakedClient = chunkRLFLBDLT_cjs.createClientFromContext({
1865
+ ...client[chunkDSQAJPW5_cjs.additionalContext],
1866
+ fetch: shared_net_fetch.createFetchHeaderMutator(client[chunkDSQAJPW5_cjs.additionalContext].fetch, (headers) => {
1867
+ headers.set("Fetch-User-Agent", [headers.get("Fetch-User-Agent"), chunkRLFLBDLT_cjs.OBSERVABLE_USER_AGENT].filter((x) => x && x?.length > 0).join(" "));
1921
1868
  return headers;
1922
1869
  })
1923
1870
  });
@@ -1958,9 +1905,13 @@ function getOsdkConfig(ontologyRid) {
1958
1905
  };
1959
1906
  }
1960
1907
 
1908
+ Object.defineProperty(exports, "createClientWithTransaction", {
1909
+ enumerable: true,
1910
+ get: function () { return chunkRLFLBDLT_cjs.createClientWithTransaction; }
1911
+ });
1961
1912
  Object.defineProperty(exports, "augment", {
1962
1913
  enumerable: true,
1963
- get: function () { return chunkE5BQ7757_cjs.augment; }
1914
+ get: function () { return chunkDSQAJPW5_cjs.augment; }
1964
1915
  });
1965
1916
  exports.createObservableClient = createObservableClient;
1966
1917
  exports.getMetaTagContent = getMetaTagContent;