@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.
- package/CHANGELOG.md +99 -0
- package/README.md +18 -1
- package/build/browser/api/cloneDefinition.js +36 -0
- package/build/browser/api/cloneDefinition.js.map +1 -0
- package/build/browser/api/code-snippets/createCodeSnippets.js +1 -1
- package/build/browser/api/code-snippets/createCodeSnippets.js.map +1 -1
- package/build/browser/api/defineAction.js +9 -1
- package/build/browser/api/defineAction.js.map +1 -1
- package/build/browser/api/defineCreateInterfaceObjectAction.js +3 -1
- package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineCreateObjectAction.js +3 -1
- package/build/browser/api/defineCreateObjectAction.js.map +1 -1
- package/build/browser/api/defineCreateOrModifyObjectAction.js +3 -1
- package/build/browser/api/defineCreateOrModifyObjectAction.js.map +1 -1
- package/build/browser/api/defineDeleteInterfaceObjectAction.js +3 -1
- package/build/browser/api/defineDeleteInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineDeleteObjectAction.js +3 -1
- package/build/browser/api/defineDeleteObjectAction.js.map +1 -1
- package/build/browser/api/defineFunction.js +61 -0
- package/build/browser/api/defineFunction.js.map +1 -0
- package/build/browser/api/defineInterface.js +3 -1
- package/build/browser/api/defineInterface.js.map +1 -1
- package/build/browser/api/defineInterfaceLinkConstraint.js +6 -2
- package/build/browser/api/defineInterfaceLinkConstraint.js.map +1 -1
- package/build/browser/api/defineLink.js +3 -1
- package/build/browser/api/defineLink.js.map +1 -1
- package/build/browser/api/defineModifyInterfaceObjectAction.js +3 -1
- package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineModifyObjectAction.js +3 -1
- package/build/browser/api/defineModifyObjectAction.js.map +1 -1
- package/build/browser/api/defineObject.js +29 -10
- package/build/browser/api/defineObject.js.map +1 -1
- package/build/browser/api/defineOntology.js +29 -0
- package/build/browser/api/defineOntology.js.map +1 -1
- package/build/browser/api/defineSpt.js +3 -1
- package/build/browser/api/defineSpt.js.map +1 -1
- package/build/browser/api/defineValueType.js +3 -1
- package/build/browser/api/defineValueType.js.map +1 -1
- package/build/browser/api/interface/InterfaceType.js.map +1 -1
- package/build/browser/api/object/ObjectPropertyType.js.map +1 -1
- package/build/browser/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
- package/build/browser/api/properties/PropertyTypeType.js.map +1 -1
- package/build/browser/api/properties/ReducerType.js +2 -0
- package/build/browser/api/properties/ReducerType.js.map +1 -0
- package/build/browser/api/properties/SharedPropertyType.js.map +1 -1
- package/build/browser/cli/main.js +1 -1
- package/build/browser/cli/main.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js +17 -6
- package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertInterface.js +2 -1
- package/build/browser/conversion/toMarketplace/convertInterface.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertMainValue.js +36 -0
- package/build/browser/conversion/toMarketplace/convertMainValue.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js +4 -3
- package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertReducers.js +53 -0
- package/build/browser/conversion/toMarketplace/convertReducers.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertSpt.js +5 -3
- package/build/browser/conversion/toMarketplace/convertSpt.js.map +1 -1
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -2
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
- package/build/browser/index.js +5 -2
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +267 -105
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +214 -164
- package/build/esm/api/cloneDefinition.js +36 -0
- package/build/esm/api/cloneDefinition.js.map +1 -0
- package/build/esm/api/code-snippets/createCodeSnippets.js +1 -1
- package/build/esm/api/code-snippets/createCodeSnippets.js.map +1 -1
- package/build/esm/api/defineAction.js +9 -1
- package/build/esm/api/defineAction.js.map +1 -1
- package/build/esm/api/defineCreateInterfaceObjectAction.js +3 -1
- package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineCreateObjectAction.js +3 -1
- package/build/esm/api/defineCreateObjectAction.js.map +1 -1
- package/build/esm/api/defineCreateOrModifyObjectAction.js +3 -1
- package/build/esm/api/defineCreateOrModifyObjectAction.js.map +1 -1
- package/build/esm/api/defineDeleteInterfaceObjectAction.js +3 -1
- package/build/esm/api/defineDeleteInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineDeleteObjectAction.js +3 -1
- package/build/esm/api/defineDeleteObjectAction.js.map +1 -1
- package/build/esm/api/defineFunction.js +61 -0
- package/build/esm/api/defineFunction.js.map +1 -0
- package/build/esm/api/defineInterface.js +3 -1
- package/build/esm/api/defineInterface.js.map +1 -1
- package/build/esm/api/defineInterfaceLinkConstraint.js +6 -2
- package/build/esm/api/defineInterfaceLinkConstraint.js.map +1 -1
- package/build/esm/api/defineLink.js +3 -1
- package/build/esm/api/defineLink.js.map +1 -1
- package/build/esm/api/defineModifyInterfaceObjectAction.js +3 -1
- package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineModifyObjectAction.js +3 -1
- package/build/esm/api/defineModifyObjectAction.js.map +1 -1
- package/build/esm/api/defineObject.js +29 -10
- package/build/esm/api/defineObject.js.map +1 -1
- package/build/esm/api/defineOntology.js +29 -0
- package/build/esm/api/defineOntology.js.map +1 -1
- package/build/esm/api/defineSpt.js +3 -1
- package/build/esm/api/defineSpt.js.map +1 -1
- package/build/esm/api/defineValueType.js +3 -1
- package/build/esm/api/defineValueType.js.map +1 -1
- package/build/esm/api/interface/InterfaceType.js.map +1 -1
- package/build/esm/api/object/ObjectPropertyType.js.map +1 -1
- package/build/esm/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
- package/build/esm/api/properties/PropertyTypeType.js.map +1 -1
- package/build/esm/api/properties/ReducerType.js +2 -0
- package/build/esm/api/properties/ReducerType.js.map +1 -0
- package/build/esm/api/properties/SharedPropertyType.js.map +1 -1
- package/build/esm/cli/main.js +1 -1
- package/build/esm/cli/main.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js +17 -6
- package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertInterface.js +2 -1
- package/build/esm/conversion/toMarketplace/convertInterface.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertMainValue.js +36 -0
- package/build/esm/conversion/toMarketplace/convertMainValue.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js +4 -3
- package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertReducers.js +53 -0
- package/build/esm/conversion/toMarketplace/convertReducers.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertSpt.js +5 -3
- package/build/esm/conversion/toMarketplace/convertSpt.js.map +1 -1
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -2
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
- package/build/esm/index.js +5 -2
- package/build/esm/index.js.map +1 -1
- package/build/types/api/cloneDefinition.d.ts +9 -0
- package/build/types/api/cloneDefinition.d.ts.map +1 -0
- package/build/types/api/defineAction.d.ts +1 -1
- package/build/types/api/defineAction.d.ts.map +1 -1
- package/build/types/api/defineCreateInterfaceObjectAction.d.ts +1 -1
- package/build/types/api/defineCreateInterfaceObjectAction.d.ts.map +1 -1
- package/build/types/api/defineCreateObjectAction.d.ts +1 -1
- package/build/types/api/defineCreateObjectAction.d.ts.map +1 -1
- package/build/types/api/defineCreateOrModifyObjectAction.d.ts +1 -1
- package/build/types/api/defineCreateOrModifyObjectAction.d.ts.map +1 -1
- package/build/types/api/defineDeleteInterfaceObjectAction.d.ts +1 -1
- package/build/types/api/defineDeleteInterfaceObjectAction.d.ts.map +1 -1
- package/build/types/api/defineDeleteObjectAction.d.ts +1 -1
- package/build/types/api/defineDeleteObjectAction.d.ts.map +1 -1
- package/build/types/api/defineFunction.d.ts +19 -0
- package/build/types/api/defineFunction.d.ts.map +1 -0
- package/build/types/api/defineInterface.d.ts +1 -1
- package/build/types/api/defineInterface.d.ts.map +1 -1
- package/build/types/api/defineInterfaceLinkConstraint.d.ts +1 -1
- package/build/types/api/defineInterfaceLinkConstraint.d.ts.map +1 -1
- package/build/types/api/defineLink.d.ts +1 -1
- package/build/types/api/defineLink.d.ts.map +1 -1
- package/build/types/api/defineModifyInterfaceObjectAction.d.ts +1 -1
- package/build/types/api/defineModifyInterfaceObjectAction.d.ts.map +1 -1
- package/build/types/api/defineModifyObjectAction.d.ts +1 -1
- package/build/types/api/defineModifyObjectAction.d.ts.map +1 -1
- package/build/types/api/defineObject.d.ts +1 -1
- package/build/types/api/defineObject.d.ts.map +1 -1
- package/build/types/api/defineOntology.d.ts +5 -0
- package/build/types/api/defineOntology.d.ts.map +1 -1
- package/build/types/api/defineSpt.d.ts +3 -1
- package/build/types/api/defineSpt.d.ts.map +1 -1
- package/build/types/api/defineValueType.d.ts +1 -1
- package/build/types/api/defineValueType.d.ts.map +1 -1
- package/build/types/api/interface/InterfaceType.d.ts +1 -1
- package/build/types/api/interface/InterfaceType.d.ts.map +1 -1
- package/build/types/api/object/ObjectPropertyType.d.ts +2 -0
- package/build/types/api/object/ObjectPropertyType.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts +10 -3
- package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts.map +1 -1
- package/build/types/api/properties/PropertyTypeType.d.ts +4 -0
- package/build/types/api/properties/PropertyTypeType.d.ts.map +1 -1
- package/build/types/api/properties/ReducerType.d.ts +4 -0
- package/build/types/api/properties/ReducerType.d.ts.map +1 -0
- package/build/types/api/properties/SharedPropertyType.d.ts +2 -0
- package/build/types/api/properties/SharedPropertyType.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertDatasourceDefinition.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertMainValue.d.ts +4 -0
- package/build/types/conversion/toMarketplace/convertMainValue.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertObjectPropertyType.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertReducers.d.ts +6 -0
- package/build/types/conversion/toMarketplace/convertReducers.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertSpt.d.ts +1 -1
- package/build/types/conversion/toMarketplace/convertSpt.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.d.ts +2 -1
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.d.ts.map +1 -1
- package/build/types/index.d.ts +14 -6
- package/build/types/index.d.ts.map +1 -1
- package/package.json +6 -5
- package/build/browser/api/test/actions.test.js +0 -14397
- package/build/browser/api/test/actions.test.js.map +0 -1
- package/build/browser/api/test/interfaces.test.js +0 -1189
- package/build/browser/api/test/interfaces.test.js.map +0 -1
- package/build/browser/api/test/links.test.js +0 -2019
- package/build/browser/api/test/links.test.js.map +0 -1
- package/build/browser/api/test/markingconstraint.test.js +0 -134
- package/build/browser/api/test/markingconstraint.test.js.map +0 -1
- package/build/browser/api/test/misc.test.js +0 -1315
- package/build/browser/api/test/misc.test.js.map +0 -1
- package/build/browser/api/test/objectStatus.test.js +0 -160
- package/build/browser/api/test/objectStatus.test.js.map +0 -1
- package/build/browser/api/test/objects.test.js +0 -3856
- package/build/browser/api/test/objects.test.js.map +0 -1
- package/build/browser/api/test/spt.test.js +0 -722
- package/build/browser/api/test/spt.test.js.map +0 -1
- package/build/browser/api/test/valueTypes.test.js +0 -307
- package/build/browser/api/test/valueTypes.test.js.map +0 -1
- package/build/esm/api/test/actions.test.js +0 -14397
- package/build/esm/api/test/actions.test.js.map +0 -1
- package/build/esm/api/test/interfaces.test.js +0 -1189
- package/build/esm/api/test/interfaces.test.js.map +0 -1
- package/build/esm/api/test/links.test.js +0 -2019
- package/build/esm/api/test/links.test.js.map +0 -1
- package/build/esm/api/test/markingconstraint.test.js +0 -134
- package/build/esm/api/test/markingconstraint.test.js.map +0 -1
- package/build/esm/api/test/misc.test.js +0 -1315
- package/build/esm/api/test/misc.test.js.map +0 -1
- package/build/esm/api/test/objectStatus.test.js +0 -160
- package/build/esm/api/test/objectStatus.test.js.map +0 -1
- package/build/esm/api/test/objects.test.js +0 -3856
- package/build/esm/api/test/objects.test.js.map +0 -1
- package/build/esm/api/test/spt.test.js +0 -722
- package/build/esm/api/test/spt.test.js.map +0 -1
- package/build/esm/api/test/valueTypes.test.js +0 -307
- package/build/esm/api/test/valueTypes.test.js.map +0 -1
- package/build/types/api/test/actions.test.d.ts +0 -1
- package/build/types/api/test/actions.test.d.ts.map +0 -1
- package/build/types/api/test/interfaces.test.d.ts +0 -1
- package/build/types/api/test/interfaces.test.d.ts.map +0 -1
- package/build/types/api/test/links.test.d.ts +0 -1
- package/build/types/api/test/links.test.d.ts.map +0 -1
- package/build/types/api/test/markingconstraint.test.d.ts +0 -1
- package/build/types/api/test/markingconstraint.test.d.ts.map +0 -1
- package/build/types/api/test/misc.test.d.ts +0 -1
- package/build/types/api/test/misc.test.d.ts.map +0 -1
- package/build/types/api/test/objectStatus.test.d.ts +0 -1
- package/build/types/api/test/objectStatus.test.d.ts.map +0 -1
- package/build/types/api/test/objects.test.d.ts +0 -1
- package/build/types/api/test/objects.test.d.ts.map +0 -1
- package/build/types/api/test/spt.test.d.ts +0 -1
- package/build/types/api/test/spt.test.d.ts.map +0 -1
- package/build/types/api/test/valueTypes.test.d.ts +0 -1
- 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","
|
|
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
|
-
|
|
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","
|
|
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":"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","ignoreList":[]}
|
package/build/esm/index.js
CHANGED
|
@@ -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
|
package/build/esm/index.js.map
CHANGED
|
@@ -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 {
|
|
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,wBAAwB;AAEtD,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,EACpBA,oBAAoB,IAAIC,oBAAoB,QACvC,uBAAuB;AAC9B,SACEC,kBAAkB,EAClBC,0BAA0B,EAC1BC,mBAAmB,EACnBC,cAAc,EACdC,wBAAwB,EACxBC,gBAAgB,EAChBC,gBAAgB,EAChBC,YAAY,EACZC,qBAAqB,EACrBC,uBAAuB,EACvBC,gBAAgB,QACX,yBAAyB;AAChC,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,eAAe,QAAQ,0BAA0B;AAC1D,SAASC,oBAAoB,QAAQ,+BAA+B;AACpE,SAASC,wBAAwB,QAAQ,mCAAmC;AAK5E,SAASC,6BAA6B,QAAQ,0CAA0C;AAmBxF,SAASC,QAAQ,QAAQ,sCAAsC;AAE/D,SACEC,kBAAkB,EAClBC,mBAAmB,EACnBC,cAAc,EACdC,wBAAwB,EACxBC,wBAAwB,QACnB,kCAAkC;AAEzC,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,gCAAgC,IAAIC,WAAW,QAAQ,gEAAgE","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
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(
|
|
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;
|
|
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,qBAAqB,4BAA6B;AAYhE,cAGO,6BAEA,sCAAuC;AAC9C,cAAc,qBAAqB,8BAA+B;AAElE,cAAc,wCAAwC,8CAA+C;AACrG,cAAc,4BAA4B,kCAAmC;AAC7E,cAEO,wBACA,kCAAmC;AAE1C,OAAO,cAAMA;AAEb,OAAO,cAAMC;AAGb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AAGb,YAAY,uBAAuB,KAAK,YAAY;AAEpD,YAAY,2BAA2B;CACrC,YAAY;CACZ;CACA;CACA,SAAS;CACT,yBAAyB,eAAe;CACxC,uBAAuB,eAAe;CACtC,wBAAwB;CACxB,qBAAqB,MAAM;CAC3B,WAAW,MAAM;CACjB,gBAAgB;CAChB;CACA,qBAAqB;CACrB,oBAAoB;CACpB,qBAAqB;CAErB,mBAAmB,kBAAkB;CACrC,OAAO;EAAE,SAAS;EAAe;CAAe;AACjD;AAED,YAAY,oCAAoC;CAC9C,eAAe;CACf,aAAa;CACb;CACA;CACA,SAAS;CACT,yBAAyB,eAAe;CACxC,uBAAuB,eAAe;CACtC,wBAAwB;CACxB,qBAAqB;CACrB,WAAW,MAAM;CACjB,gBAAgB;CAChB;CACA,qBAAqB;CACrB,oBAAoB;CACpB,qBAAqB;CAErB;CACA,gCAAgC;CAChC,OAAO;EAAE,SAAS;EAAe;CAAe;AACjD;AAED,OAAO,iBAAS,aAAaC,gBAAgB,uBAAuB;AAoIpE,OAAO,iBAAS,oBACdC,KAAK,2BAA2B,mCAChCC,cACAC,MAAM;AAiBR,OAAO,iBAAS,iBACdF,KAAK,2BAA2B,mCAChCG,aACI,eAAe,oCACf,eAAe,wBACnBC,cAAc,aACdC,cAAc,0BACb,MAAM;AAshBT,OAAO,iBAAS,MAAMC;AAYtB,OAAO,iBAAS,sBACdC,kBAAkB,iCAClBC,mBAAmB,oBAClB,MAAM;AAiJT,OAAO,iBAAS,yBACdR,KAAK,2BAA2B,mCAChCS,YAAY,eACZR;AA6BF,OAAO,iBAAS,+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(
|
|
3
|
+
export declare function defineCreateInterfaceObjectAction(defInput: InterfaceActionTypeUserDefinition): ActionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAoBA,cAAc,kBAAkB,wBAAyB;
|
|
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(
|
|
3
|
+
export declare function defineCreateObjectAction(defInput: ActionTypeUserDefinition): ActionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAiBA,cAAc,kBAAkB,wBAAyB;
|
|
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(
|
|
3
|
+
export declare function defineCreateOrModifyObjectAction(defInput: ActionTypeUserDefinition): ActionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAiBA,cAAc,kBAAkB,wBAAyB;
|
|
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(
|
|
3
|
+
export declare function defineDeleteInterfaceObjectAction(defInput: InterfaceActionTypeUserDefinition): ActionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,kBAAkB,wBAAyB;
|
|
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(
|
|
3
|
+
export declare function defineDeleteObjectAction(defInput: ActionTypeUserDefinition): ActionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,kBAAkB,wBAAyB;
|
|
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(
|
|
34
|
+
export declare function defineInterface(interfaceDefInput: InterfaceTypeDefinition): InterfaceType;
|
|
35
35
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
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(
|
|
2
|
+
export declare function defineLink(linkDefinitionInput: LinkTypeDefinition): LinkType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
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(
|
|
3
|
+
export declare function defineModifyInterfaceObjectAction(defInput: InterfaceActionTypeUserDefinition): ActionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAoBA,cAAc,kBAAkB,wBAAyB;
|
|
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(
|
|
3
|
+
export declare function defineModifyObjectAction(defInput: ActionTypeUserDefinition): ActionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAiBA,cAAc,kBAAkB,wBAAyB;
|
|
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(
|
|
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":"
|
|
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;
|
|
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(
|
|
21
|
+
export declare function defineSharedPropertyType(sptDefInput: SharedPropertyTypeDefinition): SharedPropertyType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,yBACA,0CACA,iCACA,kBACK,uBAAwB;
|
|
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(
|
|
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;
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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"}
|