@osdk/maker 0.13.0-beta.14 → 0.13.0-beta.15

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.
@@ -24,7 +24,7 @@ import { hideBin } from "yargs/helpers";
24
24
  import { defineOntology } from "../api/defineOntology.js";
25
25
  const apiNamespaceRegex = /^[a-z0-9-]+(\.[a-z0-9-]+)*\.$/;
26
26
  export default async function main(args = process.argv) {
27
- const commandLineOpts = await yargs(hideBin(args)).version("0.13.0-beta.14" ?? "").wrap(Math.min(150, yargs().terminalWidth())).strict().help().options({
27
+ const commandLineOpts = await yargs(hideBin(args)).version("0.13.0-beta.15" ?? "").wrap(Math.min(150, yargs().terminalWidth())).strict().help().options({
28
28
  input: {
29
29
  alias: "i",
30
30
  describe: "Input file",
@@ -17,12 +17,13 @@
17
17
  import { importedTypes } from "../../api/defineOntology.js";
18
18
  import { convertOntologyDefinitionToWireBlockData } from "./convertOntologyDefinitionToWireBlockData.js";
19
19
  import { convertOntologyToValueTypeIr } from "./convertOntologyToValueTypeIr.js";
20
- export function convertOntologyDefinition(ontology) {
20
+ export function convertOntologyDefinition(ontology, randomnessKey) {
21
21
  return {
22
22
  ontology: convertOntologyDefinitionToWireBlockData(ontology),
23
23
  importedOntology: convertOntologyDefinitionToWireBlockData(importedTypes),
24
24
  valueTypes: convertOntologyToValueTypeIr(ontology),
25
- importedValueTypes: convertOntologyToValueTypeIr(importedTypes)
25
+ importedValueTypes: convertOntologyToValueTypeIr(importedTypes),
26
+ randomnessKey
26
27
  };
27
28
  }
28
29
  //# sourceMappingURL=convertOntologyDefinition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"convertOntologyDefinition.js","names":["importedTypes","convertOntologyDefinitionToWireBlockData","convertOntologyToValueTypeIr","convertOntologyDefinition","ontology","importedOntology","valueTypes","importedValueTypes"],"sources":["convertOntologyDefinition.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 { OntologyIr } from \"@osdk/client.unstable\";\nimport type { OntologyDefinition } from \"../../api/common/OntologyDefinition.js\";\nimport { importedTypes } from \"../../api/defineOntology.js\";\nimport { convertOntologyDefinitionToWireBlockData } from \"./convertOntologyDefinitionToWireBlockData.js\";\nimport { convertOntologyToValueTypeIr } from \"./convertOntologyToValueTypeIr.js\";\n\nexport function convertOntologyDefinition(\n ontology: OntologyDefinition,\n): OntologyIr {\n return {\n ontology: convertOntologyDefinitionToWireBlockData(ontology),\n importedOntology: convertOntologyDefinitionToWireBlockData(importedTypes),\n valueTypes: convertOntologyToValueTypeIr(ontology),\n importedValueTypes: convertOntologyToValueTypeIr(importedTypes),\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,wCAAwC,QAAQ,+CAA+C;AACxG,SAASC,4BAA4B,QAAQ,mCAAmC;AAEhF,OAAO,SAASC,yBAAyBA,CACvCC,QAA4B,EAChB;EACZ,OAAO;IACLA,QAAQ,EAAEH,wCAAwC,CAACG,QAAQ,CAAC;IAC5DC,gBAAgB,EAAEJ,wCAAwC,CAACD,aAAa,CAAC;IACzEM,UAAU,EAAEJ,4BAA4B,CAACE,QAAQ,CAAC;IAClDG,kBAAkB,EAAEL,4BAA4B,CAACF,aAAa;EAChE,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"file":"convertOntologyDefinition.js","names":["importedTypes","convertOntologyDefinitionToWireBlockData","convertOntologyToValueTypeIr","convertOntologyDefinition","ontology","randomnessKey","importedOntology","valueTypes","importedValueTypes"],"sources":["convertOntologyDefinition.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 { OntologyIr } from \"@osdk/client.unstable\";\nimport type { OntologyDefinition } from \"../../api/common/OntologyDefinition.js\";\nimport { importedTypes } from \"../../api/defineOntology.js\";\nimport { convertOntologyDefinitionToWireBlockData } from \"./convertOntologyDefinitionToWireBlockData.js\";\nimport { convertOntologyToValueTypeIr } from \"./convertOntologyToValueTypeIr.js\";\n\nexport function convertOntologyDefinition(\n ontology: OntologyDefinition,\n randomnessKey?: string,\n): OntologyIr {\n return {\n ontology: convertOntologyDefinitionToWireBlockData(ontology),\n importedOntology: convertOntologyDefinitionToWireBlockData(importedTypes),\n valueTypes: convertOntologyToValueTypeIr(ontology),\n importedValueTypes: convertOntologyToValueTypeIr(importedTypes),\n randomnessKey,\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,wCAAwC,QAAQ,+CAA+C;AACxG,SAASC,4BAA4B,QAAQ,mCAAmC;AAEhF,OAAO,SAASC,yBAAyBA,CACvCC,QAA4B,EAC5BC,aAAsB,EACV;EACZ,OAAO;IACLD,QAAQ,EAAEH,wCAAwC,CAACG,QAAQ,CAAC;IAC5DE,gBAAgB,EAAEL,wCAAwC,CAACD,aAAa,CAAC;IACzEO,UAAU,EAAEL,4BAA4B,CAACE,QAAQ,CAAC;IAClDI,kBAAkB,EAAEN,4BAA4B,CAACF,aAAa,CAAC;IAC/DK;EACF,CAAC;AACH","ignoreList":[]}
@@ -1194,12 +1194,13 @@ function convertOntologyToValueTypeIr(ontology) {
1194
1194
  }
1195
1195
 
1196
1196
  // src/conversion/toMarketplace/convertOntologyDefinition.ts
1197
- function convertOntologyDefinition(ontology) {
1197
+ function convertOntologyDefinition(ontology, randomnessKey) {
1198
1198
  return {
1199
1199
  ontology: convertOntologyDefinitionToWireBlockData(ontology),
1200
1200
  importedOntology: convertOntologyDefinitionToWireBlockData(importedTypes),
1201
1201
  valueTypes: convertOntologyToValueTypeIr(ontology),
1202
- importedValueTypes: convertOntologyToValueTypeIr(importedTypes)
1202
+ importedValueTypes: convertOntologyToValueTypeIr(importedTypes),
1203
+ randomnessKey
1203
1204
  };
1204
1205
  }
1205
1206
 
@@ -1242,7 +1243,7 @@ function updateOntology(entity) {
1242
1243
  }
1243
1244
  ontologyDefinition[OntologyEntityTypeEnum.VALUE_TYPE][entity.apiName].push(entity);
1244
1245
  }
1245
- async function defineOntology(ns, body, outputDir, dependencyFile, uniquenessKey) {
1246
+ async function defineOntology(ns, body, outputDir, dependencyFile, randomnessKey) {
1246
1247
  namespace = ns;
1247
1248
  dependencies = {};
1248
1249
  ontologyDefinition = {
@@ -1273,7 +1274,7 @@ async function defineOntology(ns, body, outputDir, dependencyFile, uniquenessKey
1273
1274
  if (dependencyFile) {
1274
1275
  writeDependencyFile(dependencyFile);
1275
1276
  }
1276
- return convertOntologyDefinition(ontologyDefinition);
1277
+ return convertOntologyDefinition(ontologyDefinition, randomnessKey);
1277
1278
  }
1278
1279
  function writeStaticObjects(outputDir) {
1279
1280
  const codegenDir = path2__namespace.resolve(outputDir, "codegen");
@@ -1704,7 +1705,7 @@ function addNamespaceIfNone(apiName) {
1704
1705
  // src/cli/main.ts
1705
1706
  var apiNamespaceRegex = /^[a-z0-9-]+(\.[a-z0-9-]+)*\.$/;
1706
1707
  async function main(args = process.argv) {
1707
- const commandLineOpts = await yargs__default.default(helpers.hideBin(args)).version("0.13.0-beta.14").wrap(Math.min(150, yargs__default.default().terminalWidth())).strict().help().options({
1708
+ const commandLineOpts = await yargs__default.default(helpers.hideBin(args)).version("0.13.0-beta.15").wrap(Math.min(150, yargs__default.default().terminalWidth())).strict().help().options({
1708
1709
  input: {
1709
1710
  alias: "i",
1710
1711
  describe: "Input file",