starhs-models
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.ProfileType = exports.ProfileContext = exports.Profile = undefined; | ||
exports.ProfileType = exports.Profile = undefined; | ||
@@ -45,3 +45,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
this.avatar = avatar; | ||
this.$context = ProfileContext; | ||
this.$context = this.constructor.$context; | ||
} | ||
@@ -99,2 +99,12 @@ | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
}, { | ||
key: '$context', | ||
get: function get() { | ||
return 'https://github.com/ResourcefulHumans/staRHs-models#Profile'; | ||
} | ||
}]); | ||
@@ -105,5 +115,4 @@ | ||
var ProfileContext = exports.ProfileContext = 'https://github.com/ResourcefulHumans/staRHs-models#Profile'; | ||
var ProfileType = exports.ProfileType = (0, _tcomb.irreducible)('ProfileType', function (x) { | ||
return x instanceof Profile; | ||
}); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.StaRHType = exports.StaRHContext = exports.StaRH = undefined; | ||
exports.StaRHType = exports.StaRH = undefined; | ||
@@ -39,3 +39,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
this.message = message; | ||
this.$context = StaRHContext; | ||
this.$context = this.constructor.$context; | ||
} | ||
@@ -54,2 +54,12 @@ | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
}, { | ||
key: '$context', | ||
get: function get() { | ||
return 'https://github.com/ResourcefulHumans/staRHs-models#StaRH'; | ||
} | ||
}]); | ||
@@ -60,5 +70,4 @@ | ||
var StaRHContext = exports.StaRHContext = 'https://github.com/ResourcefulHumans/staRHs-models#StaRH'; | ||
var StaRHType = exports.StaRHType = (0, _tcomb.irreducible)('StaRHType', function (x) { | ||
return x instanceof StaRH; | ||
}); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.StaRHsStatusType = exports.StaRHsStatusContext = exports.StaRHsStatus = undefined; | ||
exports.StaRHsStatusType = exports.StaRHsStatus = undefined; | ||
@@ -42,3 +42,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
this.totalReceived = totalReceived; | ||
this.$context = StaRHsStatusContext; | ||
this.$context = this.constructor.$context; | ||
} | ||
@@ -57,2 +57,12 @@ | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
}, { | ||
key: '$context', | ||
get: function get() { | ||
return 'https://github.com/ResourcefulHumans/staRHs-models#StaRHsStatus'; | ||
} | ||
}]); | ||
@@ -63,5 +73,4 @@ | ||
var StaRHsStatusContext = exports.StaRHsStatusContext = 'https://github.com/ResourcefulHumans/staRHs-models#StaRHsStatus'; | ||
var StaRHsStatusType = exports.StaRHsStatusType = (0, _tcomb.irreducible)('StaRHsStatusType', function (x) { | ||
return x instanceof StaRHsStatus; | ||
}); |
{ | ||
"name": "starhs-models", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Shared models for the staRHs API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
10926
211