green_link_api 0.49.2 → 0.49.6
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 +14 -7
- package/dist/ApiClient.js +4 -4
- package/dist/api/EnergyAssetsApi.js +50 -14
- package/dist/api/EnergyDataApi.js +86 -14
- package/dist/api/HealthCheckApi.js +2 -2
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -2
- package/dist/api/LocationsApi.js +2 -2
- package/dist/api/MaintenanceCheckApi.js +68 -0
- package/dist/api/OrganizationprofilesApi.js +2 -2
- package/dist/api/OrganizationsApi.js +2 -2
- package/dist/api/SchemaApi.js +2 -2
- package/dist/api/SentryDebugApi.js +2 -2
- package/dist/api/UsersApi.js +2 -2
- package/dist/index.js +43 -11
- package/dist/model/Consumer.js +2 -2
- package/dist/model/{FileList.js → ConsumptionDataFileList.js} +23 -23
- package/dist/model/ConsumptionDataPointCreate.js +2 -2
- package/dist/model/ConsumptionDataPointListOrDetail.js +2 -2
- package/dist/model/ConsumptionDataPointUpdate.js +2 -2
- package/dist/model/ConsumptionSite.js +11 -2
- package/dist/model/{FileUpload.js → ConsumptionSiteFileUpload.js} +23 -23
- package/dist/model/ConsumptionSiteListOrDetail.js +2 -2
- package/dist/model/EmissionFactor.js +2 -2
- 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 +2 -2
- package/dist/model/Issuer.js +2 -2
- package/dist/model/JWT.js +2 -2
- package/dist/model/Location.js +2 -2
- package/dist/model/Login.js +2 -2
- package/dist/model/MatchRequest.js +2 -2
- package/dist/model/MatchTypeEnum.js +1 -1
- package/dist/model/MatchedEnergyDataPoint.js +2 -2
- package/dist/model/MatchingConsumerRequest.js +2 -2
- package/dist/model/MatchingSiteRequest.js +2 -2
- 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 +2 -2
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +2 -2
- package/dist/model/PaginatedProducerList.js +2 -2
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedRetailerList.js +2 -2
- package/dist/model/PaginatedUserList.js +2 -2
- package/dist/model/PasswordChange.js +2 -2
- package/dist/model/PasswordReset.js +2 -2
- package/dist/model/PasswordResetConfirm.js +2 -2
- package/dist/model/PatchedConsumer.js +2 -2
- package/dist/model/PatchedConsumptionDataPointUpdate.js +2 -2
- package/dist/model/PatchedConsumptionSite.js +11 -2
- package/dist/model/PatchedEmissionFactor.js +2 -2
- package/dist/model/PatchedEnergySourcePreference.js +2 -2
- package/dist/model/PatchedGridOperator.js +2 -2
- package/dist/model/PatchedIssuer.js +2 -2
- package/dist/model/PatchedLocation.js +2 -2
- package/dist/model/PatchedProducer.js +2 -2
- package/dist/model/PatchedProductionDataPointUpdate.js +2 -2
- package/dist/model/PatchedProductionSiteUpdate.js +11 -3
- package/dist/model/PatchedRetailer.js +2 -2
- package/dist/model/PatchedUser.js +11 -2
- package/dist/model/PatchedUserDetail.js +11 -2
- package/dist/model/PriorityEnum.js +1 -1
- package/dist/model/Producer.js +2 -2
- package/dist/model/ProductionDataFileList.js +132 -0
- package/dist/model/ProductionDataPointCreate.js +2 -2
- package/dist/model/ProductionDataPointListOrDetail.js +2 -2
- package/dist/model/ProductionDataPointUpdate.js +2 -2
- package/dist/model/ProductionSite.js +16 -8
- package/dist/model/ProductionSiteFileUpload.js +177 -0
- package/dist/model/ProductionSiteListOrDetail.js +6 -8
- package/dist/model/ProductionSiteUpdate.js +16 -8
- package/dist/model/Register.js +11 -2
- package/dist/model/RestAuthDetail.js +2 -2
- package/dist/model/Retailer.js +2 -2
- package/dist/model/StatusEnum.js +1 -1
- package/dist/model/TokenRefresh.js +2 -2
- package/dist/model/TokenVerify.js +2 -2
- package/dist/model/User.js +11 -2
- package/dist/model/UserDetail.js +11 -2
- package/dist/model/VerifyEmail.js +2 -2
- package/package.json +1 -1
|
@@ -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 PatchedProducer model module.
|
|
22
22
|
* @module model/PatchedProducer
|
|
23
|
-
* @version 0.49.
|
|
23
|
+
* @version 0.49.6
|
|
24
24
|
*/
|
|
25
25
|
var PatchedProducer = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -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 PatchedProductionDataPointUpdate model module.
|
|
20
20
|
* @module model/PatchedProductionDataPointUpdate
|
|
21
|
-
* @version 0.49.
|
|
21
|
+
* @version 0.49.6
|
|
22
22
|
*/
|
|
23
23
|
var PatchedProductionDataPointUpdate = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -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 PatchedProductionSiteUpdate model module.
|
|
22
22
|
* @module model/PatchedProductionSiteUpdate
|
|
23
|
-
* @version 0.49.
|
|
23
|
+
* @version 0.49.6
|
|
24
24
|
*/
|
|
25
25
|
var PatchedProductionSiteUpdate = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -84,6 +84,10 @@ var PatchedProductionSiteUpdate = /*#__PURE__*/function () {
|
|
|
84
84
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
if (data.hasOwnProperty('site_logo')) {
|
|
88
|
+
obj['site_logo'] = _ApiClient["default"].convertToType(data['site_logo'], 'String');
|
|
89
|
+
}
|
|
90
|
+
|
|
87
91
|
if (data.hasOwnProperty('capacity')) {
|
|
88
92
|
obj['capacity'] = _ApiClient["default"].convertToType(data['capacity'], 'Number');
|
|
89
93
|
}
|
|
@@ -169,7 +173,11 @@ PatchedProductionSiteUpdate.prototype['location'] = undefined;
|
|
|
169
173
|
|
|
170
174
|
PatchedProductionSiteUpdate.prototype['name'] = undefined;
|
|
171
175
|
/**
|
|
172
|
-
*
|
|
176
|
+
* @member {String} site_logo
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
PatchedProductionSiteUpdate.prototype['site_logo'] = undefined;
|
|
180
|
+
/**
|
|
173
181
|
* @member {Number} capacity
|
|
174
182
|
*/
|
|
175
183
|
|
|
@@ -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 PatchedRetailer model module.
|
|
22
22
|
* @module model/PatchedRetailer
|
|
23
|
-
* @version 0.49.
|
|
23
|
+
* @version 0.49.6
|
|
24
24
|
*/
|
|
25
25
|
var PatchedRetailer = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -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 0.49.
|
|
23
|
+
* @version 0.49.6
|
|
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
|
}
|
|
@@ -157,6 +161,11 @@ PatchedUser.prototype['email'] = undefined;
|
|
|
157
161
|
*/
|
|
158
162
|
|
|
159
163
|
PatchedUser.prototype['phone_number'] = undefined;
|
|
164
|
+
/**
|
|
165
|
+
* @member {String} profile_logo
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
PatchedUser.prototype['profile_logo'] = undefined;
|
|
160
169
|
/**
|
|
161
170
|
* @member {String} organization
|
|
162
171
|
*/
|
|
@@ -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 0.49.
|
|
23
|
+
* @version 0.49.6
|
|
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
|
}
|
|
@@ -157,6 +161,11 @@ PatchedUserDetail.prototype['email'] = undefined;
|
|
|
157
161
|
*/
|
|
158
162
|
|
|
159
163
|
PatchedUserDetail.prototype['phone_number'] = undefined;
|
|
164
|
+
/**
|
|
165
|
+
* @member {String} profile_logo
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
PatchedUserDetail.prototype['profile_logo'] = undefined;
|
|
160
169
|
/**
|
|
161
170
|
* @member {String} organization
|
|
162
171
|
*/
|
|
@@ -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
|
|
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 0.49.
|
|
23
|
+
* @version 0.49.6
|
|
24
24
|
*/
|
|
25
25
|
var Producer = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -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 0.49.6
|
|
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;
|
|
@@ -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 ProductionDataPointCreate model module.
|
|
20
20
|
* @module model/ProductionDataPointCreate
|
|
21
|
-
* @version 0.49.
|
|
21
|
+
* @version 0.49.6
|
|
22
22
|
*/
|
|
23
23
|
var ProductionDataPointCreate = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -19,12 +19,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
19
19
|
|
|
20
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); } }
|
|
21
21
|
|
|
22
|
-
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; }
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* The ProductionDataPointListOrDetail model module.
|
|
26
26
|
* @module model/ProductionDataPointListOrDetail
|
|
27
|
-
* @version 0.49.
|
|
27
|
+
* @version 0.49.6
|
|
28
28
|
*/
|
|
29
29
|
var ProductionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
30
30
|
/**
|
|
@@ -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 ProductionDataPointUpdate model module.
|
|
20
20
|
* @module model/ProductionDataPointUpdate
|
|
21
|
-
* @version 0.49.
|
|
21
|
+
* @version 0.49.6
|
|
22
22
|
*/
|
|
23
23
|
var ProductionDataPointUpdate = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -15,28 +15,28 @@ 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 ProductionSite model module.
|
|
22
22
|
* @module model/ProductionSite
|
|
23
|
-
* @version 0.49.
|
|
23
|
+
* @version 0.49.6
|
|
24
24
|
*/
|
|
25
25
|
var ProductionSite = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
27
27
|
* Constructs a new <code>ProductionSite</code>.
|
|
28
28
|
* @alias module:model/ProductionSite
|
|
29
|
+
* @param producer {String}
|
|
29
30
|
* @param location {module:model/Location}
|
|
30
31
|
* @param name {String} Required. 150 characters or fewer.
|
|
31
|
-
* @param capacity {Number} Required. Value should be in KWh.
|
|
32
32
|
* @param energySource {String}
|
|
33
33
|
* @param technologyOrFuelType {String}
|
|
34
34
|
* @param eic {String} Required. 30 characters or fewer.
|
|
35
35
|
*/
|
|
36
|
-
function ProductionSite(location, name,
|
|
36
|
+
function ProductionSite(producer, location, name, energySource, technologyOrFuelType, eic) {
|
|
37
37
|
_classCallCheck(this, ProductionSite);
|
|
38
38
|
|
|
39
|
-
ProductionSite.initialize(this, location, name,
|
|
39
|
+
ProductionSite.initialize(this, producer, location, name, energySource, technologyOrFuelType, eic);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Initializes the fields of this object.
|
|
@@ -47,10 +47,10 @@ var ProductionSite = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
_createClass(ProductionSite, null, [{
|
|
49
49
|
key: "initialize",
|
|
50
|
-
value: function initialize(obj, location, name,
|
|
50
|
+
value: function initialize(obj, producer, location, name, energySource, technologyOrFuelType, eic) {
|
|
51
|
+
obj['producer'] = producer;
|
|
51
52
|
obj['location'] = location;
|
|
52
53
|
obj['name'] = name;
|
|
53
|
-
obj['capacity'] = capacity;
|
|
54
54
|
obj['energy_source'] = energySource;
|
|
55
55
|
obj['technology_or_fuel_type'] = technologyOrFuelType;
|
|
56
56
|
obj['eic'] = eic;
|
|
@@ -97,6 +97,10 @@ var ProductionSite = /*#__PURE__*/function () {
|
|
|
97
97
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
if (data.hasOwnProperty('site_logo')) {
|
|
101
|
+
obj['site_logo'] = _ApiClient["default"].convertToType(data['site_logo'], 'String');
|
|
102
|
+
}
|
|
103
|
+
|
|
100
104
|
if (data.hasOwnProperty('capacity')) {
|
|
101
105
|
obj['capacity'] = _ApiClient["default"].convertToType(data['capacity'], 'Number');
|
|
102
106
|
}
|
|
@@ -182,7 +186,11 @@ ProductionSite.prototype['location'] = undefined;
|
|
|
182
186
|
|
|
183
187
|
ProductionSite.prototype['name'] = undefined;
|
|
184
188
|
/**
|
|
185
|
-
*
|
|
189
|
+
* @member {String} site_logo
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
ProductionSite.prototype['site_logo'] = undefined;
|
|
193
|
+
/**
|
|
186
194
|
* @member {Number} capacity
|
|
187
195
|
*/
|
|
188
196
|
|
|
@@ -0,0 +1,177 @@
|
|
|
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 ProductionSiteFileUpload model module.
|
|
20
|
+
* @module model/ProductionSiteFileUpload
|
|
21
|
+
* @version 0.49.6
|
|
22
|
+
*/
|
|
23
|
+
var ProductionSiteFileUpload = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>ProductionSiteFileUpload</code>.
|
|
26
|
+
* @alias module:model/ProductionSiteFileUpload
|
|
27
|
+
* @param file {String}
|
|
28
|
+
* @param producer {String}
|
|
29
|
+
* @param eicColumnName {String}
|
|
30
|
+
* @param nameColumnName {String}
|
|
31
|
+
* @param capacityColumnName {String}
|
|
32
|
+
* @param powerPlantIdColumnName {String}
|
|
33
|
+
* @param energySourceColumnName {String}
|
|
34
|
+
* @param technologyOrFuelTypeColumnName {String}
|
|
35
|
+
* @param latitudeColumnName {String}
|
|
36
|
+
* @param longitudeColumnName {String}
|
|
37
|
+
*/
|
|
38
|
+
function ProductionSiteFileUpload(file, producer, eicColumnName, nameColumnName, capacityColumnName, powerPlantIdColumnName, energySourceColumnName, technologyOrFuelTypeColumnName, latitudeColumnName, longitudeColumnName) {
|
|
39
|
+
_classCallCheck(this, ProductionSiteFileUpload);
|
|
40
|
+
|
|
41
|
+
ProductionSiteFileUpload.initialize(this, file, producer, eicColumnName, nameColumnName, capacityColumnName, powerPlantIdColumnName, energySourceColumnName, technologyOrFuelTypeColumnName, latitudeColumnName, longitudeColumnName);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
_createClass(ProductionSiteFileUpload, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, file, producer, eicColumnName, nameColumnName, capacityColumnName, powerPlantIdColumnName, energySourceColumnName, technologyOrFuelTypeColumnName, latitudeColumnName, longitudeColumnName) {
|
|
53
|
+
obj['file'] = file;
|
|
54
|
+
obj['producer'] = producer;
|
|
55
|
+
obj['eic_column_name'] = eicColumnName;
|
|
56
|
+
obj['name_column_name'] = nameColumnName;
|
|
57
|
+
obj['capacity_column_name'] = capacityColumnName;
|
|
58
|
+
obj['power_plant_id_column_name'] = powerPlantIdColumnName;
|
|
59
|
+
obj['energy_source_column_name'] = energySourceColumnName;
|
|
60
|
+
obj['technology_or_fuel_type_column_name'] = technologyOrFuelTypeColumnName;
|
|
61
|
+
obj['latitude_column_name'] = latitudeColumnName;
|
|
62
|
+
obj['longitude_column_name'] = longitudeColumnName;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Constructs a <code>ProductionSiteFileUpload</code> from a plain JavaScript object, optionally creating a new instance.
|
|
66
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
67
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
68
|
+
* @param {module:model/ProductionSiteFileUpload} obj Optional instance to populate.
|
|
69
|
+
* @return {module:model/ProductionSiteFileUpload} The populated <code>ProductionSiteFileUpload</code> instance.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
}, {
|
|
73
|
+
key: "constructFromObject",
|
|
74
|
+
value: function constructFromObject(data, obj) {
|
|
75
|
+
if (data) {
|
|
76
|
+
obj = obj || new ProductionSiteFileUpload();
|
|
77
|
+
|
|
78
|
+
if (data.hasOwnProperty('file')) {
|
|
79
|
+
obj['file'] = _ApiClient["default"].convertToType(data['file'], 'String');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (data.hasOwnProperty('producer')) {
|
|
83
|
+
obj['producer'] = _ApiClient["default"].convertToType(data['producer'], 'String');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (data.hasOwnProperty('eic_column_name')) {
|
|
87
|
+
obj['eic_column_name'] = _ApiClient["default"].convertToType(data['eic_column_name'], 'String');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (data.hasOwnProperty('name_column_name')) {
|
|
91
|
+
obj['name_column_name'] = _ApiClient["default"].convertToType(data['name_column_name'], 'String');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (data.hasOwnProperty('capacity_column_name')) {
|
|
95
|
+
obj['capacity_column_name'] = _ApiClient["default"].convertToType(data['capacity_column_name'], 'String');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (data.hasOwnProperty('power_plant_id_column_name')) {
|
|
99
|
+
obj['power_plant_id_column_name'] = _ApiClient["default"].convertToType(data['power_plant_id_column_name'], 'String');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (data.hasOwnProperty('energy_source_column_name')) {
|
|
103
|
+
obj['energy_source_column_name'] = _ApiClient["default"].convertToType(data['energy_source_column_name'], 'String');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (data.hasOwnProperty('technology_or_fuel_type_column_name')) {
|
|
107
|
+
obj['technology_or_fuel_type_column_name'] = _ApiClient["default"].convertToType(data['technology_or_fuel_type_column_name'], 'String');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (data.hasOwnProperty('latitude_column_name')) {
|
|
111
|
+
obj['latitude_column_name'] = _ApiClient["default"].convertToType(data['latitude_column_name'], 'String');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (data.hasOwnProperty('longitude_column_name')) {
|
|
115
|
+
obj['longitude_column_name'] = _ApiClient["default"].convertToType(data['longitude_column_name'], 'String');
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return obj;
|
|
120
|
+
}
|
|
121
|
+
}]);
|
|
122
|
+
|
|
123
|
+
return ProductionSiteFileUpload;
|
|
124
|
+
}();
|
|
125
|
+
/**
|
|
126
|
+
* @member {String} file
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
ProductionSiteFileUpload.prototype['file'] = undefined;
|
|
131
|
+
/**
|
|
132
|
+
* @member {String} producer
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
ProductionSiteFileUpload.prototype['producer'] = undefined;
|
|
136
|
+
/**
|
|
137
|
+
* @member {String} eic_column_name
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
ProductionSiteFileUpload.prototype['eic_column_name'] = undefined;
|
|
141
|
+
/**
|
|
142
|
+
* @member {String} name_column_name
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
ProductionSiteFileUpload.prototype['name_column_name'] = undefined;
|
|
146
|
+
/**
|
|
147
|
+
* @member {String} capacity_column_name
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
ProductionSiteFileUpload.prototype['capacity_column_name'] = undefined;
|
|
151
|
+
/**
|
|
152
|
+
* @member {String} power_plant_id_column_name
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
ProductionSiteFileUpload.prototype['power_plant_id_column_name'] = undefined;
|
|
156
|
+
/**
|
|
157
|
+
* @member {String} energy_source_column_name
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
ProductionSiteFileUpload.prototype['energy_source_column_name'] = undefined;
|
|
161
|
+
/**
|
|
162
|
+
* @member {String} technology_or_fuel_type_column_name
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
ProductionSiteFileUpload.prototype['technology_or_fuel_type_column_name'] = undefined;
|
|
166
|
+
/**
|
|
167
|
+
* @member {String} latitude_column_name
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
ProductionSiteFileUpload.prototype['latitude_column_name'] = undefined;
|
|
171
|
+
/**
|
|
172
|
+
* @member {String} longitude_column_name
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
ProductionSiteFileUpload.prototype['longitude_column_name'] = undefined;
|
|
176
|
+
var _default = ProductionSiteFileUpload;
|
|
177
|
+
exports["default"] = _default;
|