green_link_api 1.0.0 → 1.0.1
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 +72 -33
- package/dist/ApiClient.js +70 -24
- package/dist/api/BlockchainApi.js +283 -0
- package/dist/api/EnergyAssetsApi.js +196 -44
- package/dist/api/EnergyDataApi.js +354 -46
- package/dist/api/HealthCheckApi.js +68 -0
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +69 -0
- package/dist/api/LocationsApi.js +10 -10
- package/dist/api/LogsApi.js +428 -0
- package/dist/api/MaintenanceCheckApi.js +68 -0
- package/dist/api/OrganizationprofilesApi.js +8 -8
- package/dist/api/OrganizationsApi.js +47 -47
- package/dist/api/SchemaApi.js +6 -6
- package/dist/api/SentryDebugApi.js +68 -0
- package/dist/api/UsersApi.js +74 -256
- package/dist/index.js +267 -67
- package/dist/model/BlockchainTransaction.js +172 -0
- package/dist/model/Consumer.js +7 -7
- package/dist/model/ConsumptionDataFileList.js +132 -0
- package/dist/model/ConsumptionDataFromRetailerRequest.js +110 -0
- package/dist/model/{RestAuthDetail.js → ConsumptionDataFromRetailerResponse.js} +26 -21
- package/dist/model/ConsumptionDataPointCreate.js +12 -12
- package/dist/model/ConsumptionDataPointListOrDetail.js +21 -14
- package/dist/model/ConsumptionDataPointUpdate.js +12 -12
- package/dist/model/ConsumptionSite.js +20 -21
- package/dist/model/ConsumptionSiteCreate.js +195 -0
- package/dist/model/ConsumptionSiteFileUpload.js +133 -0
- package/dist/model/{TokenRefresh.js → ConsumptionSiteFromRetailer.js} +25 -33
- package/dist/model/ConsumptionSiteListOrDetail.js +15 -33
- package/dist/model/ConsumptionSiteMany.js +195 -0
- package/dist/model/ContentTypeEnum.js +54 -0
- package/dist/model/EmissionFactor.js +6 -8
- package/dist/model/EnergySourceEnum.js +1 -1
- package/dist/model/EnergySourcePreference.js +2 -2
- package/dist/model/GetFromEpias.js +98 -0
- package/dist/model/GridOperator.js +6 -6
- package/dist/model/Issuer.js +6 -6
- package/dist/model/Location.js +6 -8
- package/dist/model/Login.js +2 -2
- package/dist/model/MatchRequest.js +299 -0
- package/dist/model/{CountryEnum.js → MatchTypeEnum.js} +12 -12
- package/dist/model/MatchedEnergyDataPoint.js +13 -14
- package/dist/model/MatchingConsumerRequest.js +122 -0
- package/dist/model/{MatchingRequest.js → MatchingSiteRequest.js} +32 -21
- package/dist/model/OrganizationTypeEnum.js +1 -1
- package/dist/model/PaginatedConsumerList.js +2 -2
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedEmissionFactorList.js +2 -2
- package/dist/model/PaginatedEnergySourcePreferenceList.js +2 -2
- package/dist/model/PaginatedGridOperatorList.js +2 -2
- package/dist/model/PaginatedIssuerList.js +2 -2
- package/dist/model/PaginatedLocationList.js +2 -2
- package/dist/model/PaginatedMatchRequestList.js +104 -0
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +2 -2
- package/dist/model/PaginatedProducerList.js +2 -2
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +104 -0
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedRetailerList.js +2 -2
- 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 +2 -2
- package/dist/model/PatchedConsumer.js +7 -7
- package/dist/model/PatchedConsumptionDataPointUpdate.js +12 -12
- package/dist/model/PatchedConsumptionSite.js +15 -16
- package/dist/model/PatchedEmissionFactor.js +5 -7
- package/dist/model/PatchedEnergySourcePreference.js +2 -2
- package/dist/model/PatchedGridOperator.js +6 -6
- package/dist/model/PatchedIssuer.js +6 -6
- package/dist/model/PatchedLocation.js +5 -7
- package/dist/model/PatchedProducer.js +6 -6
- package/dist/model/PatchedProductionDataPointUpdate.js +13 -13
- package/dist/model/{PatchedProductionSite.js → PatchedProductionSiteUpdate.js} +60 -45
- package/dist/model/PatchedRetailer.js +16 -6
- package/dist/model/PatchedSmartContract.js +134 -0
- package/dist/model/PatchedUser.js +13 -2
- package/dist/model/PatchedUserDetail.js +13 -2
- package/dist/model/PriorityEnum.js +7 -1
- package/dist/model/Producer.js +6 -6
- package/dist/model/ProductionDataFileList.js +132 -0
- package/dist/model/ProductionDataFromEpiasRequest.js +167 -0
- package/dist/model/ProductionDataPointCreate.js +13 -13
- package/dist/model/ProductionDataPointListOrDetail.js +24 -21
- package/dist/model/ProductionDataPointUpdate.js +13 -13
- package/dist/model/ProductionSite.js +37 -24
- package/dist/model/ProductionSiteFileUpload.js +177 -0
- package/dist/model/ProductionSiteListOrDetail.js +30 -43
- package/dist/model/ProductionSiteUpdate.js +245 -0
- package/dist/model/Register.js +18 -6
- package/dist/model/Retailer.js +16 -6
- package/dist/model/SmartContract.js +139 -0
- package/dist/model/StatusEnum.js +52 -0
- package/dist/model/{VerifyEmail.js → Token.js} +19 -18
- package/dist/model/TypeEnum.js +52 -0
- package/dist/model/UnprocessedRow.js +140 -0
- package/dist/model/UploadedFile.js +154 -0
- package/dist/model/User.js +13 -2
- package/dist/model/UserDetail.js +13 -2
- package/package.json +4 -4
- 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/TechnologyOrFuelTypeEnum.js +0 -170
- package/dist/model/TokenVerify.js +0 -78
|
@@ -7,6 +7,8 @@ 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 _Consumer = _interopRequireDefault(require("./Consumer"));
|
|
11
13
|
|
|
12
14
|
var _ConsumptionSite = _interopRequireDefault(require("./ConsumptionSite"));
|
|
@@ -15,18 +17,20 @@ var _ProductionSite = _interopRequireDefault(require("./ProductionSite"));
|
|
|
15
17
|
|
|
16
18
|
var _Retailer = _interopRequireDefault(require("./Retailer"));
|
|
17
19
|
|
|
20
|
+
var _SmartContract = _interopRequireDefault(require("./SmartContract"));
|
|
21
|
+
|
|
18
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
23
|
|
|
20
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
25
|
|
|
22
26
|
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); } }
|
|
23
27
|
|
|
24
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
29
|
|
|
26
30
|
/**
|
|
27
31
|
* The ConsumptionDataPointListOrDetail model module.
|
|
28
32
|
* @module model/ConsumptionDataPointListOrDetail
|
|
29
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.1
|
|
30
34
|
*/
|
|
31
35
|
var ConsumptionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
32
36
|
/**
|
|
@@ -37,11 +41,13 @@ var ConsumptionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
|
37
41
|
* @param retailer {module:model/Retailer}
|
|
38
42
|
* @param consumptionStart {Date}
|
|
39
43
|
* @param consumptionEnd {Date}
|
|
44
|
+
* @param tx {module:model/BlockchainTransaction}
|
|
45
|
+
* @param minterContract {module:model/SmartContract}
|
|
40
46
|
*/
|
|
41
|
-
function ConsumptionDataPointListOrDetail(consumptionSite, consumer, retailer, consumptionStart, consumptionEnd) {
|
|
47
|
+
function ConsumptionDataPointListOrDetail(consumptionSite, consumer, retailer, consumptionStart, consumptionEnd, tx, minterContract) {
|
|
42
48
|
_classCallCheck(this, ConsumptionDataPointListOrDetail);
|
|
43
49
|
|
|
44
|
-
ConsumptionDataPointListOrDetail.initialize(this, consumptionSite, consumer, retailer, consumptionStart, consumptionEnd);
|
|
50
|
+
ConsumptionDataPointListOrDetail.initialize(this, consumptionSite, consumer, retailer, consumptionStart, consumptionEnd, tx, minterContract);
|
|
45
51
|
}
|
|
46
52
|
/**
|
|
47
53
|
* Initializes the fields of this object.
|
|
@@ -52,12 +58,14 @@ var ConsumptionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
|
52
58
|
|
|
53
59
|
_createClass(ConsumptionDataPointListOrDetail, null, [{
|
|
54
60
|
key: "initialize",
|
|
55
|
-
value: function initialize(obj, consumptionSite, consumer, retailer, consumptionStart, consumptionEnd) {
|
|
61
|
+
value: function initialize(obj, consumptionSite, consumer, retailer, consumptionStart, consumptionEnd, tx, minterContract) {
|
|
56
62
|
obj['consumption_site'] = consumptionSite;
|
|
57
63
|
obj['consumer'] = consumer;
|
|
58
64
|
obj['retailer'] = retailer;
|
|
59
65
|
obj['consumption_start'] = consumptionStart;
|
|
60
66
|
obj['consumption_end'] = consumptionEnd;
|
|
67
|
+
obj['tx'] = tx;
|
|
68
|
+
obj['minter_contract'] = minterContract;
|
|
61
69
|
}
|
|
62
70
|
/**
|
|
63
71
|
* Constructs a <code>ConsumptionDataPointListOrDetail</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -141,16 +149,16 @@ var ConsumptionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
|
141
149
|
obj['amount_consumed'] = _ApiClient["default"].convertToType(data['amount_consumed'], 'Number');
|
|
142
150
|
}
|
|
143
151
|
|
|
144
|
-
if (data.hasOwnProperty('
|
|
145
|
-
obj['
|
|
152
|
+
if (data.hasOwnProperty('tx')) {
|
|
153
|
+
obj['tx'] = _BlockchainTransaction["default"].constructFromObject(data['tx']);
|
|
146
154
|
}
|
|
147
155
|
|
|
148
156
|
if (data.hasOwnProperty('is_settlement_data')) {
|
|
149
157
|
obj['is_settlement_data'] = _ApiClient["default"].convertToType(data['is_settlement_data'], 'Boolean');
|
|
150
158
|
}
|
|
151
159
|
|
|
152
|
-
if (data.hasOwnProperty('
|
|
153
|
-
obj['
|
|
160
|
+
if (data.hasOwnProperty('minter_contract')) {
|
|
161
|
+
obj['minter_contract'] = _SmartContract["default"].constructFromObject(data['minter_contract']);
|
|
154
162
|
}
|
|
155
163
|
|
|
156
164
|
if (data.hasOwnProperty('created_at')) {
|
|
@@ -266,11 +274,10 @@ ConsumptionDataPointListOrDetail.prototype['consumption_end'] = undefined;
|
|
|
266
274
|
|
|
267
275
|
ConsumptionDataPointListOrDetail.prototype['amount_consumed'] = undefined;
|
|
268
276
|
/**
|
|
269
|
-
*
|
|
270
|
-
* @member {String} consumption_tx_hash
|
|
277
|
+
* @member {module:model/BlockchainTransaction} tx
|
|
271
278
|
*/
|
|
272
279
|
|
|
273
|
-
ConsumptionDataPointListOrDetail.prototype['
|
|
280
|
+
ConsumptionDataPointListOrDetail.prototype['tx'] = undefined;
|
|
274
281
|
/**
|
|
275
282
|
* True if settlement data. Default False.
|
|
276
283
|
* @member {Boolean} is_settlement_data
|
|
@@ -278,10 +285,10 @@ ConsumptionDataPointListOrDetail.prototype['consumption_tx_hash'] = undefined;
|
|
|
278
285
|
|
|
279
286
|
ConsumptionDataPointListOrDetail.prototype['is_settlement_data'] = undefined;
|
|
280
287
|
/**
|
|
281
|
-
* @member {
|
|
288
|
+
* @member {module:model/SmartContract} minter_contract
|
|
282
289
|
*/
|
|
283
290
|
|
|
284
|
-
ConsumptionDataPointListOrDetail.prototype['
|
|
291
|
+
ConsumptionDataPointListOrDetail.prototype['minter_contract'] = undefined;
|
|
285
292
|
/**
|
|
286
293
|
* @member {Date} created_at
|
|
287
294
|
*/
|
|
@@ -7,18 +7,20 @@ 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"); } }
|
|
13
15
|
|
|
14
16
|
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
17
|
|
|
16
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
18
|
+
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
19
|
|
|
18
20
|
/**
|
|
19
21
|
* The ConsumptionDataPointUpdate model module.
|
|
20
22
|
* @module model/ConsumptionDataPointUpdate
|
|
21
|
-
* @version 1.0.
|
|
23
|
+
* @version 1.0.1
|
|
22
24
|
*/
|
|
23
25
|
var ConsumptionDataPointUpdate = /*#__PURE__*/function () {
|
|
24
26
|
/**
|
|
@@ -122,16 +124,16 @@ var ConsumptionDataPointUpdate = /*#__PURE__*/function () {
|
|
|
122
124
|
obj['amount_consumed'] = _ApiClient["default"].convertToType(data['amount_consumed'], 'Number');
|
|
123
125
|
}
|
|
124
126
|
|
|
125
|
-
if (data.hasOwnProperty('
|
|
126
|
-
obj['
|
|
127
|
+
if (data.hasOwnProperty('tx')) {
|
|
128
|
+
obj['tx'] = _ApiClient["default"].convertToType(data['tx'], 'String');
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
if (data.hasOwnProperty('is_settlement_data')) {
|
|
130
132
|
obj['is_settlement_data'] = _ApiClient["default"].convertToType(data['is_settlement_data'], 'Boolean');
|
|
131
133
|
}
|
|
132
134
|
|
|
133
|
-
if (data.hasOwnProperty('
|
|
134
|
-
obj['
|
|
135
|
+
if (data.hasOwnProperty('minter_contract')) {
|
|
136
|
+
obj['minter_contract'] = _ApiClient["default"].convertToType(data['minter_contract'], _SmartContract["default"]);
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
if (data.hasOwnProperty('created_at')) {
|
|
@@ -247,11 +249,10 @@ ConsumptionDataPointUpdate.prototype['consumption_end'] = undefined;
|
|
|
247
249
|
|
|
248
250
|
ConsumptionDataPointUpdate.prototype['amount_consumed'] = undefined;
|
|
249
251
|
/**
|
|
250
|
-
*
|
|
251
|
-
* @member {String} consumption_tx_hash
|
|
252
|
+
* @member {String} tx
|
|
252
253
|
*/
|
|
253
254
|
|
|
254
|
-
ConsumptionDataPointUpdate.prototype['
|
|
255
|
+
ConsumptionDataPointUpdate.prototype['tx'] = undefined;
|
|
255
256
|
/**
|
|
256
257
|
* True if settlement data. Default False.
|
|
257
258
|
* @member {Boolean} is_settlement_data
|
|
@@ -259,11 +260,10 @@ ConsumptionDataPointUpdate.prototype['consumption_tx_hash'] = undefined;
|
|
|
259
260
|
|
|
260
261
|
ConsumptionDataPointUpdate.prototype['is_settlement_data'] = undefined;
|
|
261
262
|
/**
|
|
262
|
-
*
|
|
263
|
-
* @member {String} token_contract_address
|
|
263
|
+
* @member {module:model/SmartContract} minter_contract
|
|
264
264
|
*/
|
|
265
265
|
|
|
266
|
-
ConsumptionDataPointUpdate.prototype['
|
|
266
|
+
ConsumptionDataPointUpdate.prototype['minter_contract'] = undefined;
|
|
267
267
|
/**
|
|
268
268
|
* @member {Date} created_at
|
|
269
269
|
*/
|
|
@@ -15,12 +15,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
15
15
|
|
|
16
16
|
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); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionSite model module.
|
|
22
22
|
* @module model/ConsumptionSite
|
|
23
|
-
* @version 1.0.
|
|
23
|
+
* @version 1.0.1
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionSite = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -28,12 +28,12 @@ var ConsumptionSite = /*#__PURE__*/function () {
|
|
|
28
28
|
* @alias module:model/ConsumptionSite
|
|
29
29
|
* @param location {module:model/Location}
|
|
30
30
|
* @param name {String} Required. 150 characters or fewer.
|
|
31
|
-
* @param
|
|
31
|
+
* @param eic {String} Required. 30 characters or fewer.
|
|
32
32
|
*/
|
|
33
|
-
function ConsumptionSite(location, name,
|
|
33
|
+
function ConsumptionSite(location, name, eic) {
|
|
34
34
|
_classCallCheck(this, ConsumptionSite);
|
|
35
35
|
|
|
36
|
-
ConsumptionSite.initialize(this, location, name,
|
|
36
|
+
ConsumptionSite.initialize(this, location, name, eic);
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Initializes the fields of this object.
|
|
@@ -44,10 +44,10 @@ var ConsumptionSite = /*#__PURE__*/function () {
|
|
|
44
44
|
|
|
45
45
|
_createClass(ConsumptionSite, null, [{
|
|
46
46
|
key: "initialize",
|
|
47
|
-
value: function initialize(obj, location, name,
|
|
47
|
+
value: function initialize(obj, location, name, eic) {
|
|
48
48
|
obj['location'] = location;
|
|
49
49
|
obj['name'] = name;
|
|
50
|
-
obj['
|
|
50
|
+
obj['eic'] = eic;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Constructs a <code>ConsumptionSite</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -91,16 +91,16 @@ var ConsumptionSite = /*#__PURE__*/function () {
|
|
|
91
91
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
if (data.hasOwnProperty('
|
|
95
|
-
obj['
|
|
94
|
+
if (data.hasOwnProperty('site_logo')) {
|
|
95
|
+
obj['site_logo'] = _ApiClient["default"].convertToType(data['site_logo'], 'String');
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
if (data.hasOwnProperty('
|
|
99
|
-
obj['
|
|
98
|
+
if (data.hasOwnProperty('eic')) {
|
|
99
|
+
obj['eic'] = _ApiClient["default"].convertToType(data['eic'], 'String');
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
if (data.hasOwnProperty('
|
|
103
|
-
obj['
|
|
102
|
+
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
103
|
+
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
if (data.hasOwnProperty('is_active')) {
|
|
@@ -160,22 +160,21 @@ ConsumptionSite.prototype['location'] = undefined;
|
|
|
160
160
|
|
|
161
161
|
ConsumptionSite.prototype['name'] = undefined;
|
|
162
162
|
/**
|
|
163
|
-
*
|
|
164
|
-
* @member {String} meter_code
|
|
163
|
+
* @member {String} site_logo
|
|
165
164
|
*/
|
|
166
165
|
|
|
167
|
-
ConsumptionSite.prototype['
|
|
166
|
+
ConsumptionSite.prototype['site_logo'] = undefined;
|
|
168
167
|
/**
|
|
169
|
-
*
|
|
168
|
+
* Required. 30 characters or fewer.
|
|
169
|
+
* @member {String} eic
|
|
170
170
|
*/
|
|
171
171
|
|
|
172
|
-
ConsumptionSite.prototype['
|
|
172
|
+
ConsumptionSite.prototype['eic'] = undefined;
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
175
|
-
* @member {Number} nonce
|
|
174
|
+
* @member {String} blockchain_account_address
|
|
176
175
|
*/
|
|
177
176
|
|
|
178
|
-
ConsumptionSite.prototype['
|
|
177
|
+
ConsumptionSite.prototype['blockchain_account_address'] = undefined;
|
|
179
178
|
/**
|
|
180
179
|
* True if organization is active. Default True.
|
|
181
180
|
* @member {Boolean} is_active
|
|
@@ -0,0 +1,195 @@
|
|
|
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
|
+
var _Location = _interopRequireDefault(require("./Location"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
|
|
16
|
+
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); } }
|
|
17
|
+
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The ConsumptionSiteCreate model module.
|
|
22
|
+
* @module model/ConsumptionSiteCreate
|
|
23
|
+
* @version 1.0.1
|
|
24
|
+
*/
|
|
25
|
+
var ConsumptionSiteCreate = /*#__PURE__*/function () {
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new <code>ConsumptionSiteCreate</code>.
|
|
28
|
+
* @alias module:model/ConsumptionSiteCreate
|
|
29
|
+
* @param location {module:model/Location}
|
|
30
|
+
* @param name {String} Required. 150 characters or fewer.
|
|
31
|
+
* @param eic {String} Required. 30 characters or fewer.
|
|
32
|
+
*/
|
|
33
|
+
function ConsumptionSiteCreate(location, name, eic) {
|
|
34
|
+
_classCallCheck(this, ConsumptionSiteCreate);
|
|
35
|
+
|
|
36
|
+
ConsumptionSiteCreate.initialize(this, location, name, eic);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Initializes the fields of this object.
|
|
40
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
|
+
* Only for internal use.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
_createClass(ConsumptionSiteCreate, null, [{
|
|
46
|
+
key: "initialize",
|
|
47
|
+
value: function initialize(obj, location, name, eic) {
|
|
48
|
+
obj['location'] = location;
|
|
49
|
+
obj['name'] = name;
|
|
50
|
+
obj['eic'] = eic;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Constructs a <code>ConsumptionSiteCreate</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
55
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
56
|
+
* @param {module:model/ConsumptionSiteCreate} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/ConsumptionSiteCreate} The populated <code>ConsumptionSiteCreate</code> instance.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new ConsumptionSiteCreate();
|
|
65
|
+
|
|
66
|
+
if (data.hasOwnProperty('id')) {
|
|
67
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (data.hasOwnProperty('consumer')) {
|
|
71
|
+
obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (data.hasOwnProperty('grid_operator')) {
|
|
75
|
+
obj['grid_operator'] = _ApiClient["default"].convertToType(data['grid_operator'], 'String');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (data.hasOwnProperty('retailer')) {
|
|
79
|
+
obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (data.hasOwnProperty('issuer')) {
|
|
83
|
+
obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (data.hasOwnProperty('location')) {
|
|
87
|
+
obj['location'] = _Location["default"].constructFromObject(data['location']);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (data.hasOwnProperty('name')) {
|
|
91
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (data.hasOwnProperty('site_logo')) {
|
|
95
|
+
obj['site_logo'] = _ApiClient["default"].convertToType(data['site_logo'], 'String');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (data.hasOwnProperty('eic')) {
|
|
99
|
+
obj['eic'] = _ApiClient["default"].convertToType(data['eic'], 'String');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
103
|
+
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (data.hasOwnProperty('is_active')) {
|
|
107
|
+
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (data.hasOwnProperty('created_at')) {
|
|
111
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (data.hasOwnProperty('updated_at')) {
|
|
115
|
+
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return obj;
|
|
120
|
+
}
|
|
121
|
+
}]);
|
|
122
|
+
|
|
123
|
+
return ConsumptionSiteCreate;
|
|
124
|
+
}();
|
|
125
|
+
/**
|
|
126
|
+
* @member {String} id
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
ConsumptionSiteCreate.prototype['id'] = undefined;
|
|
131
|
+
/**
|
|
132
|
+
* @member {String} consumer
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
ConsumptionSiteCreate.prototype['consumer'] = undefined;
|
|
136
|
+
/**
|
|
137
|
+
* @member {String} grid_operator
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
ConsumptionSiteCreate.prototype['grid_operator'] = undefined;
|
|
141
|
+
/**
|
|
142
|
+
* @member {String} retailer
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
ConsumptionSiteCreate.prototype['retailer'] = undefined;
|
|
146
|
+
/**
|
|
147
|
+
* @member {String} issuer
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
ConsumptionSiteCreate.prototype['issuer'] = undefined;
|
|
151
|
+
/**
|
|
152
|
+
* @member {module:model/Location} location
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
ConsumptionSiteCreate.prototype['location'] = undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Required. 150 characters or fewer.
|
|
158
|
+
* @member {String} name
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
ConsumptionSiteCreate.prototype['name'] = undefined;
|
|
162
|
+
/**
|
|
163
|
+
* @member {String} site_logo
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
ConsumptionSiteCreate.prototype['site_logo'] = undefined;
|
|
167
|
+
/**
|
|
168
|
+
* Required. 30 characters or fewer.
|
|
169
|
+
* @member {String} eic
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
ConsumptionSiteCreate.prototype['eic'] = undefined;
|
|
173
|
+
/**
|
|
174
|
+
* @member {String} blockchain_account_address
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
ConsumptionSiteCreate.prototype['blockchain_account_address'] = undefined;
|
|
178
|
+
/**
|
|
179
|
+
* True if organization is active. Default True.
|
|
180
|
+
* @member {Boolean} is_active
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
ConsumptionSiteCreate.prototype['is_active'] = undefined;
|
|
184
|
+
/**
|
|
185
|
+
* @member {Date} created_at
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
ConsumptionSiteCreate.prototype['created_at'] = undefined;
|
|
189
|
+
/**
|
|
190
|
+
* @member {Date} updated_at
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
ConsumptionSiteCreate.prototype['updated_at'] = undefined;
|
|
194
|
+
var _default = ConsumptionSiteCreate;
|
|
195
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,133 @@
|
|
|
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 ConsumptionSiteFileUpload model module.
|
|
20
|
+
* @module model/ConsumptionSiteFileUpload
|
|
21
|
+
* @version 1.0.1
|
|
22
|
+
*/
|
|
23
|
+
var ConsumptionSiteFileUpload = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>ConsumptionSiteFileUpload</code>.
|
|
26
|
+
* @alias module:model/ConsumptionSiteFileUpload
|
|
27
|
+
* @param file {String}
|
|
28
|
+
* @param consumer {String}
|
|
29
|
+
* @param eicColumnName {String}
|
|
30
|
+
* @param nameColumnName {String}
|
|
31
|
+
* @param latitudeColumnName {String}
|
|
32
|
+
* @param longitudeColumnName {String}
|
|
33
|
+
*/
|
|
34
|
+
function ConsumptionSiteFileUpload(file, consumer, eicColumnName, nameColumnName, latitudeColumnName, longitudeColumnName) {
|
|
35
|
+
_classCallCheck(this, ConsumptionSiteFileUpload);
|
|
36
|
+
|
|
37
|
+
ConsumptionSiteFileUpload.initialize(this, file, consumer, eicColumnName, nameColumnName, latitudeColumnName, longitudeColumnName);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Initializes the fields of this object.
|
|
41
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
42
|
+
* Only for internal use.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
_createClass(ConsumptionSiteFileUpload, null, [{
|
|
47
|
+
key: "initialize",
|
|
48
|
+
value: function initialize(obj, file, consumer, eicColumnName, nameColumnName, latitudeColumnName, longitudeColumnName) {
|
|
49
|
+
obj['file'] = file;
|
|
50
|
+
obj['consumer'] = consumer;
|
|
51
|
+
obj['eic_column_name'] = eicColumnName;
|
|
52
|
+
obj['name_column_name'] = nameColumnName;
|
|
53
|
+
obj['latitude_column_name'] = latitudeColumnName;
|
|
54
|
+
obj['longitude_column_name'] = longitudeColumnName;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>ConsumptionSiteFileUpload</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/ConsumptionSiteFileUpload} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/ConsumptionSiteFileUpload} The populated <code>ConsumptionSiteFileUpload</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new ConsumptionSiteFileUpload();
|
|
69
|
+
|
|
70
|
+
if (data.hasOwnProperty('file')) {
|
|
71
|
+
obj['file'] = _ApiClient["default"].convertToType(data['file'], 'String');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (data.hasOwnProperty('consumer')) {
|
|
75
|
+
obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (data.hasOwnProperty('eic_column_name')) {
|
|
79
|
+
obj['eic_column_name'] = _ApiClient["default"].convertToType(data['eic_column_name'], 'String');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (data.hasOwnProperty('name_column_name')) {
|
|
83
|
+
obj['name_column_name'] = _ApiClient["default"].convertToType(data['name_column_name'], 'String');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (data.hasOwnProperty('latitude_column_name')) {
|
|
87
|
+
obj['latitude_column_name'] = _ApiClient["default"].convertToType(data['latitude_column_name'], 'String');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (data.hasOwnProperty('longitude_column_name')) {
|
|
91
|
+
obj['longitude_column_name'] = _ApiClient["default"].convertToType(data['longitude_column_name'], 'String');
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return obj;
|
|
96
|
+
}
|
|
97
|
+
}]);
|
|
98
|
+
|
|
99
|
+
return ConsumptionSiteFileUpload;
|
|
100
|
+
}();
|
|
101
|
+
/**
|
|
102
|
+
* @member {String} file
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
ConsumptionSiteFileUpload.prototype['file'] = undefined;
|
|
107
|
+
/**
|
|
108
|
+
* @member {String} consumer
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
ConsumptionSiteFileUpload.prototype['consumer'] = undefined;
|
|
112
|
+
/**
|
|
113
|
+
* @member {String} eic_column_name
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
ConsumptionSiteFileUpload.prototype['eic_column_name'] = undefined;
|
|
117
|
+
/**
|
|
118
|
+
* @member {String} name_column_name
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
ConsumptionSiteFileUpload.prototype['name_column_name'] = undefined;
|
|
122
|
+
/**
|
|
123
|
+
* @member {String} latitude_column_name
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
ConsumptionSiteFileUpload.prototype['latitude_column_name'] = undefined;
|
|
127
|
+
/**
|
|
128
|
+
* @member {String} longitude_column_name
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
ConsumptionSiteFileUpload.prototype['longitude_column_name'] = undefined;
|
|
132
|
+
var _default = ConsumptionSiteFileUpload;
|
|
133
|
+
exports["default"] = _default;
|