@osdk/maker 0.16.0-beta.1 → 0.16.0-beta.10

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 (240) hide show
  1. package/CHANGELOG.md +99 -0
  2. package/README.md +18 -1
  3. package/build/browser/api/cloneDefinition.js +36 -0
  4. package/build/browser/api/cloneDefinition.js.map +1 -0
  5. package/build/browser/api/code-snippets/createCodeSnippets.js +1 -1
  6. package/build/browser/api/code-snippets/createCodeSnippets.js.map +1 -1
  7. package/build/browser/api/defineAction.js +9 -1
  8. package/build/browser/api/defineAction.js.map +1 -1
  9. package/build/browser/api/defineCreateInterfaceObjectAction.js +3 -1
  10. package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -1
  11. package/build/browser/api/defineCreateObjectAction.js +3 -1
  12. package/build/browser/api/defineCreateObjectAction.js.map +1 -1
  13. package/build/browser/api/defineCreateOrModifyObjectAction.js +3 -1
  14. package/build/browser/api/defineCreateOrModifyObjectAction.js.map +1 -1
  15. package/build/browser/api/defineDeleteInterfaceObjectAction.js +3 -1
  16. package/build/browser/api/defineDeleteInterfaceObjectAction.js.map +1 -1
  17. package/build/browser/api/defineDeleteObjectAction.js +3 -1
  18. package/build/browser/api/defineDeleteObjectAction.js.map +1 -1
  19. package/build/browser/api/defineFunction.js +61 -0
  20. package/build/browser/api/defineFunction.js.map +1 -0
  21. package/build/browser/api/defineInterface.js +3 -1
  22. package/build/browser/api/defineInterface.js.map +1 -1
  23. package/build/browser/api/defineInterfaceLinkConstraint.js +6 -2
  24. package/build/browser/api/defineInterfaceLinkConstraint.js.map +1 -1
  25. package/build/browser/api/defineLink.js +3 -1
  26. package/build/browser/api/defineLink.js.map +1 -1
  27. package/build/browser/api/defineModifyInterfaceObjectAction.js +3 -1
  28. package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -1
  29. package/build/browser/api/defineModifyObjectAction.js +3 -1
  30. package/build/browser/api/defineModifyObjectAction.js.map +1 -1
  31. package/build/browser/api/defineObject.js +29 -10
  32. package/build/browser/api/defineObject.js.map +1 -1
  33. package/build/browser/api/defineOntology.js +29 -0
  34. package/build/browser/api/defineOntology.js.map +1 -1
  35. package/build/browser/api/defineSpt.js +3 -1
  36. package/build/browser/api/defineSpt.js.map +1 -1
  37. package/build/browser/api/defineValueType.js +3 -1
  38. package/build/browser/api/defineValueType.js.map +1 -1
  39. package/build/browser/api/interface/InterfaceType.js.map +1 -1
  40. package/build/browser/api/object/ObjectPropertyType.js.map +1 -1
  41. package/build/browser/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
  42. package/build/browser/api/properties/PropertyTypeType.js.map +1 -1
  43. package/build/browser/api/properties/ReducerType.js +2 -0
  44. package/build/browser/api/properties/ReducerType.js.map +1 -0
  45. package/build/browser/api/properties/SharedPropertyType.js.map +1 -1
  46. package/build/browser/cli/main.js +1 -1
  47. package/build/browser/cli/main.js.map +1 -1
  48. package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js +17 -6
  49. package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
  50. package/build/browser/conversion/toMarketplace/convertInterface.js +2 -1
  51. package/build/browser/conversion/toMarketplace/convertInterface.js.map +1 -1
  52. package/build/browser/conversion/toMarketplace/convertMainValue.js +36 -0
  53. package/build/browser/conversion/toMarketplace/convertMainValue.js.map +1 -0
  54. package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js +4 -3
  55. package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
  56. package/build/browser/conversion/toMarketplace/convertReducers.js +53 -0
  57. package/build/browser/conversion/toMarketplace/convertReducers.js.map +1 -0
  58. package/build/browser/conversion/toMarketplace/convertSpt.js +5 -3
  59. package/build/browser/conversion/toMarketplace/convertSpt.js.map +1 -1
  60. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -2
  61. package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
  62. package/build/browser/index.js +5 -2
  63. package/build/browser/index.js.map +1 -1
  64. package/build/cjs/index.cjs +267 -105
  65. package/build/cjs/index.cjs.map +1 -1
  66. package/build/cjs/index.d.cts +214 -164
  67. package/build/esm/api/cloneDefinition.js +36 -0
  68. package/build/esm/api/cloneDefinition.js.map +1 -0
  69. package/build/esm/api/code-snippets/createCodeSnippets.js +1 -1
  70. package/build/esm/api/code-snippets/createCodeSnippets.js.map +1 -1
  71. package/build/esm/api/defineAction.js +9 -1
  72. package/build/esm/api/defineAction.js.map +1 -1
  73. package/build/esm/api/defineCreateInterfaceObjectAction.js +3 -1
  74. package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -1
  75. package/build/esm/api/defineCreateObjectAction.js +3 -1
  76. package/build/esm/api/defineCreateObjectAction.js.map +1 -1
  77. package/build/esm/api/defineCreateOrModifyObjectAction.js +3 -1
  78. package/build/esm/api/defineCreateOrModifyObjectAction.js.map +1 -1
  79. package/build/esm/api/defineDeleteInterfaceObjectAction.js +3 -1
  80. package/build/esm/api/defineDeleteInterfaceObjectAction.js.map +1 -1
  81. package/build/esm/api/defineDeleteObjectAction.js +3 -1
  82. package/build/esm/api/defineDeleteObjectAction.js.map +1 -1
  83. package/build/esm/api/defineFunction.js +61 -0
  84. package/build/esm/api/defineFunction.js.map +1 -0
  85. package/build/esm/api/defineInterface.js +3 -1
  86. package/build/esm/api/defineInterface.js.map +1 -1
  87. package/build/esm/api/defineInterfaceLinkConstraint.js +6 -2
  88. package/build/esm/api/defineInterfaceLinkConstraint.js.map +1 -1
  89. package/build/esm/api/defineLink.js +3 -1
  90. package/build/esm/api/defineLink.js.map +1 -1
  91. package/build/esm/api/defineModifyInterfaceObjectAction.js +3 -1
  92. package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -1
  93. package/build/esm/api/defineModifyObjectAction.js +3 -1
  94. package/build/esm/api/defineModifyObjectAction.js.map +1 -1
  95. package/build/esm/api/defineObject.js +29 -10
  96. package/build/esm/api/defineObject.js.map +1 -1
  97. package/build/esm/api/defineOntology.js +29 -0
  98. package/build/esm/api/defineOntology.js.map +1 -1
  99. package/build/esm/api/defineSpt.js +3 -1
  100. package/build/esm/api/defineSpt.js.map +1 -1
  101. package/build/esm/api/defineValueType.js +3 -1
  102. package/build/esm/api/defineValueType.js.map +1 -1
  103. package/build/esm/api/interface/InterfaceType.js.map +1 -1
  104. package/build/esm/api/object/ObjectPropertyType.js.map +1 -1
  105. package/build/esm/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
  106. package/build/esm/api/properties/PropertyTypeType.js.map +1 -1
  107. package/build/esm/api/properties/ReducerType.js +2 -0
  108. package/build/esm/api/properties/ReducerType.js.map +1 -0
  109. package/build/esm/api/properties/SharedPropertyType.js.map +1 -1
  110. package/build/esm/cli/main.js +1 -1
  111. package/build/esm/cli/main.js.map +1 -1
  112. package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js +17 -6
  113. package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
  114. package/build/esm/conversion/toMarketplace/convertInterface.js +2 -1
  115. package/build/esm/conversion/toMarketplace/convertInterface.js.map +1 -1
  116. package/build/esm/conversion/toMarketplace/convertMainValue.js +36 -0
  117. package/build/esm/conversion/toMarketplace/convertMainValue.js.map +1 -0
  118. package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js +4 -3
  119. package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
  120. package/build/esm/conversion/toMarketplace/convertReducers.js +53 -0
  121. package/build/esm/conversion/toMarketplace/convertReducers.js.map +1 -0
  122. package/build/esm/conversion/toMarketplace/convertSpt.js +5 -3
  123. package/build/esm/conversion/toMarketplace/convertSpt.js.map +1 -1
  124. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -2
  125. package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
  126. package/build/esm/index.js +5 -2
  127. package/build/esm/index.js.map +1 -1
  128. package/build/types/api/cloneDefinition.d.ts +9 -0
  129. package/build/types/api/cloneDefinition.d.ts.map +1 -0
  130. package/build/types/api/defineAction.d.ts +1 -1
  131. package/build/types/api/defineAction.d.ts.map +1 -1
  132. package/build/types/api/defineCreateInterfaceObjectAction.d.ts +1 -1
  133. package/build/types/api/defineCreateInterfaceObjectAction.d.ts.map +1 -1
  134. package/build/types/api/defineCreateObjectAction.d.ts +1 -1
  135. package/build/types/api/defineCreateObjectAction.d.ts.map +1 -1
  136. package/build/types/api/defineCreateOrModifyObjectAction.d.ts +1 -1
  137. package/build/types/api/defineCreateOrModifyObjectAction.d.ts.map +1 -1
  138. package/build/types/api/defineDeleteInterfaceObjectAction.d.ts +1 -1
  139. package/build/types/api/defineDeleteInterfaceObjectAction.d.ts.map +1 -1
  140. package/build/types/api/defineDeleteObjectAction.d.ts +1 -1
  141. package/build/types/api/defineDeleteObjectAction.d.ts.map +1 -1
  142. package/build/types/api/defineFunction.d.ts +19 -0
  143. package/build/types/api/defineFunction.d.ts.map +1 -0
  144. package/build/types/api/defineInterface.d.ts +1 -1
  145. package/build/types/api/defineInterface.d.ts.map +1 -1
  146. package/build/types/api/defineInterfaceLinkConstraint.d.ts +1 -1
  147. package/build/types/api/defineInterfaceLinkConstraint.d.ts.map +1 -1
  148. package/build/types/api/defineLink.d.ts +1 -1
  149. package/build/types/api/defineLink.d.ts.map +1 -1
  150. package/build/types/api/defineModifyInterfaceObjectAction.d.ts +1 -1
  151. package/build/types/api/defineModifyInterfaceObjectAction.d.ts.map +1 -1
  152. package/build/types/api/defineModifyObjectAction.d.ts +1 -1
  153. package/build/types/api/defineModifyObjectAction.d.ts.map +1 -1
  154. package/build/types/api/defineObject.d.ts +1 -1
  155. package/build/types/api/defineObject.d.ts.map +1 -1
  156. package/build/types/api/defineOntology.d.ts +5 -0
  157. package/build/types/api/defineOntology.d.ts.map +1 -1
  158. package/build/types/api/defineSpt.d.ts +3 -1
  159. package/build/types/api/defineSpt.d.ts.map +1 -1
  160. package/build/types/api/defineValueType.d.ts +1 -1
  161. package/build/types/api/defineValueType.d.ts.map +1 -1
  162. package/build/types/api/interface/InterfaceType.d.ts +1 -1
  163. package/build/types/api/interface/InterfaceType.d.ts.map +1 -1
  164. package/build/types/api/object/ObjectPropertyType.d.ts +2 -0
  165. package/build/types/api/object/ObjectPropertyType.d.ts.map +1 -1
  166. package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts +10 -3
  167. package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts.map +1 -1
  168. package/build/types/api/properties/PropertyTypeType.d.ts +4 -0
  169. package/build/types/api/properties/PropertyTypeType.d.ts.map +1 -1
  170. package/build/types/api/properties/ReducerType.d.ts +4 -0
  171. package/build/types/api/properties/ReducerType.d.ts.map +1 -0
  172. package/build/types/api/properties/SharedPropertyType.d.ts +2 -0
  173. package/build/types/api/properties/SharedPropertyType.d.ts.map +1 -1
  174. package/build/types/conversion/toMarketplace/convertDatasourceDefinition.d.ts.map +1 -1
  175. package/build/types/conversion/toMarketplace/convertMainValue.d.ts +4 -0
  176. package/build/types/conversion/toMarketplace/convertMainValue.d.ts.map +1 -0
  177. package/build/types/conversion/toMarketplace/convertObjectPropertyType.d.ts.map +1 -1
  178. package/build/types/conversion/toMarketplace/convertReducers.d.ts +6 -0
  179. package/build/types/conversion/toMarketplace/convertReducers.d.ts.map +1 -0
  180. package/build/types/conversion/toMarketplace/convertSpt.d.ts +1 -1
  181. package/build/types/conversion/toMarketplace/convertSpt.d.ts.map +1 -1
  182. package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.d.ts +2 -1
  183. package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.d.ts.map +1 -1
  184. package/build/types/index.d.ts +14 -6
  185. package/build/types/index.d.ts.map +1 -1
  186. package/package.json +6 -5
  187. package/build/browser/api/test/actions.test.js +0 -14397
  188. package/build/browser/api/test/actions.test.js.map +0 -1
  189. package/build/browser/api/test/interfaces.test.js +0 -1189
  190. package/build/browser/api/test/interfaces.test.js.map +0 -1
  191. package/build/browser/api/test/links.test.js +0 -2019
  192. package/build/browser/api/test/links.test.js.map +0 -1
  193. package/build/browser/api/test/markingconstraint.test.js +0 -134
  194. package/build/browser/api/test/markingconstraint.test.js.map +0 -1
  195. package/build/browser/api/test/misc.test.js +0 -1315
  196. package/build/browser/api/test/misc.test.js.map +0 -1
  197. package/build/browser/api/test/objectStatus.test.js +0 -160
  198. package/build/browser/api/test/objectStatus.test.js.map +0 -1
  199. package/build/browser/api/test/objects.test.js +0 -3856
  200. package/build/browser/api/test/objects.test.js.map +0 -1
  201. package/build/browser/api/test/spt.test.js +0 -722
  202. package/build/browser/api/test/spt.test.js.map +0 -1
  203. package/build/browser/api/test/valueTypes.test.js +0 -307
  204. package/build/browser/api/test/valueTypes.test.js.map +0 -1
  205. package/build/esm/api/test/actions.test.js +0 -14397
  206. package/build/esm/api/test/actions.test.js.map +0 -1
  207. package/build/esm/api/test/interfaces.test.js +0 -1189
  208. package/build/esm/api/test/interfaces.test.js.map +0 -1
  209. package/build/esm/api/test/links.test.js +0 -2019
  210. package/build/esm/api/test/links.test.js.map +0 -1
  211. package/build/esm/api/test/markingconstraint.test.js +0 -134
  212. package/build/esm/api/test/markingconstraint.test.js.map +0 -1
  213. package/build/esm/api/test/misc.test.js +0 -1315
  214. package/build/esm/api/test/misc.test.js.map +0 -1
  215. package/build/esm/api/test/objectStatus.test.js +0 -160
  216. package/build/esm/api/test/objectStatus.test.js.map +0 -1
  217. package/build/esm/api/test/objects.test.js +0 -3856
  218. package/build/esm/api/test/objects.test.js.map +0 -1
  219. package/build/esm/api/test/spt.test.js +0 -722
  220. package/build/esm/api/test/spt.test.js.map +0 -1
  221. package/build/esm/api/test/valueTypes.test.js +0 -307
  222. package/build/esm/api/test/valueTypes.test.js.map +0 -1
  223. package/build/types/api/test/actions.test.d.ts +0 -1
  224. package/build/types/api/test/actions.test.d.ts.map +0 -1
  225. package/build/types/api/test/interfaces.test.d.ts +0 -1
  226. package/build/types/api/test/interfaces.test.d.ts.map +0 -1
  227. package/build/types/api/test/links.test.d.ts +0 -1
  228. package/build/types/api/test/links.test.d.ts.map +0 -1
  229. package/build/types/api/test/markingconstraint.test.d.ts +0 -1
  230. package/build/types/api/test/markingconstraint.test.d.ts.map +0 -1
  231. package/build/types/api/test/misc.test.d.ts +0 -1
  232. package/build/types/api/test/misc.test.d.ts.map +0 -1
  233. package/build/types/api/test/objectStatus.test.d.ts +0 -1
  234. package/build/types/api/test/objectStatus.test.d.ts.map +0 -1
  235. package/build/types/api/test/objects.test.d.ts +0 -1
  236. package/build/types/api/test/objects.test.d.ts.map +0 -1
  237. package/build/types/api/test/spt.test.d.ts +0 -1
  238. package/build/types/api/test/spt.test.d.ts.map +0 -1
  239. package/build/types/api/test/valueTypes.test.d.ts +0 -1
  240. package/build/types/api/test/valueTypes.test.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertReducers.js","names":["invariant","isStruct","convertReducers","type","apiName","reducers","sharedPropertyType","forEach","reducer","structField","Object","keys","structDefinition","includes","process","env","NODE_ENV","mapReducers","map","direction","structApiName","undefined","fieldApiName","Error"],"sources":["convertReducers.ts"],"sourcesContent":["/*\n * Copyright 2026 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 { OntologyIrArrayPropertyTypeReducer } from \"@osdk/client.unstable\";\nimport invariant from \"tiny-invariant\";\nimport type {\n PropertyTypeType,\n} from \"../../api/properties/PropertyTypeType.js\";\nimport { isStruct } from \"../../api/properties/PropertyTypeType.js\";\nimport type { ReducerType } from \"../../api/properties/ReducerType.js\";\nimport type { SharedPropertyType } from \"../../api/properties/SharedPropertyType.js\";\n\nexport function convertReducers(\n type: PropertyTypeType,\n apiName: string,\n reducers?: Array<ReducerType>,\n sharedPropertyType?: SharedPropertyType,\n): Array<OntologyIrArrayPropertyTypeReducer> {\n reducers?.forEach(reducer => {\n if (reducer.structField) {\n invariant(\n isStruct(type)\n && Object.keys(type.structDefinition).includes(reducer.structField),\n `Reducer structField ${reducer.structField} does not exist in struct definition`,\n );\n }\n });\n if (sharedPropertyType) {\n return mapReducers(sharedPropertyType.apiName, sharedPropertyType.reducers);\n } else {\n return mapReducers(apiName, reducers);\n }\n}\n\nexport function mapReducers(\n apiName: string,\n reducers?: Array<ReducerType>,\n): Array<OntologyIrArrayPropertyTypeReducer> {\n return reducers?.map(reducer => {\n switch (reducer.direction) {\n case \"ascending\":\n return {\n direction: \"ASCENDING_NULLS_LAST\",\n structApiName: reducer.structField ? apiName : undefined,\n fieldApiName: reducer.structField,\n };\n case \"descending\":\n return {\n direction: \"DESCENDING_NULLS_LAST\",\n structApiName: reducer.structField ? apiName : undefined,\n fieldApiName: reducer.structField,\n };\n default: {\n throw new Error(`Unsupported reducer direction: ${reducer.direction}`);\n }\n }\n }) ?? [];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAOA,SAAS,MAAM,gBAAgB;AAItC,SAASC,QAAQ,QAAQ,0CAA0C;AAInE,OAAO,SAASC,eAAeA,CAC7BC,IAAsB,EACtBC,OAAe,EACfC,QAA6B,EAC7BC,kBAAuC,EACI;EAC3CD,QAAQ,EAAEE,OAAO,CAACC,OAAO,IAAI;IAC3B,IAAIA,OAAO,CAACC,WAAW,EAAE;MACvB,EACER,QAAQ,CAACE,IAAI,CAAC,IACTO,MAAM,CAACC,IAAI,CAACR,IAAI,CAACS,gBAAgB,CAAC,CAACC,QAAQ,CAACL,OAAO,CAACC,WAAW,CAAC,IAAAK,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAFvEhB,SAAS,QAGP,uBAAuBQ,OAAO,CAACC,WAAW,sCAAsC,IAHlFT,SAAS;IAKX;EACF,CAAC,CAAC;EACF,IAAIM,kBAAkB,EAAE;IACtB,OAAOW,WAAW,CAACX,kBAAkB,CAACF,OAAO,EAAEE,kBAAkB,CAACD,QAAQ,CAAC;EAC7E,CAAC,MAAM;IACL,OAAOY,WAAW,CAACb,OAAO,EAAEC,QAAQ,CAAC;EACvC;AACF;AAEA,OAAO,SAASY,WAAWA,CACzBb,OAAe,EACfC,QAA6B,EACc;EAC3C,OAAOA,QAAQ,EAAEa,GAAG,CAACV,OAAO,IAAI;IAC9B,QAAQA,OAAO,CAACW,SAAS;MACvB,KAAK,WAAW;QACd,OAAO;UACLA,SAAS,EAAE,sBAAsB;UACjCC,aAAa,EAAEZ,OAAO,CAACC,WAAW,GAAGL,OAAO,GAAGiB,SAAS;UACxDC,YAAY,EAAEd,OAAO,CAACC;QACxB,CAAC;MACH,KAAK,YAAY;QACf,OAAO;UACLU,SAAS,EAAE,uBAAuB;UAClCC,aAAa,EAAEZ,OAAO,CAACC,WAAW,GAAGL,OAAO,GAAGiB,SAAS;UACxDC,YAAY,EAAEd,OAAO,CAACC;QACxB,CAAC;MACH;QAAS;UACP,MAAM,IAAIc,KAAK,CAAC,kCAAkCf,OAAO,CAACW,SAAS,EAAE,CAAC;QACxE;IACF;EACF,CAAC,CAAC,IAAI,EAAE;AACV","ignoreList":[]}
@@ -15,10 +15,12 @@
15
15
  */
16
16
 
17
17
  import { convertNullabilityToDataConstraint } from "./convertNullabilityToDataConstraint.js";
18
+ import { convertReducers } from "./convertReducers.js";
18
19
  import { propertyTypeTypeToOntologyIrType } from "./propertyTypeTypeToOntologyIrType.js";
19
20
  export function convertSpt({
20
21
  type,
21
22
  array,
23
+ reducers,
22
24
  description,
23
25
  apiName,
24
26
  displayName,
@@ -44,10 +46,10 @@ export function convertSpt({
44
46
  type: array ? {
45
47
  type: "array",
46
48
  array: {
47
- subtype: propertyTypeTypeToOntologyIrType(type),
48
- reducers: []
49
+ subtype: propertyTypeTypeToOntologyIrType(type, apiName),
50
+ reducers: convertReducers(type, apiName, reducers)
49
51
  }
50
- } : propertyTypeTypeToOntologyIrType(type),
52
+ } : propertyTypeTypeToOntologyIrType(type, apiName),
51
53
  aliases: aliases ?? [],
52
54
  baseFormatter,
53
55
  dataConstraints: dataConstraint,
@@ -1 +1 @@
1
- {"version":3,"file":"convertSpt.js","names":["convertNullabilityToDataConstraint","propertyTypeTypeToOntologyIrType","convertSpt","type","array","description","apiName","displayName","visibility","gothamMapping","typeClasses","aliases","valueType","nullability","baseFormatter","dataConstraint","displayMetadata","subtype","reducers","dataConstraints","indexedForSearch","undefined","version","packageNamespace"],"sources":["convertSpt.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 { OntologyIrSharedPropertyType } from \"@osdk/client.unstable\";\nimport type { SharedPropertyType } from \"../../api/properties/SharedPropertyType.js\";\nimport { convertNullabilityToDataConstraint } from \"./convertNullabilityToDataConstraint.js\";\nimport { propertyTypeTypeToOntologyIrType } from \"./propertyTypeTypeToOntologyIrType.js\";\n\nexport function convertSpt(\n {\n type,\n array,\n description,\n apiName,\n displayName,\n visibility,\n gothamMapping,\n typeClasses,\n aliases,\n valueType,\n nullability,\n baseFormatter,\n }: SharedPropertyType,\n): OntologyIrSharedPropertyType {\n const dataConstraint:\n | OntologyIrSharedPropertyType[\"dataConstraints\"]\n | undefined = convertNullabilityToDataConstraint({ type, nullability });\n return {\n apiName,\n displayMetadata: {\n displayName: displayName ?? apiName,\n visibility: visibility ?? \"NORMAL\",\n description,\n },\n type: array\n ? {\n type: \"array\" as const,\n array: {\n subtype: propertyTypeTypeToOntologyIrType(type),\n reducers: [],\n },\n }\n : propertyTypeTypeToOntologyIrType(type),\n aliases: aliases ?? [],\n baseFormatter,\n dataConstraints: dataConstraint,\n gothamMapping: gothamMapping,\n indexedForSearch: true,\n typeClasses: typeClasses ?? [],\n valueType: valueType === undefined ? undefined : {\n apiName: valueType.apiName,\n version: valueType.version,\n packageNamespace: valueType.packageNamespace,\n displayMetadata: valueType.displayMetadata,\n },\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,kCAAkC,QAAQ,yCAAyC;AAC5F,SAASC,gCAAgC,QAAQ,uCAAuC;AAExF,OAAO,SAASC,UAAUA,CACxB;EACEC,IAAI;EACJC,KAAK;EACLC,WAAW;EACXC,OAAO;EACPC,WAAW;EACXC,UAAU;EACVC,aAAa;EACbC,WAAW;EACXC,OAAO;EACPC,SAAS;EACTC,WAAW;EACXC;AACkB,CAAC,EACS;EAC9B,MAAMC,cAEO,GAAGf,kCAAkC,CAAC;IAAEG,IAAI;IAAEU;EAAY,CAAC,CAAC;EACzE,OAAO;IACLP,OAAO;IACPU,eAAe,EAAE;MACfT,WAAW,EAAEA,WAAW,IAAID,OAAO;MACnCE,UAAU,EAAEA,UAAU,IAAI,QAAQ;MAClCH;IACF,CAAC;IACDF,IAAI,EAAEC,KAAK,GACP;MACAD,IAAI,EAAE,OAAgB;MACtBC,KAAK,EAAE;QACLa,OAAO,EAAEhB,gCAAgC,CAACE,IAAI,CAAC;QAC/Ce,QAAQ,EAAE;MACZ;IACF,CAAC,GACCjB,gCAAgC,CAACE,IAAI,CAAC;IAC1CQ,OAAO,EAAEA,OAAO,IAAI,EAAE;IACtBG,aAAa;IACbK,eAAe,EAAEJ,cAAc;IAC/BN,aAAa,EAAEA,aAAa;IAC5BW,gBAAgB,EAAE,IAAI;IACtBV,WAAW,EAAEA,WAAW,IAAI,EAAE;IAC9BE,SAAS,EAAEA,SAAS,KAAKS,SAAS,GAAGA,SAAS,GAAG;MAC/Cf,OAAO,EAAEM,SAAS,CAACN,OAAO;MAC1BgB,OAAO,EAAEV,SAAS,CAACU,OAAO;MAC1BC,gBAAgB,EAAEX,SAAS,CAACW,gBAAgB;MAC5CP,eAAe,EAAEJ,SAAS,CAACI;IAC7B;EACF,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"file":"convertSpt.js","names":["convertNullabilityToDataConstraint","convertReducers","propertyTypeTypeToOntologyIrType","convertSpt","type","array","reducers","description","apiName","displayName","visibility","gothamMapping","typeClasses","aliases","valueType","nullability","baseFormatter","dataConstraint","displayMetadata","subtype","dataConstraints","indexedForSearch","undefined","version","packageNamespace"],"sources":["convertSpt.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 { OntologyIrSharedPropertyType } from \"@osdk/client.unstable\";\nimport type { SharedPropertyType } from \"../../api/properties/SharedPropertyType.js\";\nimport { convertNullabilityToDataConstraint } from \"./convertNullabilityToDataConstraint.js\";\nimport { convertReducers } from \"./convertReducers.js\";\nimport { propertyTypeTypeToOntologyIrType } from \"./propertyTypeTypeToOntologyIrType.js\";\n\nexport function convertSpt(\n {\n type,\n array,\n reducers,\n description,\n apiName,\n displayName,\n visibility,\n gothamMapping,\n typeClasses,\n aliases,\n valueType,\n nullability,\n baseFormatter,\n }: SharedPropertyType,\n): OntologyIrSharedPropertyType {\n const dataConstraint:\n | OntologyIrSharedPropertyType[\"dataConstraints\"]\n | undefined = convertNullabilityToDataConstraint({ type, nullability });\n return {\n apiName,\n displayMetadata: {\n displayName: displayName ?? apiName,\n visibility: visibility ?? \"NORMAL\",\n description,\n },\n type: array\n ? {\n type: \"array\" as const,\n array: {\n subtype: propertyTypeTypeToOntologyIrType(type, apiName),\n reducers: convertReducers(type, apiName, reducers),\n },\n }\n : propertyTypeTypeToOntologyIrType(type, apiName),\n aliases: aliases ?? [],\n baseFormatter,\n dataConstraints: dataConstraint,\n gothamMapping: gothamMapping,\n indexedForSearch: true,\n typeClasses: typeClasses ?? [],\n valueType: valueType === undefined ? undefined : {\n apiName: valueType.apiName,\n version: valueType.version,\n packageNamespace: valueType.packageNamespace,\n displayMetadata: valueType.displayMetadata,\n },\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,kCAAkC,QAAQ,yCAAyC;AAC5F,SAASC,eAAe,QAAQ,sBAAsB;AACtD,SAASC,gCAAgC,QAAQ,uCAAuC;AAExF,OAAO,SAASC,UAAUA,CACxB;EACEC,IAAI;EACJC,KAAK;EACLC,QAAQ;EACRC,WAAW;EACXC,OAAO;EACPC,WAAW;EACXC,UAAU;EACVC,aAAa;EACbC,WAAW;EACXC,OAAO;EACPC,SAAS;EACTC,WAAW;EACXC;AACkB,CAAC,EACS;EAC9B,MAAMC,cAEO,GAAGjB,kCAAkC,CAAC;IAAEI,IAAI;IAAEW;EAAY,CAAC,CAAC;EACzE,OAAO;IACLP,OAAO;IACPU,eAAe,EAAE;MACfT,WAAW,EAAEA,WAAW,IAAID,OAAO;MACnCE,UAAU,EAAEA,UAAU,IAAI,QAAQ;MAClCH;IACF,CAAC;IACDH,IAAI,EAAEC,KAAK,GACP;MACAD,IAAI,EAAE,OAAgB;MACtBC,KAAK,EAAE;QACLc,OAAO,EAAEjB,gCAAgC,CAACE,IAAI,EAAEI,OAAO,CAAC;QACxDF,QAAQ,EAAEL,eAAe,CAACG,IAAI,EAAEI,OAAO,EAAEF,QAAQ;MACnD;IACF,CAAC,GACCJ,gCAAgC,CAACE,IAAI,EAAEI,OAAO,CAAC;IACnDK,OAAO,EAAEA,OAAO,IAAI,EAAE;IACtBG,aAAa;IACbI,eAAe,EAAEH,cAAc;IAC/BN,aAAa,EAAEA,aAAa;IAC5BU,gBAAgB,EAAE,IAAI;IACtBT,WAAW,EAAEA,WAAW,IAAI,EAAE;IAC9BE,SAAS,EAAEA,SAAS,KAAKQ,SAAS,GAAGA,SAAS,GAAG;MAC/Cd,OAAO,EAAEM,SAAS,CAACN,OAAO;MAC1Be,OAAO,EAAET,SAAS,CAACS,OAAO;MAC1BC,gBAAgB,EAAEV,SAAS,CAACU,gBAAgB;MAC5CN,eAAe,EAAEJ,SAAS,CAACI;IAC7B;EACF,CAAC;AACH","ignoreList":[]}
@@ -15,7 +15,8 @@
15
15
  */
16
16
 
17
17
  import { distributeTypeHelper } from "../toConjure/distributeTypeHelper.js";
18
- export function propertyTypeTypeToOntologyIrType(type) {
18
+ import { convertMainValue } from "./convertMainValue.js";
19
+ export function propertyTypeTypeToOntologyIrType(type, apiName, sharedPropertyType) {
19
20
  switch (true) {
20
21
  case typeof type === "object" && type.type === "marking":
21
22
  return {
@@ -72,7 +73,8 @@ export function propertyTypeTypeToOntologyIrType(type) {
72
73
  return {
73
74
  type: "struct",
74
75
  struct: {
75
- structFields
76
+ structFields: structFields,
77
+ mainValue: convertMainValue(type, apiName, sharedPropertyType)
76
78
  }
77
79
  };
78
80
  case typeof type === "object" && type.type === "string":
@@ -1 +1 @@
1
- {"version":3,"file":"propertyTypeTypeToOntologyIrType.js","names":["distributeTypeHelper","propertyTypeTypeToOntologyIrType","type","marking","markingType","structFields","Array","key","structDefinition","fieldTypeDefinition","field","apiName","displayMetadata","displayName","description","undefined","typeClasses","aliases","fieldType","push","struct","analyzerOverride","enableAsciiFolding","isLongText","supportsEfficientLeadingWildcard","supportsExactMatching","supportsFullTextRegex","precision","scale","geohash","mediaReference","geotimeSeriesReference","attachment","Error","JSON","stringify"],"sources":["propertyTypeTypeToOntologyIrType.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 {\n OntologyIrStructFieldType,\n OntologyIrType,\n} from \"@osdk/client.unstable\";\nimport type { PropertyTypeType } from \"../../api/properties/PropertyTypeType.js\";\nimport { distributeTypeHelper } from \"../toConjure/distributeTypeHelper.js\";\n\nexport function propertyTypeTypeToOntologyIrType(\n type: PropertyTypeType,\n): OntologyIrType {\n switch (true) {\n case (typeof type === \"object\" && type.type === \"marking\"):\n return {\n \"type\": \"marking\",\n marking: { markingType: type.markingType },\n };\n\n case (typeof type === \"object\" && type.type === \"struct\"):\n const structFields: Array<OntologyIrStructFieldType> = new Array();\n for (const key in type.structDefinition) {\n const fieldTypeDefinition = type.structDefinition[key];\n let field: OntologyIrStructFieldType;\n if (typeof fieldTypeDefinition === \"string\") {\n field = {\n apiName: key,\n displayMetadata: { displayName: key, description: undefined },\n typeClasses: [],\n aliases: [],\n fieldType: propertyTypeTypeToOntologyIrType(fieldTypeDefinition),\n };\n } else {\n // If it is a full form type definition then process it as such\n if (\"fieldType\" in fieldTypeDefinition) {\n field = {\n ...fieldTypeDefinition,\n apiName: key,\n fieldType: propertyTypeTypeToOntologyIrType(\n fieldTypeDefinition.fieldType,\n ),\n displayMetadata: fieldTypeDefinition.displayMetadata\n ?? { displayName: key, description: undefined },\n typeClasses: fieldTypeDefinition.typeClasses ?? [],\n aliases: fieldTypeDefinition.aliases ?? [],\n };\n } else {\n field = {\n apiName: key,\n displayMetadata: { displayName: key, description: undefined },\n typeClasses: [],\n aliases: [],\n fieldType: propertyTypeTypeToOntologyIrType(fieldTypeDefinition),\n };\n }\n }\n\n structFields.push(field);\n }\n\n return {\n type: \"struct\",\n struct: { structFields },\n };\n\n case (typeof type === \"object\" && type.type === \"string\"):\n return {\n \"type\": \"string\",\n \"string\": {\n analyzerOverride: undefined,\n enableAsciiFolding: type.enableAsciiFolding,\n isLongText: type.isLongText ?? false,\n supportsEfficientLeadingWildcard:\n type.supportsEfficientLeadingWildcard ?? false,\n supportsExactMatching: type.supportsExactMatching ?? true,\n supportsFullTextRegex: type.supportsFullTextRegex,\n },\n };\n\n case (typeof type === \"object\" && type.type === \"decimal\"):\n return {\n \"type\": \"decimal\",\n \"decimal\": {\n precision: type.precision,\n scale: type.scale,\n },\n };\n\n case (type === \"geopoint\"):\n return { type: \"geohash\", geohash: {} };\n\n case (type === \"decimal\"):\n return { type, [type]: { precision: undefined, scale: undefined } };\n\n case (type === \"string\"):\n return {\n type,\n [type]: {\n analyzerOverride: undefined,\n enableAsciiFolding: undefined,\n isLongText: false,\n supportsEfficientLeadingWildcard: false,\n supportsExactMatching: true,\n },\n };\n\n case (type === \"mediaReference\"):\n return {\n type: type,\n mediaReference: {},\n };\n\n case (type === \"geotimeSeries\"):\n return {\n type: \"geotimeSeriesReference\",\n geotimeSeriesReference: {},\n };\n case (type === \"attachment\"):\n return {\n type: \"attachment\",\n attachment: {},\n };\n\n default:\n // use helper function to distribute `type` properly\n if (typeof type === \"object\") {\n throw new Error(`Unhandled exotic type: ${JSON.stringify(type)}`);\n }\n return distributeTypeHelper(type);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA,SAASA,oBAAo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GAAG;UAAEyB,SAAS,EAAEZ,SAAS;UAAEa,KAAK,EAAEb;QAAU;MAAE,CAAC;IAErE,KAAMb,IAAI,KAAK,QAAQ;MACrB,OAAO;QACLA,IAAI;QACJ,CAACA,IAAI,GAAG;UACNmB,gBAAgB,EAAEN,SAAS;UAC3BO,kBAAkB,EAAEP,SAAS;UAC7BQ,UAAU,EAAE,KAAK;UACjBC,gCAAgC,EAAE,KAAK;UACvCC,qBAAqB,EAAE;QACzB;MACF,CAAC;IAEH,KAAMvB,IAAI,KAAK,gBAAgB;MAC7B,OAAO;QACLA,IAAI,EAAEA,IAAI;QACV4B,cAAc,EAAE,CAAC;MACnB,CAAC;IAEH,KAAM5B,IAAI,KAAK,eAAe;MAC5B,OAAO;QACLA,IAAI,EAAE,wBAAwB;QAC9B6B,sBAAsB,EAAE,CAAC;MAC3B,CAAC;IACH,KAAM7B,IAAI,KAAK,YAAY;MACzB,OAAO;QACLA,IAAI,EAAE,YAAY;QAClB8B,UAAU,EAAE,CAAC;MACf,CAAC;IAEH;MACE;MACA,IAAI,OAAO9B,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI+B,KAAK,CAAC,0BAA0BC,IAAI,CAACC,SAAS,CAACjC,IAAI,CAAC,EAAE,CAAC;MACnE;MACA,OAAOF,oBAAoB,CAACE,IAAI,CAAC;EACrC;AACF","ignoreList":[]}
1
+ {"version":3,"file":"propertyTypeTypeToOntologyIrType.js","names":["distributeTypeHelper","convertMainValue","propertyTypeTypeToOntologyIrType","type","apiName","sharedPropertyType","marking","markingType","structFields","Array","key","structDefinition","fieldTypeDefinition","field","displayMetadata","displayName","description","undefined","typeClasses","aliases","fieldType","push","struct","mainValue","analyzerOverride","enableAsciiFolding","isLongText","supportsEfficientLeadingWildcard","supportsExactMatching","supportsFullTextRegex","precision","scale","geohash","mediaReference","geotimeSeriesReference","attachment","Error","JSON","stringify"],"sources":["propertyTypeTypeToOntologyIrType.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 {\n OntologyIrStructFieldType,\n OntologyIrType,\n} from \"@osdk/client.unstable\";\nimport type { PropertyTypeType } from \"../../api/properties/PropertyTypeType.js\";\nimport type { SharedPropertyType } from \"../../api/properties/SharedPropertyType.js\";\nimport { distributeTypeHelper } from \"../toConjure/distributeTypeHelper.js\";\nimport { convertMainValue } from \"./convertMainValue.js\";\n\nexport function propertyTypeTypeToOntologyIrType(\n type: PropertyTypeType,\n apiName?: string,\n sharedPropertyType?: SharedPropertyType,\n): OntologyIrType {\n switch (true) {\n case (typeof type === \"object\" && type.type === \"marking\"):\n return {\n \"type\": \"marking\",\n marking: { markingType: type.markingType },\n };\n\n case (typeof type === \"object\" && type.type === \"struct\"):\n const structFields: Array<OntologyIrStructFieldType> = new Array();\n for (const key in type.structDefinition) {\n const fieldTypeDefinition = type.structDefinition[key];\n let field: OntologyIrStructFieldType;\n if (typeof fieldTypeDefinition === \"string\") {\n field = {\n apiName: key,\n displayMetadata: { displayName: key, description: undefined },\n typeClasses: [],\n aliases: [],\n fieldType: propertyTypeTypeToOntologyIrType(fieldTypeDefinition),\n };\n } else {\n // If it is a full form type definition then process it as such\n if (\"fieldType\" in fieldTypeDefinition) {\n field = {\n ...fieldTypeDefinition,\n apiName: key,\n fieldType: propertyTypeTypeToOntologyIrType(\n fieldTypeDefinition.fieldType,\n ),\n displayMetadata: fieldTypeDefinition.displayMetadata\n ?? { displayName: key, description: undefined },\n typeClasses: fieldTypeDefinition.typeClasses ?? [],\n aliases: fieldTypeDefinition.aliases ?? [],\n };\n } else {\n field = {\n apiName: key,\n displayMetadata: { displayName: key, description: undefined },\n typeClasses: [],\n aliases: [],\n fieldType: propertyTypeTypeToOntologyIrType(fieldTypeDefinition),\n };\n }\n }\n\n structFields.push(field);\n }\n\n return {\n type: \"struct\",\n struct: {\n structFields: structFields,\n mainValue: convertMainValue(type, apiName, sharedPropertyType),\n },\n };\n\n case (typeof type === \"object\" && type.type === \"string\"):\n return {\n \"type\": \"string\",\n \"string\": {\n analyzerOverride: undefined,\n enableAsciiFolding: type.enableAsciiFolding,\n isLongText: type.isLongText ?? false,\n supportsEfficientLeadingWildcard:\n type.supportsEfficientLeadingWildcard ?? false,\n supportsExactMatching: type.supportsExactMatching ?? true,\n supportsFullTextRegex: type.supportsFullTextRegex,\n },\n };\n\n case (typeof type === \"object\" && type.type === \"decimal\"):\n return {\n \"type\": \"decimal\",\n \"decimal\": {\n precision: type.precision,\n scale: type.scale,\n },\n };\n\n case (type === \"geopoint\"):\n return { type: \"geohash\", geohash: {} };\n\n case (type === \"decimal\"):\n return { type, [type]: { precision: undefined, scale: undefined } };\n\n case (type === \"string\"):\n return {\n type,\n [type]: {\n analyzerOverride: undefined,\n enableAsciiFolding: undefined,\n isLongText: false,\n supportsEfficientLeadingWildcard: false,\n supportsExactMatching: true,\n },\n };\n\n case (type === \"mediaReference\"):\n return {\n type: type,\n mediaReference: {},\n };\n\n case (type === \"geotimeSeries\"):\n return {\n type: \"geotimeSeriesReference\",\n geotimeSeriesReference: {},\n };\n case (type === \"attachment\"):\n return {\n type: \"attachment\",\n attachment: {},\n };\n\n default:\n // use helper function to distribute `type` properly\n if (typeof type === \"object\") {\n throw new Error(`Unhandled exotic type: ${JSON.stringify(type)}`);\n }\n return distributeTypeHelper(type);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA,SAASA,oBAAoB,QAAQ,sCAAsC;AAC3E,SAASC,gBAAgB,QAAQ,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E6B,OAAO,EAAE,CAAC;MAAE,CAAC;IAEzC,KAAM7B,IAAI,KAAK,SAAS;MACtB,OAAO;QAAEA,IAAI;QAAE,CAACA,IAAI,GAAG;UAAE2B,SAAS,EAAEb,SAAS;UAAEc,KAAK,EAAEd;QAAU;MAAE,CAAC;IAErE,KAAMd,IAAI,KAAK,QAAQ;MACrB,OAAO;QACLA,IAAI;QACJ,CAACA,IAAI,GAAG;UACNqB,gBAAgB,EAAEP,SAAS;UAC3BQ,kBAAkB,EAAER,SAAS;UAC7BS,UAAU,EAAE,KAAK;UACjBC,gCAAgC,EAAE,KAAK;UACvCC,qBAAqB,EAAE;QACzB;MACF,CAAC;IAEH,KAAMzB,IAAI,KAAK,gBAAgB;MAC7B,OAAO;QACLA,IAAI,EAAEA,IAAI;QACV8B,cAAc,EAAE,CAAC;MACnB,CAAC;IAEH,KAAM9B,IAAI,KAAK,eAAe;MAC5B,OAAO;QACLA,IAAI,EAAE,wBAAwB;QAC9B+B,sBAAsB,EAAE,CAAC;MAC3B,CAAC;IACH,KAAM/B,IAAI,KAAK,YAAY;MACzB,OAAO;QACLA,IAAI,EAAE,YAAY;QAClBgC,UAAU,EAAE,CAAC;MACf,CAAC;IAEH;MACE;MACA,IAAI,OAAOhC,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAIiC,KAAK,CAAC,0BAA0BC,IAAI,CAACC,SAAS,CAACnC,IAAI,CAAC,EAAE,CAAC;MACnE;MACA,OAAOH,oBAAoB,CAACG,IAAI,CAAC;EACrC;AACF","ignoreList":[]}
@@ -28,12 +28,15 @@ export { defineInterfaceLinkConstraint } from "./api/defineInterfaceLinkConstrai
28
28
  export { defineLink } from "./api/defineLink.js";
29
29
  export { defineModifyInterfaceObjectAction } from "./api/defineModifyInterfaceObjectAction.js";
30
30
  export { defineModifyObjectAction } from "./api/defineModifyObjectAction.js";
31
- export { convertToPluralDisplayName, defineObject, uppercaseFirstLetter as convertToDisplayName } from "./api/defineObject.js";
32
- export { addNamespaceIfNone, defineOntology, dumpOntologyFullMetadata } from "./api/defineOntology.js";
31
+ export { convertToPluralDisplayName, defineObject, uppercaseFirstLetter, uppercaseFirstLetter as convertToDisplayName } from "./api/defineObject.js";
32
+ export { addNamespaceIfNone, cleanAndValidateLinkTypeId, convertObjectStatus, defineOntology, dumpOntologyFullMetadata, extractNamespace, getImportedTypes, getNamespace, getOntologyDefinition, initializeOntologyState, withoutNamespace } from "./api/defineOntology.js";
33
33
  export { defineSharedPropertyType } from "./api/defineSpt.js";
34
34
  export { defineValueType } from "./api/defineValueType.js";
35
35
  export { importOntologyEntity } from "./api/importOntologyEntity.js";
36
36
  export { importSharedPropertyType } from "./api/importSharedPropertyType.js";
37
+ export { isInterfaceSharedPropertyType } from "./api/interface/InterfacePropertyType.js";
38
+ export { isExotic } from "./api/properties/PropertyTypeType.js";
39
+ export { defaultTypeClasses, getPropertyTypeName, hasRenderHints, shouldBeIndexedForSearch, shouldNotHaveRenderHints } from "./api/propertyConversionUtils.js";
37
40
  export { wrapWithProxy } from "./api/wrapWithProxy.js";
38
41
  export { propertyTypeTypeToOntologyIrType as convertType } from "./conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js";
39
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","addDependency","OntologyEntityTypeEnum","CREATE_INTERFACE_OBJECT_PARAMETER","CREATE_OR_MODIFY_OBJECT_PARAMETER","defineAction","DELETE_OBJECT_PARAMETER","MODIFY_INTERFACE_OBJECT_PARAMETER","MODIFY_OBJECT_PARAMETER","defineCreateInterfaceObjectAction","defineCreateObjectAction","defineCreateOrModifyObjectAction","defineDeleteInterfaceObjectAction","defineDeleteObjectAction","defineInterface","defineInterfaceLinkConstraint","defineLink","defineModifyInterfaceObjectAction","defineModifyObjectAction","convertToPluralDisplayName","defineObject","uppercaseFirstLetter","convertToDisplayName","addNamespaceIfNone","defineOntology","dumpOntologyFullMetadata","defineSharedPropertyType","defineValueType","importOntologyEntity","importSharedPropertyType","wrapWithProxy","propertyTypeTypeToOntologyIrType","convertType"],"sources":["index.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\nexport { default as default } from \"./cli/main.js\";\n\nexport type { ActionParameterValidation } from \"./api/action/ActionParameter.js\";\nexport type {\n ActionParameterAllowedValues,\n} from \"./api/action/ActionParameterAllowedValues.js\";\nexport type { ActionParameterConditionalOverride } from \"./api/action/ActionParameterConditionalOverride.js\";\nexport type { ActionParameterConfiguration } from \"./api/action/ActionParameterConfiguration.js\";\nexport type { ActionSection } from \"./api/action/ActionSection.js\";\nexport type { ActionType } from \"./api/action/ActionType.js\";\nexport type { ConditionDefinition } from \"./api/action/ConditionDefinition.js\";\nexport type {\n CurrentTimeMappingValue,\n CurrentUserMappingValue,\n CustomMapping,\n MappingValue,\n UuidMappingValue,\n} from \"./api/action/MappingValue.js\";\nexport type { SectionConditionalOverride } from \"./api/action/SectionConditionalOverride.js\";\nexport type { SubmissionMetadata } from \"./api/action/SubmissionMetadata.js\";\nexport { addDependency } from \"./api/addDependency.js\";\nexport { OntologyEntityTypeEnum } from \"./api/common/OntologyEntityTypeEnum.js\";\nexport {\n CREATE_INTERFACE_OBJECT_PARAMETER,\n CREATE_OR_MODIFY_OBJECT_PARAMETER,\n defineAction,\n DELETE_OBJECT_PARAMETER,\n MODIFY_INTERFACE_OBJECT_PARAMETER,\n MODIFY_OBJECT_PARAMETER,\n} from \"./api/defineAction.js\";\nexport { defineCreateInterfaceObjectAction } from \"./api/defineCreateInterfaceObjectAction.js\";\nexport { defineCreateObjectAction } from \"./api/defineCreateObjectAction.js\";\nexport { defineCreateOrModifyObjectAction } from \"./api/defineCreateOrModifyObjectAction.js\";\nexport { defineDeleteInterfaceObjectAction } from \"./api/defineDeleteInterfaceObjectAction.js\";\nexport { defineDeleteObjectAction } from \"./api/defineDeleteObjectAction.js\";\nexport { defineInterface } from \"./api/defineInterface.js\";\nexport { defineInterfaceLinkConstraint } from \"./api/defineInterfaceLinkConstraint.js\";\nexport { defineLink } from \"./api/defineLink.js\";\nexport { defineModifyInterfaceObjectAction } from \"./api/defineModifyInterfaceObjectAction.js\";\nexport { defineModifyObjectAction } from \"./api/defineModifyObjectAction.js\";\nexport {\n convertToPluralDisplayName,\n defineObject,\n uppercaseFirstLetter as convertToDisplayName,\n} from \"./api/defineObject.js\";\nexport {\n addNamespaceIfNone,\n defineOntology,\n dumpOntologyFullMetadata,\n} from \"./api/defineOntology.js\";\nexport { defineSharedPropertyType } from \"./api/defineSpt.js\";\nexport { defineValueType } from \"./api/defineValueType.js\";\nexport { importOntologyEntity } from \"./api/importOntologyEntity.js\";\nexport { importSharedPropertyType } from \"./api/importSharedPropertyType.js\";\nexport type { InterfaceDefinedProperty } from \"./api/interface/InterfacePropertyType.js\";\nexport type { InterfaceType } from \"./api/interface/InterfaceType.js\";\nexport type { LinkType } from \"./api/links/LinkType.js\";\nexport type { ObjectPropertyType } from \"./api/object/ObjectPropertyType.js\";\nexport type { ObjectType } from \"./api/object/ObjectType.js\";\nexport type { PropertyTypeType } from \"./api/properties/PropertyTypeType.js\";\nexport type { SharedPropertyType } from \"./api/properties/SharedPropertyType.js\";\nexport type { ValueTypeDefinitionVersion } from \"./api/values/ValueTypeDefinitionVersion.js\";\nexport { wrapWithProxy } from \"./api/wrapWithProxy.js\";\nexport { propertyTypeTypeToOntologyIrType as convertType } from \"./conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAkB,QAAQ,eAAe;AAoBlD,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,sBAAsB,QAAQ,wCAAwC;AAC/E,SACEC,iCAAiC,EACjCC,iCAAiC,EACjCC,YAAY,EACZC,uBAAuB,EACvBC,iCAAiC,EACjCC,uBAAuB,QAClB,uBAAuB;AAC9B,SAASC,iCAAiC,QAAQ,4CAA4C;AAC9F,SAASC,wBAAwB,QAAQ,mCAAmC;AAC5E,SAASC,gCAAgC,QAAQ,2CAA2C;AAC5F,SAASC,iCAAiC,QAAQ,4CAA4C;AAC9F,SAASC,wBAAwB,QAAQ,mCAAmC;AAC5E,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,SAASC,6BAA6B,QAAQ,wCAAwC;AACtF,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,iCAAiC,QAAQ,4CAA4C;AAC9F,SAASC,wBAAwB,QAAQ,mCAAmC;AAC5E,SACEC,0BAA0B,EAC1BC,YAAY,EACZC,oBAAoB,IAAIC,oBAAoB,QACvC,uBAAuB;AAC9B,SACEC,kBAAkB,EAClBC,cAAc,EACdC,wBAAwB,QACnB,yBAAyB;AAChC,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,SAASC,oBAAoB,QAAQ,+BAA+B;AACpE,SAASC,wBAAwB,QAAQ,mCAAmC;AAS5E,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,gCAAgC,IAAIC,WAAW,QAAQ,gEAAgE","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["default","addDependency","OntologyEntityTypeEnum","CREATE_INTERFACE_OBJECT_PARAMETER","CREATE_OR_MODIFY_OBJECT_PARAMETER","defineAction","DELETE_OBJECT_PARAMETER","MODIFY_INTERFACE_OBJECT_PARAMETER","MODIFY_OBJECT_PARAMETER","defineCreateInterfaceObjectAction","defineCreateObjectAction","defineCreateOrModifyObjectAction","defineDeleteInterfaceObjectAction","defineDeleteObjectAction","defineInterface","defineInterfaceLinkConstraint","defineLink","defineModifyInterfaceObjectAction","defineModifyObjectAction","convertToPluralDisplayName","defineObject","uppercaseFirstLetter","convertToDisplayName","addNamespaceIfNone","cleanAndValidateLinkTypeId","convertObjectStatus","defineOntology","dumpOntologyFullMetadata","extractNamespace","getImportedTypes","getNamespace","getOntologyDefinition","initializeOntologyState","withoutNamespace","defineSharedPropertyType","defineValueType","importOntologyEntity","importSharedPropertyType","isInterfaceSharedPropertyType","isExotic","defaultTypeClasses","getPropertyTypeName","hasRenderHints","shouldBeIndexedForSearch","shouldNotHaveRenderHints","wrapWithProxy","propertyTypeTypeToOntologyIrType","convertType"],"sources":["index.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\nexport { default as default } from \"./cli/main.js\";\n\nexport type {\n ActionParameter,\n ActionParameterValidation,\n} from \"./api/action/ActionParameter.js\";\nexport type {\n ActionParameterAllowedValues,\n} from \"./api/action/ActionParameterAllowedValues.js\";\nexport type { ActionParameterConditionalOverride } from \"./api/action/ActionParameterConditionalOverride.js\";\nexport type {\n ActionParameterConfiguration,\n ActionParameterRequirementConstraint,\n} from \"./api/action/ActionParameterConfiguration.js\";\nexport type { ActionSection } from \"./api/action/ActionSection.js\";\nexport type { ActionType } from \"./api/action/ActionType.js\";\nexport type { ConditionDefinition } from \"./api/action/ConditionDefinition.js\";\nexport type {\n CurrentTimeMappingValue,\n CurrentUserMappingValue,\n CustomMapping,\n MappingValue,\n UuidMappingValue,\n} from \"./api/action/MappingValue.js\";\nexport type { SectionConditionalOverride } from \"./api/action/SectionConditionalOverride.js\";\nexport type { SubmissionMetadata } from \"./api/action/SubmissionMetadata.js\";\nexport { addDependency } from \"./api/addDependency.js\";\nexport type { OntologyDefinition } from \"./api/common/OntologyDefinition.js\";\nexport { OntologyEntityTypeEnum } from \"./api/common/OntologyEntityTypeEnum.js\";\nexport {\n CREATE_INTERFACE_OBJECT_PARAMETER,\n CREATE_OR_MODIFY_OBJECT_PARAMETER,\n defineAction,\n DELETE_OBJECT_PARAMETER,\n MODIFY_INTERFACE_OBJECT_PARAMETER,\n MODIFY_OBJECT_PARAMETER,\n} from \"./api/defineAction.js\";\nexport { defineCreateInterfaceObjectAction } from \"./api/defineCreateInterfaceObjectAction.js\";\nexport { defineCreateObjectAction } from \"./api/defineCreateObjectAction.js\";\nexport { defineCreateOrModifyObjectAction } from \"./api/defineCreateOrModifyObjectAction.js\";\nexport { defineDeleteInterfaceObjectAction } from \"./api/defineDeleteInterfaceObjectAction.js\";\nexport { defineDeleteObjectAction } from \"./api/defineDeleteObjectAction.js\";\nexport { defineInterface } from \"./api/defineInterface.js\";\nexport { defineInterfaceLinkConstraint } from \"./api/defineInterfaceLinkConstraint.js\";\nexport { defineLink } from \"./api/defineLink.js\";\nexport { defineModifyInterfaceObjectAction } from \"./api/defineModifyInterfaceObjectAction.js\";\nexport { defineModifyObjectAction } from \"./api/defineModifyObjectAction.js\";\nexport {\n convertToPluralDisplayName,\n defineObject,\n uppercaseFirstLetter,\n uppercaseFirstLetter as convertToDisplayName,\n} from \"./api/defineObject.js\";\nexport {\n addNamespaceIfNone,\n cleanAndValidateLinkTypeId,\n convertObjectStatus,\n defineOntology,\n dumpOntologyFullMetadata,\n extractNamespace,\n getImportedTypes,\n getNamespace,\n getOntologyDefinition,\n initializeOntologyState,\n withoutNamespace,\n} from \"./api/defineOntology.js\";\nexport { defineSharedPropertyType } from \"./api/defineSpt.js\";\nexport { defineValueType } from \"./api/defineValueType.js\";\nexport { importOntologyEntity } from \"./api/importOntologyEntity.js\";\nexport { importSharedPropertyType } from \"./api/importSharedPropertyType.js\";\nexport type {\n InterfaceDefinedProperty,\n InterfacePropertyType,\n} from \"./api/interface/InterfacePropertyType.js\";\nexport { isInterfaceSharedPropertyType } from \"./api/interface/InterfacePropertyType.js\";\nexport type { InterfaceType } from \"./api/interface/InterfaceType.js\";\nexport type {\n LinkType,\n OneToManyLinkTypeDefinition,\n UserLinkTypeStatus,\n} from \"./api/links/LinkType.js\";\nexport type { ObjectPropertyType } from \"./api/object/ObjectPropertyType.js\";\nexport type { ObjectType } from \"./api/object/ObjectType.js\";\nexport type {\n DerivedPropertyAggregation,\n ObjectTypeDatasourceDefinition_dataset,\n ObjectTypeDatasourceDefinition_derived,\n ObjectTypeDatasourceDefinition_direct,\n} from \"./api/object/ObjectTypeDatasourceDefinition.js\";\nexport type { ObjectTypeDefinition } from \"./api/object/ObjectTypeDefinition.js\";\nexport type { SecurityConditionDefinition } from \"./api/object/SecurityCondition.js\";\nexport type { Nullability } from \"./api/properties/Nullability.js\";\nexport type { PropertyTypeType } from \"./api/properties/PropertyTypeType.js\";\nexport { isExotic } from \"./api/properties/PropertyTypeType.js\";\nexport type { SharedPropertyType } from \"./api/properties/SharedPropertyType.js\";\nexport {\n defaultTypeClasses,\n getPropertyTypeName,\n hasRenderHints,\n shouldBeIndexedForSearch,\n shouldNotHaveRenderHints,\n} from \"./api/propertyConversionUtils.js\";\nexport type { ValueTypeDefinitionVersion } from \"./api/values/ValueTypeDefinitionVersion.js\";\nexport { wrapWithProxy } from \"./api/wrapWithProxy.js\";\nexport { propertyTypeTypeToOntologyIrType as convertType } from \"./conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAkB,QAAQ,eAAe;AA0BlD,SAASC,aAAa,QAAQ,wBAA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 /**
2
+ * Shallow-clones a definition object, copying any array-valued properties
3
+ * to prevent shared-array mutation bugs (e.g. when users pass the same
4
+ * datasources constant to multiple defineObject calls).
5
+ *
6
+ * Does NOT deep-clone nested objects so that entity references (interfaces,
7
+ * link types, etc.) preserve their identity for registry lookups.
8
+ */
9
+ export declare function cloneDefinition<T extends object>(input: T): T;
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;AAwBA,OAAO,iBAAS,gBAAgB,kBAC9BA,OAAO,IACN","names":["input: T"],"sources":["../../../src/api/cloneDefinition.ts"],"version":3,"file":"cloneDefinition.d.ts"}
@@ -66,7 +66,7 @@ export type InterfaceActionTypeUserDefinition = {
66
66
  color: string
67
67
  }
68
68
  };
69
- export declare function defineAction(actionDef: ActionTypeDefinition): ActionType;
69
+ export declare function defineAction(actionDefInput: ActionTypeDefinition): ActionType;
70
70
  export declare function isPropertyParameter(def: ActionTypeUserDefinition | InterfaceActionTypeUserDefinition, name: string, type: PropertyTypeType): boolean;
71
71
  export declare function createParameters(def: ActionTypeUserDefinition | InterfaceActionTypeUserDefinition, propertyMap: Record<string, ObjectPropertyTypeUserDefinition> | Record<string, InterfacePropertyType>, parameterSet: Set<string>, requiredMap?: Record<string, boolean>): Array<ActionParameter>;
72
72
  export declare function kebab(s: string): string;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,2CAEA,mBACK,uBAAwB;AAG/B,cAAc,uCAAuC,6CAA8C;AACnG,cAAc,uBAAuB,6BAA8B;AAEnE,cAAc,oCAAoC,0CAA2C;AAM7F,cAAc,qBAAqB,2BAA4B;AAC/D,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,4BAA4B,kCAAmC;AAE7E,cAAc,qBAAqB,2BAA4B;AAC/D,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,0BAA0B,gCAAiC;AACzE,cAAc,0BAA0B,gCAAiC;AACzE,cAAc,qBAAqB,4BAA6B;AAYhE,cAGO,6B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,YAAY,eACZC,YAAY,mBACZC;AAaF,OAAO,iBAAS,0BACdC,6BACAR,cAAc,aACdS;AAgBF,OAAO,iBAAS,kBAAkBC;AAOlC,OAAO,iBAAS,+BACdC,KAAK;AAqBP,OAAO,iBAAS,0BACdA,KAAK,mCACLC;AAaF,OAAO,iBAAS,8BACdD,KAAK,mCACLC;AAMF,OAAO,iBAAS,sCACdC,YACAC,KAAK,uBACLC,WAAW,oCACV","names":["MODIFY_OBJECT_PARAMETER: string","CREATE_OR_MODIFY_OBJECT_PARAMETER: string","DELETE_OBJECT_PARAMETER: string","CREATE_INTERFACE_OBJECT_PARAMETER: string","MODIFY_INTERFACE_OBJECT_PARAMETER: string","actionDef: ActionTypeDefinition","def: ActionTypeUserDefinition | InterfaceActionTypeUserDefinition","name: string","type: PropertyTypeType","propertyMap:\n | Record<string, ObjectPropertyTypeUserDefinition>\n | Record<string, InterfacePropertyType>","parameterSet: Set<string>","requiredMap?: Record<string, boolean>","s: string","actionValidation: ActionLevelValidationDefinition","actionParameters?: ActionParameter[]","properties: Array<string>","parameters: ActionParameter[]","priorityId?: string","parameterOrdering: string[]","actionApiName: string","parameterId: string","def: InterfaceActionTypeUserDefinition","parameter: string","id: string","def: InterfacePropertyType","actionDef: InterfaceActionTypeUserDefinition"],"sources":["../../../src/api/defineAction.ts"],"version":3,"file":"defineAction.d.ts"}
1
+ {"mappings":"AAgBA,cACE,2CAEA,mBACK,uBAAwB;AAG/B,cAAc,uCAAuC,6CAA8C;AACnG,cAAc,uBAAuB,6BAA8B;AAEnE,cAAc,oCAAoC,0CAA2C;AAM7F,cAAc,qBAAqB,2BAA4B;AAC/D,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,4BAA4B,kCAAmC;AAE7E,cAAc,qBAAqB,2BAA4B;AAC/D,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,0BAA0B,gCAAiC;AACzE,cAAc,0BAA0B,gCAAiC;AAEzE,cAAc,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AAS,+BACdD,KAAK,2BAA2B,mCAChCS,YAAY,eACZC,YAAY,mBACZC;AAaF,OAAO,iBAAS,0BACdC,6BACAR,cAAc,aACdS;AAgBF,OAAO,iBAAS,kBAAkBC;AAOlC,OAAO,iBAAS,+BACdC,KAAK;AAqBP,OAAO,iBAAS,0BACdA,KAAK,mCACLC;AAaF,OAAO,iBAAS,8BACdD,KAAK,mCACLC;AAMF,OAAO,iBAAS,sCACdC,YACAC,KAAK,uBACLC,WAAW,oCACV","names":["MODIFY_OBJECT_PARAMETER: string","CREATE_OR_MODIFY_OBJECT_PARAMETER: string","DELETE_OBJECT_PARAMETER: string","CREATE_INTERFACE_OBJECT_PARAMETER: string","MODIFY_INTERFACE_OBJECT_PARAMETER: string","actionDefInput: ActionTypeDefinition","def: ActionTypeUserDefinition | InterfaceActionTypeUserDefinition","name: string","type: PropertyTypeType","propertyMap:\n | Record<string, ObjectPropertyTypeUserDefinition>\n | Record<string, InterfacePropertyType>","parameterSet: Set<string>","requiredMap?: Record<string, boolean>","s: string","actionValidation: ActionLevelValidationDefinition","actionParameters?: ActionParameter[]","properties: Array<string>","parameters: ActionParameter[]","priorityId?: string","parameterOrdering: string[]","actionApiName: string","parameterId: string","def: InterfaceActionTypeUserDefinition","parameter: string","id: string","def: InterfacePropertyType","actionDef: InterfaceActionTypeUserDefinition"],"sources":["../../../src/api/defineAction.ts"],"version":3,"file":"defineAction.d.ts"}
@@ -1,3 +1,3 @@
1
1
  import { type ActionType } from "./action/ActionType.js";
2
2
  import type { InterfaceActionTypeUserDefinition } from "./defineAction.js";
3
- export declare function defineCreateInterfaceObjectAction(def: InterfaceActionTypeUserDefinition): ActionType;
3
+ export declare function defineCreateInterfaceObjectAction(defInput: InterfaceActionTypeUserDefinition): ActionType;
@@ -1 +1 @@
1
- {"mappings":"AAoBA,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,yCAAyC,mBAAoB;AAoB3E,OAAO,iBAAS,kCACdA,KAAK,oCACJ","names":["def: InterfaceActionTypeUserDefinition"],"sources":["../../../src/api/defineCreateInterfaceObjectAction.ts"],"version":3,"file":"defineCreateInterfaceObjectAction.d.ts"}
1
+ {"mappings":"AAoBA,cAAc,kBAAkB,wBAAyB;AAEzD,cAAc,yCAAyC,mBAAoB;AAoB3E,OAAO,iBAAS,kCACdA,UAAU,oCACT","names":["defInput: InterfaceActionTypeUserDefinition"],"sources":["../../../src/api/defineCreateInterfaceObjectAction.ts"],"version":3,"file":"defineCreateInterfaceObjectAction.d.ts"}
@@ -1,3 +1,3 @@
1
1
  import { type ActionType } from "./action/ActionType.js";
2
2
  import type { ActionTypeUserDefinition } from "./defineAction.js";
3
- export declare function defineCreateObjectAction(def: ActionTypeUserDefinition): ActionType;
3
+ export declare function defineCreateObjectAction(defInput: ActionTypeUserDefinition): ActionType;
@@ -1 +1 @@
1
- {"mappings":"AAiBA,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,gCAAgC,mBAAoB;AAalE,OAAO,iBAAS,yBACdA,KAAK,2BACJ","names":["def: ActionTypeUserDefinition"],"sources":["../../../src/api/defineCreateObjectAction.ts"],"version":3,"file":"defineCreateObjectAction.d.ts"}
1
+ {"mappings":"AAiBA,cAAc,kBAAkB,wBAAyB;AAEzD,cAAc,gCAAgC,mBAAoB;AAalE,OAAO,iBAAS,yBACdA,UAAU,2BACT","names":["defInput: ActionTypeUserDefinition"],"sources":["../../../src/api/defineCreateObjectAction.ts"],"version":3,"file":"defineCreateObjectAction.d.ts"}
@@ -1,3 +1,3 @@
1
1
  import { type ActionType } from "./action/ActionType.js";
2
2
  import type { ActionTypeUserDefinition } from "./defineAction.js";
3
- export declare function defineCreateOrModifyObjectAction(def: ActionTypeUserDefinition): ActionType;
3
+ export declare function defineCreateOrModifyObjectAction(defInput: ActionTypeUserDefinition): ActionType;
@@ -1 +1 @@
1
- {"mappings":"AAiBA,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,gCAAgC,mBAAoB;AAalE,OAAO,iBAAS,iCACdA,KAAK,2BACJ","names":["def: ActionTypeUserDefinition"],"sources":["../../../src/api/defineCreateOrModifyObjectAction.ts"],"version":3,"file":"defineCreateOrModifyObjectAction.d.ts"}
1
+ {"mappings":"AAiBA,cAAc,kBAAkB,wBAAyB;AAEzD,cAAc,gCAAgC,mBAAoB;AAalE,OAAO,iBAAS,iCACdA,UAAU,2BACT","names":["defInput: ActionTypeUserDefinition"],"sources":["../../../src/api/defineCreateOrModifyObjectAction.ts"],"version":3,"file":"defineCreateOrModifyObjectAction.d.ts"}
@@ -1,3 +1,3 @@
1
1
  import type { ActionType } from "./action/ActionType.js";
2
2
  import type { InterfaceActionTypeUserDefinition } from "./defineAction.js";
3
- export declare function defineDeleteInterfaceObjectAction(def: InterfaceActionTypeUserDefinition): ActionType;
3
+ export declare function defineDeleteInterfaceObjectAction(defInput: InterfaceActionTypeUserDefinition): ActionType;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,yCAAyC,mBAAoB;AAG3E,OAAO,iBAAS,kCACdA,KAAK,oCACJ","names":["def: InterfaceActionTypeUserDefinition"],"sources":["../../../src/api/defineDeleteInterfaceObjectAction.ts"],"version":3,"file":"defineDeleteInterfaceObjectAction.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,kBAAkB,wBAAyB;AAEzD,cAAc,yCAAyC,mBAAoB;AAG3E,OAAO,iBAAS,kCACdA,UAAU,oCACT","names":["defInput: InterfaceActionTypeUserDefinition"],"sources":["../../../src/api/defineDeleteInterfaceObjectAction.ts"],"version":3,"file":"defineDeleteInterfaceObjectAction.d.ts"}
@@ -1,3 +1,3 @@
1
1
  import { type ActionType } from "./action/ActionType.js";
2
2
  import type { ActionTypeUserDefinition } from "./defineAction.js";
3
- export declare function defineDeleteObjectAction(def: ActionTypeUserDefinition): ActionType;
3
+ export declare function defineDeleteObjectAction(defInput: ActionTypeUserDefinition): ActionType;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,gCAAgC,mBAAoB;AASlE,OAAO,iBAAS,yBACdA,KAAK,2BACJ","names":["def: ActionTypeUserDefinition"],"sources":["../../../src/api/defineDeleteObjectAction.ts"],"version":3,"file":"defineDeleteObjectAction.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,kBAAkB,wBAAyB;AAEzD,cAAc,gCAAgC,mBAAoB;AASlE,OAAO,iBAAS,yBACdA,UAAU,2BACT","names":["defInput: ActionTypeUserDefinition"],"sources":["../../../src/api/defineDeleteObjectAction.ts"],"version":3,"file":"defineDeleteObjectAction.d.ts"}
@@ -0,0 +1,19 @@
1
+ export interface FunctionIrBlockData {
2
+ functionsBlockDataV1: Record<string, unknown>;
3
+ }
4
+ export interface IEntityMetadataMapping {
5
+ ontologies: Record<string, {
6
+ objectTypes: Record<string, {
7
+ objectTypeId: string
8
+ primaryKey: {
9
+ propertyId: string
10
+ }
11
+ propertyTypes: Record<string, {
12
+ propertyId: string
13
+ }>
14
+ linkTypes: Record<string, unknown>
15
+ }>
16
+ interfaceTypes: Record<string, unknown>
17
+ }>;
18
+ }
19
+ export declare function generateFunctionsIr(rootDir: string, configPath?: string, entityMappings?: IEntityMetadataMapping): Promise<FunctionIrBlockData>;
@@ -0,0 +1 @@
1
+ {"mappings":"AAqBA,iBAAiB,oBAAoB;CACnC,sBAAsB;AACvB;AAsBD,iBAAiB,uBAAuB;CACtC,YAAY,eAEV;EACE,aAAa,eAEX;GACE;GACA,YAAY;IAAE;GAAoB;GAClC,eAAe,eAAe;IAAE;GAAoB;GACpD,WAAW;EACZ;EAEH,gBAAgB;CACjB;AAEJ;AAuCD,OAAO,iBAAe,oBACpBA,iBACAC,qBACAC,iBAAiB,yBAChB,QAAQ","names":["rootDir: string","configPath?: string","entityMappings?: IEntityMetadataMapping"],"sources":["../../../src/api/defineFunction.ts"],"version":3,"file":"defineFunction.d.ts"}
@@ -31,5 +31,5 @@ export type InterfaceTypeDefinition = {
31
31
  extends?: InterfaceType | InterfaceType[]
32
32
  searchable?: boolean
33
33
  };
34
- export declare function defineInterface(interfaceDef: InterfaceTypeDefinition): InterfaceType;
34
+ export declare function defineInterface(interfaceDefInput: InterfaceTypeDefinition): InterfaceType;
35
35
  export {};
@@ -1 +1 @@
1
- {"mappings":"AAkBA,cAAc,qBAAqB,4BAA6B;AAQhE,cACO,gCAGA,sCAAuC;AAC9C,cAAc,qBAAqB,8BAA+B;AAIlE,cAAc,0BAA0B,oCAAqC;AAE7E,YAAY,gCACR;CAAE,MAAM;CAAc;CAAiB;AAAkB,IACzD;CAAE,MAAM;AAAU,IAClB;CAAE,MAAM;AAAgB,IACxB;CAAE,MAAM;AAAW;KAElB,eACD,qBACA;KACC,kBAAkB;CACrB;CACA,oBAAoB;AACrB;AAED,YAAY,0BAA0B;CACpC;CACA;CACA;CACA,OAAO;EAAE,SAAS;EAAe;CAAe;CAChD,SAAS;CACT,aAAa,eAEX,eAAe;CAEjB,UAAU,gBAAgB;CAC1B;AACD;AAED,OAAO,iBAAS,gBACdA,cAAc,0BACb","names":["interfaceDef: InterfaceTypeDefinition"],"sources":["../../../src/api/defineInterface.ts"],"version":3,"file":"defineInterface.d.ts"}
1
+ {"mappings":"AAmBA,cAAc,qBAAqB,4BAA6B;AAQhE,cACO,gCAGA,sCAAuC;AAC9C,cAAc,qBAAqB,8BAA+B;AAIlE,cAAc,0BAA0B,oCAAqC;AAE7E,YAAY,gCACR;CAAE,MAAM;CAAc;CAAiB;AAAkB,IACzD;CAAE,MAAM;AAAU,IAClB;CAAE,MAAM;AAAgB,IACxB;CAAE,MAAM;AAAW;KAElB,eACD,qBACA;KACC,kBAAkB;CACrB;CACA,oBAAoB;AACrB;AAED,YAAY,0BAA0B;CACpC;CACA;CACA;CACA,OAAO;EAAE,SAAS;EAAe;CAAe;CAChD,SAAS;CACT,aAAa,eAEX,eAAe;CAEjB,UAAU,gBAAgB;CAC1B;AACD;AAED,OAAO,iBAAS,gBACdA,mBAAmB,0BAClB","names":["interfaceDefInput: InterfaceTypeDefinition"],"sources":["../../../src/api/defineInterface.ts"],"version":3,"file":"defineInterface.d.ts"}
@@ -18,5 +18,5 @@ type One = {
18
18
  description?: string
19
19
  required?: boolean
20
20
  };
21
- export declare function defineInterfaceLinkConstraint(linkDef: One | Many): void;
21
+ export declare function defineInterfaceLinkConstraint(linkDefInput: One | Many): void;
22
22
  export {};
@@ -1 +1 @@
1
- {"mappings":"AAkBA,cAAc,qBAAqB,8BAA+B;KAI7D,kCAAkC;KAElC,OAAO;CACV;CACA,MAAM;CACN,QAAQ;CACR;CACA;CACA;CACA;AACD;KACI,MAAM;CACT;CACA,MAAM;CACN,OAAO;CACP;CACA;CACA;CACA;AACD;AAED,OAAO,iBAAS,8BACdA,SAAS,MAAM","names":["linkDef: One | Many"],"sources":["../../../src/api/defineInterfaceLinkConstraint.ts"],"version":3,"file":"defineInterfaceLinkConstraint.d.ts"}
1
+ {"mappings":"AAwBA,cAAc,qBAAqB,8BAA+B;KAI7D,kCAAkC;KAElC,OAAO;CACV;CACA,MAAM;CACN,QAAQ;CACR;CACA;CACA;CACA;AACD;KACI,MAAM;CACT;CACA,MAAM;CACN,OAAO;CACP;CACA;CACA;CACA;AACD;AAED,OAAO,iBAAS,8BACdA,cAAc,MAAM","names":["linkDefInput: One | Many"],"sources":["../../../src/api/defineInterfaceLinkConstraint.ts"],"version":3,"file":"defineInterfaceLinkConstraint.d.ts"}
@@ -1,2 +1,2 @@
1
1
  import type { LinkType, LinkTypeDefinition } from "./links/LinkType.js";
2
- export declare function defineLink(linkDefinition: LinkTypeDefinition): LinkType;
2
+ export declare function defineLink(linkDefinitionInput: LinkTypeDefinition): LinkType;
@@ -1 +1 @@
1
- {"mappings":"AAuBA,cAGE,UACA,0BAMK,qBAAsB;AAE7B,OAAO,iBAAS,WACdA,gBAAgB,qBACf","names":["linkDefinition: LinkTypeDefinition"],"sources":["../../../src/api/defineLink.ts"],"version":3,"file":"defineLink.d.ts"}
1
+ {"mappings":"AAwBA,cAGE,UACA,0BAMK,qBAAsB;AAE7B,OAAO,iBAAS,WACdA,qBAAqB,qBACpB","names":["linkDefinitionInput: LinkTypeDefinition"],"sources":["../../../src/api/defineLink.ts"],"version":3,"file":"defineLink.d.ts"}
@@ -1,3 +1,3 @@
1
1
  import { type ActionType } from "./action/ActionType.js";
2
2
  import type { InterfaceActionTypeUserDefinition } from "./defineAction.js";
3
- export declare function defineModifyInterfaceObjectAction(def: InterfaceActionTypeUserDefinition): ActionType;
3
+ export declare function defineModifyInterfaceObjectAction(defInput: InterfaceActionTypeUserDefinition): ActionType;
@@ -1 +1 @@
1
- {"mappings":"AAoBA,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,yCAAyC,mBAAoB;AAoB3E,OAAO,iBAAS,kCACdA,KAAK,oCACJ","names":["def: InterfaceActionTypeUserDefinition"],"sources":["../../../src/api/defineModifyInterfaceObjectAction.ts"],"version":3,"file":"defineModifyInterfaceObjectAction.d.ts"}
1
+ {"mappings":"AAoBA,cAAc,kBAAkB,wBAAyB;AAEzD,cAAc,yCAAyC,mBAAoB;AAoB3E,OAAO,iBAAS,kCACdA,UAAU,oCACT","names":["defInput: InterfaceActionTypeUserDefinition"],"sources":["../../../src/api/defineModifyInterfaceObjectAction.ts"],"version":3,"file":"defineModifyInterfaceObjectAction.d.ts"}
@@ -1,3 +1,3 @@
1
1
  import { type ActionType } from "./action/ActionType.js";
2
2
  import type { ActionTypeUserDefinition } from "./defineAction.js";
3
- export declare function defineModifyObjectAction(def: ActionTypeUserDefinition): ActionType;
3
+ export declare function defineModifyObjectAction(defInput: ActionTypeUserDefinition): ActionType;
@@ -1 +1 @@
1
- {"mappings":"AAiBA,cAAc,kBAAkB,wBAAyB;AACzD,cAAc,gCAAgC,mBAAoB;AAalE,OAAO,iBAAS,yBACdA,KAAK,2BACJ","names":["def: ActionTypeUserDefinition"],"sources":["../../../src/api/defineModifyObjectAction.ts"],"version":3,"file":"defineModifyObjectAction.d.ts"}
1
+ {"mappings":"AAiBA,cAAc,kBAAkB,wBAAyB;AAEzD,cAAc,gCAAgC,mBAAoB;AAalE,OAAO,iBAAS,yBACdA,UAAU,2BACT","names":["defInput: ActionTypeUserDefinition"],"sources":["../../../src/api/defineModifyObjectAction.ts"],"version":3,"file":"defineModifyObjectAction.d.ts"}
@@ -1,4 +1,4 @@
1
1
  import type { ObjectTypeDefinition } from "./object/ObjectTypeDefinition.js";
2
- export declare function defineObject(objectDef: ObjectTypeDefinition): ObjectTypeDefinition;
2
+ export declare function defineObject(objectDefInput: ObjectTypeDefinition): ObjectTypeDefinition;
3
3
  export declare function uppercaseFirstLetter(s: string | undefined | null): string;
4
4
  export declare function convertToPluralDisplayName(s: string | undefined | null): string;
@@ -1 +1 @@
1
- {"mappings":"AAyCA,cAAc,4BAA4B,kCAAmC;AAc7E,OAAO,iBAAS,aACdA,WAAW,uBACV;AA+MH,OAAO,iBAAS,qBAAqBC;AAOrC,OAAO,iBAAS,2BACdA","names":["objectDef: ObjectTypeDefinition","s: string | undefined | null"],"sources":["../../../src/api/defineObject.ts"],"version":3,"file":"defineObject.d.ts"}
1
+ {"mappings":"AA0CA,cAAc,4BAA4B,kCAAmC;AAc7E,OAAO,iBAAS,aACdA,gBAAgB,uBACf;AA+NH,OAAO,iBAAS,qBAAqBC;AAOrC,OAAO,iBAAS,2BACdA","names":["objectDefInput: ObjectTypeDefinition","s: string | undefined | null"],"sources":["../../../src/api/defineObject.ts"],"version":3,"file":"defineObject.d.ts"}
@@ -2,6 +2,7 @@ import type { OntologyIr, OntologyIrActionTypeBlockDataV2, OntologyIrAllowedPara
2
2
  import type { ActionParameter, ActionParameterValidation } from "./action/ActionParameter.js";
3
3
  import type { ActionParameterAllowedValues } from "./action/ActionParameterAllowedValues.js";
4
4
  import type { ActionType } from "./action/ActionType.js";
5
+ import type { OntologyDefinition } from "./common/OntologyDefinition.js";
5
6
  import type { OntologyEntityType } from "./common/OntologyEntityTypeMapping.js";
6
7
  export declare function updateOntology<T extends OntologyEntityType>(entity: T): void;
7
8
  export declare function defineOntology(ns: string, body: () => void | Promise<void>, outputDir: string | undefined, dependencyFile?: string, codeSnippetFiles?: boolean, snippetPackageName?: string, snippetFileOutputDir?: string, randomnessKey?: string): Promise<OntologyIr>;
@@ -17,3 +18,7 @@ export declare function renderHintFromBaseType(parameter: ActionParameter, valid
17
18
  export declare function extractNamespace(apiName: string): string;
18
19
  export declare function withoutNamespace(apiName: string): string;
19
20
  export declare function addNamespaceIfNone(apiName: string): string;
21
+ export declare function initializeOntologyState(ns: string): void;
22
+ export declare function getOntologyDefinition(): OntologyDefinition;
23
+ export declare function getImportedTypes(): OntologyDefinition;
24
+ export declare function getNamespace(): string;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAEE,YACA,iCACA,kCACA,gCACA,0CAGA,8BAEA,2BAEK,uBAAwB;AAS/B,cACE,iBACA,iCACK,6BAA8B;AACrC,cAAc,oCAAoC,0CAA2C;AAC7F,cAAc,kBAAkB,wBAAyB;AAIzD,cAAc,0BAA0B,uCAAwC;AAiBhF,OAAO,iBAAS,eACd,UAAU,oBAEVA,QAAQ;AAiBV,OAAO,iBAAe,eACpBC,YACAC,mBAAmB,eACnBC,+BACAC,yBACAC,4BACAC,6BACAC,+BACAC,yBACC,QAAQ;AA8CX,OAAO,iBAAS,mBAAmBC;AAgFnC,OAAO,iBAAS,gBACdC,iBACAC,YAAY,0CACZC,yCACAC,qCACC;AA6BH,OAAO,iBAAS,2BAA2BH;AAkB3C,OAAO,iBAAS,4BAA4B;AAI5C,OAAO,iBAAS,yBAAyB;AAIzC,OAAO,iBAAS,oBAAoBI;AA2CpC,OAAO,iBAAS,cACdC,QAAQ,aACP;AAwEH,OAAO,iBAAS,qBACdC,eAAe,+BACd;AAwIH,OAAO,iBAAS,uBACdC,WAAW,iBACXC,aAAa,4BACZ;AAsEH,OAAO,iBAAS,iBAAiBR;AAIjC,OAAO,iBAAS,iBAAiBA;AA8CjC,OAAO,iBAAS,mBAAmBA","names":["entity: T","ns: string","body: () => void | Promise<void>","outputDir: string | undefined","dependencyFile?: string","codeSnippetFiles?: boolean","snippetPackageName?: string","snippetFileOutputDir?: string","randomnessKey?: string","outputDir: string","apiName: string","definition: OntologyIrObjectTypeDatasourceDefinition","classificationMarkingGroupName?: string","mandatoryMarkingGroupName?: string","status: any","action: ActionType","allowedValues: ActionParameterAllowedValues","parameter: ActionParameter","validation?: ActionParameterValidation"],"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,cACE,iBACA,iCACK,6BAA8B;AACrC,cAAc,oCAAoC,0CAA2C;AAC7F,cAAc,kBAAkB,wBAAyB;AAEzD,cAAc,0BAA0B,gCAAiC;AAEzE,cAAc,0BAA0B,uCAAwC;AAiBhF,OAAO,iBAAS,eACd,UAAU,oBAEVA,QAAQ;AAiBV,OAAO,iBAAe,eACpBC,YACAC,mBAAmB,eACnBC,+BACAC,yBACAC,4BACAC,6BACAC,+BACAC,yBACC,QAAQ;AA8CX,OAAO,iBAAS,mBAAmBC;AAgFnC,OAAO,iBAAS,gBACdC,iBACAC,YAAY,0CACZC,yCACAC,qCACC;AA6BH,OAAO,iBAAS,2BAA2BH;AAkB3C,OAAO,iBAAS,4BAA4B;AAI5C,OAAO,iBAAS,yBAAyB;AAIzC,OAAO,iBAAS,oBAAoBI;AA2CpC,OAAO,iBAAS,cACdC,QAAQ,aACP;AAwEH,OAAO,iBAAS,qBACdC,eAAe,+BACd;AAwIH,OAAO,iBAAS,uBACdC,WAAW,iBACXC,aAAa,4BACZ;AAsEH,OAAO,iBAAS,iBAAiBR;AAIjC,OAAO,iBAAS,iBAAiBA;AA8CjC,OAAO,iBAAS,mBAAmBA;AAInC,OAAO,iBAAS,wBAAwBT;AAqBxC,OAAO,iBAAS,yBAAyB;AAIzC,OAAO,iBAAS,oBAAoB;AAIpC,OAAO,iBAAS","names":["entity: T","ns: string","body: () => void | Promise<void>","outputDir: string | undefined","dependencyFile?: string","codeSnippetFiles?: boolean","snippetPackageName?: string","snippetFileOutputDir?: string","randomnessKey?: string","outputDir: string","apiName: string","definition: OntologyIrObjectTypeDatasourceDefinition","classificationMarkingGroupName?: string","mandatoryMarkingGroupName?: string","status: any","action: ActionType","allowedValues: ActionParameterAllowedValues","parameter: ActionParameter","validation?: ActionParameterValidation"],"sources":["../../../src/api/defineOntology.ts"],"version":3,"file":"defineOntology.d.ts"}
@@ -1,11 +1,13 @@
1
1
  import type { OntologyIrBaseFormatter, OntologyIrValueTypeReferenceWithMetadata, SharedPropertyTypeGothamMapping, Visibility } from "@osdk/client.unstable";
2
2
  import type { Nullability } from "./properties/Nullability.js";
3
3
  import { type PropertyTypeType } from "./properties/PropertyTypeType.js";
4
+ import type { ReducerType } from "./properties/ReducerType.js";
4
5
  import { type SharedPropertyType } from "./properties/SharedPropertyType.js";
5
6
  export interface SharedPropertyTypeDefinition {
6
7
  apiName: string;
7
8
  type: PropertyTypeType;
8
9
  array?: boolean;
10
+ reducers?: Array<ReducerType>;
9
11
  description?: string;
10
12
  displayName?: string;
11
13
  valueType?: OntologyIrValueTypeReferenceWithMetadata;
@@ -16,4 +18,4 @@ export interface SharedPropertyTypeDefinition {
16
18
  gothamMapping?: SharedPropertyTypeGothamMapping;
17
19
  baseFormatter?: OntologyIrBaseFormatter;
18
20
  }
19
- export declare function defineSharedPropertyType(sptDef: SharedPropertyTypeDefinition): SharedPropertyType;
21
+ export declare function defineSharedPropertyType(sptDefInput: SharedPropertyTypeDefinition): SharedPropertyType;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,yBACA,0CACA,iCACA,kBACK,uBAAwB;AAQ/B,cAAc,mBAAmB,6BAA8B;AAC/D,cAAc,wBAAwB,kCAAmC;AACzE,cAAc,0BAA0B,oCAAqC;AAQ7E,iBAAiB,6BAA6B;CAC5C;CACA,MAAM;CACN;CACA;CACA;CACA,YAAY;CACZ,aAAa;CACb,cAAc;CACd,cAAc,mBAAmB;CACjC,UAAU;CACV,gBAAgB;CAChB,gBAAgB;AACjB;AAED,OAAO,iBAAS,yBACdA,QAAQ,+BACP","names":["sptDef: SharedPropertyTypeDefinition"],"sources":["../../../src/api/defineSpt.ts"],"version":3,"file":"defineSpt.d.ts"}
1
+ {"mappings":"AAgBA,cACE,yBACA,0CACA,iCACA,kBACK,uBAAwB;AAS/B,cAAc,mBAAmB,6BAA8B;AAC/D,cAAc,wBAAwB,kCAAmC;AACzE,cAAc,mBAAmB,6BAA8B;AAC/D,cAAc,0BAA0B,oCAAqC;AAQ7E,iBAAiB,6BAA6B;CAC5C;CACA,MAAM;CACN;CACA,WAAW,MAAM;CACjB;CACA;CACA,YAAY;CACZ,aAAa;CACb,cAAc;CACd,cAAc,mBAAmB;CACjC,UAAU;CACV,gBAAgB;CAChB,gBAAgB;AACjB;AAED,OAAO,iBAAS,yBACdA,aAAa,+BACZ","names":["sptDefInput: SharedPropertyTypeDefinition"],"sources":["../../../src/api/defineSpt.ts"],"version":3,"file":"defineSpt.d.ts"}
@@ -21,6 +21,6 @@ export type UserValueTypeStatus = "active" | {
21
21
  deadline: string
22
22
  replacedBy?: ValueTypeRid
23
23
  };
24
- export declare function defineValueType(valueTypeDef: ValueTypeDefinition): ValueTypeDefinitionVersion;
24
+ export declare function defineValueType(valueTypeDefInput: ValueTypeDefinition): ValueTypeDefinitionVersion;
25
25
  export declare function convertUserValueTypeStatusToValueTypeStatus(status: UserValueTypeStatus | undefined): ValueTypeStatus;
26
26
  export {};
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAME,cACA,uBACK,uBAAwB;AAQ/B,cAAc,kCAAkC,wCAAyC;AACzF,cAAc,qBAAqB,2BAA4B;KAiC1D,mCACF,QAAQ,iBAAiB,KAAK,WAAU;CACvC,MAAM,KAAK;CACX,cAAc,KAAK;AACpB;KAEE,yBACH,oCAAoC;AA+CtC,YAAY,sBAAsB;CAChC;CACA;CACA;CACA,MAAM;CACN;CACA,SAAS;CACT;AACD;AAED,YAAY,sBAAsB,WAAW;CAC3C,MAAM;CACN;CACA;CACA,aAAa;AACd;AAED,OAAO,iBAAS,gBACdA,cAAc,sBACb;AA0DH,OAAO,iBAAS,4CACdC,QAAQ,kCACP","names":["valueTypeDef: ValueTypeDefinition","status: UserValueTypeStatus | undefined"],"sources":["../../../src/api/defineValueType.ts"],"version":3,"file":"defineValueType.d.ts"}
1
+ {"mappings":"AAgBA,cAME,cACA,uBACK,uBAAwB;AAS/B,cAAc,kCAAkC,wCAAyC;AACzF,cAAc,qBAAqB,2BAA4B;KAiC1D,mCACF,QAAQ,iBAAiB,KAAK,WAAU;CACvC,MAAM,KAAK;CACX,cAAc,KAAK;AACpB;KAEE,yBACH,oCAAoC;AA+CtC,YAAY,sBAAsB;CAChC;CACA;CACA;CACA,MAAM;CACN;CACA,SAAS;CACT;AACD;AAED,YAAY,sBAAsB,WAAW;CAC3C,MAAM;CACN;CACA;CACA,aAAa;AACd;AAED,OAAO,iBAAS,gBACdA,mBAAmB,sBAClB;AA2DH,OAAO,iBAAS,4CACdC,QAAQ,kCACP","names":["valueTypeDefInput: ValueTypeDefinition","status: UserValueTypeStatus | undefined"],"sources":["../../../src/api/defineValueType.ts"],"version":3,"file":"defineValueType.d.ts"}
@@ -2,7 +2,7 @@ import type { InterfaceTypeStatus, OntologyIrMarketplaceInterfaceType } from "@o
2
2
  import type { OntologyEntityBase } from "../common/OntologyEntityBase.js";
3
3
  import type { OntologyEntityTypeEnum } from "../common/OntologyEntityTypeEnum.js";
4
4
  import type { InterfacePropertyType, InterfaceSharedPropertyType } from "./InterfacePropertyType.js";
5
- export interface InterfaceType extends OntologyEntityBase, Omit<OntologyIrMarketplaceInterfaceType, "properties" | "propertiesV2" | "propertiesV3" | "extendsInterfaces"> {
5
+ export interface InterfaceType extends OntologyEntityBase, Omit<OntologyIrMarketplaceInterfaceType, "properties" | "propertiesV2" | "propertiesV3" | "extendsInterfaces" | "extendsInterfacesMetadata"> {
6
6
  propertiesV2: Record<string, InterfaceSharedPropertyType>;
7
7
  propertiesV3: Record<string, InterfacePropertyType>;
8
8
  extendsInterfaces: Array<InterfaceType>;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,qBACA,0CACK,uBAAwB;AAC/B,cAAc,0BAA0B,iCAAkC;AAC1E,cAAc,8BAA8B,qCAAsC;AAClF,cACE,uBACA,mCACK,4BAA6B;AAEpC,iBAAiB,sBACf,oBACA,KACE,oCAEE,eAEA,iBACA,iBACA,qBAEN;CACE,cAAc,eAAe;CAC7B,cAAc,eAAe;CAC7B,mBAAmB,MAAM;CACzB,QAAQ;CACR,QAAQ,uBAAuB;AAChC","names":[],"sources":["../../../../src/api/interface/InterfaceType.ts"],"version":3,"file":"InterfaceType.d.ts"}
1
+ {"mappings":"AAgBA,cACE,qBACA,0CACK,uBAAwB;AAC/B,cAAc,0BAA0B,iCAAkC;AAC1E,cAAc,8BAA8B,qCAAsC;AAClF,cACE,uBACA,mCACK,4BAA6B;AAEpC,iBAAiB,sBACf,oBACA,KACE,oCAEE,eAEA,iBACA,iBACA,sBACA,6BAEN;CACE,cAAc,eAAe;CAC7B,cAAc,eAAe;CAC7B,mBAAmB,MAAM;CACzB,QAAQ;CACR,QAAQ,uBAAuB;AAChC","names":[],"sources":["../../../../src/api/interface/InterfaceType.ts"],"version":3,"file":"InterfaceType.d.ts"}
@@ -2,6 +2,7 @@ import type { OntologyIrBaseFormatter, Visibility } from "@osdk/client.unstable"
2
2
  import type { RequiredFields } from "../../util/RequiredFields.js";
3
3
  import type { Nullability } from "../properties/Nullability.js";
4
4
  import type { PropertyTypeType } from "../properties/PropertyTypeType.js";
5
+ import type { ReducerType } from "../properties/ReducerType.js";
5
6
  import type { SharedPropertyType } from "../properties/SharedPropertyType.js";
6
7
  import type { ValueTypeDefinitionVersion } from "../values/ValueTypeDefinitionVersion.js";
7
8
  import type { ObjectTypeStatus } from "./ObjectTypeStatus.js";
@@ -16,6 +17,7 @@ export interface ObjectPropertyTypeInner {
16
17
  }>;
17
18
  type: PropertyTypeType;
18
19
  array?: boolean;
20
+ reducers?: Array<ReducerType>;
19
21
  valueType: ValueTypeDefinitionVersion;
20
22
  sharedPropertyType: SharedPropertyType;
21
23
  description: string | undefined;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,yBACA,kBACK,uBAAwB;AAC/B,cAAc,sBAAsB,8BAA+B;AACnE,cAAc,mBAAmB,8BAA+B;AAChE,cAAc,wBAAwB,mCAAoC;AAC1E,cAAc,0BAA0B,qCAAsC;AAC9E,cAAc,kCAAkC,yCAA0C;AAC1F,cAAc,wBAAwB,uBAAwB;AAE9D,YAAY,qBAAqB,eAC/B,QAAQ,0BACR,YAAY,SAAS;AAGvB,iBAAiB,wBAAwB;CAEvC;CAGA,gBAAgB;CAChB;CACA,aAAa,MAAM;EACjB;EACA;CACD;CAED,MAAM;CACN;CACA,WAAW;CACX,oBAAoB;CACpB;CACA;CACA,YAAY;CACZ,cAAc;CACd,SAAS;CACT;AACD","names":[],"sources":["../../../../src/api/object/ObjectPropertyType.ts"],"version":3,"file":"ObjectPropertyType.d.ts"}
1
+ {"mappings":"AAgBA,cACE,yBACA,kBACK,uBAAwB;AAC/B,cAAc,sBAAsB,8BAA+B;AACnE,cAAc,mBAAmB,8BAA+B;AAChE,cAAc,wBAAwB,mCAAoC;AAC1E,cAAc,mBAAmB,8BAA+B;AAChE,cAAc,0BAA0B,qCAAsC;AAC9E,cAAc,kCAAkC,yCAA0C;AAC1F,cAAc,wBAAwB,uBAAwB;AAE9D,YAAY,qBAAqB,eAC/B,QAAQ,0BACR,YAAY,SAAS;AAGvB,iBAAiB,wBAAwB;CAEvC;CAGA,gBAAgB;CAChB;CACA,aAAa,MAAM;EACjB;EACA;CACD;CAED,MAAM;CACN;CACA,WAAW,MAAM;CACjB,WAAW;CACX,oBAAoB;CACpB;CACA;CACA,YAAY;CACZ,cAAc;CACd,SAAS;CACT;AACD","names":[],"sources":["../../../../src/api/object/ObjectPropertyType.ts"],"version":3,"file":"ObjectPropertyType.d.ts"}
@@ -1,7 +1,7 @@
1
1
  import type { DerivedPropertyLinkTypeSide, MarkingType, ObjectTypeFieldApiName } from "@osdk/client.unstable";
2
2
  import type { LinkType } from "../links/LinkType.js";
3
3
  import type { SecurityConditionDefinition } from "./SecurityCondition.js";
4
- export type ObjectTypeDatasourceDefinition = ObjectTypeDatasourceDefinition_stream | ObjectTypeDatasourceDefinition_dataset | ObjectTypeDatasourceDefinition_restrictedView | ObjectTypeDatasourceDefinition_derived;
4
+ export type ObjectTypeDatasourceDefinition = ObjectTypeDatasourceDefinition_stream | ObjectTypeDatasourceDefinition_dataset | ObjectTypeDatasourceDefinition_restrictedView | ObjectTypeDatasourceDefinition_derived | ObjectTypeDatasourceDefinition_direct;
5
5
  export interface ObjectTypeDatasourceDefinition_dataset {
6
6
  type: "dataset";
7
7
  objectSecurityPolicy?: ObjectSecurityPolicy;
@@ -10,13 +10,15 @@ export interface ObjectTypeDatasourceDefinition_dataset {
10
10
  export interface ObjectSecurityPolicy {
11
11
  name: string;
12
12
  granularPolicy?: SecurityConditionDefinition;
13
- additionalMandatoryMarkings?: Record<string, MarkingType>;
13
+ appliedMarkings?: Record<string, MarkingType>;
14
+ assumedMarkings?: Record<string, MarkingType>;
14
15
  }
15
16
  export interface PropertySecurityGroup {
16
17
  name: string;
17
18
  properties: Array<string>;
18
19
  granularPolicy?: SecurityConditionDefinition;
19
- additionalMandatoryMarkings?: Record<string, MarkingType>;
20
+ appliedMarkings?: Record<string, MarkingType>;
21
+ assumedMarkings?: Record<string, MarkingType>;
20
22
  }
21
23
  export interface ObjectTypeDatasourceDefinition_stream {
22
24
  type: "stream";
@@ -63,3 +65,8 @@ export type DerivedPropertyAggregation = {
63
65
  property: ObjectTypeFieldApiName
64
66
  limit: number
65
67
  };
68
+ export interface ObjectTypeDatasourceDefinition_direct {
69
+ type: "direct";
70
+ objectSecurityPolicy?: ObjectSecurityPolicy;
71
+ propertySecurityGroups?: Array<PropertySecurityGroup>;
72
+ }
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,6BACA,aACA,8BACK,uBAAwB;AAC/B,cAAc,gBAAgB,sBAAuB;AACrD,cAAc,mCAAmC,wBAAyB;AAE1E,YAAY,iCACR,wCACA,yCACA,gDACA;AAEJ,iBAAiB,uCAAuC;CACtD,MAAM;CACN,uBAAuB;CACvB,yBAAyB,MAAM;AAChC;AAED,iBAAiB,qBAAqB;CACpC;CACA,iBAAiB;CACjB,8BAA8B,eAAe;AAC9C;AAED,iBAAiB,sBAAsB;CACrC;CACA,YAAY;CACZ,iBAAiB;CACjB,8BAA8B,eAAe;AAC9C;AAED,iBAAiB,sCAAsC;CACrD,MAAM;CAEN;AACD;AAED,iBAAiB,8CAA8C;CAC7D,MAAM;AACP;AAED,iBAAiB,uCAAuC;CACtD,MAAM;CACN,gBAAgB,MAAM;CAEtB,iBACI,OAAO,wBAAwB,0BAC/B,OAAO,wBAAwB;AACpC;AACD,iBAAiB,gCAAgC;CAC/C,UAAU;CACV,OAAO;AACR;AAGD,YAAY,6BACR;CAAE,MAAM;AAAS,IACjB;CAAE,MAAM;CAAO,UAAU;AAAwB,IACjD;CAAE,MAAM;CAAO,UAAU;AAAwB,IACjD;CAAE,MAAM;CAAO,UAAU;AAAwB,IACjD;CAAE,MAAM;CAAO,UAAU;AAAwB,IACjD;CAAE,MAAM;CAA0B,UAAU;AAAwB,IACpE;CAAE,MAAM;CAAoB,UAAU;AAAwB,IAC9D;CAAE,MAAM;CAAe,UAAU;CAAwB;AAAe,IACxE;CAAE,MAAM;CAAc,UAAU;CAAwB;AAAe","names":[],"sources":["../../../../src/api/object/ObjectTypeDatasourceDefinition.ts"],"version":3,"file":"ObjectTypeDatasourceDefinition.d.ts"}
1
+ {"mappings":"AAgBA,cACE,6BACA,aACA,8BACK,uBAAwB;AAC/B,cAAc,gBAAgB,sBAAuB;AACrD,cAAc,mCAAmC,wBAAyB;AAE1E,YAAY,iCACR,wCACA,yCACA,gDACA,yCACA;AAEJ,iBAAiB,uCAAuC;CACtD,MAAM;CACN,uBAAuB;CACvB,yBAAyB,MAAM;AAChC;AAED,iBAAiB,qBAAqB;CACpC;CACA,iBAAiB;CACjB,kBAAkB,eAAe;CACjC,kBAAkB,eAAe;AAClC;AAED,iBAAiB,sBAAsB;CACrC;CACA,YAAY;CACZ,iBAAiB;CACjB,kBAAkB,eAAe;CACjC,kBAAkB,eAAe;AAClC;AAED,iBAAiB,sCAAsC;CACrD,MAAM;CAEN;AACD;AAED,iBAAiB,8CAA8C;CAC7D,MAAM;AACP;AAED,iBAAiB,uCAAuC;CACtD,MAAM;CACN,gBAAgB,MAAM;CAEtB,iBACI,OAAO,wBAAwB,0BAC/B,OAAO,wBAAwB;AACpC;AACD,iBAAiB,gCAAgC;CAC/C,UAAU;CACV,OAAO;AACR;AAGD,YAAY,6BACR;CAAE,MAAM;AAAS,IACjB;CAAE,MAAM;CAAO,UAAU;AAAwB,IACjD;CAAE,MAAM;CAAO,UAAU;AAAwB,IACjD;CAAE,MAAM;CAAO,UAAU;AAAwB,IACjD;CAAE,MAAM;CAAO,UAAU;AAAwB,IACjD;CAAE,MAAM;CAA0B,UAAU;AAAwB,IACpE;CAAE,MAAM;CAAoB,UAAU;AAAwB,IAC9D;CAAE,MAAM;CAAe,UAAU;CAAwB;AAAe,IACxE;CAAE,MAAM;CAAc,UAAU;CAAwB;AAAe;AAE3E,iBAAiB,sCAAsC;CACrD,MAAM;CACN,uBAAuB;CACvB,yBAAyB,MAAM;AAChC","names":[],"sources":["../../../../src/api/object/ObjectTypeDatasourceDefinition.ts"],"version":3,"file":"ObjectTypeDatasourceDefinition.d.ts"}
@@ -12,6 +12,10 @@ export type PropertyTypeTypeStruct = {
12
12
  structDefinition: {
13
13
  [api_name: string]: StructPropertyType | Exclude<PropertyTypeTypesWithoutStruct, PropertyTypeTypeMarking>
14
14
  }
15
+ mainValue?: {
16
+ fields: string | Array<string>
17
+ type: PropertyTypeType
18
+ }
15
19
  };
16
20
  type PropertyTypeTypeString = {
17
21
  type: "string"
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,uBAAuB,uBAAwB;AAE7D,YAAY,mBACR,4BACA;AAEJ,YAAY,4BACR,YACA,SACA,SACA,YACA,WACA,UACA,YACA,SACA,UACA,WACA,cACA;AAEJ,YAAY,yBACR,aACA,aACA,mBACA,kBACA,0BACA,yBACA,yBACA;KAEC,0BAA0B;CAC7B,MAAM;CACN,aAAa,cAAc;CAC3B;AACD;AAED,YAAY,yBAAyB;CACnC,MAAM;CACN,kBAAkB;sBAEZ,qBACA,QAAQ,gCAAgC;CAC7C;AACF;KAEI,yBAAyB;CAC5B,MAAM;CACN;CACA;CACA;CACA;CACA;AACD;KAEI,0BAA0B;CAC7B,MAAM;CACN;CACA;AACD;AAED,YAAY,iCAAiC,QAC3C,kBACA;AAEF,OAAO,iBAAS,mBACdA,GAAG,mBACF,KAAK;AASR,OAAO,iBAAS,SACdC,MAAM,+BACL,QAAQ;AAeX,OAAO,iBAAS,SACdC,MAAM,mBACL,QAAQ;KAIN;CAAS;CAAG,gBAAgB;IAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,GAAG;AAEpE,iBAAiB,2BACf,SACE,KACE,iBACA,cAAc,mBAAmB,YAEnC,gBAAgB,WAEpB;CACE,WAAW;CACX;AACD","names":["v: PropertyTypeType","type: PropertyTypeType | undefined","type: PropertyTypeType"],"sources":["../../../../src/api/properties/PropertyTypeType.ts"],"version":3,"file":"PropertyTypeType.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,uBAAuB,uBAAwB;AAE7D,YAAY,mBACR,4BACA;AAEJ,YAAY,4BACR,YACA,SACA,SACA,YACA,WACA,UACA,YACA,SACA,UACA,WACA,cACA;AAEJ,YAAY,yBACR,aACA,aACA,mBACA,kBACA,0BACA,yBACA,yBACA;KAEC,0BAA0B;CAC7B,MAAM;CACN,aAAa,cAAc;CAC3B;AACD;AAED,YAAY,yBAAyB;CACnC,MAAM;CACN,kBAAkB;sBAEZ,qBACA,QAAQ,gCAAgC;CAC7C;CACD,YAAY;EACV,iBAAiB;EAEjB,MAAM;CACP;AACF;KAEI,yBAAyB;CAC5B,MAAM;CACN;CACA;CACA;CACA;CACA;AACD;KAEI,0BAA0B;CAC7B,MAAM;CACN;CACA;AACD;AAED,YAAY,iCAAiC,QAC3C,kBACA;AAEF,OAAO,iBAAS,mBACdA,GAAG,mBACF,KAAK;AASR,OAAO,iBAAS,SACdC,MAAM,+BACL,QAAQ;AAeX,OAAO,iBAAS,SACdC,MAAM,mBACL,QAAQ;KAIN;CAAS;CAAG,gBAAgB;IAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,GAAG;AAEpE,iBAAiB,2BACf,SACE,KACE,iBACA,cAAc,mBAAmB,YAEnC,gBAAgB,WAEpB;CACE,WAAW;CACX;AACD","names":["v: PropertyTypeType","type: PropertyTypeType | undefined","type: PropertyTypeType"],"sources":["../../../../src/api/properties/PropertyTypeType.ts"],"version":3,"file":"PropertyTypeType.d.ts"}