green_link_api 0.51.3 → 0.57.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 +31 -6
- package/dist/ApiClient.js +2 -2
- package/dist/api/BlockchainApi.js +283 -0
- package/dist/api/EnergyAssetsApi.js +11 -9
- package/dist/api/EnergyDataApi.js +110 -11
- package/dist/api/HealthCheckApi.js +1 -1
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +1 -1
- package/dist/api/LocationsApi.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/UploadedfilesApi.js +226 -0
- package/dist/api/UsersApi.js +1 -1
- package/dist/index.js +120 -0
- package/dist/model/BlockchainTransaction.js +172 -0
- package/dist/model/Consumer.js +1 -1
- package/dist/model/ConsumptionDataFileList.js +1 -1
- package/dist/model/ConsumptionDataFromRetailer.js +1 -1
- package/dist/model/ConsumptionDataPointCreate.js +11 -11
- package/dist/model/ConsumptionDataPointListOrDetail.js +20 -13
- package/dist/model/ConsumptionDataPointUpdate.js +11 -11
- package/dist/model/ConsumptionSite.js +1 -1
- package/dist/model/ConsumptionSiteCreate.js +195 -0
- 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 +54 -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 +12 -13
- 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 +104 -0
- 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 +104 -0
- package/dist/model/PaginatedUnprocessedRowList.js +104 -0
- package/dist/model/PaginatedUploadedFileList.js +104 -0
- package/dist/model/PaginatedUserList.js +1 -1
- package/dist/model/PatchedConsumer.js +1 -1
- package/dist/model/PatchedConsumptionDataPointUpdate.js +11 -11
- 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 +12 -12
- package/dist/model/PatchedProductionSiteUpdate.js +2 -1
- package/dist/model/PatchedRetailer.js +1 -1
- package/dist/model/PatchedSmartContract.js +132 -0
- package/dist/model/PatchedUser.js +1 -1
- package/dist/model/PatchedUserDetail.js +1 -1
- package/dist/model/PriorityEnum.js +6 -0
- package/dist/model/Producer.js +1 -1
- package/dist/model/ProductionDataFileList.js +1 -1
- package/dist/model/ProductionDataFromEpiasRequest.js +167 -0
- package/dist/model/ProductionDataPointCreate.js +12 -12
- package/dist/model/ProductionDataPointListOrDetail.js +21 -14
- package/dist/model/ProductionDataPointUpdate.js +12 -12
- package/dist/model/ProductionSite.js +5 -6
- package/dist/model/ProductionSiteFileUpload.js +1 -1
- package/dist/model/ProductionSiteListOrDetail.js +1 -1
- package/dist/model/ProductionSiteUpdate.js +5 -6
- package/dist/model/Register.js +1 -1
- package/dist/model/Retailer.js +1 -1
- package/dist/model/SmartContract.js +137 -0
- package/dist/model/Token.js +1 -1
- package/dist/model/TypeEnum.js +52 -0
- package/dist/model/UnprocessedRow.js +140 -0
- package/dist/model/UploadedFile.js +166 -0
- package/dist/model/User.js +1 -1
- package/dist/model/UserDetail.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# green_link_api
|
|
2
2
|
|
|
3
3
|
GreenLinkApi - JavaScript client for green_link_api
|
|
4
|
-
GreenLink API documentation with interactive tools for testing API endpoints
|
|
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: 0.
|
|
8
|
-
- Package version: 0.
|
|
7
|
+
- API version: 0.57.0
|
|
8
|
+
- Package version: 0.57.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
@@ -110,8 +110,8 @@ tokenAuth.apiKey = "YOUR API KEY"
|
|
|
110
110
|
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
|
111
111
|
//tokenAuth.apiKeyPrefix['Authorization'] = "Token"
|
|
112
112
|
|
|
113
|
-
var api = new GreenLinkApi.
|
|
114
|
-
var
|
|
113
|
+
var api = new GreenLinkApi.BlockchainApi()
|
|
114
|
+
var smartContract = new GreenLinkApi.SmartContract(); // {SmartContract}
|
|
115
115
|
var callback = function(error, data, response) {
|
|
116
116
|
if (error) {
|
|
117
117
|
console.error(error);
|
|
@@ -119,7 +119,7 @@ var callback = function(error, data, response) {
|
|
|
119
119
|
console.log('API called successfully. Returned data: ' + data);
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
-
api.
|
|
122
|
+
api.blockchainSmartContractsCreate(smartContract, callback);
|
|
123
123
|
|
|
124
124
|
```
|
|
125
125
|
|
|
@@ -129,6 +129,12 @@ All URIs are relative to *http://localhost*
|
|
|
129
129
|
|
|
130
130
|
Class | Method | HTTP request | Description
|
|
131
131
|
------------ | ------------- | ------------- | -------------
|
|
132
|
+
*GreenLinkApi.BlockchainApi* | [**blockchainSmartContractsCreate**](docs/BlockchainApi.md#blockchainSmartContractsCreate) | **POST** /blockchain/smart-contracts/ |
|
|
133
|
+
*GreenLinkApi.BlockchainApi* | [**blockchainSmartContractsDestroy**](docs/BlockchainApi.md#blockchainSmartContractsDestroy) | **DELETE** /blockchain/smart-contracts/{id}/ |
|
|
134
|
+
*GreenLinkApi.BlockchainApi* | [**blockchainSmartContractsList**](docs/BlockchainApi.md#blockchainSmartContractsList) | **GET** /blockchain/smart-contracts/ |
|
|
135
|
+
*GreenLinkApi.BlockchainApi* | [**blockchainSmartContractsPartialUpdate**](docs/BlockchainApi.md#blockchainSmartContractsPartialUpdate) | **PATCH** /blockchain/smart-contracts/{id}/ |
|
|
136
|
+
*GreenLinkApi.BlockchainApi* | [**blockchainSmartContractsRetrieve**](docs/BlockchainApi.md#blockchainSmartContractsRetrieve) | **GET** /blockchain/smart-contracts/{id}/ |
|
|
137
|
+
*GreenLinkApi.BlockchainApi* | [**blockchainSmartContractsUpdate**](docs/BlockchainApi.md#blockchainSmartContractsUpdate) | **PUT** /blockchain/smart-contracts/{id}/ |
|
|
132
138
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesCreate) | **POST** /energy-assets/consumption-sites/ |
|
|
133
139
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesDestroy**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesDestroy) | **DELETE** /energy-assets/consumption-sites/{id}/ |
|
|
134
140
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesImportDataCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesImportDataCreate) | **POST** /energy-assets/consumption-sites/import-data/ |
|
|
@@ -159,6 +165,8 @@ Class | Method | HTTP request | Description
|
|
|
159
165
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorPartialUpdate**](docs/EnergyDataApi.md#energyDataEmissionFactorPartialUpdate) | **PATCH** /energy-data/emission-factor/{id}/ |
|
|
160
166
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorRetrieve**](docs/EnergyDataApi.md#energyDataEmissionFactorRetrieve) | **GET** /energy-data/emission-factor/{id}/ |
|
|
161
167
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorUpdate**](docs/EnergyDataApi.md#energyDataEmissionFactorUpdate) | **PUT** /energy-data/emission-factor/{id}/ |
|
|
168
|
+
*GreenLinkApi.EnergyDataApi* | [**energyDataEpiasRequestList**](docs/EnergyDataApi.md#energyDataEpiasRequestList) | **GET** /energy-data/epias-request/ |
|
|
169
|
+
*GreenLinkApi.EnergyDataApi* | [**energyDataEpiasRequestRetrieve**](docs/EnergyDataApi.md#energyDataEpiasRequestRetrieve) | **GET** /energy-data/epias-request/{id}/ |
|
|
162
170
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchRequestList**](docs/EnergyDataApi.md#energyDataMatchRequestList) | **GET** /energy-data/match-request/ |
|
|
163
171
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchRequestRetrieve**](docs/EnergyDataApi.md#energyDataMatchRequestRetrieve) | **GET** /energy-data/match-request/{id}/ |
|
|
164
172
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchedEnergyDataCreate**](docs/EnergyDataApi.md#energyDataMatchedEnergyDataCreate) | **POST** /energy-data/matched-energy-data/ |
|
|
@@ -223,6 +231,10 @@ Class | Method | HTTP request | Description
|
|
|
223
231
|
*GreenLinkApi.OrganizationsApi* | [**organizationsRetailersUpdate**](docs/OrganizationsApi.md#organizationsRetailersUpdate) | **PUT** /organizations/retailers/{id}/ |
|
|
224
232
|
*GreenLinkApi.SchemaApi* | [**schemaRetrieve**](docs/SchemaApi.md#schemaRetrieve) | **GET** /schema/ |
|
|
225
233
|
*GreenLinkApi.SentryDebugApi* | [**sentryDebugRetrieve**](docs/SentryDebugApi.md#sentryDebugRetrieve) | **GET** /sentry-debug/ |
|
|
234
|
+
*GreenLinkApi.UploadedfilesApi* | [**uploadedfilesList**](docs/UploadedfilesApi.md#uploadedfilesList) | **GET** /uploadedfiles/ |
|
|
235
|
+
*GreenLinkApi.UploadedfilesApi* | [**uploadedfilesRetrieve**](docs/UploadedfilesApi.md#uploadedfilesRetrieve) | **GET** /uploadedfiles/{id}/ |
|
|
236
|
+
*GreenLinkApi.UploadedfilesApi* | [**uploadedfilesUnprocessedRowList**](docs/UploadedfilesApi.md#uploadedfilesUnprocessedRowList) | **GET** /uploadedfiles/unprocessed-row/ |
|
|
237
|
+
*GreenLinkApi.UploadedfilesApi* | [**uploadedfilesUnprocessedRowRetrieve**](docs/UploadedfilesApi.md#uploadedfilesUnprocessedRowRetrieve) | **GET** /uploadedfiles/unprocessed-row/{id}/ |
|
|
226
238
|
*GreenLinkApi.UsersApi* | [**usersDestroy**](docs/UsersApi.md#usersDestroy) | **DELETE** /users/{id}/ |
|
|
227
239
|
*GreenLinkApi.UsersApi* | [**usersList**](docs/UsersApi.md#usersList) | **GET** /users/ |
|
|
228
240
|
*GreenLinkApi.UsersApi* | [**usersLoginCreate**](docs/UsersApi.md#usersLoginCreate) | **POST** /users/login/ |
|
|
@@ -237,6 +249,7 @@ Class | Method | HTTP request | Description
|
|
|
237
249
|
|
|
238
250
|
## Documentation for Models
|
|
239
251
|
|
|
252
|
+
- [GreenLinkApi.BlockchainTransaction](docs/BlockchainTransaction.md)
|
|
240
253
|
- [GreenLinkApi.Consumer](docs/Consumer.md)
|
|
241
254
|
- [GreenLinkApi.ConsumptionDataFileList](docs/ConsumptionDataFileList.md)
|
|
242
255
|
- [GreenLinkApi.ConsumptionDataFromRetailer](docs/ConsumptionDataFromRetailer.md)
|
|
@@ -244,10 +257,12 @@ Class | Method | HTTP request | Description
|
|
|
244
257
|
- [GreenLinkApi.ConsumptionDataPointListOrDetail](docs/ConsumptionDataPointListOrDetail.md)
|
|
245
258
|
- [GreenLinkApi.ConsumptionDataPointUpdate](docs/ConsumptionDataPointUpdate.md)
|
|
246
259
|
- [GreenLinkApi.ConsumptionSite](docs/ConsumptionSite.md)
|
|
260
|
+
- [GreenLinkApi.ConsumptionSiteCreate](docs/ConsumptionSiteCreate.md)
|
|
247
261
|
- [GreenLinkApi.ConsumptionSiteFileUpload](docs/ConsumptionSiteFileUpload.md)
|
|
248
262
|
- [GreenLinkApi.ConsumptionSiteFromRetailer](docs/ConsumptionSiteFromRetailer.md)
|
|
249
263
|
- [GreenLinkApi.ConsumptionSiteListOrDetail](docs/ConsumptionSiteListOrDetail.md)
|
|
250
264
|
- [GreenLinkApi.ConsumptionSiteMany](docs/ConsumptionSiteMany.md)
|
|
265
|
+
- [GreenLinkApi.ContentTypeEnum](docs/ContentTypeEnum.md)
|
|
251
266
|
- [GreenLinkApi.EmissionFactor](docs/EmissionFactor.md)
|
|
252
267
|
- [GreenLinkApi.EnergySourceEnum](docs/EnergySourceEnum.md)
|
|
253
268
|
- [GreenLinkApi.EnergySourcePreference](docs/EnergySourcePreference.md)
|
|
@@ -273,9 +288,13 @@ Class | Method | HTTP request | Description
|
|
|
273
288
|
- [GreenLinkApi.PaginatedMatchRequestList](docs/PaginatedMatchRequestList.md)
|
|
274
289
|
- [GreenLinkApi.PaginatedMatchedEnergyDataPointList](docs/PaginatedMatchedEnergyDataPointList.md)
|
|
275
290
|
- [GreenLinkApi.PaginatedProducerList](docs/PaginatedProducerList.md)
|
|
291
|
+
- [GreenLinkApi.PaginatedProductionDataFromEpiasRequestList](docs/PaginatedProductionDataFromEpiasRequestList.md)
|
|
276
292
|
- [GreenLinkApi.PaginatedProductionDataPointListOrDetailList](docs/PaginatedProductionDataPointListOrDetailList.md)
|
|
277
293
|
- [GreenLinkApi.PaginatedProductionSiteListOrDetailList](docs/PaginatedProductionSiteListOrDetailList.md)
|
|
278
294
|
- [GreenLinkApi.PaginatedRetailerList](docs/PaginatedRetailerList.md)
|
|
295
|
+
- [GreenLinkApi.PaginatedSmartContractList](docs/PaginatedSmartContractList.md)
|
|
296
|
+
- [GreenLinkApi.PaginatedUnprocessedRowList](docs/PaginatedUnprocessedRowList.md)
|
|
297
|
+
- [GreenLinkApi.PaginatedUploadedFileList](docs/PaginatedUploadedFileList.md)
|
|
279
298
|
- [GreenLinkApi.PaginatedUserList](docs/PaginatedUserList.md)
|
|
280
299
|
- [GreenLinkApi.PatchedConsumer](docs/PatchedConsumer.md)
|
|
281
300
|
- [GreenLinkApi.PatchedConsumptionDataPointUpdate](docs/PatchedConsumptionDataPointUpdate.md)
|
|
@@ -289,11 +308,13 @@ Class | Method | HTTP request | Description
|
|
|
289
308
|
- [GreenLinkApi.PatchedProductionDataPointUpdate](docs/PatchedProductionDataPointUpdate.md)
|
|
290
309
|
- [GreenLinkApi.PatchedProductionSiteUpdate](docs/PatchedProductionSiteUpdate.md)
|
|
291
310
|
- [GreenLinkApi.PatchedRetailer](docs/PatchedRetailer.md)
|
|
311
|
+
- [GreenLinkApi.PatchedSmartContract](docs/PatchedSmartContract.md)
|
|
292
312
|
- [GreenLinkApi.PatchedUser](docs/PatchedUser.md)
|
|
293
313
|
- [GreenLinkApi.PatchedUserDetail](docs/PatchedUserDetail.md)
|
|
294
314
|
- [GreenLinkApi.PriorityEnum](docs/PriorityEnum.md)
|
|
295
315
|
- [GreenLinkApi.Producer](docs/Producer.md)
|
|
296
316
|
- [GreenLinkApi.ProductionDataFileList](docs/ProductionDataFileList.md)
|
|
317
|
+
- [GreenLinkApi.ProductionDataFromEpiasRequest](docs/ProductionDataFromEpiasRequest.md)
|
|
297
318
|
- [GreenLinkApi.ProductionDataPointCreate](docs/ProductionDataPointCreate.md)
|
|
298
319
|
- [GreenLinkApi.ProductionDataPointListOrDetail](docs/ProductionDataPointListOrDetail.md)
|
|
299
320
|
- [GreenLinkApi.ProductionDataPointUpdate](docs/ProductionDataPointUpdate.md)
|
|
@@ -303,8 +324,12 @@ Class | Method | HTTP request | Description
|
|
|
303
324
|
- [GreenLinkApi.ProductionSiteUpdate](docs/ProductionSiteUpdate.md)
|
|
304
325
|
- [GreenLinkApi.Register](docs/Register.md)
|
|
305
326
|
- [GreenLinkApi.Retailer](docs/Retailer.md)
|
|
327
|
+
- [GreenLinkApi.SmartContract](docs/SmartContract.md)
|
|
306
328
|
- [GreenLinkApi.StatusEnum](docs/StatusEnum.md)
|
|
307
329
|
- [GreenLinkApi.Token](docs/Token.md)
|
|
330
|
+
- [GreenLinkApi.TypeEnum](docs/TypeEnum.md)
|
|
331
|
+
- [GreenLinkApi.UnprocessedRow](docs/UnprocessedRow.md)
|
|
332
|
+
- [GreenLinkApi.UploadedFile](docs/UploadedFile.md)
|
|
308
333
|
- [GreenLinkApi.User](docs/User.md)
|
|
309
334
|
- [GreenLinkApi.UserDetail](docs/UserDetail.md)
|
|
310
335
|
|
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 0.
|
|
24
|
+
* @version 0.57.0
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -76,7 +76,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
78
|
this.defaultHeaders = {
|
|
79
|
-
'User-Agent': 'OpenAPI-Generator/0.
|
|
79
|
+
'User-Agent': 'OpenAPI-Generator/0.57.0/Javascript'
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
82
|
* The default HTTP timeout for all API calls.
|
|
@@ -0,0 +1,283 @@
|
|
|
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 _PaginatedSmartContractList = _interopRequireDefault(require("../model/PaginatedSmartContractList"));
|
|
11
|
+
|
|
12
|
+
var _PatchedSmartContract = _interopRequireDefault(require("../model/PatchedSmartContract"));
|
|
13
|
+
|
|
14
|
+
var _SmartContract = _interopRequireDefault(require("../model/SmartContract"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
+
|
|
20
|
+
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); } }
|
|
21
|
+
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Blockchain service.
|
|
26
|
+
* @module api/BlockchainApi
|
|
27
|
+
* @version 0.57.0
|
|
28
|
+
*/
|
|
29
|
+
var BlockchainApi = /*#__PURE__*/function () {
|
|
30
|
+
/**
|
|
31
|
+
* Constructs a new BlockchainApi.
|
|
32
|
+
* @alias module:api/BlockchainApi
|
|
33
|
+
* @class
|
|
34
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
35
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
36
|
+
*/
|
|
37
|
+
function BlockchainApi(apiClient) {
|
|
38
|
+
_classCallCheck(this, BlockchainApi);
|
|
39
|
+
|
|
40
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Callback function to receive the result of the blockchainSmartContractsCreate operation.
|
|
44
|
+
* @callback module:api/BlockchainApi~blockchainSmartContractsCreateCallback
|
|
45
|
+
* @param {String} error Error message, if any.
|
|
46
|
+
* @param {module:model/SmartContract} data The data returned by the service call.
|
|
47
|
+
* @param {String} response The complete HTTP response.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* **Create a specific smart contract.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Superuser
|
|
52
|
+
* @param {module:model/SmartContract} smartContract
|
|
53
|
+
* @param {module:api/BlockchainApi~blockchainSmartContractsCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
54
|
+
* data is of type: {@link module:model/SmartContract}
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
_createClass(BlockchainApi, [{
|
|
59
|
+
key: "blockchainSmartContractsCreate",
|
|
60
|
+
value: function blockchainSmartContractsCreate(smartContract, callback) {
|
|
61
|
+
var postBody = smartContract; // verify the required parameter 'smartContract' is set
|
|
62
|
+
|
|
63
|
+
if (smartContract === undefined || smartContract === null) {
|
|
64
|
+
throw new Error("Missing the required parameter 'smartContract' when calling blockchainSmartContractsCreate");
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
var pathParams = {};
|
|
68
|
+
var queryParams = {};
|
|
69
|
+
var headerParams = {};
|
|
70
|
+
var formParams = {};
|
|
71
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
72
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
73
|
+
var accepts = ['application/json'];
|
|
74
|
+
var returnType = _SmartContract["default"];
|
|
75
|
+
return this.apiClient.callApi('/blockchain/smart-contracts/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Callback function to receive the result of the blockchainSmartContractsDestroy operation.
|
|
79
|
+
* @callback module:api/BlockchainApi~blockchainSmartContractsDestroyCallback
|
|
80
|
+
* @param {String} error Error message, if any.
|
|
81
|
+
* @param data This operation does not return a value.
|
|
82
|
+
* @param {String} response The complete HTTP response.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* **Delete a specific smart contract.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Superuser
|
|
87
|
+
* @param {String} id A UUID string identifying this smart contract.
|
|
88
|
+
* @param {module:api/BlockchainApi~blockchainSmartContractsDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
}, {
|
|
92
|
+
key: "blockchainSmartContractsDestroy",
|
|
93
|
+
value: function blockchainSmartContractsDestroy(id, callback) {
|
|
94
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
95
|
+
|
|
96
|
+
if (id === undefined || id === null) {
|
|
97
|
+
throw new Error("Missing the required parameter 'id' when calling blockchainSmartContractsDestroy");
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
var pathParams = {
|
|
101
|
+
'id': id
|
|
102
|
+
};
|
|
103
|
+
var queryParams = {};
|
|
104
|
+
var headerParams = {};
|
|
105
|
+
var formParams = {};
|
|
106
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
107
|
+
var contentTypes = [];
|
|
108
|
+
var accepts = [];
|
|
109
|
+
var returnType = null;
|
|
110
|
+
return this.apiClient.callApi('/blockchain/smart-contracts/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Callback function to receive the result of the blockchainSmartContractsList operation.
|
|
114
|
+
* @callback module:api/BlockchainApi~blockchainSmartContractsListCallback
|
|
115
|
+
* @param {String} error Error message, if any.
|
|
116
|
+
* @param {module:model/PaginatedSmartContractList} data The data returned by the service call.
|
|
117
|
+
* @param {String} response The complete HTTP response.
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* **List all smart contracts.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Superuser
|
|
122
|
+
* @param {Object} opts Optional parameters
|
|
123
|
+
* @param {String} opts.blockchainAccountAddress
|
|
124
|
+
* @param {Date} opts.createdAt
|
|
125
|
+
* @param {String} opts.id
|
|
126
|
+
* @param {Boolean} opts.isActive
|
|
127
|
+
* @param {Number} opts.limit Number of results to return per page.
|
|
128
|
+
* @param {String} opts.name
|
|
129
|
+
* @param {Number} opts.offset The initial index from which to return the results.
|
|
130
|
+
* @param {Array.<module:model/String>} opts.orderBy Ordering
|
|
131
|
+
* @param {Date} opts.updatedAt
|
|
132
|
+
* @param {module:api/BlockchainApi~blockchainSmartContractsListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
133
|
+
* data is of type: {@link module:model/PaginatedSmartContractList}
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
}, {
|
|
137
|
+
key: "blockchainSmartContractsList",
|
|
138
|
+
value: function blockchainSmartContractsList(opts, callback) {
|
|
139
|
+
opts = opts || {};
|
|
140
|
+
var postBody = null;
|
|
141
|
+
var pathParams = {};
|
|
142
|
+
var queryParams = {
|
|
143
|
+
'blockchain_account_address': opts['blockchainAccountAddress'],
|
|
144
|
+
'created_at': opts['createdAt'],
|
|
145
|
+
'id': opts['id'],
|
|
146
|
+
'is_active': opts['isActive'],
|
|
147
|
+
'limit': opts['limit'],
|
|
148
|
+
'name': opts['name'],
|
|
149
|
+
'offset': opts['offset'],
|
|
150
|
+
'order_by': this.apiClient.buildCollectionParam(opts['orderBy'], 'csv'),
|
|
151
|
+
'updated_at': opts['updatedAt']
|
|
152
|
+
};
|
|
153
|
+
var headerParams = {};
|
|
154
|
+
var formParams = {};
|
|
155
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
156
|
+
var contentTypes = [];
|
|
157
|
+
var accepts = ['application/json'];
|
|
158
|
+
var returnType = _PaginatedSmartContractList["default"];
|
|
159
|
+
return this.apiClient.callApi('/blockchain/smart-contracts/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Callback function to receive the result of the blockchainSmartContractsPartialUpdate operation.
|
|
163
|
+
* @callback module:api/BlockchainApi~blockchainSmartContractsPartialUpdateCallback
|
|
164
|
+
* @param {String} error Error message, if any.
|
|
165
|
+
* @param {module:model/SmartContract} data The data returned by the service call.
|
|
166
|
+
* @param {String} response The complete HTTP response.
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* **Update a specific smart contract.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Superuser
|
|
171
|
+
* @param {String} id A UUID string identifying this smart contract.
|
|
172
|
+
* @param {Object} opts Optional parameters
|
|
173
|
+
* @param {module:model/PatchedSmartContract} opts.patchedSmartContract
|
|
174
|
+
* @param {module:api/BlockchainApi~blockchainSmartContractsPartialUpdateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
175
|
+
* data is of type: {@link module:model/SmartContract}
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
}, {
|
|
179
|
+
key: "blockchainSmartContractsPartialUpdate",
|
|
180
|
+
value: function blockchainSmartContractsPartialUpdate(id, opts, callback) {
|
|
181
|
+
opts = opts || {};
|
|
182
|
+
var postBody = opts['patchedSmartContract']; // verify the required parameter 'id' is set
|
|
183
|
+
|
|
184
|
+
if (id === undefined || id === null) {
|
|
185
|
+
throw new Error("Missing the required parameter 'id' when calling blockchainSmartContractsPartialUpdate");
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
var pathParams = {
|
|
189
|
+
'id': id
|
|
190
|
+
};
|
|
191
|
+
var queryParams = {};
|
|
192
|
+
var headerParams = {};
|
|
193
|
+
var formParams = {};
|
|
194
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
195
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
196
|
+
var accepts = ['application/json'];
|
|
197
|
+
var returnType = _SmartContract["default"];
|
|
198
|
+
return this.apiClient.callApi('/blockchain/smart-contracts/{id}/', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Callback function to receive the result of the blockchainSmartContractsRetrieve operation.
|
|
202
|
+
* @callback module:api/BlockchainApi~blockchainSmartContractsRetrieveCallback
|
|
203
|
+
* @param {String} error Error message, if any.
|
|
204
|
+
* @param {module:model/SmartContract} data The data returned by the service call.
|
|
205
|
+
* @param {String} response The complete HTTP response.
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* **Get a specific smart contract.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Superuser
|
|
210
|
+
* @param {String} id A UUID string identifying this smart contract.
|
|
211
|
+
* @param {module:api/BlockchainApi~blockchainSmartContractsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
|
212
|
+
* data is of type: {@link module:model/SmartContract}
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
}, {
|
|
216
|
+
key: "blockchainSmartContractsRetrieve",
|
|
217
|
+
value: function blockchainSmartContractsRetrieve(id, callback) {
|
|
218
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
219
|
+
|
|
220
|
+
if (id === undefined || id === null) {
|
|
221
|
+
throw new Error("Missing the required parameter 'id' when calling blockchainSmartContractsRetrieve");
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
var pathParams = {
|
|
225
|
+
'id': id
|
|
226
|
+
};
|
|
227
|
+
var queryParams = {};
|
|
228
|
+
var headerParams = {};
|
|
229
|
+
var formParams = {};
|
|
230
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
231
|
+
var contentTypes = [];
|
|
232
|
+
var accepts = ['application/json'];
|
|
233
|
+
var returnType = _SmartContract["default"];
|
|
234
|
+
return this.apiClient.callApi('/blockchain/smart-contracts/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Callback function to receive the result of the blockchainSmartContractsUpdate operation.
|
|
238
|
+
* @callback module:api/BlockchainApi~blockchainSmartContractsUpdateCallback
|
|
239
|
+
* @param {String} error Error message, if any.
|
|
240
|
+
* @param {module:model/SmartContract} data The data returned by the service call.
|
|
241
|
+
* @param {String} response The complete HTTP response.
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* **Upsert a specific smart contract.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Superuser
|
|
246
|
+
* @param {String} id A UUID string identifying this smart contract.
|
|
247
|
+
* @param {module:model/SmartContract} smartContract
|
|
248
|
+
* @param {module:api/BlockchainApi~blockchainSmartContractsUpdateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
249
|
+
* data is of type: {@link module:model/SmartContract}
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
}, {
|
|
253
|
+
key: "blockchainSmartContractsUpdate",
|
|
254
|
+
value: function blockchainSmartContractsUpdate(id, smartContract, callback) {
|
|
255
|
+
var postBody = smartContract; // verify the required parameter 'id' is set
|
|
256
|
+
|
|
257
|
+
if (id === undefined || id === null) {
|
|
258
|
+
throw new Error("Missing the required parameter 'id' when calling blockchainSmartContractsUpdate");
|
|
259
|
+
} // verify the required parameter 'smartContract' is set
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
if (smartContract === undefined || smartContract === null) {
|
|
263
|
+
throw new Error("Missing the required parameter 'smartContract' when calling blockchainSmartContractsUpdate");
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
var pathParams = {
|
|
267
|
+
'id': id
|
|
268
|
+
};
|
|
269
|
+
var queryParams = {};
|
|
270
|
+
var headerParams = {};
|
|
271
|
+
var formParams = {};
|
|
272
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
273
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
274
|
+
var accepts = ['application/json'];
|
|
275
|
+
var returnType = _SmartContract["default"];
|
|
276
|
+
return this.apiClient.callApi('/blockchain/smart-contracts/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
277
|
+
}
|
|
278
|
+
}]);
|
|
279
|
+
|
|
280
|
+
return BlockchainApi;
|
|
281
|
+
}();
|
|
282
|
+
|
|
283
|
+
exports["default"] = BlockchainApi;
|
|
@@ -9,6 +9,8 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
9
9
|
|
|
10
10
|
var _ConsumptionSite = _interopRequireDefault(require("../model/ConsumptionSite"));
|
|
11
11
|
|
|
12
|
+
var _ConsumptionSiteCreate = _interopRequireDefault(require("../model/ConsumptionSiteCreate"));
|
|
13
|
+
|
|
12
14
|
var _ConsumptionSiteFileUpload = _interopRequireDefault(require("../model/ConsumptionSiteFileUpload"));
|
|
13
15
|
|
|
14
16
|
var _ConsumptionSiteFromRetailer = _interopRequireDefault(require("../model/ConsumptionSiteFromRetailer"));
|
|
@@ -44,7 +46,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
44
46
|
/**
|
|
45
47
|
* EnergyAssets service.
|
|
46
48
|
* @module api/EnergyAssetsApi
|
|
47
|
-
* @version 0.
|
|
49
|
+
* @version 0.57.0
|
|
48
50
|
*/
|
|
49
51
|
var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
50
52
|
/**
|
|
@@ -63,25 +65,25 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
63
65
|
* Callback function to receive the result of the energyAssetsConsumptionSitesCreate operation.
|
|
64
66
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesCreateCallback
|
|
65
67
|
* @param {String} error Error message, if any.
|
|
66
|
-
* @param {module:model/
|
|
68
|
+
* @param {module:model/ConsumptionSiteCreate} data The data returned by the service call.
|
|
67
69
|
* @param {String} response The complete HTTP response.
|
|
68
70
|
*/
|
|
69
71
|
|
|
70
72
|
/**
|
|
71
73
|
* **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
|
|
72
|
-
* @param {module:model/
|
|
74
|
+
* @param {module:model/ConsumptionSiteCreate} consumptionSiteCreate
|
|
73
75
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
74
|
-
* data is of type: {@link module:model/
|
|
76
|
+
* data is of type: {@link module:model/ConsumptionSiteCreate}
|
|
75
77
|
*/
|
|
76
78
|
|
|
77
79
|
|
|
78
80
|
_createClass(EnergyAssetsApi, [{
|
|
79
81
|
key: "energyAssetsConsumptionSitesCreate",
|
|
80
|
-
value: function energyAssetsConsumptionSitesCreate(
|
|
81
|
-
var postBody =
|
|
82
|
+
value: function energyAssetsConsumptionSitesCreate(consumptionSiteCreate, callback) {
|
|
83
|
+
var postBody = consumptionSiteCreate; // verify the required parameter 'consumptionSiteCreate' is set
|
|
82
84
|
|
|
83
|
-
if (
|
|
84
|
-
throw new Error("Missing the required parameter '
|
|
85
|
+
if (consumptionSiteCreate === undefined || consumptionSiteCreate === null) {
|
|
86
|
+
throw new Error("Missing the required parameter 'consumptionSiteCreate' when calling energyAssetsConsumptionSitesCreate");
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
var pathParams = {};
|
|
@@ -91,7 +93,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
91
93
|
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
92
94
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
93
95
|
var accepts = ['application/json'];
|
|
94
|
-
var returnType =
|
|
96
|
+
var returnType = _ConsumptionSiteCreate["default"];
|
|
95
97
|
return this.apiClient.callApi('/energy-assets/consumption-sites/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
96
98
|
}
|
|
97
99
|
/**
|