green_link_api 1.1.3 → 1.2.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 +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/Certificates.js +176 -0
- 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/PaginatedCertificatesList.js +104 -0
- 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/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/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.
|
|
8
|
-
- Package version: 1.
|
|
7
|
+
- API version: 1.2.0
|
|
8
|
+
- Package version: 1.2.0
|
|
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}/ |
|
|
@@ -257,6 +261,7 @@ Class | Method | HTTP request | Description
|
|
|
257
261
|
## Documentation for Models
|
|
258
262
|
|
|
259
263
|
- [GreenLinkApi.BlockchainTransaction](docs/BlockchainTransaction.md)
|
|
264
|
+
- [GreenLinkApi.Certificates](docs/Certificates.md)
|
|
260
265
|
- [GreenLinkApi.Consumer](docs/Consumer.md)
|
|
261
266
|
- [GreenLinkApi.ConsumptionDataFileList](docs/ConsumptionDataFileList.md)
|
|
262
267
|
- [GreenLinkApi.ConsumptionDataFromRetailerRequest](docs/ConsumptionDataFromRetailerRequest.md)
|
|
@@ -271,6 +276,7 @@ Class | Method | HTTP request | Description
|
|
|
271
276
|
- [GreenLinkApi.ConsumptionSiteListOrDetail](docs/ConsumptionSiteListOrDetail.md)
|
|
272
277
|
- [GreenLinkApi.ConsumptionSiteMany](docs/ConsumptionSiteMany.md)
|
|
273
278
|
- [GreenLinkApi.ContentTypeEnum](docs/ContentTypeEnum.md)
|
|
279
|
+
- [GreenLinkApi.EacTypeEnum](docs/EacTypeEnum.md)
|
|
274
280
|
- [GreenLinkApi.EmissionFactor](docs/EmissionFactor.md)
|
|
275
281
|
- [GreenLinkApi.EnergySourceEnum](docs/EnergySourceEnum.md)
|
|
276
282
|
- [GreenLinkApi.EnergySourcePreference](docs/EnergySourcePreference.md)
|
|
@@ -285,6 +291,7 @@ Class | Method | HTTP request | Description
|
|
|
285
291
|
- [GreenLinkApi.MatchingConsumerRequest](docs/MatchingConsumerRequest.md)
|
|
286
292
|
- [GreenLinkApi.MatchingSiteRequest](docs/MatchingSiteRequest.md)
|
|
287
293
|
- [GreenLinkApi.OrganizationTypeEnum](docs/OrganizationTypeEnum.md)
|
|
294
|
+
- [GreenLinkApi.PaginatedCertificatesList](docs/PaginatedCertificatesList.md)
|
|
288
295
|
- [GreenLinkApi.PaginatedConsumerList](docs/PaginatedConsumerList.md)
|
|
289
296
|
- [GreenLinkApi.PaginatedConsumptionDataPointListOrDetailList](docs/PaginatedConsumptionDataPointListOrDetailList.md)
|
|
290
297
|
- [GreenLinkApi.PaginatedConsumptionSiteListOrDetailList](docs/PaginatedConsumptionSiteListOrDetailList.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.2.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.2.0/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.
|
|
21
|
+
* @version 1.2.0
|
|
22
22
|
*/
|
|
23
23
|
var LicensedProductionSitesOnEpiasApi = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
package/dist/api/LocationsApi.js
CHANGED
package/dist/api/LogsApi.js
CHANGED
|
@@ -7,6 +7,10 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
9
|
|
|
10
|
+
var _Certificates = _interopRequireDefault(require("../model/Certificates"));
|
|
11
|
+
|
|
12
|
+
var _PaginatedCertificatesList = _interopRequireDefault(require("../model/PaginatedCertificatesList"));
|
|
13
|
+
|
|
10
14
|
var _PaginatedProductionDataFromEpiasRequestList = _interopRequireDefault(require("../model/PaginatedProductionDataFromEpiasRequestList"));
|
|
11
15
|
|
|
12
16
|
var _PaginatedUnprocessedRowList = _interopRequireDefault(require("../model/PaginatedUnprocessedRowList"));
|
|
@@ -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.
|
|
37
|
+
* @version 1.2.0
|
|
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/Certificates} 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/Certificates} certificates
|
|
63
|
+
* @param {module:api/LogsApi~logsCertificatesCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
64
|
+
* data is of type: {@link module:model/Certificates}
|
|
60
65
|
*/
|
|
61
66
|
|
|
62
67
|
|
|
63
68
|
_createClass(LogsApi, [{
|
|
69
|
+
key: "logsCertificatesCreate",
|
|
70
|
+
value: function logsCertificatesCreate(certificates, callback) {
|
|
71
|
+
var postBody = certificates; // verify the required parameter 'certificates' is set
|
|
72
|
+
|
|
73
|
+
if (certificates === undefined || certificates === null) {
|
|
74
|
+
throw new Error("Missing the required parameter 'certificates' 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 = _Certificates["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 certificates 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/PaginatedCertificatesList} 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/PaginatedCertificatesList}
|
|
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 = _PaginatedCertificatesList["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/Certificates} 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 certificates 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/Certificates}
|
|
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 = _Certificates["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.
|
|
21
|
+
* @version 1.2.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.2.0
|
|
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
|
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "BlockchainTransaction", {
|
|
|
21
21
|
return _BlockchainTransaction["default"];
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "Certificates", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _Certificates["default"];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "Consumer", {
|
|
25
31
|
enumerable: true,
|
|
26
32
|
get: function get() {
|
|
@@ -105,6 +111,12 @@ Object.defineProperty(exports, "ContentTypeEnum", {
|
|
|
105
111
|
return _ContentTypeEnum["default"];
|
|
106
112
|
}
|
|
107
113
|
});
|
|
114
|
+
Object.defineProperty(exports, "EacTypeEnum", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function get() {
|
|
117
|
+
return _EacTypeEnum["default"];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
108
120
|
Object.defineProperty(exports, "EmissionFactor", {
|
|
109
121
|
enumerable: true,
|
|
110
122
|
get: function get() {
|
|
@@ -243,6 +255,12 @@ Object.defineProperty(exports, "OrganizationsApi", {
|
|
|
243
255
|
return _OrganizationsApi["default"];
|
|
244
256
|
}
|
|
245
257
|
});
|
|
258
|
+
Object.defineProperty(exports, "PaginatedCertificatesList", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function get() {
|
|
261
|
+
return _PaginatedCertificatesList["default"];
|
|
262
|
+
}
|
|
263
|
+
});
|
|
246
264
|
Object.defineProperty(exports, "PaginatedConsumerList", {
|
|
247
265
|
enumerable: true,
|
|
248
266
|
get: function get() {
|
|
@@ -596,6 +614,8 @@ var _ApiClient = _interopRequireDefault(require("./ApiClient"));
|
|
|
596
614
|
|
|
597
615
|
var _BlockchainTransaction = _interopRequireDefault(require("./model/BlockchainTransaction"));
|
|
598
616
|
|
|
617
|
+
var _Certificates = _interopRequireDefault(require("./model/Certificates"));
|
|
618
|
+
|
|
599
619
|
var _Consumer = _interopRequireDefault(require("./model/Consumer"));
|
|
600
620
|
|
|
601
621
|
var _ConsumptionDataFileList = _interopRequireDefault(require("./model/ConsumptionDataFileList"));
|
|
@@ -624,6 +644,8 @@ var _ConsumptionSiteMany = _interopRequireDefault(require("./model/ConsumptionSi
|
|
|
624
644
|
|
|
625
645
|
var _ContentTypeEnum = _interopRequireDefault(require("./model/ContentTypeEnum"));
|
|
626
646
|
|
|
647
|
+
var _EacTypeEnum = _interopRequireDefault(require("./model/EacTypeEnum"));
|
|
648
|
+
|
|
627
649
|
var _EmissionFactor = _interopRequireDefault(require("./model/EmissionFactor"));
|
|
628
650
|
|
|
629
651
|
var _EnergySourceEnum = _interopRequireDefault(require("./model/EnergySourceEnum"));
|
|
@@ -652,6 +674,8 @@ var _MatchingSiteRequest = _interopRequireDefault(require("./model/MatchingSiteR
|
|
|
652
674
|
|
|
653
675
|
var _OrganizationTypeEnum = _interopRequireDefault(require("./model/OrganizationTypeEnum"));
|
|
654
676
|
|
|
677
|
+
var _PaginatedCertificatesList = _interopRequireDefault(require("./model/PaginatedCertificatesList"));
|
|
678
|
+
|
|
655
679
|
var _PaginatedConsumerList = _interopRequireDefault(require("./model/PaginatedConsumerList"));
|
|
656
680
|
|
|
657
681
|
var _PaginatedConsumptionDataPointListOrDetailList = _interopRequireDefault(require("./model/PaginatedConsumptionDataPointListOrDetailList"));
|
|
@@ -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.2.0
|
|
26
26
|
*/
|
|
27
27
|
var BlockchainTransaction = /*#__PURE__*/function () {
|
|
28
28
|
/**
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
+
|
|
10
|
+
var _EacTypeEnum = _interopRequireDefault(require("./EacTypeEnum"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
|
|
16
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
|
+
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The Certificates model module.
|
|
22
|
+
* @module model/Certificates
|
|
23
|
+
* @version 1.2.0
|
|
24
|
+
*/
|
|
25
|
+
var Certificates = /*#__PURE__*/function () {
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new <code>Certificates</code>.
|
|
28
|
+
* @alias module:model/Certificates
|
|
29
|
+
* @param name {String} Required. Max length is 200.
|
|
30
|
+
* @param upload {String}
|
|
31
|
+
* @param eacType {module:model/EacTypeEnum} Required. Select from available choices.
|
|
32
|
+
* @param consumer {String}
|
|
33
|
+
* @param producer {String}
|
|
34
|
+
* @param periodStart {Date}
|
|
35
|
+
* @param periodEnd {Date}
|
|
36
|
+
*/
|
|
37
|
+
function Certificates(name, upload, eacType, consumer, producer, periodStart, periodEnd) {
|
|
38
|
+
_classCallCheck(this, Certificates);
|
|
39
|
+
|
|
40
|
+
Certificates.initialize(this, name, upload, eacType, consumer, producer, periodStart, periodEnd);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the fields of this object.
|
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
+
* Only for internal use.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
_createClass(Certificates, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj, name, upload, eacType, consumer, producer, periodStart, periodEnd) {
|
|
52
|
+
obj['name'] = name;
|
|
53
|
+
obj['upload'] = upload;
|
|
54
|
+
obj['eac_type'] = eacType;
|
|
55
|
+
obj['consumer'] = consumer;
|
|
56
|
+
obj['producer'] = producer;
|
|
57
|
+
obj['period_start'] = periodStart;
|
|
58
|
+
obj['period_end'] = periodEnd;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Constructs a <code>Certificates</code> from a plain JavaScript object, optionally creating a new instance.
|
|
62
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
63
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
64
|
+
* @param {module:model/Certificates} obj Optional instance to populate.
|
|
65
|
+
* @return {module:model/Certificates} The populated <code>Certificates</code> instance.
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
}, {
|
|
69
|
+
key: "constructFromObject",
|
|
70
|
+
value: function constructFromObject(data, obj) {
|
|
71
|
+
if (data) {
|
|
72
|
+
obj = obj || new Certificates();
|
|
73
|
+
|
|
74
|
+
if (data.hasOwnProperty('id')) {
|
|
75
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (data.hasOwnProperty('name')) {
|
|
79
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (data.hasOwnProperty('upload')) {
|
|
83
|
+
obj['upload'] = _ApiClient["default"].convertToType(data['upload'], 'String');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (data.hasOwnProperty('content_type')) {
|
|
87
|
+
obj['content_type'] = _ApiClient["default"].convertToType(data['content_type'], 'String');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (data.hasOwnProperty('eac_type')) {
|
|
91
|
+
obj['eac_type'] = _ApiClient["default"].convertToType(data['eac_type'], _EacTypeEnum["default"]);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (data.hasOwnProperty('consumer')) {
|
|
95
|
+
obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (data.hasOwnProperty('producer')) {
|
|
99
|
+
obj['producer'] = _ApiClient["default"].convertToType(data['producer'], 'String');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (data.hasOwnProperty('period_start')) {
|
|
103
|
+
obj['period_start'] = _ApiClient["default"].convertToType(data['period_start'], 'Date');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (data.hasOwnProperty('period_end')) {
|
|
107
|
+
obj['period_end'] = _ApiClient["default"].convertToType(data['period_end'], 'Date');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (data.hasOwnProperty('created_at')) {
|
|
111
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return obj;
|
|
116
|
+
}
|
|
117
|
+
}]);
|
|
118
|
+
|
|
119
|
+
return Certificates;
|
|
120
|
+
}();
|
|
121
|
+
/**
|
|
122
|
+
* @member {String} id
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
Certificates.prototype['id'] = undefined;
|
|
127
|
+
/**
|
|
128
|
+
* Required. Max length is 200.
|
|
129
|
+
* @member {String} name
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
Certificates.prototype['name'] = undefined;
|
|
133
|
+
/**
|
|
134
|
+
* @member {String} upload
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
Certificates.prototype['upload'] = undefined;
|
|
138
|
+
/**
|
|
139
|
+
* @member {String} content_type
|
|
140
|
+
* @default 'Energy attribute certificates'
|
|
141
|
+
*/
|
|
142
|
+
|
|
143
|
+
Certificates.prototype['content_type'] = 'Energy attribute certificates';
|
|
144
|
+
/**
|
|
145
|
+
* Required. Select from available choices.
|
|
146
|
+
* @member {module:model/EacTypeEnum} eac_type
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
Certificates.prototype['eac_type'] = undefined;
|
|
150
|
+
/**
|
|
151
|
+
* @member {String} consumer
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
Certificates.prototype['consumer'] = undefined;
|
|
155
|
+
/**
|
|
156
|
+
* @member {String} producer
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
Certificates.prototype['producer'] = undefined;
|
|
160
|
+
/**
|
|
161
|
+
* @member {Date} period_start
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
Certificates.prototype['period_start'] = undefined;
|
|
165
|
+
/**
|
|
166
|
+
* @member {Date} period_end
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
Certificates.prototype['period_end'] = undefined;
|
|
170
|
+
/**
|
|
171
|
+
* @member {Date} created_at
|
|
172
|
+
*/
|
|
173
|
+
|
|
174
|
+
Certificates.prototype['created_at'] = undefined;
|
|
175
|
+
var _default = Certificates;
|
|
176
|
+
exports["default"] = _default;
|
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.2.0
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataFileList = /*#__PURE__*/function () {
|
|
24
24
|
/**
|