green_link_api 1.7.12 → 1.8.2
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 +12 -4
- package/dist/ApiClient.js +2 -2
- package/dist/api/BlockchainApi.js +1 -1
- package/dist/api/EnergyAssetsApi.js +1 -1
- package/dist/api/EnergyDataApi.js +185 -7
- package/dist/api/HealthCheckApi.js +1 -1
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +1 -1
- package/dist/api/LocationsApi.js +1 -1
- package/dist/api/LogsApi.js +1 -1
- package/dist/api/MaintenanceCheckApi.js +1 -1
- package/dist/api/OrganizationprofilesApi.js +1 -1
- package/dist/api/OrganizationsApi.js +1 -1
- package/dist/api/SchemaApi.js +1 -1
- package/dist/api/SentryDebugApi.js +1 -1
- package/dist/api/UsersApi.js +1 -1
- package/dist/index.js +43 -11
- package/dist/model/Activities.js +1 -1
- package/dist/model/BlockchainTransaction.js +5 -5
- package/dist/model/Consumer.js +1 -1
- package/dist/model/ConsumptionDataFileList.js +1 -1
- package/dist/model/ConsumptionDataFromRetailerRequest.js +5 -38
- package/dist/model/ConsumptionDataPointCreate.js +1 -1
- package/dist/model/ConsumptionDataPointListOrDetail.js +1 -1
- package/dist/model/ConsumptionDataPointUpdate.js +1 -1
- package/dist/model/ConsumptionSite.js +1 -1
- package/dist/model/ConsumptionSiteCreate.js +1 -1
- package/dist/model/ConsumptionSiteFileUpload.js +1 -1
- package/dist/model/ConsumptionSiteFromRetailer.js +1 -1
- package/dist/model/ConsumptionSiteListOrDetail.js +1 -1
- package/dist/model/ConsumptionSiteMany.js +1 -1
- package/dist/model/EmissionFactor.js +1 -1
- package/dist/model/EnergySourcePreference.js +1 -1
- package/dist/model/GetFromEpias.js +1 -1
- package/dist/model/GridOperator.js +1 -1
- package/dist/model/ImportRequest.js +191 -0
- package/dist/model/ImportRequestStatusEnum.js +54 -0
- package/dist/model/ImportedEnergyDataPoint.js +149 -0
- package/dist/model/Issuer.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login.js +1 -1
- package/dist/model/MatchRequest.js +4 -4
- package/dist/model/MatchedEnergyDataPoint.js +1 -1
- package/dist/model/MatchingConsumerRequest.js +1 -1
- package/dist/model/MatchingSiteRequest.js +1 -1
- package/dist/model/PaginatedActivitiesList.js +1 -1
- package/dist/model/PaginatedConsumerList.js +1 -1
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +1 -1
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +1 -1
- package/dist/model/PaginatedEmissionFactorList.js +1 -1
- package/dist/model/PaginatedEnergySourcePreferenceList.js +1 -1
- package/dist/model/PaginatedGridOperatorList.js +1 -1
- package/dist/model/PaginatedImportRequestList.js +104 -0
- package/dist/model/PaginatedImportedEnergyDataPointList.js +104 -0
- package/dist/model/PaginatedIssuerList.js +1 -1
- package/dist/model/PaginatedLocationList.js +1 -1
- package/dist/model/PaginatedMatchRequestList.js +1 -1
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +1 -1
- package/dist/model/PaginatedProducerList.js +1 -1
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +1 -1
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +1 -1
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +1 -1
- package/dist/model/PaginatedRetailerList.js +1 -1
- package/dist/model/PaginatedSmartContractList.js +1 -1
- package/dist/model/PaginatedUnprocessedRowList.js +1 -1
- package/dist/model/PaginatedUploadedCertificateListorDetailList.js +1 -1
- package/dist/model/PaginatedUploadedFileList.js +1 -1
- package/dist/model/PaginatedUserList.js +1 -1
- package/dist/model/PatchedConsumer.js +1 -1
- package/dist/model/PatchedConsumptionDataPointUpdate.js +1 -1
- package/dist/model/PatchedConsumptionSite.js +1 -1
- package/dist/model/PatchedEmissionFactor.js +1 -1
- package/dist/model/PatchedEnergySourcePreference.js +1 -1
- package/dist/model/PatchedGridOperator.js +1 -1
- package/dist/model/PatchedIssuer.js +1 -1
- package/dist/model/PatchedLocation.js +1 -1
- package/dist/model/PatchedProducer.js +1 -1
- package/dist/model/PatchedProductionDataPointUpdate.js +1 -1
- package/dist/model/PatchedProductionSiteUpdate.js +1 -1
- package/dist/model/PatchedRetailer.js +1 -1
- package/dist/model/PatchedSmartContract.js +1 -1
- package/dist/model/PatchedUser.js +1 -1
- package/dist/model/PatchedUserDetail.js +1 -1
- package/dist/model/Producer.js +1 -1
- package/dist/model/ProductionDataFileList.js +1 -1
- package/dist/model/ProductionDataFromEpiasRequest.js +4 -4
- package/dist/model/ProductionDataPointCreate.js +1 -1
- package/dist/model/ProductionDataPointListOrDetail.js +1 -1
- package/dist/model/ProductionDataPointUpdate.js +1 -1
- package/dist/model/ProductionSite.js +1 -1
- package/dist/model/ProductionSiteFileUpload.js +1 -1
- package/dist/model/ProductionSiteListOrDetail.js +1 -1
- package/dist/model/ProductionSiteUpdate.js +1 -1
- package/dist/model/Register.js +1 -1
- package/dist/model/Retailer.js +1 -1
- package/dist/model/SmartContract.js +1 -1
- package/dist/model/{StatusEnum.js → Status619Enum.js} +9 -9
- package/dist/model/Token.js +1 -1
- package/dist/model/UnprocessedRow.js +1 -1
- package/dist/model/UploadedCertificate.js +1 -1
- package/dist/model/UploadedCertificateListorDetail.js +1 -1
- package/dist/model/UploadedFile.js +4 -4
- package/dist/model/User.js +1 -1
- package/dist/model/UserDetail.js +1 -1
- package/package.json +1 -1
- package/dist/model/ConsumptionDataFromRetailerResponse.js +0 -80
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ GreenLinkApi - JavaScript client for green_link_api
|
|
|
4
4
|
⚡GreenLink API documentation with interactive tools for testing API endpoints.⚡
|
|
5
5
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
6
6
|
|
|
7
|
-
- API version: 1.
|
|
8
|
-
- Package version: 1.
|
|
7
|
+
- API version: 1.8.2
|
|
8
|
+
- Package version: 1.8.2
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
@@ -169,6 +169,10 @@ Class | Method | HTTP request | Description
|
|
|
169
169
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorPartialUpdate**](docs/EnergyDataApi.md#energyDataEmissionFactorPartialUpdate) | **PATCH** /energy-data/emission-factor/{id}/ |
|
|
170
170
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorRetrieve**](docs/EnergyDataApi.md#energyDataEmissionFactorRetrieve) | **GET** /energy-data/emission-factor/{id}/ |
|
|
171
171
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorUpdate**](docs/EnergyDataApi.md#energyDataEmissionFactorUpdate) | **PUT** /energy-data/emission-factor/{id}/ |
|
|
172
|
+
*GreenLinkApi.EnergyDataApi* | [**energyDataImportRequestList**](docs/EnergyDataApi.md#energyDataImportRequestList) | **GET** /energy-data/import-request/ |
|
|
173
|
+
*GreenLinkApi.EnergyDataApi* | [**energyDataImportRequestRetrieve**](docs/EnergyDataApi.md#energyDataImportRequestRetrieve) | **GET** /energy-data/import-request/{id}/ |
|
|
174
|
+
*GreenLinkApi.EnergyDataApi* | [**energyDataImportedEnergyDataList**](docs/EnergyDataApi.md#energyDataImportedEnergyDataList) | **GET** /energy-data/imported-energy-data/ |
|
|
175
|
+
*GreenLinkApi.EnergyDataApi* | [**energyDataImportedEnergyDataRetrieve**](docs/EnergyDataApi.md#energyDataImportedEnergyDataRetrieve) | **GET** /energy-data/imported-energy-data/{id}/ |
|
|
172
176
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchRequestList**](docs/EnergyDataApi.md#energyDataMatchRequestList) | **GET** /energy-data/match-request/ |
|
|
173
177
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchRequestRetrieve**](docs/EnergyDataApi.md#energyDataMatchRequestRetrieve) | **GET** /energy-data/match-request/{id}/ |
|
|
174
178
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchedEnergyDataCreate**](docs/EnergyDataApi.md#energyDataMatchedEnergyDataCreate) | **POST** /energy-data/matched-energy-data/ |
|
|
@@ -267,7 +271,6 @@ Class | Method | HTTP request | Description
|
|
|
267
271
|
- [GreenLinkApi.Consumer](docs/Consumer.md)
|
|
268
272
|
- [GreenLinkApi.ConsumptionDataFileList](docs/ConsumptionDataFileList.md)
|
|
269
273
|
- [GreenLinkApi.ConsumptionDataFromRetailerRequest](docs/ConsumptionDataFromRetailerRequest.md)
|
|
270
|
-
- [GreenLinkApi.ConsumptionDataFromRetailerResponse](docs/ConsumptionDataFromRetailerResponse.md)
|
|
271
274
|
- [GreenLinkApi.ConsumptionDataPointCreate](docs/ConsumptionDataPointCreate.md)
|
|
272
275
|
- [GreenLinkApi.ConsumptionDataPointListOrDetail](docs/ConsumptionDataPointListOrDetail.md)
|
|
273
276
|
- [GreenLinkApi.ConsumptionDataPointUpdate](docs/ConsumptionDataPointUpdate.md)
|
|
@@ -284,6 +287,9 @@ Class | Method | HTTP request | Description
|
|
|
284
287
|
- [GreenLinkApi.EnergySourcePreference](docs/EnergySourcePreference.md)
|
|
285
288
|
- [GreenLinkApi.GetFromEpias](docs/GetFromEpias.md)
|
|
286
289
|
- [GreenLinkApi.GridOperator](docs/GridOperator.md)
|
|
290
|
+
- [GreenLinkApi.ImportRequest](docs/ImportRequest.md)
|
|
291
|
+
- [GreenLinkApi.ImportRequestStatusEnum](docs/ImportRequestStatusEnum.md)
|
|
292
|
+
- [GreenLinkApi.ImportedEnergyDataPoint](docs/ImportedEnergyDataPoint.md)
|
|
287
293
|
- [GreenLinkApi.Issuer](docs/Issuer.md)
|
|
288
294
|
- [GreenLinkApi.Location](docs/Location.md)
|
|
289
295
|
- [GreenLinkApi.Login](docs/Login.md)
|
|
@@ -300,6 +306,8 @@ Class | Method | HTTP request | Description
|
|
|
300
306
|
- [GreenLinkApi.PaginatedEmissionFactorList](docs/PaginatedEmissionFactorList.md)
|
|
301
307
|
- [GreenLinkApi.PaginatedEnergySourcePreferenceList](docs/PaginatedEnergySourcePreferenceList.md)
|
|
302
308
|
- [GreenLinkApi.PaginatedGridOperatorList](docs/PaginatedGridOperatorList.md)
|
|
309
|
+
- [GreenLinkApi.PaginatedImportRequestList](docs/PaginatedImportRequestList.md)
|
|
310
|
+
- [GreenLinkApi.PaginatedImportedEnergyDataPointList](docs/PaginatedImportedEnergyDataPointList.md)
|
|
303
311
|
- [GreenLinkApi.PaginatedIssuerList](docs/PaginatedIssuerList.md)
|
|
304
312
|
- [GreenLinkApi.PaginatedLocationList](docs/PaginatedLocationList.md)
|
|
305
313
|
- [GreenLinkApi.PaginatedMatchRequestList](docs/PaginatedMatchRequestList.md)
|
|
@@ -343,7 +351,7 @@ Class | Method | HTTP request | Description
|
|
|
343
351
|
- [GreenLinkApi.Register](docs/Register.md)
|
|
344
352
|
- [GreenLinkApi.Retailer](docs/Retailer.md)
|
|
345
353
|
- [GreenLinkApi.SmartContract](docs/SmartContract.md)
|
|
346
|
-
- [GreenLinkApi.
|
|
354
|
+
- [GreenLinkApi.Status619Enum](docs/Status619Enum.md)
|
|
347
355
|
- [GreenLinkApi.Token](docs/Token.md)
|
|
348
356
|
- [GreenLinkApi.TypeEnum](docs/TypeEnum.md)
|
|
349
357
|
- [GreenLinkApi.UnprocessedRow](docs/UnprocessedRow.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @module ApiClient
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.8.2
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -79,7 +79,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
81
|
this.defaultHeaders = {
|
|
82
|
-
'User-Agent': 'OpenAPI-Generator/1.
|
|
82
|
+
'User-Agent': 'OpenAPI-Generator/1.8.2/Javascript'
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
85
|
* The default HTTP timeout for all API calls.
|
|
@@ -11,8 +11,6 @@ var _ConsumptionDataFileList = _interopRequireDefault(require("../model/Consumpt
|
|
|
11
11
|
|
|
12
12
|
var _ConsumptionDataFromRetailerRequest = _interopRequireDefault(require("../model/ConsumptionDataFromRetailerRequest"));
|
|
13
13
|
|
|
14
|
-
var _ConsumptionDataFromRetailerResponse = _interopRequireDefault(require("../model/ConsumptionDataFromRetailerResponse"));
|
|
15
|
-
|
|
16
14
|
var _ConsumptionDataPointCreate = _interopRequireDefault(require("../model/ConsumptionDataPointCreate"));
|
|
17
15
|
|
|
18
16
|
var _ConsumptionDataPointListOrDetail = _interopRequireDefault(require("../model/ConsumptionDataPointListOrDetail"));
|
|
@@ -23,6 +21,10 @@ var _EmissionFactor = _interopRequireDefault(require("../model/EmissionFactor"))
|
|
|
23
21
|
|
|
24
22
|
var _GetFromEpias = _interopRequireDefault(require("../model/GetFromEpias"));
|
|
25
23
|
|
|
24
|
+
var _ImportRequest = _interopRequireDefault(require("../model/ImportRequest"));
|
|
25
|
+
|
|
26
|
+
var _ImportedEnergyDataPoint = _interopRequireDefault(require("../model/ImportedEnergyDataPoint"));
|
|
27
|
+
|
|
26
28
|
var _MatchRequest = _interopRequireDefault(require("../model/MatchRequest"));
|
|
27
29
|
|
|
28
30
|
var _MatchedEnergyDataPoint = _interopRequireDefault(require("../model/MatchedEnergyDataPoint"));
|
|
@@ -35,6 +37,10 @@ var _PaginatedConsumptionDataPointListOrDetailList = _interopRequireDefault(requ
|
|
|
35
37
|
|
|
36
38
|
var _PaginatedEmissionFactorList = _interopRequireDefault(require("../model/PaginatedEmissionFactorList"));
|
|
37
39
|
|
|
40
|
+
var _PaginatedImportRequestList = _interopRequireDefault(require("../model/PaginatedImportRequestList"));
|
|
41
|
+
|
|
42
|
+
var _PaginatedImportedEnergyDataPointList = _interopRequireDefault(require("../model/PaginatedImportedEnergyDataPointList"));
|
|
43
|
+
|
|
38
44
|
var _PaginatedMatchRequestList = _interopRequireDefault(require("../model/PaginatedMatchRequestList"));
|
|
39
45
|
|
|
40
46
|
var _PaginatedMatchedEnergyDataPointList = _interopRequireDefault(require("../model/PaginatedMatchedEnergyDataPointList"));
|
|
@@ -66,7 +72,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
66
72
|
/**
|
|
67
73
|
* EnergyData service.
|
|
68
74
|
* @module api/EnergyDataApi
|
|
69
|
-
* @version 1.
|
|
75
|
+
* @version 1.8.2
|
|
70
76
|
*/
|
|
71
77
|
var EnergyDataApi = /*#__PURE__*/function () {
|
|
72
78
|
/**
|
|
@@ -155,15 +161,15 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
155
161
|
* Callback function to receive the result of the energyDataConsumptionDataImportDataCreate operation.
|
|
156
162
|
* @callback module:api/EnergyDataApi~energyDataConsumptionDataImportDataCreateCallback
|
|
157
163
|
* @param {String} error Error message, if any.
|
|
158
|
-
* @param {module:model/
|
|
164
|
+
* @param {module:model/ConsumptionDataPointCreate} data The data returned by the service call.
|
|
159
165
|
* @param {String} response The complete HTTP response.
|
|
160
166
|
*/
|
|
161
167
|
|
|
162
168
|
/**
|
|
163
|
-
*
|
|
169
|
+
* 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``.
|
|
164
170
|
* @param {module:model/ConsumptionDataFromRetailerRequest} consumptionDataFromRetailerRequest
|
|
165
171
|
* @param {module:api/EnergyDataApi~energyDataConsumptionDataImportDataCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
166
|
-
* data is of type: {@link module:model/
|
|
172
|
+
* data is of type: {@link module:model/ConsumptionDataPointCreate}
|
|
167
173
|
*/
|
|
168
174
|
|
|
169
175
|
}, {
|
|
@@ -182,7 +188,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
182
188
|
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
183
189
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
184
190
|
var accepts = ['application/json'];
|
|
185
|
-
var returnType =
|
|
191
|
+
var returnType = _ConsumptionDataPointCreate["default"];
|
|
186
192
|
return this.apiClient.callApi('/energy-data/consumption-data/import-data/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
187
193
|
}
|
|
188
194
|
/**
|
|
@@ -651,6 +657,178 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
651
657
|
var returnType = _EmissionFactor["default"];
|
|
652
658
|
return this.apiClient.callApi('/energy-data/emission-factor/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
653
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* Callback function to receive the result of the energyDataImportRequestList operation.
|
|
662
|
+
* @callback module:api/EnergyDataApi~energyDataImportRequestListCallback
|
|
663
|
+
* @param {String} error Error message, if any.
|
|
664
|
+
* @param {module:model/PaginatedImportRequestList} data The data returned by the service call.
|
|
665
|
+
* @param {String} response The complete HTTP response.
|
|
666
|
+
*/
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* 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``.
|
|
670
|
+
* @param {Object} opts Optional parameters
|
|
671
|
+
* @param {String} opts.consumer
|
|
672
|
+
* @param {Date} opts.createdAt
|
|
673
|
+
* @param {String} opts.id
|
|
674
|
+
* @param {Number} opts.limit Number of results to return per page.
|
|
675
|
+
* @param {Number} opts.offset The initial index from which to return the results.
|
|
676
|
+
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
677
|
+
* @param {String} opts.retailer
|
|
678
|
+
* @param {Date} opts.startTime
|
|
679
|
+
* @param {module:model/String} opts.status
|
|
680
|
+
* @param {Date} opts.updatedAt
|
|
681
|
+
* @param {module:api/EnergyDataApi~energyDataImportRequestListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
682
|
+
* data is of type: {@link module:model/PaginatedImportRequestList}
|
|
683
|
+
*/
|
|
684
|
+
|
|
685
|
+
}, {
|
|
686
|
+
key: "energyDataImportRequestList",
|
|
687
|
+
value: function energyDataImportRequestList(opts, callback) {
|
|
688
|
+
opts = opts || {};
|
|
689
|
+
var postBody = null;
|
|
690
|
+
var pathParams = {};
|
|
691
|
+
var queryParams = {
|
|
692
|
+
'consumer': opts['consumer'],
|
|
693
|
+
'created_at': opts['createdAt'],
|
|
694
|
+
'id': opts['id'],
|
|
695
|
+
'limit': opts['limit'],
|
|
696
|
+
'offset': opts['offset'],
|
|
697
|
+
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
698
|
+
'retailer': opts['retailer'],
|
|
699
|
+
'start_time': opts['startTime'],
|
|
700
|
+
'status': opts['status'],
|
|
701
|
+
'updated_at': opts['updatedAt']
|
|
702
|
+
};
|
|
703
|
+
var headerParams = {};
|
|
704
|
+
var formParams = {};
|
|
705
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
706
|
+
var contentTypes = [];
|
|
707
|
+
var accepts = ['application/json'];
|
|
708
|
+
var returnType = _PaginatedImportRequestList["default"];
|
|
709
|
+
return this.apiClient.callApi('/energy-data/import-request/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Callback function to receive the result of the energyDataImportRequestRetrieve operation.
|
|
713
|
+
* @callback module:api/EnergyDataApi~energyDataImportRequestRetrieveCallback
|
|
714
|
+
* @param {String} error Error message, if any.
|
|
715
|
+
* @param {module:model/ImportRequest} data The data returned by the service call.
|
|
716
|
+
* @param {String} response The complete HTTP response.
|
|
717
|
+
*/
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* 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``.
|
|
721
|
+
* @param {String} id A UUID string identifying this import request.
|
|
722
|
+
* @param {module:api/EnergyDataApi~energyDataImportRequestRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
|
723
|
+
* data is of type: {@link module:model/ImportRequest}
|
|
724
|
+
*/
|
|
725
|
+
|
|
726
|
+
}, {
|
|
727
|
+
key: "energyDataImportRequestRetrieve",
|
|
728
|
+
value: function energyDataImportRequestRetrieve(id, callback) {
|
|
729
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
730
|
+
|
|
731
|
+
if (id === undefined || id === null) {
|
|
732
|
+
throw new Error("Missing the required parameter 'id' when calling energyDataImportRequestRetrieve");
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
var pathParams = {
|
|
736
|
+
'id': id
|
|
737
|
+
};
|
|
738
|
+
var queryParams = {};
|
|
739
|
+
var headerParams = {};
|
|
740
|
+
var formParams = {};
|
|
741
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
742
|
+
var contentTypes = [];
|
|
743
|
+
var accepts = ['application/json'];
|
|
744
|
+
var returnType = _ImportRequest["default"];
|
|
745
|
+
return this.apiClient.callApi('/energy-data/import-request/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Callback function to receive the result of the energyDataImportedEnergyDataList operation.
|
|
749
|
+
* @callback module:api/EnergyDataApi~energyDataImportedEnergyDataListCallback
|
|
750
|
+
* @param {String} error Error message, if any.
|
|
751
|
+
* @param {module:model/PaginatedImportedEnergyDataPointList} data The data returned by the service call.
|
|
752
|
+
* @param {String} response The complete HTTP response.
|
|
753
|
+
*/
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* 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``.
|
|
757
|
+
* @param {Object} opts Optional parameters
|
|
758
|
+
* @param {String} opts.consumptionRequest
|
|
759
|
+
* @param {String} opts.consumptionSite
|
|
760
|
+
* @param {Date} opts.consumptionStart
|
|
761
|
+
* @param {Date} opts.createdAt
|
|
762
|
+
* @param {String} opts.id
|
|
763
|
+
* @param {Number} opts.limit Number of results to return per page.
|
|
764
|
+
* @param {Number} opts.offset The initial index from which to return the results.
|
|
765
|
+
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
766
|
+
* @param {Date} opts.updatedAt
|
|
767
|
+
* @param {module:api/EnergyDataApi~energyDataImportedEnergyDataListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
768
|
+
* data is of type: {@link module:model/PaginatedImportedEnergyDataPointList}
|
|
769
|
+
*/
|
|
770
|
+
|
|
771
|
+
}, {
|
|
772
|
+
key: "energyDataImportedEnergyDataList",
|
|
773
|
+
value: function energyDataImportedEnergyDataList(opts, callback) {
|
|
774
|
+
opts = opts || {};
|
|
775
|
+
var postBody = null;
|
|
776
|
+
var pathParams = {};
|
|
777
|
+
var queryParams = {
|
|
778
|
+
'consumption_request': opts['consumptionRequest'],
|
|
779
|
+
'consumption_site': opts['consumptionSite'],
|
|
780
|
+
'consumption_start': opts['consumptionStart'],
|
|
781
|
+
'created_at': opts['createdAt'],
|
|
782
|
+
'id': opts['id'],
|
|
783
|
+
'limit': opts['limit'],
|
|
784
|
+
'offset': opts['offset'],
|
|
785
|
+
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
786
|
+
'updated_at': opts['updatedAt']
|
|
787
|
+
};
|
|
788
|
+
var headerParams = {};
|
|
789
|
+
var formParams = {};
|
|
790
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
791
|
+
var contentTypes = [];
|
|
792
|
+
var accepts = ['application/json'];
|
|
793
|
+
var returnType = _PaginatedImportedEnergyDataPointList["default"];
|
|
794
|
+
return this.apiClient.callApi('/energy-data/imported-energy-data/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Callback function to receive the result of the energyDataImportedEnergyDataRetrieve operation.
|
|
798
|
+
* @callback module:api/EnergyDataApi~energyDataImportedEnergyDataRetrieveCallback
|
|
799
|
+
* @param {String} error Error message, if any.
|
|
800
|
+
* @param {module:model/ImportedEnergyDataPoint} data The data returned by the service call.
|
|
801
|
+
* @param {String} response The complete HTTP response.
|
|
802
|
+
*/
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* 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``.
|
|
806
|
+
* @param {String} id A UUID string identifying this imported energy data point.
|
|
807
|
+
* @param {module:api/EnergyDataApi~energyDataImportedEnergyDataRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
|
808
|
+
* data is of type: {@link module:model/ImportedEnergyDataPoint}
|
|
809
|
+
*/
|
|
810
|
+
|
|
811
|
+
}, {
|
|
812
|
+
key: "energyDataImportedEnergyDataRetrieve",
|
|
813
|
+
value: function energyDataImportedEnergyDataRetrieve(id, callback) {
|
|
814
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
815
|
+
|
|
816
|
+
if (id === undefined || id === null) {
|
|
817
|
+
throw new Error("Missing the required parameter 'id' when calling energyDataImportedEnergyDataRetrieve");
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
var pathParams = {
|
|
821
|
+
'id': id
|
|
822
|
+
};
|
|
823
|
+
var queryParams = {};
|
|
824
|
+
var headerParams = {};
|
|
825
|
+
var formParams = {};
|
|
826
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
827
|
+
var contentTypes = [];
|
|
828
|
+
var accepts = ['application/json'];
|
|
829
|
+
var returnType = _ImportedEnergyDataPoint["default"];
|
|
830
|
+
return this.apiClient.callApi('/energy-data/imported-energy-data/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
831
|
+
}
|
|
654
832
|
/**
|
|
655
833
|
* Callback function to receive the result of the energyDataMatchRequestList operation.
|
|
656
834
|
* @callback module:api/EnergyDataApi~energyDataMatchRequestListCallback
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* LicensedProductionSitesOnEpias service.
|
|
20
20
|
* @module api/LicensedProductionSitesOnEpiasApi
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.8.2
|
|
22
22
|
*/
|
|
23
23
|
var LicensedProductionSitesOnEpiasApi = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
package/dist/api/LocationsApi.js
CHANGED
package/dist/api/LogsApi.js
CHANGED
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* MaintenanceCheck service.
|
|
20
20
|
* @module api/MaintenanceCheckApi
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.8.2
|
|
22
22
|
*/
|
|
23
23
|
var MaintenanceCheckApi = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -24,7 +24,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
24
24
|
/**
|
|
25
25
|
* Organizationprofiles service.
|
|
26
26
|
* @module api/OrganizationprofilesApi
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.8.2
|
|
28
28
|
*/
|
|
29
29
|
var OrganizationprofilesApi = /*#__PURE__*/function () {
|
|
30
30
|
/**
|
package/dist/api/SchemaApi.js
CHANGED
package/dist/api/UsersApi.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -45,12 +45,6 @@ Object.defineProperty(exports, "ConsumptionDataFromRetailerRequest", {
|
|
|
45
45
|
return _ConsumptionDataFromRetailerRequest["default"];
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
Object.defineProperty(exports, "ConsumptionDataFromRetailerResponse", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _ConsumptionDataFromRetailerResponse["default"];
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
48
|
Object.defineProperty(exports, "ConsumptionDataPointCreate", {
|
|
55
49
|
enumerable: true,
|
|
56
50
|
get: function get() {
|
|
@@ -165,6 +159,24 @@ Object.defineProperty(exports, "HealthCheckApi", {
|
|
|
165
159
|
return _HealthCheckApi["default"];
|
|
166
160
|
}
|
|
167
161
|
});
|
|
162
|
+
Object.defineProperty(exports, "ImportRequest", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function get() {
|
|
165
|
+
return _ImportRequest["default"];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "ImportRequestStatusEnum", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function get() {
|
|
171
|
+
return _ImportRequestStatusEnum["default"];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "ImportedEnergyDataPoint", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function get() {
|
|
177
|
+
return _ImportedEnergyDataPoint["default"];
|
|
178
|
+
}
|
|
179
|
+
});
|
|
168
180
|
Object.defineProperty(exports, "Issuer", {
|
|
169
181
|
enumerable: true,
|
|
170
182
|
get: function get() {
|
|
@@ -297,6 +309,18 @@ Object.defineProperty(exports, "PaginatedGridOperatorList", {
|
|
|
297
309
|
return _PaginatedGridOperatorList["default"];
|
|
298
310
|
}
|
|
299
311
|
});
|
|
312
|
+
Object.defineProperty(exports, "PaginatedImportRequestList", {
|
|
313
|
+
enumerable: true,
|
|
314
|
+
get: function get() {
|
|
315
|
+
return _PaginatedImportRequestList["default"];
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
Object.defineProperty(exports, "PaginatedImportedEnergyDataPointList", {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function get() {
|
|
321
|
+
return _PaginatedImportedEnergyDataPointList["default"];
|
|
322
|
+
}
|
|
323
|
+
});
|
|
300
324
|
Object.defineProperty(exports, "PaginatedIssuerList", {
|
|
301
325
|
enumerable: true,
|
|
302
326
|
get: function get() {
|
|
@@ -567,10 +591,10 @@ Object.defineProperty(exports, "SmartContract", {
|
|
|
567
591
|
return _SmartContract["default"];
|
|
568
592
|
}
|
|
569
593
|
});
|
|
570
|
-
Object.defineProperty(exports, "
|
|
594
|
+
Object.defineProperty(exports, "Status619Enum", {
|
|
571
595
|
enumerable: true,
|
|
572
596
|
get: function get() {
|
|
573
|
-
return
|
|
597
|
+
return _Status619Enum["default"];
|
|
574
598
|
}
|
|
575
599
|
});
|
|
576
600
|
Object.defineProperty(exports, "Token", {
|
|
@@ -640,8 +664,6 @@ var _ConsumptionDataFileList = _interopRequireDefault(require("./model/Consumpti
|
|
|
640
664
|
|
|
641
665
|
var _ConsumptionDataFromRetailerRequest = _interopRequireDefault(require("./model/ConsumptionDataFromRetailerRequest"));
|
|
642
666
|
|
|
643
|
-
var _ConsumptionDataFromRetailerResponse = _interopRequireDefault(require("./model/ConsumptionDataFromRetailerResponse"));
|
|
644
|
-
|
|
645
667
|
var _ConsumptionDataPointCreate = _interopRequireDefault(require("./model/ConsumptionDataPointCreate"));
|
|
646
668
|
|
|
647
669
|
var _ConsumptionDataPointListOrDetail = _interopRequireDefault(require("./model/ConsumptionDataPointListOrDetail"));
|
|
@@ -674,6 +696,12 @@ var _GetFromEpias = _interopRequireDefault(require("./model/GetFromEpias"));
|
|
|
674
696
|
|
|
675
697
|
var _GridOperator = _interopRequireDefault(require("./model/GridOperator"));
|
|
676
698
|
|
|
699
|
+
var _ImportRequest = _interopRequireDefault(require("./model/ImportRequest"));
|
|
700
|
+
|
|
701
|
+
var _ImportRequestStatusEnum = _interopRequireDefault(require("./model/ImportRequestStatusEnum"));
|
|
702
|
+
|
|
703
|
+
var _ImportedEnergyDataPoint = _interopRequireDefault(require("./model/ImportedEnergyDataPoint"));
|
|
704
|
+
|
|
677
705
|
var _Issuer = _interopRequireDefault(require("./model/Issuer"));
|
|
678
706
|
|
|
679
707
|
var _Location = _interopRequireDefault(require("./model/Location"));
|
|
@@ -706,6 +734,10 @@ var _PaginatedEnergySourcePreferenceList = _interopRequireDefault(require("./mod
|
|
|
706
734
|
|
|
707
735
|
var _PaginatedGridOperatorList = _interopRequireDefault(require("./model/PaginatedGridOperatorList"));
|
|
708
736
|
|
|
737
|
+
var _PaginatedImportRequestList = _interopRequireDefault(require("./model/PaginatedImportRequestList"));
|
|
738
|
+
|
|
739
|
+
var _PaginatedImportedEnergyDataPointList = _interopRequireDefault(require("./model/PaginatedImportedEnergyDataPointList"));
|
|
740
|
+
|
|
709
741
|
var _PaginatedIssuerList = _interopRequireDefault(require("./model/PaginatedIssuerList"));
|
|
710
742
|
|
|
711
743
|
var _PaginatedLocationList = _interopRequireDefault(require("./model/PaginatedLocationList"));
|
|
@@ -792,7 +824,7 @@ var _Retailer = _interopRequireDefault(require("./model/Retailer"));
|
|
|
792
824
|
|
|
793
825
|
var _SmartContract = _interopRequireDefault(require("./model/SmartContract"));
|
|
794
826
|
|
|
795
|
-
var
|
|
827
|
+
var _Status619Enum = _interopRequireDefault(require("./model/Status619Enum"));
|
|
796
828
|
|
|
797
829
|
var _Token = _interopRequireDefault(require("./model/Token"));
|
|
798
830
|
|
package/dist/model/Activities.js
CHANGED
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _Status619Enum = _interopRequireDefault(require("./Status619Enum"));
|
|
11
11
|
|
|
12
12
|
var _TypeEnum = _interopRequireDefault(require("./TypeEnum"));
|
|
13
13
|
|
|
@@ -22,7 +22,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
22
22
|
/**
|
|
23
23
|
* The BlockchainTransaction model module.
|
|
24
24
|
* @module model/BlockchainTransaction
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.8.2
|
|
26
26
|
*/
|
|
27
27
|
var BlockchainTransaction = /*#__PURE__*/function () {
|
|
28
28
|
/**
|
|
@@ -30,7 +30,7 @@ var BlockchainTransaction = /*#__PURE__*/function () {
|
|
|
30
30
|
* @alias module:model/BlockchainTransaction
|
|
31
31
|
* @param tokenIds {Array.<Number>}
|
|
32
32
|
* @param energyAmounts {Array.<Number>}
|
|
33
|
-
* @param status {module:model/
|
|
33
|
+
* @param status {module:model/Status619Enum}
|
|
34
34
|
* @param type {module:model/TypeEnum}
|
|
35
35
|
*/
|
|
36
36
|
function BlockchainTransaction(tokenIds, energyAmounts, status, type) {
|
|
@@ -88,7 +88,7 @@ var BlockchainTransaction = /*#__PURE__*/function () {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
if (data.hasOwnProperty('status')) {
|
|
91
|
-
obj['status'] =
|
|
91
|
+
obj['status'] = _Status619Enum["default"].constructFromObject(data['status']);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
if (data.hasOwnProperty('type')) {
|
|
@@ -143,7 +143,7 @@ BlockchainTransaction.prototype['token_ids'] = undefined;
|
|
|
143
143
|
|
|
144
144
|
BlockchainTransaction.prototype['energy_amounts'] = undefined;
|
|
145
145
|
/**
|
|
146
|
-
* @member {module:model/
|
|
146
|
+
* @member {module:model/Status619Enum} status
|
|
147
147
|
*/
|
|
148
148
|
|
|
149
149
|
BlockchainTransaction.prototype['status'] = undefined;
|
package/dist/model/Consumer.js
CHANGED
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionDataFileList model module.
|
|
20
20
|
* @module model/ConsumptionDataFileList
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.8.2
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataFileList = /*#__PURE__*/function () {
|
|
24
24
|
/**
|