Skip to content

Commit

Permalink
fix(modelfile) Remove unused options for system files
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Apr 19, 2021
1 parent 805467e commit 92132e4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
12 changes: 6 additions & 6 deletions packages/concerto-core/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ class ModelFile {
+ ParticipantDeclaration getParticipantDeclaration(string)
+ string getNamespace()
+ string getName()
+ AssetDeclaration[] getAssetDeclarations(Boolean)
+ TransactionDeclaration[] getTransactionDeclarations(Boolean)
+ EventDeclaration[] getEventDeclarations(Boolean)
+ ParticipantDeclaration[] getParticipantDeclarations(Boolean)
+ ConceptDeclaration[] getConceptDeclarations(Boolean)
+ EnumDeclaration[] getEnumDeclarations(Boolean)
+ AssetDeclaration[] getAssetDeclarations()
+ TransactionDeclaration[] getTransactionDeclarations()
+ EventDeclaration[] getEventDeclarations()
+ ParticipantDeclaration[] getParticipantDeclarations()
+ ConceptDeclaration[] getConceptDeclarations()
+ EnumDeclaration[] getEnumDeclarations()
+ ClassDeclaration[] getDeclarations(Function)
+ ClassDeclaration[] getAllDeclarations()
+ string getDefinitions()
Expand Down
4 changes: 4 additions & 0 deletions packages/concerto-core/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
# Note that the latest public API is documented using JSDocs and is available in api.txt.
#

Version 1.0.0-alpha.7 {e791f955bbe9bdac6bcd8944d6111e1a} 2021-04-17
- Remove unused systemtime options in modelfile API
- Fixes to the validation option targeting the ergo ES6 runtime

Version 1.0.0-alpha.5 {446997953e3ac90783ff9d492a8e7fdc} 2021-04-08
- Support Concerto version pragma at the beginning of model files
- Remove allowEmptyId option in factory API
Expand Down
30 changes: 12 additions & 18 deletions packages/concerto-core/lib/introspect/modelfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,56 +546,50 @@ class ModelFile {

/**
* Get the AssetDeclarations defined in this ModelFile
* @param {Boolean} includeSystemType - Include the decalarations of system type in returned data
* @return {AssetDeclaration[]} the AssetDeclarations defined in the model file
*/
getAssetDeclarations(includeSystemType = true) {
return this.getDeclarations(AssetDeclaration, includeSystemType);
getAssetDeclarations() {
return this.getDeclarations(AssetDeclaration);
}

/**
* Get the TransactionDeclarations defined in this ModelFile
* @param {Boolean} includeSystemType - Include the decalarations of system type in returned data
* @return {TransactionDeclaration[]} the TransactionDeclarations defined in the model file
*/
getTransactionDeclarations(includeSystemType = true) {
return this.getDeclarations(TransactionDeclaration, includeSystemType);
getTransactionDeclarations() {
return this.getDeclarations(TransactionDeclaration);
}

/**
* Get the EventDeclarations defined in this ModelFile
* @param {Boolean} includeSystemType - Include the decalarations of system type in returned data
* @return {EventDeclaration[]} the EventDeclarations defined in the model file
*/
getEventDeclarations(includeSystemType = true) {
return this.getDeclarations(EventDeclaration, includeSystemType);
getEventDeclarations() {
return this.getDeclarations(EventDeclaration);
}

/**
* Get the ParticipantDeclarations defined in this ModelFile
* @param {Boolean} includeSystemType - Include the decalarations of system type in returned data
* @return {ParticipantDeclaration[]} the ParticipantDeclaration defined in the model file
*/
getParticipantDeclarations(includeSystemType = true) {
return this.getDeclarations(ParticipantDeclaration, includeSystemType);
getParticipantDeclarations() {
return this.getDeclarations(ParticipantDeclaration);
}

/**
* Get the ConceptDeclarations defined in this ModelFile
* @param {Boolean} includeSystemType - Include the decalarations of system type in returned data
* @return {ConceptDeclaration[]} the ParticipantDeclaration defined in the model file
*/
getConceptDeclarations(includeSystemType = true) {
return this.getDeclarations(ConceptDeclaration, includeSystemType);
getConceptDeclarations() {
return this.getDeclarations(ConceptDeclaration);
}

/**
* Get the EnumDeclarations defined in this ModelFile
* @param {Boolean} includeSystemType - Include the decalarations of system type in returned data
* @return {EnumDeclaration[]} the EnumDeclaration defined in the model file
*/
getEnumDeclarations(includeSystemType = true) {
return this.getDeclarations(EnumDeclaration, includeSystemType);
getEnumDeclarations() {
return this.getDeclarations(EnumDeclaration);
}

/**
Expand Down

0 comments on commit 92132e4

Please sign in to comment.