Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/MC-9483 Add UI ability to see and handle importing and extending in DataModels #31

Merged
merged 14 commits into from
Aug 18, 2021
Merged
12 changes: 11 additions & 1 deletion lib/es2015/mdm-data-class.resource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ import { MdmResource } from './mdm-resource';
* | PUT | /api/dataModels/${dataModelId}/dataClasses/${id} | Action: update
* | GET | /api/dataModels/${dataModelId}/dataClasses/${id} | Action: show
* | POST | /api/dataModels/${dataModelId}/dataClasses/${otherDataModelId}/${otherDataClassId} | Action: copyDataClass
*
* |
* | DELETE | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/dataClasses/${otherDataModelId}/${otherDataClassId} | Action: removeImportDataClass
* | PUT | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/dataClasses/${otherDataModelId}/${otherDataClassId} | Action: addImportDataClass
* | DELETE | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/dataElements/${otherDataModelId}/${otherDataClassId}/${otherDataElementId} | Action: removeImportDataElement
* | PUT | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/dataElements/${otherDataModelId}/${otherDataClassId}/${otherDataElementId} | Action: addImportDataElement
*/
/**
* MDM resource for managing data classes attached to data models.
Expand Down Expand Up @@ -192,4 +196,10 @@ export declare class MdmDataClassResource extends MdmResource {
* `200 OK` - will return a {@link DataClassDetailResponse} containing the new copy of a {@link DataClassDetail} object.
*/
copyDataClass(dataModelId: string, otherDataModelId: string, otherDataClassId: string, restHandlerOptions?: RequestSettings): any;
importDataClass(dataModelId: Uuid, dataClassId: Uuid, otherDataModelId: Uuid, otherDataClassId: Uuid, options?: RequestSettings): any;
removeImportedDataClass(dataModelId: Uuid, dataClassId: Uuid, otherDataModelId: Uuid, otherDataClassId: Uuid, options?: RequestSettings): any;
importDataElement(dataModelId: Uuid, dataClassId: Uuid, otherDataModelId: Uuid, otherDataClassId: Uuid, otherDataElementId: Uuid, options?: RequestSettings): any;
removeImportedDataElement(dataModelId: Uuid, dataClassId: Uuid, otherDataModelId: Uuid, otherDataClassId: Uuid, otherDataElementId: Uuid, options?: RequestSettings): any;
addExtendDataClass(dataModelId: Uuid, dataClassId: Uuid, otherDataModelId: Uuid, otherDataClassId: Uuid, options?: RequestSettings): any;
removeExtendDataClass(dataModelId: Uuid, dataClassId: Uuid, otherDataModelId: Uuid, otherDataClassId: Uuid, options?: RequestSettings): any;
}
30 changes: 29 additions & 1 deletion lib/es2015/mdm-data-class.resource.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/es2015/mdm-data-class.resource.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions lib/es2015/mdm-data-model.resource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ import { MdmResource } from './mdm-resource';
| GET | /api/dataModels/${dataModelId}/latestModelVersion | Action: latestModelVersion
| GET | /api/dataModels/${dataModelId}/latestFinalisedModel | Action: latestFinalisedModel
| GET | /api/dataModels/${dataModelId}/modelVersionTree | Action: modelVersionTree
|
| DELETE | /api/dataModels/${dataModelId}/dataTypes/${otherDataModelId}/${otherDataTypeId} | Action: removeImportDataType
| PUT | /api/dataModels/${dataModelId}/dataTypes/${otherDataModelId}/${otherDataTypeId} | Action: addImportDataType
| DELETE | /api/dataModels/${dataModelId}/dataClasses/${otherDataModelId}/${otherDataClassId} | Action: removeImportDataClass
| PUT | /api/dataModels/${dataModelId}/dataClasses/${otherDataModelId}/${otherDataClassId} | Action: addImportDataClass
*/
/**
* MDM resource for managing data models.
Expand Down Expand Up @@ -375,4 +380,8 @@ export declare class MdmDataModelResource extends MdmResource {
* @see {@link MdmDataModelResource.remove}
*/
undoSoftDelete(dataModelId: Uuid, options?: RequestSettings): any;
importDataType(dataModelId: Uuid, otherDataModelId: Uuid, otherDataTypeId: Uuid, options?: RequestSettings): any;
removeImportedDataType(dataModelId: Uuid, otherDataModelId: Uuid, otherDataTypeId: Uuid, options?: RequestSettings): any;
importDataClass(dataModelId: Uuid, otherDataModelId: Uuid, otherDataClassId: Uuid, options?: RequestSettings): any;
removeImportedDataClass(dataModelId: Uuid, otherDataModelId: Uuid, otherDataClassId: Uuid, options?: RequestSettings): any;
}
21 changes: 21 additions & 0 deletions lib/es2015/mdm-data-model.resource.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading