@osdk/maker 0.15.0-beta.9 → 0.15.0

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 (74) hide show
  1. package/CHANGELOG.md +136 -0
  2. package/README.md +49 -0
  3. package/build/browser/api/defineAction.js +4 -0
  4. package/build/browser/api/defineAction.js.map +1 -1
  5. package/build/browser/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
  6. package/build/browser/api/object/SecurityCondition.js +2 -0
  7. package/build/browser/api/object/SecurityCondition.js.map +1 -0
  8. package/build/browser/api/properties/PropertyTypeType.js.map +1 -1
  9. package/build/browser/api/propertyConversionUtils.js +5 -1
  10. package/build/browser/api/propertyConversionUtils.js.map +1 -1
  11. package/build/browser/api/test/actions.test.js +52 -0
  12. package/build/browser/api/test/actions.test.js.map +1 -1
  13. package/build/browser/api/test/links.test.js +36 -0
  14. package/build/browser/api/test/links.test.js.map +1 -1
  15. package/build/browser/api/test/misc.test.js +4 -0
  16. package/build/browser/api/test/misc.test.js.map +1 -1
  17. package/build/browser/api/test/objects.test.js +804 -0
  18. package/build/browser/api/test/objects.test.js.map +1 -1
  19. package/build/browser/cli/main.js +1 -1
  20. package/build/browser/cli/main.js.map +1 -1
  21. package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js +179 -0
  22. package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
  23. package/build/browser/conversion/toMarketplace/convertNullabilityToDataConstraint.js +0 -1
  24. package/build/browser/conversion/toMarketplace/convertNullabilityToDataConstraint.js.map +1 -1
  25. package/build/browser/conversion/toMarketplace/convertObject.js +4 -0
  26. package/build/browser/conversion/toMarketplace/convertObject.js.map +1 -1
  27. package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js +2 -2
  28. package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
  29. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +5 -0
  30. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
  31. package/build/cjs/index.cjs +265 -73
  32. package/build/cjs/index.cjs.map +1 -1
  33. package/build/cjs/index.d.cts +33 -2
  34. package/build/esm/api/defineAction.js +4 -0
  35. package/build/esm/api/defineAction.js.map +1 -1
  36. package/build/esm/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
  37. package/build/esm/api/object/SecurityCondition.js +2 -0
  38. package/build/esm/api/object/SecurityCondition.js.map +1 -0
  39. package/build/esm/api/properties/PropertyTypeType.js.map +1 -1
  40. package/build/esm/api/propertyConversionUtils.js +5 -1
  41. package/build/esm/api/propertyConversionUtils.js.map +1 -1
  42. package/build/esm/api/test/actions.test.js +52 -0
  43. package/build/esm/api/test/actions.test.js.map +1 -1
  44. package/build/esm/api/test/links.test.js +36 -0
  45. package/build/esm/api/test/links.test.js.map +1 -1
  46. package/build/esm/api/test/misc.test.js +4 -0
  47. package/build/esm/api/test/misc.test.js.map +1 -1
  48. package/build/esm/api/test/objects.test.js +804 -0
  49. package/build/esm/api/test/objects.test.js.map +1 -1
  50. package/build/esm/cli/main.js +1 -1
  51. package/build/esm/cli/main.js.map +1 -1
  52. package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js +179 -0
  53. package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
  54. package/build/esm/conversion/toMarketplace/convertNullabilityToDataConstraint.js +0 -1
  55. package/build/esm/conversion/toMarketplace/convertNullabilityToDataConstraint.js.map +1 -1
  56. package/build/esm/conversion/toMarketplace/convertObject.js +4 -0
  57. package/build/esm/conversion/toMarketplace/convertObject.js.map +1 -1
  58. package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js +2 -2
  59. package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
  60. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +5 -0
  61. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
  62. package/build/types/api/defineAction.d.ts.map +1 -1
  63. package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts +15 -1
  64. package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts.map +1 -1
  65. package/build/types/api/object/SecurityCondition.d.ts +18 -0
  66. package/build/types/api/object/SecurityCondition.d.ts.map +1 -0
  67. package/build/types/api/properties/PropertyTypeType.d.ts +1 -1
  68. package/build/types/api/properties/PropertyTypeType.d.ts.map +1 -1
  69. package/build/types/api/propertyConversionUtils.d.ts +1 -0
  70. package/build/types/api/propertyConversionUtils.d.ts.map +1 -1
  71. package/build/types/conversion/toMarketplace/convertDatasourceDefinition.d.ts.map +1 -1
  72. package/build/types/conversion/toMarketplace/convertObject.d.ts.map +1 -1
  73. package/build/types/conversion/toMarketplace/convertObjectPropertyType.d.ts.map +1 -1
  74. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyTypeType.js","names":["isPropertyTypeType","v","type","isExotic","undefined","includes","isStruct"],"sources":["PropertyTypeType.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 { StructFieldType } from \"@osdk/client.unstable\";\n\nexport type PropertyTypeType =\n | PropertyTypeTypePrimitive\n | PropertyTypeTypeExotic;\n\nexport type PropertyTypeTypePrimitive =\n | \"boolean\"\n | \"byte\"\n | \"date\"\n | \"decimal\"\n | \"double\"\n | \"float\"\n | \"integer\"\n | \"long\"\n | \"short\"\n | \"string\"\n | \"timestamp\";\n\nexport type PropertyTypeTypeExotic =\n | \"geopoint\"\n | \"geoshape\"\n | \"mediaReference\"\n | \"geotimeSeries\"\n | PropertyTypeTypeMarking\n | PropertyTypeTypeStruct\n | PropertyTypeTypeString\n | PropertyTypeTypeDecimal;\n\ntype PropertyTypeTypeMarking = {\n type: \"marking\";\n markingType: \"MANDATORY\" | \"CBAC\";\n markingInputGroupName: string;\n};\n\nexport type PropertyTypeTypeStruct = {\n type: \"struct\";\n structDefinition: {\n [api_name: string]:\n | StructPropertyType\n | Exclude<PropertyTypeTypesWithoutStruct, PropertyTypeTypeMarking>;\n };\n};\n\ntype PropertyTypeTypeString = {\n type: \"string\";\n isLongText?: boolean;\n supportsEfficientLeadingWildcard?: boolean;\n supportsExactMatching?: boolean;\n supportsFullTextRegex?: boolean;\n enableAsciiFolding?: boolean;\n};\n\ntype PropertyTypeTypeDecimal = {\n type: \"decimal\";\n precision?: number;\n scale?: number;\n};\n\nexport type PropertyTypeTypesWithoutStruct = Exclude<\n PropertyTypeType,\n PropertyTypeTypeStruct\n>;\nexport function isPropertyTypeType(\n v: PropertyTypeType,\n): v is PropertyTypeType {\n return v === \"boolean\" || v === \"byte\"\n || v === \"date\" || v === \"decimal\" || v === \"double\"\n || v === \"float\" || v === \"geopoint\" || v === \"geoshape\"\n || v === \"integer\" || v === \"long\"\n || (typeof v === \"object\" && v.type === \"marking\")\n || v === \"short\" || v === \"string\"\n || v === \"timestamp\";\n}\nexport function isExotic(\n type: PropertyTypeType | undefined,\n): type is PropertyTypeTypeExotic {\n if (type === undefined) {\n return false;\n }\n if (typeof type === \"string\") {\n return [\"geopoint\", \"geoshape\", \"mediaReference\", \"geotimeSeries\"].includes(\n type,\n );\n } else if (typeof type === \"object\" && type != null) {\n return type.type === \"marking\" || type.type === \"struct\"\n || type.type === \"string\"\n || type.type === \"decimal\";\n }\n return false;\n}\nexport function isStruct(\n type: PropertyTypeType,\n): type is PropertyTypeTypeStruct {\n return typeof type === \"object\" && type.type === \"struct\";\n}\n\ntype Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;\n\nexport interface StructPropertyType extends\n Optional<\n Omit<\n StructFieldType,\n \"fieldType\" | \"structFieldRid\" | \"apiName\"\n >,\n \"typeClasses\" | \"aliases\"\n >\n{\n fieldType: PropertyTypeTypesWithoutStruct;\n requireImplementation?: boolean;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAiEA,OAAO,SAASA,kBAAkBA,CAChCC,CAAmB,EACI;EACvB,OAAOA,CAAC,KAAK,SAAS,IAAIA,CAAC,KAAK,MAAM,IACjCA,CAAC,KAAK,MAAM,IAAIA,CAAC,KAAK,SAAS,IAAIA,CAAC,KAAK,QAAQ,IACjDA,CAAC,KAAK,OAAO,IAAIA,CAAC,KAAK,UAAU,IAAIA,CAAC,KAAK,UAAU,IACrDA,CAAC,KAAK,SAAS,IAAIA,CAAC,KAAK,MAAM,IAC9B,OAAOA,CAAC,KAAK,QAAQ,IAAIA,CAAC,CAACC,IAAI,KAAK,SAAU,IAC/CD,CAAC,KAAK,OAAO,IAAIA,CAAC,KAAK,QAAQ,IAC/BA,CAAC,KAAK,WAAW;AACxB;AACA,OAAO,SAASE,QAAQA,CACtBD,IAAkC,EACF;EAChC,IAAIA,IAAI,KAAKE,SAAS,EAAE;IACtB,OAAO,KAAK;EACd;EACA,IAAI,OAAOF,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAO,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAACG,QAAQ,CACzEH,IACF,CAAC;EACH,CAAC,MAAM,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAIA,IAAI,IAAI,IAAI,EAAE;IACnD,OAAOA,IAAI,CAACA,IAAI,KAAK,SAAS,IAAIA,IAAI,CAACA,IAAI,KAAK,QAAQ,IACnDA,IAAI,CAACA,IAAI,KAAK,QAAQ,IACtBA,IAAI,CAACA,IAAI,KAAK,SAAS;EAC9B;EACA,OAAO,KAAK;AACd;AACA,OAAO,SAASI,QAAQA,CACtBJ,IAAsB,EACU;EAChC,OAAO,OAAOA,IAAI,KAAK,QAAQ,IAAIA,IAAI,CAACA,IAAI,KAAK,QAAQ;AAC3D","ignoreList":[]}
1
+ {"version":3,"file":"PropertyTypeType.js","names":["isPropertyTypeType","v","type","isExotic","undefined","includes","isStruct"],"sources":["PropertyTypeType.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 { StructFieldType } from \"@osdk/client.unstable\";\n\nexport type PropertyTypeType =\n | PropertyTypeTypePrimitive\n | PropertyTypeTypeExotic;\n\nexport type PropertyTypeTypePrimitive =\n | \"boolean\"\n | \"byte\"\n | \"date\"\n | \"decimal\"\n | \"double\"\n | \"float\"\n | \"integer\"\n | \"long\"\n | \"short\"\n | \"string\"\n | \"timestamp\"\n | \"attachment\";\n\nexport type PropertyTypeTypeExotic =\n | \"geopoint\"\n | \"geoshape\"\n | \"mediaReference\"\n | \"geotimeSeries\"\n | PropertyTypeTypeMarking\n | PropertyTypeTypeStruct\n | PropertyTypeTypeString\n | PropertyTypeTypeDecimal;\n\ntype PropertyTypeTypeMarking = {\n type: \"marking\";\n markingType: \"MANDATORY\" | \"CBAC\";\n markingInputGroupName: string;\n};\n\nexport type PropertyTypeTypeStruct = {\n type: \"struct\";\n structDefinition: {\n [api_name: string]:\n | StructPropertyType\n | Exclude<PropertyTypeTypesWithoutStruct, PropertyTypeTypeMarking>;\n };\n};\n\ntype PropertyTypeTypeString = {\n type: \"string\";\n isLongText?: boolean;\n supportsEfficientLeadingWildcard?: boolean;\n supportsExactMatching?: boolean;\n supportsFullTextRegex?: boolean;\n enableAsciiFolding?: boolean;\n};\n\ntype PropertyTypeTypeDecimal = {\n type: \"decimal\";\n precision?: number;\n scale?: number;\n};\n\nexport type PropertyTypeTypesWithoutStruct = Exclude<\n PropertyTypeType,\n PropertyTypeTypeStruct\n>;\nexport function isPropertyTypeType(\n v: PropertyTypeType,\n): v is PropertyTypeType {\n return v === \"boolean\" || v === \"byte\"\n || v === \"date\" || v === \"decimal\" || v === \"double\"\n || v === \"float\" || v === \"geopoint\" || v === \"geoshape\"\n || v === \"integer\" || v === \"long\"\n || (typeof v === \"object\" && v.type === \"marking\")\n || v === \"short\" || v === \"string\"\n || v === \"timestamp\";\n}\nexport function isExotic(\n type: PropertyTypeType | undefined,\n): type is PropertyTypeTypeExotic {\n if (type === undefined) {\n return false;\n }\n if (typeof type === \"string\") {\n return [\"geopoint\", \"geoshape\", \"mediaReference\", \"geotimeSeries\"].includes(\n type,\n );\n } else if (typeof type === \"object\" && type != null) {\n return type.type === \"marking\" || type.type === \"struct\"\n || type.type === \"string\"\n || type.type === \"decimal\";\n }\n return false;\n}\nexport function isStruct(\n type: PropertyTypeType,\n): type is PropertyTypeTypeStruct {\n return typeof type === \"object\" && type.type === \"struct\";\n}\n\ntype Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;\n\nexport interface StructPropertyType extends\n Optional<\n Omit<\n StructFieldType,\n \"fieldType\" | \"structFieldRid\" | \"apiName\"\n >,\n \"typeClasses\" | \"aliases\"\n >\n{\n fieldType: PropertyTypeTypesWithoutStruct;\n requireImplementation?: boolean;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkEA,OAAO,SAASA,kBAAkBA,CAChCC,CAAmB,EACI;EACvB,OAAOA,CAAC,KAAK,SAAS,IAAIA,CAAC,KAAK,MAAM,IACjCA,CAAC,KAAK,MAAM,IAAIA,CAAC,KAAK,SAAS,IAAIA,CAAC,KAAK,QAAQ,IACjDA,CAAC,KAAK,OAAO,IAAIA,CAAC,KAAK,UAAU,IAAIA,CAAC,KAAK,UAAU,IACrDA,CAAC,KAAK,SAAS,IAAIA,CAAC,KAAK,MAAM,IAC9B,OAAOA,CAAC,KAAK,QAAQ,IAAIA,CAAC,CAACC,IAAI,KAAK,SAAU,IAC/CD,CAAC,KAAK,OAAO,IAAIA,CAAC,KAAK,QAAQ,IAC/BA,CAAC,KAAK,WAAW;AACxB;AACA,OAAO,SAASE,QAAQA,CACtBD,IAAkC,EACF;EAChC,IAAIA,IAAI,KAAKE,SAAS,EAAE;IACtB,OAAO,KAAK;EACd;EACA,IAAI,OAAOF,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAO,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAACG,QAAQ,CACzEH,IACF,CAAC;EACH,CAAC,MAAM,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAIA,IAAI,IAAI,IAAI,EAAE;IACnD,OAAOA,IAAI,CAACA,IAAI,KAAK,SAAS,IAAIA,IAAI,CAACA,IAAI,KAAK,QAAQ,IACnDA,IAAI,CAACA,IAAI,KAAK,QAAQ,IACtBA,IAAI,CAACA,IAAI,KAAK,SAAS;EAC9B;EACA,OAAO,KAAK;AACd;AACA,OAAO,SAASI,QAAQA,CACtBJ,IAAsB,EACU;EAChC,OAAO,OAAOA,IAAI,KAAK,QAAQ,IAAIA,IAAI,CAACA,IAAI,KAAK,QAAQ;AAC3D","ignoreList":[]}
@@ -24,7 +24,7 @@ export const defaultTypeClasses = [{
24
24
 
25
25
  // ExperimentalTimeDependentV1 and Attachment types should be included here once supported
26
26
  export function shouldNotHaveRenderHints(type) {
27
- return ["struct", "mediaReference", "geotimeSeries"].includes(getPropertyTypeName(type));
27
+ return ["struct", "mediaReference", "geotimeSeries", "attachment"].includes(getPropertyTypeName(type));
28
28
  }
29
29
  export function hasRenderHints(typeClasses) {
30
30
  return (typeClasses ?? []).some(tc => tc.kind.toLowerCase() === "render_hint");
@@ -32,4 +32,8 @@ export function hasRenderHints(typeClasses) {
32
32
  export function getPropertyTypeName(type) {
33
33
  return typeof type === "object" ? type.type : type;
34
34
  }
35
+ export function shouldBeIndexedForSearch(type) {
36
+ getPropertyTypeName(type);
37
+ return !["attachment"].includes(getPropertyTypeName(type));
38
+ }
35
39
  //# sourceMappingURL=propertyConversionUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"propertyConversionUtils.js","names":["defaultTypeClasses","kind","name","shouldNotHaveRenderHints","type","includes","getPropertyTypeName","hasRenderHints","typeClasses","some","tc","toLowerCase"],"sources":["propertyConversionUtils.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 { TypeClass } from \"./common/TypeClass.js\";\nimport type { PropertyTypeType } from \"./properties/PropertyTypeType.js\";\n\nexport const defaultTypeClasses: TypeClass[] = [{\n kind: \"render_hint\",\n name: \"SELECTABLE\",\n}, { kind: \"render_hint\", name: \"SORTABLE\" }];\n\n// ExperimentalTimeDependentV1 and Attachment types should be included here once supported\nexport function shouldNotHaveRenderHints(type: PropertyTypeType): boolean {\n return [\"struct\", \"mediaReference\", \"geotimeSeries\"].includes(\n getPropertyTypeName(type),\n );\n}\n\nexport function hasRenderHints(typeClasses: TypeClass[] | undefined): boolean {\n return (typeClasses ?? []).some(tc =>\n tc.kind.toLowerCase() === \"render_hint\"\n );\n}\n\nexport function getPropertyTypeName(type: PropertyTypeType): string {\n return typeof type === \"object\" ? type.type : type;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA,OAAO,MAAMA,kBAA+B,GAAG,CAAC;EAC9CC,IAAI,EAAE,aAAa;EACnBC,IAAI,EAAE;AACR,CAAC,EAAE;EAAED,IAAI,EAAE,aAAa;EAAEC,IAAI,EAAE;AAAW,CAAC,CAAC;;AAE7C;AACA,OAAO,SAASC,wBAAwBA,CAACC,IAAsB,EAAW;EACxE,OAAO,CAAC,QAAQ,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAACC,QAAQ,CAC3DC,mBAAmB,CAACF,IAAI,CAC1B,CAAC;AACH;AAEA,OAAO,SAASG,cAAcA,CAACC,WAAoC,EAAW;EAC5E,OAAO,CAACA,WAAW,IAAI,EAAE,EAAEC,IAAI,CAACC,EAAE,IAChCA,EAAE,CAACT,IAAI,CAACU,WAAW,CAAC,CAAC,KAAK,aAC5B,CAAC;AACH;AAEA,OAAO,SAASL,mBAAmBA,CAACF,IAAsB,EAAU;EAClE,OAAO,OAAOA,IAAI,KAAK,QAAQ,GAAGA,IAAI,CAACA,IAAI,GAAGA,IAAI;AACpD","ignoreList":[]}
1
+ {"version":3,"file":"propertyConversionUtils.js","names":["defaultTypeClasses","kind","name","shouldNotHaveRenderHints","type","includes","getPropertyTypeName","hasRenderHints","typeClasses","some","tc","toLowerCase","shouldBeIndexedForSearch"],"sources":["propertyConversionUtils.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 { TypeClass } from \"./common/TypeClass.js\";\nimport type { PropertyTypeType } from \"./properties/PropertyTypeType.js\";\n\nexport const defaultTypeClasses: TypeClass[] = [{\n kind: \"render_hint\",\n name: \"SELECTABLE\",\n}, { kind: \"render_hint\", name: \"SORTABLE\" }];\n\n// ExperimentalTimeDependentV1 and Attachment types should be included here once supported\nexport function shouldNotHaveRenderHints(type: PropertyTypeType): boolean {\n return [\"struct\", \"mediaReference\", \"geotimeSeries\", \"attachment\"].includes(\n getPropertyTypeName(type),\n );\n}\n\nexport function hasRenderHints(typeClasses: TypeClass[] | undefined): boolean {\n return (typeClasses ?? []).some(tc =>\n tc.kind.toLowerCase() === \"render_hint\"\n );\n}\n\nexport function getPropertyTypeName(type: PropertyTypeType): string {\n return typeof type === \"object\" ? type.type : type;\n}\n\nexport function shouldBeIndexedForSearch(\n type: PropertyTypeType,\n): boolean {\n const typeName = getPropertyTypeName(type);\n return ![\"attachment\"].includes(\n getPropertyTypeName(type),\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA,OAAO,MAAMA,kBAA+B,GAAG,CAAC;EAC9CC,IAAI,EAAE,aAAa;EACnBC,IAAI,EAAE;AACR,CAAC,EAAE;EAAED,IAAI,EAAE,aAAa;EAAEC,IAAI,EAAE;AAAW,CAAC,CAAC;;AAE7C;AACA,OAAO,SAASC,wBAAwBA,CAACC,IAAsB,EAAW;EACxE,OAAO,CAAC,QAAQ,EAAE,gBAAgB,EAAE,eAAe,EAAE,YAAY,CAAC,CAACC,QAAQ,CACzEC,mBAAmB,CAACF,IAAI,CAC1B,CAAC;AACH;AAEA,OAAO,SAASG,cAAcA,CAACC,WAAoC,EAAW;EAC5E,OAAO,CAACA,WAAW,IAAI,EAAE,EAAEC,IAAI,CAACC,EAAE,IAChCA,EAAE,CAACT,IAAI,CAACU,WAAW,CAAC,CAAC,KAAK,aAC5B,CAAC;AACH;AAEA,OAAO,SAASL,mBAAmBA,CAACF,IAAsB,EAAU;EAClE,OAAO,OAAOA,IAAI,KAAK,QAAQ,GAAGA,IAAI,CAACA,IAAI,GAAGA,IAAI;AACpD;AAEA,OAAO,SAASQ,wBAAwBA,CACtCR,IAAsB,EACb;EACQE,mBAAmB,CAACF,IAAI,CAAC;EAC1C,OAAO,CAAC,CAAC,YAAY,CAAC,CAACC,QAAQ,CAC7BC,mBAAmB,CAACF,IAAI,CAC1B,CAAC;AACH","ignoreList":[]}
@@ -1326,6 +1326,10 @@
1326
1326
  },
1327
1327
  "titlePropertyTypeRid": "bar",
1328
1328
  },
1329
+ "propertySecurityGroupPackagingVersion": {
1330
+ "type": "v2",
1331
+ "v2": {},
1332
+ },
1329
1333
  },
1330
1334
  },
1331
1335
  "sharedPropertyTypes": {
@@ -6445,6 +6449,10 @@
6445
6449
  },
6446
6450
  "titlePropertyTypeRid": "bar",
6447
6451
  },
6452
+ "propertySecurityGroupPackagingVersion": {
6453
+ "type": "v2",
6454
+ "v2": {},
6455
+ },
6448
6456
  },
6449
6457
  },
6450
6458
  "sharedPropertyTypes": {},
@@ -7847,6 +7855,10 @@
7847
7855
  },
7848
7856
  "titlePropertyTypeRid": "bar",
7849
7857
  },
7858
+ "propertySecurityGroupPackagingVersion": {
7859
+ "type": "v2",
7860
+ "v2": {},
7861
+ },
7850
7862
  },
7851
7863
  },
7852
7864
  "sharedPropertyTypes": {},
@@ -8951,6 +8963,10 @@
8951
8963
  },
8952
8964
  "titlePropertyTypeRid": "bar",
8953
8965
  },
8966
+ "propertySecurityGroupPackagingVersion": {
8967
+ "type": "v2",
8968
+ "v2": {},
8969
+ },
8954
8970
  },
8955
8971
  },
8956
8972
  "sharedPropertyTypes": {
@@ -10470,6 +10486,10 @@
10470
10486
  },
10471
10487
  "titlePropertyTypeRid": "id",
10472
10488
  },
10489
+ "propertySecurityGroupPackagingVersion": {
10490
+ "type": "v2",
10491
+ "v2": {},
10492
+ },
10473
10493
  },
10474
10494
  },
10475
10495
  "sharedPropertyTypes": {
@@ -11163,6 +11183,10 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
11163
11183
  },
11164
11184
  "titlePropertyTypeRid": "id",
11165
11185
  },
11186
+ "propertySecurityGroupPackagingVersion": {
11187
+ "type": "v2",
11188
+ "v2": {},
11189
+ },
11166
11190
  },
11167
11191
  "com.palantir.manager": {
11168
11192
  "datasources": [
@@ -11260,6 +11284,10 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
11260
11284
  },
11261
11285
  "titlePropertyTypeRid": "id",
11262
11286
  },
11287
+ "propertySecurityGroupPackagingVersion": {
11288
+ "type": "v2",
11289
+ "v2": {},
11290
+ },
11263
11291
  },
11264
11292
  },
11265
11293
  "sharedPropertyTypes": {},
@@ -11646,6 +11674,10 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
11646
11674
  },
11647
11675
  "titlePropertyTypeRid": "name",
11648
11676
  },
11677
+ "propertySecurityGroupPackagingVersion": {
11678
+ "type": "v2",
11679
+ "v2": {},
11680
+ },
11649
11681
  },
11650
11682
  },
11651
11683
  "sharedPropertyTypes": {},
@@ -12032,6 +12064,10 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
12032
12064
  },
12033
12065
  "titlePropertyTypeRid": "name",
12034
12066
  },
12067
+ "propertySecurityGroupPackagingVersion": {
12068
+ "type": "v2",
12069
+ "v2": {},
12070
+ },
12035
12071
  },
12036
12072
  },
12037
12073
  "sharedPropertyTypes": {},
@@ -12864,6 +12900,10 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
12864
12900
  },
12865
12901
  "titlePropertyTypeRid": "id",
12866
12902
  },
12903
+ "propertySecurityGroupPackagingVersion": {
12904
+ "type": "v2",
12905
+ "v2": {},
12906
+ },
12867
12907
  },
12868
12908
  },
12869
12909
  "sharedPropertyTypes": {},
@@ -13296,6 +13336,10 @@ const employeeObject=defineObject({apiName:"employee",displayName:"Employee",plu
13296
13336
  },
13297
13337
  "titlePropertyTypeRid": "name",
13298
13338
  },
13339
+ "propertySecurityGroupPackagingVersion": {
13340
+ "type": "v2",
13341
+ "v2": {},
13342
+ },
13299
13343
  },
13300
13344
  },
13301
13345
  "sharedPropertyTypes": {},
@@ -13773,6 +13817,10 @@ parameterOrdering:["foo","id"]});}).toThrowErrorMatchingInlineSnapshot(`[Error:
13773
13817
  },
13774
13818
  "titlePropertyTypeRid": "name",
13775
13819
  },
13820
+ "propertySecurityGroupPackagingVersion": {
13821
+ "type": "v2",
13822
+ "v2": {},
13823
+ },
13776
13824
  },
13777
13825
  },
13778
13826
  "sharedPropertyTypes": {},
@@ -14332,6 +14380,10 @@ parameterOrdering:["foo","id"]});}).toThrowErrorMatchingInlineSnapshot(`[Error:
14332
14380
  },
14333
14381
  "titlePropertyTypeRid": "bar",
14334
14382
  },
14383
+ "propertySecurityGroupPackagingVersion": {
14384
+ "type": "v2",
14385
+ "v2": {},
14386
+ },
14335
14387
  },
14336
14388
  },
14337
14389
  "sharedPropertyTypes": {},