Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Release 0.1.0rc1 (#33)
Browse files Browse the repository at this point in the history
System model updates required for composer 0.9.0

* updated models

* correct the model files
  • Loading branch information
jt-nti authored Jun 29, 2017
1 parent 301349a commit 81394e3
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 48 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"packages": [
"packages/*"
],
"version": "0.0.18",
"version": "0.1.0",
"hoist": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"name": "sample-models",
"description": "You must install [Lerna](https://lernajs.io) to build this multi-package repository.",
"version": "0.0.18",
"version": "0.1.0",
"main": "index.js",
"private": true,
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ asset Business identified by sbi {
/**
* An abstract transaction type for animal movements
*/
abstract transaction AnimalMovement identified by transactionId {
o String transactionId
abstract transaction AnimalMovement {
o String[] logs optional
--> Animal animal
--> Business from
Expand All @@ -131,6 +130,5 @@ transaction AnimalMovementArrival extends AnimalMovement {
--> Field arrivalField
}

transaction SetupDemo identified by transactionId {
o String transactionId
transaction SetupDemo {
}
2 changes: 1 addition & 1 deletion packages/animaltracking-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"composer": "^0.9.0"
},
"name": "animaltracking-model",
"version": "0.0.18",
"version": "0.1.0",
"description": "Animal Tracking model based on UK DEFRA regulations",
"scripts": {
"licchk": "license-check",
Expand Down
2 changes: 1 addition & 1 deletion packages/composer.base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"composer": "^0.9.0"
},
"name": "composer.base",
"version": "0.0.18",
"version": "0.1.0",
"description": "Composer Base Model",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/composer.business/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"composer": "^0.9.0"
},
"name": "composer.business",
"version": "0.0.18",
"version": "0.1.0",
"description": "Composer Business Model",
"dependencies": {
"composer.base": "^0.0.18"
"composer.base": "^0.1.0"
},
"repository": {
"type": "git",
Expand Down
8 changes: 3 additions & 5 deletions packages/composer.contract/models/template.cto
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ asset Template identified by id {
o Clause[] clauses
}

transaction CreateTemplate identified by id {
o String id
transaction CreateTemplate {
o String description
o Clause[] clauses
}

transaction UpdateTemplate identified by id {
o String id
transaction UpdateTemplate {
o String description
o Clause[] clauses
}
}
4 changes: 2 additions & 2 deletions packages/composer.contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"composer": "^0.9.0"
},
"name": "composer.contract",
"version": "0.0.18",
"version": "0.1.0",
"description": "Composer Contract Model",
"dependencies": {
"composer.business": "^0.0.18"
"composer.business": "^0.1.0"
},
"repository": {
"type": "git",
Expand Down
5 changes: 2 additions & 3 deletions packages/composer.finance/models/bond.cto
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ asset BondAsset identified by ISINCode {
o Bond bond
}

transaction PublishBond identified by transactionId {
o String transactionId
transaction PublishBond {
o String ISINCode
o Bond bond
}
}
6 changes: 3 additions & 3 deletions packages/composer.finance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"composer": "^0.9.0"
},
"name": "composer.finance",
"version": "0.0.18",
"version": "0.1.0",
"description": "Composer Finance Model",
"dependencies": {
"composer.base": "^0.0.18",
"composer.business": "^0.0.18"
"composer.base": "^0.1.0",
"composer.business": "^0.1.0"
},
"repository": {
"type": "git",
Expand Down
3 changes: 1 addition & 2 deletions packages/digitalproperty-model/models/DigitalLandTitle.cto
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ participant Person identified by personId {
}


transaction RegisterPropertyForSale identified by transactionId{
o String transactionId
transaction RegisterPropertyForSale {
--> Person seller
--> LandTitle title
}
2 changes: 1 addition & 1 deletion packages/digitalproperty-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"composer": "^0.9.0"
},
"name": "digitalproperty-model",
"version": "0.0.18",
"version": "0.1.0",
"description": "Digital Property Network",
"scripts": {
"licchk": "license-check",
Expand Down
14 changes: 5 additions & 9 deletions packages/vehicle-lifecycle-model/models/manufacturer.cto
Original file line number Diff line number Diff line change
Expand Up @@ -56,34 +56,30 @@ asset Order identified by orderId {
/**
* Transaction to create an order
*/
transaction PlaceOrder identified by transactionId {
o String transactionId
transaction PlaceOrder {
o String orderId
o VehicleDetails vehicleDetails
--> Manufacturer manufacturer
--> Person orderer
}

event PlaceOrderEvent identified by eventId{
o String eventId
event PlaceOrderEvent {
o String orderId
o VehicleDetails vehicleDetails
}

/**
* Transaction to update the status of an order
*/
transaction UpdateOrderStatus identified by transactionId {
o String transactionId
transaction UpdateOrderStatus{
o OrderStatus orderStatus
o String vin optional
o String v5c optional
o String numberPlate optional
--> Order order
}

event UpdateOrderStatusEvent identified by eventId{
o String eventId
event UpdateOrderStatusEvent {
o OrderStatus orderStatus
o Order order
}
}
14 changes: 5 additions & 9 deletions packages/vehicle-lifecycle-model/models/vda.cto
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,15 @@ concept VehicleTransferLogEntry {
/**
* Based on the DVLA V62 document
*/
transaction ApplicationForVehicleRegistrationCertificate identified by transactionId {
o String transactionId
transaction ApplicationForVehicleRegistrationCertificate {
o VehicleDetails vehicleDetails
--> Person keeper
o String dvlaFleetNumber optional
o String driversLicenseNumber optional
o Long mileage optional
o String previousPostCode optional
}
abstract transaction VehicleTransaction identified by transactionId {
o String transactionId
abstract transaction VehicleTransaction {
--> Vehicle vehicle
}
/**
Expand Down Expand Up @@ -134,11 +132,9 @@ transaction ScrapVehicle extends VehicleTransaction {
transaction UpdateSuspicious extends VehicleTransaction {
o String message
}
transaction ScrapAllVehiclesByColour identified by transactionId {
o String transactionId
transaction ScrapAllVehiclesByColour {
o String colour
}
event ScrapVehicleEvent identified by eventId {
o String eventId
event ScrapVehicleEvent {
--> Vehicle vehicle
}
}
3 changes: 1 addition & 2 deletions packages/vehicle-lifecycle-model/models/vehicle.cto
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@ participant AuctionHouse extends Company {
participant ScrapMerchant extends Company {
}

transaction SetupDemo identified by transactionId {
o String transactionId
transaction SetupDemo {
}
2 changes: 1 addition & 1 deletion packages/vehicle-lifecycle-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"composer": "^0.9.0"
},
"name": "vehicle-lifecycle-model",
"version": "0.0.18",
"version": "0.1.0",
"description": "Vehicle Lifecycle Model",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion scripts/pkgbump.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ const lernaConfigFile = path.resolve(lernaDirectory, 'lerna.json');
const lernaConfig = require(lernaConfigFile);
const targetVersion = semver.inc(lernaConfig.version, 'patch');
lernaConfig.version = targetVersion;
fs.writeFileSync(lernaConfigFile, JSON.stringify(lernaConfig, null, 2), 'utf8');
fs.writeFileSync(lernaConfigFile, JSON.stringify(lernaConfig, null, 2), 'utf8');

0 comments on commit 81394e3

Please sign in to comment.