green_link_api 0.49.7 → 0.55.0
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/README.md +33 -36
- package/dist/ApiClient.js +3 -6
- package/dist/api/BlockchainApi.js +283 -0
- package/dist/api/EnergyAssetsApi.js +32 -30
- package/dist/api/EnergyDataApi.js +139 -40
- package/dist/api/HealthCheckApi.js +2 -2
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -2
- package/dist/api/LocationsApi.js +9 -9
- package/dist/api/MaintenanceCheckApi.js +2 -2
- package/dist/api/OrganizationprofilesApi.js +7 -7
- package/dist/api/OrganizationsApi.js +31 -31
- package/dist/api/SchemaApi.js +2 -2
- package/dist/api/SentryDebugApi.js +2 -2
- package/dist/api/UploadedfilesApi.js +226 -0
- package/dist/api/UsersApi.js +13 -230
- package/dist/index.js +105 -41
- package/dist/model/BlockchainTransaction.js +172 -0
- package/dist/model/Consumer.js +1 -1
- package/dist/model/ConsumptionDataFileList.js +1 -1
- package/dist/model/ConsumptionDataFromRetailer.js +1 -1
- package/dist/model/ConsumptionDataPointCreate.js +11 -11
- package/dist/model/ConsumptionDataPointListOrDetail.js +20 -13
- package/dist/model/ConsumptionDataPointUpdate.js +11 -11
- package/dist/model/ConsumptionSite.js +1 -1
- package/dist/model/ConsumptionSiteCreate.js +195 -0
- package/dist/model/ConsumptionSiteFileUpload.js +1 -1
- package/dist/model/ConsumptionSiteFromRetailer.js +1 -1
- package/dist/model/ConsumptionSiteListOrDetail.js +1 -1
- package/dist/model/ConsumptionSiteMany.js +1 -1
- package/dist/model/ContentTypeEnum.js +54 -0
- package/dist/model/EmissionFactor.js +1 -1
- package/dist/model/EnergySourcePreference.js +1 -1
- package/dist/model/GetFromEpias.js +1 -1
- package/dist/model/GridOperator.js +1 -1
- package/dist/model/Issuer.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login.js +1 -1
- package/dist/model/MatchRequest.js +1 -1
- package/dist/model/MatchedEnergyDataPoint.js +12 -13
- package/dist/model/MatchingConsumerRequest.js +1 -1
- package/dist/model/MatchingSiteRequest.js +1 -1
- package/dist/model/PaginatedConsumerList.js +1 -1
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +1 -1
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +1 -1
- package/dist/model/PaginatedEmissionFactorList.js +1 -1
- package/dist/model/PaginatedEnergySourcePreferenceList.js +1 -1
- package/dist/model/PaginatedGridOperatorList.js +1 -1
- package/dist/model/PaginatedIssuerList.js +1 -1
- package/dist/model/PaginatedLocationList.js +1 -1
- package/dist/model/PaginatedMatchRequestList.js +1 -1
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +1 -1
- package/dist/model/PaginatedProducerList.js +1 -1
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +104 -0
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +1 -1
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +1 -1
- package/dist/model/PaginatedRetailerList.js +1 -1
- package/dist/model/PaginatedSmartContractList.js +104 -0
- package/dist/model/PaginatedUnprocessedRowList.js +104 -0
- package/dist/model/PaginatedUploadedFileList.js +104 -0
- package/dist/model/PaginatedUserList.js +1 -1
- package/dist/model/PatchedConsumer.js +1 -1
- package/dist/model/PatchedConsumptionDataPointUpdate.js +11 -11
- package/dist/model/PatchedConsumptionSite.js +1 -1
- package/dist/model/PatchedEmissionFactor.js +1 -1
- package/dist/model/PatchedEnergySourcePreference.js +1 -1
- package/dist/model/PatchedGridOperator.js +1 -1
- package/dist/model/PatchedIssuer.js +1 -1
- package/dist/model/PatchedLocation.js +1 -1
- package/dist/model/PatchedProducer.js +1 -1
- package/dist/model/PatchedProductionDataPointUpdate.js +12 -12
- package/dist/model/PatchedProductionSiteUpdate.js +2 -1
- package/dist/model/PatchedRetailer.js +1 -1
- package/dist/model/PatchedSmartContract.js +132 -0
- package/dist/model/PatchedUser.js +3 -1
- package/dist/model/PatchedUserDetail.js +3 -1
- package/dist/model/PriorityEnum.js +6 -0
- package/dist/model/Producer.js +1 -1
- package/dist/model/ProductionDataFileList.js +1 -1
- package/dist/model/ProductionDataFromEpiasRequest.js +167 -0
- package/dist/model/ProductionDataPointCreate.js +12 -12
- package/dist/model/ProductionDataPointListOrDetail.js +21 -14
- package/dist/model/ProductionDataPointUpdate.js +12 -12
- package/dist/model/ProductionSite.js +5 -6
- package/dist/model/ProductionSiteFileUpload.js +1 -1
- package/dist/model/ProductionSiteListOrDetail.js +1 -1
- package/dist/model/ProductionSiteUpdate.js +5 -6
- package/dist/model/Register.js +8 -5
- package/dist/model/Retailer.js +1 -1
- package/dist/model/SmartContract.js +137 -0
- package/dist/model/{VerifyEmail.js → Token.js} +18 -17
- package/dist/model/TypeEnum.js +52 -0
- package/dist/model/UnprocessedRow.js +140 -0
- package/dist/model/UploadedFile.js +166 -0
- package/dist/model/User.js +3 -1
- package/dist/model/UserDetail.js +3 -1
- package/package.json +1 -1
- package/dist/model/JWT.js +0 -103
- package/dist/model/PasswordChange.js +0 -100
- package/dist/model/PasswordReset.js +0 -79
- package/dist/model/PasswordResetConfirm.js +0 -112
- package/dist/model/RestAuthDetail.js +0 -75
- package/dist/model/TokenRefresh.js +0 -87
- package/dist/model/TokenVerify.js +0 -78
|
@@ -7,12 +7,16 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
9
|
|
|
10
|
+
var _BlockchainTransaction = _interopRequireDefault(require("./BlockchainTransaction"));
|
|
11
|
+
|
|
10
12
|
var _ConsumptionSite = _interopRequireDefault(require("./ConsumptionSite"));
|
|
11
13
|
|
|
12
14
|
var _Producer = _interopRequireDefault(require("./Producer"));
|
|
13
15
|
|
|
14
16
|
var _ProductionSite = _interopRequireDefault(require("./ProductionSite"));
|
|
15
17
|
|
|
18
|
+
var _SmartContract = _interopRequireDefault(require("./SmartContract"));
|
|
19
|
+
|
|
16
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
21
|
|
|
18
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -24,7 +28,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
24
28
|
/**
|
|
25
29
|
* The ProductionDataPointListOrDetail model module.
|
|
26
30
|
* @module model/ProductionDataPointListOrDetail
|
|
27
|
-
* @version 0.
|
|
31
|
+
* @version 0.55.0
|
|
28
32
|
*/
|
|
29
33
|
var ProductionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
30
34
|
/**
|
|
@@ -34,11 +38,13 @@ var ProductionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
|
34
38
|
* @param producer {module:model/Producer}
|
|
35
39
|
* @param productionStart {Date}
|
|
36
40
|
* @param productionEnd {Date}
|
|
41
|
+
* @param tx {module:model/BlockchainTransaction}
|
|
42
|
+
* @param minterContract {module:model/SmartContract}
|
|
37
43
|
*/
|
|
38
|
-
function ProductionDataPointListOrDetail(productionSite, producer, productionStart, productionEnd) {
|
|
44
|
+
function ProductionDataPointListOrDetail(productionSite, producer, productionStart, productionEnd, tx, minterContract) {
|
|
39
45
|
_classCallCheck(this, ProductionDataPointListOrDetail);
|
|
40
46
|
|
|
41
|
-
ProductionDataPointListOrDetail.initialize(this, productionSite, producer, productionStart, productionEnd);
|
|
47
|
+
ProductionDataPointListOrDetail.initialize(this, productionSite, producer, productionStart, productionEnd, tx, minterContract);
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Initializes the fields of this object.
|
|
@@ -49,11 +55,13 @@ var ProductionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
|
49
55
|
|
|
50
56
|
_createClass(ProductionDataPointListOrDetail, null, [{
|
|
51
57
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj, productionSite, producer, productionStart, productionEnd) {
|
|
58
|
+
value: function initialize(obj, productionSite, producer, productionStart, productionEnd, tx, minterContract) {
|
|
53
59
|
obj['production_site'] = productionSite;
|
|
54
60
|
obj['producer'] = producer;
|
|
55
61
|
obj['production_start'] = productionStart;
|
|
56
62
|
obj['production_end'] = productionEnd;
|
|
63
|
+
obj['tx'] = tx;
|
|
64
|
+
obj['minter_contract'] = minterContract;
|
|
57
65
|
}
|
|
58
66
|
/**
|
|
59
67
|
* Constructs a <code>ProductionDataPointListOrDetail</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -113,8 +121,8 @@ var ProductionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
|
113
121
|
obj['is_fully_matched'] = _ApiClient["default"].convertToType(data['is_fully_matched'], 'Boolean');
|
|
114
122
|
}
|
|
115
123
|
|
|
116
|
-
if (data.hasOwnProperty('
|
|
117
|
-
obj['
|
|
124
|
+
if (data.hasOwnProperty('tx')) {
|
|
125
|
+
obj['tx'] = _BlockchainTransaction["default"].constructFromObject(data['tx']);
|
|
118
126
|
}
|
|
119
127
|
|
|
120
128
|
if (data.hasOwnProperty('consumption_sites_matched')) {
|
|
@@ -125,8 +133,8 @@ var ProductionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
|
125
133
|
obj['is_settlement_data'] = _ApiClient["default"].convertToType(data['is_settlement_data'], 'Boolean');
|
|
126
134
|
}
|
|
127
135
|
|
|
128
|
-
if (data.hasOwnProperty('
|
|
129
|
-
obj['
|
|
136
|
+
if (data.hasOwnProperty('minter_contract')) {
|
|
137
|
+
obj['minter_contract'] = _SmartContract["default"].constructFromObject(data['minter_contract']);
|
|
130
138
|
}
|
|
131
139
|
|
|
132
140
|
if (data.hasOwnProperty('created_at')) {
|
|
@@ -199,17 +207,16 @@ ProductionDataPointListOrDetail.prototype['amount_produced'] = undefined;
|
|
|
199
207
|
|
|
200
208
|
ProductionDataPointListOrDetail.prototype['amount_matched'] = undefined;
|
|
201
209
|
/**
|
|
202
|
-
* True if
|
|
210
|
+
* True if fully matched. Default False.
|
|
203
211
|
* @member {Boolean} is_fully_matched
|
|
204
212
|
*/
|
|
205
213
|
|
|
206
214
|
ProductionDataPointListOrDetail.prototype['is_fully_matched'] = undefined;
|
|
207
215
|
/**
|
|
208
|
-
*
|
|
209
|
-
* @member {String} production_tx_hash
|
|
216
|
+
* @member {module:model/BlockchainTransaction} tx
|
|
210
217
|
*/
|
|
211
218
|
|
|
212
|
-
ProductionDataPointListOrDetail.prototype['
|
|
219
|
+
ProductionDataPointListOrDetail.prototype['tx'] = undefined;
|
|
213
220
|
/**
|
|
214
221
|
* @member {Array.<module:model/ConsumptionSite>} consumption_sites_matched
|
|
215
222
|
*/
|
|
@@ -222,10 +229,10 @@ ProductionDataPointListOrDetail.prototype['consumption_sites_matched'] = undefin
|
|
|
222
229
|
|
|
223
230
|
ProductionDataPointListOrDetail.prototype['is_settlement_data'] = undefined;
|
|
224
231
|
/**
|
|
225
|
-
* @member {
|
|
232
|
+
* @member {module:model/SmartContract} minter_contract
|
|
226
233
|
*/
|
|
227
234
|
|
|
228
|
-
ProductionDataPointListOrDetail.prototype['
|
|
235
|
+
ProductionDataPointListOrDetail.prototype['minter_contract'] = undefined;
|
|
229
236
|
/**
|
|
230
237
|
* @member {Date} created_at
|
|
231
238
|
*/
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
9
|
|
|
10
|
+
var _SmartContract = _interopRequireDefault(require("./SmartContract"));
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
12
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -18,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
20
|
/**
|
|
19
21
|
* The ProductionDataPointUpdate model module.
|
|
20
22
|
* @module model/ProductionDataPointUpdate
|
|
21
|
-
* @version 0.
|
|
23
|
+
* @version 0.55.0
|
|
22
24
|
*/
|
|
23
25
|
var ProductionDataPointUpdate = /*#__PURE__*/function () {
|
|
24
26
|
/**
|
|
@@ -98,16 +100,16 @@ var ProductionDataPointUpdate = /*#__PURE__*/function () {
|
|
|
98
100
|
obj['is_fully_matched'] = _ApiClient["default"].convertToType(data['is_fully_matched'], 'Boolean');
|
|
99
101
|
}
|
|
100
102
|
|
|
101
|
-
if (data.hasOwnProperty('
|
|
102
|
-
obj['
|
|
103
|
+
if (data.hasOwnProperty('tx')) {
|
|
104
|
+
obj['tx'] = _ApiClient["default"].convertToType(data['tx'], 'String');
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
if (data.hasOwnProperty('is_settlement_data')) {
|
|
106
108
|
obj['is_settlement_data'] = _ApiClient["default"].convertToType(data['is_settlement_data'], 'Boolean');
|
|
107
109
|
}
|
|
108
110
|
|
|
109
|
-
if (data.hasOwnProperty('
|
|
110
|
-
obj['
|
|
111
|
+
if (data.hasOwnProperty('minter_contract')) {
|
|
112
|
+
obj['minter_contract'] = _ApiClient["default"].convertToType(data['minter_contract'], _SmartContract["default"]);
|
|
111
113
|
}
|
|
112
114
|
|
|
113
115
|
if (data.hasOwnProperty('created_at')) {
|
|
@@ -180,17 +182,16 @@ ProductionDataPointUpdate.prototype['amount_produced'] = undefined;
|
|
|
180
182
|
|
|
181
183
|
ProductionDataPointUpdate.prototype['amount_matched'] = undefined;
|
|
182
184
|
/**
|
|
183
|
-
* True if
|
|
185
|
+
* True if fully matched. Default False.
|
|
184
186
|
* @member {Boolean} is_fully_matched
|
|
185
187
|
*/
|
|
186
188
|
|
|
187
189
|
ProductionDataPointUpdate.prototype['is_fully_matched'] = undefined;
|
|
188
190
|
/**
|
|
189
|
-
*
|
|
190
|
-
* @member {String} production_tx_hash
|
|
191
|
+
* @member {String} tx
|
|
191
192
|
*/
|
|
192
193
|
|
|
193
|
-
ProductionDataPointUpdate.prototype['
|
|
194
|
+
ProductionDataPointUpdate.prototype['tx'] = undefined;
|
|
194
195
|
/**
|
|
195
196
|
* True if settlement data. Default False.
|
|
196
197
|
* @member {Boolean} is_settlement_data
|
|
@@ -198,11 +199,10 @@ ProductionDataPointUpdate.prototype['production_tx_hash'] = undefined;
|
|
|
198
199
|
|
|
199
200
|
ProductionDataPointUpdate.prototype['is_settlement_data'] = undefined;
|
|
200
201
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @member {String} token_contract_address
|
|
202
|
+
* @member {module:model/SmartContract} minter_contract
|
|
203
203
|
*/
|
|
204
204
|
|
|
205
|
-
ProductionDataPointUpdate.prototype['
|
|
205
|
+
ProductionDataPointUpdate.prototype['minter_contract'] = undefined;
|
|
206
206
|
/**
|
|
207
207
|
* @member {Date} created_at
|
|
208
208
|
*/
|
|
@@ -20,23 +20,22 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ProductionSite model module.
|
|
22
22
|
* @module model/ProductionSite
|
|
23
|
-
* @version 0.
|
|
23
|
+
* @version 0.55.0
|
|
24
24
|
*/
|
|
25
25
|
var ProductionSite = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
27
27
|
* Constructs a new <code>ProductionSite</code>.
|
|
28
28
|
* @alias module:model/ProductionSite
|
|
29
|
-
* @param producer {String}
|
|
30
29
|
* @param location {module:model/Location}
|
|
31
30
|
* @param name {String} Required. 150 characters or fewer.
|
|
32
31
|
* @param energySource {String}
|
|
33
32
|
* @param technologyOrFuelType {String}
|
|
34
33
|
* @param eic {String} Required. 30 characters or fewer.
|
|
35
34
|
*/
|
|
36
|
-
function ProductionSite(
|
|
35
|
+
function ProductionSite(location, name, energySource, technologyOrFuelType, eic) {
|
|
37
36
|
_classCallCheck(this, ProductionSite);
|
|
38
37
|
|
|
39
|
-
ProductionSite.initialize(this,
|
|
38
|
+
ProductionSite.initialize(this, location, name, energySource, technologyOrFuelType, eic);
|
|
40
39
|
}
|
|
41
40
|
/**
|
|
42
41
|
* Initializes the fields of this object.
|
|
@@ -47,8 +46,7 @@ var ProductionSite = /*#__PURE__*/function () {
|
|
|
47
46
|
|
|
48
47
|
_createClass(ProductionSite, null, [{
|
|
49
48
|
key: "initialize",
|
|
50
|
-
value: function initialize(obj,
|
|
51
|
-
obj['producer'] = producer;
|
|
49
|
+
value: function initialize(obj, location, name, energySource, technologyOrFuelType, eic) {
|
|
52
50
|
obj['location'] = location;
|
|
53
51
|
obj['name'] = name;
|
|
54
52
|
obj['energy_source'] = energySource;
|
|
@@ -191,6 +189,7 @@ ProductionSite.prototype['name'] = undefined;
|
|
|
191
189
|
|
|
192
190
|
ProductionSite.prototype['site_logo'] = undefined;
|
|
193
191
|
/**
|
|
192
|
+
* (Optional) Value should be in KWh.
|
|
194
193
|
* @member {Number} capacity
|
|
195
194
|
*/
|
|
196
195
|
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ProductionSiteFileUpload model module.
|
|
20
20
|
* @module model/ProductionSiteFileUpload
|
|
21
|
-
* @version 0.
|
|
21
|
+
* @version 0.55.0
|
|
22
22
|
*/
|
|
23
23
|
var ProductionSiteFileUpload = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -22,7 +22,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
22
22
|
/**
|
|
23
23
|
* The ProductionSiteListOrDetail model module.
|
|
24
24
|
* @module model/ProductionSiteListOrDetail
|
|
25
|
-
* @version 0.
|
|
25
|
+
* @version 0.55.0
|
|
26
26
|
*/
|
|
27
27
|
var ProductionSiteListOrDetail = /*#__PURE__*/function () {
|
|
28
28
|
/**
|
|
@@ -20,22 +20,21 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ProductionSiteUpdate model module.
|
|
22
22
|
* @module model/ProductionSiteUpdate
|
|
23
|
-
* @version 0.
|
|
23
|
+
* @version 0.55.0
|
|
24
24
|
*/
|
|
25
25
|
var ProductionSiteUpdate = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
27
27
|
* Constructs a new <code>ProductionSiteUpdate</code>.
|
|
28
28
|
* @alias module:model/ProductionSiteUpdate
|
|
29
|
-
* @param producer {String}
|
|
30
29
|
* @param location {module:model/Location}
|
|
31
30
|
* @param name {String} Required. 150 characters or fewer.
|
|
32
31
|
* @param energySource {String}
|
|
33
32
|
* @param technologyOrFuelType {String}
|
|
34
33
|
*/
|
|
35
|
-
function ProductionSiteUpdate(
|
|
34
|
+
function ProductionSiteUpdate(location, name, energySource, technologyOrFuelType) {
|
|
36
35
|
_classCallCheck(this, ProductionSiteUpdate);
|
|
37
36
|
|
|
38
|
-
ProductionSiteUpdate.initialize(this,
|
|
37
|
+
ProductionSiteUpdate.initialize(this, location, name, energySource, technologyOrFuelType);
|
|
39
38
|
}
|
|
40
39
|
/**
|
|
41
40
|
* Initializes the fields of this object.
|
|
@@ -46,8 +45,7 @@ var ProductionSiteUpdate = /*#__PURE__*/function () {
|
|
|
46
45
|
|
|
47
46
|
_createClass(ProductionSiteUpdate, null, [{
|
|
48
47
|
key: "initialize",
|
|
49
|
-
value: function initialize(obj,
|
|
50
|
-
obj['producer'] = producer;
|
|
48
|
+
value: function initialize(obj, location, name, energySource, technologyOrFuelType) {
|
|
51
49
|
obj['location'] = location;
|
|
52
50
|
obj['name'] = name;
|
|
53
51
|
obj['energy_source'] = energySource;
|
|
@@ -189,6 +187,7 @@ ProductionSiteUpdate.prototype['name'] = undefined;
|
|
|
189
187
|
|
|
190
188
|
ProductionSiteUpdate.prototype['site_logo'] = undefined;
|
|
191
189
|
/**
|
|
190
|
+
* (Optional) Value should be in KWh.
|
|
192
191
|
* @member {Number} capacity
|
|
193
192
|
*/
|
|
194
193
|
|
package/dist/model/Register.js
CHANGED
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The Register model module.
|
|
20
20
|
* @module model/Register
|
|
21
|
-
* @version 0.
|
|
21
|
+
* @version 0.55.0
|
|
22
22
|
*/
|
|
23
23
|
var Register = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -26,13 +26,14 @@ var Register = /*#__PURE__*/function () {
|
|
|
26
26
|
* @alias module:model/Register
|
|
27
27
|
* @param firstName {String} Required. 150 characters or fewer.
|
|
28
28
|
* @param lastName {String} Required. 150 characters or fewer.
|
|
29
|
+
* @param email {String} Required.
|
|
29
30
|
* @param password1 {String}
|
|
30
31
|
* @param password2 {String}
|
|
31
32
|
*/
|
|
32
|
-
function Register(firstName, lastName, password1, password2) {
|
|
33
|
+
function Register(firstName, lastName, email, password1, password2) {
|
|
33
34
|
_classCallCheck(this, Register);
|
|
34
35
|
|
|
35
|
-
Register.initialize(this, firstName, lastName, password1, password2);
|
|
36
|
+
Register.initialize(this, firstName, lastName, email, password1, password2);
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* Initializes the fields of this object.
|
|
@@ -43,9 +44,10 @@ var Register = /*#__PURE__*/function () {
|
|
|
43
44
|
|
|
44
45
|
_createClass(Register, null, [{
|
|
45
46
|
key: "initialize",
|
|
46
|
-
value: function initialize(obj, firstName, lastName, password1, password2) {
|
|
47
|
+
value: function initialize(obj, firstName, lastName, email, password1, password2) {
|
|
47
48
|
obj['first_name'] = firstName;
|
|
48
49
|
obj['last_name'] = lastName;
|
|
50
|
+
obj['email'] = email;
|
|
49
51
|
obj['password1'] = password1;
|
|
50
52
|
obj['password2'] = password2;
|
|
51
53
|
}
|
|
@@ -132,12 +134,13 @@ Register.prototype['first_name'] = undefined;
|
|
|
132
134
|
|
|
133
135
|
Register.prototype['last_name'] = undefined;
|
|
134
136
|
/**
|
|
135
|
-
*
|
|
137
|
+
* Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Default is the user's email.
|
|
136
138
|
* @member {String} username
|
|
137
139
|
*/
|
|
138
140
|
|
|
139
141
|
Register.prototype['username'] = undefined;
|
|
140
142
|
/**
|
|
143
|
+
* Required.
|
|
141
144
|
* @member {String} email
|
|
142
145
|
*/
|
|
143
146
|
|
package/dist/model/Retailer.js
CHANGED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
|
|
14
|
+
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); } }
|
|
15
|
+
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The SmartContract model module.
|
|
20
|
+
* @module model/SmartContract
|
|
21
|
+
* @version 0.55.0
|
|
22
|
+
*/
|
|
23
|
+
var SmartContract = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>SmartContract</code>.
|
|
26
|
+
* @alias module:model/SmartContract
|
|
27
|
+
* @param name {String} Required. 150 characters or fewer.
|
|
28
|
+
* @param abi {String}
|
|
29
|
+
*/
|
|
30
|
+
function SmartContract(name, abi) {
|
|
31
|
+
_classCallCheck(this, SmartContract);
|
|
32
|
+
|
|
33
|
+
SmartContract.initialize(this, name, abi);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Initializes the fields of this object.
|
|
37
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
|
+
* Only for internal use.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
_createClass(SmartContract, null, [{
|
|
43
|
+
key: "initialize",
|
|
44
|
+
value: function initialize(obj, name, abi) {
|
|
45
|
+
obj['name'] = name;
|
|
46
|
+
obj['abi'] = abi;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a <code>SmartContract</code> from a plain JavaScript object, optionally creating a new instance.
|
|
50
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
51
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
52
|
+
* @param {module:model/SmartContract} obj Optional instance to populate.
|
|
53
|
+
* @return {module:model/SmartContract} The populated <code>SmartContract</code> instance.
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
}, {
|
|
57
|
+
key: "constructFromObject",
|
|
58
|
+
value: function constructFromObject(data, obj) {
|
|
59
|
+
if (data) {
|
|
60
|
+
obj = obj || new SmartContract();
|
|
61
|
+
|
|
62
|
+
if (data.hasOwnProperty('id')) {
|
|
63
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (data.hasOwnProperty('name')) {
|
|
67
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
71
|
+
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (data.hasOwnProperty('abi')) {
|
|
75
|
+
obj['abi'] = _ApiClient["default"].convertToType(data['abi'], 'String');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (data.hasOwnProperty('is_active')) {
|
|
79
|
+
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (data.hasOwnProperty('created_at')) {
|
|
83
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (data.hasOwnProperty('updated_at')) {
|
|
87
|
+
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return obj;
|
|
92
|
+
}
|
|
93
|
+
}]);
|
|
94
|
+
|
|
95
|
+
return SmartContract;
|
|
96
|
+
}();
|
|
97
|
+
/**
|
|
98
|
+
* @member {String} id
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
SmartContract.prototype['id'] = undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Required. 150 characters or fewer.
|
|
105
|
+
* @member {String} name
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
SmartContract.prototype['name'] = undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Production site's blockchain account address.
|
|
111
|
+
* @member {String} blockchain_account_address
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
SmartContract.prototype['blockchain_account_address'] = undefined;
|
|
115
|
+
/**
|
|
116
|
+
* @member {String} abi
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
SmartContract.prototype['abi'] = undefined;
|
|
120
|
+
/**
|
|
121
|
+
* True if contract is active. Default True.
|
|
122
|
+
* @member {Boolean} is_active
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
SmartContract.prototype['is_active'] = undefined;
|
|
126
|
+
/**
|
|
127
|
+
* @member {Date} created_at
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
SmartContract.prototype['created_at'] = undefined;
|
|
131
|
+
/**
|
|
132
|
+
* @member {Date} updated_at
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
SmartContract.prototype['updated_at'] = undefined;
|
|
136
|
+
var _default = SmartContract;
|
|
137
|
+
exports["default"] = _default;
|
|
@@ -16,20 +16,21 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
16
16
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* The
|
|
20
|
-
* @module model/
|
|
21
|
-
* @version 0.
|
|
19
|
+
* The Token model module.
|
|
20
|
+
* @module model/Token
|
|
21
|
+
* @version 0.55.0
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var Token = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
|
-
* Constructs a new <code>
|
|
26
|
-
*
|
|
25
|
+
* Constructs a new <code>Token</code>.
|
|
26
|
+
* Serializer for Token model.
|
|
27
|
+
* @alias module:model/Token
|
|
27
28
|
* @param key {String}
|
|
28
29
|
*/
|
|
29
|
-
function
|
|
30
|
-
_classCallCheck(this,
|
|
30
|
+
function Token(key) {
|
|
31
|
+
_classCallCheck(this, Token);
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
Token.initialize(this, key);
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
* Initializes the fields of this object.
|
|
@@ -38,24 +39,24 @@ var VerifyEmail = /*#__PURE__*/function () {
|
|
|
38
39
|
*/
|
|
39
40
|
|
|
40
41
|
|
|
41
|
-
_createClass(
|
|
42
|
+
_createClass(Token, null, [{
|
|
42
43
|
key: "initialize",
|
|
43
44
|
value: function initialize(obj, key) {
|
|
44
45
|
obj['key'] = key;
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
|
-
* Constructs a <code>
|
|
48
|
+
* Constructs a <code>Token</code> from a plain JavaScript object, optionally creating a new instance.
|
|
48
49
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
49
50
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
50
|
-
* @param {module:model/
|
|
51
|
-
* @return {module:model/
|
|
51
|
+
* @param {module:model/Token} obj Optional instance to populate.
|
|
52
|
+
* @return {module:model/Token} The populated <code>Token</code> instance.
|
|
52
53
|
*/
|
|
53
54
|
|
|
54
55
|
}, {
|
|
55
56
|
key: "constructFromObject",
|
|
56
57
|
value: function constructFromObject(data, obj) {
|
|
57
58
|
if (data) {
|
|
58
|
-
obj = obj || new
|
|
59
|
+
obj = obj || new Token();
|
|
59
60
|
|
|
60
61
|
if (data.hasOwnProperty('key')) {
|
|
61
62
|
obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
|
|
@@ -66,13 +67,13 @@ var VerifyEmail = /*#__PURE__*/function () {
|
|
|
66
67
|
}
|
|
67
68
|
}]);
|
|
68
69
|
|
|
69
|
-
return
|
|
70
|
+
return Token;
|
|
70
71
|
}();
|
|
71
72
|
/**
|
|
72
73
|
* @member {String} key
|
|
73
74
|
*/
|
|
74
75
|
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
var _default =
|
|
77
|
+
Token.prototype['key'] = undefined;
|
|
78
|
+
var _default = Token;
|
|
78
79
|
exports["default"] = _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
|
|
14
|
+
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); } }
|
|
15
|
+
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Enum class TypeEnum.
|
|
22
|
+
* @enum {}
|
|
23
|
+
* @readonly
|
|
24
|
+
*/
|
|
25
|
+
var TypeEnum = /*#__PURE__*/function () {
|
|
26
|
+
function TypeEnum() {
|
|
27
|
+
_classCallCheck(this, TypeEnum);
|
|
28
|
+
|
|
29
|
+
_defineProperty(this, "tokenize_consumption", "tokenize_consumption");
|
|
30
|
+
|
|
31
|
+
_defineProperty(this, "tokenize_production", "tokenize_production");
|
|
32
|
+
|
|
33
|
+
_defineProperty(this, "transfer_matched_tokens", "transfer_matched_tokens");
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
_createClass(TypeEnum, null, [{
|
|
37
|
+
key: "constructFromObject",
|
|
38
|
+
value:
|
|
39
|
+
/**
|
|
40
|
+
* Returns a <code>TypeEnum</code> enum value from a Javascript object name.
|
|
41
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
42
|
+
* @return {module:model/TypeEnum} The enum <code>TypeEnum</code> value.
|
|
43
|
+
*/
|
|
44
|
+
function constructFromObject(object) {
|
|
45
|
+
return object;
|
|
46
|
+
}
|
|
47
|
+
}]);
|
|
48
|
+
|
|
49
|
+
return TypeEnum;
|
|
50
|
+
}();
|
|
51
|
+
|
|
52
|
+
exports["default"] = TypeEnum;
|