@osdk/client 2.6.0-rc.14 → 2.7.0-beta.1

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 (124) hide show
  1. package/CHANGELOG.md +0 -19
  2. package/build/browser/MinimalClientContext.js.map +1 -1
  3. package/build/browser/actions/applyAction.js +4 -0
  4. package/build/browser/actions/applyAction.js.map +1 -1
  5. package/build/browser/createClient.js +2 -1
  6. package/build/browser/createClient.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 +17 -1
  10. package/build/browser/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
  11. package/build/browser/fetchMetadata.test.js +11 -0
  12. package/build/browser/fetchMetadata.test.js.map +1 -1
  13. package/build/browser/index.js +1 -1
  14. package/build/browser/index.js.map +1 -1
  15. package/build/browser/object/aggregate.js +1 -0
  16. package/build/browser/object/aggregate.js.map +1 -1
  17. package/build/browser/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  18. package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
  19. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js +4 -0
  20. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  21. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +10 -0
  22. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  23. package/build/browser/object/convertWireToOsdkObjects.test.js +12 -0
  24. package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
  25. package/build/browser/object/fetchPage.js +2 -0
  26. package/build/browser/object/fetchPage.js.map +1 -1
  27. package/build/browser/object/formatting/applyPropertyFormatter.js +58 -0
  28. package/build/browser/object/formatting/applyPropertyFormatter.js.map +1 -0
  29. package/build/browser/object/formatting/applyPropertyFormatter.test.js +726 -0
  30. package/build/browser/object/formatting/applyPropertyFormatter.test.js.map +1 -0
  31. package/build/browser/object/formatting/formatBoolean.js +23 -0
  32. package/build/browser/object/formatting/formatBoolean.js.map +1 -0
  33. package/build/browser/object/formatting/formatDateTime.js +158 -0
  34. package/build/browser/object/formatting/formatDateTime.js.map +1 -0
  35. package/build/browser/object/formatting/formatNumber.js +242 -0
  36. package/build/browser/object/formatting/formatNumber.js.map +1 -0
  37. package/build/browser/object/formatting/propertyFormattingUtils.js +39 -0
  38. package/build/browser/object/formatting/propertyFormattingUtils.js.map +1 -0
  39. package/build/browser/ontology/loadActionMetadata.js +3 -1
  40. package/build/browser/ontology/loadActionMetadata.js.map +1 -1
  41. package/build/browser/ontology/loadFullObjectMetadata.js +2 -1
  42. package/build/browser/ontology/loadFullObjectMetadata.js.map +1 -1
  43. package/build/browser/ontology/loadInterfaceMetadata.js +2 -1
  44. package/build/browser/ontology/loadInterfaceMetadata.js.map +1 -1
  45. package/build/browser/util/UserAgent.js +2 -2
  46. package/build/browser/util/UserAgent.js.map +1 -1
  47. package/build/cjs/{chunk-S3HJUSQ7.cjs → chunk-VDAI3GGL.cjs} +22 -2
  48. package/build/cjs/chunk-VDAI3GGL.cjs.map +1 -0
  49. package/build/cjs/{chunk-6P7VLXH3.cjs → chunk-WQL7SQ7H.cjs} +468 -68
  50. package/build/cjs/chunk-WQL7SQ7H.cjs.map +1 -0
  51. package/build/cjs/{createClient-MAHmo-Nv.d.cts → createClient-CPUYdECn.d.cts} +1 -0
  52. package/build/cjs/index.cjs +12 -8
  53. package/build/cjs/index.cjs.map +1 -1
  54. package/build/cjs/index.d.cts +2 -2
  55. package/build/cjs/public/internal.cjs +8 -8
  56. package/build/cjs/public/unstable-do-not-use.cjs +33 -33
  57. package/build/cjs/public/unstable-do-not-use.d.cts +1 -1
  58. package/build/esm/MinimalClientContext.js.map +1 -1
  59. package/build/esm/actions/applyAction.js +4 -0
  60. package/build/esm/actions/applyAction.js.map +1 -1
  61. package/build/esm/createClient.js +2 -1
  62. package/build/esm/createClient.js.map +1 -1
  63. package/build/esm/createMinimalClient.js +1 -0
  64. package/build/esm/createMinimalClient.js.map +1 -1
  65. package/build/esm/derivedProperties/createWithPropertiesObjectSet.js +17 -1
  66. package/build/esm/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
  67. package/build/esm/fetchMetadata.test.js +11 -0
  68. package/build/esm/fetchMetadata.test.js.map +1 -1
  69. package/build/esm/index.js +1 -1
  70. package/build/esm/index.js.map +1 -1
  71. package/build/esm/object/aggregate.js +1 -0
  72. package/build/esm/object/aggregate.js.map +1 -1
  73. package/build/esm/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  74. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
  75. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js +4 -0
  76. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  77. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +10 -0
  78. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  79. package/build/esm/object/convertWireToOsdkObjects.test.js +12 -0
  80. package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
  81. package/build/esm/object/fetchPage.js +2 -0
  82. package/build/esm/object/fetchPage.js.map +1 -1
  83. package/build/esm/object/formatting/applyPropertyFormatter.js +58 -0
  84. package/build/esm/object/formatting/applyPropertyFormatter.js.map +1 -0
  85. package/build/esm/object/formatting/applyPropertyFormatter.test.js +726 -0
  86. package/build/esm/object/formatting/applyPropertyFormatter.test.js.map +1 -0
  87. package/build/esm/object/formatting/formatBoolean.js +23 -0
  88. package/build/esm/object/formatting/formatBoolean.js.map +1 -0
  89. package/build/esm/object/formatting/formatDateTime.js +158 -0
  90. package/build/esm/object/formatting/formatDateTime.js.map +1 -0
  91. package/build/esm/object/formatting/formatNumber.js +242 -0
  92. package/build/esm/object/formatting/formatNumber.js.map +1 -0
  93. package/build/esm/object/formatting/propertyFormattingUtils.js +39 -0
  94. package/build/esm/object/formatting/propertyFormattingUtils.js.map +1 -0
  95. package/build/esm/ontology/loadActionMetadata.js +3 -1
  96. package/build/esm/ontology/loadActionMetadata.js.map +1 -1
  97. package/build/esm/ontology/loadFullObjectMetadata.js +2 -1
  98. package/build/esm/ontology/loadFullObjectMetadata.js.map +1 -1
  99. package/build/esm/ontology/loadInterfaceMetadata.js +2 -1
  100. package/build/esm/ontology/loadInterfaceMetadata.js.map +1 -1
  101. package/build/esm/util/UserAgent.js +2 -2
  102. package/build/esm/util/UserAgent.js.map +1 -1
  103. package/build/types/MinimalClientContext.d.ts +1 -0
  104. package/build/types/MinimalClientContext.d.ts.map +1 -1
  105. package/build/types/actions/applyAction.d.ts.map +1 -1
  106. package/build/types/createClient.d.ts +1 -0
  107. package/build/types/createClient.d.ts.map +1 -1
  108. package/build/types/index.d.ts +1 -1
  109. package/build/types/index.d.ts.map +1 -1
  110. package/build/types/object/formatting/applyPropertyFormatter.d.ts +18 -0
  111. package/build/types/object/formatting/applyPropertyFormatter.d.ts.map +1 -0
  112. package/build/types/object/formatting/applyPropertyFormatter.test.d.ts +1 -0
  113. package/build/types/object/formatting/applyPropertyFormatter.test.d.ts.map +1 -0
  114. package/build/types/object/formatting/formatBoolean.d.ts +5 -0
  115. package/build/types/object/formatting/formatBoolean.d.ts.map +1 -0
  116. package/build/types/object/formatting/formatDateTime.d.ts +6 -0
  117. package/build/types/object/formatting/formatDateTime.d.ts.map +1 -0
  118. package/build/types/object/formatting/formatNumber.d.ts +15 -0
  119. package/build/types/object/formatting/formatNumber.d.ts.map +1 -0
  120. package/build/types/object/formatting/propertyFormattingUtils.d.ts +10 -0
  121. package/build/types/object/formatting/propertyFormattingUtils.d.ts.map +1 -0
  122. package/package.json +11 -11
  123. package/build/cjs/chunk-6P7VLXH3.cjs.map +0 -1
  124. package/build/cjs/chunk-S3HJUSQ7.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"propertyFormattingUtils.js","names":["resolvePropertyReference","ref","objectData","type","value","propertyApiName","String","undefined","getBrowserLocale","navigator","language"],"sources":["propertyFormattingUtils.ts"],"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 type { PropertyTypeReferenceOrStringConstant } from \"@osdk/api\";\nimport type { SimpleOsdkProperties } from \"../SimpleOsdkProperties.js\";\n\n/**\n * Resolves a property reference or string constant to its actual value\n */\n\nexport function resolvePropertyReference(\n ref: PropertyTypeReferenceOrStringConstant,\n objectData: SimpleOsdkProperties,\n): string | undefined {\n if (ref.type === \"constant\") {\n return ref.value;\n } else if (ref.type === \"propertyType\") {\n const value = objectData[ref.propertyApiName];\n return value != null ? String(value) : undefined;\n }\n return undefined;\n}\n/**\n * Gets the browser's current locale\n */\nexport function getBrowserLocale(): string {\n if (typeof navigator !== \"undefined\" && navigator.language != null) {\n return navigator.language;\n }\n return \"en-US\";\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;;AAEA,OAAO,SAASA,wBAAwBA,CACtCC,GAA0C,EAC1CC,UAAgC,EACZ;EACpB,IAAID,GAAG,CAACE,IAAI,KAAK,UAAU,EAAE;IAC3B,OAAOF,GAAG,CAACG,KAAK;EAClB,CAAC,MAAM,IAAIH,GAAG,CAACE,IAAI,KAAK,cAAc,EAAE;IACtC,MAAMC,KAAK,GAAGF,UAAU,CAACD,GAAG,CAACI,eAAe,CAAC;IAC7C,OAAOD,KAAK,IAAI,IAAI,GAAGE,MAAM,CAACF,KAAK,CAAC,GAAGG,SAAS;EAClD;EACA,OAAOA,SAAS;AAClB;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAAA,EAAW;EACzC,IAAI,OAAOC,SAAS,KAAK,WAAW,IAAIA,SAAS,CAACC,QAAQ,IAAI,IAAI,EAAE;IAClE,OAAOD,SAAS,CAACC,QAAQ;EAC3B;EACA,OAAO,OAAO;AAChB","ignoreList":[]}
@@ -17,7 +17,9 @@
17
17
  import * as OntologiesV2 from "@osdk/foundry.ontologies";
18
18
  import { wireActionTypeV2ToSdkActionMetadata } from "@osdk/generator-converters";
19
19
  export async function loadActionMetadata(client, actionType) {
20
- const r = await OntologiesV2.ActionTypesV2.get(client, await client.ontologyRid, actionType);
20
+ const r = await OntologiesV2.ActionTypesV2.get(client, await client.ontologyRid, actionType, {
21
+ branch: client.branch
22
+ });
21
23
  return wireActionTypeV2ToSdkActionMetadata(r);
22
24
  }
23
25
  //# sourceMappingURL=loadActionMetadata.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loadActionMetadata.js","names":["OntologiesV2","wireActionTypeV2ToSdkActionMetadata","loadActionMetadata","client","actionType","r","ActionTypesV2","get","ontologyRid"],"sources":["loadActionMetadata.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { ActionMetadata } from \"@osdk/api\";\nimport * as OntologiesV2 from \"@osdk/foundry.ontologies\";\nimport {\n wireActionTypeV2ToSdkActionMetadata,\n} from \"@osdk/generator-converters\";\nimport type { MinimalClient } from \"../MinimalClientContext.js\";\n\nexport async function loadActionMetadata(\n client: MinimalClient,\n actionType: string,\n): Promise<ActionMetadata> {\n const r = await OntologiesV2.ActionTypesV2.get(\n client,\n await client.ontologyRid,\n actionType,\n );\n\n return wireActionTypeV2ToSdkActionMetadata(r);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAO,KAAKA,YAAY,MAAM,0BAA0B;AACxD,SACEC,mCAAmC,QAC9B,4BAA4B;AAGnC,OAAO,eAAeC,kBAAkBA,CACtCC,MAAqB,EACrBC,UAAkB,EACO;EACzB,MAAMC,CAAC,GAAG,MAAML,YAAY,CAACM,aAAa,CAACC,GAAG,CAC5CJ,MAAM,EACN,MAAMA,MAAM,CAACK,WAAW,EACxBJ,UACF,CAAC;EAED,OAAOH,mCAAmC,CAACI,CAAC,CAAC;AAC/C","ignoreList":[]}
1
+ {"version":3,"file":"loadActionMetadata.js","names":["OntologiesV2","wireActionTypeV2ToSdkActionMetadata","loadActionMetadata","client","actionType","r","ActionTypesV2","get","ontologyRid","branch"],"sources":["loadActionMetadata.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { ActionMetadata } from \"@osdk/api\";\nimport * as OntologiesV2 from \"@osdk/foundry.ontologies\";\nimport {\n wireActionTypeV2ToSdkActionMetadata,\n} from \"@osdk/generator-converters\";\nimport type { MinimalClient } from \"../MinimalClientContext.js\";\n\nexport async function loadActionMetadata(\n client: MinimalClient,\n actionType: string,\n): Promise<ActionMetadata> {\n const r = await OntologiesV2.ActionTypesV2.get(\n client,\n await client.ontologyRid,\n actionType,\n { branch: client.branch },\n );\n\n return wireActionTypeV2ToSdkActionMetadata(r);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAO,KAAKA,YAAY,MAAM,0BAA0B;AACxD,SACEC,mCAAmC,QAC9B,4BAA4B;AAGnC,OAAO,eAAeC,kBAAkBA,CACtCC,MAAqB,EACrBC,UAAkB,EACO;EACzB,MAAMC,CAAC,GAAG,MAAML,YAAY,CAACM,aAAa,CAACC,GAAG,CAC5CJ,MAAM,EACN,MAAMA,MAAM,CAACK,WAAW,EACxBJ,UAAU,EACV;IAAEK,MAAM,EAAEN,MAAM,CAACM;EAAO,CAC1B,CAAC;EAED,OAAOR,mCAAmC,CAACI,CAAC,CAAC;AAC/C","ignoreList":[]}
@@ -18,7 +18,8 @@ import * as OntologiesV2 from "@osdk/foundry.ontologies";
18
18
  import { wireObjectTypeFullMetadataToSdkObjectMetadata } from "@osdk/generator-converters";
19
19
  export async function loadFullObjectMetadata(client, objectType) {
20
20
  const full = await OntologiesV2.ObjectTypesV2.getFullMetadata(client, await client.ontologyRid, objectType, {
21
- preview: true
21
+ preview: true,
22
+ branch: client.branch
22
23
  });
23
24
  const ret = wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);
24
25
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"loadFullObjectMetadata.js","names":["OntologiesV2","wireObjectTypeFullMetadataToSdkObjectMetadata","loadFullObjectMetadata","client","objectType","full","ObjectTypesV2","getFullMetadata","ontologyRid","preview","ret"],"sources":["loadFullObjectMetadata.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { ObjectMetadata } from \"@osdk/api\";\nimport * as OntologiesV2 from \"@osdk/foundry.ontologies\";\nimport { wireObjectTypeFullMetadataToSdkObjectMetadata } from \"@osdk/generator-converters\";\nimport type { MinimalClient } from \"../MinimalClientContext.js\";\n\nexport async function loadFullObjectMetadata(\n client: MinimalClient,\n objectType: string,\n): Promise<ObjectMetadata & { rid: string }> {\n const full = await OntologiesV2.ObjectTypesV2.getFullMetadata(\n client,\n await client.ontologyRid,\n objectType,\n { preview: true },\n );\n const ret = wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);\n return { ...ret };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAO,KAAKA,YAAY,MAAM,0BAA0B;AACxD,SAASC,6CAA6C,QAAQ,4BAA4B;AAG1F,OAAO,eAAeC,sBAAsBA,CAC1CC,MAAqB,EACrBC,UAAkB,EACyB;EAC3C,MAAMC,IAAI,GAAG,MAAML,YAAY,CAACM,aAAa,CAACC,eAAe,CAC3DJ,MAAM,EACN,MAAMA,MAAM,CAACK,WAAW,EACxBJ,UAAU,EACV;IAAEK,OAAO,EAAE;EAAK,CAClB,CAAC;EACD,MAAMC,GAAG,GAAGT,6CAA6C,CAACI,IAAI,EAAE,IAAI,CAAC;EACrE,OAAO;IAAE,GAAGK;EAAI,CAAC;AACnB","ignoreList":[]}
1
+ {"version":3,"file":"loadFullObjectMetadata.js","names":["OntologiesV2","wireObjectTypeFullMetadataToSdkObjectMetadata","loadFullObjectMetadata","client","objectType","full","ObjectTypesV2","getFullMetadata","ontologyRid","preview","branch","ret"],"sources":["loadFullObjectMetadata.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { ObjectMetadata } from \"@osdk/api\";\nimport * as OntologiesV2 from \"@osdk/foundry.ontologies\";\nimport { wireObjectTypeFullMetadataToSdkObjectMetadata } from \"@osdk/generator-converters\";\nimport type { MinimalClient } from \"../MinimalClientContext.js\";\n\nexport async function loadFullObjectMetadata(\n client: MinimalClient,\n objectType: string,\n): Promise<ObjectMetadata & { rid: string }> {\n const full = await OntologiesV2.ObjectTypesV2.getFullMetadata(\n client,\n await client.ontologyRid,\n objectType,\n { preview: true, branch: client.branch },\n );\n const ret = wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);\n return { ...ret };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAO,KAAKA,YAAY,MAAM,0BAA0B;AACxD,SAASC,6CAA6C,QAAQ,4BAA4B;AAG1F,OAAO,eAAeC,sBAAsBA,CAC1CC,MAAqB,EACrBC,UAAkB,EACyB;EAC3C,MAAMC,IAAI,GAAG,MAAML,YAAY,CAACM,aAAa,CAACC,eAAe,CAC3DJ,MAAM,EACN,MAAMA,MAAM,CAACK,WAAW,EACxBJ,UAAU,EACV;IAAEK,OAAO,EAAE,IAAI;IAAEC,MAAM,EAAEP,MAAM,CAACO;EAAO,CACzC,CAAC;EACD,MAAMC,GAAG,GAAGV,6CAA6C,CAACI,IAAI,EAAE,IAAI,CAAC;EACrE,OAAO;IAAE,GAAGM;EAAI,CAAC;AACnB","ignoreList":[]}
@@ -18,7 +18,8 @@ import * as OntologiesV2 from "@osdk/foundry.ontologies";
18
18
  import { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from "@osdk/generator-converters";
19
19
  export async function loadInterfaceMetadata(client, objectType) {
20
20
  const r = await OntologiesV2.OntologyInterfaces.get(client, await client.ontologyRid, objectType, {
21
- preview: true
21
+ preview: true,
22
+ branch: client.branch
22
23
  });
23
24
  return __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
24
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"loadInterfaceMetadata.js","names":["OntologiesV2","__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition","loadInterfaceMetadata","client","objectType","r","OntologyInterfaces","get","ontologyRid","preview"],"sources":["loadInterfaceMetadata.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { InterfaceMetadata } from \"@osdk/api\";\nimport * as OntologiesV2 from \"@osdk/foundry.ontologies\";\nimport { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from \"@osdk/generator-converters\";\nimport type { MinimalClient } from \"../MinimalClientContext.js\";\n\nexport async function loadInterfaceMetadata(\n client: MinimalClient,\n objectType: string,\n): Promise<InterfaceMetadata> {\n const r = await OntologiesV2.OntologyInterfaces.get(\n client,\n await client.ontologyRid,\n objectType,\n { preview: true },\n );\n\n return __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAO,KAAKA,YAAY,MAAM,0BAA0B;AACxD,SAASC,mDAAmD,QAAQ,4BAA4B;AAGhG,OAAO,eAAeC,qBAAqBA,CACzCC,MAAqB,EACrBC,UAAkB,EACU;EAC5B,MAAMC,CAAC,GAAG,MAAML,YAAY,CAACM,kBAAkB,CAACC,GAAG,CACjDJ,MAAM,EACN,MAAMA,MAAM,CAACK,WAAW,EACxBJ,UAAU,EACV;IAAEK,OAAO,EAAE;EAAK,CAClB,CAAC;EAED,OAAOR,mDAAmD,CAACI,CAAC,EAAE,IAAI,CAAC;AACrE","ignoreList":[]}
1
+ {"version":3,"file":"loadInterfaceMetadata.js","names":["OntologiesV2","__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition","loadInterfaceMetadata","client","objectType","r","OntologyInterfaces","get","ontologyRid","preview","branch"],"sources":["loadInterfaceMetadata.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { InterfaceMetadata } from \"@osdk/api\";\nimport * as OntologiesV2 from \"@osdk/foundry.ontologies\";\nimport { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from \"@osdk/generator-converters\";\nimport type { MinimalClient } from \"../MinimalClientContext.js\";\n\nexport async function loadInterfaceMetadata(\n client: MinimalClient,\n objectType: string,\n): Promise<InterfaceMetadata> {\n const r = await OntologiesV2.OntologyInterfaces.get(\n client,\n await client.ontologyRid,\n objectType,\n { preview: true, branch: client.branch },\n );\n\n return __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAO,KAAKA,YAAY,MAAM,0BAA0B;AACxD,SAASC,mDAAmD,QAAQ,4BAA4B;AAGhG,OAAO,eAAeC,qBAAqBA,CACzCC,MAAqB,EACrBC,UAAkB,EACU;EAC5B,MAAMC,CAAC,GAAG,MAAML,YAAY,CAACM,kBAAkB,CAACC,GAAG,CACjDJ,MAAM,EACN,MAAMA,MAAM,CAACK,WAAW,EACxBJ,UAAU,EACV;IAAEK,OAAO,EAAE,IAAI;IAAEC,MAAM,EAAEP,MAAM,CAACO;EAAO,CACzC,CAAC;EAED,OAAOT,mDAAmD,CAACI,CAAC,EAAE,IAAI,CAAC;AACrE","ignoreList":[]}
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- export const USER_AGENT = `osdk-client/${"2.6.0-rc.14"}`;
18
- export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.6.0-rc.14"}`;
17
+ export const USER_AGENT = `osdk-client/${"2.7.0-beta.1"}`;
18
+ export const OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.7.0-beta.1"}`;
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 =\n `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,8BAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GACxC,yCAAuD","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 =\n `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,+BAA4C;AAC9E,OAAO,MAAMC,qBAA6B,GACxC,0CAAuD","ignoreList":[]}
@@ -749,6 +749,7 @@ async function fetchInterfacePage(client, interfaceType, args, objectSet, useSna
749
749
  }, client, interfaceType);
750
750
  const result = await OntologyObjectSet_exports.loadMultipleObjectTypes(addUserAgentAndRequestContextHeaders(client, interfaceType), await client.ontologyRid, requestBody, {
751
751
  preview: true,
752
+ branch: client.branch,
752
753
  transactionId: client.transactionId
753
754
  });
754
755
  return Promise.resolve({
@@ -846,6 +847,7 @@ async function fetchObjectPage(client, objectType, args, objectSet, useSnapshot
846
847
  snapshot: useSnapshot
847
848
  }, client, objectType);
848
849
  const r = await OntologyObjectSet_exports.load(addUserAgentAndRequestContextHeaders(client, objectType), await client.ontologyRid, requestBody, {
850
+ branch: client.branch,
849
851
  transactionId: client.transactionId
850
852
  });
851
853
  return Promise.resolve({
@@ -1387,6 +1389,23 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
1387
1389
  const selectorResult = derivedPropertyDefinitionFactory(wrappedObjectSet, definitionMap);
1388
1390
  definitionMap.set(selectorResult, wrappedObjectSet);
1389
1391
  return selectorResult;
1392
+ },
1393
+ constant: {
1394
+ double: (value) => {
1395
+ process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
1396
+ },
1397
+ integer: (value) => {
1398
+ process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
1399
+ },
1400
+ long: (value) => {
1401
+ process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
1402
+ },
1403
+ datetime: (value) => {
1404
+ process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
1405
+ },
1406
+ timestamp: (value) => {
1407
+ process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
1408
+ }
1390
1409
  }
1391
1410
  };
1392
1411
  }
@@ -1506,6 +1525,7 @@ async function aggregate3(clientCtx, objectType, objectSet = resolveBaseObjectSe
1506
1525
  groupBy: body.groupBy,
1507
1526
  aggregation: body.aggregation
1508
1527
  }, {
1528
+ branch: clientCtx.branch,
1509
1529
  transactionId: clientCtx.transactionId
1510
1530
  });
1511
1531
  if (!req.$groupBy) {
@@ -2240,5 +2260,5 @@ exports.hydrateAttachmentFromRidInternal = hydrateAttachmentFromRidInternal;
2240
2260
  exports.isObjectSet = isObjectSet;
2241
2261
  exports.isWireObjectSet = isWireObjectSet;
2242
2262
  exports.symbolClientContext = symbolClientContext;
2243
- //# sourceMappingURL=chunk-S3HJUSQ7.cjs.map
2244
- //# sourceMappingURL=chunk-S3HJUSQ7.cjs.map
2263
+ //# sourceMappingURL=chunk-VDAI3GGL.cjs.map
2264
+ //# sourceMappingURL=chunk-VDAI3GGL.cjs.map