green_link_api 1.1.3 → 1.2.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 +9 -2
- 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 +1 -1
- 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 +168 -6
- 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 +24 -0
- package/dist/model/BlockchainTransaction.js +1 -1
- package/dist/model/Consumer.js +1 -1
- package/dist/model/ConsumptionDataFileList.js +1 -1
- package/dist/model/ConsumptionDataFromRetailerRequest.js +1 -1
- package/dist/model/ConsumptionDataFromRetailerResponse.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/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/ContentTypeEnum.js +2 -0
- package/dist/model/EacTypeEnum.js +48 -0
- 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/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/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/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/PaginatedUploadedCertificateList.js +104 -0
- 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 +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 +176 -0
- 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/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.1
|
|
8
|
-
- Package version: 1.1
|
|
7
|
+
- API version: 1.2.1
|
|
8
|
+
- Package version: 1.2.1
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
@@ -194,6 +194,10 @@ Class | Method | HTTP request | Description
|
|
|
194
194
|
*GreenLinkApi.LocationsApi* | [**locationsProductionSitesRetrieve**](docs/LocationsApi.md#locationsProductionSitesRetrieve) | **GET** /locations/production-sites/ |
|
|
195
195
|
*GreenLinkApi.LocationsApi* | [**locationsRetrieve**](docs/LocationsApi.md#locationsRetrieve) | **GET** /locations/{id}/ |
|
|
196
196
|
*GreenLinkApi.LocationsApi* | [**locationsUpdate**](docs/LocationsApi.md#locationsUpdate) | **PUT** /locations/{id}/ |
|
|
197
|
+
*GreenLinkApi.LogsApi* | [**logsCertificatesCreate**](docs/LogsApi.md#logsCertificatesCreate) | **POST** /logs/certificates/ |
|
|
198
|
+
*GreenLinkApi.LogsApi* | [**logsCertificatesDestroy**](docs/LogsApi.md#logsCertificatesDestroy) | **DELETE** /logs/certificates/{id}/ |
|
|
199
|
+
*GreenLinkApi.LogsApi* | [**logsCertificatesList**](docs/LogsApi.md#logsCertificatesList) | **GET** /logs/certificates/ |
|
|
200
|
+
*GreenLinkApi.LogsApi* | [**logsCertificatesRetrieve**](docs/LogsApi.md#logsCertificatesRetrieve) | **GET** /logs/certificates/{id}/ |
|
|
197
201
|
*GreenLinkApi.LogsApi* | [**logsProductionEpiasDestroy**](docs/LogsApi.md#logsProductionEpiasDestroy) | **DELETE** /logs/production-epias/{id}/ |
|
|
198
202
|
*GreenLinkApi.LogsApi* | [**logsProductionEpiasList**](docs/LogsApi.md#logsProductionEpiasList) | **GET** /logs/production-epias/ |
|
|
199
203
|
*GreenLinkApi.LogsApi* | [**logsProductionEpiasRetrieve**](docs/LogsApi.md#logsProductionEpiasRetrieve) | **GET** /logs/production-epias/{id}/ |
|
|
@@ -271,6 +275,7 @@ Class | Method | HTTP request | Description
|
|
|
271
275
|
- [GreenLinkApi.ConsumptionSiteListOrDetail](docs/ConsumptionSiteListOrDetail.md)
|
|
272
276
|
- [GreenLinkApi.ConsumptionSiteMany](docs/ConsumptionSiteMany.md)
|
|
273
277
|
- [GreenLinkApi.ContentTypeEnum](docs/ContentTypeEnum.md)
|
|
278
|
+
- [GreenLinkApi.EacTypeEnum](docs/EacTypeEnum.md)
|
|
274
279
|
- [GreenLinkApi.EmissionFactor](docs/EmissionFactor.md)
|
|
275
280
|
- [GreenLinkApi.EnergySourceEnum](docs/EnergySourceEnum.md)
|
|
276
281
|
- [GreenLinkApi.EnergySourcePreference](docs/EnergySourcePreference.md)
|
|
@@ -302,6 +307,7 @@ Class | Method | HTTP request | Description
|
|
|
302
307
|
- [GreenLinkApi.PaginatedRetailerList](docs/PaginatedRetailerList.md)
|
|
303
308
|
- [GreenLinkApi.PaginatedSmartContractList](docs/PaginatedSmartContractList.md)
|
|
304
309
|
- [GreenLinkApi.PaginatedUnprocessedRowList](docs/PaginatedUnprocessedRowList.md)
|
|
310
|
+
- [GreenLinkApi.PaginatedUploadedCertificateList](docs/PaginatedUploadedCertificateList.md)
|
|
305
311
|
- [GreenLinkApi.PaginatedUploadedFileList](docs/PaginatedUploadedFileList.md)
|
|
306
312
|
- [GreenLinkApi.PaginatedUserList](docs/PaginatedUserList.md)
|
|
307
313
|
- [GreenLinkApi.PatchedConsumer](docs/PatchedConsumer.md)
|
|
@@ -337,6 +343,7 @@ Class | Method | HTTP request | Description
|
|
|
337
343
|
- [GreenLinkApi.Token](docs/Token.md)
|
|
338
344
|
- [GreenLinkApi.TypeEnum](docs/TypeEnum.md)
|
|
339
345
|
- [GreenLinkApi.UnprocessedRow](docs/UnprocessedRow.md)
|
|
346
|
+
- [GreenLinkApi.UploadedCertificate](docs/UploadedCertificate.md)
|
|
340
347
|
- [GreenLinkApi.UploadedFile](docs/UploadedFile.md)
|
|
341
348
|
- [GreenLinkApi.User](docs/User.md)
|
|
342
349
|
- [GreenLinkApi.UserDetail](docs/UserDetail.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.1
|
|
24
|
+
* @version 1.2.1
|
|
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.1
|
|
82
|
+
'User-Agent': 'OpenAPI-Generator/1.2.1/Javascript'
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
85
|
* The default HTTP timeout for all API calls.
|
|
@@ -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.1
|
|
21
|
+
* @version 1.2.1
|
|
22
22
|
*/
|
|
23
23
|
var LicensedProductionSitesOnEpiasApi = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
package/dist/api/LocationsApi.js
CHANGED
package/dist/api/LogsApi.js
CHANGED
|
@@ -11,12 +11,16 @@ var _PaginatedProductionDataFromEpiasRequestList = _interopRequireDefault(requir
|
|
|
11
11
|
|
|
12
12
|
var _PaginatedUnprocessedRowList = _interopRequireDefault(require("../model/PaginatedUnprocessedRowList"));
|
|
13
13
|
|
|
14
|
+
var _PaginatedUploadedCertificateList = _interopRequireDefault(require("../model/PaginatedUploadedCertificateList"));
|
|
15
|
+
|
|
14
16
|
var _PaginatedUploadedFileList = _interopRequireDefault(require("../model/PaginatedUploadedFileList"));
|
|
15
17
|
|
|
16
18
|
var _ProductionDataFromEpiasRequest = _interopRequireDefault(require("../model/ProductionDataFromEpiasRequest"));
|
|
17
19
|
|
|
18
20
|
var _UnprocessedRow = _interopRequireDefault(require("../model/UnprocessedRow"));
|
|
19
21
|
|
|
22
|
+
var _UploadedCertificate = _interopRequireDefault(require("../model/UploadedCertificate"));
|
|
23
|
+
|
|
20
24
|
var _UploadedFile = _interopRequireDefault(require("../model/UploadedFile"));
|
|
21
25
|
|
|
22
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -30,7 +34,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
30
34
|
/**
|
|
31
35
|
* Logs service.
|
|
32
36
|
* @module api/LogsApi
|
|
33
|
-
* @version 1.1
|
|
37
|
+
* @version 1.2.1
|
|
34
38
|
*/
|
|
35
39
|
var LogsApi = /*#__PURE__*/function () {
|
|
36
40
|
/**
|
|
@@ -46,21 +50,179 @@ var LogsApi = /*#__PURE__*/function () {
|
|
|
46
50
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
|
-
* Callback function to receive the result of the
|
|
50
|
-
* @callback module:api/LogsApi~
|
|
53
|
+
* Callback function to receive the result of the logsCertificatesCreate operation.
|
|
54
|
+
* @callback module:api/LogsApi~logsCertificatesCreateCallback
|
|
51
55
|
* @param {String} error Error message, if any.
|
|
52
|
-
* @param data
|
|
56
|
+
* @param {module:model/UploadedCertificate} data The data returned by the service call.
|
|
53
57
|
* @param {String} response The complete HTTP response.
|
|
54
58
|
*/
|
|
55
59
|
|
|
56
60
|
/**
|
|
57
61
|
* 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``.
|
|
58
|
-
* @param {
|
|
59
|
-
* @param {module:api/LogsApi~
|
|
62
|
+
* @param {module:model/UploadedCertificate} uploadedCertificate
|
|
63
|
+
* @param {module:api/LogsApi~logsCertificatesCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
64
|
+
* data is of type: {@link module:model/UploadedCertificate}
|
|
60
65
|
*/
|
|
61
66
|
|
|
62
67
|
|
|
63
68
|
_createClass(LogsApi, [{
|
|
69
|
+
key: "logsCertificatesCreate",
|
|
70
|
+
value: function logsCertificatesCreate(uploadedCertificate, callback) {
|
|
71
|
+
var postBody = uploadedCertificate; // verify the required parameter 'uploadedCertificate' is set
|
|
72
|
+
|
|
73
|
+
if (uploadedCertificate === undefined || uploadedCertificate === null) {
|
|
74
|
+
throw new Error("Missing the required parameter 'uploadedCertificate' when calling logsCertificatesCreate");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
var pathParams = {};
|
|
78
|
+
var queryParams = {};
|
|
79
|
+
var headerParams = {};
|
|
80
|
+
var formParams = {};
|
|
81
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
82
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
83
|
+
var accepts = ['application/json'];
|
|
84
|
+
var returnType = _UploadedCertificate["default"];
|
|
85
|
+
return this.apiClient.callApi('/logs/certificates/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Callback function to receive the result of the logsCertificatesDestroy operation.
|
|
89
|
+
* @callback module:api/LogsApi~logsCertificatesDestroyCallback
|
|
90
|
+
* @param {String} error Error message, if any.
|
|
91
|
+
* @param data This operation does not return a value.
|
|
92
|
+
* @param {String} response The complete HTTP response.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 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``.
|
|
97
|
+
* @param {String} id A UUID string identifying this uploaded certificate file.
|
|
98
|
+
* @param {module:api/LogsApi~logsCertificatesDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
}, {
|
|
102
|
+
key: "logsCertificatesDestroy",
|
|
103
|
+
value: function logsCertificatesDestroy(id, callback) {
|
|
104
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
105
|
+
|
|
106
|
+
if (id === undefined || id === null) {
|
|
107
|
+
throw new Error("Missing the required parameter 'id' when calling logsCertificatesDestroy");
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
var pathParams = {
|
|
111
|
+
'id': id
|
|
112
|
+
};
|
|
113
|
+
var queryParams = {};
|
|
114
|
+
var headerParams = {};
|
|
115
|
+
var formParams = {};
|
|
116
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
117
|
+
var contentTypes = [];
|
|
118
|
+
var accepts = [];
|
|
119
|
+
var returnType = null;
|
|
120
|
+
return this.apiClient.callApi('/logs/certificates/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Callback function to receive the result of the logsCertificatesList operation.
|
|
124
|
+
* @callback module:api/LogsApi~logsCertificatesListCallback
|
|
125
|
+
* @param {String} error Error message, if any.
|
|
126
|
+
* @param {module:model/PaginatedUploadedCertificateList} data The data returned by the service call.
|
|
127
|
+
* @param {String} response The complete HTTP response.
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* 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``.
|
|
132
|
+
* @param {Object} opts Optional parameters
|
|
133
|
+
* @param {String} opts.consumer
|
|
134
|
+
* @param {Date} opts.createdAt
|
|
135
|
+
* @param {module:model/String} opts.eacType Required. Select from available choices.
|
|
136
|
+
* @param {String} opts.id
|
|
137
|
+
* @param {Number} opts.limit Number of results to return per page.
|
|
138
|
+
* @param {String} opts.name
|
|
139
|
+
* @param {Number} opts.offset The initial index from which to return the results.
|
|
140
|
+
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
141
|
+
* @param {String} opts.owner
|
|
142
|
+
* @param {String} opts.producer
|
|
143
|
+
* @param {module:model/String} opts.status Status is set to `started` or `finished` if the file has been processed. Default `unstarted`.
|
|
144
|
+
* @param {module:api/LogsApi~logsCertificatesListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
145
|
+
* data is of type: {@link module:model/PaginatedUploadedCertificateList}
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
}, {
|
|
149
|
+
key: "logsCertificatesList",
|
|
150
|
+
value: function logsCertificatesList(opts, callback) {
|
|
151
|
+
opts = opts || {};
|
|
152
|
+
var postBody = null;
|
|
153
|
+
var pathParams = {};
|
|
154
|
+
var queryParams = {
|
|
155
|
+
'consumer': opts['consumer'],
|
|
156
|
+
'created_at': opts['createdAt'],
|
|
157
|
+
'eac_type': opts['eacType'],
|
|
158
|
+
'id': opts['id'],
|
|
159
|
+
'limit': opts['limit'],
|
|
160
|
+
'name': opts['name'],
|
|
161
|
+
'offset': opts['offset'],
|
|
162
|
+
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
163
|
+
'owner': opts['owner'],
|
|
164
|
+
'producer': opts['producer'],
|
|
165
|
+
'status': opts['status']
|
|
166
|
+
};
|
|
167
|
+
var headerParams = {};
|
|
168
|
+
var formParams = {};
|
|
169
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
170
|
+
var contentTypes = [];
|
|
171
|
+
var accepts = ['application/json'];
|
|
172
|
+
var returnType = _PaginatedUploadedCertificateList["default"];
|
|
173
|
+
return this.apiClient.callApi('/logs/certificates/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Callback function to receive the result of the logsCertificatesRetrieve operation.
|
|
177
|
+
* @callback module:api/LogsApi~logsCertificatesRetrieveCallback
|
|
178
|
+
* @param {String} error Error message, if any.
|
|
179
|
+
* @param {module:model/UploadedCertificate} data The data returned by the service call.
|
|
180
|
+
* @param {String} response The complete HTTP response.
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* 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``.
|
|
185
|
+
* @param {String} id A UUID string identifying this uploaded certificate file.
|
|
186
|
+
* @param {module:api/LogsApi~logsCertificatesRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
|
187
|
+
* data is of type: {@link module:model/UploadedCertificate}
|
|
188
|
+
*/
|
|
189
|
+
|
|
190
|
+
}, {
|
|
191
|
+
key: "logsCertificatesRetrieve",
|
|
192
|
+
value: function logsCertificatesRetrieve(id, callback) {
|
|
193
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
194
|
+
|
|
195
|
+
if (id === undefined || id === null) {
|
|
196
|
+
throw new Error("Missing the required parameter 'id' when calling logsCertificatesRetrieve");
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
var pathParams = {
|
|
200
|
+
'id': id
|
|
201
|
+
};
|
|
202
|
+
var queryParams = {};
|
|
203
|
+
var headerParams = {};
|
|
204
|
+
var formParams = {};
|
|
205
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
206
|
+
var contentTypes = [];
|
|
207
|
+
var accepts = ['application/json'];
|
|
208
|
+
var returnType = _UploadedCertificate["default"];
|
|
209
|
+
return this.apiClient.callApi('/logs/certificates/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Callback function to receive the result of the logsProductionEpiasDestroy operation.
|
|
213
|
+
* @callback module:api/LogsApi~logsProductionEpiasDestroyCallback
|
|
214
|
+
* @param {String} error Error message, if any.
|
|
215
|
+
* @param data This operation does not return a value.
|
|
216
|
+
* @param {String} response The complete HTTP response.
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* 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``.
|
|
221
|
+
* @param {String} id A UUID string identifying this production data from epias request.
|
|
222
|
+
* @param {module:api/LogsApi~logsProductionEpiasDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
}, {
|
|
64
226
|
key: "logsProductionEpiasDestroy",
|
|
65
227
|
value: function logsProductionEpiasDestroy(id, callback) {
|
|
66
228
|
var postBody = null; // verify the required parameter 'id' is set
|
|
@@ -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.1
|
|
21
|
+
* @version 1.2.1
|
|
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.1
|
|
27
|
+
* @version 1.2.1
|
|
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
|
@@ -105,6 +105,12 @@ Object.defineProperty(exports, "ContentTypeEnum", {
|
|
|
105
105
|
return _ContentTypeEnum["default"];
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
|
+
Object.defineProperty(exports, "EacTypeEnum", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _EacTypeEnum["default"];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
108
114
|
Object.defineProperty(exports, "EmissionFactor", {
|
|
109
115
|
enumerable: true,
|
|
110
116
|
get: function get() {
|
|
@@ -345,6 +351,12 @@ Object.defineProperty(exports, "PaginatedUnprocessedRowList", {
|
|
|
345
351
|
return _PaginatedUnprocessedRowList["default"];
|
|
346
352
|
}
|
|
347
353
|
});
|
|
354
|
+
Object.defineProperty(exports, "PaginatedUploadedCertificateList", {
|
|
355
|
+
enumerable: true,
|
|
356
|
+
get: function get() {
|
|
357
|
+
return _PaginatedUploadedCertificateList["default"];
|
|
358
|
+
}
|
|
359
|
+
});
|
|
348
360
|
Object.defineProperty(exports, "PaginatedUploadedFileList", {
|
|
349
361
|
enumerable: true,
|
|
350
362
|
get: function get() {
|
|
@@ -567,6 +579,12 @@ Object.defineProperty(exports, "UnprocessedRow", {
|
|
|
567
579
|
return _UnprocessedRow["default"];
|
|
568
580
|
}
|
|
569
581
|
});
|
|
582
|
+
Object.defineProperty(exports, "UploadedCertificate", {
|
|
583
|
+
enumerable: true,
|
|
584
|
+
get: function get() {
|
|
585
|
+
return _UploadedCertificate["default"];
|
|
586
|
+
}
|
|
587
|
+
});
|
|
570
588
|
Object.defineProperty(exports, "UploadedFile", {
|
|
571
589
|
enumerable: true,
|
|
572
590
|
get: function get() {
|
|
@@ -624,6 +642,8 @@ var _ConsumptionSiteMany = _interopRequireDefault(require("./model/ConsumptionSi
|
|
|
624
642
|
|
|
625
643
|
var _ContentTypeEnum = _interopRequireDefault(require("./model/ContentTypeEnum"));
|
|
626
644
|
|
|
645
|
+
var _EacTypeEnum = _interopRequireDefault(require("./model/EacTypeEnum"));
|
|
646
|
+
|
|
627
647
|
var _EmissionFactor = _interopRequireDefault(require("./model/EmissionFactor"));
|
|
628
648
|
|
|
629
649
|
var _EnergySourceEnum = _interopRequireDefault(require("./model/EnergySourceEnum"));
|
|
@@ -686,6 +706,8 @@ var _PaginatedSmartContractList = _interopRequireDefault(require("./model/Pagina
|
|
|
686
706
|
|
|
687
707
|
var _PaginatedUnprocessedRowList = _interopRequireDefault(require("./model/PaginatedUnprocessedRowList"));
|
|
688
708
|
|
|
709
|
+
var _PaginatedUploadedCertificateList = _interopRequireDefault(require("./model/PaginatedUploadedCertificateList"));
|
|
710
|
+
|
|
689
711
|
var _PaginatedUploadedFileList = _interopRequireDefault(require("./model/PaginatedUploadedFileList"));
|
|
690
712
|
|
|
691
713
|
var _PaginatedUserList = _interopRequireDefault(require("./model/PaginatedUserList"));
|
|
@@ -756,6 +778,8 @@ var _TypeEnum = _interopRequireDefault(require("./model/TypeEnum"));
|
|
|
756
778
|
|
|
757
779
|
var _UnprocessedRow = _interopRequireDefault(require("./model/UnprocessedRow"));
|
|
758
780
|
|
|
781
|
+
var _UploadedCertificate = _interopRequireDefault(require("./model/UploadedCertificate"));
|
|
782
|
+
|
|
759
783
|
var _UploadedFile = _interopRequireDefault(require("./model/UploadedFile"));
|
|
760
784
|
|
|
761
785
|
var _User = _interopRequireDefault(require("./model/User"));
|
|
@@ -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.1
|
|
25
|
+
* @version 1.2.1
|
|
26
26
|
*/
|
|
27
27
|
var BlockchainTransaction = /*#__PURE__*/function () {
|
|
28
28
|
/**
|
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.1
|
|
21
|
+
* @version 1.2.1
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataFileList = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionDataFromRetailerRequest model module.
|
|
20
20
|
* @module model/ConsumptionDataFromRetailerRequest
|
|
21
|
-
* @version 1.1
|
|
21
|
+
* @version 1.2.1
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataFromRetailerRequest = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionDataFromRetailerResponse model module.
|
|
20
20
|
* @module model/ConsumptionDataFromRetailerResponse
|
|
21
|
-
* @version 1.1
|
|
21
|
+
* @version 1.2.1
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataFromRetailerResponse = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionDataPointCreate model module.
|
|
22
22
|
* @module model/ConsumptionDataPointCreate
|
|
23
|
-
* @version 1.1
|
|
23
|
+
* @version 1.2.1
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionDataPointCreate = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -30,7 +30,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
30
30
|
/**
|
|
31
31
|
* The ConsumptionDataPointListOrDetail model module.
|
|
32
32
|
* @module model/ConsumptionDataPointListOrDetail
|
|
33
|
-
* @version 1.1
|
|
33
|
+
* @version 1.2.1
|
|
34
34
|
*/
|
|
35
35
|
var ConsumptionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionDataPointUpdate model module.
|
|
22
22
|
* @module model/ConsumptionDataPointUpdate
|
|
23
|
-
* @version 1.1
|
|
23
|
+
* @version 1.2.1
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionDataPointUpdate = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionSite model module.
|
|
22
22
|
* @module model/ConsumptionSite
|
|
23
|
-
* @version 1.1
|
|
23
|
+
* @version 1.2.1
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionSite = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionSiteCreate model module.
|
|
22
22
|
* @module model/ConsumptionSiteCreate
|
|
23
|
-
* @version 1.1
|
|
23
|
+
* @version 1.2.1
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionSiteCreate = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionSiteFileUpload model module.
|
|
20
20
|
* @module model/ConsumptionSiteFileUpload
|
|
21
|
-
* @version 1.1
|
|
21
|
+
* @version 1.2.1
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionSiteFileUpload = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionSiteFromRetailer model module.
|
|
20
20
|
* @module model/ConsumptionSiteFromRetailer
|
|
21
|
-
* @version 1.1
|
|
21
|
+
* @version 1.2.1
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionSiteFromRetailer = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -24,7 +24,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
24
24
|
/**
|
|
25
25
|
* The ConsumptionSiteListOrDetail model module.
|
|
26
26
|
* @module model/ConsumptionSiteListOrDetail
|
|
27
|
-
* @version 1.1
|
|
27
|
+
* @version 1.2.1
|
|
28
28
|
*/
|
|
29
29
|
var ConsumptionSiteListOrDetail = /*#__PURE__*/function () {
|
|
30
30
|
/**
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionSiteMany model module.
|
|
22
22
|
* @module model/ConsumptionSiteMany
|
|
23
|
-
* @version 1.1
|
|
23
|
+
* @version 1.2.1
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionSiteMany = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -33,6 +33,8 @@ var ContentTypeEnum = /*#__PURE__*/function () {
|
|
|
33
33
|
_defineProperty(this, "Production sites", "Production sites");
|
|
34
34
|
|
|
35
35
|
_defineProperty(this, "Production data points", "Production data points");
|
|
36
|
+
|
|
37
|
+
_defineProperty(this, "Energy attribute certificates", "Energy attribute certificates");
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
_createClass(ContentTypeEnum, null, [{
|