@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":[]}
@@ -4,7 +4,7 @@ import type { ActionParameterAllowedValues } from "./action/ActionParameterAllow
4
4
  import type { ActionType } from "./action/ActionType.js";
5
5
  import type { OntologyEntityType } from "./common/OntologyEntityTypeMapping.js";
6
6
  export declare function updateOntology<T extends OntologyEntityType>(entity: T): void;
7
- export declare function defineOntology(ns: string, body: () => void | Promise<void>, outputDir: string | undefined, dependencyFile?: string, uniquenessKey?: string): Promise<OntologyIr>;
7
+ export declare function defineOntology(ns: string, body: () => void | Promise<void>, outputDir: string | undefined, dependencyFile?: string, randomnessKey?: string): Promise<OntologyIr>;
8
8
  export declare function writeStaticObjects(outputDir: string): void;
9
9
  export declare function buildDatasource(apiName: string, definition: OntologyIrObjectTypeDatasourceDefinition, classificationMarkingGroupName?: string, mandatoryMarkingGroupName?: string): OntologyIrObjectTypeDatasource;
10
10
  export declare function cleanAndValidateLinkTypeId(apiName: string): string;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAEE,YACA,iCACA,kCACA,gCACA,0CAGA,8BAEA,2BAEK,uBAAwB;AAS/B,cAAc,uBAAuB,6BAA8B;AACnE,cAAc,oCAAoC,0CAA2C;AAC7F,cAAc,kBAAkB,wBAAyB;AAGzD,cAAc,0BAA0B,uCAAwC;AAiBhF,OAAO,iBAAS,eACd,UAAU,oBAEVA,QAAQ;AAiBV,OAAO,iBAAe,eACpBC,YACAC,mBAAmB,eACnBC,+BACAC,yBACAC,yBACC,QAAQ;AAuCX,OAAO,iBAAS,mBAAmBC;AA+EnC,OAAO,iBAAS,gBACdC,iBACAC,YAAY,0CACZC,yCACAC,qCACC;AA6BH,OAAO,iBAAS,2BAA2BH;AAkB3C,OAAO,iBAAS,4BAA4B;AAI5C,OAAO,iBAAS,yBAAyB;AAIzC,OAAO,iBAAS,oBAAoBI;AAoCpC,OAAO,iBAAS,cACdC,QAAQ,aACP;AAwEH,OAAO,iBAAS,qBACdC,eAAe,+BACd;AAoGH,OAAO,iBAAS,uBACdC,WAAW,kBACV;AAgEH,OAAO,iBAAS,iBAAiBP;AAIjC,OAAO,iBAAS,iBAAiBA;AA8CjC,OAAO,iBAAS,mBAAmBA","names":["entity: T","ns: string","body: () => void | Promise<void>","outputDir: string | undefined","dependencyFile?: string","uniquenessKey?: string","outputDir: string","apiName: string","definition: OntologyIrObjectTypeDatasourceDefinition","classificationMarkingGroupName?: string","mandatoryMarkingGroupName?: string","status: any","action: ActionType","allowedValues: ActionParameterAllowedValues","parameter: ActionParameter"],"sources":["../../../src/api/defineOntology.ts"],"version":3,"file":"defineOntology.d.ts"}
1
+ {"mappings":"AAgBA,cAEE,YACA,iCACA,kCACA,gCACA,0CAGA,8BAEA,2BAEK,uBAAwB;AAS/B,cAAc,uBAAuB,6BAA8B;AACnE,cAAc,oCAAoC,0CAA2C;AAC7F,cAAc,kBAAkB,wBAAyB;AAGzD,cAAc,0BAA0B,uCAAwC;AAiBhF,OAAO,iBAAS,eACd,UAAU,oBAEVA,QAAQ;AAiBV,OAAO,iBAAe,eACpBC,YACAC,mBAAmB,eACnBC,+BACAC,yBACAC,yBACC,QAAQ;AAuCX,OAAO,iBAAS,mBAAmBC;AA+EnC,OAAO,iBAAS,gBACdC,iBACAC,YAAY,0CACZC,yCACAC,qCACC;AA6BH,OAAO,iBAAS,2BAA2BH;AAkB3C,OAAO,iBAAS,4BAA4B;AAI5C,OAAO,iBAAS,yBAAyB;AAIzC,OAAO,iBAAS,oBAAoBI;AAoCpC,OAAO,iBAAS,cACdC,QAAQ,aACP;AAwEH,OAAO,iBAAS,qBACdC,eAAe,+BACd;AAoGH,OAAO,iBAAS,uBACdC,WAAW,kBACV;AAgEH,OAAO,iBAAS,iBAAiBP;AAIjC,OAAO,iBAAS,iBAAiBA;AA8CjC,OAAO,iBAAS,mBAAmBA","names":["entity: T","ns: string","body: () => void | Promise<void>","outputDir: string | undefined","dependencyFile?: string","randomnessKey?: string","outputDir: string","apiName: string","definition: OntologyIrObjectTypeDatasourceDefinition","classificationMarkingGroupName?: string","mandatoryMarkingGroupName?: string","status: any","action: ActionType","allowedValues: ActionParameterAllowedValues","parameter: ActionParameter"],"sources":["../../../src/api/defineOntology.ts"],"version":3,"file":"defineOntology.d.ts"}
@@ -1,3 +1,3 @@
1
1
  import type { OntologyIr } from "@osdk/client.unstable";
2
2
  import type { OntologyDefinition } from "../../api/common/OntologyDefinition.js";
3
- export declare function convertOntologyDefinition(ontology: OntologyDefinition): OntologyIr;
3
+ export declare function convertOntologyDefinition(ontology: OntologyDefinition, randomnessKey?: string): OntologyIr;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,kBAAkB,uBAAwB;AACxD,cAAc,0BAA0B,wCAAyC;AAKjF,OAAO,iBAAS,0BACdA,UAAU,qBACT","names":["ontology: OntologyDefinition"],"sources":["../../../../src/conversion/toMarketplace/convertOntologyDefinition.ts"],"version":3,"file":"convertOntologyDefinition.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,kBAAkB,uBAAwB;AACxD,cAAc,0BAA0B,wCAAyC;AAKjF,OAAO,iBAAS,0BACdA,UAAU,oBACVC,yBACC","names":["ontology: OntologyDefinition","randomnessKey?: string"],"sources":["../../../../src/conversion/toMarketplace/convertOntologyDefinition.ts"],"version":3,"file":"convertOntologyDefinition.d.ts"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/maker",
3
- "version": "0.13.0-beta.14",
3
+ "version": "0.13.0-beta.15",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,8 +41,8 @@
41
41
  "@types/yargs": "^17.0.33",
42
42
  "typescript": "~5.5.4",
43
43
  "vitest": "^3.2.4",
44
- "@osdk/monorepo.api-extractor": "~0.4.0-beta.1",
45
44
  "@osdk/client.unstable": "~2.5.0-beta.14",
45
+ "@osdk/monorepo.api-extractor": "~0.4.0-beta.1",
46
46
  "@osdk/monorepo.tsconfig": "~0.4.0-beta.1"
47
47
  },
48
48
  "publishConfig": {