green_link_api 1.10.2 → 1.10.3
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 +2 -2
- package/dist/ApiClient.js +51 -133
- package/dist/api/BlockchainApi.js +19 -38
- package/dist/api/EnergyAssetsApi.js +61 -106
- package/dist/api/EnergyDataApi.js +88 -152
- package/dist/api/HealthCheckApi.js +2 -12
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -12
- package/dist/api/LocationsApi.js +21 -40
- package/dist/api/LogsApi.js +36 -67
- package/dist/api/MaintenanceCheckApi.js +2 -12
- package/dist/api/OrganizationprofilesApi.js +19 -38
- package/dist/api/OrganizationsApi.js +91 -146
- package/dist/api/SchemaApi.js +2 -12
- package/dist/api/SentryDebugApi.js +2 -12
- package/dist/api/UsersApi.js +23 -47
- package/dist/index.js +0 -110
- package/dist/model/Activities.js +9 -28
- package/dist/model/BlockchainTransaction.js +12 -36
- package/dist/model/Consumer.js +13 -37
- package/dist/model/ConsumptionDataFileList.js +8 -26
- package/dist/model/ConsumptionDataFromRetailerRequest.js +5 -20
- package/dist/model/ConsumptionDataPointCreate.js +24 -59
- package/dist/model/ConsumptionDataPointListOrDetail.js +24 -64
- package/dist/model/ConsumptionDataPointUpdate.js +24 -59
- package/dist/model/ConsumptionSite.js +15 -41
- package/dist/model/ConsumptionSiteContract.js +9 -29
- package/dist/model/ConsumptionSiteContractImport.js +5 -20
- package/dist/model/ConsumptionSiteCreate.js +15 -41
- package/dist/model/ConsumptionSiteFileUpload.js +8 -26
- package/dist/model/ConsumptionSiteListOrDetail.js +14 -41
- package/dist/model/ContentTypeEnum.js +0 -15
- package/dist/model/EacTypeEnum.js +0 -11
- package/dist/model/EmissionFactor.js +9 -28
- package/dist/model/EnergySourceEnum.js +0 -18
- package/dist/model/EnergySourcePreference.js +10 -32
- package/dist/model/GetFromEpias.js +5 -20
- package/dist/model/GridOperator.js +11 -33
- package/dist/model/ImportRequest.js +14 -40
- package/dist/model/ImportRequestStatusEnum.js +0 -14
- package/dist/model/ImportedEnergyDataPoint.js +11 -32
- package/dist/model/Issuer.js +11 -33
- package/dist/model/Location.js +19 -48
- package/dist/model/Login.js +5 -20
- package/dist/model/MatchRequest.js +23 -63
- package/dist/model/MatchTypeEnum.js +0 -12
- package/dist/model/MatchedEnergyDataPoint.js +14 -39
- package/dist/model/MatchingConsumerRequest.js +7 -24
- package/dist/model/MatchingSiteRequest.js +7 -24
- package/dist/model/OrganizationTypeEnum.js +0 -16
- package/dist/model/PaginatedActivitiesList.js +6 -23
- package/dist/model/PaginatedConsumerList.js +6 -23
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +6 -23
- package/dist/model/PaginatedConsumptionSiteContractList.js +6 -23
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +6 -23
- package/dist/model/PaginatedEmissionFactorList.js +6 -23
- package/dist/model/PaginatedEnergySourcePreferenceList.js +6 -23
- package/dist/model/PaginatedGridOperatorList.js +6 -23
- package/dist/model/PaginatedImportRequestList.js +6 -23
- package/dist/model/PaginatedImportedEnergyDataPointList.js +6 -23
- package/dist/model/PaginatedIssuerList.js +6 -23
- package/dist/model/PaginatedLocationList.js +6 -23
- package/dist/model/PaginatedMatchRequestList.js +6 -23
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +6 -23
- package/dist/model/PaginatedProducerList.js +6 -23
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +6 -23
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +6 -23
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +6 -23
- package/dist/model/PaginatedRetailerList.js +6 -23
- package/dist/model/PaginatedSmartContractList.js +6 -23
- package/dist/model/PaginatedUnprocessedRowList.js +6 -23
- package/dist/model/PaginatedUploadedCertificateListorDetailList.js +6 -23
- package/dist/model/PaginatedUploadedFileList.js +6 -23
- package/dist/model/PaginatedUserList.js +6 -23
- package/dist/model/PatchedConsumer.js +13 -37
- package/dist/model/PatchedConsumptionDataPointUpdate.js +24 -59
- package/dist/model/PatchedConsumptionSite.js +15 -41
- package/dist/model/PatchedEmissionFactor.js +9 -28
- package/dist/model/PatchedEnergySourcePreference.js +10 -32
- package/dist/model/PatchedGridOperator.js +11 -33
- package/dist/model/PatchedIssuer.js +11 -33
- package/dist/model/PatchedLocation.js +19 -48
- package/dist/model/PatchedProducer.js +11 -33
- package/dist/model/PatchedProductionDataPointUpdate.js +18 -47
- package/dist/model/PatchedProductionSiteUpdate.js +20 -51
- package/dist/model/PatchedRetailer.js +12 -35
- package/dist/model/PatchedSmartContract.js +9 -28
- package/dist/model/PatchedUser.js +18 -47
- package/dist/model/PatchedUserDetail.js +18 -47
- package/dist/model/PriorityEnum.js +0 -18
- package/dist/model/Producer.js +11 -33
- package/dist/model/ProductionDataFileList.js +8 -26
- package/dist/model/ProductionDataFromEpiasRequest.js +11 -36
- package/dist/model/ProductionDataPointCreate.js +18 -47
- package/dist/model/ProductionDataPointListOrDetail.js +19 -53
- package/dist/model/ProductionDataPointUpdate.js +18 -47
- package/dist/model/ProductionSite.js +20 -51
- package/dist/model/ProductionSiteFileUpload.js +12 -34
- package/dist/model/ProductionSiteListOrDetail.js +18 -48
- package/dist/model/ProductionSiteUpdate.js +20 -51
- package/dist/model/Register.js +14 -38
- package/dist/model/Retailer.js +12 -35
- package/dist/model/SmartContract.js +9 -28
- package/dist/model/Status619Enum.js +0 -13
- package/dist/model/Token.js +3 -16
- package/dist/model/TypeEnum.js +0 -13
- package/dist/model/UnprocessedRow.js +9 -28
- package/dist/model/UploadedCertificate.js +12 -35
- package/dist/model/UploadedCertificateListorDetail.js +12 -36
- package/dist/model/UploadedFile.js +10 -32
- package/dist/model/User.js +18 -47
- package/dist/model/UserDetail.js +18 -47
- package/package.json +1 -1
|
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _Location = _interopRequireDefault(require("./Location"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
|
-
|
|
18
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* The PatchedConsumptionSite model module.
|
|
22
15
|
* @module model/PatchedConsumptionSite
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.3
|
|
24
17
|
*/
|
|
25
18
|
var PatchedConsumptionSite = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -29,19 +22,18 @@ var PatchedConsumptionSite = /*#__PURE__*/function () {
|
|
|
29
22
|
*/
|
|
30
23
|
function PatchedConsumptionSite() {
|
|
31
24
|
_classCallCheck(this, PatchedConsumptionSite);
|
|
32
|
-
|
|
33
25
|
PatchedConsumptionSite.initialize(this);
|
|
34
26
|
}
|
|
27
|
+
|
|
35
28
|
/**
|
|
36
29
|
* Initializes the fields of this object.
|
|
37
30
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
31
|
* Only for internal use.
|
|
39
32
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
33
|
_createClass(PatchedConsumptionSite, null, [{
|
|
43
34
|
key: "initialize",
|
|
44
35
|
value: function initialize(obj) {}
|
|
36
|
+
|
|
45
37
|
/**
|
|
46
38
|
* Constructs a <code>PatchedConsumptionSite</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
39
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,140 +41,122 @@ var PatchedConsumptionSite = /*#__PURE__*/function () {
|
|
|
49
41
|
* @param {module:model/PatchedConsumptionSite} obj Optional instance to populate.
|
|
50
42
|
* @return {module:model/PatchedConsumptionSite} The populated <code>PatchedConsumptionSite</code> instance.
|
|
51
43
|
*/
|
|
52
|
-
|
|
53
44
|
}, {
|
|
54
45
|
key: "constructFromObject",
|
|
55
46
|
value: function constructFromObject(data, obj) {
|
|
56
47
|
if (data) {
|
|
57
48
|
obj = obj || new PatchedConsumptionSite();
|
|
58
|
-
|
|
59
49
|
if (data.hasOwnProperty('id')) {
|
|
60
50
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
if (data.hasOwnProperty('consumer')) {
|
|
64
53
|
obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
if (data.hasOwnProperty('grid_operator')) {
|
|
68
56
|
obj['grid_operator'] = _ApiClient["default"].convertToType(data['grid_operator'], 'String');
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
if (data.hasOwnProperty('retailer')) {
|
|
72
59
|
obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
|
|
73
60
|
}
|
|
74
|
-
|
|
75
61
|
if (data.hasOwnProperty('issuer')) {
|
|
76
62
|
obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String');
|
|
77
63
|
}
|
|
78
|
-
|
|
79
64
|
if (data.hasOwnProperty('location')) {
|
|
80
65
|
obj['location'] = _Location["default"].constructFromObject(data['location']);
|
|
81
66
|
}
|
|
82
|
-
|
|
83
67
|
if (data.hasOwnProperty('name')) {
|
|
84
68
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
85
69
|
}
|
|
86
|
-
|
|
87
70
|
if (data.hasOwnProperty('site_logo')) {
|
|
88
71
|
obj['site_logo'] = _ApiClient["default"].convertToType(data['site_logo'], 'String');
|
|
89
72
|
}
|
|
90
|
-
|
|
91
73
|
if (data.hasOwnProperty('eic')) {
|
|
92
74
|
obj['eic'] = _ApiClient["default"].convertToType(data['eic'], 'String');
|
|
93
75
|
}
|
|
94
|
-
|
|
95
76
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
96
77
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
97
78
|
}
|
|
98
|
-
|
|
99
79
|
if (data.hasOwnProperty('is_active')) {
|
|
100
80
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
101
81
|
}
|
|
102
|
-
|
|
103
82
|
if (data.hasOwnProperty('created_at')) {
|
|
104
83
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
105
84
|
}
|
|
106
|
-
|
|
107
85
|
if (data.hasOwnProperty('updated_at')) {
|
|
108
86
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
109
87
|
}
|
|
110
88
|
}
|
|
111
|
-
|
|
112
89
|
return obj;
|
|
113
90
|
}
|
|
114
91
|
}]);
|
|
115
|
-
|
|
116
92
|
return PatchedConsumptionSite;
|
|
117
93
|
}();
|
|
118
94
|
/**
|
|
119
95
|
* @member {String} id
|
|
120
96
|
*/
|
|
121
|
-
|
|
122
|
-
|
|
123
97
|
PatchedConsumptionSite.prototype['id'] = undefined;
|
|
98
|
+
|
|
124
99
|
/**
|
|
125
100
|
* @member {String} consumer
|
|
126
101
|
*/
|
|
127
|
-
|
|
128
102
|
PatchedConsumptionSite.prototype['consumer'] = undefined;
|
|
103
|
+
|
|
129
104
|
/**
|
|
130
105
|
* @member {String} grid_operator
|
|
131
106
|
*/
|
|
132
|
-
|
|
133
107
|
PatchedConsumptionSite.prototype['grid_operator'] = undefined;
|
|
108
|
+
|
|
134
109
|
/**
|
|
135
110
|
* @member {String} retailer
|
|
136
111
|
*/
|
|
137
|
-
|
|
138
112
|
PatchedConsumptionSite.prototype['retailer'] = undefined;
|
|
113
|
+
|
|
139
114
|
/**
|
|
140
115
|
* @member {String} issuer
|
|
141
116
|
*/
|
|
142
|
-
|
|
143
117
|
PatchedConsumptionSite.prototype['issuer'] = undefined;
|
|
118
|
+
|
|
144
119
|
/**
|
|
145
120
|
* @member {module:model/Location} location
|
|
146
121
|
*/
|
|
147
|
-
|
|
148
122
|
PatchedConsumptionSite.prototype['location'] = undefined;
|
|
123
|
+
|
|
149
124
|
/**
|
|
150
125
|
* Required. 150 characters or fewer.
|
|
151
126
|
* @member {String} name
|
|
152
127
|
*/
|
|
153
|
-
|
|
154
128
|
PatchedConsumptionSite.prototype['name'] = undefined;
|
|
129
|
+
|
|
155
130
|
/**
|
|
156
131
|
* @member {String} site_logo
|
|
157
132
|
*/
|
|
158
|
-
|
|
159
133
|
PatchedConsumptionSite.prototype['site_logo'] = undefined;
|
|
134
|
+
|
|
160
135
|
/**
|
|
161
136
|
* Required. 30 characters or fewer.
|
|
162
137
|
* @member {String} eic
|
|
163
138
|
*/
|
|
164
|
-
|
|
165
139
|
PatchedConsumptionSite.prototype['eic'] = undefined;
|
|
140
|
+
|
|
166
141
|
/**
|
|
167
142
|
* @member {String} blockchain_account_address
|
|
168
143
|
*/
|
|
169
|
-
|
|
170
144
|
PatchedConsumptionSite.prototype['blockchain_account_address'] = undefined;
|
|
145
|
+
|
|
171
146
|
/**
|
|
172
147
|
* True if organization is active. Default True.
|
|
173
148
|
* @member {Boolean} is_active
|
|
174
149
|
*/
|
|
175
|
-
|
|
176
150
|
PatchedConsumptionSite.prototype['is_active'] = undefined;
|
|
151
|
+
|
|
177
152
|
/**
|
|
178
153
|
* @member {Date} created_at
|
|
179
154
|
*/
|
|
180
|
-
|
|
181
155
|
PatchedConsumptionSite.prototype['created_at'] = undefined;
|
|
156
|
+
|
|
182
157
|
/**
|
|
183
158
|
* @member {Date} updated_at
|
|
184
159
|
*/
|
|
185
|
-
|
|
186
160
|
PatchedConsumptionSite.prototype['updated_at'] = undefined;
|
|
187
161
|
var _default = PatchedConsumptionSite;
|
|
188
162
|
exports["default"] = _default;
|
|
@@ -4,21 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
-
|
|
14
10
|
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
11
|
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
12
|
/**
|
|
19
13
|
* The PatchedEmissionFactor model module.
|
|
20
14
|
* @module model/PatchedEmissionFactor
|
|
21
|
-
* @version 1.10.
|
|
15
|
+
* @version 1.10.3
|
|
22
16
|
*/
|
|
23
17
|
var PatchedEmissionFactor = /*#__PURE__*/function () {
|
|
24
18
|
/**
|
|
@@ -27,19 +21,18 @@ var PatchedEmissionFactor = /*#__PURE__*/function () {
|
|
|
27
21
|
*/
|
|
28
22
|
function PatchedEmissionFactor() {
|
|
29
23
|
_classCallCheck(this, PatchedEmissionFactor);
|
|
30
|
-
|
|
31
24
|
PatchedEmissionFactor.initialize(this);
|
|
32
25
|
}
|
|
26
|
+
|
|
33
27
|
/**
|
|
34
28
|
* Initializes the fields of this object.
|
|
35
29
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
36
30
|
* Only for internal use.
|
|
37
31
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
32
|
_createClass(PatchedEmissionFactor, null, [{
|
|
41
33
|
key: "initialize",
|
|
42
34
|
value: function initialize(obj) {}
|
|
35
|
+
|
|
43
36
|
/**
|
|
44
37
|
* Constructs a <code>PatchedEmissionFactor</code> from a plain JavaScript object, optionally creating a new instance.
|
|
45
38
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -47,84 +40,72 @@ var PatchedEmissionFactor = /*#__PURE__*/function () {
|
|
|
47
40
|
* @param {module:model/PatchedEmissionFactor} obj Optional instance to populate.
|
|
48
41
|
* @return {module:model/PatchedEmissionFactor} The populated <code>PatchedEmissionFactor</code> instance.
|
|
49
42
|
*/
|
|
50
|
-
|
|
51
43
|
}, {
|
|
52
44
|
key: "constructFromObject",
|
|
53
45
|
value: function constructFromObject(data, obj) {
|
|
54
46
|
if (data) {
|
|
55
47
|
obj = obj || new PatchedEmissionFactor();
|
|
56
|
-
|
|
57
48
|
if (data.hasOwnProperty('id')) {
|
|
58
49
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
59
50
|
}
|
|
60
|
-
|
|
61
51
|
if (data.hasOwnProperty('period_start')) {
|
|
62
52
|
obj['period_start'] = _ApiClient["default"].convertToType(data['period_start'], 'Date');
|
|
63
53
|
}
|
|
64
|
-
|
|
65
54
|
if (data.hasOwnProperty('period_end')) {
|
|
66
55
|
obj['period_end'] = _ApiClient["default"].convertToType(data['period_end'], 'Date');
|
|
67
56
|
}
|
|
68
|
-
|
|
69
57
|
if (data.hasOwnProperty('country')) {
|
|
70
58
|
obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
|
|
71
59
|
}
|
|
72
|
-
|
|
73
60
|
if (data.hasOwnProperty('electricity_emission_factor')) {
|
|
74
61
|
obj['electricity_emission_factor'] = _ApiClient["default"].convertToType(data['electricity_emission_factor'], 'Number');
|
|
75
62
|
}
|
|
76
|
-
|
|
77
63
|
if (data.hasOwnProperty('created_at')) {
|
|
78
64
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
79
65
|
}
|
|
80
|
-
|
|
81
66
|
if (data.hasOwnProperty('updated_at')) {
|
|
82
67
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
83
68
|
}
|
|
84
69
|
}
|
|
85
|
-
|
|
86
70
|
return obj;
|
|
87
71
|
}
|
|
88
72
|
}]);
|
|
89
|
-
|
|
90
73
|
return PatchedEmissionFactor;
|
|
91
74
|
}();
|
|
92
75
|
/**
|
|
93
76
|
* @member {String} id
|
|
94
77
|
*/
|
|
95
|
-
|
|
96
|
-
|
|
97
78
|
PatchedEmissionFactor.prototype['id'] = undefined;
|
|
79
|
+
|
|
98
80
|
/**
|
|
99
81
|
* @member {Date} period_start
|
|
100
82
|
*/
|
|
101
|
-
|
|
102
83
|
PatchedEmissionFactor.prototype['period_start'] = undefined;
|
|
84
|
+
|
|
103
85
|
/**
|
|
104
86
|
* @member {Date} period_end
|
|
105
87
|
*/
|
|
106
|
-
|
|
107
88
|
PatchedEmissionFactor.prototype['period_end'] = undefined;
|
|
89
|
+
|
|
108
90
|
/**
|
|
109
91
|
* Required. 150 characters or fewer.
|
|
110
92
|
* @member {String} country
|
|
111
93
|
*/
|
|
112
|
-
|
|
113
94
|
PatchedEmissionFactor.prototype['country'] = undefined;
|
|
95
|
+
|
|
114
96
|
/**
|
|
115
97
|
* @member {Number} electricity_emission_factor
|
|
116
98
|
*/
|
|
117
|
-
|
|
118
99
|
PatchedEmissionFactor.prototype['electricity_emission_factor'] = undefined;
|
|
100
|
+
|
|
119
101
|
/**
|
|
120
102
|
* @member {Date} created_at
|
|
121
103
|
*/
|
|
122
|
-
|
|
123
104
|
PatchedEmissionFactor.prototype['created_at'] = undefined;
|
|
105
|
+
|
|
124
106
|
/**
|
|
125
107
|
* @member {Date} updated_at
|
|
126
108
|
*/
|
|
127
|
-
|
|
128
109
|
PatchedEmissionFactor.prototype['updated_at'] = undefined;
|
|
129
110
|
var _default = PatchedEmissionFactor;
|
|
130
111
|
exports["default"] = _default;
|
|
@@ -4,25 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _EnergySourceEnum = _interopRequireDefault(require("./EnergySourceEnum"));
|
|
11
|
-
|
|
12
9
|
var _PriorityEnum = _interopRequireDefault(require("./PriorityEnum"));
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
11
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
-
|
|
18
12
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
|
-
|
|
20
13
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
-
|
|
22
14
|
/**
|
|
23
15
|
* The PatchedEnergySourcePreference model module.
|
|
24
16
|
* @module model/PatchedEnergySourcePreference
|
|
25
|
-
* @version 1.10.
|
|
17
|
+
* @version 1.10.3
|
|
26
18
|
*/
|
|
27
19
|
var PatchedEnergySourcePreference = /*#__PURE__*/function () {
|
|
28
20
|
/**
|
|
@@ -31,19 +23,18 @@ var PatchedEnergySourcePreference = /*#__PURE__*/function () {
|
|
|
31
23
|
*/
|
|
32
24
|
function PatchedEnergySourcePreference() {
|
|
33
25
|
_classCallCheck(this, PatchedEnergySourcePreference);
|
|
34
|
-
|
|
35
26
|
PatchedEnergySourcePreference.initialize(this);
|
|
36
27
|
}
|
|
28
|
+
|
|
37
29
|
/**
|
|
38
30
|
* Initializes the fields of this object.
|
|
39
31
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
40
32
|
* Only for internal use.
|
|
41
33
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
34
|
_createClass(PatchedEnergySourcePreference, null, [{
|
|
45
35
|
key: "initialize",
|
|
46
36
|
value: function initialize(obj) {}
|
|
37
|
+
|
|
47
38
|
/**
|
|
48
39
|
* Constructs a <code>PatchedEnergySourcePreference</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
40
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -51,94 +42,81 @@ var PatchedEnergySourcePreference = /*#__PURE__*/function () {
|
|
|
51
42
|
* @param {module:model/PatchedEnergySourcePreference} obj Optional instance to populate.
|
|
52
43
|
* @return {module:model/PatchedEnergySourcePreference} The populated <code>PatchedEnergySourcePreference</code> instance.
|
|
53
44
|
*/
|
|
54
|
-
|
|
55
45
|
}, {
|
|
56
46
|
key: "constructFromObject",
|
|
57
47
|
value: function constructFromObject(data, obj) {
|
|
58
48
|
if (data) {
|
|
59
49
|
obj = obj || new PatchedEnergySourcePreference();
|
|
60
|
-
|
|
61
50
|
if (data.hasOwnProperty('id')) {
|
|
62
51
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
63
52
|
}
|
|
64
|
-
|
|
65
53
|
if (data.hasOwnProperty('owner')) {
|
|
66
54
|
obj['owner'] = _ApiClient["default"].convertToType(data['owner'], 'String');
|
|
67
55
|
}
|
|
68
|
-
|
|
69
56
|
if (data.hasOwnProperty('consumer')) {
|
|
70
57
|
obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
|
|
71
58
|
}
|
|
72
|
-
|
|
73
59
|
if (data.hasOwnProperty('retailer')) {
|
|
74
60
|
obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
|
|
75
61
|
}
|
|
76
|
-
|
|
77
62
|
if (data.hasOwnProperty('energy_source')) {
|
|
78
63
|
obj['energy_source'] = _EnergySourceEnum["default"].constructFromObject(data['energy_source']);
|
|
79
64
|
}
|
|
80
|
-
|
|
81
65
|
if (data.hasOwnProperty('priority')) {
|
|
82
66
|
obj['priority'] = _ApiClient["default"].convertToType(data['priority'], _PriorityEnum["default"]);
|
|
83
67
|
}
|
|
84
|
-
|
|
85
68
|
if (data.hasOwnProperty('created_at')) {
|
|
86
69
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
87
70
|
}
|
|
88
|
-
|
|
89
71
|
if (data.hasOwnProperty('updated_at')) {
|
|
90
72
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
91
73
|
}
|
|
92
74
|
}
|
|
93
|
-
|
|
94
75
|
return obj;
|
|
95
76
|
}
|
|
96
77
|
}]);
|
|
97
|
-
|
|
98
78
|
return PatchedEnergySourcePreference;
|
|
99
79
|
}();
|
|
100
80
|
/**
|
|
101
81
|
* @member {String} id
|
|
102
82
|
*/
|
|
103
|
-
|
|
104
|
-
|
|
105
83
|
PatchedEnergySourcePreference.prototype['id'] = undefined;
|
|
84
|
+
|
|
106
85
|
/**
|
|
107
86
|
* Owner Organization
|
|
108
87
|
* @member {String} owner
|
|
109
88
|
*/
|
|
110
|
-
|
|
111
89
|
PatchedEnergySourcePreference.prototype['owner'] = undefined;
|
|
90
|
+
|
|
112
91
|
/**
|
|
113
92
|
* @member {String} consumer
|
|
114
93
|
*/
|
|
115
|
-
|
|
116
94
|
PatchedEnergySourcePreference.prototype['consumer'] = undefined;
|
|
95
|
+
|
|
117
96
|
/**
|
|
118
97
|
* @member {String} retailer
|
|
119
98
|
*/
|
|
120
|
-
|
|
121
99
|
PatchedEnergySourcePreference.prototype['retailer'] = undefined;
|
|
100
|
+
|
|
122
101
|
/**
|
|
123
102
|
* @member {module:model/EnergySourceEnum} energy_source
|
|
124
103
|
*/
|
|
125
|
-
|
|
126
104
|
PatchedEnergySourcePreference.prototype['energy_source'] = undefined;
|
|
105
|
+
|
|
127
106
|
/**
|
|
128
107
|
* Highest priority is 1. Default is 1.
|
|
129
108
|
* @member {module:model/PriorityEnum} priority
|
|
130
109
|
*/
|
|
131
|
-
|
|
132
110
|
PatchedEnergySourcePreference.prototype['priority'] = undefined;
|
|
111
|
+
|
|
133
112
|
/**
|
|
134
113
|
* @member {Date} created_at
|
|
135
114
|
*/
|
|
136
|
-
|
|
137
115
|
PatchedEnergySourcePreference.prototype['created_at'] = undefined;
|
|
116
|
+
|
|
138
117
|
/**
|
|
139
118
|
* @member {Date} updated_at
|
|
140
119
|
*/
|
|
141
|
-
|
|
142
120
|
PatchedEnergySourcePreference.prototype['updated_at'] = undefined;
|
|
143
121
|
var _default = PatchedEnergySourcePreference;
|
|
144
122
|
exports["default"] = _default;
|
|
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _Location = _interopRequireDefault(require("./Location"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
|
-
|
|
18
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* The PatchedGridOperator model module.
|
|
22
15
|
* @module model/PatchedGridOperator
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.3
|
|
24
17
|
*/
|
|
25
18
|
var PatchedGridOperator = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -29,19 +22,18 @@ var PatchedGridOperator = /*#__PURE__*/function () {
|
|
|
29
22
|
*/
|
|
30
23
|
function PatchedGridOperator() {
|
|
31
24
|
_classCallCheck(this, PatchedGridOperator);
|
|
32
|
-
|
|
33
25
|
PatchedGridOperator.initialize(this);
|
|
34
26
|
}
|
|
27
|
+
|
|
35
28
|
/**
|
|
36
29
|
* Initializes the fields of this object.
|
|
37
30
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
31
|
* Only for internal use.
|
|
39
32
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
33
|
_createClass(PatchedGridOperator, null, [{
|
|
43
34
|
key: "initialize",
|
|
44
35
|
value: function initialize(obj) {}
|
|
36
|
+
|
|
45
37
|
/**
|
|
46
38
|
* Constructs a <code>PatchedGridOperator</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
39
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,105 +41,91 @@ var PatchedGridOperator = /*#__PURE__*/function () {
|
|
|
49
41
|
* @param {module:model/PatchedGridOperator} obj Optional instance to populate.
|
|
50
42
|
* @return {module:model/PatchedGridOperator} The populated <code>PatchedGridOperator</code> instance.
|
|
51
43
|
*/
|
|
52
|
-
|
|
53
44
|
}, {
|
|
54
45
|
key: "constructFromObject",
|
|
55
46
|
value: function constructFromObject(data, obj) {
|
|
56
47
|
if (data) {
|
|
57
48
|
obj = obj || new PatchedGridOperator();
|
|
58
|
-
|
|
59
49
|
if (data.hasOwnProperty('id')) {
|
|
60
50
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
if (data.hasOwnProperty('name')) {
|
|
64
53
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
if (data.hasOwnProperty('location')) {
|
|
68
56
|
obj['location'] = _Location["default"].constructFromObject(data['location']);
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
72
59
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
73
60
|
}
|
|
74
|
-
|
|
75
61
|
if (data.hasOwnProperty('website_url')) {
|
|
76
62
|
obj['website_url'] = _ApiClient["default"].convertToType(data['website_url'], 'String');
|
|
77
63
|
}
|
|
78
|
-
|
|
79
64
|
if (data.hasOwnProperty('is_active')) {
|
|
80
65
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
81
66
|
}
|
|
82
|
-
|
|
83
67
|
if (data.hasOwnProperty('is_distribution_system_operator')) {
|
|
84
68
|
obj['is_distribution_system_operator'] = _ApiClient["default"].convertToType(data['is_distribution_system_operator'], 'Boolean');
|
|
85
69
|
}
|
|
86
|
-
|
|
87
70
|
if (data.hasOwnProperty('created_at')) {
|
|
88
71
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
89
72
|
}
|
|
90
|
-
|
|
91
73
|
if (data.hasOwnProperty('updated_at')) {
|
|
92
74
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
93
75
|
}
|
|
94
76
|
}
|
|
95
|
-
|
|
96
77
|
return obj;
|
|
97
78
|
}
|
|
98
79
|
}]);
|
|
99
|
-
|
|
100
80
|
return PatchedGridOperator;
|
|
101
81
|
}();
|
|
102
82
|
/**
|
|
103
83
|
* @member {String} id
|
|
104
84
|
*/
|
|
105
|
-
|
|
106
|
-
|
|
107
85
|
PatchedGridOperator.prototype['id'] = undefined;
|
|
86
|
+
|
|
108
87
|
/**
|
|
109
88
|
* Required. 150 characters or fewer.
|
|
110
89
|
* @member {String} name
|
|
111
90
|
*/
|
|
112
|
-
|
|
113
91
|
PatchedGridOperator.prototype['name'] = undefined;
|
|
92
|
+
|
|
114
93
|
/**
|
|
115
94
|
* @member {module:model/Location} location
|
|
116
95
|
*/
|
|
117
|
-
|
|
118
96
|
PatchedGridOperator.prototype['location'] = undefined;
|
|
97
|
+
|
|
119
98
|
/**
|
|
120
99
|
* @member {String} blockchain_account_address
|
|
121
100
|
*/
|
|
122
|
-
|
|
123
101
|
PatchedGridOperator.prototype['blockchain_account_address'] = undefined;
|
|
102
|
+
|
|
124
103
|
/**
|
|
125
104
|
* Not required. 200 characters or fewer.
|
|
126
105
|
* @member {String} website_url
|
|
127
106
|
*/
|
|
128
|
-
|
|
129
107
|
PatchedGridOperator.prototype['website_url'] = undefined;
|
|
108
|
+
|
|
130
109
|
/**
|
|
131
110
|
* True if organization is active. Default True.
|
|
132
111
|
* @member {Boolean} is_active
|
|
133
112
|
*/
|
|
134
|
-
|
|
135
113
|
PatchedGridOperator.prototype['is_active'] = undefined;
|
|
114
|
+
|
|
136
115
|
/**
|
|
137
116
|
* True if grid operator is a DSO. False if a TSO. Default True.
|
|
138
117
|
* @member {Boolean} is_distribution_system_operator
|
|
139
118
|
*/
|
|
140
|
-
|
|
141
119
|
PatchedGridOperator.prototype['is_distribution_system_operator'] = undefined;
|
|
120
|
+
|
|
142
121
|
/**
|
|
143
122
|
* @member {Date} created_at
|
|
144
123
|
*/
|
|
145
|
-
|
|
146
124
|
PatchedGridOperator.prototype['created_at'] = undefined;
|
|
125
|
+
|
|
147
126
|
/**
|
|
148
127
|
* @member {Date} updated_at
|
|
149
128
|
*/
|
|
150
|
-
|
|
151
129
|
PatchedGridOperator.prototype['updated_at'] = undefined;
|
|
152
130
|
var _default = PatchedGridOperator;
|
|
153
131
|
exports["default"] = _default;
|