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

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 (45) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/build/browser/api/defineOntology.js +32 -108
  3. package/build/browser/api/defineOntology.js.map +1 -1
  4. package/build/browser/api/defineSpt.js.map +1 -1
  5. package/build/browser/api/defineValueType.js +2 -1
  6. package/build/browser/api/defineValueType.js.map +1 -1
  7. package/build/browser/api/markingconstraint.test.js +3 -3
  8. package/build/browser/api/markingconstraint.test.js.map +1 -1
  9. package/build/browser/api/objectStatus.test.js +4 -4
  10. package/build/browser/api/objectStatus.test.js.map +1 -1
  11. package/build/browser/api/overall.test.js +496 -268
  12. package/build/browser/api/overall.test.js.map +1 -1
  13. package/build/browser/api/propertyConversionUtils.js +3 -1
  14. package/build/browser/api/propertyConversionUtils.js.map +1 -1
  15. package/build/browser/api/types.js.map +1 -1
  16. package/build/browser/cli/main.js +11 -5
  17. package/build/browser/cli/main.js.map +1 -1
  18. package/build/cjs/index.cjs +49 -116
  19. package/build/cjs/index.cjs.map +1 -1
  20. package/build/cjs/index.d.cts +6 -9
  21. package/build/esm/api/defineOntology.js +32 -108
  22. package/build/esm/api/defineOntology.js.map +1 -1
  23. package/build/esm/api/defineSpt.js.map +1 -1
  24. package/build/esm/api/defineValueType.js +2 -1
  25. package/build/esm/api/defineValueType.js.map +1 -1
  26. package/build/esm/api/markingconstraint.test.js +3 -3
  27. package/build/esm/api/markingconstraint.test.js.map +1 -1
  28. package/build/esm/api/objectStatus.test.js +4 -4
  29. package/build/esm/api/objectStatus.test.js.map +1 -1
  30. package/build/esm/api/overall.test.js +496 -268
  31. package/build/esm/api/overall.test.js.map +1 -1
  32. package/build/esm/api/propertyConversionUtils.js +3 -1
  33. package/build/esm/api/propertyConversionUtils.js.map +1 -1
  34. package/build/esm/api/types.js.map +1 -1
  35. package/build/esm/cli/main.js +11 -5
  36. package/build/esm/cli/main.js.map +1 -1
  37. package/build/types/api/defineOntology.d.ts +1 -6
  38. package/build/types/api/defineOntology.d.ts.map +1 -1
  39. package/build/types/api/defineSpt.d.ts +2 -2
  40. package/build/types/api/defineSpt.d.ts.map +1 -1
  41. package/build/types/api/propertyConversionUtils.d.ts +2 -2
  42. package/build/types/api/propertyConversionUtils.d.ts.map +1 -1
  43. package/build/types/api/types.d.ts +4 -13
  44. package/build/types/api/types.d.ts.map +1 -1
  45. package/package.json +8 -8
@@ -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,CA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","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,EAA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