@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":[]}
@@ -13,6 +13,7 @@ export interface MinimalClient extends SharedClientContext {
13
13
  ontologyProvider: OntologyProvider;
14
14
  logger?: Logger;
15
15
  transactionId?: string;
16
+ branch?: string;
16
17
  clientCacheKey: ClientCacheKey;
17
18
  requestContext: RequestContext;
18
19
  narrowTypeInterfaceOrObjectMapping: Record<string, "object" | "interface">;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,cAAc,WAAY;AACxC,cAAc,2BAA2B,sBAAuB;AAMhE,cAAc,wBAAwB,gCAAiC;AAEvE,cAAcA;AAEd,YAAY,iBAAiB,CAAE,IAAG;WAAY;AAAY;AAE1D,YAAY,iBAAiB;CAC3B;AACD;AAED,iBAAiB,sBAAsB,oBAAoB;CACzD,sBAAsB;CACtB,kBAAkB;CAClB,SAAS;CACT;CAQA,gBAAgB;CAChB,gBAAgB;CAChB,oCAAoC,eAAe,WAAW;AAC/D;AAED,YAAY,sBAAsB;CAChC,UAAU;CACV,UAAU;AACX;AAED,iBAAiB,sBAAsB;CACrC,sBAAsB;AACvB","names":["tag: unique symbol"],"sources":["../../src/MinimalClientContext.ts"],"version":3,"file":"MinimalClientContext.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,cAAc,WAAY;AACxC,cAAc,2BAA2B,sBAAuB;AAMhE,cAAc,wBAAwB,gCAAiC;AAEvE,cAAcA;AAEd,YAAY,iBAAiB,CAAE,IAAG;WAAY;AAAY;AAE1D,YAAY,iBAAiB;CAC3B;AACD;AAED,iBAAiB,sBAAsB,oBAAoB;CACzD,sBAAsB;CACtB,kBAAkB;CAClB,SAAS;CACT;CACA;CAQA,gBAAgB;CAChB,gBAAgB;CAChB,oCAAoC,eAAe,WAAW;AAC/D;AAED,YAAY,sBAAsB;CAChC,UAAU;CACV,UAAU;AACX;AAED,iBAAiB,sBAAsB;CACrC,sBAAsB;AACvB","names":["tag: unique symbol"],"sources":["../../src/MinimalClientContext.ts"],"version":3,"file":"MinimalClientContext.d.ts"}
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,kBACA,oBACA,gBACA,aACA,4BACA,oBACA,yBACA,uBAAuB,2BACvB,6BACK,WAAY;AACnB,cACE,4BAEA,iCACK,0BAA2B;AAElC,cAAc,qBAAqB,4BAA6B;AAGhE,cAAc,YAAY,iBAAkB;AAC5C,cAAc,qBAAqB,0BAA2B;AAC9D,cAAc,iBAAiB,sBAAuB;KAIjD,SAAS,YAAY,KAAK,eAAe,gBAAgB,WAC5D,IAAI,gBAAgB,eAAe,SAAS,aAAa,eACrD,YAAY,WAAW,eACvB,IAAI,gBAAgB,eAAe,SAAS,gBAAgB,eAC1D,YAAY,cAAc,eAC5B,IAAI,gBAAgB,eAAe,SAAS,aAAa,eACvD,YAAY,WAAW,eACzB,IAAI,sBAAsB,wBACxB,YAAY,cAAc,IAAI;KAGjC,eAAe,YAAY,eAAe,kBAC7C,IAAI,wBAAwB,OAAO,MAAM,SAAS,QAC9C,SAAS;KAEV,kBAAkB,UAAU,iCAC9B,WAAW,KAAI,eAAe,EAAE;AAGnC,YAAY,qBACV,UAAU,8BACR,cAAc,mBAAmB,kBAAkB,KACnD,UAAU,kBAAkB,IAAI,cAAc;AAElD,YAAY,uBACV,UAAU,yBACR;CACF,cACG,0BAA0B,GAAG,cAAc,kCACxC,gBAAgB,0BAA0B,GAAG,iBAC7C,0BAA0B,GAAG,cAAc;CAEjD,mBACG,0BAA0B,GAAG,cAAc,uCAChC,qBAAqB,0BAA0B,GAAG,iBAC1D,0BAA0B,GAAG,cAAc;AAClD;KAEI,6BAA6B,YAEhC,eAAe;AAGjB,YAAY,gBACV,UAAU,YAAY,eAAe;CAErC,UAAU,KAAK,qBAAqB;CACpC,WAAW;EAEXA,MAAM,GACNC,UAAU,OACP,QACH,2BAA2B;AAG7B,YAAY,qBACV,UAAU,YAAY,eAAe;CAErC,UAAU,KAAK,qBAAqB;CACpC,WAAW;EAEXD,MAAM,GACNC,UAAU,OACP,QACH,2BAA2B;AAG7B,OAAO,iBAAe;CACpB,WAAW;CACX,UACI,qBAAqB,0BAA0B,IAAI,iBACnD,qBAAqB,0BAA0B,IAAI;CACvD,WAAW,UAAU,qBACnB,0BAA0B,IAAI,mBAC1B,0BACF;EAEJC,QAAQ,eACRC,QAAQ,IACRC,aAAa,GACbC,UAAS,KACR,QACD,2BAA2B;AA2G7B,OAAO,iBAAS,oBACdC,UAAU,4BAA4B,6BACrC","names":["args: A","options?: OP","client: MinimalClient","action: AD","parameters?: P","options: Op","response: SyncApplyActionResponseV2 | BatchApplyActionResponseV2"],"sources":["../../../src/actions/applyAction.ts"],"version":3,"file":"applyAction.d.ts"}
1
+ {"mappings":"AAgBA,cACE,kBACA,oBACA,gBACA,aACA,4BACA,oBACA,yBACA,uBAAuB,2BACvB,6BACK,WAAY;AACnB,cACE,4BAEA,iCACK,0BAA2B;AAElC,cAAc,qBAAqB,4BAA6B;AAGhE,cAAc,YAAY,iBAAkB;AAC5C,cAAc,qBAAqB,0BAA2B;AAC9D,cAAc,iBAAiB,sBAAuB;KAIjD,SAAS,YAAY,KAAK,eAAe,gBAAgB,WAC5D,IAAI,gBAAgB,eAAe,SAAS,aAAa,eACrD,YAAY,WAAW,eACvB,IAAI,gBAAgB,eAAe,SAAS,gBAAgB,eAC1D,YAAY,cAAc,eAC5B,IAAI,gBAAgB,eAAe,SAAS,aAAa,eACvD,YAAY,WAAW,eACzB,IAAI,sBAAsB,wBACxB,YAAY,cAAc,IAAI;KAGjC,eAAe,YAAY,eAAe,kBAC7C,IAAI,wBAAwB,OAAO,MAAM,SAAS,QAC9C,SAAS;KAEV,kBAAkB,UAAU,iCAC9B,WAAW,KAAI,eAAe,EAAE;AAGnC,YAAY,qBACV,UAAU,8BACR,cAAc,mBAAmB,kBAAkB,KACnD,UAAU,kBAAkB,IAAI,cAAc;AAElD,YAAY,uBACV,UAAU,yBACR;CACF,cACG,0BAA0B,GAAG,cAAc,kCACxC,gBAAgB,0BAA0B,GAAG,iBAC7C,0BAA0B,GAAG,cAAc;CAEjD,mBACG,0BAA0B,GAAG,cAAc,uCAChC,qBAAqB,0BAA0B,GAAG,iBAC1D,0BAA0B,GAAG,cAAc;AAClD;KAEI,6BAA6B,YAEhC,eAAe;AAGjB,YAAY,gBACV,UAAU,YAAY,eAAe;CAErC,UAAU,KAAK,qBAAqB;CACpC,WAAW;EAEXA,MAAM,GACNC,UAAU,OACP,QACH,2BAA2B;AAG7B,YAAY,qBACV,UAAU,YAAY,eAAe;CAErC,UAAU,KAAK,qBAAqB;CACpC,WAAW;EAEXD,MAAM,GACNC,UAAU,OACP,QACH,2BAA2B;AAG7B,OAAO,iBAAe;CACpB,WAAW;CACX,UACI,qBAAqB,0BAA0B,IAAI,iBACnD,qBAAqB,0BAA0B,IAAI;CACvD,WAAW,UAAU,qBACnB,0BAA0B,IAAI,mBAC1B,0BACF;EAEJC,QAAQ,eACRC,QAAQ,IACRC,aAAa,GACbC,UAAS,KACR,QACD,2BAA2B;AA6G7B,OAAO,iBAAS,oBACdC,UAAU,4BAA4B,6BACrC","names":["args: A","options?: OP","client: MinimalClient","action: AD","parameters?: P","options: Op","response: SyncApplyActionResponseV2 | BatchApplyActionResponseV2"],"sources":["../../../src/actions/applyAction.ts"],"version":3,"file":"applyAction.d.ts"}
@@ -2,5 +2,6 @@ import type { Logger } from "@osdk/api";
2
2
  import { type Client } from "./Client.js";
3
3
  export declare const createClient: (baseUrl: string, ontologyRid: string | Promise<string>, tokenProvider: () => Promise<string>, options?: {
4
4
  logger?: Logger
5
+ branch?: string
5
6
  } | undefined, fetchFn?: typeof fetch | undefined) => Client;
6
7
  export declare const createClientWithTransaction: (transactionRid: string, ...args: Parameters<typeof createClient>) => Client;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAIE,cASK,WAAY;AAkBnB,cAAiC,cAAc,aAAc;AAqQ7D,OAAO,cAAMA,eACXC,iBACAC,sBAAsB,iBACtBC,qBAAqB,iBACrBC,UAAU;CACR,SAAS;AACV,eACDC,iBAAiB,sBACd;AAML,OAAO,cAAMC,8BACXC,wBACA,GAAG,MAAM,kBAAkB,kBACxB","names":["createClient: (\n baseUrl: string,\n ontologyRid: string | Promise<string>,\n tokenProvider: () => Promise<string>,\n options?: {\n logger?: Logger;\n } | undefined,\n fetchFn?: typeof fetch | undefined,\n) => Client","baseUrl: string","ontologyRid: string | Promise<string>","tokenProvider: () => Promise<string>","options?: {\n logger?: Logger;\n } | undefined","fetchFn?: typeof fetch | undefined","createClientWithTransaction: (\n transactionRid: string,\n ...args: Parameters<typeof createClient>\n) => Client","transactionRid: string"],"sources":["../../src/createClient.ts"],"version":3,"file":"createClient.d.ts"}
1
+ {"mappings":"AAgBA,cAIE,cASK,WAAY;AAkBnB,cAAiC,cAAc,aAAc;AAsQ7D,OAAO,cAAMA,eACXC,iBACAC,sBAAsB,iBACtBC,qBAAqB,iBACrBC,UAAU;CACR,SAAS;CACT;AACD,eACDC,iBAAiB,sBACd;AAML,OAAO,cAAMC,8BACXC,wBACA,GAAG,MAAM,kBAAkB,kBACxB","names":["createClient: (\n baseUrl: string,\n ontologyRid: string | Promise<string>,\n tokenProvider: () => Promise<string>,\n options?: {\n logger?: Logger;\n branch?: string;\n } | undefined,\n fetchFn?: typeof fetch | undefined,\n) => Client","baseUrl: string","ontologyRid: string | Promise<string>","tokenProvider: () => Promise<string>","options?: {\n logger?: Logger;\n branch?: string;\n } | undefined","fetchFn?: typeof fetch | undefined","createClientWithTransaction: (\n transactionRid: string,\n ...args: Parameters<typeof createClient>\n) => Client","transactionRid: string"],"sources":["../../src/createClient.ts"],"version":3,"file":"createClient.d.ts"}
@@ -1,4 +1,4 @@
1
- export { isOk } from "@osdk/api";
1
+ export { isOk, NULL_VALUE } from "@osdk/api";
2
2
  export type { ActionDefinition, ActionEditResponse, ActionMetadata, ActionParam, ActionReturnTypeForOptions, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions, Attachment, CompileTimeMetadata, DerivedProperty, InterfaceDefinition, InterfaceMetadata, Logger, MediaReference, MediaUpload, ObjectMetadata, ObjectSet, ObjectSpecifier, ObjectTypeDefinition, Osdk, OsdkObject, OsdkObjectCreatePropertyType, OsdkObjectPropertyType, PageResult, PropertyDef, PropertyKeys, PropertyValueWireToClient, QueryDefinition, QueryParam, QueryResult, Range, Result, SingleLinkAccessor, ThreeDimensionalAggregation, TwoDimensionalAggregation, VersionBound, WhereClause } from "@osdk/api";
3
3
  export { PalantirApiError } from "@osdk/shared.net.errors";
4
4
  export { ActionValidationError } from "./actions/ActionValidationError.js";
@@ -1 +1 @@
1
- {"mappings":"AAkBA,SAAS,YAAY;AACrB,cACE,kBACA,oBACA,gBACA,aACA,4BACA,0BACA,oBACA,yBACA,YACA,qBACA,iBACA,qBACA,mBACA,QACA,gBACA,aACA,gBACA,WACA,iBACA,sBACA,MACA,YACA,8BACA,wBACA,YACA,aACA,cACA,2BACA,iBACA,YACA,aACA,OACA,QACA,oBACA,6BACA,2BACA,cACA,mBACK;AACP,SAAS,wBAAwB;AAEjC,SAAS,6BAA6B;AACtC,cAAc,cAAc;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AACrC,cAAc,sBAAsB;AACpC,SAAS,8BAA8B;AACvC,cAAc,qBAAqB;AAEnC,SACE,aACA,wBACA,wBACK;AAEP,SACE,qCACA,4CACK","names":[],"sources":["../../src/index.ts"],"version":3,"file":"index.d.ts"}
1
+ {"mappings":"AAkBA,SAAS,MAAM,kBAAkB;AACjC,cACE,kBACA,oBACA,gBACA,aACA,4BACA,0BACA,oBACA,yBACA,YACA,qBACA,iBACA,qBACA,mBACA,QACA,gBACA,aACA,gBACA,WACA,iBACA,sBACA,MACA,YACA,8BACA,wBACA,YACA,aACA,cACA,2BACA,iBACA,YACA,aACA,OACA,QACA,oBACA,6BACA,2BACA,cACA,mBACK;AACP,SAAS,wBAAwB;AAEjC,SAAS,6BAA6B;AACtC,cAAc,cAAc;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AACrC,cAAc,sBAAsB;AACpC,SAAS,8BAA8B;AACvC,cAAc,qBAAqB;AAEnC,SACE,aACA,wBACA,wBACK;AAEP,SACE,qCACA,4CACK","names":[],"sources":["../../src/index.ts"],"version":3,"file":"index.d.ts"}
@@ -0,0 +1,18 @@
1
+ import type { ObjectMetadata } from "@osdk/api";
2
+ import type { SimpleOsdkProperties } from "../SimpleOsdkProperties.js";
3
+ export interface FormatPropertyOptions {
4
+ locale?: string;
5
+ timezoneId?: string;
6
+ }
7
+ type PropertyValue = string | Array<string> | number | Array<number> | boolean | Array<boolean> | undefined;
8
+ /**
9
+ * Applies formatting rules to a property value and returns the formatted string value.
10
+ *
11
+ * @param propertyValue - The value of the property to format
12
+ * @returns The formatted string value, or undefined if the property cannot be formatted
13
+ *
14
+ * @experimental This is a stub implementation that returns undefined.
15
+ * The actual formatting logic will be implemented later.
16
+ */
17
+ export declare function applyPropertyFormatter(propertyValue: PropertyValue, propertyDefinition: ObjectMetadata.Property | undefined, objectData: SimpleOsdkProperties, options?: FormatPropertyOptions): string | undefined;
18
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,sBAAmD,WAAY;AAC7E,cAAc,4BAA4B,4BAA6B;AAMvE,iBAAiB,sBAAsB;CACrC;CACA;AACD;KAEI,yBAED,yBAEA,0BAEA;;;;;;;;;;AAcJ,OAAO,iBAAS,uBACdA,eAAe,eACfC,oBAAoB,eAAe,sBACnCC,YAAY,sBACZC,UAAS","names":["propertyValue: PropertyValue","propertyDefinition: ObjectMetadata.Property | undefined","objectData: SimpleOsdkProperties","options: FormatPropertyOptions"],"sources":["../../../../src/object/formatting/applyPropertyFormatter.ts"],"version":3,"file":"applyPropertyFormatter.d.ts"}
@@ -0,0 +1 @@
1
+ {"mappings":"","names":[],"sources":["../../../../src/object/formatting/applyPropertyFormatter.test.ts"],"version":3,"file":"applyPropertyFormatter.test.d.ts"}
@@ -0,0 +1,5 @@
1
+ import type { PropertyBooleanFormattingRule } from "@osdk/api";
2
+ /**
3
+ * Formats a boolean value according to the specified formatting rule
4
+ */
5
+ export declare function formatBoolean(value: boolean, rule: PropertyBooleanFormattingRule): string;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,qCAAqC,WAAY;;;;AAK/D,OAAO,iBAAS,cACdA,gBACAC,MAAM","names":["value: boolean","rule: PropertyBooleanFormattingRule"],"sources":["../../../../src/object/formatting/formatBoolean.ts"],"version":3,"file":"formatBoolean.d.ts"}
@@ -0,0 +1,6 @@
1
+ import type { DatetimeFormat, DatetimeTimezone } from "@osdk/api";
2
+ import type { SimpleOsdkProperties } from "../SimpleOsdkProperties.js";
3
+ /**
4
+ * Formats a date/timestamp value according to the specified formatting rule
5
+ */
6
+ export declare function formatDateTime(value: Date, format: DatetimeFormat, timezone: DatetimeTimezone | undefined, objectData: SimpleOsdkProperties, locale: string, userTimezoneOverride?: string): string | undefined;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cACE,gBAEA,wBACK,WAAY;AAEnB,cAAc,4BAA4B,4BAA6B;;;;AAMvE,OAAO,iBAAS,eACdA,OAAO,MACPC,QAAQ,gBACRC,UAAU,8BACVC,YAAY,sBACZC,gBACAC","names":["value: Date","format: DatetimeFormat","timezone: DatetimeTimezone | undefined","objectData: SimpleOsdkProperties","locale: string","userTimezoneOverride?: string"],"sources":["../../../../src/object/formatting/formatDateTime.ts"],"version":3,"file":"formatDateTime.d.ts"}
@@ -0,0 +1,15 @@
1
+ import type { PropertyNumberFormattingRuleType } from "@osdk/api";
2
+ import type { SimpleOsdkProperties } from "../SimpleOsdkProperties.js";
3
+ /**
4
+ * Extended NumberFormatOptions that includes rounding mode support
5
+ * which is available in modern browsers but not yet in TypeScript types.
6
+ * Only includes modes that are actually supported by Intl.NumberFormat and used in our API.
7
+ */
8
+ export interface ExtendedNumberFormatOptions extends Intl.NumberFormatOptions {
9
+ roundingMode?: "ceil" | "floor" | "halfExpand";
10
+ convertNegativeToParenthesis?: boolean;
11
+ }
12
+ /**
13
+ * Formats a number value according to the specified formatting rule
14
+ */
15
+ export declare function formatNumber(value: number, numberType: PropertyNumberFormattingRuleType, objectData: SimpleOsdkProperties, locale: string): string | undefined;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAUE,wCACK,WAAY;AACnB,cAAc,4BAA4B,4BAA6B;;;;;;AAQvE,iBAAiB,oCAAoC,KAAK,oBAAoB;CAC5E,eAAe,SAAS,UAAU;CAClC;AACD;;;;AAKD,OAAO,iBAAS,aACdA,eACAC,YAAY,kCACZC,YAAY,sBACZC","names":["value: number","numberType: PropertyNumberFormattingRuleType","objectData: SimpleOsdkProperties","locale: string"],"sources":["../../../../src/object/formatting/formatNumber.ts"],"version":3,"file":"formatNumber.d.ts"}
@@ -0,0 +1,10 @@
1
+ import type { PropertyTypeReferenceOrStringConstant } from "@osdk/api";
2
+ import type { SimpleOsdkProperties } from "../SimpleOsdkProperties.js";
3
+ /**
4
+ * Resolves a property reference or string constant to its actual value
5
+ */
6
+ export declare function resolvePropertyReference(ref: PropertyTypeReferenceOrStringConstant, objectData: SimpleOsdkProperties): string | undefined;
7
+ /**
8
+ * Gets the browser's current locale
9
+ */
10
+ export declare function getBrowserLocale(): string;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,6CAA6C,WAAY;AACvE,cAAc,4BAA4B,4BAA6B;;;;AAMvE,OAAO,iBAAS,yBACdA,KAAK,uCACLC,YAAY;;;;AAad,OAAO,iBAAS","names":["ref: PropertyTypeReferenceOrStringConstant","objectData: SimpleOsdkProperties"],"sources":["../../../../src/object/formatting/propertyFormattingUtils.ts"],"version":3,"file":"propertyFormattingUtils.d.ts"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/client",
3
- "version": "2.6.0-rc.14",
3
+ "version": "2.7.0-beta.1",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -75,12 +75,12 @@
75
75
  "tiny-invariant": "^1.3.3",
76
76
  "type-fest": "^4.41.0",
77
77
  "ws": "^8.18.3",
78
- "@osdk/client.unstable": "2.6.0-rc.14",
79
- "@osdk/generator-converters": "2.6.0-rc.14",
80
- "@osdk/api": "2.6.0-rc.14",
81
- "@osdk/shared.client.impl": "~1.6.0-rc.2",
82
- "@osdk/shared.net.errors": "~2.6.0-rc.2",
83
- "@osdk/shared.net.fetch": "~1.6.0-rc.2"
78
+ "@osdk/api": "2.7.0-beta.1",
79
+ "@osdk/client.unstable": "2.7.0-beta.1",
80
+ "@osdk/generator-converters": "2.7.0-beta.1",
81
+ "@osdk/shared.client.impl": "~1.7.0-beta.1",
82
+ "@osdk/shared.net.errors": "~2.7.0-beta.1",
83
+ "@osdk/shared.net.fetch": "~1.7.0-beta.1"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@microsoft/api-documenter": "^7.26.32",
@@ -101,10 +101,10 @@
101
101
  "ts-expect": "^1.3.0",
102
102
  "typescript": "~5.5.4",
103
103
  "zod": "^3.25.76",
104
- "@osdk/client.test.ontology": "~2.6.0-rc.14",
105
- "@osdk/shared.test": "~2.6.0-rc.6",
106
- "@osdk/monorepo.api-extractor": "~0.5.0-beta.1",
107
- "@osdk/monorepo.tsconfig": "~0.5.0-beta.1"
104
+ "@osdk/monorepo.api-extractor": "~0.6.0-beta.1",
105
+ "@osdk/monorepo.tsconfig": "~0.6.0-beta.1",
106
+ "@osdk/shared.test": "~2.7.0-beta.1",
107
+ "@osdk/client.test.ontology": "~2.7.0-beta.1"
108
108
  },
109
109
  "publishConfig": {
110
110
  "access": "public"