green_link_api 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -33
- package/dist/ApiClient.js +70 -24
- package/dist/api/BlockchainApi.js +283 -0
- package/dist/api/EnergyAssetsApi.js +196 -44
- package/dist/api/EnergyDataApi.js +354 -46
- package/dist/api/HealthCheckApi.js +68 -0
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +69 -0
- package/dist/api/LocationsApi.js +10 -10
- package/dist/api/LogsApi.js +428 -0
- package/dist/api/MaintenanceCheckApi.js +68 -0
- package/dist/api/OrganizationprofilesApi.js +8 -8
- package/dist/api/OrganizationsApi.js +47 -47
- package/dist/api/SchemaApi.js +6 -6
- package/dist/api/SentryDebugApi.js +68 -0
- package/dist/api/UsersApi.js +74 -256
- package/dist/index.js +267 -67
- package/dist/model/BlockchainTransaction.js +172 -0
- package/dist/model/Consumer.js +7 -7
- package/dist/model/ConsumptionDataFileList.js +132 -0
- package/dist/model/ConsumptionDataFromRetailerRequest.js +110 -0
- package/dist/model/{RestAuthDetail.js → ConsumptionDataFromRetailerResponse.js} +26 -21
- package/dist/model/ConsumptionDataPointCreate.js +12 -12
- package/dist/model/ConsumptionDataPointListOrDetail.js +21 -14
- package/dist/model/ConsumptionDataPointUpdate.js +12 -12
- package/dist/model/ConsumptionSite.js +20 -21
- package/dist/model/ConsumptionSiteCreate.js +195 -0
- package/dist/model/ConsumptionSiteFileUpload.js +133 -0
- package/dist/model/{TokenRefresh.js → ConsumptionSiteFromRetailer.js} +25 -33
- package/dist/model/ConsumptionSiteListOrDetail.js +15 -33
- package/dist/model/ConsumptionSiteMany.js +195 -0
- package/dist/model/ContentTypeEnum.js +54 -0
- package/dist/model/EmissionFactor.js +6 -8
- package/dist/model/EnergySourceEnum.js +1 -1
- package/dist/model/EnergySourcePreference.js +2 -2
- package/dist/model/GetFromEpias.js +98 -0
- package/dist/model/GridOperator.js +6 -6
- package/dist/model/Issuer.js +6 -6
- package/dist/model/Location.js +6 -8
- package/dist/model/Login.js +2 -2
- package/dist/model/MatchRequest.js +299 -0
- package/dist/model/{CountryEnum.js → MatchTypeEnum.js} +12 -12
- package/dist/model/MatchedEnergyDataPoint.js +13 -14
- package/dist/model/MatchingConsumerRequest.js +122 -0
- package/dist/model/{MatchingRequest.js → MatchingSiteRequest.js} +32 -21
- package/dist/model/OrganizationTypeEnum.js +1 -1
- package/dist/model/PaginatedConsumerList.js +2 -2
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedEmissionFactorList.js +2 -2
- package/dist/model/PaginatedEnergySourcePreferenceList.js +2 -2
- package/dist/model/PaginatedGridOperatorList.js +2 -2
- package/dist/model/PaginatedIssuerList.js +2 -2
- package/dist/model/PaginatedLocationList.js +2 -2
- package/dist/model/PaginatedMatchRequestList.js +104 -0
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +2 -2
- package/dist/model/PaginatedProducerList.js +2 -2
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +104 -0
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedRetailerList.js +2 -2
- package/dist/model/PaginatedSmartContractList.js +104 -0
- package/dist/model/PaginatedUnprocessedRowList.js +104 -0
- package/dist/model/PaginatedUploadedFileList.js +104 -0
- package/dist/model/PaginatedUserList.js +2 -2
- package/dist/model/PatchedConsumer.js +7 -7
- package/dist/model/PatchedConsumptionDataPointUpdate.js +12 -12
- package/dist/model/PatchedConsumptionSite.js +15 -16
- package/dist/model/PatchedEmissionFactor.js +5 -7
- package/dist/model/PatchedEnergySourcePreference.js +2 -2
- package/dist/model/PatchedGridOperator.js +6 -6
- package/dist/model/PatchedIssuer.js +6 -6
- package/dist/model/PatchedLocation.js +5 -7
- package/dist/model/PatchedProducer.js +6 -6
- package/dist/model/PatchedProductionDataPointUpdate.js +13 -13
- package/dist/model/{PatchedProductionSite.js → PatchedProductionSiteUpdate.js} +60 -45
- package/dist/model/PatchedRetailer.js +16 -6
- package/dist/model/PatchedSmartContract.js +134 -0
- package/dist/model/PatchedUser.js +13 -2
- package/dist/model/PatchedUserDetail.js +13 -2
- package/dist/model/PriorityEnum.js +7 -1
- package/dist/model/Producer.js +6 -6
- package/dist/model/ProductionDataFileList.js +132 -0
- package/dist/model/ProductionDataFromEpiasRequest.js +167 -0
- package/dist/model/ProductionDataPointCreate.js +13 -13
- package/dist/model/ProductionDataPointListOrDetail.js +24 -21
- package/dist/model/ProductionDataPointUpdate.js +13 -13
- package/dist/model/ProductionSite.js +37 -24
- package/dist/model/ProductionSiteFileUpload.js +177 -0
- package/dist/model/ProductionSiteListOrDetail.js +30 -43
- package/dist/model/ProductionSiteUpdate.js +245 -0
- package/dist/model/Register.js +18 -6
- package/dist/model/Retailer.js +16 -6
- package/dist/model/SmartContract.js +139 -0
- package/dist/model/StatusEnum.js +52 -0
- package/dist/model/{VerifyEmail.js → Token.js} +19 -18
- package/dist/model/TypeEnum.js +52 -0
- package/dist/model/UnprocessedRow.js +140 -0
- package/dist/model/UploadedFile.js +154 -0
- package/dist/model/User.js +13 -2
- package/dist/model/UserDetail.js +13 -2
- package/package.json +4 -4
- package/dist/model/JWT.js +0 -103
- package/dist/model/PasswordChange.js +0 -100
- package/dist/model/PasswordReset.js +0 -79
- package/dist/model/PasswordResetConfirm.js +0 -112
- package/dist/model/TechnologyOrFuelTypeEnum.js +0 -170
- package/dist/model/TokenVerify.js +0 -78
|
@@ -7,6 +7,12 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
9
|
|
|
10
|
+
var _ConsumptionDataFileList = _interopRequireDefault(require("../model/ConsumptionDataFileList"));
|
|
11
|
+
|
|
12
|
+
var _ConsumptionDataFromRetailerRequest = _interopRequireDefault(require("../model/ConsumptionDataFromRetailerRequest"));
|
|
13
|
+
|
|
14
|
+
var _ConsumptionDataFromRetailerResponse = _interopRequireDefault(require("../model/ConsumptionDataFromRetailerResponse"));
|
|
15
|
+
|
|
10
16
|
var _ConsumptionDataPointCreate = _interopRequireDefault(require("../model/ConsumptionDataPointCreate"));
|
|
11
17
|
|
|
12
18
|
var _ConsumptionDataPointListOrDetail = _interopRequireDefault(require("../model/ConsumptionDataPointListOrDetail"));
|
|
@@ -15,14 +21,22 @@ var _ConsumptionDataPointUpdate = _interopRequireDefault(require("../model/Consu
|
|
|
15
21
|
|
|
16
22
|
var _EmissionFactor = _interopRequireDefault(require("../model/EmissionFactor"));
|
|
17
23
|
|
|
24
|
+
var _GetFromEpias = _interopRequireDefault(require("../model/GetFromEpias"));
|
|
25
|
+
|
|
26
|
+
var _MatchRequest = _interopRequireDefault(require("../model/MatchRequest"));
|
|
27
|
+
|
|
18
28
|
var _MatchedEnergyDataPoint = _interopRequireDefault(require("../model/MatchedEnergyDataPoint"));
|
|
19
29
|
|
|
20
|
-
var
|
|
30
|
+
var _MatchingConsumerRequest = _interopRequireDefault(require("../model/MatchingConsumerRequest"));
|
|
31
|
+
|
|
32
|
+
var _MatchingSiteRequest = _interopRequireDefault(require("../model/MatchingSiteRequest"));
|
|
21
33
|
|
|
22
34
|
var _PaginatedConsumptionDataPointListOrDetailList = _interopRequireDefault(require("../model/PaginatedConsumptionDataPointListOrDetailList"));
|
|
23
35
|
|
|
24
36
|
var _PaginatedEmissionFactorList = _interopRequireDefault(require("../model/PaginatedEmissionFactorList"));
|
|
25
37
|
|
|
38
|
+
var _PaginatedMatchRequestList = _interopRequireDefault(require("../model/PaginatedMatchRequestList"));
|
|
39
|
+
|
|
26
40
|
var _PaginatedMatchedEnergyDataPointList = _interopRequireDefault(require("../model/PaginatedMatchedEnergyDataPointList"));
|
|
27
41
|
|
|
28
42
|
var _PaginatedProductionDataPointListOrDetailList = _interopRequireDefault(require("../model/PaginatedProductionDataPointListOrDetailList"));
|
|
@@ -33,6 +47,8 @@ var _PatchedEmissionFactor = _interopRequireDefault(require("../model/PatchedEmi
|
|
|
33
47
|
|
|
34
48
|
var _PatchedProductionDataPointUpdate = _interopRequireDefault(require("../model/PatchedProductionDataPointUpdate"));
|
|
35
49
|
|
|
50
|
+
var _ProductionDataFileList = _interopRequireDefault(require("../model/ProductionDataFileList"));
|
|
51
|
+
|
|
36
52
|
var _ProductionDataPointCreate = _interopRequireDefault(require("../model/ProductionDataPointCreate"));
|
|
37
53
|
|
|
38
54
|
var _ProductionDataPointListOrDetail = _interopRequireDefault(require("../model/ProductionDataPointListOrDetail"));
|
|
@@ -45,12 +61,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
45
61
|
|
|
46
62
|
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); } }
|
|
47
63
|
|
|
48
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
64
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
49
65
|
|
|
50
66
|
/**
|
|
51
67
|
* EnergyData service.
|
|
52
68
|
* @module api/EnergyDataApi
|
|
53
|
-
* @version 1.0.
|
|
69
|
+
* @version 1.0.1
|
|
54
70
|
*/
|
|
55
71
|
var EnergyDataApi = /*#__PURE__*/function () {
|
|
56
72
|
/**
|
|
@@ -94,7 +110,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
94
110
|
var queryParams = {};
|
|
95
111
|
var headerParams = {};
|
|
96
112
|
var formParams = {};
|
|
97
|
-
var authNames = ['basicAuth', '
|
|
113
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
98
114
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
99
115
|
var accepts = ['application/json'];
|
|
100
116
|
var returnType = _ConsumptionDataPointCreate["default"];
|
|
@@ -129,12 +145,46 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
129
145
|
var queryParams = {};
|
|
130
146
|
var headerParams = {};
|
|
131
147
|
var formParams = {};
|
|
132
|
-
var authNames = ['basicAuth', '
|
|
148
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
133
149
|
var contentTypes = [];
|
|
134
150
|
var accepts = [];
|
|
135
151
|
var returnType = null;
|
|
136
152
|
return this.apiClient.callApi('/energy-data/consumption-data/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
137
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Callback function to receive the result of the energyDataConsumptionDataImportDataCreate operation.
|
|
156
|
+
* @callback module:api/EnergyDataApi~energyDataConsumptionDataImportDataCreateCallback
|
|
157
|
+
* @param {String} error Error message, if any.
|
|
158
|
+
* @param {module:model/ConsumptionDataFromRetailerResponse} data The data returned by the service call.
|
|
159
|
+
* @param {String} response The complete HTTP response.
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* **Get consumption data points from retailer** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Retailer
|
|
164
|
+
* @param {module:model/ConsumptionDataFromRetailerRequest} consumptionDataFromRetailerRequest
|
|
165
|
+
* @param {module:api/EnergyDataApi~energyDataConsumptionDataImportDataCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
166
|
+
* data is of type: {@link module:model/ConsumptionDataFromRetailerResponse}
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
}, {
|
|
170
|
+
key: "energyDataConsumptionDataImportDataCreate",
|
|
171
|
+
value: function energyDataConsumptionDataImportDataCreate(consumptionDataFromRetailerRequest, callback) {
|
|
172
|
+
var postBody = consumptionDataFromRetailerRequest; // verify the required parameter 'consumptionDataFromRetailerRequest' is set
|
|
173
|
+
|
|
174
|
+
if (consumptionDataFromRetailerRequest === undefined || consumptionDataFromRetailerRequest === null) {
|
|
175
|
+
throw new Error("Missing the required parameter 'consumptionDataFromRetailerRequest' when calling energyDataConsumptionDataImportDataCreate");
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
var pathParams = {};
|
|
179
|
+
var queryParams = {};
|
|
180
|
+
var headerParams = {};
|
|
181
|
+
var formParams = {};
|
|
182
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
183
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
184
|
+
var accepts = ['application/json'];
|
|
185
|
+
var returnType = _ConsumptionDataFromRetailerResponse["default"];
|
|
186
|
+
return this.apiClient.callApi('/energy-data/consumption-data/import-data/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
187
|
+
}
|
|
138
188
|
/**
|
|
139
189
|
* Callback function to receive the result of the energyDataConsumptionDataList operation.
|
|
140
190
|
* @callback module:api/EnergyDataApi~energyDataConsumptionDataListCallback
|
|
@@ -159,16 +209,17 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
159
209
|
* @param {String} opts.consumptionSite
|
|
160
210
|
* @param {Date} opts.consumptionStartAfter Filter consumption_start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
|
|
161
211
|
* @param {Date} opts.consumptionStartBefore Filter consumption_start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
|
|
162
|
-
* @param {String} opts.consumptionTxHash
|
|
163
212
|
* @param {Date} opts.createdAt
|
|
164
213
|
* @param {Number} opts.id
|
|
165
214
|
* @param {Boolean} opts.isFullyMatched Filter consumption datapoints based on matched status. Returns unmatched points if set to false.
|
|
166
215
|
* @param {Boolean} opts.isSettlementData
|
|
167
216
|
* @param {Number} opts.limit Number of results to return per page.
|
|
217
|
+
* @param {String} opts.minterContract
|
|
168
218
|
* @param {Number} opts.offset The initial index from which to return the results.
|
|
219
|
+
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
169
220
|
* @param {Array.<String>} opts.productionSitesMatched
|
|
170
221
|
* @param {String} opts.retailer
|
|
171
|
-
* @param {String} opts.
|
|
222
|
+
* @param {String} opts.tx
|
|
172
223
|
* @param {Date} opts.updatedAt
|
|
173
224
|
* @param {module:api/EnergyDataApi~energyDataConsumptionDataListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
174
225
|
* data is of type: {@link module:model/PaginatedConsumptionDataPointListOrDetailList}
|
|
@@ -194,21 +245,22 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
194
245
|
'consumption_site': opts['consumptionSite'],
|
|
195
246
|
'consumption_start_after': opts['consumptionStartAfter'],
|
|
196
247
|
'consumption_start_before': opts['consumptionStartBefore'],
|
|
197
|
-
'consumption_tx_hash': opts['consumptionTxHash'],
|
|
198
248
|
'created_at': opts['createdAt'],
|
|
199
249
|
'id': opts['id'],
|
|
200
250
|
'is_fully_matched': opts['isFullyMatched'],
|
|
201
251
|
'is_settlement_data': opts['isSettlementData'],
|
|
202
252
|
'limit': opts['limit'],
|
|
253
|
+
'minter_contract': opts['minterContract'],
|
|
203
254
|
'offset': opts['offset'],
|
|
255
|
+
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
204
256
|
'production_sites_matched': this.apiClient.buildCollectionParam(opts['productionSitesMatched'], 'multi'),
|
|
205
257
|
'retailer': opts['retailer'],
|
|
206
|
-
'
|
|
258
|
+
'tx': opts['tx'],
|
|
207
259
|
'updated_at': opts['updatedAt']
|
|
208
260
|
};
|
|
209
261
|
var headerParams = {};
|
|
210
262
|
var formParams = {};
|
|
211
|
-
var authNames = ['basicAuth', '
|
|
263
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
212
264
|
var contentTypes = [];
|
|
213
265
|
var accepts = ['application/json'];
|
|
214
266
|
var returnType = _PaginatedConsumptionDataPointListOrDetailList["default"];
|
|
@@ -247,7 +299,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
247
299
|
var queryParams = {};
|
|
248
300
|
var headerParams = {};
|
|
249
301
|
var formParams = {};
|
|
250
|
-
var authNames = ['basicAuth', '
|
|
302
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
251
303
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
252
304
|
var accepts = ['application/json'];
|
|
253
305
|
var returnType = _ConsumptionDataPointUpdate["default"];
|
|
@@ -283,7 +335,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
283
335
|
var queryParams = {};
|
|
284
336
|
var headerParams = {};
|
|
285
337
|
var formParams = {};
|
|
286
|
-
var authNames = ['basicAuth', '
|
|
338
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
287
339
|
var contentTypes = [];
|
|
288
340
|
var accepts = ['application/json'];
|
|
289
341
|
var returnType = _ConsumptionDataPointListOrDetail["default"];
|
|
@@ -322,12 +374,46 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
322
374
|
var queryParams = {};
|
|
323
375
|
var headerParams = {};
|
|
324
376
|
var formParams = {};
|
|
325
|
-
var authNames = ['basicAuth', '
|
|
377
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
326
378
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
327
379
|
var accepts = ['application/json'];
|
|
328
380
|
var returnType = _ConsumptionDataPointUpdate["default"];
|
|
329
381
|
return this.apiClient.callApi('/energy-data/consumption-data/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
330
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* Callback function to receive the result of the energyDataConsumptionDataUploadFileCreate operation.
|
|
385
|
+
* @callback module:api/EnergyDataApi~energyDataConsumptionDataUploadFileCreateCallback
|
|
386
|
+
* @param {String} error Error message, if any.
|
|
387
|
+
* @param {module:model/ConsumptionDataPointCreate} data The data returned by the service call.
|
|
388
|
+
* @param {String} response The complete HTTP response.
|
|
389
|
+
*/
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* **Add consumption data points by uploading an Excel file .** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization or retailer. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Retailer
|
|
393
|
+
* @param {module:model/ConsumptionDataFileList} consumptionDataFileList
|
|
394
|
+
* @param {module:api/EnergyDataApi~energyDataConsumptionDataUploadFileCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
395
|
+
* data is of type: {@link module:model/ConsumptionDataPointCreate}
|
|
396
|
+
*/
|
|
397
|
+
|
|
398
|
+
}, {
|
|
399
|
+
key: "energyDataConsumptionDataUploadFileCreate",
|
|
400
|
+
value: function energyDataConsumptionDataUploadFileCreate(consumptionDataFileList, callback) {
|
|
401
|
+
var postBody = consumptionDataFileList; // verify the required parameter 'consumptionDataFileList' is set
|
|
402
|
+
|
|
403
|
+
if (consumptionDataFileList === undefined || consumptionDataFileList === null) {
|
|
404
|
+
throw new Error("Missing the required parameter 'consumptionDataFileList' when calling energyDataConsumptionDataUploadFileCreate");
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
var pathParams = {};
|
|
408
|
+
var queryParams = {};
|
|
409
|
+
var headerParams = {};
|
|
410
|
+
var formParams = {};
|
|
411
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
412
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
413
|
+
var accepts = ['application/json'];
|
|
414
|
+
var returnType = _ConsumptionDataPointCreate["default"];
|
|
415
|
+
return this.apiClient.callApi('/energy-data/consumption-data/upload-file/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
416
|
+
}
|
|
331
417
|
/**
|
|
332
418
|
* Callback function to receive the result of the energyDataEmissionFactorCreate operation.
|
|
333
419
|
* @callback module:api/EnergyDataApi~energyDataEmissionFactorCreateCallback
|
|
@@ -356,7 +442,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
356
442
|
var queryParams = {};
|
|
357
443
|
var headerParams = {};
|
|
358
444
|
var formParams = {};
|
|
359
|
-
var authNames = ['basicAuth', '
|
|
445
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
360
446
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
361
447
|
var accepts = ['application/json'];
|
|
362
448
|
var returnType = _EmissionFactor["default"];
|
|
@@ -391,7 +477,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
391
477
|
var queryParams = {};
|
|
392
478
|
var headerParams = {};
|
|
393
479
|
var formParams = {};
|
|
394
|
-
var authNames = ['basicAuth', '
|
|
480
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
395
481
|
var contentTypes = [];
|
|
396
482
|
var accepts = [];
|
|
397
483
|
var returnType = null;
|
|
@@ -442,7 +528,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
442
528
|
};
|
|
443
529
|
var headerParams = {};
|
|
444
530
|
var formParams = {};
|
|
445
|
-
var authNames = ['basicAuth', '
|
|
531
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
446
532
|
var contentTypes = [];
|
|
447
533
|
var accepts = ['application/json'];
|
|
448
534
|
var returnType = _PaginatedEmissionFactorList["default"];
|
|
@@ -481,7 +567,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
481
567
|
var queryParams = {};
|
|
482
568
|
var headerParams = {};
|
|
483
569
|
var formParams = {};
|
|
484
|
-
var authNames = ['basicAuth', '
|
|
570
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
485
571
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
486
572
|
var accepts = ['application/json'];
|
|
487
573
|
var returnType = _EmissionFactor["default"];
|
|
@@ -517,7 +603,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
517
603
|
var queryParams = {};
|
|
518
604
|
var headerParams = {};
|
|
519
605
|
var formParams = {};
|
|
520
|
-
var authNames = ['basicAuth', '
|
|
606
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
521
607
|
var contentTypes = [];
|
|
522
608
|
var accepts = ['application/json'];
|
|
523
609
|
var returnType = _EmissionFactor["default"];
|
|
@@ -559,12 +645,125 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
559
645
|
var queryParams = {};
|
|
560
646
|
var headerParams = {};
|
|
561
647
|
var formParams = {};
|
|
562
|
-
var authNames = ['basicAuth', '
|
|
648
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
563
649
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
564
650
|
var accepts = ['application/json'];
|
|
565
651
|
var returnType = _EmissionFactor["default"];
|
|
566
652
|
return this.apiClient.callApi('/energy-data/emission-factor/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
567
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* Callback function to receive the result of the energyDataMatchRequestList operation.
|
|
656
|
+
* @callback module:api/EnergyDataApi~energyDataMatchRequestListCallback
|
|
657
|
+
* @param {String} error Error message, if any.
|
|
658
|
+
* @param {module:model/PaginatedMatchRequestList} data The data returned by the service call.
|
|
659
|
+
* @param {String} response The complete HTTP response.
|
|
660
|
+
*/
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* **List all match requests related to the user's organization.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
|
|
664
|
+
* @param {Object} opts Optional parameters
|
|
665
|
+
* @param {String} opts.consumer
|
|
666
|
+
* @param {Number} opts.consumptionAmountMatched
|
|
667
|
+
* @param {Number} opts.consumptionAmountProcessed
|
|
668
|
+
* @param {String} opts.consumptionSite
|
|
669
|
+
* @param {Date} opts.createdAt
|
|
670
|
+
* @param {Date} opts.endTime
|
|
671
|
+
* @param {String} opts.id
|
|
672
|
+
* @param {Number} opts.limit Number of results to return per page.
|
|
673
|
+
* @param {module:model/String} opts.matchType Not required. Matching is done `company-wide` or at `site-level`. Default `company-wide
|
|
674
|
+
* @param {Number} opts.offset The initial index from which to return the results.
|
|
675
|
+
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
676
|
+
* @param {String} opts.producer
|
|
677
|
+
* @param {String} opts.productionSite
|
|
678
|
+
* @param {String} opts.retailer
|
|
679
|
+
* @param {Date} opts.startAfter Filter start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
|
|
680
|
+
* @param {Date} opts.startBefore Filter start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
|
|
681
|
+
* @param {Date} opts.startTime
|
|
682
|
+
* @param {module:model/String} opts.status Status is set to `started` or `finished` if at least one or all consumption datapoints have been matched. Default `unstarted`.
|
|
683
|
+
* @param {Number} opts.targetPercentageMatched
|
|
684
|
+
* @param {Number} opts.totalNumberOfAttemptedMatches
|
|
685
|
+
* @param {Number} opts.totalNumberOfConsumptionDatapoints
|
|
686
|
+
* @param {Number} opts.totalNumberOfFullyMatchedConsumptionDatapoints
|
|
687
|
+
* @param {Date} opts.updatedAt
|
|
688
|
+
* @param {module:api/EnergyDataApi~energyDataMatchRequestListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
689
|
+
* data is of type: {@link module:model/PaginatedMatchRequestList}
|
|
690
|
+
*/
|
|
691
|
+
|
|
692
|
+
}, {
|
|
693
|
+
key: "energyDataMatchRequestList",
|
|
694
|
+
value: function energyDataMatchRequestList(opts, callback) {
|
|
695
|
+
opts = opts || {};
|
|
696
|
+
var postBody = null;
|
|
697
|
+
var pathParams = {};
|
|
698
|
+
var queryParams = {
|
|
699
|
+
'consumer': opts['consumer'],
|
|
700
|
+
'consumption_amount_matched': opts['consumptionAmountMatched'],
|
|
701
|
+
'consumption_amount_processed': opts['consumptionAmountProcessed'],
|
|
702
|
+
'consumption_site': opts['consumptionSite'],
|
|
703
|
+
'created_at': opts['createdAt'],
|
|
704
|
+
'end_time': opts['endTime'],
|
|
705
|
+
'id': opts['id'],
|
|
706
|
+
'limit': opts['limit'],
|
|
707
|
+
'match_type': opts['matchType'],
|
|
708
|
+
'offset': opts['offset'],
|
|
709
|
+
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
710
|
+
'producer': opts['producer'],
|
|
711
|
+
'production_site': opts['productionSite'],
|
|
712
|
+
'retailer': opts['retailer'],
|
|
713
|
+
'start_after': opts['startAfter'],
|
|
714
|
+
'start_before': opts['startBefore'],
|
|
715
|
+
'start_time': opts['startTime'],
|
|
716
|
+
'status': opts['status'],
|
|
717
|
+
'target_percentage_matched': opts['targetPercentageMatched'],
|
|
718
|
+
'total_number_of_attempted_matches': opts['totalNumberOfAttemptedMatches'],
|
|
719
|
+
'total_number_of_consumption_datapoints': opts['totalNumberOfConsumptionDatapoints'],
|
|
720
|
+
'total_number_of_fully_matched_consumption_datapoints': opts['totalNumberOfFullyMatchedConsumptionDatapoints'],
|
|
721
|
+
'updated_at': opts['updatedAt']
|
|
722
|
+
};
|
|
723
|
+
var headerParams = {};
|
|
724
|
+
var formParams = {};
|
|
725
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
726
|
+
var contentTypes = [];
|
|
727
|
+
var accepts = ['application/json'];
|
|
728
|
+
var returnType = _PaginatedMatchRequestList["default"];
|
|
729
|
+
return this.apiClient.callApi('/energy-data/match-request/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Callback function to receive the result of the energyDataMatchRequestRetrieve operation.
|
|
733
|
+
* @callback module:api/EnergyDataApi~energyDataMatchRequestRetrieveCallback
|
|
734
|
+
* @param {String} error Error message, if any.
|
|
735
|
+
* @param {module:model/MatchRequest} data The data returned by the service call.
|
|
736
|
+
* @param {String} response The complete HTTP response.
|
|
737
|
+
*/
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* **Get a specific match request details.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin
|
|
741
|
+
* @param {String} id A UUID string identifying this match request.
|
|
742
|
+
* @param {module:api/EnergyDataApi~energyDataMatchRequestRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
|
743
|
+
* data is of type: {@link module:model/MatchRequest}
|
|
744
|
+
*/
|
|
745
|
+
|
|
746
|
+
}, {
|
|
747
|
+
key: "energyDataMatchRequestRetrieve",
|
|
748
|
+
value: function energyDataMatchRequestRetrieve(id, callback) {
|
|
749
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
750
|
+
|
|
751
|
+
if (id === undefined || id === null) {
|
|
752
|
+
throw new Error("Missing the required parameter 'id' when calling energyDataMatchRequestRetrieve");
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
var pathParams = {
|
|
756
|
+
'id': id
|
|
757
|
+
};
|
|
758
|
+
var queryParams = {};
|
|
759
|
+
var headerParams = {};
|
|
760
|
+
var formParams = {};
|
|
761
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
762
|
+
var contentTypes = [];
|
|
763
|
+
var accepts = ['application/json'];
|
|
764
|
+
var returnType = _MatchRequest["default"];
|
|
765
|
+
return this.apiClient.callApi('/energy-data/match-request/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
766
|
+
}
|
|
568
767
|
/**
|
|
569
768
|
* Callback function to receive the result of the energyDataMatchedEnergyDataCreate operation.
|
|
570
769
|
* @callback module:api/EnergyDataApi~energyDataMatchedEnergyDataCreateCallback
|
|
@@ -593,7 +792,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
593
792
|
var queryParams = {};
|
|
594
793
|
var headerParams = {};
|
|
595
794
|
var formParams = {};
|
|
596
|
-
var authNames = ['basicAuth', '
|
|
795
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
597
796
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
598
797
|
var accepts = ['application/json'];
|
|
599
798
|
var returnType = _MatchedEnergyDataPoint["default"];
|
|
@@ -617,12 +816,15 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
617
816
|
* @param {Date} opts.createdAt
|
|
618
817
|
* @param {String} opts.id
|
|
619
818
|
* @param {Number} opts.limit Number of results to return per page.
|
|
620
|
-
* @param {String} opts.matchedTxHash
|
|
621
819
|
* @param {Number} opts.offset The initial index from which to return the results.
|
|
820
|
+
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
622
821
|
* @param {String} opts.producer
|
|
623
822
|
* @param {Number} opts.productionData This ID is also the token ID in the smart contract.
|
|
624
823
|
* @param {String} opts.productionSite
|
|
625
824
|
* @param {String} opts.retailer
|
|
825
|
+
* @param {Date} opts.startAfter Filter start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
|
|
826
|
+
* @param {Date} opts.startBefore Filter start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
|
|
827
|
+
* @param {String} opts.tx
|
|
626
828
|
* @param {Date} opts.updatedAt
|
|
627
829
|
* @param {module:api/EnergyDataApi~energyDataMatchedEnergyDataListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
628
830
|
* data is of type: {@link module:model/PaginatedMatchedEnergyDataPointList}
|
|
@@ -642,54 +844,90 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
642
844
|
'created_at': opts['createdAt'],
|
|
643
845
|
'id': opts['id'],
|
|
644
846
|
'limit': opts['limit'],
|
|
645
|
-
'matched_tx_hash': opts['matchedTxHash'],
|
|
646
847
|
'offset': opts['offset'],
|
|
848
|
+
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
647
849
|
'producer': opts['producer'],
|
|
648
850
|
'production_data': opts['productionData'],
|
|
649
851
|
'production_site': opts['productionSite'],
|
|
650
852
|
'retailer': opts['retailer'],
|
|
853
|
+
'start_after': opts['startAfter'],
|
|
854
|
+
'start_before': opts['startBefore'],
|
|
855
|
+
'tx': opts['tx'],
|
|
651
856
|
'updated_at': opts['updatedAt']
|
|
652
857
|
};
|
|
653
858
|
var headerParams = {};
|
|
654
859
|
var formParams = {};
|
|
655
|
-
var authNames = ['basicAuth', '
|
|
860
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
656
861
|
var contentTypes = [];
|
|
657
862
|
var accepts = ['application/json'];
|
|
658
863
|
var returnType = _PaginatedMatchedEnergyDataPointList["default"];
|
|
659
864
|
return this.apiClient.callApi('/energy-data/matched-energy-data/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
660
865
|
}
|
|
661
866
|
/**
|
|
662
|
-
* Callback function to receive the result of the
|
|
663
|
-
* @callback module:api/EnergyDataApi~
|
|
867
|
+
* Callback function to receive the result of the energyDataMatchedEnergyDataMatchConsumerCreate operation.
|
|
868
|
+
* @callback module:api/EnergyDataApi~energyDataMatchedEnergyDataMatchConsumerCreateCallback
|
|
664
869
|
* @param {String} error Error message, if any.
|
|
665
870
|
* @param data This operation does not return a value.
|
|
666
871
|
* @param {String} response The complete HTTP response.
|
|
667
872
|
*/
|
|
668
873
|
|
|
669
874
|
/**
|
|
670
|
-
* **Match
|
|
671
|
-
* @param {module:model/
|
|
672
|
-
* @param {module:api/EnergyDataApi~
|
|
875
|
+
* **Match a specified consumer organization with a production site.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Retailer
|
|
876
|
+
* @param {module:model/MatchingConsumerRequest} matchingConsumerRequest
|
|
877
|
+
* @param {module:api/EnergyDataApi~energyDataMatchedEnergyDataMatchConsumerCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
673
878
|
*/
|
|
674
879
|
|
|
675
880
|
}, {
|
|
676
|
-
key: "
|
|
677
|
-
value: function
|
|
678
|
-
var postBody =
|
|
881
|
+
key: "energyDataMatchedEnergyDataMatchConsumerCreate",
|
|
882
|
+
value: function energyDataMatchedEnergyDataMatchConsumerCreate(matchingConsumerRequest, callback) {
|
|
883
|
+
var postBody = matchingConsumerRequest; // verify the required parameter 'matchingConsumerRequest' is set
|
|
679
884
|
|
|
680
|
-
if (
|
|
681
|
-
throw new Error("Missing the required parameter '
|
|
885
|
+
if (matchingConsumerRequest === undefined || matchingConsumerRequest === null) {
|
|
886
|
+
throw new Error("Missing the required parameter 'matchingConsumerRequest' when calling energyDataMatchedEnergyDataMatchConsumerCreate");
|
|
682
887
|
}
|
|
683
888
|
|
|
684
889
|
var pathParams = {};
|
|
685
890
|
var queryParams = {};
|
|
686
891
|
var headerParams = {};
|
|
687
892
|
var formParams = {};
|
|
688
|
-
var authNames = ['basicAuth', '
|
|
893
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
689
894
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
690
895
|
var accepts = [];
|
|
691
896
|
var returnType = null;
|
|
692
|
-
return this.apiClient.callApi('/energy-data/matched-energy-data/match/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
897
|
+
return this.apiClient.callApi('/energy-data/matched-energy-data/match-consumer/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* Callback function to receive the result of the energyDataMatchedEnergyDataMatchSiteCreate operation.
|
|
901
|
+
* @callback module:api/EnergyDataApi~energyDataMatchedEnergyDataMatchSiteCreateCallback
|
|
902
|
+
* @param {String} error Error message, if any.
|
|
903
|
+
* @param data This operation does not return a value.
|
|
904
|
+
* @param {String} response The complete HTTP response.
|
|
905
|
+
*/
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* **Match a specified consumption site with a production site.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Retailer
|
|
909
|
+
* @param {module:model/MatchingSiteRequest} matchingSiteRequest
|
|
910
|
+
* @param {module:api/EnergyDataApi~energyDataMatchedEnergyDataMatchSiteCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
911
|
+
*/
|
|
912
|
+
|
|
913
|
+
}, {
|
|
914
|
+
key: "energyDataMatchedEnergyDataMatchSiteCreate",
|
|
915
|
+
value: function energyDataMatchedEnergyDataMatchSiteCreate(matchingSiteRequest, callback) {
|
|
916
|
+
var postBody = matchingSiteRequest; // verify the required parameter 'matchingSiteRequest' is set
|
|
917
|
+
|
|
918
|
+
if (matchingSiteRequest === undefined || matchingSiteRequest === null) {
|
|
919
|
+
throw new Error("Missing the required parameter 'matchingSiteRequest' when calling energyDataMatchedEnergyDataMatchSiteCreate");
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
var pathParams = {};
|
|
923
|
+
var queryParams = {};
|
|
924
|
+
var headerParams = {};
|
|
925
|
+
var formParams = {};
|
|
926
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
927
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
928
|
+
var accepts = [];
|
|
929
|
+
var returnType = null;
|
|
930
|
+
return this.apiClient.callApi('/energy-data/matched-energy-data/match-site/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
693
931
|
}
|
|
694
932
|
/**
|
|
695
933
|
* Callback function to receive the result of the energyDataMatchedEnergyDataRetrieve operation.
|
|
@@ -721,7 +959,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
721
959
|
var queryParams = {};
|
|
722
960
|
var headerParams = {};
|
|
723
961
|
var formParams = {};
|
|
724
|
-
var authNames = ['basicAuth', '
|
|
962
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
725
963
|
var contentTypes = [];
|
|
726
964
|
var accepts = ['application/json'];
|
|
727
965
|
var returnType = _MatchedEnergyDataPoint["default"];
|
|
@@ -755,7 +993,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
755
993
|
var queryParams = {};
|
|
756
994
|
var headerParams = {};
|
|
757
995
|
var formParams = {};
|
|
758
|
-
var authNames = ['basicAuth', '
|
|
996
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
759
997
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
760
998
|
var accepts = ['application/json'];
|
|
761
999
|
var returnType = _ProductionDataPointCreate["default"];
|
|
@@ -790,12 +1028,46 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
790
1028
|
var queryParams = {};
|
|
791
1029
|
var headerParams = {};
|
|
792
1030
|
var formParams = {};
|
|
793
|
-
var authNames = ['basicAuth', '
|
|
1031
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
794
1032
|
var contentTypes = [];
|
|
795
1033
|
var accepts = [];
|
|
796
1034
|
var returnType = null;
|
|
797
1035
|
return this.apiClient.callApi('/energy-data/production-data/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
798
1036
|
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Callback function to receive the result of the energyDataProductionDataGetFromEpiasAndInsertCreate operation.
|
|
1039
|
+
* @callback module:api/EnergyDataApi~energyDataProductionDataGetFromEpiasAndInsertCreateCallback
|
|
1040
|
+
* @param {String} error Error message, if any.
|
|
1041
|
+
* @param {module:model/ProductionDataPointCreate} data The data returned by the service call.
|
|
1042
|
+
* @param {String} response The complete HTTP response.
|
|
1043
|
+
*/
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Enforces object-level permissions in ``rest_framework.viewsets.ViewSet``, deriving the permission type from the particular action to be performed.. As with ``rules.contrib.views.AutoPermissionRequiredMixin``, this only works when model permissions are registered using ``rules.contrib.models.RulesModelMixin``.
|
|
1047
|
+
* @param {module:model/GetFromEpias} getFromEpias
|
|
1048
|
+
* @param {module:api/EnergyDataApi~energyDataProductionDataGetFromEpiasAndInsertCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1049
|
+
* data is of type: {@link module:model/ProductionDataPointCreate}
|
|
1050
|
+
*/
|
|
1051
|
+
|
|
1052
|
+
}, {
|
|
1053
|
+
key: "energyDataProductionDataGetFromEpiasAndInsertCreate",
|
|
1054
|
+
value: function energyDataProductionDataGetFromEpiasAndInsertCreate(getFromEpias, callback) {
|
|
1055
|
+
var postBody = getFromEpias; // verify the required parameter 'getFromEpias' is set
|
|
1056
|
+
|
|
1057
|
+
if (getFromEpias === undefined || getFromEpias === null) {
|
|
1058
|
+
throw new Error("Missing the required parameter 'getFromEpias' when calling energyDataProductionDataGetFromEpiasAndInsertCreate");
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
var pathParams = {};
|
|
1062
|
+
var queryParams = {};
|
|
1063
|
+
var headerParams = {};
|
|
1064
|
+
var formParams = {};
|
|
1065
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
1066
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
1067
|
+
var accepts = ['application/json'];
|
|
1068
|
+
var returnType = _ProductionDataPointCreate["default"];
|
|
1069
|
+
return this.apiClient.callApi('/energy-data/production-data/get_from_epias_and_insert/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1070
|
+
}
|
|
799
1071
|
/**
|
|
800
1072
|
* Callback function to receive the result of the energyDataProductionDataList operation.
|
|
801
1073
|
* @callback module:api/EnergyDataApi~energyDataProductionDataListCallback
|
|
@@ -817,14 +1089,15 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
817
1089
|
* @param {Boolean} opts.isFullyMatched Filter production datapoints based on matched status. Returns unmatched points if set to false.
|
|
818
1090
|
* @param {Boolean} opts.isSettlementData
|
|
819
1091
|
* @param {Number} opts.limit Number of results to return per page.
|
|
1092
|
+
* @param {String} opts.minterContract
|
|
820
1093
|
* @param {Number} opts.offset The initial index from which to return the results.
|
|
1094
|
+
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
821
1095
|
* @param {String} opts.producer
|
|
822
1096
|
* @param {String} opts.productionSite
|
|
823
1097
|
* @param {Date} opts.productionStartAfter Filter production_start time after a given ISO 8601 formatted date (e.g: 2020-01-01T03:00:00+03:00)
|
|
824
1098
|
* @param {Date} opts.productionStartBefore Filter production_start time before a given ISO 8601 formatted date (e.g: 2020-01-02T03:00:00+03:00)
|
|
825
|
-
* @param {String} opts.productionTxHash
|
|
826
1099
|
* @param {String} opts.retailer
|
|
827
|
-
* @param {String} opts.
|
|
1100
|
+
* @param {String} opts.tx
|
|
828
1101
|
* @param {Date} opts.updatedAt
|
|
829
1102
|
* @param {module:api/EnergyDataApi~energyDataProductionDataListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
830
1103
|
* data is of type: {@link module:model/PaginatedProductionDataPointListOrDetailList}
|
|
@@ -847,19 +1120,20 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
847
1120
|
'is_fully_matched': opts['isFullyMatched'],
|
|
848
1121
|
'is_settlement_data': opts['isSettlementData'],
|
|
849
1122
|
'limit': opts['limit'],
|
|
1123
|
+
'minter_contract': opts['minterContract'],
|
|
850
1124
|
'offset': opts['offset'],
|
|
1125
|
+
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
851
1126
|
'producer': opts['producer'],
|
|
852
1127
|
'production_site': opts['productionSite'],
|
|
853
1128
|
'production_start_after': opts['productionStartAfter'],
|
|
854
1129
|
'production_start_before': opts['productionStartBefore'],
|
|
855
|
-
'production_tx_hash': opts['productionTxHash'],
|
|
856
1130
|
'retailer': opts['retailer'],
|
|
857
|
-
'
|
|
1131
|
+
'tx': opts['tx'],
|
|
858
1132
|
'updated_at': opts['updatedAt']
|
|
859
1133
|
};
|
|
860
1134
|
var headerParams = {};
|
|
861
1135
|
var formParams = {};
|
|
862
|
-
var authNames = ['basicAuth', '
|
|
1136
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
863
1137
|
var contentTypes = [];
|
|
864
1138
|
var accepts = ['application/json'];
|
|
865
1139
|
var returnType = _PaginatedProductionDataPointListOrDetailList["default"];
|
|
@@ -898,7 +1172,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
898
1172
|
var queryParams = {};
|
|
899
1173
|
var headerParams = {};
|
|
900
1174
|
var formParams = {};
|
|
901
|
-
var authNames = ['basicAuth', '
|
|
1175
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
902
1176
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
903
1177
|
var accepts = ['application/json'];
|
|
904
1178
|
var returnType = _ProductionDataPointUpdate["default"];
|
|
@@ -934,7 +1208,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
934
1208
|
var queryParams = {};
|
|
935
1209
|
var headerParams = {};
|
|
936
1210
|
var formParams = {};
|
|
937
|
-
var authNames = ['basicAuth', '
|
|
1211
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
938
1212
|
var contentTypes = [];
|
|
939
1213
|
var accepts = ['application/json'];
|
|
940
1214
|
var returnType = _ProductionDataPointListOrDetail["default"];
|
|
@@ -973,12 +1247,46 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
973
1247
|
var queryParams = {};
|
|
974
1248
|
var headerParams = {};
|
|
975
1249
|
var formParams = {};
|
|
976
|
-
var authNames = ['basicAuth', '
|
|
1250
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
977
1251
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
978
1252
|
var accepts = ['application/json'];
|
|
979
1253
|
var returnType = _ProductionDataPointUpdate["default"];
|
|
980
1254
|
return this.apiClient.callApi('/energy-data/production-data/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
981
1255
|
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Callback function to receive the result of the energyDataProductionDataUploadFileCreate operation.
|
|
1258
|
+
* @callback module:api/EnergyDataApi~energyDataProductionDataUploadFileCreateCallback
|
|
1259
|
+
* @param {String} error Error message, if any.
|
|
1260
|
+
* @param {module:model/ProductionDataPointCreate} data The data returned by the service call.
|
|
1261
|
+
* @param {String} response The complete HTTP response.
|
|
1262
|
+
*/
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* **Add production data points by uploading an Excel file .** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization or retailer. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Retailer
|
|
1266
|
+
* @param {module:model/ProductionDataFileList} productionDataFileList
|
|
1267
|
+
* @param {module:api/EnergyDataApi~energyDataProductionDataUploadFileCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1268
|
+
* data is of type: {@link module:model/ProductionDataPointCreate}
|
|
1269
|
+
*/
|
|
1270
|
+
|
|
1271
|
+
}, {
|
|
1272
|
+
key: "energyDataProductionDataUploadFileCreate",
|
|
1273
|
+
value: function energyDataProductionDataUploadFileCreate(productionDataFileList, callback) {
|
|
1274
|
+
var postBody = productionDataFileList; // verify the required parameter 'productionDataFileList' is set
|
|
1275
|
+
|
|
1276
|
+
if (productionDataFileList === undefined || productionDataFileList === null) {
|
|
1277
|
+
throw new Error("Missing the required parameter 'productionDataFileList' when calling energyDataProductionDataUploadFileCreate");
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
var pathParams = {};
|
|
1281
|
+
var queryParams = {};
|
|
1282
|
+
var headerParams = {};
|
|
1283
|
+
var formParams = {};
|
|
1284
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
1285
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
1286
|
+
var accepts = ['application/json'];
|
|
1287
|
+
var returnType = _ProductionDataPointCreate["default"];
|
|
1288
|
+
return this.apiClient.callApi('/energy-data/production-data/upload-file/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1289
|
+
}
|
|
982
1290
|
}]);
|
|
983
1291
|
|
|
984
1292
|
return EnergyDataApi;
|