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
|
@@ -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 GridOperator model module.
|
|
22
22
|
* @module model/GridOperator
|
|
23
|
-
* @version 1.0.
|
|
23
|
+
* @version 1.0.1
|
|
24
24
|
*/
|
|
25
25
|
var GridOperator = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -77,8 +77,8 @@ var GridOperator = /*#__PURE__*/function () {
|
|
|
77
77
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
if (data.hasOwnProperty('
|
|
81
|
-
obj['
|
|
80
|
+
if (data.hasOwnProperty('website_url')) {
|
|
81
|
+
obj['website_url'] = _ApiClient["default"].convertToType(data['website_url'], 'String');
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
if (data.hasOwnProperty('is_active')) {
|
|
@@ -128,10 +128,10 @@ GridOperator.prototype['location'] = undefined;
|
|
|
128
128
|
GridOperator.prototype['blockchain_account_address'] = undefined;
|
|
129
129
|
/**
|
|
130
130
|
* Not required. 200 characters or fewer.
|
|
131
|
-
* @member {String}
|
|
131
|
+
* @member {String} website_url
|
|
132
132
|
*/
|
|
133
133
|
|
|
134
|
-
GridOperator.prototype['
|
|
134
|
+
GridOperator.prototype['website_url'] = undefined;
|
|
135
135
|
/**
|
|
136
136
|
* True if organization is active. Default True.
|
|
137
137
|
* @member {Boolean} is_active
|
package/dist/model/Issuer.js
CHANGED
|
@@ -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 Issuer model module.
|
|
22
22
|
* @module model/Issuer
|
|
23
|
-
* @version 1.0.
|
|
23
|
+
* @version 1.0.1
|
|
24
24
|
*/
|
|
25
25
|
var Issuer = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -77,8 +77,8 @@ var Issuer = /*#__PURE__*/function () {
|
|
|
77
77
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
if (data.hasOwnProperty('
|
|
81
|
-
obj['
|
|
80
|
+
if (data.hasOwnProperty('website_url')) {
|
|
81
|
+
obj['website_url'] = _ApiClient["default"].convertToType(data['website_url'], 'String');
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
if (data.hasOwnProperty('is_active')) {
|
|
@@ -128,10 +128,10 @@ Issuer.prototype['location'] = undefined;
|
|
|
128
128
|
Issuer.prototype['blockchain_account_address'] = undefined;
|
|
129
129
|
/**
|
|
130
130
|
* Not required. 200 characters or fewer.
|
|
131
|
-
* @member {String}
|
|
131
|
+
* @member {String} website_url
|
|
132
132
|
*/
|
|
133
133
|
|
|
134
|
-
Issuer.prototype['
|
|
134
|
+
Issuer.prototype['website_url'] = undefined;
|
|
135
135
|
/**
|
|
136
136
|
* True if organization is active. Default True.
|
|
137
137
|
* @member {Boolean} is_active
|
package/dist/model/Location.js
CHANGED
|
@@ -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 Location model module.
|
|
22
20
|
* @module model/Location
|
|
23
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.1
|
|
24
22
|
*/
|
|
25
23
|
var Location = /*#__PURE__*/function () {
|
|
26
24
|
/**
|
|
@@ -28,7 +26,7 @@ var Location = /*#__PURE__*/function () {
|
|
|
28
26
|
* @alias module:model/Location
|
|
29
27
|
* @param latitude {Number}
|
|
30
28
|
* @param longitude {Number}
|
|
31
|
-
* @param country {
|
|
29
|
+
* @param country {String} Required. 150 characters or fewer.
|
|
32
30
|
*/
|
|
33
31
|
function Location(latitude, longitude, country) {
|
|
34
32
|
_classCallCheck(this, Location);
|
|
@@ -76,7 +74,7 @@ var Location = /*#__PURE__*/function () {
|
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
if (data.hasOwnProperty('country')) {
|
|
79
|
-
obj['country'] = _ApiClient["default"].convertToType(data['country'],
|
|
77
|
+
obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
if (data.hasOwnProperty('city')) {
|
|
@@ -155,8 +153,8 @@ Location.prototype['latitude'] = undefined;
|
|
|
155
153
|
|
|
156
154
|
Location.prototype['longitude'] = undefined;
|
|
157
155
|
/**
|
|
158
|
-
* Required.
|
|
159
|
-
* @member {
|
|
156
|
+
* Required. 150 characters or fewer.
|
|
157
|
+
* @member {String} country
|
|
160
158
|
*/
|
|
161
159
|
|
|
162
160
|
Location.prototype['country'] = undefined;
|
package/dist/model/Login.js
CHANGED
|
@@ -13,12 +13,12 @@ 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
19
|
* The Login model module.
|
|
20
20
|
* @module model/Login
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.1
|
|
22
22
|
*/
|
|
23
23
|
var Login = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -0,0 +1,299 @@
|
|
|
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 _Consumer = _interopRequireDefault(require("./Consumer"));
|
|
11
|
+
|
|
12
|
+
var _ConsumptionSite = _interopRequireDefault(require("./ConsumptionSite"));
|
|
13
|
+
|
|
14
|
+
var _MatchTypeEnum = _interopRequireDefault(require("./MatchTypeEnum"));
|
|
15
|
+
|
|
16
|
+
var _Producer = _interopRequireDefault(require("./Producer"));
|
|
17
|
+
|
|
18
|
+
var _ProductionSite = _interopRequireDefault(require("./ProductionSite"));
|
|
19
|
+
|
|
20
|
+
var _Retailer = _interopRequireDefault(require("./Retailer"));
|
|
21
|
+
|
|
22
|
+
var _StatusEnum = _interopRequireDefault(require("./StatusEnum"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
|
+
|
|
28
|
+
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); } }
|
|
29
|
+
|
|
30
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The MatchRequest model module.
|
|
34
|
+
* @module model/MatchRequest
|
|
35
|
+
* @version 1.0.1
|
|
36
|
+
*/
|
|
37
|
+
var MatchRequest = /*#__PURE__*/function () {
|
|
38
|
+
/**
|
|
39
|
+
* Constructs a new <code>MatchRequest</code>.
|
|
40
|
+
* @alias module:model/MatchRequest
|
|
41
|
+
* @param consumer {module:model/Consumer}
|
|
42
|
+
* @param producer {module:model/Producer}
|
|
43
|
+
* @param retailer {module:model/Retailer}
|
|
44
|
+
* @param productionSite {module:model/ProductionSite}
|
|
45
|
+
* @param consumptionSite {module:model/ConsumptionSite}
|
|
46
|
+
* @param startTime {Date}
|
|
47
|
+
* @param endTime {Date}
|
|
48
|
+
*/
|
|
49
|
+
function MatchRequest(consumer, producer, retailer, productionSite, consumptionSite, startTime, endTime) {
|
|
50
|
+
_classCallCheck(this, MatchRequest);
|
|
51
|
+
|
|
52
|
+
MatchRequest.initialize(this, consumer, producer, retailer, productionSite, consumptionSite, startTime, endTime);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Initializes the fields of this object.
|
|
56
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
57
|
+
* Only for internal use.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
_createClass(MatchRequest, null, [{
|
|
62
|
+
key: "initialize",
|
|
63
|
+
value: function initialize(obj, consumer, producer, retailer, productionSite, consumptionSite, startTime, endTime) {
|
|
64
|
+
obj['consumer'] = consumer;
|
|
65
|
+
obj['producer'] = producer;
|
|
66
|
+
obj['retailer'] = retailer;
|
|
67
|
+
obj['production_site'] = productionSite;
|
|
68
|
+
obj['consumption_site'] = consumptionSite;
|
|
69
|
+
obj['start_time'] = startTime;
|
|
70
|
+
obj['end_time'] = endTime;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Constructs a <code>MatchRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
74
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
75
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
76
|
+
* @param {module:model/MatchRequest} obj Optional instance to populate.
|
|
77
|
+
* @return {module:model/MatchRequest} The populated <code>MatchRequest</code> instance.
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
}, {
|
|
81
|
+
key: "constructFromObject",
|
|
82
|
+
value: function constructFromObject(data, obj) {
|
|
83
|
+
if (data) {
|
|
84
|
+
obj = obj || new MatchRequest();
|
|
85
|
+
|
|
86
|
+
if (data.hasOwnProperty('id')) {
|
|
87
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (data.hasOwnProperty('consumer')) {
|
|
91
|
+
obj['consumer'] = _Consumer["default"].constructFromObject(data['consumer']);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (data.hasOwnProperty('producer')) {
|
|
95
|
+
obj['producer'] = _Producer["default"].constructFromObject(data['producer']);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (data.hasOwnProperty('retailer')) {
|
|
99
|
+
obj['retailer'] = _Retailer["default"].constructFromObject(data['retailer']);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (data.hasOwnProperty('production_site')) {
|
|
103
|
+
obj['production_site'] = _ProductionSite["default"].constructFromObject(data['production_site']);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (data.hasOwnProperty('consumption_site')) {
|
|
107
|
+
obj['consumption_site'] = _ConsumptionSite["default"].constructFromObject(data['consumption_site']);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (data.hasOwnProperty('target_percentage_matched')) {
|
|
111
|
+
obj['target_percentage_matched'] = _ApiClient["default"].convertToType(data['target_percentage_matched'], 'Number');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (data.hasOwnProperty('total_number_of_consumption_datapoints')) {
|
|
115
|
+
obj['total_number_of_consumption_datapoints'] = _ApiClient["default"].convertToType(data['total_number_of_consumption_datapoints'], 'Number');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (data.hasOwnProperty('total_number_of_attempted_matches')) {
|
|
119
|
+
obj['total_number_of_attempted_matches'] = _ApiClient["default"].convertToType(data['total_number_of_attempted_matches'], 'Number');
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (data.hasOwnProperty('total_number_of_fully_matched_consumption_datapoints')) {
|
|
123
|
+
obj['total_number_of_fully_matched_consumption_datapoints'] = _ApiClient["default"].convertToType(data['total_number_of_fully_matched_consumption_datapoints'], 'Number');
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (data.hasOwnProperty('status')) {
|
|
127
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], _StatusEnum["default"]);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (data.hasOwnProperty('match_type')) {
|
|
131
|
+
obj['match_type'] = _ApiClient["default"].convertToType(data['match_type'], _MatchTypeEnum["default"]);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (data.hasOwnProperty('progress_percentage')) {
|
|
135
|
+
obj['progress_percentage'] = _ApiClient["default"].convertToType(data['progress_percentage'], 'Number');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (data.hasOwnProperty('fully_matched_hours_percentage')) {
|
|
139
|
+
obj['fully_matched_hours_percentage'] = _ApiClient["default"].convertToType(data['fully_matched_hours_percentage'], 'Number');
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (data.hasOwnProperty('consumption_amount_processed')) {
|
|
143
|
+
obj['consumption_amount_processed'] = _ApiClient["default"].convertToType(data['consumption_amount_processed'], 'Number');
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (data.hasOwnProperty('consumption_amount_matched')) {
|
|
147
|
+
obj['consumption_amount_matched'] = _ApiClient["default"].convertToType(data['consumption_amount_matched'], 'Number');
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (data.hasOwnProperty('overall_matched_percentage')) {
|
|
151
|
+
obj['overall_matched_percentage'] = _ApiClient["default"].convertToType(data['overall_matched_percentage'], 'Number');
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (data.hasOwnProperty('start_time')) {
|
|
155
|
+
obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Date');
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (data.hasOwnProperty('end_time')) {
|
|
159
|
+
obj['end_time'] = _ApiClient["default"].convertToType(data['end_time'], 'Date');
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (data.hasOwnProperty('created_at')) {
|
|
163
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (data.hasOwnProperty('updated_at')) {
|
|
167
|
+
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return obj;
|
|
172
|
+
}
|
|
173
|
+
}]);
|
|
174
|
+
|
|
175
|
+
return MatchRequest;
|
|
176
|
+
}();
|
|
177
|
+
/**
|
|
178
|
+
* @member {String} id
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
MatchRequest.prototype['id'] = undefined;
|
|
183
|
+
/**
|
|
184
|
+
* @member {module:model/Consumer} consumer
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
MatchRequest.prototype['consumer'] = undefined;
|
|
188
|
+
/**
|
|
189
|
+
* @member {module:model/Producer} producer
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
MatchRequest.prototype['producer'] = undefined;
|
|
193
|
+
/**
|
|
194
|
+
* @member {module:model/Retailer} retailer
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
MatchRequest.prototype['retailer'] = undefined;
|
|
198
|
+
/**
|
|
199
|
+
* @member {module:model/ProductionSite} production_site
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
MatchRequest.prototype['production_site'] = undefined;
|
|
203
|
+
/**
|
|
204
|
+
* @member {module:model/ConsumptionSite} consumption_site
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
MatchRequest.prototype['consumption_site'] = undefined;
|
|
208
|
+
/**
|
|
209
|
+
* Not required. Set between 1-100. Default 100.
|
|
210
|
+
* @member {Number} target_percentage_matched
|
|
211
|
+
* @default 100
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
MatchRequest.prototype['target_percentage_matched'] = 100;
|
|
215
|
+
/**
|
|
216
|
+
* Total number of consumption datapoints requested to be matched.
|
|
217
|
+
* @member {Number} total_number_of_consumption_datapoints
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
MatchRequest.prototype['total_number_of_consumption_datapoints'] = undefined;
|
|
221
|
+
/**
|
|
222
|
+
* Total number of attempted matches.
|
|
223
|
+
* @member {Number} total_number_of_attempted_matches
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
MatchRequest.prototype['total_number_of_attempted_matches'] = undefined;
|
|
227
|
+
/**
|
|
228
|
+
* Total number of fully matched consumption datapoints.
|
|
229
|
+
* @member {Number} total_number_of_fully_matched_consumption_datapoints
|
|
230
|
+
*/
|
|
231
|
+
|
|
232
|
+
MatchRequest.prototype['total_number_of_fully_matched_consumption_datapoints'] = undefined;
|
|
233
|
+
/**
|
|
234
|
+
* Status is set to `started` or `finished` if at least one or all consumption datapoints have been matched. Default `unstarted`.
|
|
235
|
+
* @member {module:model/StatusEnum} status
|
|
236
|
+
*/
|
|
237
|
+
|
|
238
|
+
MatchRequest.prototype['status'] = undefined;
|
|
239
|
+
/**
|
|
240
|
+
* Not required. Matching is done `company-wide` or at `site-level`. Default `company-wide
|
|
241
|
+
* @member {module:model/MatchTypeEnum} match_type
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
MatchRequest.prototype['match_type'] = undefined;
|
|
245
|
+
/**
|
|
246
|
+
* Percentage of total consumption datapoints processed in given range. Default 0.
|
|
247
|
+
* @member {Number} progress_percentage
|
|
248
|
+
* @default '0.00'
|
|
249
|
+
*/
|
|
250
|
+
|
|
251
|
+
MatchRequest.prototype['progress_percentage'] = '0.00';
|
|
252
|
+
/**
|
|
253
|
+
* Percentage of fully-matched hourly consumption datapoints in given range.
|
|
254
|
+
* @member {Number} fully_matched_hours_percentage
|
|
255
|
+
* @default '0.00'
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
MatchRequest.prototype['fully_matched_hours_percentage'] = '0.00';
|
|
259
|
+
/**
|
|
260
|
+
* Total amount of consumption matched in KWh or attempted to match so far in the request. Can change if request status is not `finished`
|
|
261
|
+
* @member {Number} consumption_amount_processed
|
|
262
|
+
*/
|
|
263
|
+
|
|
264
|
+
MatchRequest.prototype['consumption_amount_processed'] = undefined;
|
|
265
|
+
/**
|
|
266
|
+
* Total amount of consumption in KWh successfully matched so far in the request. May change if request status is not `finished`.
|
|
267
|
+
* @member {Number} consumption_amount_matched
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
MatchRequest.prototype['consumption_amount_matched'] = undefined;
|
|
271
|
+
/**
|
|
272
|
+
* Percentage of consumption successfully matched so far in the request. May change if request status is not `finished`.
|
|
273
|
+
* @member {Number} overall_matched_percentage
|
|
274
|
+
* @default '0.00'
|
|
275
|
+
*/
|
|
276
|
+
|
|
277
|
+
MatchRequest.prototype['overall_matched_percentage'] = '0.00';
|
|
278
|
+
/**
|
|
279
|
+
* @member {Date} start_time
|
|
280
|
+
*/
|
|
281
|
+
|
|
282
|
+
MatchRequest.prototype['start_time'] = undefined;
|
|
283
|
+
/**
|
|
284
|
+
* @member {Date} end_time
|
|
285
|
+
*/
|
|
286
|
+
|
|
287
|
+
MatchRequest.prototype['end_time'] = undefined;
|
|
288
|
+
/**
|
|
289
|
+
* @member {Date} created_at
|
|
290
|
+
*/
|
|
291
|
+
|
|
292
|
+
MatchRequest.prototype['created_at'] = undefined;
|
|
293
|
+
/**
|
|
294
|
+
* @member {Date} updated_at
|
|
295
|
+
*/
|
|
296
|
+
|
|
297
|
+
MatchRequest.prototype['updated_at'] = undefined;
|
|
298
|
+
var _default = MatchRequest;
|
|
299
|
+
exports["default"] = _default;
|
|
@@ -13,38 +13,38 @@ 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
|
|
|
20
20
|
/**
|
|
21
|
-
* Enum class
|
|
21
|
+
* Enum class MatchTypeEnum.
|
|
22
22
|
* @enum {}
|
|
23
23
|
* @readonly
|
|
24
24
|
*/
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
_classCallCheck(this,
|
|
25
|
+
var MatchTypeEnum = /*#__PURE__*/function () {
|
|
26
|
+
function MatchTypeEnum() {
|
|
27
|
+
_classCallCheck(this, MatchTypeEnum);
|
|
28
28
|
|
|
29
|
-
_defineProperty(this, "
|
|
29
|
+
_defineProperty(this, "company-wide", "company-wide");
|
|
30
30
|
|
|
31
|
-
_defineProperty(this, "
|
|
31
|
+
_defineProperty(this, "site-level", "site-level");
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
_createClass(
|
|
34
|
+
_createClass(MatchTypeEnum, null, [{
|
|
35
35
|
key: "constructFromObject",
|
|
36
36
|
value:
|
|
37
37
|
/**
|
|
38
|
-
* Returns a <code>
|
|
38
|
+
* Returns a <code>MatchTypeEnum</code> enum value from a Javascript object name.
|
|
39
39
|
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
40
|
-
* @return {module:model/
|
|
40
|
+
* @return {module:model/MatchTypeEnum} The enum <code>MatchTypeEnum</code> value.
|
|
41
41
|
*/
|
|
42
42
|
function constructFromObject(object) {
|
|
43
43
|
return object;
|
|
44
44
|
}
|
|
45
45
|
}]);
|
|
46
46
|
|
|
47
|
-
return
|
|
47
|
+
return MatchTypeEnum;
|
|
48
48
|
}();
|
|
49
49
|
|
|
50
|
-
exports["default"] =
|
|
50
|
+
exports["default"] = MatchTypeEnum;
|
|
@@ -7,18 +7,20 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
9
|
|
|
10
|
+
var _BlockchainTransaction = _interopRequireDefault(require("./BlockchainTransaction"));
|
|
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 MatchedEnergyDataPoint model module.
|
|
20
22
|
* @module model/MatchedEnergyDataPoint
|
|
21
|
-
* @version 1.0.
|
|
23
|
+
* @version 1.0.1
|
|
22
24
|
*/
|
|
23
25
|
var MatchedEnergyDataPoint = /*#__PURE__*/function () {
|
|
24
26
|
/**
|
|
@@ -28,13 +30,12 @@ var MatchedEnergyDataPoint = /*#__PURE__*/function () {
|
|
|
28
30
|
* @param productionData {Number} This ID is also the token ID in the smart contract.
|
|
29
31
|
* @param consumer {String}
|
|
30
32
|
* @param producer {String}
|
|
31
|
-
* @param
|
|
32
|
-
* @param consumptionSite {String}
|
|
33
|
+
* @param tx {module:model/BlockchainTransaction}
|
|
33
34
|
*/
|
|
34
|
-
function MatchedEnergyDataPoint(consumptionData, productionData, consumer, producer,
|
|
35
|
+
function MatchedEnergyDataPoint(consumptionData, productionData, consumer, producer, tx) {
|
|
35
36
|
_classCallCheck(this, MatchedEnergyDataPoint);
|
|
36
37
|
|
|
37
|
-
MatchedEnergyDataPoint.initialize(this, consumptionData, productionData, consumer, producer,
|
|
38
|
+
MatchedEnergyDataPoint.initialize(this, consumptionData, productionData, consumer, producer, tx);
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
40
41
|
* Initializes the fields of this object.
|
|
@@ -45,13 +46,12 @@ var MatchedEnergyDataPoint = /*#__PURE__*/function () {
|
|
|
45
46
|
|
|
46
47
|
_createClass(MatchedEnergyDataPoint, null, [{
|
|
47
48
|
key: "initialize",
|
|
48
|
-
value: function initialize(obj, consumptionData, productionData, consumer, producer,
|
|
49
|
+
value: function initialize(obj, consumptionData, productionData, consumer, producer, tx) {
|
|
49
50
|
obj['consumption_data'] = consumptionData;
|
|
50
51
|
obj['production_data'] = productionData;
|
|
51
52
|
obj['consumer'] = consumer;
|
|
52
53
|
obj['producer'] = producer;
|
|
53
|
-
obj['
|
|
54
|
-
obj['consumption_site'] = consumptionSite;
|
|
54
|
+
obj['tx'] = tx;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Constructs a <code>MatchedEnergyDataPoint</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -103,8 +103,8 @@ var MatchedEnergyDataPoint = /*#__PURE__*/function () {
|
|
|
103
103
|
obj['amount_matched'] = _ApiClient["default"].convertToType(data['amount_matched'], 'Number');
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
if (data.hasOwnProperty('
|
|
107
|
-
obj['
|
|
106
|
+
if (data.hasOwnProperty('tx')) {
|
|
107
|
+
obj['tx'] = _BlockchainTransaction["default"].constructFromObject(data['tx']);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
if (data.hasOwnProperty('created_at')) {
|
|
@@ -172,11 +172,10 @@ MatchedEnergyDataPoint.prototype['consumption_site'] = undefined;
|
|
|
172
172
|
|
|
173
173
|
MatchedEnergyDataPoint.prototype['amount_matched'] = undefined;
|
|
174
174
|
/**
|
|
175
|
-
*
|
|
176
|
-
* @member {String} matched_tx_hash
|
|
175
|
+
* @member {module:model/BlockchainTransaction} tx
|
|
177
176
|
*/
|
|
178
177
|
|
|
179
|
-
MatchedEnergyDataPoint.prototype['
|
|
178
|
+
MatchedEnergyDataPoint.prototype['tx'] = undefined;
|
|
180
179
|
/**
|
|
181
180
|
* @member {Date} created_at
|
|
182
181
|
*/
|