green_link_api 1.0.0 → 1.1.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
|
@@ -13,23 +13,23 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
13
13
|
|
|
14
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
15
|
|
|
16
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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 1.
|
|
19
|
+
* The ConsumptionSiteFromRetailer model module.
|
|
20
|
+
* @module model/ConsumptionSiteFromRetailer
|
|
21
|
+
* @version 1.1.1
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var ConsumptionSiteFromRetailer = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
|
-
* Constructs a new <code>
|
|
26
|
-
* @alias module:model/
|
|
27
|
-
* @param
|
|
25
|
+
* Constructs a new <code>ConsumptionSiteFromRetailer</code>.
|
|
26
|
+
* @alias module:model/ConsumptionSiteFromRetailer
|
|
27
|
+
* @param partnerId {String} Required. 30 characters or fewer.
|
|
28
28
|
*/
|
|
29
|
-
function
|
|
30
|
-
_classCallCheck(this,
|
|
29
|
+
function ConsumptionSiteFromRetailer(partnerId) {
|
|
30
|
+
_classCallCheck(this, ConsumptionSiteFromRetailer);
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
ConsumptionSiteFromRetailer.initialize(this, partnerId);
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Initializes the fields of this object.
|
|
@@ -38,31 +38,27 @@ var TokenRefresh = /*#__PURE__*/function () {
|
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
_createClass(
|
|
41
|
+
_createClass(ConsumptionSiteFromRetailer, null, [{
|
|
42
42
|
key: "initialize",
|
|
43
|
-
value: function initialize(obj,
|
|
44
|
-
obj['
|
|
43
|
+
value: function initialize(obj, partnerId) {
|
|
44
|
+
obj['partner_id'] = partnerId;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* Constructs a <code>
|
|
47
|
+
* Constructs a <code>ConsumptionSiteFromRetailer</code> from a plain JavaScript object, optionally creating a new instance.
|
|
48
48
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
49
49
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
50
|
-
* @param {module:model/
|
|
51
|
-
* @return {module:model/
|
|
50
|
+
* @param {module:model/ConsumptionSiteFromRetailer} obj Optional instance to populate.
|
|
51
|
+
* @return {module:model/ConsumptionSiteFromRetailer} The populated <code>ConsumptionSiteFromRetailer</code> instance.
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
54
|
}, {
|
|
55
55
|
key: "constructFromObject",
|
|
56
56
|
value: function constructFromObject(data, obj) {
|
|
57
57
|
if (data) {
|
|
58
|
-
obj = obj || new
|
|
58
|
+
obj = obj || new ConsumptionSiteFromRetailer();
|
|
59
59
|
|
|
60
|
-
if (data.hasOwnProperty('
|
|
61
|
-
obj['
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (data.hasOwnProperty('refresh')) {
|
|
65
|
-
obj['refresh'] = _ApiClient["default"].convertToType(data['refresh'], 'String');
|
|
60
|
+
if (data.hasOwnProperty('partner_id')) {
|
|
61
|
+
obj['partner_id'] = _ApiClient["default"].convertToType(data['partner_id'], 'String');
|
|
66
62
|
}
|
|
67
63
|
}
|
|
68
64
|
|
|
@@ -70,18 +66,14 @@ var TokenRefresh = /*#__PURE__*/function () {
|
|
|
70
66
|
}
|
|
71
67
|
}]);
|
|
72
68
|
|
|
73
|
-
return
|
|
69
|
+
return ConsumptionSiteFromRetailer;
|
|
74
70
|
}();
|
|
75
71
|
/**
|
|
76
|
-
*
|
|
72
|
+
* Required. 30 characters or fewer.
|
|
73
|
+
* @member {String} partner_id
|
|
77
74
|
*/
|
|
78
75
|
|
|
79
76
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
* @member {String} refresh
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
TokenRefresh.prototype['refresh'] = undefined;
|
|
86
|
-
var _default = TokenRefresh;
|
|
77
|
+
ConsumptionSiteFromRetailer.prototype['partner_id'] = undefined;
|
|
78
|
+
var _default = ConsumptionSiteFromRetailer;
|
|
87
79
|
exports["default"] = _default;
|
|
@@ -9,10 +9,6 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
9
9
|
|
|
10
10
|
var _Consumer = _interopRequireDefault(require("./Consumer"));
|
|
11
11
|
|
|
12
|
-
var _GridOperator = _interopRequireDefault(require("./GridOperator"));
|
|
13
|
-
|
|
14
|
-
var _Issuer = _interopRequireDefault(require("./Issuer"));
|
|
15
|
-
|
|
16
12
|
var _Location = _interopRequireDefault(require("./Location"));
|
|
17
13
|
|
|
18
14
|
var _Retailer = _interopRequireDefault(require("./Retailer"));
|
|
@@ -23,29 +19,27 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
23
19
|
|
|
24
20
|
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); } }
|
|
25
21
|
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
23
|
|
|
28
24
|
/**
|
|
29
25
|
* The ConsumptionSiteListOrDetail model module.
|
|
30
26
|
* @module model/ConsumptionSiteListOrDetail
|
|
31
|
-
* @version 1.
|
|
27
|
+
* @version 1.1.1
|
|
32
28
|
*/
|
|
33
29
|
var ConsumptionSiteListOrDetail = /*#__PURE__*/function () {
|
|
34
30
|
/**
|
|
35
31
|
* Constructs a new <code>ConsumptionSiteListOrDetail</code>.
|
|
36
32
|
* @alias module:model/ConsumptionSiteListOrDetail
|
|
37
33
|
* @param consumer {module:model/Consumer}
|
|
38
|
-
* @param gridOperator {module:model/GridOperator}
|
|
39
34
|
* @param retailer {module:model/Retailer}
|
|
40
|
-
* @param issuer {module:model/Issuer}
|
|
41
35
|
* @param location {module:model/Location}
|
|
42
36
|
* @param name {String} Required. 150 characters or fewer.
|
|
43
|
-
* @param
|
|
37
|
+
* @param eic {String} Required. 30 characters or fewer.
|
|
44
38
|
*/
|
|
45
|
-
function ConsumptionSiteListOrDetail(consumer,
|
|
39
|
+
function ConsumptionSiteListOrDetail(consumer, retailer, location, name, eic) {
|
|
46
40
|
_classCallCheck(this, ConsumptionSiteListOrDetail);
|
|
47
41
|
|
|
48
|
-
ConsumptionSiteListOrDetail.initialize(this, consumer,
|
|
42
|
+
ConsumptionSiteListOrDetail.initialize(this, consumer, retailer, location, name, eic);
|
|
49
43
|
}
|
|
50
44
|
/**
|
|
51
45
|
* Initializes the fields of this object.
|
|
@@ -56,14 +50,12 @@ var ConsumptionSiteListOrDetail = /*#__PURE__*/function () {
|
|
|
56
50
|
|
|
57
51
|
_createClass(ConsumptionSiteListOrDetail, null, [{
|
|
58
52
|
key: "initialize",
|
|
59
|
-
value: function initialize(obj, consumer,
|
|
53
|
+
value: function initialize(obj, consumer, retailer, location, name, eic) {
|
|
60
54
|
obj['consumer'] = consumer;
|
|
61
|
-
obj['grid_operator'] = gridOperator;
|
|
62
55
|
obj['retailer'] = retailer;
|
|
63
|
-
obj['issuer'] = issuer;
|
|
64
56
|
obj['location'] = location;
|
|
65
57
|
obj['name'] = name;
|
|
66
|
-
obj['
|
|
58
|
+
obj['eic'] = eic;
|
|
67
59
|
}
|
|
68
60
|
/**
|
|
69
61
|
* Constructs a <code>ConsumptionSiteListOrDetail</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -88,7 +80,7 @@ var ConsumptionSiteListOrDetail = /*#__PURE__*/function () {
|
|
|
88
80
|
}
|
|
89
81
|
|
|
90
82
|
if (data.hasOwnProperty('grid_operator')) {
|
|
91
|
-
obj['grid_operator'] =
|
|
83
|
+
obj['grid_operator'] = _ApiClient["default"].convertToType(data['grid_operator'], 'String');
|
|
92
84
|
}
|
|
93
85
|
|
|
94
86
|
if (data.hasOwnProperty('retailer')) {
|
|
@@ -96,7 +88,7 @@ var ConsumptionSiteListOrDetail = /*#__PURE__*/function () {
|
|
|
96
88
|
}
|
|
97
89
|
|
|
98
90
|
if (data.hasOwnProperty('issuer')) {
|
|
99
|
-
obj['issuer'] =
|
|
91
|
+
obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String');
|
|
100
92
|
}
|
|
101
93
|
|
|
102
94
|
if (data.hasOwnProperty('location')) {
|
|
@@ -107,18 +99,14 @@ var ConsumptionSiteListOrDetail = /*#__PURE__*/function () {
|
|
|
107
99
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
108
100
|
}
|
|
109
101
|
|
|
110
|
-
if (data.hasOwnProperty('
|
|
111
|
-
obj['
|
|
102
|
+
if (data.hasOwnProperty('eic')) {
|
|
103
|
+
obj['eic'] = _ApiClient["default"].convertToType(data['eic'], 'String');
|
|
112
104
|
}
|
|
113
105
|
|
|
114
106
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
115
107
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
116
108
|
}
|
|
117
109
|
|
|
118
|
-
if (data.hasOwnProperty('nonce')) {
|
|
119
|
-
obj['nonce'] = _ApiClient["default"].convertToType(data['nonce'], 'Number');
|
|
120
|
-
}
|
|
121
|
-
|
|
122
110
|
if (data.hasOwnProperty('is_active')) {
|
|
123
111
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
124
112
|
}
|
|
@@ -150,7 +138,7 @@ ConsumptionSiteListOrDetail.prototype['id'] = undefined;
|
|
|
150
138
|
|
|
151
139
|
ConsumptionSiteListOrDetail.prototype['consumer'] = undefined;
|
|
152
140
|
/**
|
|
153
|
-
* @member {
|
|
141
|
+
* @member {String} grid_operator
|
|
154
142
|
*/
|
|
155
143
|
|
|
156
144
|
ConsumptionSiteListOrDetail.prototype['grid_operator'] = undefined;
|
|
@@ -160,7 +148,7 @@ ConsumptionSiteListOrDetail.prototype['grid_operator'] = undefined;
|
|
|
160
148
|
|
|
161
149
|
ConsumptionSiteListOrDetail.prototype['retailer'] = undefined;
|
|
162
150
|
/**
|
|
163
|
-
* @member {
|
|
151
|
+
* @member {String} issuer
|
|
164
152
|
*/
|
|
165
153
|
|
|
166
154
|
ConsumptionSiteListOrDetail.prototype['issuer'] = undefined;
|
|
@@ -177,21 +165,15 @@ ConsumptionSiteListOrDetail.prototype['location'] = undefined;
|
|
|
177
165
|
ConsumptionSiteListOrDetail.prototype['name'] = undefined;
|
|
178
166
|
/**
|
|
179
167
|
* Required. 30 characters or fewer.
|
|
180
|
-
* @member {String}
|
|
168
|
+
* @member {String} eic
|
|
181
169
|
*/
|
|
182
170
|
|
|
183
|
-
ConsumptionSiteListOrDetail.prototype['
|
|
171
|
+
ConsumptionSiteListOrDetail.prototype['eic'] = undefined;
|
|
184
172
|
/**
|
|
185
173
|
* @member {String} blockchain_account_address
|
|
186
174
|
*/
|
|
187
175
|
|
|
188
176
|
ConsumptionSiteListOrDetail.prototype['blockchain_account_address'] = undefined;
|
|
189
|
-
/**
|
|
190
|
-
* Nonce of the blockchain account.
|
|
191
|
-
* @member {Number} nonce
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
ConsumptionSiteListOrDetail.prototype['nonce'] = undefined;
|
|
195
177
|
/**
|
|
196
178
|
* True if organization is active. Default True.
|
|
197
179
|
* @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 ConsumptionSiteMany model module.
|
|
22
|
+
* @module model/ConsumptionSiteMany
|
|
23
|
+
* @version 1.1.1
|
|
24
|
+
*/
|
|
25
|
+
var ConsumptionSiteMany = /*#__PURE__*/function () {
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new <code>ConsumptionSiteMany</code>.
|
|
28
|
+
* @alias module:model/ConsumptionSiteMany
|
|
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 ConsumptionSiteMany(location, name, eic) {
|
|
34
|
+
_classCallCheck(this, ConsumptionSiteMany);
|
|
35
|
+
|
|
36
|
+
ConsumptionSiteMany.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(ConsumptionSiteMany, 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>ConsumptionSiteMany</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/ConsumptionSiteMany} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/ConsumptionSiteMany} The populated <code>ConsumptionSiteMany</code> instance.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new ConsumptionSiteMany();
|
|
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 ConsumptionSiteMany;
|
|
124
|
+
}();
|
|
125
|
+
/**
|
|
126
|
+
* @member {String} id
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
ConsumptionSiteMany.prototype['id'] = undefined;
|
|
131
|
+
/**
|
|
132
|
+
* @member {String} consumer
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
ConsumptionSiteMany.prototype['consumer'] = undefined;
|
|
136
|
+
/**
|
|
137
|
+
* @member {String} grid_operator
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
ConsumptionSiteMany.prototype['grid_operator'] = undefined;
|
|
141
|
+
/**
|
|
142
|
+
* @member {String} retailer
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
ConsumptionSiteMany.prototype['retailer'] = undefined;
|
|
146
|
+
/**
|
|
147
|
+
* @member {String} issuer
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
ConsumptionSiteMany.prototype['issuer'] = undefined;
|
|
151
|
+
/**
|
|
152
|
+
* @member {module:model/Location} location
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
ConsumptionSiteMany.prototype['location'] = undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Required. 150 characters or fewer.
|
|
158
|
+
* @member {String} name
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
ConsumptionSiteMany.prototype['name'] = undefined;
|
|
162
|
+
/**
|
|
163
|
+
* @member {String} site_logo
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
ConsumptionSiteMany.prototype['site_logo'] = undefined;
|
|
167
|
+
/**
|
|
168
|
+
* Required. 30 characters or fewer.
|
|
169
|
+
* @member {String} eic
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
ConsumptionSiteMany.prototype['eic'] = undefined;
|
|
173
|
+
/**
|
|
174
|
+
* @member {String} blockchain_account_address
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
ConsumptionSiteMany.prototype['blockchain_account_address'] = undefined;
|
|
178
|
+
/**
|
|
179
|
+
* True if organization is active. Default True.
|
|
180
|
+
* @member {Boolean} is_active
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
ConsumptionSiteMany.prototype['is_active'] = undefined;
|
|
184
|
+
/**
|
|
185
|
+
* @member {Date} created_at
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
ConsumptionSiteMany.prototype['created_at'] = undefined;
|
|
189
|
+
/**
|
|
190
|
+
* @member {Date} updated_at
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
ConsumptionSiteMany.prototype['updated_at'] = undefined;
|
|
194
|
+
var _default = ConsumptionSiteMany;
|
|
195
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 ContentTypeEnum.
|
|
22
|
+
* @enum {}
|
|
23
|
+
* @readonly
|
|
24
|
+
*/
|
|
25
|
+
var ContentTypeEnum = /*#__PURE__*/function () {
|
|
26
|
+
function ContentTypeEnum() {
|
|
27
|
+
_classCallCheck(this, ContentTypeEnum);
|
|
28
|
+
|
|
29
|
+
_defineProperty(this, "Consumption sites", "Consumption sites");
|
|
30
|
+
|
|
31
|
+
_defineProperty(this, "Consumption data points", "Consumption data points");
|
|
32
|
+
|
|
33
|
+
_defineProperty(this, "Production sites", "Production sites");
|
|
34
|
+
|
|
35
|
+
_defineProperty(this, "Production data points", "Production data points");
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
_createClass(ContentTypeEnum, null, [{
|
|
39
|
+
key: "constructFromObject",
|
|
40
|
+
value:
|
|
41
|
+
/**
|
|
42
|
+
* Returns a <code>ContentTypeEnum</code> enum value from a Javascript object name.
|
|
43
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
44
|
+
* @return {module:model/ContentTypeEnum} The enum <code>ContentTypeEnum</code> value.
|
|
45
|
+
*/
|
|
46
|
+
function constructFromObject(object) {
|
|
47
|
+
return object;
|
|
48
|
+
}
|
|
49
|
+
}]);
|
|
50
|
+
|
|
51
|
+
return ContentTypeEnum;
|
|
52
|
+
}();
|
|
53
|
+
|
|
54
|
+
exports["default"] = ContentTypeEnum;
|
|
@@ -7,20 +7,18 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
9
|
|
|
10
|
-
var _CountryEnum = _interopRequireDefault(require("./CountryEnum"));
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
11
|
|
|
14
12
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
13
|
|
|
16
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); } }
|
|
17
15
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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; }
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
* The EmissionFactor model module.
|
|
22
20
|
* @module model/EmissionFactor
|
|
23
|
-
* @version 1.
|
|
21
|
+
* @version 1.1.1
|
|
24
22
|
*/
|
|
25
23
|
var EmissionFactor = /*#__PURE__*/function () {
|
|
26
24
|
/**
|
|
@@ -28,7 +26,7 @@ var EmissionFactor = /*#__PURE__*/function () {
|
|
|
28
26
|
* @alias module:model/EmissionFactor
|
|
29
27
|
* @param periodStart {Date}
|
|
30
28
|
* @param periodEnd {Date}
|
|
31
|
-
* @param country {
|
|
29
|
+
* @param country {String} Required. 150 characters or fewer.
|
|
32
30
|
* @param electricityEmissionFactor {Number}
|
|
33
31
|
*/
|
|
34
32
|
function EmissionFactor(periodStart, periodEnd, country, electricityEmissionFactor) {
|
|
@@ -78,7 +76,7 @@ var EmissionFactor = /*#__PURE__*/function () {
|
|
|
78
76
|
}
|
|
79
77
|
|
|
80
78
|
if (data.hasOwnProperty('country')) {
|
|
81
|
-
obj['country'] = _ApiClient["default"].convertToType(data['country'],
|
|
79
|
+
obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
if (data.hasOwnProperty('electricity_emission_factor')) {
|
|
@@ -117,8 +115,8 @@ EmissionFactor.prototype['period_start'] = undefined;
|
|
|
117
115
|
|
|
118
116
|
EmissionFactor.prototype['period_end'] = undefined;
|
|
119
117
|
/**
|
|
120
|
-
* Required.
|
|
121
|
-
* @member {
|
|
118
|
+
* Required. 150 characters or fewer.
|
|
119
|
+
* @member {String} country
|
|
122
120
|
*/
|
|
123
121
|
|
|
124
122
|
EmissionFactor.prototype['country'] = undefined;
|
|
@@ -13,7 +13,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
13
13
|
|
|
14
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
15
|
|
|
16
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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
|
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
19
|
|
|
@@ -17,12 +17,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
17
17
|
|
|
18
18
|
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); } }
|
|
19
19
|
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* The EnergySourcePreference model module.
|
|
24
24
|
* @module model/EnergySourcePreference
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.1.1
|
|
26
26
|
*/
|
|
27
27
|
var EnergySourcePreference = /*#__PURE__*/function () {
|
|
28
28
|
/**
|
|
@@ -0,0 +1,98 @@
|
|
|
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 GetFromEpias model module.
|
|
20
|
+
* @module model/GetFromEpias
|
|
21
|
+
* @version 1.1.1
|
|
22
|
+
*/
|
|
23
|
+
var GetFromEpias = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>GetFromEpias</code>.
|
|
26
|
+
* @alias module:model/GetFromEpias
|
|
27
|
+
* @param powerPlantId {Number}
|
|
28
|
+
* @param startDate {Date}
|
|
29
|
+
*/
|
|
30
|
+
function GetFromEpias(powerPlantId, startDate) {
|
|
31
|
+
_classCallCheck(this, GetFromEpias);
|
|
32
|
+
|
|
33
|
+
GetFromEpias.initialize(this, powerPlantId, startDate);
|
|
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(GetFromEpias, null, [{
|
|
43
|
+
key: "initialize",
|
|
44
|
+
value: function initialize(obj, powerPlantId, startDate) {
|
|
45
|
+
obj['power_plant_id'] = powerPlantId;
|
|
46
|
+
obj['start_date'] = startDate;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a <code>GetFromEpias</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/GetFromEpias} obj Optional instance to populate.
|
|
53
|
+
* @return {module:model/GetFromEpias} The populated <code>GetFromEpias</code> instance.
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
}, {
|
|
57
|
+
key: "constructFromObject",
|
|
58
|
+
value: function constructFromObject(data, obj) {
|
|
59
|
+
if (data) {
|
|
60
|
+
obj = obj || new GetFromEpias();
|
|
61
|
+
|
|
62
|
+
if (data.hasOwnProperty('power_plant_id')) {
|
|
63
|
+
obj['power_plant_id'] = _ApiClient["default"].convertToType(data['power_plant_id'], 'Number');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (data.hasOwnProperty('start_date')) {
|
|
67
|
+
obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (data.hasOwnProperty('end_date')) {
|
|
71
|
+
obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
}]);
|
|
78
|
+
|
|
79
|
+
return GetFromEpias;
|
|
80
|
+
}();
|
|
81
|
+
/**
|
|
82
|
+
* @member {Number} power_plant_id
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
GetFromEpias.prototype['power_plant_id'] = undefined;
|
|
87
|
+
/**
|
|
88
|
+
* @member {Date} start_date
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
GetFromEpias.prototype['start_date'] = undefined;
|
|
92
|
+
/**
|
|
93
|
+
* @member {Date} end_date
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
GetFromEpias.prototype['end_date'] = undefined;
|
|
97
|
+
var _default = GetFromEpias;
|
|
98
|
+
exports["default"] = _default;
|