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
|
@@ -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 PatchedUser model module.
|
|
22
22
|
* @module model/PatchedUser
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.1.1
|
|
24
24
|
*/
|
|
25
25
|
var PatchedUser = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -81,6 +81,10 @@ var PatchedUser = /*#__PURE__*/function () {
|
|
|
81
81
|
obj['phone_number'] = _ApiClient["default"].convertToType(data['phone_number'], 'String');
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
if (data.hasOwnProperty('profile_logo')) {
|
|
85
|
+
obj['profile_logo'] = _ApiClient["default"].convertToType(data['profile_logo'], 'String');
|
|
86
|
+
}
|
|
87
|
+
|
|
84
88
|
if (data.hasOwnProperty('organization')) {
|
|
85
89
|
obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String');
|
|
86
90
|
}
|
|
@@ -143,11 +147,13 @@ PatchedUser.prototype['first_name'] = undefined;
|
|
|
143
147
|
|
|
144
148
|
PatchedUser.prototype['last_name'] = undefined;
|
|
145
149
|
/**
|
|
150
|
+
* Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Default is the user's email.
|
|
146
151
|
* @member {String} username
|
|
147
152
|
*/
|
|
148
153
|
|
|
149
154
|
PatchedUser.prototype['username'] = undefined;
|
|
150
155
|
/**
|
|
156
|
+
* Required.
|
|
151
157
|
* @member {String} email
|
|
152
158
|
*/
|
|
153
159
|
|
|
@@ -157,6 +163,11 @@ PatchedUser.prototype['email'] = undefined;
|
|
|
157
163
|
*/
|
|
158
164
|
|
|
159
165
|
PatchedUser.prototype['phone_number'] = undefined;
|
|
166
|
+
/**
|
|
167
|
+
* @member {String} profile_logo
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
PatchedUser.prototype['profile_logo'] = undefined;
|
|
160
171
|
/**
|
|
161
172
|
* @member {String} organization
|
|
162
173
|
*/
|
|
@@ -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 PatchedUserDetail model module.
|
|
22
22
|
* @module model/PatchedUserDetail
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.1.1
|
|
24
24
|
*/
|
|
25
25
|
var PatchedUserDetail = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -81,6 +81,10 @@ var PatchedUserDetail = /*#__PURE__*/function () {
|
|
|
81
81
|
obj['phone_number'] = _ApiClient["default"].convertToType(data['phone_number'], 'String');
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
if (data.hasOwnProperty('profile_logo')) {
|
|
85
|
+
obj['profile_logo'] = _ApiClient["default"].convertToType(data['profile_logo'], 'String');
|
|
86
|
+
}
|
|
87
|
+
|
|
84
88
|
if (data.hasOwnProperty('organization')) {
|
|
85
89
|
obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String');
|
|
86
90
|
}
|
|
@@ -143,11 +147,13 @@ PatchedUserDetail.prototype['first_name'] = undefined;
|
|
|
143
147
|
|
|
144
148
|
PatchedUserDetail.prototype['last_name'] = undefined;
|
|
145
149
|
/**
|
|
150
|
+
* Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Default is the user's email.
|
|
146
151
|
* @member {String} username
|
|
147
152
|
*/
|
|
148
153
|
|
|
149
154
|
PatchedUserDetail.prototype['username'] = undefined;
|
|
150
155
|
/**
|
|
156
|
+
* Required.
|
|
151
157
|
* @member {String} email
|
|
152
158
|
*/
|
|
153
159
|
|
|
@@ -157,6 +163,11 @@ PatchedUserDetail.prototype['email'] = undefined;
|
|
|
157
163
|
*/
|
|
158
164
|
|
|
159
165
|
PatchedUserDetail.prototype['phone_number'] = undefined;
|
|
166
|
+
/**
|
|
167
|
+
* @member {String} profile_logo
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
PatchedUserDetail.prototype['profile_logo'] = undefined;
|
|
160
171
|
/**
|
|
161
172
|
* @member {String} organization
|
|
162
173
|
*/
|
|
@@ -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
|
|
|
@@ -35,6 +35,12 @@ var PriorityEnum = /*#__PURE__*/function () {
|
|
|
35
35
|
_defineProperty(this, "4", 4);
|
|
36
36
|
|
|
37
37
|
_defineProperty(this, "5", 5);
|
|
38
|
+
|
|
39
|
+
_defineProperty(this, "6", 6);
|
|
40
|
+
|
|
41
|
+
_defineProperty(this, "7", 7);
|
|
42
|
+
|
|
43
|
+
_defineProperty(this, "8", 8);
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
_createClass(PriorityEnum, null, [{
|
package/dist/model/Producer.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 Producer model module.
|
|
22
22
|
* @module model/Producer
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.1.1
|
|
24
24
|
*/
|
|
25
25
|
var Producer = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -81,8 +81,8 @@ var Producer = /*#__PURE__*/function () {
|
|
|
81
81
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
if (data.hasOwnProperty('
|
|
85
|
-
obj['
|
|
84
|
+
if (data.hasOwnProperty('website_url')) {
|
|
85
|
+
obj['website_url'] = _ApiClient["default"].convertToType(data['website_url'], 'String');
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
if (data.hasOwnProperty('is_active')) {
|
|
@@ -133,10 +133,10 @@ Producer.prototype['retailer'] = undefined;
|
|
|
133
133
|
Producer.prototype['blockchain_account_address'] = undefined;
|
|
134
134
|
/**
|
|
135
135
|
* Not required. 200 characters or fewer.
|
|
136
|
-
* @member {String}
|
|
136
|
+
* @member {String} website_url
|
|
137
137
|
*/
|
|
138
138
|
|
|
139
|
-
Producer.prototype['
|
|
139
|
+
Producer.prototype['website_url'] = undefined;
|
|
140
140
|
/**
|
|
141
141
|
* True if organization is active. Default True.
|
|
142
142
|
* @member {Boolean} is_active
|
|
@@ -0,0 +1,132 @@
|
|
|
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 ProductionDataFileList model module.
|
|
20
|
+
* @module model/ProductionDataFileList
|
|
21
|
+
* @version 1.1.1
|
|
22
|
+
*/
|
|
23
|
+
var ProductionDataFileList = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>ProductionDataFileList</code>.
|
|
26
|
+
* @alias module:model/ProductionDataFileList
|
|
27
|
+
* @param fileList {Array.<String>}
|
|
28
|
+
* @param producer {String}
|
|
29
|
+
* @param eicColumnName {String}
|
|
30
|
+
* @param productionStartColumnName {String}
|
|
31
|
+
* @param amountProducedColumnName {String}
|
|
32
|
+
*/
|
|
33
|
+
function ProductionDataFileList(fileList, producer, eicColumnName, productionStartColumnName, amountProducedColumnName) {
|
|
34
|
+
_classCallCheck(this, ProductionDataFileList);
|
|
35
|
+
|
|
36
|
+
ProductionDataFileList.initialize(this, fileList, producer, eicColumnName, productionStartColumnName, amountProducedColumnName);
|
|
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(ProductionDataFileList, null, [{
|
|
46
|
+
key: "initialize",
|
|
47
|
+
value: function initialize(obj, fileList, producer, eicColumnName, productionStartColumnName, amountProducedColumnName) {
|
|
48
|
+
obj['file_list'] = fileList;
|
|
49
|
+
obj['producer'] = producer;
|
|
50
|
+
obj['eic_column_name'] = eicColumnName;
|
|
51
|
+
obj['production_start_column_name'] = productionStartColumnName;
|
|
52
|
+
obj['amount_produced_column_name'] = amountProducedColumnName;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>ProductionDataFileList</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:model/ProductionDataFileList} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/ProductionDataFileList} The populated <code>ProductionDataFileList</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
}, {
|
|
63
|
+
key: "constructFromObject",
|
|
64
|
+
value: function constructFromObject(data, obj) {
|
|
65
|
+
if (data) {
|
|
66
|
+
obj = obj || new ProductionDataFileList();
|
|
67
|
+
|
|
68
|
+
if (data.hasOwnProperty('file_list')) {
|
|
69
|
+
obj['file_list'] = _ApiClient["default"].convertToType(data['file_list'], ['String']);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (data.hasOwnProperty('producer')) {
|
|
73
|
+
obj['producer'] = _ApiClient["default"].convertToType(data['producer'], 'String');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (data.hasOwnProperty('eic_column_name')) {
|
|
77
|
+
obj['eic_column_name'] = _ApiClient["default"].convertToType(data['eic_column_name'], 'String');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (data.hasOwnProperty('production_start_column_name')) {
|
|
81
|
+
obj['production_start_column_name'] = _ApiClient["default"].convertToType(data['production_start_column_name'], 'String');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (data.hasOwnProperty('amount_produced_column_name')) {
|
|
85
|
+
obj['amount_produced_column_name'] = _ApiClient["default"].convertToType(data['amount_produced_column_name'], 'String');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (data.hasOwnProperty('timezone')) {
|
|
89
|
+
obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return obj;
|
|
94
|
+
}
|
|
95
|
+
}]);
|
|
96
|
+
|
|
97
|
+
return ProductionDataFileList;
|
|
98
|
+
}();
|
|
99
|
+
/**
|
|
100
|
+
* @member {Array.<String>} file_list
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
ProductionDataFileList.prototype['file_list'] = undefined;
|
|
105
|
+
/**
|
|
106
|
+
* @member {String} producer
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
ProductionDataFileList.prototype['producer'] = undefined;
|
|
110
|
+
/**
|
|
111
|
+
* @member {String} eic_column_name
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
ProductionDataFileList.prototype['eic_column_name'] = undefined;
|
|
115
|
+
/**
|
|
116
|
+
* @member {String} production_start_column_name
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
ProductionDataFileList.prototype['production_start_column_name'] = undefined;
|
|
120
|
+
/**
|
|
121
|
+
* @member {String} amount_produced_column_name
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
ProductionDataFileList.prototype['amount_produced_column_name'] = undefined;
|
|
125
|
+
/**
|
|
126
|
+
* @member {String} timezone
|
|
127
|
+
* @default 'Europe/Istanbul'
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
ProductionDataFileList.prototype['timezone'] = 'Europe/Istanbul';
|
|
131
|
+
var _default = ProductionDataFileList;
|
|
132
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,167 @@
|
|
|
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 _Producer = _interopRequireDefault(require("./Producer"));
|
|
11
|
+
|
|
12
|
+
var _ProductionSite = _interopRequireDefault(require("./ProductionSite"));
|
|
13
|
+
|
|
14
|
+
var _Retailer = _interopRequireDefault(require("./Retailer"));
|
|
15
|
+
|
|
16
|
+
var _StatusEnum = _interopRequireDefault(require("./StatusEnum"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
+
|
|
22
|
+
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
|
+
|
|
24
|
+
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
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The ProductionDataFromEpiasRequest model module.
|
|
28
|
+
* @module model/ProductionDataFromEpiasRequest
|
|
29
|
+
* @version 1.1.1
|
|
30
|
+
*/
|
|
31
|
+
var ProductionDataFromEpiasRequest = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>ProductionDataFromEpiasRequest</code>.
|
|
34
|
+
* @alias module:model/ProductionDataFromEpiasRequest
|
|
35
|
+
* @param producer {module:model/Producer}
|
|
36
|
+
* @param retailer {module:model/Retailer}
|
|
37
|
+
* @param productionSite {module:model/ProductionSite}
|
|
38
|
+
* @param startTime {Date}
|
|
39
|
+
* @param endTime {Date}
|
|
40
|
+
*/
|
|
41
|
+
function ProductionDataFromEpiasRequest(producer, retailer, productionSite, startTime, endTime) {
|
|
42
|
+
_classCallCheck(this, ProductionDataFromEpiasRequest);
|
|
43
|
+
|
|
44
|
+
ProductionDataFromEpiasRequest.initialize(this, producer, retailer, productionSite, startTime, endTime);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
_createClass(ProductionDataFromEpiasRequest, null, [{
|
|
54
|
+
key: "initialize",
|
|
55
|
+
value: function initialize(obj, producer, retailer, productionSite, startTime, endTime) {
|
|
56
|
+
obj['producer'] = producer;
|
|
57
|
+
obj['retailer'] = retailer;
|
|
58
|
+
obj['production_site'] = productionSite;
|
|
59
|
+
obj['start_time'] = startTime;
|
|
60
|
+
obj['end_time'] = endTime;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Constructs a <code>ProductionDataFromEpiasRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
64
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
65
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
66
|
+
* @param {module:model/ProductionDataFromEpiasRequest} obj Optional instance to populate.
|
|
67
|
+
* @return {module:model/ProductionDataFromEpiasRequest} The populated <code>ProductionDataFromEpiasRequest</code> instance.
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
}, {
|
|
71
|
+
key: "constructFromObject",
|
|
72
|
+
value: function constructFromObject(data, obj) {
|
|
73
|
+
if (data) {
|
|
74
|
+
obj = obj || new ProductionDataFromEpiasRequest();
|
|
75
|
+
|
|
76
|
+
if (data.hasOwnProperty('id')) {
|
|
77
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (data.hasOwnProperty('producer')) {
|
|
81
|
+
obj['producer'] = _Producer["default"].constructFromObject(data['producer']);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (data.hasOwnProperty('retailer')) {
|
|
85
|
+
obj['retailer'] = _Retailer["default"].constructFromObject(data['retailer']);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (data.hasOwnProperty('production_site')) {
|
|
89
|
+
obj['production_site'] = _ProductionSite["default"].constructFromObject(data['production_site']);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (data.hasOwnProperty('status')) {
|
|
93
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], _StatusEnum["default"]);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (data.hasOwnProperty('start_time')) {
|
|
97
|
+
obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Date');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (data.hasOwnProperty('end_time')) {
|
|
101
|
+
obj['end_time'] = _ApiClient["default"].convertToType(data['end_time'], 'Date');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (data.hasOwnProperty('created_at')) {
|
|
105
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (data.hasOwnProperty('updated_at')) {
|
|
109
|
+
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return obj;
|
|
114
|
+
}
|
|
115
|
+
}]);
|
|
116
|
+
|
|
117
|
+
return ProductionDataFromEpiasRequest;
|
|
118
|
+
}();
|
|
119
|
+
/**
|
|
120
|
+
* @member {String} id
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
ProductionDataFromEpiasRequest.prototype['id'] = undefined;
|
|
125
|
+
/**
|
|
126
|
+
* @member {module:model/Producer} producer
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
ProductionDataFromEpiasRequest.prototype['producer'] = undefined;
|
|
130
|
+
/**
|
|
131
|
+
* @member {module:model/Retailer} retailer
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
ProductionDataFromEpiasRequest.prototype['retailer'] = undefined;
|
|
135
|
+
/**
|
|
136
|
+
* @member {module:model/ProductionSite} production_site
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
ProductionDataFromEpiasRequest.prototype['production_site'] = undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Status is set to `started` or `finished` if at least one or all consumption datapoints have been matched. Default `unstarted`.
|
|
142
|
+
* @member {module:model/StatusEnum} status
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
ProductionDataFromEpiasRequest.prototype['status'] = undefined;
|
|
146
|
+
/**
|
|
147
|
+
* @member {Date} start_time
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
ProductionDataFromEpiasRequest.prototype['start_time'] = undefined;
|
|
151
|
+
/**
|
|
152
|
+
* @member {Date} end_time
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
ProductionDataFromEpiasRequest.prototype['end_time'] = undefined;
|
|
156
|
+
/**
|
|
157
|
+
* @member {Date} created_at
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
ProductionDataFromEpiasRequest.prototype['created_at'] = undefined;
|
|
161
|
+
/**
|
|
162
|
+
* @member {Date} updated_at
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
ProductionDataFromEpiasRequest.prototype['updated_at'] = undefined;
|
|
166
|
+
var _default = ProductionDataFromEpiasRequest;
|
|
167
|
+
exports["default"] = _default;
|
|
@@ -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 ProductionDataPointCreate model module.
|
|
20
22
|
* @module model/ProductionDataPointCreate
|
|
21
|
-
* @version 1.
|
|
23
|
+
* @version 1.1.1
|
|
22
24
|
*/
|
|
23
25
|
var ProductionDataPointCreate = /*#__PURE__*/function () {
|
|
24
26
|
/**
|
|
@@ -105,16 +107,16 @@ var ProductionDataPointCreate = /*#__PURE__*/function () {
|
|
|
105
107
|
obj['is_fully_matched'] = _ApiClient["default"].convertToType(data['is_fully_matched'], 'Boolean');
|
|
106
108
|
}
|
|
107
109
|
|
|
108
|
-
if (data.hasOwnProperty('
|
|
109
|
-
obj['
|
|
110
|
+
if (data.hasOwnProperty('tx')) {
|
|
111
|
+
obj['tx'] = _ApiClient["default"].convertToType(data['tx'], 'String');
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
if (data.hasOwnProperty('is_settlement_data')) {
|
|
113
115
|
obj['is_settlement_data'] = _ApiClient["default"].convertToType(data['is_settlement_data'], 'Boolean');
|
|
114
116
|
}
|
|
115
117
|
|
|
116
|
-
if (data.hasOwnProperty('
|
|
117
|
-
obj['
|
|
118
|
+
if (data.hasOwnProperty('minter_contract')) {
|
|
119
|
+
obj['minter_contract'] = _ApiClient["default"].convertToType(data['minter_contract'], _SmartContract["default"]);
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
if (data.hasOwnProperty('created_at')) {
|
|
@@ -187,17 +189,16 @@ ProductionDataPointCreate.prototype['amount_produced'] = undefined;
|
|
|
187
189
|
|
|
188
190
|
ProductionDataPointCreate.prototype['amount_matched'] = undefined;
|
|
189
191
|
/**
|
|
190
|
-
* True if
|
|
192
|
+
* True if fully matched. Default False.
|
|
191
193
|
* @member {Boolean} is_fully_matched
|
|
192
194
|
*/
|
|
193
195
|
|
|
194
196
|
ProductionDataPointCreate.prototype['is_fully_matched'] = undefined;
|
|
195
197
|
/**
|
|
196
|
-
*
|
|
197
|
-
* @member {String} production_tx_hash
|
|
198
|
+
* @member {String} tx
|
|
198
199
|
*/
|
|
199
200
|
|
|
200
|
-
ProductionDataPointCreate.prototype['
|
|
201
|
+
ProductionDataPointCreate.prototype['tx'] = undefined;
|
|
201
202
|
/**
|
|
202
203
|
* True if settlement data. Default False.
|
|
203
204
|
* @member {Boolean} is_settlement_data
|
|
@@ -205,11 +206,10 @@ ProductionDataPointCreate.prototype['production_tx_hash'] = undefined;
|
|
|
205
206
|
|
|
206
207
|
ProductionDataPointCreate.prototype['is_settlement_data'] = undefined;
|
|
207
208
|
/**
|
|
208
|
-
*
|
|
209
|
-
* @member {String} token_contract_address
|
|
209
|
+
* @member {module:model/SmartContract} minter_contract
|
|
210
210
|
*/
|
|
211
211
|
|
|
212
|
-
ProductionDataPointCreate.prototype['
|
|
212
|
+
ProductionDataPointCreate.prototype['minter_contract'] = undefined;
|
|
213
213
|
/**
|
|
214
214
|
* @member {Date} created_at
|
|
215
215
|
*/
|