@osdk/maker 0.13.0-beta.4 → 0.13.0-beta.6

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 (50) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/build/browser/api/defineAction.js +15 -13
  3. package/build/browser/api/defineAction.js.map +1 -1
  4. package/build/browser/api/defineOntology.js +32 -108
  5. package/build/browser/api/defineOntology.js.map +1 -1
  6. package/build/browser/api/defineSpt.js.map +1 -1
  7. package/build/browser/api/defineValueType.js +2 -1
  8. package/build/browser/api/defineValueType.js.map +1 -1
  9. package/build/browser/api/markingconstraint.test.js +3 -3
  10. package/build/browser/api/markingconstraint.test.js.map +1 -1
  11. package/build/browser/api/objectStatus.test.js +4 -4
  12. package/build/browser/api/objectStatus.test.js.map +1 -1
  13. package/build/browser/api/overall.test.js +607 -271
  14. package/build/browser/api/overall.test.js.map +1 -1
  15. package/build/browser/api/propertyConversionUtils.js +3 -1
  16. package/build/browser/api/propertyConversionUtils.js.map +1 -1
  17. package/build/browser/api/types.js.map +1 -1
  18. package/build/browser/cli/main.js +11 -5
  19. package/build/browser/cli/main.js.map +1 -1
  20. package/build/cjs/index.cjs +64 -129
  21. package/build/cjs/index.cjs.map +1 -1
  22. package/build/cjs/index.d.cts +8 -10
  23. package/build/esm/api/defineAction.js +15 -13
  24. package/build/esm/api/defineAction.js.map +1 -1
  25. package/build/esm/api/defineOntology.js +32 -108
  26. package/build/esm/api/defineOntology.js.map +1 -1
  27. package/build/esm/api/defineSpt.js.map +1 -1
  28. package/build/esm/api/defineValueType.js +2 -1
  29. package/build/esm/api/defineValueType.js.map +1 -1
  30. package/build/esm/api/markingconstraint.test.js +3 -3
  31. package/build/esm/api/markingconstraint.test.js.map +1 -1
  32. package/build/esm/api/objectStatus.test.js +4 -4
  33. package/build/esm/api/objectStatus.test.js.map +1 -1
  34. package/build/esm/api/overall.test.js +607 -271
  35. package/build/esm/api/overall.test.js.map +1 -1
  36. package/build/esm/api/propertyConversionUtils.js +3 -1
  37. package/build/esm/api/propertyConversionUtils.js.map +1 -1
  38. package/build/esm/api/types.js.map +1 -1
  39. package/build/esm/cli/main.js +11 -5
  40. package/build/esm/cli/main.js.map +1 -1
  41. package/build/types/api/defineAction.d.ts.map +1 -1
  42. package/build/types/api/defineOntology.d.ts +1 -6
  43. package/build/types/api/defineOntology.d.ts.map +1 -1
  44. package/build/types/api/defineSpt.d.ts +2 -2
  45. package/build/types/api/defineSpt.d.ts.map +1 -1
  46. package/build/types/api/propertyConversionUtils.d.ts +2 -2
  47. package/build/types/api/propertyConversionUtils.d.ts.map +1 -1
  48. package/build/types/api/types.d.ts +6 -14
  49. package/build/types/api/types.d.ts.map +1 -1
  50. package/package.json +9 -9
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import invariant from "tiny-invariant";
18
- import { updateOntology } from "./defineOntology.js";
18
+ import { namespace, updateOntology } from "./defineOntology.js";
19
19
  import { OntologyEntityTypeEnum } from "./types.js";
20
20
  function convertValueTypeTypeToBaseType(valueType) {
21
21
  if (typeof valueType === "string") {}
@@ -87,6 +87,7 @@ export function defineValueType(valueTypeDef) {
87
87
  const baseType = convertValueTypeTypeToBaseType(type.type);
88
88
  const vt = {
89
89
  apiName,
90
+ packageNamespace: namespace.substring(0, namespace.length - 1),
90
91
  displayMetadata: {
91
92
  displayName: displayName,
92
93
  description: description ?? ""
@@ -1 +1 @@
1
- {"version":3,"file":"defineValueType.js","names":["invariant","updateOntology","OntologyEntityTypeEnum","convertValueTypeTypeToBaseType","valueType","type","array","elementType","structV2","fields","map","field","identifier","baseType","keyType","optional","wrappedType","Error","defineValueType","valueTypeDef","apiName","displayName","description","version","test","process","env","NODE_ENV","typeName","constraints","constraint","output","failureMessage","vt","displayMetadata","status","active","exampleValues","__type","VALUE_TYPE"],"sources":["defineValueType.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 {\n BaseType,\n DataConstraint,\n DataConstraintWrapper,\n FailureMessage,\n ValueTypeDataConstraint,\n} from \"@osdk/client.unstable\";\nimport invariant from \"tiny-invariant\";\nimport { updateOntology } from \"./defineOntology.js\";\nimport {\n OntologyEntityTypeEnum,\n type ValueTypeDefinitionVersion,\n type ValueTypeType,\n} from \"./types.js\";\n\ntype ZipBaseAndConstraint<Base, Constraint> = {\n [PropertyType in (BaseType[\"type\"] & DataConstraint[\"type\"])]: Base extends\n { type: PropertyType } ? {\n baseType: Omit<Base, \"type\">;\n constraints?: Constraint extends { type: PropertyType } ? {\n constraint: Omit<Constraint, \"type\">;\n failureMessage?: FailureMessage;\n }[]\n : undefined;\n }\n : never;\n};\n\ntype MappedZip = ZipBaseAndConstraint<BaseType, DataConstraint>;\n\ntype TypeNames = ValueTypeType[\"type\"];\n\ntype ValueTypeDefinitionBacking = {\n [Type in ValueTypeType[\"type\"] & DataConstraint[\"type\"]]: {\n baseType: { \"type\": Extract<ValueTypeType, { type: Type }>[\"value\"] } & {\n constraints: {\n constraint: Extract<\n DataConstraint,\n { type: Type }\n >[keyof Omit<Extract<DataConstraint, { type: Type }>, \"type\">];\n failureMessage?: FailureMessage;\n }[];\n };\n };\n};\n\ntype NewValueTypeDefinitionBacking = {\n [Type in ValueTypeType as Type[\"type\"]]: {\n type: Type[\"value\"];\n constraints?: Type[\"constraints\"];\n };\n};\ntype NewValueTypeDefinition =\n NewValueTypeDefinitionBacking[keyof NewValueTypeDefinitionBacking];\n\nfunction convertValueTypeTypeToBaseType(\n valueType: ValueTypeType[\"value\"],\n): BaseType {\n if (typeof valueType === \"string\") {\n }\n switch (true) {\n case (typeof valueType === \"object\" && valueType.type === \"array\"):\n return {\n type: \"array\",\n array: {\n elementType: convertValueTypeTypeToBaseType(valueType.elementType),\n },\n };\n case (typeof valueType === \"object\" && valueType.type === \"struct\"):\n return {\n type: \"structV2\",\n structV2: {\n fields: valueType.fields.map(field => ({\n identifier: field.identifier,\n baseType: convertValueTypeTypeToBaseType(field.baseType),\n })),\n },\n };\n case (typeof valueType === \"object\" && valueType.type === \"map\"):\n return {\n type: \"map\",\n map: {\n keyType: convertValueTypeTypeToBaseType(valueType.keyType),\n valueType: convertValueTypeTypeToBaseType(valueType.valueType),\n },\n };\n case (typeof valueType === \"object\" && valueType.type === \"optional\"):\n return {\n type: \"optional\",\n optional: {\n wrappedType: convertValueTypeTypeToBaseType(valueType.wrappedType),\n },\n };\n case (typeof valueType === \"string\"):\n return { type: valueType, [valueType]: {} } as any;\n default:\n throw new Error(\"Invalid ValueTypeType\");\n }\n}\n\nexport type ValueTypeDefinition = {\n apiName: string;\n displayName: string;\n description?: string;\n type: NewValueTypeDefinition;\n version: string;\n};\n\nexport function defineValueType(\n valueTypeDef: ValueTypeDefinition,\n): ValueTypeDefinitionVersion {\n const { apiName, displayName, description, type, version } = valueTypeDef;\n const semverValidation =\n /^((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)$/;\n invariant(semverValidation.test(version), \"Version is not a valid semver\");\n\n const typeName: TypeNames = typeof type.type === \"string\"\n ? type.type\n : type.type.type === \"struct\"\n ? \"structV2\"\n : type.type.type;\n // These suck but TS doesn't understand the relationship from the key of the base type to the type string\n const constraints = type.constraints\n ? type.constraints.map<ValueTypeDataConstraint>(constraint => {\n const output: any = {\n constraint: { type: typeName, [typeName]: constraint.constraint },\n failureMessage: constraint.failureMessage,\n };\n return { constraint: output as DataConstraintWrapper };\n })\n : [];\n\n const baseType: BaseType = convertValueTypeTypeToBaseType(type.type);\n\n const vt: ValueTypeDefinitionVersion = {\n apiName,\n displayMetadata: {\n displayName: displayName,\n description: description ?? \"\",\n },\n status: { type: \"active\", active: {} },\n version: version,\n baseType: baseType,\n constraints: constraints,\n exampleValues: [],\n __type: OntologyEntityTypeEnum.VALUE_TYPE,\n };\n updateOntology(vt);\n return vt;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA,OAAOA,SAAS,MAAM,gBAAgB;AACtC,SAASC,cAAc,QAAQ,qBAAqB;AACpD,SACEC,sBAAsB,QAGjB,YAAY;AA0CnB,SAASC,8BAA8BA,CACrCC,SAAiC,EACvB;EACV,IAAI,OAAOA,SAAS,KAAK,QAAQ,EAAE,CACnC;EACA,QAAQ,IAAI;IACV,KAAM,OAAOA,SAAS,KAAK,QAAQ,IAAIA,SAAS,CAACC,IAAI,KAAK,OAAO;MAC/D,OAAO;QACLA,IAAI,EAAE,OAAO;QACbC,KAAK,EAAE;UACLC,WAAW,EAAEJ,8BAA8B,CAACC,SAAS,CAACG,WAAW;QACnE;MACF,CAAC;IACH,KAAM,OAAOH,SAAS,KAAK,QAAQ,IAAIA,SAAS,CAACC,IAAI,KAAK,QAAQ;MAChE,OAAO;QACLA,IAAI,EAAE,UAAU;QAChBG,QAAQ,EAAE;UACRC,MAAM,EAAEL,SAAS,CAACK,MAAM,CAACC,GAAG,CAACC,KAAK,KAAK;YACrCC,UAAU,EAAED,KAAK,CAACC,UAAU;YAC5BC,QAAQ,EAAEV,8BAA8B,CAACQ,KAAK,CAACE,QAAQ;UACzD,CAAC,CAAC;QACJ;MACF,CAAC;IACH,KAAM,OAAOT,SAAS,KAAK,QAAQ,IAAIA,SAAS,CAACC,IAAI,KAAK,KAAK;MAC7D,OAAO;QACLA,IAAI,EAAE,KAAK;QACXK,GAAG,EAAE;UACHI,OAAO,EAAEX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,UAAU,CAACE;IAC7B,CAAC;IACD,OAAO;MAAEF,UAAU,EAAEC;IAAgC,CAAC;EACxD,CAAC,CAAC,GACA,EAAE;EAEN,MAAMlB,QAAkB,GAAGV,8BAA8B,CAACE,IAAI,CAACA,IAAI,CAAC;EAEpE,MAAM4B,EAA8B,GAAG;IACrCb,OAAO;IACPc,eAAe,EAAE;MACfb,WAAW,EAAEA,WAAW;MACxBC,WAAW,EAAEA,WAAW,IAAI;IAC9B,CAAC;IACDa,MAAM,EAAE;MAAE9B,IAAI,EAAE,QAAQ;MAAE+B,MAAM,EAAE,CAAC;IAAE,CAAC;IACtCb,OAAO,EAAEA,OAAO;IAChBV,QAAQ,EAAEA,QAAQ;IAClBgB,WAAW,EAAEA,WAAW;IACxBQ,aAAa,EAAE,EAAE;IACjBC,MAAM,EAAEpC,sBAAsB,CAACqC;EACjC,CAAC;EACDtC,cAAc,CAACgC,EAAE,CAAC;EAClB,OAAOA,EAAE;AACX","ignoreList":[]}
1
+ {"version":3,"file":"defineValueType.js","names":["invariant","namespace","updateOntology","OntologyEntityTypeEnum","convertValueTypeTypeToBaseType","valueType","type","array","elementType","structV2","fields","map","field","identifier","baseType","keyType","optional","wrappedType","Error","defineValueType","valueTypeDef","apiName","displayName","description","version","test","process","env","NODE_ENV","typeName","constraints","constraint","output","failureMessage","vt","packageNamespace","substring","length","displayMetadata","status","active","exampleValues","__type","VALUE_TYPE"],"sources":["defineValueType.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 {\n BaseType,\n DataConstraint,\n DataConstraintWrapper,\n FailureMessage,\n ValueTypeDataConstraint,\n} from \"@osdk/client.unstable\";\nimport invariant from \"tiny-invariant\";\nimport { namespace, updateOntology } from \"./defineOntology.js\";\nimport {\n OntologyEntityTypeEnum,\n type ValueTypeDefinitionVersion,\n type ValueTypeType,\n} from \"./types.js\";\n\ntype ZipBaseAndConstraint<Base, Constraint> = {\n [PropertyType in (BaseType[\"type\"] & DataConstraint[\"type\"])]: Base extends\n { type: PropertyType } ? {\n baseType: Omit<Base, \"type\">;\n constraints?: Constraint extends { type: PropertyType } ? {\n constraint: Omit<Constraint, \"type\">;\n failureMessage?: FailureMessage;\n }[]\n : undefined;\n }\n : never;\n};\n\ntype MappedZip = ZipBaseAndConstraint<BaseType, DataConstraint>;\n\ntype TypeNames = ValueTypeType[\"type\"];\n\ntype ValueTypeDefinitionBacking = {\n [Type in ValueTypeType[\"type\"] & DataConstraint[\"type\"]]: {\n baseType: { \"type\": Extract<ValueTypeType, { type: Type }>[\"value\"] } & {\n constraints: {\n constraint: Extract<\n DataConstraint,\n { type: Type }\n >[keyof Omit<Extract<DataConstraint, { type: Type }>, \"type\">];\n failureMessage?: FailureMessage;\n }[];\n };\n };\n};\n\ntype NewValueTypeDefinitionBacking = {\n [Type in ValueTypeType as Type[\"type\"]]: {\n type: Type[\"value\"];\n constraints?: Type[\"constraints\"];\n };\n};\ntype NewValueTypeDefinition =\n NewValueTypeDefinitionBacking[keyof NewValueTypeDefinitionBacking];\n\nfunction convertValueTypeTypeToBaseType(\n valueType: ValueTypeType[\"value\"],\n): BaseType {\n if (typeof valueType === \"string\") {\n }\n switch (true) {\n case (typeof valueType === \"object\" && valueType.type === \"array\"):\n return {\n type: \"array\",\n array: {\n elementType: convertValueTypeTypeToBaseType(valueType.elementType),\n },\n };\n case (typeof valueType === \"object\" && valueType.type === \"struct\"):\n return {\n type: \"structV2\",\n structV2: {\n fields: valueType.fields.map(field => ({\n identifier: field.identifier,\n baseType: convertValueTypeTypeToBaseType(field.baseType),\n })),\n },\n };\n case (typeof valueType === \"object\" && valueType.type === \"map\"):\n return {\n type: \"map\",\n map: {\n keyType: convertValueTypeTypeToBaseType(valueType.keyType),\n valueType: convertValueTypeTypeToBaseType(valueType.valueType),\n },\n };\n case (typeof valueType === \"object\" && valueType.type === \"optional\"):\n return {\n type: \"optional\",\n optional: {\n wrappedType: convertValueTypeTypeToBaseType(valueType.wrappedType),\n },\n };\n case (typeof valueType === \"string\"):\n return { type: valueType, [valueType]: {} } as any;\n default:\n throw new Error(\"Invalid ValueTypeType\");\n }\n}\n\nexport type ValueTypeDefinition = {\n apiName: string;\n displayName: string;\n description?: string;\n type: NewValueTypeDefinition;\n version: string;\n};\n\nexport function defineValueType(\n valueTypeDef: ValueTypeDefinition,\n): ValueTypeDefinitionVersion {\n const { apiName, displayName, description, type, version } = valueTypeDef;\n const semverValidation =\n /^((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)$/;\n invariant(semverValidation.test(version), \"Version is not a valid semver\");\n\n const typeName: TypeNames = typeof type.type === \"string\"\n ? type.type\n : type.type.type === \"struct\"\n ? \"structV2\"\n : type.type.type;\n // These suck but TS doesn't understand the relationship from the key of the base type to the type string\n const constraints = type.constraints\n ? type.constraints.map<ValueTypeDataConstraint>(constraint => {\n const output: any = {\n constraint: { type: typeName, [typeName]: constraint.constraint },\n failureMessage: constraint.failureMessage,\n };\n return { constraint: output as DataConstraintWrapper };\n })\n : [];\n\n const baseType: BaseType = convertValueTypeTypeToBaseType(type.type);\n\n const vt: ValueTypeDefinitionVersion = {\n apiName,\n packageNamespace: namespace.substring(0, namespace.length - 1),\n displayMetadata: {\n displayName: displayName,\n description: description ?? \"\",\n },\n status: { type: \"active\", active: {} },\n version: version,\n baseType: baseType,\n constraints: constraints,\n exampleValues: [],\n __type: OntologyEntityTypeEnum.VALU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AO;IACPc,gBAAgB,EAAElC,SAAS,CAACmC,SAAS,CAAC,CAAC,EAAEnC,SAAS,CAACoC,MAAM,GAAG,CAAC,CAAC;IAC9DC,eAAe,EAAE;MACfhB,WAAW,EAAEA,WAAW;MACxBC,WAAW,EAAEA,WAAW,IAAI;IAC9B,CAAC;IACDgB,MAAM,EAAE;MAAEjC,IAAI,EAAE,QAAQ;MAAEkC,MAAM,EAAE,CAAC;IAAE,CAAC;IACtChB,OAAO,EAAEA,OAAO;IAChBV,QAAQ,EAAEA,QAAQ;IAClBgB,WAAW,EAAEA,WAAW;IACxBW,aAAa,EAAE,EAAE;IACjBC,MAAM,EAAEvC,sBAAsB,CAACwC;EACjC,CAAC;EACDzC,cAAc,CAACgC,EAAE,CAAC;EAClB,OAAOA,EAAE;AACX","ignoreList":[]}
@@ -44,7 +44,7 @@ describe("Marking Constraints", () => {
44
44
  }
45
45
  });
46
46
  const ontology = dumpOntologyFullMetadata();
47
- const classificationConstraint = ontology.blockData.objectTypes["com.palantir.document"].datasources[0].dataSecurity?.classificationConstraint;
47
+ const classificationConstraint = ontology.ontology.objectTypes["com.palantir.document"].datasources[0].dataSecurity?.classificationConstraint;
48
48
  expect(classificationConstraint.markingGroupName).toEqual("classificationGroup");
49
49
  });
50
50
  it("supports marking constraints with multiple markings", () => {
@@ -78,7 +78,7 @@ describe("Marking Constraints", () => {
78
78
  }
79
79
  });
80
80
  const ontology = dumpOntologyFullMetadata();
81
- const dataSecurity = ontology.blockData.objectTypes["com.palantir.document"].datasources[0].dataSecurity;
81
+ const dataSecurity = ontology.ontology.objectTypes["com.palantir.document"].datasources[0].dataSecurity;
82
82
  expect(dataSecurity.markingConstraint.markingGroupName).toEqual("mandatoryMarkingGroup");
83
83
  expect(dataSecurity.classificationConstraint.markingGroupName).toEqual("classificationGroup");
84
84
  });
@@ -101,7 +101,7 @@ describe("Marking Constraints", () => {
101
101
  }
102
102
  });
103
103
  const ontology = dumpOntologyFullMetadata();
104
- const datasource = ontology.blockData.objectTypes["com.palantir.document"].datasources[0];
104
+ const datasource = ontology.ontology.objectTypes["com.palantir.document"].datasources[0];
105
105
  expect(datasource).not.toHaveProperty("dataSecurity");
106
106
  });
107
107
  });
@@ -1 +1 @@
1
- {"version":3,"file":"markingconstraint.test.js","names":["beforeEach","describe","expect","it","defineObject","defineOntology","dumpOntologyFullMetadata","titlePropertyApiName","displayName","pluralDisplayName","apiName","primaryKeyPropertyApiName","properties","type","markingType","markingInputGroupName","ontology","classificationConstraint","blockData","objectTypes","datasources","dataSecurity","markingGroupName","toEqual","markingConstraint","datasource","not","toHaveProperty"],"sources":["markingconstraint.test.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 { beforeEach, describe, expect, it } from \"vitest\";\nimport { defineObject } from \"./defineObject.js\";\nimport { defineOntology, dumpOntologyFullMetadata } from \"./defineOntology.js\";\n\ndescribe(\"Marking Constraints\", () => {\n beforeEach(async () => {\n await defineOntology(\"com.palantir.\", () => {}, \"/tmp/\");\n });\n it(\"supports marking constraints with CBAC type and markingInputGroupName\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"title\",\n displayName: \"Document\",\n pluralDisplayName: \"Documents\",\n apiName: \"document\",\n primaryKeyPropertyApiName: \"title\",\n properties: {\n \"title\": {\n type: \"string\",\n displayName: \"Title\",\n },\n \"classification\": {\n type: {\n type: \"marking\",\n markingType: \"CBAC\",\n markingInputGroupName: \"classificationGroup\",\n },\n displayName: \"Classification\",\n },\n },\n });\n\n const ontology = dumpOntologyFullMetadata();\n const classificationConstraint = ontology.blockData\n .objectTypes[\"com.palantir.document\"].datasources[0].dataSecurity\n ?.classificationConstraint!;\n expect(classificationConstraint.markingGroupName).toEqual(\n \"classificationGroup\",\n );\n });\n\n it(\"supports marking constraints with multiple markings\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"title\",\n displayName: \"Document\",\n pluralDisplayName: \"Documents\",\n apiName: \"document\",\n primaryKeyPropertyApiName: \"title\",\n properties: {\n \"title\": {\n type: \"string\",\n displayName: \"Title\",\n },\n \"classification\": {\n type: {\n type: \"marking\",\n markingType: \"CBAC\",\n markingInputGroupName: \"classificationGroup\",\n },\n displayName: \"Classification\",\n },\n \"mandatory\": {\n type: {\n type: \"marking\",\n markingType: \"MANDATORY\",\n markingInputGroupName: \"mandatoryMarkingGroup\",\n },\n displayName: \"Classification\",\n },\n },\n });\n\n const ontology = dumpOntologyFullMetadata();\n const dataSecurity = ontology.blockData.objectTypes[\"com.palantir.document\"]\n .datasources[0].dataSecurity!;\n expect(dataSecurity.markingConstraint!.markingGroupName).toEqual(\n \"mandatoryMarkingGroup\",\n );\n expect(dataSecurity.classificationConstraint!.markingGroupName).toEqual(\n \"classificationGroup\",\n );\n });\n\n it(\"does not set security on objects if no marking props\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"title\",\n displayName: \"Document\",\n pluralDisplayName: \"Documents\",\n apiName: \"document\",\n primaryKeyPropertyApiName: \"title\",\n properties: {\n \"title\": {\n type: \"string\",\n displayName: \"Title\",\n },\n \"string\": {\n type: \"string\",\n displayName: \"string\",\n },\n },\n });\n\n const ontology = dumpOntologyFullMetadata();\n const datasource =\n ontology.blockData.objectTypes[\"com.palantir.document\"].datasources[0];\n expect(datasource).not.toHaveProperty(\"dataSecurity\");\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAA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CAACC,WAAW,CAAC,CAAC,CAAC;IACxElB,MAAM,CAACuB,UAAU,CAAC,CAACC,GAAG,CAACC,cAAc,CAAC,cAAc,CAAC;EACvD,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"markingconstraint.test.js","names":["beforeEach","describe","expect","it","defineObject","defineOntology","dumpOntologyFullMetadata","titlePropertyApiName","displayName","pluralDisplayName","apiName","primaryKeyPropertyApiName","properties","type","markingType","markingInputGroupName","ontology","classificationConstraint","objectTypes","datasources","dataSecurity","markingGroupName","toEqual","markingConstraint","datasource","not","toHaveProperty"],"sources":["markingconstraint.test.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 { beforeEach, describe, expect, it } from \"vitest\";\nimport { defineObject } from \"./defineObject.js\";\nimport { defineOntology, dumpOntologyFullMetadata } from \"./defineOntology.js\";\n\ndescribe(\"Marking Constraints\", () => {\n beforeEach(async () => {\n await defineOntology(\"com.palantir.\", () => {}, \"/tmp/\");\n });\n it(\"supports marking constraints with CBAC type and markingInputGroupName\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"title\",\n displayName: \"Document\",\n pluralDisplayName: \"Documents\",\n apiName: \"document\",\n primaryKeyPropertyApiName: \"title\",\n properties: {\n \"title\": {\n type: \"string\",\n displayName: \"Title\",\n },\n \"classification\": {\n type: {\n type: \"marking\",\n markingType: \"CBAC\",\n markingInputGroupName: \"classificationGroup\",\n },\n displayName: \"Classification\",\n },\n },\n });\n\n const ontology = dumpOntologyFullMetadata();\n const classificationConstraint = ontology.ontology\n .objectTypes[\"com.palantir.document\"].datasources[0].dataSecurity\n ?.classificationConstraint!;\n expect(classificationConstraint.markingGroupName).toEqual(\n \"classificationGroup\",\n );\n });\n\n it(\"supports marking constraints with multiple markings\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"title\",\n displayName: \"Document\",\n pluralDisplayName: \"Documents\",\n apiName: \"document\",\n primaryKeyPropertyApiName: \"title\",\n properties: {\n \"title\": {\n type: \"string\",\n displayName: \"Title\",\n },\n \"classification\": {\n type: {\n type: \"marking\",\n markingType: \"CBAC\",\n markingInputGroupName: \"classificationGroup\",\n },\n displayName: \"Classification\",\n },\n \"mandatory\": {\n type: {\n type: \"marking\",\n markingType: \"MANDATORY\",\n markingInputGroupName: \"mandatoryMarkingGroup\",\n },\n displayName: \"Classification\",\n },\n },\n });\n\n const ontology = dumpOntologyFullMetadata();\n const dataSecurity = ontology.ontology.objectTypes[\"com.palantir.document\"]\n .datasources[0].dataSecurity!;\n expect(dataSecurity.markingConstraint!.markingGroupName).toEqual(\n \"mandatoryMarkingGroup\",\n );\n expect(dataSecurity.classificationConstraint!.markingGroupName).toEqual(\n \"classificationGroup\",\n );\n });\n\n it(\"does not set security on objects if no marking props\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"title\",\n displayName: \"Document\",\n pluralDisplayName: \"Documents\",\n apiName: \"document\",\n primaryKeyPropertyApiName: \"title\",\n properties: {\n \"title\": {\n type: \"string\",\n displayName: \"Title\",\n },\n \"string\": {\n type: \"string\",\n displayName: \"string\",\n },\n },\n });\n\n const ontology = dumpOntologyFullMetadata();\n const datasource =\n ontology.ontology.objectTypes[\"com.palantir.document\"].datasources[0];\n expect(datasource).not.toHaveProperty(\"dataSecurity\");\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ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B,CAAC,CAACC,WAAW,CAAC,CAAC,CAAC;IACvEjB,MAAM,CAACsB,UAAU,CAAC,CAACC,GAAG,CAACC,cAAc,CAAC,cAAc,CAAC;EACvD,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -75,7 +75,7 @@ describe("Object Status", () => {
75
75
  }
76
76
  });
77
77
  const metadata = dumpOntologyFullMetadata();
78
- expect(metadata.blockData.objectTypes["com.palantir.default-status"].objectType.status).toEqual({
78
+ expect(metadata.ontology.objectTypes["com.palantir.default-status"].objectType.status).toEqual({
79
79
  type: "active",
80
80
  active: {}
81
81
  });
@@ -97,7 +97,7 @@ describe("Object Status", () => {
97
97
  status: "active"
98
98
  });
99
99
  const metadata = dumpOntologyFullMetadata();
100
- expect(metadata.blockData.objectTypes["com.palantir.active-status"].objectType.status).toEqual({
100
+ expect(metadata.ontology.objectTypes["com.palantir.active-status"].objectType.status).toEqual({
101
101
  type: "active",
102
102
  active: {}
103
103
  });
@@ -119,7 +119,7 @@ describe("Object Status", () => {
119
119
  status: "experimental"
120
120
  });
121
121
  const metadata = dumpOntologyFullMetadata();
122
- expect(metadata.blockData.objectTypes["com.palantir.experimental-status"].objectType.status).toEqual({
122
+ expect(metadata.ontology.objectTypes["com.palantir.experimental-status"].objectType.status).toEqual({
123
123
  type: "experimental",
124
124
  experimental: {}
125
125
  });
@@ -145,7 +145,7 @@ describe("Object Status", () => {
145
145
  }
146
146
  });
147
147
  const metadata = dumpOntologyFullMetadata();
148
- expect(metadata.blockData.objectTypes["com.palantir.deprecated-status"].objectType.status).toEqual({
148
+ expect(metadata.ontology.objectTypes["com.palantir.deprecated-status"].objectType.status).toEqual({
149
149
  type: "deprecated",
150
150
  deprecated: {
151
151
  message: "This object is deprecated",
@@ -1 +1 @@
1
- {"version":3,"file":"objectStatus.test.js","names":["beforeEach","describe","expect","it","defineObject","defineOntology","dumpOntologyFullMetadata","titlePropertyApiName","displayName","pluralDisplayName","apiName","primaryKeyPropertyApiName","status","properties","type","toThrowError","not","toThrow","metadata","blockData","objectTypes","objectType","toEqual","active","experimental","message","deadline","deprecated","replacedBy","undefined"],"sources":["objectStatus.test.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 { beforeEach, describe, expect, it } from \"vitest\";\nimport { defineObject } from \"./defineObject.js\";\nimport { defineOntology, dumpOntologyFullMetadata } from \"./defineOntology.js\";\nimport type { ObjectTypeStatus } from \"./types.js\";\n\ndescribe(\"Object Status\", () => {\n beforeEach(async () => {\n await defineOntology(\"com.palantir.\", () => {}, \"/tmp/\");\n });\n\n describe(\"Object Status Validation\", () => {\n it(\"throws an error when object status is experimental and a property is active\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n expect(() =>\n defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"ValidationTestObject\",\n pluralDisplayName: \"ValidationTestObjects\",\n apiName: \"validation-test\",\n primaryKeyPropertyApiName: \"bar\",\n status: \"experimental\" as ObjectTypeStatus,\n properties: {\n \"bar\": { type: \"string\", status: \"active\" as ObjectTypeStatus },\n },\n })\n ).toThrowError(\n /When object \"validation-test\" has experimental status, no properties can have \"active\" status/,\n );\n }, \"/tmp/\");\n });\n\n it(\"does not throw when object status is experimental and no properties have active status\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n expect(() =>\n defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"ValidationTestObject2\",\n pluralDisplayName: \"ValidationTestObjects2\",\n apiName: \"validation-test-2\",\n primaryKeyPropertyApiName: \"bar\",\n status: \"experimental\" as ObjectTypeStatus,\n properties: {\n \"bar\": {\n type: \"string\",\n status: \"experimental\" as ObjectTypeStatus,\n },\n },\n })\n ).not.toThrow();\n }, \"/tmp/\");\n });\n });\n\n describe(\"Object Status Conversion\", () => {\n it(\"converts default status (undefined) to active\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"DefaultStatusObject\",\n pluralDisplayName: \"DefaultStatusObjects\",\n apiName: \"default-status\",\n primaryKeyPropertyApiName: \"bar\",\n properties: { \"bar\": { type: \"string\" } },\n });\n\n const metadata = dumpOntologyFullMetadata();\n expect(\n metadata.blockData.objectTypes[\"com.palantir.default-status\"]\n .objectType.status,\n ).toEqual({\n type: \"active\",\n active: {},\n });\n }, \"/tmp/\");\n });\n\n it(\"converts active status to proper format\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"ActiveStatusObject\",\n pluralDisplayName: \"ActiveStatusObjects\",\n apiName: \"active-status\",\n primaryKeyPropertyApiName: \"bar\",\n properties: { \"bar\": { type: \"string\" } },\n status: \"active\" as ObjectTypeStatus,\n });\n\n const metadata = dumpOntologyFullMetadata();\n expect(\n metadata.blockData.objectTypes[\"com.palantir.active-status\"]\n .objectType.status,\n ).toEqual({\n type: \"active\",\n active: {},\n });\n }, \"/tmp/\");\n });\n\n it(\"converts experimental status to proper format\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"ExperimentalStatusObject\",\n pluralDisplayName: \"ExperimentalStatusObjects\",\n apiName: \"experimental-status\",\n primaryKeyPropertyApiName: \"bar\",\n properties: { \"bar\": { type: \"string\" } },\n status: \"experimental\" as ObjectTypeStatus,\n });\n\n const metadata = dumpOntologyFullMetadata();\n expect(\n metadata.blockData.objectTypes[\"com.palantir.experimental-status\"]\n .objectType.status,\n ).toEqual({\n type: \"experimental\",\n experimental: {},\n });\n }, \"/tmp/\");\n });\n\n it(\"converts deprecated status to proper format\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"DeprecatedStatusObject\",\n pluralDisplayName: \"DeprecatedStatusObjects\",\n apiName: \"deprecated-status\",\n primaryKeyPropertyApiName: \"bar\",\n properties: { \"bar\": { type: \"string\" } },\n status: {\n type: \"deprecated\",\n message: \"This object is deprecated\",\n deadline: \"2023-01-01\",\n } as ObjectTypeStatus,\n });\n\n const metadata = dumpOntologyFullMetadata();\n expect(\n metadata.blockData.objectTypes[\"com.palantir.deprecated-status\"]\n .objectType.status,\n ).toEqual({\n type: \"deprecated\",\n deprecated: {\n message: \"This object is deprecated\",\n deadline: \"2023-01-01\",\n replacedBy: undefined,\n },\n });\n }, \"/tmp/\");\n });\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AACzD,SAASC,YAAY,QAAQ,mBAAmB;AAChD,SAASC,cAAc,EAAEC,wBAAwB,QAAQ,qBAAqB;AAG9EL,QAAQ,CAAC,eAAe,EAAE,MAAM;EAC9BD,UAAU,CAAC,YAAY;IACrB,MAAMK,cAAc,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC;EAC1D,CAAC,CAAC;EAEFJ,QAAQ,CAAC,0BAA0B,EAAE,MAAM;IACzCE,EAAE,CAAC,6EAA6E,EAAE,YAAY;MAC5F,MAAME,cAAc,CAAC,eAAe,EAAE,MAAM;QAC1CH,MAAM,CAAC,MACLE,YAAY,CAAC;UACXG,oBAAoB,EAAE,KAAK;UAC3BC,WAAW,EAAE,sBAAsB;UACnCC,iBAAiB,EAAE,uBAAuB;UAC1CC,OAAO,EAAE,iBAAiB;UAC1BC,yBAAyB,EAAE,KAAK;UAChCC,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,SAAS,CAACC,WAAW,CAAC,kCAAkC,CAAC,CAC/DC,UAAU,CAACT,MAChB,CAAC,CAACU,OAAO,CAAC;UACRR,IAAI,EAAE,cAAc;UACpBU,YAAY,EAAE,CAAC;QACjB,CAAC,CAAC;MACJ,CAAC,EAAE,OAAO,CAAC;IACb,CAAC,CAAC;IAEFrB,EAAE,CAAC,6CAA6C,EAAE,YAAY;MAC5D,MAAME,cAAc,CAAC,eAAe,EAAE,MAAM;QAC9BD,YAAY,CAAC;UACvBG,oBAAoB,EAAE,KAAK;UAC3BC,WAAW,EAAE,wBAAwB;UACrCC,iBAAiB,EAAE,yBAAyB;UAC5CC,OAAO,EAAE,mBAAmB;UAC5BC,yBAAyB,EAAE,KAAK;UAChCE,UAAU,EAAE;YAAE,KAAK,EAAE;cAAEC,IAAI,EAAE;YAAS;UAAE,CAAC;UACzCF,MAAM,EAAE;YACNE,IAAI,EAAE,YAAY;YAClBW,OAAO,EAAE,2BAA2B;YACpCC,QAAQ,EAAE;UACZ;QACF,CAAC,CAAC;QAEF,MAAMR,QAAQ,GAAGZ,wBAAwB,CAAC,CAAC;QAC3CJ,MAAM,CACJgB,QAAQ,CAACC,SAAS,CAACC,WAAW,CAAC,gCAAgC,CAAC,CAC7DC,UAAU,CAACT,MAChB,CAAC,CAACU,OAAO,CAAC;UACRR,IAAI,EAAE,YAAY;UAClBa,UAAU,EAAE;YACVF,OAAO,EAAE,2BAA2B;YACpCC,QAAQ,EAAE,YAAY;YACtBE,UAAU,EAAEC;UACd;QACF,CAAC,CAAC;MACJ,CAAC,EAAE,OAAO,CAAC;IACb,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"objectStatus.test.js","names":["beforeEach","describe","expect","it","defineObject","defineOntology","dumpOntologyFullMetadata","titlePropertyApiName","displayName","pluralDisplayName","apiName","primaryKeyPropertyApiName","status","properties","type","toThrowError","not","toThrow","metadata","ontology","objectTypes","objectType","toEqual","active","experimental","message","deadline","deprecated","replacedBy","undefined"],"sources":["objectStatus.test.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 { beforeEach, describe, expect, it } from \"vitest\";\nimport { defineObject } from \"./defineObject.js\";\nimport { defineOntology, dumpOntologyFullMetadata } from \"./defineOntology.js\";\nimport type { ObjectTypeStatus } from \"./types.js\";\n\ndescribe(\"Object Status\", () => {\n beforeEach(async () => {\n await defineOntology(\"com.palantir.\", () => {}, \"/tmp/\");\n });\n\n describe(\"Object Status Validation\", () => {\n it(\"throws an error when object status is experimental and a property is active\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n expect(() =>\n defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"ValidationTestObject\",\n pluralDisplayName: \"ValidationTestObjects\",\n apiName: \"validation-test\",\n primaryKeyPropertyApiName: \"bar\",\n status: \"experimental\" as ObjectTypeStatus,\n properties: {\n \"bar\": { type: \"string\", status: \"active\" as ObjectTypeStatus },\n },\n })\n ).toThrowError(\n /When object \"validation-test\" has experimental status, no properties can have \"active\" status/,\n );\n }, \"/tmp/\");\n });\n\n it(\"does not throw when object status is experimental and no properties have active status\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n expect(() =>\n defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"ValidationTestObject2\",\n pluralDisplayName: \"ValidationTestObjects2\",\n apiName: \"validation-test-2\",\n primaryKeyPropertyApiName: \"bar\",\n status: \"experimental\" as ObjectTypeStatus,\n properties: {\n \"bar\": {\n type: \"string\",\n status: \"experimental\" as ObjectTypeStatus,\n },\n },\n })\n ).not.toThrow();\n }, \"/tmp/\");\n });\n });\n\n describe(\"Object Status Conversion\", () => {\n it(\"converts default status (undefined) to active\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"DefaultStatusObject\",\n pluralDisplayName: \"DefaultStatusObjects\",\n apiName: \"default-status\",\n primaryKeyPropertyApiName: \"bar\",\n properties: { \"bar\": { type: \"string\" } },\n });\n\n const metadata = dumpOntologyFullMetadata();\n expect(\n metadata.ontology.objectTypes[\"com.palantir.default-status\"]\n .objectType.status,\n ).toEqual({\n type: \"active\",\n active: {},\n });\n }, \"/tmp/\");\n });\n\n it(\"converts active status to proper format\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"ActiveStatusObject\",\n pluralDisplayName: \"ActiveStatusObjects\",\n apiName: \"active-status\",\n primaryKeyPropertyApiName: \"bar\",\n properties: { \"bar\": { type: \"string\" } },\n status: \"active\" as ObjectTypeStatus,\n });\n\n const metadata = dumpOntologyFullMetadata();\n expect(\n metadata.ontology.objectTypes[\"com.palantir.active-status\"]\n .objectType.status,\n ).toEqual({\n type: \"active\",\n active: {},\n });\n }, \"/tmp/\");\n });\n\n it(\"converts experimental status to proper format\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"ExperimentalStatusObject\",\n pluralDisplayName: \"ExperimentalStatusObjects\",\n apiName: \"experimental-status\",\n primaryKeyPropertyApiName: \"bar\",\n properties: { \"bar\": { type: \"string\" } },\n status: \"experimental\" as ObjectTypeStatus,\n });\n\n const metadata = dumpOntologyFullMetadata();\n expect(\n metadata.ontology.objectTypes[\"com.palantir.experimental-status\"]\n .objectType.status,\n ).toEqual({\n type: \"experimental\",\n experimental: {},\n });\n }, \"/tmp/\");\n });\n\n it(\"converts deprecated status to proper format\", async () => {\n await defineOntology(\"com.palantir.\", () => {\n const obj = defineObject({\n titlePropertyApiName: \"bar\",\n displayName: \"DeprecatedStatusObject\",\n pluralDisplayName: \"DeprecatedStatusObjects\",\n apiName: \"deprecated-status\",\n primaryKeyPropertyApiName: \"bar\",\n properties: { \"bar\": { type: \"string\" } },\n status: {\n type: \"deprecated\",\n message: \"This object is deprecated\",\n deadline: \"2023-01-01\",\n } as ObjectTypeStatus,\n });\n\n const metadata = dumpOntologyFullMetadata();\n expect(\n metadata.ontology.objectTypes[\"com.palantir.deprecated-status\"]\n .objectType.status,\n ).toEqual({\n type: \"deprecated\",\n deprecated: {\n message: \"This object is deprecated\",\n deadline: \"2023-01-01\",\n replacedBy: undefined,\n },\n });\n }, \"/tmp/\");\n });\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AACzD,SAASC,YAAY,QAAQ,mBAAmB;AAChD,SAASC,cAAc,EAAEC,wBAAwB,QAAQ,qBAAqB;AAG9EL,QAAQ,CAAC,eAAe,EAAE,MAAM;EAC9BD,UAAU,CAAC,YAAY;IACrB,MAAMK,cAAc,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC;EAC1D,CAAC,CAAC;EAEFJ,QAAQ,CAAC,0BAA0B,EAAE,MAAM;IACzCE,EAAE,CAAC,6EAA6E,EAAE,YAAY;MAC5F,MAAME,cAAc,CAAC,eAAe,EAAE,MAAM;QAC1CH,MAAM,CAAC,MACLE,YAAY,CAAC;UACXG,oBAAoB,EAAE,KAAK;UAC3BC,WAAW,EAAE,sBAAsB;UACnCC,iBAAiB,EAAE,uBAAuB;UAC1CC,OAAO,EAAE,iBAAiB;UAC1BC,yBAAyB,EAAE,KAAK;UAChCC,MAAM,EAAE,cAAkC;UAC1CC,UAAU,EAAE;YACV,KAA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