@osdk/maker 0.16.0-beta.5 → 0.16.0-beta.7
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 +24 -0
- package/README.md +4 -1
- package/build/browser/api/defineAction.js +6 -0
- package/build/browser/api/defineAction.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/defineOntology.js +29 -0
- package/build/browser/api/defineOntology.js.map +1 -1
- package/build/browser/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
- package/build/browser/api/test/objects.test.js +11 -2
- package/build/browser/api/test/objects.test.js.map +1 -1
- package/build/browser/api/test/spt.test.js +28 -0
- package/build/browser/api/test/spt.test.js.map +1 -1
- package/build/browser/cli/main.js +145 -2
- package/build/browser/cli/main.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js +7 -5
- package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
- package/build/browser/index.js +5 -2
- package/build/browser/index.js.map +1 -1
- package/build/cjs/defineFunction-7ORD7HD4.cjs +72 -0
- package/build/cjs/defineFunction-7ORD7HD4.cjs.map +1 -0
- package/build/cjs/index.cjs +198 -7
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +186 -153
- package/build/esm/api/defineAction.js +6 -0
- package/build/esm/api/defineAction.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/defineOntology.js +29 -0
- package/build/esm/api/defineOntology.js.map +1 -1
- package/build/esm/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
- package/build/esm/api/test/objects.test.js +11 -2
- package/build/esm/api/test/objects.test.js.map +1 -1
- package/build/esm/api/test/spt.test.js +28 -0
- package/build/esm/api/test/spt.test.js.map +1 -1
- package/build/esm/cli/main.js +145 -2
- package/build/esm/cli/main.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js +7 -5
- package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
- package/build/esm/index.js +5 -2
- package/build/esm/index.js.map +1 -1
- package/build/types/api/defineAction.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/defineOntology.d.ts +5 -0
- package/build/types/api/defineOntology.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts +4 -2
- package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts.map +1 -1
- package/build/types/cli/main.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 +7 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertDatasourceDefinition.js","names":["invariant","convertDatasourceDefinition","objectType","properties","baseDatasource","datasources","find","ds","includes","type","window","retentionPeriod","retentionPolicy","time","none","propertyMapping","Object","fromEntries","map","prop","apiName","streamV2","streamLocator","propertySecurityGroups","undefined","restrictedViewV2","restrictedViewRid","buildPropertyMapping","datasetV2","datasetRid","direct","directSourceRid","convertPropertySecurityGroups","primaryKeyPropertyApiName","some","objectSecurityPolicy","datasetV3","branchId","groups","rid","security","granular","viewPolicy","granularPolicyCondition","and","conditions","additionalMandatory","markings","assumedMarkings","primaryKey","validPropertyNames","Set","usedProperties","forEach","psg","propertyName","has","process","env","NODE_ENV","name","add","objectSecurityPolicyGroup","convertGranularPolicy","granularPolicy","additionalMandatoryMarkings","filter","property","convertSecurityCondition","condition","c","or","comparison","operator","left","userProperty","groupIds","right","constant","strings","editOnly","structMapping","struct","column","mapping","keys","structDefinition","fieldName","mappings"],"sources":["convertDatasourceDefinition.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 MarkingType,\n OntologyIrObjectTypeDatasourceDefinition,\n OntologyIrPropertySecurityGroup,\n OntologyIrPropertySecurityGroups,\n OntologyIrSecurityGroupGranularCondition,\n OntologyIrSecurityGroupGranularSecurityDefinition,\n PropertyTypeMappingInfo,\n RetentionPolicy,\n} from \"@osdk/client.unstable\";\nimport invariant from \"tiny-invariant\";\nimport type { ObjectPropertyType } from \"../../api/object/ObjectPropertyType.js\";\nimport type { ObjectType } from \"../../api/object/ObjectType.js\";\nimport type {\n ObjectTypeDatasourceDefinition_dataset,\n ObjectTypeDatasourceDefinition_direct,\n} from \"../../api/object/ObjectTypeDatasourceDefinition.js\";\nimport type { SecurityConditionDefinition } from \"../../api/object/SecurityCondition.js\";\n\nexport function convertDatasourceDefinition(\n objectType: ObjectType,\n properties: ObjectPropertyType[],\n): OntologyIrObjectTypeDatasourceDefinition {\n const baseDatasource = objectType.datasources?.find(ds =>\n [\"dataset\", \"stream\", \"restrictedView\", \"direct\"].includes(ds.type)\n );\n switch (baseDatasource?.type) {\n case \"stream\":\n const window = baseDatasource.retentionPeriod;\n const retentionPolicy: RetentionPolicy = window\n ? { type: \"time\", time: { window } }\n : { type: \"none\", none: {} };\n const propertyMapping = Object.fromEntries(\n properties.map((\n prop,\n ) => [prop.apiName, prop.apiName]),\n );\n return {\n type: \"streamV2\",\n streamV2: {\n streamLocator: objectType.apiName,\n propertyMapping,\n retentionPolicy,\n propertySecurityGroups: undefined,\n },\n };\n case \"restrictedView\":\n return {\n type: \"restrictedViewV2\",\n restrictedViewV2: {\n restrictedViewRid: objectType.apiName,\n propertyMapping: buildPropertyMapping(properties),\n },\n };\n case \"derived\":\n return {\n type: \"datasetV2\",\n datasetV2: {\n datasetRid: objectType.apiName,\n propertyMapping: buildPropertyMapping(properties),\n },\n };\n case \"direct\":\n return {\n type: \"direct\",\n direct: {\n directSourceRid: objectType.apiName,\n propertyMapping: buildPropertyMapping(properties),\n propertySecurityGroups: convertPropertySecurityGroups(\n baseDatasource,\n properties,\n objectType.primaryKeyPropertyApiName,\n ),\n },\n };\n case \"dataset\":\n default:\n if (\n objectType.properties?.some(prop =>\n typeof prop.type === \"object\" && prop.type.type === \"marking\"\n )\n || baseDatasource?.objectSecurityPolicy\n || baseDatasource?.propertySecurityGroups\n ) {\n return {\n type: \"datasetV3\",\n datasetV3: {\n datasetRid: objectType.apiName,\n propertyMapping: buildPropertyMapping(properties),\n branchId: \"master\",\n propertySecurityGroups: convertPropertySecurityGroups(\n baseDatasource,\n properties,\n objectType.primaryKeyPropertyApiName,\n ),\n },\n };\n }\n return {\n type: \"datasetV2\",\n datasetV2: {\n datasetRid: objectType.apiName,\n propertyMapping: buildPropertyMapping(properties),\n },\n };\n }\n}\n\nfunction convertPropertySecurityGroups(\n ds:\n | ObjectTypeDatasourceDefinition_dataset\n | ObjectTypeDatasourceDefinition_direct\n | undefined,\n properties: ObjectPropertyType[],\n primaryKeyPropertyApiName: string,\n): OntologyIrPropertySecurityGroups {\n if (\n !ds\n || (!(\"objectSecurityPolicy\" in ds) && !(\"propertySecurityGroups\" in ds))\n ) {\n return {\n groups: [\n {\n properties: properties.map(prop => prop.apiName),\n rid: \"defaultObjectSecurityPolicy\",\n security: {\n type: \"granular\",\n granular: {\n viewPolicy: {\n granularPolicyCondition: {\n type: \"and\",\n and: {\n conditions: [],\n },\n },\n additionalMandatory: {\n markings: {},\n assumedMarkings: [],\n },\n },\n },\n },\n type: {\n type: \"primaryKey\",\n primaryKey: {},\n },\n },\n ],\n };\n }\n\n const validPropertyNames = new Set(properties.map(prop => prop.apiName));\n const usedProperties = new Set();\n\n ds.propertySecurityGroups?.forEach(psg => {\n psg.properties.forEach(propertyName => {\n invariant(\n validPropertyNames.has(propertyName),\n `Property \"${propertyName}\" in property security group ${psg.name} does not exist in the properties list`,\n );\n invariant(\n !usedProperties.has(propertyName),\n `Property \"${propertyName}\" is used in multiple property security groups`,\n );\n invariant(\n propertyName !== primaryKeyPropertyApiName,\n `Property \"${propertyName}\" in property security group ${psg.name} cannot be the primary key`,\n );\n usedProperties.add(propertyName);\n });\n });\n\n const objectSecurityPolicyGroup: OntologyIrPropertySecurityGroup = {\n rid: ds.objectSecurityPolicy?.name || \"defaultObjectSecurityPolicy\",\n security: {\n type: \"granular\",\n granular: convertGranularPolicy(\n ds.objectSecurityPolicy?.granularPolicy,\n ds.objectSecurityPolicy?.additionalMandatoryMarkings,\n ),\n },\n type: {\n type: \"primaryKey\",\n primaryKey: {},\n },\n properties: properties\n .filter(prop => !usedProperties.has(prop.apiName))\n .map(prop => prop.apiName),\n };\n\n return {\n groups: [\n objectSecurityPolicyGroup,\n ...(ds.propertySecurityGroups?.map(psg => ({\n rid: psg.name,\n security: {\n type: \"granular\" as const,\n granular: convertGranularPolicy(\n psg.granularPolicy,\n psg.additionalMandatoryMarkings,\n ),\n },\n type: {\n type: \"property\" as const,\n property: {\n name: psg.name,\n },\n },\n properties: psg.properties ?? [],\n })) ?? []),\n ],\n };\n}\n\nfunction convertGranularPolicy(\n granularPolicy?: SecurityConditionDefinition,\n additionalMandatoryMarkings?: Record<string, MarkingType>,\n): OntologyIrSecurityGroupGranularSecurityDefinition {\n return {\n viewPolicy: {\n granularPolicyCondition: granularPolicy\n ? convertSecurityCondition(granularPolicy)\n : {\n type: \"and\",\n and: {\n conditions: [],\n },\n },\n additionalMandatory: {\n markings: additionalMandatoryMarkings ?? {},\n assumedMarkings: [],\n },\n },\n };\n}\n\nfunction convertSecurityCondition(\n condition: SecurityConditionDefinition,\n): OntologyIrSecurityGroupGranularCondition {\n switch (condition.type) {\n case \"and\":\n if (\"conditions\" in condition) {\n return {\n type: \"and\",\n and: {\n conditions: condition.conditions.map(c =>\n convertSecurityCondition(c)\n ),\n },\n };\n } else {\n return condition;\n }\n case \"or\":\n if (\"conditions\" in condition) {\n return {\n type: \"or\",\n or: {\n conditions: condition.conditions.map(c =>\n convertSecurityCondition(c)\n ),\n },\n };\n } else {\n return condition;\n }\n case \"markingProperty\":\n return {\n type: \"markings\",\n markings: {\n property: condition.property,\n },\n };\n case \"groupProperty\":\n return {\n type: \"comparison\",\n comparison: {\n operator: \"INTERSECTS\",\n left: {\n type: \"userProperty\",\n userProperty: {\n type: \"groupIds\",\n groupIds: {},\n },\n },\n right: {\n type: \"property\",\n property: condition.property,\n },\n },\n };\n case \"group\":\n return {\n type: \"comparison\",\n comparison: {\n operator: \"INTERSECTS\",\n left: {\n type: \"userProperty\",\n userProperty: {\n type: \"groupIds\",\n groupIds: {},\n },\n },\n right: {\n type: \"constant\",\n constant: {\n type: \"strings\",\n strings: [\n condition.name,\n ],\n },\n },\n },\n };\n\n default:\n return condition;\n }\n}\n\nfunction buildPropertyMapping(\n properties: ObjectPropertyType[],\n): Record<string, PropertyTypeMappingInfo> {\n return Object.fromEntries(\n properties.map((prop) => {\n // editOnly\n if (prop.editOnly) {\n return [prop.apiName, { type: \"editOnly\", editOnly: {} }];\n }\n // structs\n if (typeof prop.type === \"object\" && prop.type?.type === \"struct\") {\n const structMapping = {\n type: \"struct\",\n struct: {\n column: prop.apiName,\n mapping: Object.fromEntries(\n Object.keys(prop.type.structDefinition).map((fieldName) => [\n fieldName,\n { apiName: fieldName, mappings: {} },\n ]),\n ),\n },\n };\n return [prop.apiName, structMapping];\n }\n // default: column mapping\n return [prop.apiName, { type: \"column\", column: prop.apiName }];\n }),\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA,OAAOA,SAAS,MAAM,gBAAgB;AAStC,OAAO,SAASC,2BAA2BA,CACzCC,UAAsB,EACtBC,UAAgC,EACU;EAC1C,MAAMC,cAAc,GAAGF,UAAU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,CAAC;IACtC;IACA;IACA,OAAO,CAAC9D,IAAI,CAACC,OAAO,EAAE;MAAEX,IAAI,EAAE,QAAQ;MAAE0E,MAAM,EAAEhE,IAAI,CAACC;IAAQ,CAAC,CAAC;EACjE,CAAC,CACH,CAAC;AACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"convertDatasourceDefinition.js","names":["invariant","convertDatasourceDefinition","objectType","properties","baseDatasource","datasources","find","ds","includes","type","window","retentionPeriod","retentionPolicy","time","none","propertyMapping","Object","fromEntries","map","prop","apiName","streamV2","streamLocator","propertySecurityGroups","undefined","restrictedViewV2","restrictedViewRid","buildPropertyMapping","datasetV2","datasetRid","direct","directSourceRid","convertPropertySecurityGroups","primaryKeyPropertyApiName","some","objectSecurityPolicy","datasetV3","branchId","groups","rid","security","granular","viewPolicy","granularPolicyCondition","and","conditions","additionalMandatory","markings","assumedMarkingsV2","assumedMarkings","primaryKey","validPropertyNames","Set","usedProperties","forEach","psg","propertyName","has","process","env","NODE_ENV","name","add","objectSecurityPolicyGroup","convertGranularPolicy","granularPolicy","appliedMarkings","filter","property","convertSecurityCondition","condition","c","or","comparison","operator","left","userProperty","groupIds","right","constant","strings","editOnly","structMapping","struct","column","mapping","keys","structDefinition","fieldName","mappings"],"sources":["convertDatasourceDefinition.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 MarkingType,\n OntologyIrObjectTypeDatasourceDefinition,\n OntologyIrPropertySecurityGroup,\n OntologyIrPropertySecurityGroups,\n OntologyIrSecurityGroupGranularCondition,\n OntologyIrSecurityGroupGranularSecurityDefinition,\n PropertyTypeMappingInfo,\n RetentionPolicy,\n} from \"@osdk/client.unstable\";\nimport invariant from \"tiny-invariant\";\nimport type { ObjectPropertyType } from \"../../api/object/ObjectPropertyType.js\";\nimport type { ObjectType } from \"../../api/object/ObjectType.js\";\nimport type {\n ObjectTypeDatasourceDefinition_dataset,\n ObjectTypeDatasourceDefinition_direct,\n} from \"../../api/object/ObjectTypeDatasourceDefinition.js\";\nimport type { SecurityConditionDefinition } from \"../../api/object/SecurityCondition.js\";\n\nexport function convertDatasourceDefinition(\n objectType: ObjectType,\n properties: ObjectPropertyType[],\n): OntologyIrObjectTypeDatasourceDefinition {\n const baseDatasource = objectType.datasources?.find(ds =>\n [\"dataset\", \"stream\", \"restrictedView\", \"direct\"].includes(ds.type)\n );\n switch (baseDatasource?.type) {\n case \"stream\":\n const window = baseDatasource.retentionPeriod;\n const retentionPolicy: RetentionPolicy = window\n ? { type: \"time\", time: { window } }\n : { type: \"none\", none: {} };\n const propertyMapping = Object.fromEntries(\n properties.map((\n prop,\n ) => [prop.apiName, prop.apiName]),\n );\n return {\n type: \"streamV2\",\n streamV2: {\n streamLocator: objectType.apiName,\n propertyMapping,\n retentionPolicy,\n propertySecurityGroups: undefined,\n },\n };\n case \"restrictedView\":\n return {\n type: \"restrictedViewV2\",\n restrictedViewV2: {\n restrictedViewRid: objectType.apiName,\n propertyMapping: buildPropertyMapping(properties),\n },\n };\n case \"derived\":\n return {\n type: \"datasetV2\",\n datasetV2: {\n datasetRid: objectType.apiName,\n propertyMapping: buildPropertyMapping(properties),\n },\n };\n case \"direct\":\n return {\n type: \"direct\",\n direct: {\n directSourceRid: objectType.apiName,\n propertyMapping: buildPropertyMapping(properties),\n propertySecurityGroups: convertPropertySecurityGroups(\n baseDatasource,\n properties,\n objectType.primaryKeyPropertyApiName,\n ),\n },\n };\n case \"dataset\":\n default:\n if (\n objectType.properties?.some(prop =>\n typeof prop.type === \"object\" && prop.type.type === \"marking\"\n )\n || baseDatasource?.objectSecurityPolicy\n || baseDatasource?.propertySecurityGroups\n ) {\n return {\n type: \"datasetV3\",\n datasetV3: {\n datasetRid: objectType.apiName,\n propertyMapping: buildPropertyMapping(properties),\n branchId: \"master\",\n propertySecurityGroups: convertPropertySecurityGroups(\n baseDatasource,\n properties,\n objectType.primaryKeyPropertyApiName,\n ),\n },\n };\n }\n return {\n type: \"datasetV2\",\n datasetV2: {\n datasetRid: objectType.apiName,\n propertyMapping: buildPropertyMapping(properties),\n },\n };\n }\n}\n\nfunction convertPropertySecurityGroups(\n ds:\n | ObjectTypeDatasourceDefinition_dataset\n | ObjectTypeDatasourceDefinition_direct\n | undefined,\n properties: ObjectPropertyType[],\n primaryKeyPropertyApiName: string,\n): OntologyIrPropertySecurityGroups {\n if (\n !ds\n || (!(\"objectSecurityPolicy\" in ds) && !(\"propertySecurityGroups\" in ds))\n ) {\n return {\n groups: [\n {\n properties: properties.map(prop => prop.apiName),\n rid: \"defaultObjectSecurityPolicy\",\n security: {\n type: \"granular\",\n granular: {\n viewPolicy: {\n granularPolicyCondition: {\n type: \"and\",\n and: {\n conditions: [],\n },\n },\n additionalMandatory: {\n markings: {},\n assumedMarkingsV2: {},\n assumedMarkings: [],\n },\n },\n },\n },\n type: {\n type: \"primaryKey\",\n primaryKey: {},\n },\n },\n ],\n };\n }\n\n const validPropertyNames = new Set(properties.map(prop => prop.apiName));\n const usedProperties = new Set();\n\n ds.propertySecurityGroups?.forEach(psg => {\n psg.properties.forEach(propertyName => {\n invariant(\n validPropertyNames.has(propertyName),\n `Property \"${propertyName}\" in property security group ${psg.name} does not exist in the properties list`,\n );\n invariant(\n !usedProperties.has(propertyName),\n `Property \"${propertyName}\" is used in multiple property security groups`,\n );\n invariant(\n propertyName !== primaryKeyPropertyApiName,\n `Property \"${propertyName}\" in property security group ${psg.name} cannot be the primary key`,\n );\n usedProperties.add(propertyName);\n });\n });\n\n const objectSecurityPolicyGroup: OntologyIrPropertySecurityGroup = {\n rid: ds.objectSecurityPolicy?.name || \"defaultObjectSecurityPolicy\",\n security: {\n type: \"granular\",\n granular: convertGranularPolicy(\n ds.objectSecurityPolicy?.granularPolicy,\n ds.objectSecurityPolicy?.appliedMarkings,\n ds.objectSecurityPolicy?.assumedMarkings,\n ),\n },\n type: {\n type: \"primaryKey\",\n primaryKey: {},\n },\n properties: properties\n .filter(prop => !usedProperties.has(prop.apiName))\n .map(prop => prop.apiName),\n };\n\n return {\n groups: [\n objectSecurityPolicyGroup,\n ...(ds.propertySecurityGroups?.map(psg => ({\n rid: psg.name,\n security: {\n type: \"granular\" as const,\n granular: convertGranularPolicy(\n psg.granularPolicy,\n psg.appliedMarkings,\n psg.assumedMarkings,\n ),\n },\n type: {\n type: \"property\" as const,\n property: {\n name: psg.name,\n },\n },\n properties: psg.properties ?? [],\n })) ?? []),\n ],\n };\n}\n\nfunction convertGranularPolicy(\n granularPolicy?: SecurityConditionDefinition,\n appliedMarkings?: Record<string, MarkingType>,\n assumedMarkings?: Record<string, MarkingType>,\n): OntologyIrSecurityGroupGranularSecurityDefinition {\n return {\n viewPolicy: {\n granularPolicyCondition: granularPolicy\n ? convertSecurityCondition(granularPolicy)\n : {\n type: \"and\",\n and: {\n conditions: [],\n },\n },\n additionalMandatory: {\n markings: appliedMarkings ?? {},\n assumedMarkings: [],\n assumedMarkingsV2: assumedMarkings ?? {},\n },\n },\n };\n}\n\nfunction convertSecurityCondition(\n condition: SecurityConditionDefinition,\n): OntologyIrSecurityGroupGranularCondition {\n switch (condition.type) {\n case \"and\":\n if (\"conditions\" in condition) {\n return {\n type: \"and\",\n and: {\n conditions: condition.conditions.map(c =>\n convertSecurityCondition(c)\n ),\n },\n };\n } else {\n return condition;\n }\n case \"or\":\n if (\"conditions\" in condition) {\n return {\n type: \"or\",\n or: {\n conditions: condition.conditions.map(c =>\n convertSecurityCondition(c)\n ),\n },\n };\n } else {\n return condition;\n }\n case \"markingProperty\":\n return {\n type: \"markings\",\n markings: {\n property: condition.property,\n },\n };\n case \"groupProperty\":\n return {\n type: \"comparison\",\n comparison: {\n operator: \"INTERSECTS\",\n left: {\n type: \"userProperty\",\n userProperty: {\n type: \"groupIds\",\n groupIds: {},\n },\n },\n right: {\n type: \"property\",\n property: condition.property,\n },\n },\n };\n case \"group\":\n return {\n type: \"comparison\",\n comparison: {\n operator: \"INTERSECTS\",\n left: {\n type: \"userProperty\",\n userProperty: {\n type: \"groupIds\",\n groupIds: {},\n },\n },\n right: {\n type: \"constant\",\n constant: {\n type: \"strings\",\n strings: [\n condition.name,\n ],\n },\n },\n },\n };\n\n default:\n return condition;\n }\n}\n\nfunction buildPropertyMapping(\n properties: ObjectPropertyType[],\n): Record<string, PropertyTypeMappingInfo> {\n return Object.fromEntries(\n properties.map((prop) => {\n // editOnly\n if (prop.editOnly) {\n return [prop.apiName, { type: \"editOnly\", editOnly: {} }];\n }\n // structs\n if (typeof prop.type === \"object\" && prop.type?.type === \"struct\") {\n const structMapping = {\n type: \"struct\",\n struct: {\n column: prop.apiName,\n mapping: Object.fromEntries(\n Object.keys(prop.type.structDefinition).map((fieldName) => [\n fieldName,\n { apiName: fieldName, mappings: {} },\n ]),\n ),\n },\n };\n return [prop.apiName, structMapping];\n }\n // default: column mapping\n return [prop.apiName, { type: \"column\", column: prop.apiName }];\n }),\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA,OAAOA,SAAS,MAAM,gBAAgB;AAStC,OAAO,SAASC,2BAA2BA,CACzCC,UAAsB,EACtBC,UAAgC,EACU;EAC1C,MAAMC,cAAc,GAAGF,UAAU,CAACG,WAAW,EAAEC,IAAI,CAACC,EAAE,IACpD,CAAC,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,CAAC,CAACC,QAAQ,CAACD,EAAE,CAACE,IAAI,CACpE,CAAC;EACD,QAAQL,cAAc,EAAEK,IAAI;IAC1B,KAAK,QAAQ;MAC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AO,EAAE;MAAEX,IAAI,EAAE,QAAQ;MAAE2E,MAAM,EAAEjE,IAAI,CAACC;IAAQ,CAAC,CAAC;EACjE,CAAC,CACH,CAAC;AACH","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,QA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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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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";
|
|
@@ -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,yCACA;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":"eAwDe,SAAe,KAC5BA,kBACC","names":["args: string[]"],"sources":["../../../src/cli/main.ts"],"version":3,"file":"main.d.ts"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { default } from "./cli/main.js";
|
|
2
|
-
export type { ActionParameterValidation } from "./api/action/ActionParameter.js";
|
|
2
|
+
export type { ActionParameter, ActionParameterValidation } from "./api/action/ActionParameter.js";
|
|
3
3
|
export type { ActionParameterAllowedValues } from "./api/action/ActionParameterAllowedValues.js";
|
|
4
4
|
export type { ActionParameterConditionalOverride } from "./api/action/ActionParameterConditionalOverride.js";
|
|
5
|
-
export type { ActionParameterConfiguration } from "./api/action/ActionParameterConfiguration.js";
|
|
5
|
+
export type { ActionParameterConfiguration, ActionParameterRequirementConstraint } from "./api/action/ActionParameterConfiguration.js";
|
|
6
6
|
export type { ActionSection } from "./api/action/ActionSection.js";
|
|
7
7
|
export type { ActionType } from "./api/action/ActionType.js";
|
|
8
8
|
export type { ConditionDefinition } from "./api/action/ConditionDefinition.js";
|
|
@@ -10,6 +10,7 @@ export type { CurrentTimeMappingValue, CurrentUserMappingValue, CustomMapping, M
|
|
|
10
10
|
export type { SectionConditionalOverride } from "./api/action/SectionConditionalOverride.js";
|
|
11
11
|
export type { SubmissionMetadata } from "./api/action/SubmissionMetadata.js";
|
|
12
12
|
export { addDependency } from "./api/addDependency.js";
|
|
13
|
+
export type { OntologyDefinition } from "./api/common/OntologyDefinition.js";
|
|
13
14
|
export { OntologyEntityTypeEnum } from "./api/common/OntologyEntityTypeEnum.js";
|
|
14
15
|
export { CREATE_INTERFACE_OBJECT_PARAMETER, CREATE_OR_MODIFY_OBJECT_PARAMETER, defineAction, DELETE_OBJECT_PARAMETER, MODIFY_INTERFACE_OBJECT_PARAMETER, MODIFY_OBJECT_PARAMETER } from "./api/defineAction.js";
|
|
15
16
|
export { defineCreateInterfaceObjectAction } from "./api/defineCreateInterfaceObjectAction.js";
|
|
@@ -22,19 +23,26 @@ export { defineInterfaceLinkConstraint } from "./api/defineInterfaceLinkConstrai
|
|
|
22
23
|
export { defineLink } from "./api/defineLink.js";
|
|
23
24
|
export { defineModifyInterfaceObjectAction } from "./api/defineModifyInterfaceObjectAction.js";
|
|
24
25
|
export { defineModifyObjectAction } from "./api/defineModifyObjectAction.js";
|
|
25
|
-
export { convertToPluralDisplayName, defineObject, uppercaseFirstLetter as convertToDisplayName } from "./api/defineObject.js";
|
|
26
|
-
export { addNamespaceIfNone, defineOntology, dumpOntologyFullMetadata } from "./api/defineOntology.js";
|
|
26
|
+
export { convertToPluralDisplayName, defineObject, uppercaseFirstLetter, uppercaseFirstLetter as convertToDisplayName } from "./api/defineObject.js";
|
|
27
|
+
export { addNamespaceIfNone, cleanAndValidateLinkTypeId, convertObjectStatus, defineOntology, dumpOntologyFullMetadata, extractNamespace, getImportedTypes, getNamespace, getOntologyDefinition, initializeOntologyState, withoutNamespace } from "./api/defineOntology.js";
|
|
27
28
|
export { defineSharedPropertyType } from "./api/defineSpt.js";
|
|
28
29
|
export { defineValueType } from "./api/defineValueType.js";
|
|
29
30
|
export { importOntologyEntity } from "./api/importOntologyEntity.js";
|
|
30
31
|
export { importSharedPropertyType } from "./api/importSharedPropertyType.js";
|
|
31
|
-
export type { InterfaceDefinedProperty } from "./api/interface/InterfacePropertyType.js";
|
|
32
|
+
export type { InterfaceDefinedProperty, InterfacePropertyType } from "./api/interface/InterfacePropertyType.js";
|
|
33
|
+
export { isInterfaceSharedPropertyType } from "./api/interface/InterfacePropertyType.js";
|
|
32
34
|
export type { InterfaceType } from "./api/interface/InterfaceType.js";
|
|
33
|
-
export type { LinkType } from "./api/links/LinkType.js";
|
|
35
|
+
export type { LinkType, OneToManyLinkTypeDefinition, UserLinkTypeStatus } from "./api/links/LinkType.js";
|
|
34
36
|
export type { ObjectPropertyType } from "./api/object/ObjectPropertyType.js";
|
|
35
37
|
export type { ObjectType } from "./api/object/ObjectType.js";
|
|
38
|
+
export type { DerivedPropertyAggregation, ObjectTypeDatasourceDefinition_dataset, ObjectTypeDatasourceDefinition_derived, ObjectTypeDatasourceDefinition_direct } from "./api/object/ObjectTypeDatasourceDefinition.js";
|
|
39
|
+
export type { ObjectTypeDefinition } from "./api/object/ObjectTypeDefinition.js";
|
|
40
|
+
export type { SecurityConditionDefinition } from "./api/object/SecurityCondition.js";
|
|
41
|
+
export type { Nullability } from "./api/properties/Nullability.js";
|
|
36
42
|
export type { PropertyTypeType } from "./api/properties/PropertyTypeType.js";
|
|
43
|
+
export { isExotic } from "./api/properties/PropertyTypeType.js";
|
|
37
44
|
export type { SharedPropertyType } from "./api/properties/SharedPropertyType.js";
|
|
45
|
+
export { defaultTypeClasses, getPropertyTypeName, hasRenderHints, shouldBeIndexedForSearch, shouldNotHaveRenderHints } from "./api/propertyConversionUtils.js";
|
|
38
46
|
export type { ValueTypeDefinitionVersion } from "./api/values/ValueTypeDefinitionVersion.js";
|
|
39
47
|
export { wrapWithProxy } from "./api/wrapWithProxy.js";
|
|
40
48
|
export { propertyTypeTypeToOntologyIrType as convertType } from "./conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,SAAS,eAA0B;AAEnC,
|
|
1
|
+
{"mappings":"AAgBA,SAAS,eAA0B;AAEnC,cACE,iBACA,iCACK;AACP,cACE,oCACK;AACP,cAAc,0CAA0C;AACxD,cACE,8BACA,4CACK;AACP,cAAc,qBAAqB;AACnC,cAAc,kBAAkB;AAChC,cAAc,2BAA2B;AACzC,cACE,yBACA,yBACA,eACA,cACA,wBACK;AACP,cAAc,kCAAkC;AAChD,cAAc,0BAA0B;AACxC,SAAS,qBAAqB;AAC9B,cAAc,0BAA0B;AACxC,SAAS,8BAA8B;AACvC,SACE,mCACA,mCACA,cACA,yBACA,mCACA,+BACK;AACP,SAAS,yCAAyC;AAClD,SAAS,gCAAgC;AACzC,SAAS,wCAAwC;AACjD,SAAS,yCAAyC;AAClD,SAAS,gCAAgC;AACzC,SAAS,uBAAuB;AAChC,SAAS,qCAAqC;AAC9C,SAAS,kBAAkB;AAC3B,SAAS,yCAAyC;AAClD,SAAS,gCAAgC;AACzC,SACE,4BACA,cACA,sBACA,wBAAwB,4BACnB;AACP,SACE,oBACA,4BACA,qBACA,gBACA,0BACA,kBACA,kBACA,cACA,uBACA,yBACA,wBACK;AACP,SAAS,gCAAgC;AACzC,SAAS,uBAAuB;AAChC,SAAS,4BAA4B;AACrC,SAAS,gCAAgC;AACzC,cACE,0BACA,6BACK;AACP,SAAS,qCAAqC;AAC9C,cAAc,qBAAqB;AACnC,cACE,UACA,6BACA,0BACK;AACP,cAAc,0BAA0B;AACxC,cAAc,kBAAkB;AAChC,cACE,4BACA,wCACA,wCACA,6CACK;AACP,cAAc,4BAA4B;AAC1C,cAAc,mCAAmC;AACjD,cAAc,mBAAmB;AACjC,cAAc,wBAAwB;AACtC,SAAS,gBAAgB;AACzB,cAAc,0BAA0B;AACxC,SACE,oBACA,qBACA,gBACA,0BACA,gCACK;AACP,cAAc,kCAAkC;AAChD,SAAS,qBAAqB;AAC9B,SAAS,oCAAoC,mBAAmB","names":[],"sources":["../../src/index.ts"],"version":3,"file":"index.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/maker",
|
|
3
|
-
"version": "0.16.0-beta.
|
|
3
|
+
"version": "0.16.0-beta.7",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,13 +29,15 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@osdk/typescript-sdk-docs": "^0.2.0",
|
|
31
31
|
"consola": "^3.4.2",
|
|
32
|
+
"execa": "^9.6.0",
|
|
32
33
|
"jiti": "^2.5.1",
|
|
33
34
|
"mustache": "^4.2.0",
|
|
34
35
|
"semver-ts": "^1.0.3",
|
|
35
36
|
"tiny-invariant": "^1.3.3",
|
|
36
37
|
"ts-node": "^10.9.2",
|
|
37
38
|
"yargs": "^17.7.2",
|
|
38
|
-
"@osdk/api": "~2.8.0-beta.
|
|
39
|
+
"@osdk/api": "~2.8.0-beta.11",
|
|
40
|
+
"@osdk/generator-converters.ontologyir": "~2.8.0-beta.11"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
41
43
|
"@types/mustache": "^4.2.6",
|
|
@@ -43,9 +45,9 @@
|
|
|
43
45
|
"@types/yargs": "^17.0.33",
|
|
44
46
|
"typescript": "~5.5.4",
|
|
45
47
|
"vitest": "^3.2.4",
|
|
46
|
-
"@osdk/
|
|
47
|
-
"@osdk/
|
|
48
|
-
"@osdk/monorepo.
|
|
48
|
+
"@osdk/client.unstable": "~2.8.0-beta.11",
|
|
49
|
+
"@osdk/monorepo.api-extractor": "~0.7.0-beta.1",
|
|
50
|
+
"@osdk/monorepo.tsconfig": "~0.7.0-beta.1"
|
|
49
51
|
},
|
|
50
52
|
"publishConfig": {
|
|
51
53
|
"access": "public"
|