green_link_api 1.9.3 → 1.10.0
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 +11 -6
- package/dist/ApiClient.js +2 -2
- package/dist/api/BlockchainApi.js +1 -1
- package/dist/api/EnergyAssetsApi.js +244 -72
- package/dist/api/EnergyDataApi.js +5 -3
- 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 +22 -14
- package/dist/model/Activities.js +1 -1
- package/dist/model/BlockchainTransaction.js +1 -1
- package/dist/model/Consumer.js +10 -1
- package/dist/model/ConsumptionDataFileList.js +1 -1
- package/dist/model/ConsumptionDataFromRetailerRequest.js +1 -1
- 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/ConsumptionSiteContract.js +138 -0
- package/dist/model/{ConsumptionSiteFromRetailer.js → ConsumptionSiteContractImport.js} +38 -28
- package/dist/model/ConsumptionSiteCreate.js +1 -1
- package/dist/model/ConsumptionSiteFileUpload.js +1 -1
- package/dist/model/ConsumptionSiteListOrDetail.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 +16 -16
- package/dist/model/ImportedEnergyDataPoint.js +10 -10
- 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 +1 -1
- 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/PaginatedConsumptionSiteContractList.js +104 -0
- 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 +1 -1
- package/dist/model/PaginatedImportedEnergyDataPointList.js +1 -1
- 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 +10 -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 +1 -1
- 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/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 +1 -1
- package/dist/model/User.js +1 -1
- package/dist/model/UserDetail.js +1 -1
- package/package.json +1 -1
- package/dist/model/ConsumptionSiteMany.js +0 -195
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.10.0
|
|
8
|
+
- Package version: 1.10.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
@@ -139,11 +139,15 @@ Class | Method | HTTP request | Description
|
|
|
139
139
|
*GreenLinkApi.BlockchainApi* | [**blockchainSmartContractsPartialUpdate**](docs/BlockchainApi.md#blockchainSmartContractsPartialUpdate) | **PATCH** /blockchain/smart-contracts/{id}/ |
|
|
140
140
|
*GreenLinkApi.BlockchainApi* | [**blockchainSmartContractsRetrieve**](docs/BlockchainApi.md#blockchainSmartContractsRetrieve) | **GET** /blockchain/smart-contracts/{id}/ |
|
|
141
141
|
*GreenLinkApi.BlockchainApi* | [**blockchainSmartContractsUpdate**](docs/BlockchainApi.md#blockchainSmartContractsUpdate) | **PUT** /blockchain/smart-contracts/{id}/ |
|
|
142
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSiteContractsCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSiteContractsCreate) | **POST** /energy-assets/consumption-site-contracts/ |
|
|
143
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSiteContractsDestroy**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSiteContractsDestroy) | **DELETE** /energy-assets/consumption-site-contracts/{id}/ |
|
|
144
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSiteContractsImportsCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSiteContractsImportsCreate) | **POST** /energy-assets/consumption-site-contracts/imports/ |
|
|
145
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSiteContractsList**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSiteContractsList) | **GET** /energy-assets/consumption-site-contracts/ |
|
|
146
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSiteContractsRetrieve**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSiteContractsRetrieve) | **GET** /energy-assets/consumption-site-contracts/{id}/ |
|
|
147
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSiteContractsUpdate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSiteContractsUpdate) | **PUT** /energy-assets/consumption-site-contracts/{id}/ |
|
|
142
148
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesCreate) | **POST** /energy-assets/consumption-sites/ |
|
|
143
149
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesDestroy**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesDestroy) | **DELETE** /energy-assets/consumption-sites/{id}/ |
|
|
144
|
-
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesImportDataCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesImportDataCreate) | **POST** /energy-assets/consumption-sites/import-data/ |
|
|
145
150
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesList**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesList) | **GET** /energy-assets/consumption-sites/ |
|
|
146
|
-
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesManyCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesManyCreate) | **POST** /energy-assets/consumption-sites/many/ |
|
|
147
151
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesPartialUpdate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesPartialUpdate) | **PATCH** /energy-assets/consumption-sites/{id}/ |
|
|
148
152
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesRetrieve**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesRetrieve) | **GET** /energy-assets/consumption-sites/{id}/ |
|
|
149
153
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesUpdate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesUpdate) | **PUT** /energy-assets/consumption-sites/{id}/ |
|
|
@@ -275,11 +279,11 @@ Class | Method | HTTP request | Description
|
|
|
275
279
|
- [GreenLinkApi.ConsumptionDataPointListOrDetail](docs/ConsumptionDataPointListOrDetail.md)
|
|
276
280
|
- [GreenLinkApi.ConsumptionDataPointUpdate](docs/ConsumptionDataPointUpdate.md)
|
|
277
281
|
- [GreenLinkApi.ConsumptionSite](docs/ConsumptionSite.md)
|
|
282
|
+
- [GreenLinkApi.ConsumptionSiteContract](docs/ConsumptionSiteContract.md)
|
|
283
|
+
- [GreenLinkApi.ConsumptionSiteContractImport](docs/ConsumptionSiteContractImport.md)
|
|
278
284
|
- [GreenLinkApi.ConsumptionSiteCreate](docs/ConsumptionSiteCreate.md)
|
|
279
285
|
- [GreenLinkApi.ConsumptionSiteFileUpload](docs/ConsumptionSiteFileUpload.md)
|
|
280
|
-
- [GreenLinkApi.ConsumptionSiteFromRetailer](docs/ConsumptionSiteFromRetailer.md)
|
|
281
286
|
- [GreenLinkApi.ConsumptionSiteListOrDetail](docs/ConsumptionSiteListOrDetail.md)
|
|
282
|
-
- [GreenLinkApi.ConsumptionSiteMany](docs/ConsumptionSiteMany.md)
|
|
283
287
|
- [GreenLinkApi.ContentTypeEnum](docs/ContentTypeEnum.md)
|
|
284
288
|
- [GreenLinkApi.EacTypeEnum](docs/EacTypeEnum.md)
|
|
285
289
|
- [GreenLinkApi.EmissionFactor](docs/EmissionFactor.md)
|
|
@@ -302,6 +306,7 @@ Class | Method | HTTP request | Description
|
|
|
302
306
|
- [GreenLinkApi.PaginatedActivitiesList](docs/PaginatedActivitiesList.md)
|
|
303
307
|
- [GreenLinkApi.PaginatedConsumerList](docs/PaginatedConsumerList.md)
|
|
304
308
|
- [GreenLinkApi.PaginatedConsumptionDataPointListOrDetailList](docs/PaginatedConsumptionDataPointListOrDetailList.md)
|
|
309
|
+
- [GreenLinkApi.PaginatedConsumptionSiteContractList](docs/PaginatedConsumptionSiteContractList.md)
|
|
305
310
|
- [GreenLinkApi.PaginatedConsumptionSiteListOrDetailList](docs/PaginatedConsumptionSiteListOrDetailList.md)
|
|
306
311
|
- [GreenLinkApi.PaginatedEmissionFactorList](docs/PaginatedEmissionFactorList.md)
|
|
307
312
|
- [GreenLinkApi.PaginatedEnergySourcePreferenceList](docs/PaginatedEnergySourcePreferenceList.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.10.0
|
|
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.10.0/Javascript'
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
85
|
* The default HTTP timeout for all API calls.
|
|
@@ -9,15 +9,17 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
9
9
|
|
|
10
10
|
var _ConsumptionSite = _interopRequireDefault(require("../model/ConsumptionSite"));
|
|
11
11
|
|
|
12
|
+
var _ConsumptionSiteContract = _interopRequireDefault(require("../model/ConsumptionSiteContract"));
|
|
13
|
+
|
|
14
|
+
var _ConsumptionSiteContractImport = _interopRequireDefault(require("../model/ConsumptionSiteContractImport"));
|
|
15
|
+
|
|
12
16
|
var _ConsumptionSiteCreate = _interopRequireDefault(require("../model/ConsumptionSiteCreate"));
|
|
13
17
|
|
|
14
18
|
var _ConsumptionSiteFileUpload = _interopRequireDefault(require("../model/ConsumptionSiteFileUpload"));
|
|
15
19
|
|
|
16
|
-
var _ConsumptionSiteFromRetailer = _interopRequireDefault(require("../model/ConsumptionSiteFromRetailer"));
|
|
17
|
-
|
|
18
20
|
var _ConsumptionSiteListOrDetail = _interopRequireDefault(require("../model/ConsumptionSiteListOrDetail"));
|
|
19
21
|
|
|
20
|
-
var
|
|
22
|
+
var _PaginatedConsumptionSiteContractList = _interopRequireDefault(require("../model/PaginatedConsumptionSiteContractList"));
|
|
21
23
|
|
|
22
24
|
var _PaginatedConsumptionSiteListOrDetailList = _interopRequireDefault(require("../model/PaginatedConsumptionSiteListOrDetailList"));
|
|
23
25
|
|
|
@@ -46,7 +48,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
46
48
|
/**
|
|
47
49
|
* EnergyAssets service.
|
|
48
50
|
* @module api/EnergyAssetsApi
|
|
49
|
-
* @version 1.
|
|
51
|
+
* @version 1.10.0
|
|
50
52
|
*/
|
|
51
53
|
var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
52
54
|
/**
|
|
@@ -62,28 +64,28 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
62
64
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
63
65
|
}
|
|
64
66
|
/**
|
|
65
|
-
* Callback function to receive the result of the
|
|
66
|
-
* @callback module:api/EnergyAssetsApi~
|
|
67
|
+
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsCreate operation.
|
|
68
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsCreateCallback
|
|
67
69
|
* @param {String} error Error message, if any.
|
|
68
|
-
* @param {module:model/
|
|
70
|
+
* @param {module:model/ConsumptionSiteContract} data The data returned by the service call.
|
|
69
71
|
* @param {String} response The complete HTTP response.
|
|
70
72
|
*/
|
|
71
73
|
|
|
72
74
|
/**
|
|
73
|
-
*
|
|
74
|
-
* @param {module:model/
|
|
75
|
-
* @param {module:api/EnergyAssetsApi~
|
|
76
|
-
* data is of type: {@link module:model/
|
|
75
|
+
* 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``.
|
|
76
|
+
* @param {module:model/ConsumptionSiteContract} consumptionSiteContract
|
|
77
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
78
|
+
* data is of type: {@link module:model/ConsumptionSiteContract}
|
|
77
79
|
*/
|
|
78
80
|
|
|
79
81
|
|
|
80
82
|
_createClass(EnergyAssetsApi, [{
|
|
81
|
-
key: "
|
|
82
|
-
value: function
|
|
83
|
-
var postBody =
|
|
83
|
+
key: "energyAssetsConsumptionSiteContractsCreate",
|
|
84
|
+
value: function energyAssetsConsumptionSiteContractsCreate(consumptionSiteContract, callback) {
|
|
85
|
+
var postBody = consumptionSiteContract; // verify the required parameter 'consumptionSiteContract' is set
|
|
84
86
|
|
|
85
|
-
if (
|
|
86
|
-
throw new Error("Missing the required parameter '
|
|
87
|
+
if (consumptionSiteContract === undefined || consumptionSiteContract === null) {
|
|
88
|
+
throw new Error("Missing the required parameter 'consumptionSiteContract' when calling energyAssetsConsumptionSiteContractsCreate");
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
var pathParams = {};
|
|
@@ -93,30 +95,30 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
93
95
|
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
94
96
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
95
97
|
var accepts = ['application/json'];
|
|
96
|
-
var returnType =
|
|
97
|
-
return this.apiClient.callApi('/energy-assets/consumption-
|
|
98
|
+
var returnType = _ConsumptionSiteContract["default"];
|
|
99
|
+
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
98
100
|
}
|
|
99
101
|
/**
|
|
100
|
-
* Callback function to receive the result of the
|
|
101
|
-
* @callback module:api/EnergyAssetsApi~
|
|
102
|
+
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsDestroy operation.
|
|
103
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsDestroyCallback
|
|
102
104
|
* @param {String} error Error message, if any.
|
|
103
105
|
* @param data This operation does not return a value.
|
|
104
106
|
* @param {String} response The complete HTTP response.
|
|
105
107
|
*/
|
|
106
108
|
|
|
107
109
|
/**
|
|
108
|
-
*
|
|
109
|
-
* @param {String} id A UUID string identifying this consumption site.
|
|
110
|
-
* @param {module:api/EnergyAssetsApi~
|
|
110
|
+
* 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``.
|
|
111
|
+
* @param {String} id A UUID string identifying this consumption site contract.
|
|
112
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
111
113
|
*/
|
|
112
114
|
|
|
113
115
|
}, {
|
|
114
|
-
key: "
|
|
115
|
-
value: function
|
|
116
|
+
key: "energyAssetsConsumptionSiteContractsDestroy",
|
|
117
|
+
value: function energyAssetsConsumptionSiteContractsDestroy(id, callback) {
|
|
116
118
|
var postBody = null; // verify the required parameter 'id' is set
|
|
117
119
|
|
|
118
120
|
if (id === undefined || id === null) {
|
|
119
|
-
throw new Error("Missing the required parameter 'id' when calling
|
|
121
|
+
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSiteContractsDestroy");
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
var pathParams = {
|
|
@@ -129,29 +131,30 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
129
131
|
var contentTypes = [];
|
|
130
132
|
var accepts = [];
|
|
131
133
|
var returnType = null;
|
|
132
|
-
return this.apiClient.callApi('/energy-assets/consumption-
|
|
134
|
+
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
133
135
|
}
|
|
134
136
|
/**
|
|
135
|
-
* Callback function to receive the result of the
|
|
136
|
-
* @callback module:api/EnergyAssetsApi~
|
|
137
|
+
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsImportsCreate operation.
|
|
138
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsImportsCreateCallback
|
|
137
139
|
* @param {String} error Error message, if any.
|
|
138
|
-
* @param data
|
|
140
|
+
* @param {module:model/ConsumptionSiteContract} data The data returned by the service call.
|
|
139
141
|
* @param {String} response The complete HTTP response.
|
|
140
142
|
*/
|
|
141
143
|
|
|
142
144
|
/**
|
|
143
|
-
*
|
|
144
|
-
* @param {module:model/
|
|
145
|
-
* @param {module:api/EnergyAssetsApi~
|
|
145
|
+
* 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``.
|
|
146
|
+
* @param {module:model/ConsumptionSiteContractImport} consumptionSiteContractImport
|
|
147
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsImportsCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
148
|
+
* data is of type: {@link module:model/ConsumptionSiteContract}
|
|
146
149
|
*/
|
|
147
150
|
|
|
148
151
|
}, {
|
|
149
|
-
key: "
|
|
150
|
-
value: function
|
|
151
|
-
var postBody =
|
|
152
|
+
key: "energyAssetsConsumptionSiteContractsImportsCreate",
|
|
153
|
+
value: function energyAssetsConsumptionSiteContractsImportsCreate(consumptionSiteContractImport, callback) {
|
|
154
|
+
var postBody = consumptionSiteContractImport; // verify the required parameter 'consumptionSiteContractImport' is set
|
|
152
155
|
|
|
153
|
-
if (
|
|
154
|
-
throw new Error("Missing the required parameter '
|
|
156
|
+
if (consumptionSiteContractImport === undefined || consumptionSiteContractImport === null) {
|
|
157
|
+
throw new Error("Missing the required parameter 'consumptionSiteContractImport' when calling energyAssetsConsumptionSiteContractsImportsCreate");
|
|
155
158
|
}
|
|
156
159
|
|
|
157
160
|
var pathParams = {};
|
|
@@ -160,9 +163,209 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
160
163
|
var formParams = {};
|
|
161
164
|
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
162
165
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
166
|
+
var accepts = ['application/json'];
|
|
167
|
+
var returnType = _ConsumptionSiteContract["default"];
|
|
168
|
+
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/imports/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsList operation.
|
|
172
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsListCallback
|
|
173
|
+
* @param {String} error Error message, if any.
|
|
174
|
+
* @param {module:model/PaginatedConsumptionSiteContractList} data The data returned by the service call.
|
|
175
|
+
* @param {String} response The complete HTTP response.
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* 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``.
|
|
180
|
+
* @param {Object} opts Optional parameters
|
|
181
|
+
* @param {String} opts.consumerId
|
|
182
|
+
* @param {String} opts.consumptionSite
|
|
183
|
+
* @param {Date} opts.createdAt
|
|
184
|
+
* @param {Date} opts.endDate
|
|
185
|
+
* @param {String} opts.id
|
|
186
|
+
* @param {Number} opts.limit Number of results to return per page.
|
|
187
|
+
* @param {Number} opts.offset The initial index from which to return the results.
|
|
188
|
+
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
189
|
+
* @param {String} opts.search A search term.
|
|
190
|
+
* @param {Date} opts.startDate
|
|
191
|
+
* @param {Date} opts.updatedAt
|
|
192
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
193
|
+
* data is of type: {@link module:model/PaginatedConsumptionSiteContractList}
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
}, {
|
|
197
|
+
key: "energyAssetsConsumptionSiteContractsList",
|
|
198
|
+
value: function energyAssetsConsumptionSiteContractsList(opts, callback) {
|
|
199
|
+
opts = opts || {};
|
|
200
|
+
var postBody = null;
|
|
201
|
+
var pathParams = {};
|
|
202
|
+
var queryParams = {
|
|
203
|
+
'consumer_id': opts['consumerId'],
|
|
204
|
+
'consumption_site': opts['consumptionSite'],
|
|
205
|
+
'created_at': opts['createdAt'],
|
|
206
|
+
'end_date': opts['endDate'],
|
|
207
|
+
'id': opts['id'],
|
|
208
|
+
'limit': opts['limit'],
|
|
209
|
+
'offset': opts['offset'],
|
|
210
|
+
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
211
|
+
'search': opts['search'],
|
|
212
|
+
'start_date': opts['startDate'],
|
|
213
|
+
'updated_at': opts['updatedAt']
|
|
214
|
+
};
|
|
215
|
+
var headerParams = {};
|
|
216
|
+
var formParams = {};
|
|
217
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
218
|
+
var contentTypes = [];
|
|
219
|
+
var accepts = ['application/json'];
|
|
220
|
+
var returnType = _PaginatedConsumptionSiteContractList["default"];
|
|
221
|
+
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsRetrieve operation.
|
|
225
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsRetrieveCallback
|
|
226
|
+
* @param {String} error Error message, if any.
|
|
227
|
+
* @param {module:model/ConsumptionSiteContract} data The data returned by the service call.
|
|
228
|
+
* @param {String} response The complete HTTP response.
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* 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``.
|
|
233
|
+
* @param {String} id A UUID string identifying this consumption site contract.
|
|
234
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
|
235
|
+
* data is of type: {@link module:model/ConsumptionSiteContract}
|
|
236
|
+
*/
|
|
237
|
+
|
|
238
|
+
}, {
|
|
239
|
+
key: "energyAssetsConsumptionSiteContractsRetrieve",
|
|
240
|
+
value: function energyAssetsConsumptionSiteContractsRetrieve(id, callback) {
|
|
241
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
242
|
+
|
|
243
|
+
if (id === undefined || id === null) {
|
|
244
|
+
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSiteContractsRetrieve");
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
var pathParams = {
|
|
248
|
+
'id': id
|
|
249
|
+
};
|
|
250
|
+
var queryParams = {};
|
|
251
|
+
var headerParams = {};
|
|
252
|
+
var formParams = {};
|
|
253
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
254
|
+
var contentTypes = [];
|
|
255
|
+
var accepts = ['application/json'];
|
|
256
|
+
var returnType = _ConsumptionSiteContract["default"];
|
|
257
|
+
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Callback function to receive the result of the energyAssetsConsumptionSiteContractsUpdate operation.
|
|
261
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsUpdateCallback
|
|
262
|
+
* @param {String} error Error message, if any.
|
|
263
|
+
* @param {module:model/ConsumptionSiteContract} data The data returned by the service call.
|
|
264
|
+
* @param {String} response The complete HTTP response.
|
|
265
|
+
*/
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* 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``.
|
|
269
|
+
* @param {String} id A UUID string identifying this consumption site contract.
|
|
270
|
+
* @param {module:model/ConsumptionSiteContract} consumptionSiteContract
|
|
271
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSiteContractsUpdateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
272
|
+
* data is of type: {@link module:model/ConsumptionSiteContract}
|
|
273
|
+
*/
|
|
274
|
+
|
|
275
|
+
}, {
|
|
276
|
+
key: "energyAssetsConsumptionSiteContractsUpdate",
|
|
277
|
+
value: function energyAssetsConsumptionSiteContractsUpdate(id, consumptionSiteContract, callback) {
|
|
278
|
+
var postBody = consumptionSiteContract; // verify the required parameter 'id' is set
|
|
279
|
+
|
|
280
|
+
if (id === undefined || id === null) {
|
|
281
|
+
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSiteContractsUpdate");
|
|
282
|
+
} // verify the required parameter 'consumptionSiteContract' is set
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
if (consumptionSiteContract === undefined || consumptionSiteContract === null) {
|
|
286
|
+
throw new Error("Missing the required parameter 'consumptionSiteContract' when calling energyAssetsConsumptionSiteContractsUpdate");
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
var pathParams = {
|
|
290
|
+
'id': id
|
|
291
|
+
};
|
|
292
|
+
var queryParams = {};
|
|
293
|
+
var headerParams = {};
|
|
294
|
+
var formParams = {};
|
|
295
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
296
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
297
|
+
var accepts = ['application/json'];
|
|
298
|
+
var returnType = _ConsumptionSiteContract["default"];
|
|
299
|
+
return this.apiClient.callApi('/energy-assets/consumption-site-contracts/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Callback function to receive the result of the energyAssetsConsumptionSitesCreate operation.
|
|
303
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesCreateCallback
|
|
304
|
+
* @param {String} error Error message, if any.
|
|
305
|
+
* @param {module:model/ConsumptionSiteCreate} data The data returned by the service call.
|
|
306
|
+
* @param {String} response The complete HTTP response.
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* **Create a specific consumption 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
|
|
311
|
+
* @param {module:model/ConsumptionSiteCreate} consumptionSiteCreate
|
|
312
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
313
|
+
* data is of type: {@link module:model/ConsumptionSiteCreate}
|
|
314
|
+
*/
|
|
315
|
+
|
|
316
|
+
}, {
|
|
317
|
+
key: "energyAssetsConsumptionSitesCreate",
|
|
318
|
+
value: function energyAssetsConsumptionSitesCreate(consumptionSiteCreate, callback) {
|
|
319
|
+
var postBody = consumptionSiteCreate; // verify the required parameter 'consumptionSiteCreate' is set
|
|
320
|
+
|
|
321
|
+
if (consumptionSiteCreate === undefined || consumptionSiteCreate === null) {
|
|
322
|
+
throw new Error("Missing the required parameter 'consumptionSiteCreate' when calling energyAssetsConsumptionSitesCreate");
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
var pathParams = {};
|
|
326
|
+
var queryParams = {};
|
|
327
|
+
var headerParams = {};
|
|
328
|
+
var formParams = {};
|
|
329
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
330
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
331
|
+
var accepts = ['application/json'];
|
|
332
|
+
var returnType = _ConsumptionSiteCreate["default"];
|
|
333
|
+
return this.apiClient.callApi('/energy-assets/consumption-sites/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Callback function to receive the result of the energyAssetsConsumptionSitesDestroy operation.
|
|
337
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesDestroyCallback
|
|
338
|
+
* @param {String} error Error message, if any.
|
|
339
|
+
* @param data This operation does not return a value.
|
|
340
|
+
* @param {String} response The complete HTTP response.
|
|
341
|
+
*/
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* **Delete a specific consumption site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Consumption sites should be associated to a consumer managed by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Retailer
|
|
345
|
+
* @param {String} id A UUID string identifying this consumption site.
|
|
346
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
}, {
|
|
350
|
+
key: "energyAssetsConsumptionSitesDestroy",
|
|
351
|
+
value: function energyAssetsConsumptionSitesDestroy(id, callback) {
|
|
352
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
353
|
+
|
|
354
|
+
if (id === undefined || id === null) {
|
|
355
|
+
throw new Error("Missing the required parameter 'id' when calling energyAssetsConsumptionSitesDestroy");
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
var pathParams = {
|
|
359
|
+
'id': id
|
|
360
|
+
};
|
|
361
|
+
var queryParams = {};
|
|
362
|
+
var headerParams = {};
|
|
363
|
+
var formParams = {};
|
|
364
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
365
|
+
var contentTypes = [];
|
|
163
366
|
var accepts = [];
|
|
164
367
|
var returnType = null;
|
|
165
|
-
return this.apiClient.callApi('/energy-assets/consumption-sites/
|
|
368
|
+
return this.apiClient.callApi('/energy-assets/consumption-sites/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
166
369
|
}
|
|
167
370
|
/**
|
|
168
371
|
* Callback function to receive the result of the energyAssetsConsumptionSitesList operation.
|
|
@@ -188,6 +391,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
188
391
|
* @param {Number} opts.offset The initial index from which to return the results.
|
|
189
392
|
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
190
393
|
* @param {String} opts.retailer
|
|
394
|
+
* @param {String} opts.search A search term.
|
|
191
395
|
* @param {Date} opts.updatedAt
|
|
192
396
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
193
397
|
* data is of type: {@link module:model/PaginatedConsumptionSiteListOrDetailList}
|
|
@@ -213,6 +417,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
213
417
|
'offset': opts['offset'],
|
|
214
418
|
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
215
419
|
'retailer': opts['retailer'],
|
|
420
|
+
'search': opts['search'],
|
|
216
421
|
'updated_at': opts['updatedAt']
|
|
217
422
|
};
|
|
218
423
|
var headerParams = {};
|
|
@@ -223,39 +428,6 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
223
428
|
var returnType = _PaginatedConsumptionSiteListOrDetailList["default"];
|
|
224
429
|
return this.apiClient.callApi('/energy-assets/consumption-sites/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
225
430
|
}
|
|
226
|
-
/**
|
|
227
|
-
* Callback function to receive the result of the energyAssetsConsumptionSitesManyCreate operation.
|
|
228
|
-
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesManyCreateCallback
|
|
229
|
-
* @param {String} error Error message, if any.
|
|
230
|
-
* @param data This operation does not return a value.
|
|
231
|
-
* @param {String} response The complete HTTP response.
|
|
232
|
-
*/
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* **Add multiple consumption sites** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Consumption sites should be added to a consumer managed by the user's organization. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Retailer
|
|
236
|
-
* @param {Array.<module:model/ConsumptionSiteMany>} consumptionSiteMany
|
|
237
|
-
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesManyCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
238
|
-
*/
|
|
239
|
-
|
|
240
|
-
}, {
|
|
241
|
-
key: "energyAssetsConsumptionSitesManyCreate",
|
|
242
|
-
value: function energyAssetsConsumptionSitesManyCreate(consumptionSiteMany, callback) {
|
|
243
|
-
var postBody = consumptionSiteMany; // verify the required parameter 'consumptionSiteMany' is set
|
|
244
|
-
|
|
245
|
-
if (consumptionSiteMany === undefined || consumptionSiteMany === null) {
|
|
246
|
-
throw new Error("Missing the required parameter 'consumptionSiteMany' when calling energyAssetsConsumptionSitesManyCreate");
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
var pathParams = {};
|
|
250
|
-
var queryParams = {};
|
|
251
|
-
var headerParams = {};
|
|
252
|
-
var formParams = {};
|
|
253
|
-
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
254
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
255
|
-
var accepts = [];
|
|
256
|
-
var returnType = null;
|
|
257
|
-
return this.apiClient.callApi('/energy-assets/consumption-sites/many/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
258
|
-
}
|
|
259
431
|
/**
|
|
260
432
|
* Callback function to receive the result of the energyAssetsConsumptionSitesPartialUpdate operation.
|
|
261
433
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesPartialUpdateCallback
|
|
@@ -72,7 +72,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
72
72
|
/**
|
|
73
73
|
* EnergyData service.
|
|
74
74
|
* @module api/EnergyDataApi
|
|
75
|
-
* @version 1.
|
|
75
|
+
* @version 1.10.0
|
|
76
76
|
*/
|
|
77
77
|
var EnergyDataApi = /*#__PURE__*/function () {
|
|
78
78
|
/**
|
|
@@ -669,13 +669,13 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
669
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
670
|
* @param {Object} opts Optional parameters
|
|
671
671
|
* @param {String} opts.consumer
|
|
672
|
+
* @param {Date} opts.consumptionStart
|
|
672
673
|
* @param {Date} opts.createdAt
|
|
673
674
|
* @param {String} opts.id
|
|
674
675
|
* @param {Number} opts.limit Number of results to return per page.
|
|
675
676
|
* @param {Number} opts.offset The initial index from which to return the results.
|
|
676
677
|
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
677
678
|
* @param {String} opts.retailer
|
|
678
|
-
* @param {Date} opts.startTime
|
|
679
679
|
* @param {module:model/String} opts.status
|
|
680
680
|
* @param {Date} opts.updatedAt
|
|
681
681
|
* @param {module:api/EnergyDataApi~energyDataImportRequestListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
@@ -690,13 +690,13 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
690
690
|
var pathParams = {};
|
|
691
691
|
var queryParams = {
|
|
692
692
|
'consumer': opts['consumer'],
|
|
693
|
+
'consumption_start': opts['consumptionStart'],
|
|
693
694
|
'created_at': opts['createdAt'],
|
|
694
695
|
'id': opts['id'],
|
|
695
696
|
'limit': opts['limit'],
|
|
696
697
|
'offset': opts['offset'],
|
|
697
698
|
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
698
699
|
'retailer': opts['retailer'],
|
|
699
|
-
'start_time': opts['startTime'],
|
|
700
700
|
'status': opts['status'],
|
|
701
701
|
'updated_at': opts['updatedAt']
|
|
702
702
|
};
|
|
@@ -755,6 +755,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
755
755
|
/**
|
|
756
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
757
|
* @param {Object} opts Optional parameters
|
|
758
|
+
* @param {Boolean} opts.completed
|
|
758
759
|
* @param {String} opts.consumptionRequest
|
|
759
760
|
* @param {String} opts.consumptionSite
|
|
760
761
|
* @param {Date} opts.consumptionStart
|
|
@@ -775,6 +776,7 @@ var EnergyDataApi = /*#__PURE__*/function () {
|
|
|
775
776
|
var postBody = null;
|
|
776
777
|
var pathParams = {};
|
|
777
778
|
var queryParams = {
|
|
779
|
+
'completed': opts['completed'],
|
|
778
780
|
'consumption_request': opts['consumptionRequest'],
|
|
779
781
|
'consumption_site': opts['consumptionSite'],
|
|
780
782
|
'consumption_start': opts['consumptionStart'],
|
|
@@ -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.10.0
|
|
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.10.0
|
|
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.10.0
|
|
28
28
|
*/
|
|
29
29
|
var OrganizationprofilesApi = /*#__PURE__*/function () {
|
|
30
30
|
/**
|