@api-client/core 0.13.6 → 0.14.1
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/build/src/amf/AmfTypes.d.ts +1 -1
- package/build/src/amf/AmfTypes.js +1 -1
- package/build/src/amf/AmfTypes.js.map +1 -1
- package/build/src/amf/Utils.d.ts +0 -6
- package/build/src/amf/Utils.d.ts.map +1 -1
- package/build/src/amf/Utils.js +0 -14
- package/build/src/amf/Utils.js.map +1 -1
- package/build/src/browser.d.ts +1 -0
- package/build/src/browser.d.ts.map +1 -1
- package/build/src/browser.js +1 -0
- package/build/src/browser.js.map +1 -1
- package/build/src/index.d.ts +1 -0
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +1 -0
- package/build/src/index.js.map +1 -1
- package/build/src/legacy.d.ts +0 -8
- package/build/src/legacy.d.ts.map +1 -1
- package/build/src/legacy.js +0 -9
- package/build/src/legacy.js.map +1 -1
- package/build/src/modeling/Bindings.d.ts +1 -1
- package/build/src/modeling/Bindings.js.map +1 -1
- package/build/src/modeling/DataDomain.js +2 -2
- package/build/src/modeling/DataDomain.js.map +1 -1
- package/build/src/modeling/DataFormat.d.ts +0 -40
- package/build/src/modeling/DataFormat.d.ts.map +1 -1
- package/build/src/modeling/DataFormat.js +0 -27
- package/build/src/modeling/DataFormat.js.map +1 -1
- package/build/src/modeling/DomainAssociation.d.ts +28 -0
- package/build/src/modeling/DomainAssociation.d.ts.map +1 -1
- package/build/src/modeling/DomainAssociation.js +73 -4
- package/build/src/modeling/DomainAssociation.js.map +1 -1
- package/build/src/modeling/DomainEntity.d.ts +25 -9
- package/build/src/modeling/DomainEntity.d.ts.map +1 -1
- package/build/src/modeling/DomainEntity.js +65 -21
- package/build/src/modeling/DomainEntity.js.map +1 -1
- package/build/src/modeling/DomainFile.d.ts +3 -4
- package/build/src/modeling/DomainFile.d.ts.map +1 -1
- package/build/src/modeling/DomainFile.js +5 -9
- package/build/src/modeling/DomainFile.js.map +1 -1
- package/build/src/modeling/DomainImpactAnalysis.d.ts +1 -1
- package/build/src/modeling/DomainImpactAnalysis.d.ts.map +1 -1
- package/build/src/modeling/DomainImpactAnalysis.js +3 -3
- package/build/src/modeling/DomainImpactAnalysis.js.map +1 -1
- package/build/src/modeling/DomainModel.d.ts +2 -2
- package/build/src/modeling/DomainModel.js +2 -2
- package/build/src/modeling/DomainModel.js.map +1 -1
- package/build/src/modeling/DomainProperty.d.ts +28 -12
- package/build/src/modeling/DomainProperty.d.ts.map +1 -1
- package/build/src/modeling/DomainProperty.js +61 -26
- package/build/src/modeling/DomainProperty.js.map +1 -1
- package/build/src/modeling/Semantics.d.ts +109 -0
- package/build/src/modeling/Semantics.d.ts.map +1 -0
- package/build/src/modeling/Semantics.js +97 -0
- package/build/src/modeling/Semantics.js.map +1 -0
- package/build/src/models/CertificateFile.d.ts +2 -3
- package/build/src/models/CertificateFile.d.ts.map +1 -1
- package/build/src/models/CertificateFile.js +4 -8
- package/build/src/models/CertificateFile.js.map +1 -1
- package/build/src/models/Folder.d.ts +1 -2
- package/build/src/models/Folder.d.ts.map +1 -1
- package/build/src/models/Folder.js +2 -4
- package/build/src/models/Folder.js.map +1 -1
- package/build/src/models/Project.d.ts +2 -3
- package/build/src/models/Project.d.ts.map +1 -1
- package/build/src/models/Project.js +4 -8
- package/build/src/models/Project.js.map +1 -1
- package/build/src/models/kinds.d.ts +0 -24
- package/build/src/models/kinds.d.ts.map +1 -1
- package/build/src/models/kinds.js +0 -24
- package/build/src/models/kinds.js.map +1 -1
- package/build/src/models/store/File.d.ts +1 -21
- package/build/src/models/store/File.d.ts.map +1 -1
- package/build/src/models/store/File.js +3 -23
- package/build/src/models/store/File.js.map +1 -1
- package/build/src/models/store/data_catalog.d.ts +1 -1
- package/build/src/models/store/data_catalog.js.map +1 -1
- package/build/src/sdk/FilesSdk.js +1 -1
- package/build/src/sdk/FilesSdk.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/data/models/example-generator-api.json +22 -22
- package/eslint.config.js +1 -0
- package/package.json +5 -5
- package/src/amf/AmfTypes.ts +1 -1
- package/src/amf/Utils.ts +0 -15
- package/src/modeling/Bindings.ts +1 -1
- package/src/modeling/DataDomain.ts +2 -2
- package/src/modeling/DataFormat.ts +0 -48
- package/src/modeling/DomainAssociation.ts +66 -3
- package/src/modeling/DomainEntity.ts +56 -17
- package/src/modeling/DomainFile.ts +5 -9
- package/src/modeling/DomainImpactAnalysis.ts +3 -3
- package/src/modeling/DomainModel.ts +2 -2
- package/src/modeling/DomainProperty.ts +60 -21
- package/src/modeling/Semantics.ts +178 -0
- package/src/modeling/graph.md +14 -14
- package/src/modeling/readme.md +29 -29
- package/src/models/CertificateFile.ts +4 -12
- package/src/models/Folder.ts +2 -4
- package/src/models/Project.ts +4 -8
- package/src/models/kinds.ts +0 -25
- package/src/models/store/File.ts +4 -35
- package/src/models/store/data_catalog.ts +1 -1
- package/src/sdk/FilesSdk.ts +1 -1
- package/tests/unit/modeling/data_domain_change_observers.spec.ts +11 -10
- package/tests/unit/modeling/data_domain_entities.spec.ts +129 -1
- package/tests/unit/modeling/data_domain_property.spec.ts +1 -1
- package/tests/unit/modeling/domain_asociation.spec.ts +177 -0
- package/tests/unit/modeling/domain_entity.spec.ts +27 -26
- package/tests/unit/modeling/domain_entity_example_generator_json.spec.ts +11 -11
- package/tests/unit/modeling/domain_entity_example_generator_xml.spec.ts +10 -10
- package/tests/unit/modeling/domain_file.spec.ts +4 -27
- package/tests/unit/modeling/{domain.property.spec.ts → domain_property.spec.ts} +139 -23
- package/tests/unit/models/Certificate/from_name.spec.ts +3 -15
- package/tests/unit/models/File/constructor.spec.ts +0 -1
- package/tests/unit/models/File/new.spec.ts +0 -13
- package/tests/unit/models/File/shortcutTo.spec.ts +1 -2
- package/tests/unit/models/File/toJSON.spec.ts +0 -13
- package/tests/unit/models/File/updateByMeMeta.spec.ts +4 -6
- package/tests/unit/models/Folder/create.spec.ts +2 -23
- package/tests/unit/models/Project/create.spec.ts +6 -32
- package/build/src/amf/AmfShapeGenerator.d.ts +0 -103
- package/build/src/amf/AmfShapeGenerator.d.ts.map +0 -1
- package/build/src/amf/AmfShapeGenerator.js +0 -416
- package/build/src/amf/AmfShapeGenerator.js.map +0 -1
- package/build/src/modeling/legacy/DataAssociation.d.ts +0 -284
- package/build/src/modeling/legacy/DataAssociation.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataAssociation.js +0 -443
- package/build/src/modeling/legacy/DataAssociation.js.map +0 -1
- package/build/src/modeling/legacy/DataEntity.d.ts +0 -358
- package/build/src/modeling/legacy/DataEntity.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataEntity.js +0 -855
- package/build/src/modeling/legacy/DataEntity.js.map +0 -1
- package/build/src/modeling/legacy/DataEntityBuilder.d.ts +0 -162
- package/build/src/modeling/legacy/DataEntityBuilder.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataEntityBuilder.js +0 -221
- package/build/src/modeling/legacy/DataEntityBuilder.js.map +0 -1
- package/build/src/modeling/legacy/DataImpactAnalysis.d.ts +0 -298
- package/build/src/modeling/legacy/DataImpactAnalysis.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataImpactAnalysis.js +0 -441
- package/build/src/modeling/legacy/DataImpactAnalysis.js.map +0 -1
- package/build/src/modeling/legacy/DataModel.d.ts +0 -99
- package/build/src/modeling/legacy/DataModel.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataModel.js +0 -237
- package/build/src/modeling/legacy/DataModel.js.map +0 -1
- package/build/src/modeling/legacy/DataNamespace.d.ts +0 -340
- package/build/src/modeling/legacy/DataNamespace.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataNamespace.js +0 -784
- package/build/src/modeling/legacy/DataNamespace.js.map +0 -1
- package/build/src/modeling/legacy/DataProperty.d.ts +0 -332
- package/build/src/modeling/legacy/DataProperty.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataProperty.js +0 -415
- package/build/src/modeling/legacy/DataProperty.js.map +0 -1
- package/build/src/models/store/DataFile.d.ts +0 -31
- package/build/src/models/store/DataFile.d.ts.map +0 -1
- package/build/src/models/store/DataFile.js +0 -92
- package/build/src/models/store/DataFile.js.map +0 -1
- package/src/amf/AmfShapeGenerator.ts +0 -477
- package/src/modeling/legacy/DataAssociation.ts +0 -554
- package/src/modeling/legacy/DataEntity.ts +0 -1019
- package/src/modeling/legacy/DataEntityBuilder.ts +0 -236
- package/src/modeling/legacy/DataImpactAnalysis.ts +0 -530
- package/src/modeling/legacy/DataModel.ts +0 -276
- package/src/modeling/legacy/DataNamespace.ts +0 -929
- package/src/modeling/legacy/DataProperty.ts +0 -630
- package/src/models/store/DataFile.ts +0 -100
- package/tests/unit/modeling/legacy/amf_shape_generator.spec.ts +0 -1041
- package/tests/unit/modeling/legacy/data_association.spec.ts +0 -710
- package/tests/unit/modeling/legacy/data_entity.spec.ts +0 -2061
- package/tests/unit/modeling/legacy/data_entity_generator_json.spec.ts +0 -987
- package/tests/unit/modeling/legacy/data_entity_generator_xml.spec.ts +0 -1451
- package/tests/unit/modeling/legacy/data_model.spec.ts +0 -395
- package/tests/unit/modeling/legacy/data_namespace.spec.ts +0 -1312
- package/tests/unit/modeling/legacy/data_property.spec.ts +0 -887
- package/tests/unit/modeling/legacy/impact_analysis.spec.ts +0 -373
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AmfShapeGenerator.js","sourceRoot":"","sources":["../../../src/amf/AmfShapeGenerator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EAWT,SAAS,EACT,aAAa,EACb,cAAc,EACd,WAAW,EACX,UAAU,GACX,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAA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KAAoB,CAAC,UAAU,CAAA;QACtD,CAAC;IACH,CAAC;IAES,eAAe,CAAC,KAAiB;QACzC,OAAO,cAAc,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;IAC7C,CAAC;IAED;;;;;OAKG;IACH,oBAAoB,CAAC,KAAqB;QACxC,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAA;QACvB,OAAO,KAAoB,CAAA;IAC7B,CAAC;IAED;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAU,EAAE,KAAkB;QACjD,MAAM,MAAM,GAAG,UAAU,CAAC,EAAE,CAAC,CAAA;QAC7B,MAAM,CAAC,KAAK,GAAG,KAAK,CAAA;QACpB,OAAO,MAAM,CAAA;IACf,CAAC;CACF","sourcesContent":["import { type PropertyWebBindings } from '../modeling/Bindings.js'\nimport { DataAssociation } from '../modeling/legacy/DataAssociation.js'\nimport { DataEntity } from '../modeling/legacy/DataEntity.js'\nimport { DataProperty, type DataPropertySchema } from '../modeling/legacy/DataProperty.js'\nimport { IAmfExampleTypes, modelTypeToAmfDataType } from './AmfTypes.js'\nimport { AmfNamespace } from './definitions/Namespace.js'\nimport {\n anyShape,\n arrayShape,\n fileShape,\n IApiAnyShape,\n IApiArrayShape,\n IApiDataExample,\n IApiFileShape,\n IApiNodeShape,\n IApiPropertyShape,\n IApiRecursiveShape,\n IApiScalarShape,\n IApiShape,\n IShapeUnion,\n nodeShape,\n propertyShape,\n recursiveShape,\n scalarShape,\n unionShape,\n} from './definitions/Shapes.js'\nimport { AmfDataNode } from './models/AmfDataNode.js'\nimport { nanoid } from '../nanoid.js'\nimport { DataEntityKind, DataPropertyKind } from '../models/kinds.js'\nimport { DataValueGenerator } from './DataValueGenerator.js'\n\n/**\n * Serializes Data shapes (DataEntity, DataProperty, DataAssociation) to AMF-related shapes.\n *\n * This is used when defining entities (according to the `DataEntity` schema)\n * and then we want to translate this into AMF shapes.\n *\n * @deprecated This class refers to the deprecated old data domain model.\n * Use the `ShapeGenerator` with the new domain model.\n */\nexport class AmfShapeGenerator {\n #valueGenerator?: DataValueGenerator\n\n /**\n * Used with data domain value generation for entity properties.\n * Lazily loaded class only when functions are used.\n * This needs to be a class instances because some functions are incremental\n */\n get valueGenerator(): DataValueGenerator {\n if (!this.#valueGenerator) {\n this.#valueGenerator = new DataValueGenerator()\n }\n return this.#valueGenerator\n }\n\n /**\n * Serializes the Entity to the AMF node shape.\n *\n * @param input The Property to serialize.\n * @param generatedEntities The list keys of already generated entities. This prohibits recursive shape generation.\n */\n entity(input: DataEntity, generatedEntities: string[] = []): IApiNodeShape | IApiRecursiveShape {\n if (generatedEntities.includes(input.key)) {\n // create a recursive shape.\n return this._recursiveShape(input)\n }\n generatedEntities.push(input.key)\n const result = nodeShape(input.key)\n result.id = input.key\n this._updateBaseProperties(input, result)\n result.properties = []\n input.properties.forEach((item) => {\n // we check whether the property is hidden.\n // This is not happening when calling the `property()` because this method\n // always returns the AMF shape.\n const wb = item.readBinding('web') as PropertyWebBindings | undefined\n if (wb && wb.hidden) {\n return\n }\n const shape = this.property(item)\n result.properties.push(shape)\n })\n input.associations.forEach((assoc) => {\n const prop = this.associationProperty(assoc, generatedEntities)\n result.properties.push(prop)\n })\n input.getComputedParents().forEach((parent) => {\n const shape = this.entity(parent, generatedEntities)\n result.inherits.push(shape)\n })\n return result\n }\n\n /**\n * Serializes an Entity Property to the AMF property shape.\n *\n * @param input The Property to serialize.\n */\n property(input: DataProperty): IApiPropertyShape {\n const { required, key } = input\n const result = propertyShape(key)\n result.path = `${AmfNamespace.aml.vocabularies.data.key}${input.info.name}`\n if (required) {\n result.minCount = 1\n }\n result.range = this._readPropertyRange(input)\n\n // for example, Example generator needs to know the name of the property\n // as it does not look into the \"range\" object.\n this._updateBaseProperties(input, result)\n\n // sync the name of the property shape with the range, in case it was changed by the bindings\n if (result.range.name) {\n result.name = result.range.name\n }\n return result\n }\n\n /**\n * Serializes an Entity property to the AMF property shape with association\n * targets as defined in the schema configuration.\n *\n * @param input The Property to serialize.\n */\n associationProperty(input: DataAssociation, generatedEntities: string[] = []): IApiPropertyShape {\n const { required, key } = input\n const result = propertyShape(key)\n result.path = `${AmfNamespace.aml.vocabularies.data.key}${input.info.name}`\n if (required) {\n result.minCount = 1\n }\n result.range = this.associationShape(input, generatedEntities)\n this._updateBaseProperties(input, result)\n return result\n }\n\n /**\n * Generates a shape for an association. Most likely you want to use the `associationProperty()` method instead.\n *\n * @param input The data association instance.\n * @returns The range value for the PropertyShape.\n */\n associationShape(input: DataAssociation, generatedEntities: string[] = []): IShapeUnion | undefined {\n const schema = input.schema\n if (schema && schema.linked) {\n // This is a link to the schema. In an API that would be the id\n // of a resource to request the data from.\n const range = scalarShape(input.key)\n range.id = `link-${input.key}`\n range.dataType = modelTypeToAmfDataType('string')\n return range\n }\n const items = this.associationUnion(input, generatedEntities)\n if (!items) {\n return\n }\n const unionType = (schema && schema.unionType) || 'anyOf'\n if (Array.isArray(items)) {\n const range = unionShape(input.key)\n this._updateBaseProperties(input, range)\n range.anyOf = []\n if (unionType === 'anyOf') {\n range.anyOf = items\n } else if (unionType === 'allOf') {\n range.and = items\n } else if (unionType === 'oneOf') {\n range.xone = items\n } else {\n // not.\n range.not = items[0] // ?\n }\n if (input.multiple) {\n return this.refactorShapeToArray(input.key, range)\n }\n return range\n }\n if (unionType === 'not') {\n const wrapper = anyShape(input.key)\n wrapper.id = `not-shape-${input.key}`\n wrapper.not = items\n return wrapper\n }\n if (input.multiple) {\n return this.refactorShapeToArray(input.key, items)\n }\n return items\n }\n\n /**\n * Generates a shape list for an union. Most likely you want to use the `associationProperty()` method instead.\n *\n * @param input The data association instance.\n * @returns The range value for the PropertyShape.\n */\n associationUnion(input: DataAssociation, generatedEntities: string[] = []): IShapeUnion | IShapeUnion[] | undefined {\n const targets = input.getTargets().map((i) => this.entity(i, generatedEntities))\n if (!targets.length) {\n return undefined\n }\n if (targets.length > 1) {\n return targets\n }\n return targets[0]\n }\n\n /**\n * The DataProperty may have both the `schema` and the `bindings`. For AMF shape we read `schema` for\n * default value, examples, and enum values. We also look for the `web`\n * bindings for more detailed definition of a shape.\n *\n * @param input\n * @returns\n */\n protected _readPropertyRange(input: DataProperty): IApiArrayShape | IApiFileShape | IApiScalarShape {\n const bindings = input.readBinding('web') as PropertyWebBindings | undefined\n let schema: DataPropertySchema | undefined\n if (input.schema) {\n schema = input.schema\n }\n return this._createAmfSchema(input, schema, bindings)\n }\n\n protected _createAmfSchema(\n input: DataProperty,\n schema?: DataPropertySchema,\n bindings?: PropertyWebBindings\n ): IApiArrayShape | IApiFileShape | IApiScalarShape {\n const { multiple, type } = input\n if (multiple) {\n return this._generateArrayShape(input, schema, bindings)\n }\n if (type === 'binary') {\n return this._generateFileShape(input, schema, bindings)\n }\n return this._generateScalarShape(input, schema, bindings)\n }\n\n /**\n * Normally this would be part of generating a scalar schema but the the property is an array this\n * is generated on the array and not on the range.\n *\n * @param result The scalar or array shape.\n * @param schema The property schema\n * @param type The data type of the parent property as set on the `range`\n * @param isArray Whether the DataProperty is multiple\n */\n protected _setShapeSchema(\n input: DataProperty,\n result: IApiAnyShape,\n schema: DataPropertySchema,\n type: string,\n isArray?: boolean\n ): void {\n if (schema.defaultValue) {\n const { type: dfFormat } = schema.defaultValue\n const { value } = schema.defaultValue\n if (dfFormat === 'function') {\n const tmp = this.valueGenerator.generate(value, input.type)\n if (tmp !== DataValueGenerator.noValue) {\n const dt = AmfDataNode.scalar(tmp as string, dfFormat)\n result.defaultValue = dt.toJSON()\n }\n } else {\n const dt = AmfDataNode.scalar(value, type)\n result.defaultValue = dt.toJSON()\n }\n }\n if (Array.isArray(schema.enum)) {\n result.values = schema.enum.map((i) => AmfDataNode.scalar(i, type).toJSON())\n }\n if (Array.isArray(schema.examples)) {\n if (isArray) {\n result.examples = this._generateArrayExamples(schema.examples, type)\n } else {\n result.examples = this._generateExamples(schema.examples, type)\n }\n }\n }\n\n protected _generateArrayShape(\n input: DataProperty,\n schema?: DataPropertySchema,\n bindings?: PropertyWebBindings\n ): IApiArrayShape {\n const result = arrayShape(input.key)\n const { type } = input\n if (type === 'binary') {\n // we do not pass schema to the range generator as we set schema's properties on the array shape.\n result.items = this._generateFileShape(input, undefined, bindings)\n } else {\n result.items = this._generateScalarShape(input, undefined, bindings)\n }\n if (schema) {\n const type = (result.items as IApiScalarShape).dataType as string\n this._setShapeSchema(input, result, schema, type, input.multiple)\n }\n return result\n }\n\n protected _generateScalarShape(\n input: DataProperty,\n schema?: DataPropertySchema,\n bindings?: PropertyWebBindings\n ): IApiScalarShape {\n const result = scalarShape(input.key)\n this._updateBaseProperties(input, result)\n this._fillScalarShapeCommonProperties(result, input, bindings)\n if (!result.dataType) {\n result.dataType = modelTypeToAmfDataType(input.type, bindings)\n }\n if (schema) {\n this._setShapeSchema(input, result, schema, result.dataType as string, input.multiple)\n }\n return result\n }\n\n protected _generateExamples(examples: string[], type: string): IApiDataExample[] {\n return examples.map((current) => {\n const value = AmfDataNode.scalar(current, type).toJSON()\n const item: IApiDataExample = {\n id: nanoid(),\n customDomainProperties: [],\n strict: true,\n types: IAmfExampleTypes,\n structuredValue: value,\n }\n return item\n })\n }\n\n protected _generateArrayExamples(examples: string[], type: string): IApiDataExample[] {\n const item: IApiDataExample = {\n id: nanoid(),\n customDomainProperties: [],\n strict: true,\n types: IAmfExampleTypes,\n }\n const value = new AmfDataNode('array')\n examples.forEach((item) => {\n const member = AmfDataNode.scalar(item, type)\n value.addMember(member)\n })\n item.structuredValue = value.toJSON()\n return [item]\n }\n\n protected _generateFileShape(\n input: DataProperty,\n schema?: DataPropertySchema,\n bindings?: PropertyWebBindings\n ): IApiFileShape {\n // if (bindings && bindings.format === 'base64') {\n // // this is a binary format of a string shape\n // }\n const result = fileShape(input.key)\n this._updateBaseProperties(input, result)\n if (bindings) {\n if (Array.isArray(bindings.fileTypes)) {\n result.fileTypes = bindings.fileTypes\n }\n this._fillScalarShapeCommonProperties(result, input, bindings)\n if (bindings.format === 'base64') {\n result.format = AmfNamespace.w3.xmlSchema.base64Binary\n }\n }\n return result\n }\n\n protected _fillScalarShapeCommonProperties(\n result: IApiFileShape | IApiScalarShape,\n input: DataProperty,\n bindings?: PropertyWebBindings\n ): void {\n if (bindings?.name) {\n result.name = bindings.name\n }\n if (bindings?.xml) {\n result.xmlSerialization = bindings.xml\n }\n if (bindings?.pattern) {\n result.pattern = bindings.pattern\n }\n const { schema, type } = input\n if (schema) {\n if (typeof schema.multipleOf === 'number') {\n result.multipleOf = schema.multipleOf\n }\n if (typeof schema.minimum === 'number') {\n if (type === 'string') {\n result.minLength = schema.minimum\n } else {\n result.minimum = schema.minimum\n }\n }\n if (typeof schema.maximum === 'number') {\n if (type === 'string') {\n result.maxLength = schema.maximum\n } else {\n result.maximum = schema.maximum\n }\n }\n if (typeof schema.exclusiveMinimum === 'boolean') {\n result.exclusiveMinimum = schema.exclusiveMinimum\n }\n if (typeof schema.exclusiveMaximum === 'boolean') {\n result.exclusiveMaximum = schema.exclusiveMaximum\n }\n }\n if (bindings?.format) {\n switch (bindings.format) {\n case 'base64':\n result.format = AmfNamespace.w3.xmlSchema.base64Binary\n break\n case 'double':\n result.format = AmfNamespace.w3.xmlSchema.double\n break\n case 'float':\n result.format = AmfNamespace.w3.xmlSchema.float\n break\n case 'int32':\n result.format = AmfNamespace.w3.xmlSchema.integer\n break\n case 'int64':\n result.format = AmfNamespace.w3.xmlSchema.integer\n break\n }\n // result.format = bindings.format\n }\n if (typeof input.readOnly === 'boolean') {\n result.readOnly = input.readOnly\n }\n if (typeof input.writeOnly === 'boolean') {\n result.writeOnly = input.writeOnly\n }\n }\n\n protected _updateBaseProperties(input: DataProperty | DataAssociation | DataEntity, target: IApiShape): void {\n // const bindings = input.readBinding('web') as PropertyWebBindings | undefined\n target.name = input.info.name\n target.displayName = input.info.displayName\n target.description = input.info.description\n if (input.kind === DataPropertyKind) {\n target.deprecated = (input as DataProperty).deprecated\n } else if (input.kind === DataEntityKind) {\n target.deprecated = (input as DataEntity).deprecated\n }\n }\n\n protected _recursiveShape(input: DataEntity): IApiRecursiveShape {\n return recursiveShape(input.key, input.key)\n }\n\n /**\n * Translates generated schema from an array shape to the shape defined in the `items` of the array.\n *\n * @param array The source array.\n * @returns The definition of the `items` of the array.\n */\n refactorArrayToShape(array: IApiArrayShape): IShapeUnion {\n const { items } = array\n return items as IShapeUnion\n }\n\n /**\n * Translates the shape to an array shape. This happens when data model property\n * is changed from 'multiple' to not-multiple and back.\n *\n * @param id The key of the parameter or an association\n * @param shape The shape to wrap as an array.\n * @returns Array shape.\n */\n refactorShapeToArray(id: string, shape: IShapeUnion): IApiArrayShape {\n const result = arrayShape(id)\n result.items = shape\n return result\n }\n}\n"]}
|
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
import { IApiAssociationShape, IApiPropertyShape } from '../../amf/definitions/Shapes.js';
|
|
2
|
-
import { IThing, Thing } from '../../models/Thing.js';
|
|
3
|
-
import { DataEntity, IDataEntity } from './DataEntity.js';
|
|
4
|
-
import { DataNamespace } from './DataNamespace.js';
|
|
5
|
-
import { DataAssociationKind } from '../../models/kinds.js';
|
|
6
|
-
import type { AssociationBinding, AssociationBindings, AssociationWebBindings } from '../Bindings.js';
|
|
7
|
-
import { type DataAttributeAttribute } from '../DataFormat.js';
|
|
8
|
-
/**
|
|
9
|
-
* Describes association target of an entity
|
|
10
|
-
* @deprecated
|
|
11
|
-
*/
|
|
12
|
-
export interface AssociationTarget {
|
|
13
|
-
/**
|
|
14
|
-
* The key of the associated entity.
|
|
15
|
-
*/
|
|
16
|
-
key: string;
|
|
17
|
-
/**
|
|
18
|
-
* The key of the namespace to look for entities.
|
|
19
|
-
* By default it is the current (root) namespace. When this is set the program
|
|
20
|
-
* will look into `foreign` of the root namespace for the definition
|
|
21
|
-
* of the entity.
|
|
22
|
-
*/
|
|
23
|
-
namespace?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Describes an association between entities. An association is another property of an entity.
|
|
27
|
-
* The `name` is the name of the property and the value is the associated target or targets.
|
|
28
|
-
*
|
|
29
|
-
* An association can have multiple targets to allow describing the model as `allOf`, `anyOf` and `oneOf` schemas.
|
|
30
|
-
* When the association has only one target, then generated schema cannot have union types.
|
|
31
|
-
*
|
|
32
|
-
* Depending on the schema translation an association can be embedded as a sub-object in the generated schema
|
|
33
|
-
* or can be references via a primary key.
|
|
34
|
-
* @deprecated
|
|
35
|
-
*/
|
|
36
|
-
export interface IDataAssociation {
|
|
37
|
-
kind: typeof DataAssociationKind;
|
|
38
|
-
/**
|
|
39
|
-
* The key of the association.
|
|
40
|
-
*/
|
|
41
|
-
key: string;
|
|
42
|
-
/**
|
|
43
|
-
* The data association description.
|
|
44
|
-
*/
|
|
45
|
-
info: IThing;
|
|
46
|
-
/**
|
|
47
|
-
* Wether the data association is required.
|
|
48
|
-
*/
|
|
49
|
-
required?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Whether the data association allows multiple items.
|
|
52
|
-
*/
|
|
53
|
-
multiple?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* The list of keys associated with the entity through this association.
|
|
56
|
-
* An association without a target is considered invalid and discarded when processing the values.
|
|
57
|
-
* When multiple associations are set then we are dealing with an union.
|
|
58
|
-
*/
|
|
59
|
-
targets?: AssociationTarget[];
|
|
60
|
-
/**
|
|
61
|
-
* The schema allowing to translate the model into a specific format (like JSON, RAML, XML, etc.)
|
|
62
|
-
*
|
|
63
|
-
* When this is defined then it is used as the schema. When this is not defined it uses
|
|
64
|
-
* referenced entities schemas. Note, changes in the referenced entities may not be propagated
|
|
65
|
-
* to schemas altered by the user.
|
|
66
|
-
*/
|
|
67
|
-
schema?: IApiAssociationShape;
|
|
68
|
-
/**
|
|
69
|
-
* The list of bindings for this property.
|
|
70
|
-
*
|
|
71
|
-
* A binding defines a translation from a data model to a specific format.
|
|
72
|
-
* For example allows to define properties required to generate AMF shape and therefore RAML/OAS shapes for web APIs
|
|
73
|
-
* or a protocol buffer schema.
|
|
74
|
-
*/
|
|
75
|
-
bindings?: AssociationBinding[];
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Describes an association between entities. An association is a relationship defined on an entity
|
|
79
|
-
* that links it to one or more other entities. The association has a `name` which is used as the
|
|
80
|
-
* property name in the context of the parent entity, and it connects to a set of `targets`
|
|
81
|
-
* representing the associated entities.
|
|
82
|
-
*
|
|
83
|
-
* An association can have multiple targets to allow describing the model as `allOf`, `anyOf`, or `oneOf`
|
|
84
|
-
* schemas. When the association has only one target, then the generated schema cannot have union types.
|
|
85
|
-
*
|
|
86
|
-
* Depending on the schema translation, an association can be embedded as a sub-object in the generated
|
|
87
|
-
* schema, or it can be referenced via a primary key.
|
|
88
|
-
*
|
|
89
|
-
* ## Key Concepts
|
|
90
|
-
*
|
|
91
|
-
* - **Targets**: An association's `targets` specify the entities that this association points to.
|
|
92
|
-
* Each target is defined by:
|
|
93
|
-
* - `key`: The key of the target entity.
|
|
94
|
-
* - `namespace` (optional): The key of the namespace where the target entity is defined.
|
|
95
|
-
* If not specified, it defaults to the current namespace.
|
|
96
|
-
*
|
|
97
|
-
* - **Cardinality**:
|
|
98
|
-
* - `multiple` (boolean): Indicates whether the association allows multiple target entities.
|
|
99
|
-
* If `true`, it's a to-many relationship; otherwise, it's a to-one relationship.
|
|
100
|
-
*
|
|
101
|
-
* - **Schema**:
|
|
102
|
-
* - `schema` (optional): A custom schema for the association, allowing manual definition of the
|
|
103
|
-
* association's structure in specific formats (e.g., JSON, RAML, XML).
|
|
104
|
-
* When provided, this schema overrides the automatically generated schema based on the
|
|
105
|
-
* target entities.
|
|
106
|
-
* - **Important**: If a custom schema is defined and changes are made to the referenced
|
|
107
|
-
* entities, those changes **will not** be automatically propagated to the custom schema.
|
|
108
|
-
* This means the custom schema may become outdated and no longer accurately reflect the
|
|
109
|
-
* structure of the target entities.
|
|
110
|
-
*
|
|
111
|
-
* - **Hidden**:
|
|
112
|
-
* - `hidden`: (boolean) Defines if this association is a part of the schema or not.
|
|
113
|
-
* @deprecated
|
|
114
|
-
*/
|
|
115
|
-
export declare class DataAssociation {
|
|
116
|
-
root: DataNamespace;
|
|
117
|
-
kind: string;
|
|
118
|
-
key: string;
|
|
119
|
-
/**
|
|
120
|
-
* The description of the data association.
|
|
121
|
-
*/
|
|
122
|
-
info: Thing;
|
|
123
|
-
/**
|
|
124
|
-
* Wether the data association is required.
|
|
125
|
-
*/
|
|
126
|
-
required?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Whether the data association allows multiple items.
|
|
129
|
-
*/
|
|
130
|
-
multiple?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* The list of keys associated with the entity through this association.
|
|
133
|
-
* An association without a target is considered invalid and discarded when processing the values.
|
|
134
|
-
* When multiple associations are set then we are dealing with an union.
|
|
135
|
-
*/
|
|
136
|
-
targets: AssociationTarget[];
|
|
137
|
-
/**
|
|
138
|
-
* The schema allowing to translate the model into a specific format (like JSON, RAML, XML, etc.)
|
|
139
|
-
*
|
|
140
|
-
* When this is defined then it is used as the schema. When this is not defined it uses
|
|
141
|
-
* referenced entities schemas. Note, changes in the referenced entities may not be propagated
|
|
142
|
-
* to schemas altered by the user.
|
|
143
|
-
*/
|
|
144
|
-
schema?: IApiAssociationShape;
|
|
145
|
-
/**
|
|
146
|
-
* The list of bindings for this property.
|
|
147
|
-
*
|
|
148
|
-
* A binding defines a translation from a data model to a specific format.
|
|
149
|
-
* For example allows to define properties required to generate AMF shape and therefore RAML/OAS shapes for web APIs
|
|
150
|
-
* or a protocol buffer schema.
|
|
151
|
-
*/
|
|
152
|
-
bindings: AssociationBinding[];
|
|
153
|
-
/**
|
|
154
|
-
* Returns true when the association has 0 or 1 targets.
|
|
155
|
-
*/
|
|
156
|
-
get isSingle(): boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Creates an instance of DataAssociation from a target entity key.
|
|
159
|
-
* Note, this entity will have no name. The default name is used instead.
|
|
160
|
-
*
|
|
161
|
-
* @param root The namespace root.
|
|
162
|
-
* @param target The target entity key.
|
|
163
|
-
* @param namespace The optional key of the target association when different to the current one.
|
|
164
|
-
* @returns A new `DataAssociation` instance.
|
|
165
|
-
*/
|
|
166
|
-
static fromTarget(root: DataNamespace, target: string, namespace?: string): DataAssociation;
|
|
167
|
-
/**
|
|
168
|
-
* Creates an instance of DataAssociation from a name, without defining a target.
|
|
169
|
-
*
|
|
170
|
-
* @param root The namespace root.
|
|
171
|
-
* @param name The name of the association.
|
|
172
|
-
* @returns A new `DataAssociation` instance.
|
|
173
|
-
*/
|
|
174
|
-
static fromName(root: DataNamespace, name: string): DataAssociation;
|
|
175
|
-
/**
|
|
176
|
-
* @param input The data association definition to restore.
|
|
177
|
-
*/
|
|
178
|
-
constructor(root: DataNamespace, input?: string | IDataAssociation);
|
|
179
|
-
/**
|
|
180
|
-
* Initializes the association using provided data.
|
|
181
|
-
*
|
|
182
|
-
* @param init - The data association definition to restore.
|
|
183
|
-
*/
|
|
184
|
-
new(init: IDataAssociation): this;
|
|
185
|
-
/**
|
|
186
|
-
* Validates if the input object is a valid `DataAssociation` definition.
|
|
187
|
-
* Throws a `ValidationError` if the input is invalid.
|
|
188
|
-
*
|
|
189
|
-
* @param input The object to validate.
|
|
190
|
-
* @throws {ValidationError} When the validation fails.
|
|
191
|
-
* @deprecated
|
|
192
|
-
*/
|
|
193
|
-
static validate(input: unknown): void;
|
|
194
|
-
/**
|
|
195
|
-
* Generates an object representing the association, suitable for serialization.
|
|
196
|
-
*
|
|
197
|
-
* @returns A plain object representation of the `DataAssociation`.
|
|
198
|
-
*/
|
|
199
|
-
toJSON(): IDataAssociation;
|
|
200
|
-
/**
|
|
201
|
-
* Retrieves the list of target entities.
|
|
202
|
-
*
|
|
203
|
-
* @returns An array of `DataEntity` instances representing the targets of this association.
|
|
204
|
-
*/
|
|
205
|
-
getTargets(): DataEntity[];
|
|
206
|
-
/**
|
|
207
|
-
* Removes self from the parent entity and the namespace definition.
|
|
208
|
-
*/
|
|
209
|
-
remove(): void;
|
|
210
|
-
/**
|
|
211
|
-
* Adds a target entity to the association.
|
|
212
|
-
* If the entity comes from another namespace then it is set as a foreign entity.
|
|
213
|
-
*
|
|
214
|
-
* @param entity - The `DataEntity` instance to add.
|
|
215
|
-
*/
|
|
216
|
-
addTarget(entity: DataEntity): void;
|
|
217
|
-
/**
|
|
218
|
-
* Adds a target entity to the association.
|
|
219
|
-
*
|
|
220
|
-
* @param entity - The `IDataEntity` definition or just its key.
|
|
221
|
-
* @param namespace - The key of the foreign namespace this entity belongs to.
|
|
222
|
-
* Do not set this value for local entities.
|
|
223
|
-
*/
|
|
224
|
-
addTarget(entity: IDataEntity | string, namespace?: string): void;
|
|
225
|
-
/**
|
|
226
|
-
* Removes a target entity from the targets list.
|
|
227
|
-
*
|
|
228
|
-
* @param init The key of an entity, its instance, or schema.
|
|
229
|
-
*/
|
|
230
|
-
removeTarget(init: string | DataEntity | IDataEntity): void;
|
|
231
|
-
/**
|
|
232
|
-
* Creates a Property Shape of AMF.
|
|
233
|
-
* The property itself is auto-generated. If the `schema` is defined then it is used
|
|
234
|
-
* as the `range` of the property. Otherwise basic shape is generated for the range.
|
|
235
|
-
*
|
|
236
|
-
* This is a preferred way of reading the AMF shape as this synchronizes changed
|
|
237
|
-
* data properties with the shape definition.
|
|
238
|
-
*
|
|
239
|
-
* @returns AMF property shape definition.
|
|
240
|
-
*/
|
|
241
|
-
toApiShape(): IApiPropertyShape;
|
|
242
|
-
/**
|
|
243
|
-
* @deprecated Use the `getParentInstance()` method instead.
|
|
244
|
-
*/
|
|
245
|
-
getParent(): DataEntity;
|
|
246
|
-
/**
|
|
247
|
-
* Retrieves the parent entity of this association.
|
|
248
|
-
*
|
|
249
|
-
* @returns The `DataEntity` instance that contains this association.
|
|
250
|
-
*/
|
|
251
|
-
getParentInstance(): DataEntity;
|
|
252
|
-
/**
|
|
253
|
-
* Creates the `schema` object if missing and returns it.
|
|
254
|
-
* @returns The schema object.
|
|
255
|
-
*/
|
|
256
|
-
ensureSchema(): IApiAssociationShape;
|
|
257
|
-
/**
|
|
258
|
-
* Checks whether the passed value is one of the supported data property attributes.
|
|
259
|
-
* @param value The value to test
|
|
260
|
-
* @returns True when the passed value is one of the supported data property attributes.
|
|
261
|
-
* @deprecated
|
|
262
|
-
*/
|
|
263
|
-
static isValidAttribute(value: unknown): value is DataAttributeAttribute;
|
|
264
|
-
/**
|
|
265
|
-
* Creates if not existing and returns web bindings definition.
|
|
266
|
-
* @returns The web binding definition
|
|
267
|
-
*/
|
|
268
|
-
getWebBinding(): AssociationWebBindings;
|
|
269
|
-
/**
|
|
270
|
-
* Returns the schema value of the binding, if any was created.
|
|
271
|
-
* @param type The type of the binding to read.
|
|
272
|
-
* @returns The binding schema, if any
|
|
273
|
-
*/
|
|
274
|
-
readBinding(type: 'web' | 'protobuf'): AssociationBindings | undefined;
|
|
275
|
-
/**
|
|
276
|
-
* Checks whether the association is a child of the given namespace, data model, or an entity.
|
|
277
|
-
* The relationship doesn't have to be direct, as long as the association is in the hierarchy it will return true.
|
|
278
|
-
*
|
|
279
|
-
* @param key The key of the parent to check.
|
|
280
|
-
* @returns True if this data association is a child of the given namespace, data model, or an entity
|
|
281
|
-
*/
|
|
282
|
-
isChildOf(key: string): boolean;
|
|
283
|
-
}
|
|
284
|
-
//# sourceMappingURL=DataAssociation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataAssociation.d.ts","sourceRoot":"","sources":["../../../../src/modeling/legacy/DataAssociation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAEzF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,O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