green_link_api 0.49.7 → 0.55.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 +33 -36
- package/dist/ApiClient.js +3 -6
- package/dist/api/BlockchainApi.js +283 -0
- package/dist/api/EnergyAssetsApi.js +32 -30
- package/dist/api/EnergyDataApi.js +139 -40
- package/dist/api/HealthCheckApi.js +2 -2
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -2
- package/dist/api/LocationsApi.js +9 -9
- package/dist/api/MaintenanceCheckApi.js +2 -2
- package/dist/api/OrganizationprofilesApi.js +7 -7
- package/dist/api/OrganizationsApi.js +31 -31
- package/dist/api/SchemaApi.js +2 -2
- package/dist/api/SentryDebugApi.js +2 -2
- package/dist/api/UploadedfilesApi.js +226 -0
- package/dist/api/UsersApi.js +13 -230
- package/dist/index.js +105 -41
- 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 +3 -1
- package/dist/model/PatchedUserDetail.js +3 -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 +8 -5
- package/dist/model/Retailer.js +1 -1
- package/dist/model/SmartContract.js +137 -0
- package/dist/model/{VerifyEmail.js → Token.js} +18 -17
- 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 +3 -1
- package/dist/model/UserDetail.js +3 -1
- package/package.json +1 -1
- package/dist/model/JWT.js +0 -103
- package/dist/model/PasswordChange.js +0 -100
- package/dist/model/PasswordReset.js +0 -79
- package/dist/model/PasswordResetConfirm.js +0 -112
- package/dist/model/RestAuthDetail.js +0 -75
- package/dist/model/TokenRefresh.js +0 -87
- package/dist/model/TokenVerify.js +0 -78
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: 0.
|
|
8
|
-
- Package version: 0.
|
|
7
|
+
- API version: 0.55.0
|
|
8
|
+
- Package version: 0.55.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
@@ -101,16 +101,7 @@ Please follow the [installation](#installation) instruction and execute the foll
|
|
|
101
101
|
var GreenLinkApi = require('green_link_api');
|
|
102
102
|
|
|
103
103
|
var defaultClient = GreenLinkApi.ApiClient.instance;
|
|
104
|
-
// Configure
|
|
105
|
-
var basicAuth = defaultClient.authentications['basicAuth'];
|
|
106
|
-
basicAuth.username = 'YOUR USERNAME'
|
|
107
|
-
basicAuth.password = 'YOUR PASSWORD'
|
|
108
|
-
// Configure API key authorization: cookieAuth
|
|
109
|
-
var cookieAuth = defaultClient.authentications['cookieAuth'];
|
|
110
|
-
cookieAuth.apiKey = "YOUR API KEY"
|
|
111
|
-
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
|
112
|
-
//cookieAuth.apiKeyPrefix['sessionid'] = "Token"
|
|
113
|
-
// Configure Bearer (Bearer) access token for authorization: jwtAuth
|
|
104
|
+
// Configure Bearer (JWT) access token for authorization: jwtAuth
|
|
114
105
|
var jwtAuth = defaultClient.authentications['jwtAuth'];
|
|
115
106
|
jwtAuth.accessToken = "YOUR ACCESS TOKEN"
|
|
116
107
|
// Configure API key authorization: tokenAuth
|
|
@@ -119,8 +110,8 @@ tokenAuth.apiKey = "YOUR API KEY"
|
|
|
119
110
|
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
|
120
111
|
//tokenAuth.apiKeyPrefix['Authorization'] = "Token"
|
|
121
112
|
|
|
122
|
-
var api = new GreenLinkApi.
|
|
123
|
-
var
|
|
113
|
+
var api = new GreenLinkApi.BlockchainApi()
|
|
114
|
+
var smartContract = new GreenLinkApi.SmartContract(); // {SmartContract}
|
|
124
115
|
var callback = function(error, data, response) {
|
|
125
116
|
if (error) {
|
|
126
117
|
console.error(error);
|
|
@@ -128,7 +119,7 @@ var callback = function(error, data, response) {
|
|
|
128
119
|
console.log('API called successfully. Returned data: ' + data);
|
|
129
120
|
}
|
|
130
121
|
};
|
|
131
|
-
api.
|
|
122
|
+
api.blockchainSmartContractsCreate(smartContract, callback);
|
|
132
123
|
|
|
133
124
|
```
|
|
134
125
|
|
|
@@ -138,6 +129,12 @@ All URIs are relative to *http://localhost*
|
|
|
138
129
|
|
|
139
130
|
Class | Method | HTTP request | Description
|
|
140
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}/ |
|
|
141
138
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesCreate) | **POST** /energy-assets/consumption-sites/ |
|
|
142
139
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesDestroy**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesDestroy) | **DELETE** /energy-assets/consumption-sites/{id}/ |
|
|
143
140
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesImportDataCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesImportDataCreate) | **POST** /energy-assets/consumption-sites/import-data/ |
|
|
@@ -168,6 +165,8 @@ Class | Method | HTTP request | Description
|
|
|
168
165
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorPartialUpdate**](docs/EnergyDataApi.md#energyDataEmissionFactorPartialUpdate) | **PATCH** /energy-data/emission-factor/{id}/ |
|
|
169
166
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorRetrieve**](docs/EnergyDataApi.md#energyDataEmissionFactorRetrieve) | **GET** /energy-data/emission-factor/{id}/ |
|
|
170
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}/ |
|
|
171
170
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchRequestList**](docs/EnergyDataApi.md#energyDataMatchRequestList) | **GET** /energy-data/match-request/ |
|
|
172
171
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchRequestRetrieve**](docs/EnergyDataApi.md#energyDataMatchRequestRetrieve) | **GET** /energy-data/match-request/{id}/ |
|
|
173
172
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchedEnergyDataCreate**](docs/EnergyDataApi.md#energyDataMatchedEnergyDataCreate) | **POST** /energy-data/matched-energy-data/ |
|
|
@@ -232,26 +231,25 @@ Class | Method | HTTP request | Description
|
|
|
232
231
|
*GreenLinkApi.OrganizationsApi* | [**organizationsRetailersUpdate**](docs/OrganizationsApi.md#organizationsRetailersUpdate) | **PUT** /organizations/retailers/{id}/ |
|
|
233
232
|
*GreenLinkApi.SchemaApi* | [**schemaRetrieve**](docs/SchemaApi.md#schemaRetrieve) | **GET** /schema/ |
|
|
234
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}/ |
|
|
235
238
|
*GreenLinkApi.UsersApi* | [**usersDestroy**](docs/UsersApi.md#usersDestroy) | **DELETE** /users/{id}/ |
|
|
236
239
|
*GreenLinkApi.UsersApi* | [**usersList**](docs/UsersApi.md#usersList) | **GET** /users/ |
|
|
237
240
|
*GreenLinkApi.UsersApi* | [**usersLoginCreate**](docs/UsersApi.md#usersLoginCreate) | **POST** /users/login/ |
|
|
238
241
|
*GreenLinkApi.UsersApi* | [**usersLogoutCreate**](docs/UsersApi.md#usersLogoutCreate) | **POST** /users/logout/ |
|
|
239
242
|
*GreenLinkApi.UsersApi* | [**usersPartialUpdate**](docs/UsersApi.md#usersPartialUpdate) | **PATCH** /users/{id}/ |
|
|
240
|
-
*GreenLinkApi.UsersApi* | [**usersPasswordChangeCreate**](docs/UsersApi.md#usersPasswordChangeCreate) | **POST** /users/password/change/ |
|
|
241
|
-
*GreenLinkApi.UsersApi* | [**usersPasswordResetConfirmCreate**](docs/UsersApi.md#usersPasswordResetConfirmCreate) | **POST** /users/password/reset/confirm/ |
|
|
242
|
-
*GreenLinkApi.UsersApi* | [**usersPasswordResetCreate**](docs/UsersApi.md#usersPasswordResetCreate) | **POST** /users/password/reset/ |
|
|
243
243
|
*GreenLinkApi.UsersApi* | [**usersRegistrationCreate**](docs/UsersApi.md#usersRegistrationCreate) | **POST** /users/registration/ |
|
|
244
244
|
*GreenLinkApi.UsersApi* | [**usersRetrieve**](docs/UsersApi.md#usersRetrieve) | **GET** /users/{id}/ |
|
|
245
|
-
*GreenLinkApi.UsersApi* | [**usersTokenRefreshCreate**](docs/UsersApi.md#usersTokenRefreshCreate) | **POST** /users/token/refresh/ |
|
|
246
|
-
*GreenLinkApi.UsersApi* | [**usersTokenVerifyCreate**](docs/UsersApi.md#usersTokenVerifyCreate) | **POST** /users/token/verify/ |
|
|
247
245
|
*GreenLinkApi.UsersApi* | [**usersUserDetailsPartialUpdate**](docs/UsersApi.md#usersUserDetailsPartialUpdate) | **PATCH** /users/user-details/ |
|
|
248
246
|
*GreenLinkApi.UsersApi* | [**usersUserDetailsRetrieve**](docs/UsersApi.md#usersUserDetailsRetrieve) | **GET** /users/user-details/ |
|
|
249
247
|
*GreenLinkApi.UsersApi* | [**usersUserDetailsUpdate**](docs/UsersApi.md#usersUserDetailsUpdate) | **PUT** /users/user-details/ |
|
|
250
|
-
*GreenLinkApi.UsersApi* | [**usersVerifyEmailCreate**](docs/UsersApi.md#usersVerifyEmailCreate) | **POST** /users/verify-email/ |
|
|
251
248
|
|
|
252
249
|
|
|
253
250
|
## Documentation for Models
|
|
254
251
|
|
|
252
|
+
- [GreenLinkApi.BlockchainTransaction](docs/BlockchainTransaction.md)
|
|
255
253
|
- [GreenLinkApi.Consumer](docs/Consumer.md)
|
|
256
254
|
- [GreenLinkApi.ConsumptionDataFileList](docs/ConsumptionDataFileList.md)
|
|
257
255
|
- [GreenLinkApi.ConsumptionDataFromRetailer](docs/ConsumptionDataFromRetailer.md)
|
|
@@ -259,17 +257,18 @@ Class | Method | HTTP request | Description
|
|
|
259
257
|
- [GreenLinkApi.ConsumptionDataPointListOrDetail](docs/ConsumptionDataPointListOrDetail.md)
|
|
260
258
|
- [GreenLinkApi.ConsumptionDataPointUpdate](docs/ConsumptionDataPointUpdate.md)
|
|
261
259
|
- [GreenLinkApi.ConsumptionSite](docs/ConsumptionSite.md)
|
|
260
|
+
- [GreenLinkApi.ConsumptionSiteCreate](docs/ConsumptionSiteCreate.md)
|
|
262
261
|
- [GreenLinkApi.ConsumptionSiteFileUpload](docs/ConsumptionSiteFileUpload.md)
|
|
263
262
|
- [GreenLinkApi.ConsumptionSiteFromRetailer](docs/ConsumptionSiteFromRetailer.md)
|
|
264
263
|
- [GreenLinkApi.ConsumptionSiteListOrDetail](docs/ConsumptionSiteListOrDetail.md)
|
|
265
264
|
- [GreenLinkApi.ConsumptionSiteMany](docs/ConsumptionSiteMany.md)
|
|
265
|
+
- [GreenLinkApi.ContentTypeEnum](docs/ContentTypeEnum.md)
|
|
266
266
|
- [GreenLinkApi.EmissionFactor](docs/EmissionFactor.md)
|
|
267
267
|
- [GreenLinkApi.EnergySourceEnum](docs/EnergySourceEnum.md)
|
|
268
268
|
- [GreenLinkApi.EnergySourcePreference](docs/EnergySourcePreference.md)
|
|
269
269
|
- [GreenLinkApi.GetFromEpias](docs/GetFromEpias.md)
|
|
270
270
|
- [GreenLinkApi.GridOperator](docs/GridOperator.md)
|
|
271
271
|
- [GreenLinkApi.Issuer](docs/Issuer.md)
|
|
272
|
-
- [GreenLinkApi.JWT](docs/JWT.md)
|
|
273
272
|
- [GreenLinkApi.Location](docs/Location.md)
|
|
274
273
|
- [GreenLinkApi.Login](docs/Login.md)
|
|
275
274
|
- [GreenLinkApi.MatchRequest](docs/MatchRequest.md)
|
|
@@ -289,13 +288,14 @@ Class | Method | HTTP request | Description
|
|
|
289
288
|
- [GreenLinkApi.PaginatedMatchRequestList](docs/PaginatedMatchRequestList.md)
|
|
290
289
|
- [GreenLinkApi.PaginatedMatchedEnergyDataPointList](docs/PaginatedMatchedEnergyDataPointList.md)
|
|
291
290
|
- [GreenLinkApi.PaginatedProducerList](docs/PaginatedProducerList.md)
|
|
291
|
+
- [GreenLinkApi.PaginatedProductionDataFromEpiasRequestList](docs/PaginatedProductionDataFromEpiasRequestList.md)
|
|
292
292
|
- [GreenLinkApi.PaginatedProductionDataPointListOrDetailList](docs/PaginatedProductionDataPointListOrDetailList.md)
|
|
293
293
|
- [GreenLinkApi.PaginatedProductionSiteListOrDetailList](docs/PaginatedProductionSiteListOrDetailList.md)
|
|
294
294
|
- [GreenLinkApi.PaginatedRetailerList](docs/PaginatedRetailerList.md)
|
|
295
|
+
- [GreenLinkApi.PaginatedSmartContractList](docs/PaginatedSmartContractList.md)
|
|
296
|
+
- [GreenLinkApi.PaginatedUnprocessedRowList](docs/PaginatedUnprocessedRowList.md)
|
|
297
|
+
- [GreenLinkApi.PaginatedUploadedFileList](docs/PaginatedUploadedFileList.md)
|
|
295
298
|
- [GreenLinkApi.PaginatedUserList](docs/PaginatedUserList.md)
|
|
296
|
-
- [GreenLinkApi.PasswordChange](docs/PasswordChange.md)
|
|
297
|
-
- [GreenLinkApi.PasswordReset](docs/PasswordReset.md)
|
|
298
|
-
- [GreenLinkApi.PasswordResetConfirm](docs/PasswordResetConfirm.md)
|
|
299
299
|
- [GreenLinkApi.PatchedConsumer](docs/PatchedConsumer.md)
|
|
300
300
|
- [GreenLinkApi.PatchedConsumptionDataPointUpdate](docs/PatchedConsumptionDataPointUpdate.md)
|
|
301
301
|
- [GreenLinkApi.PatchedConsumptionSite](docs/PatchedConsumptionSite.md)
|
|
@@ -308,11 +308,13 @@ Class | Method | HTTP request | Description
|
|
|
308
308
|
- [GreenLinkApi.PatchedProductionDataPointUpdate](docs/PatchedProductionDataPointUpdate.md)
|
|
309
309
|
- [GreenLinkApi.PatchedProductionSiteUpdate](docs/PatchedProductionSiteUpdate.md)
|
|
310
310
|
- [GreenLinkApi.PatchedRetailer](docs/PatchedRetailer.md)
|
|
311
|
+
- [GreenLinkApi.PatchedSmartContract](docs/PatchedSmartContract.md)
|
|
311
312
|
- [GreenLinkApi.PatchedUser](docs/PatchedUser.md)
|
|
312
313
|
- [GreenLinkApi.PatchedUserDetail](docs/PatchedUserDetail.md)
|
|
313
314
|
- [GreenLinkApi.PriorityEnum](docs/PriorityEnum.md)
|
|
314
315
|
- [GreenLinkApi.Producer](docs/Producer.md)
|
|
315
316
|
- [GreenLinkApi.ProductionDataFileList](docs/ProductionDataFileList.md)
|
|
317
|
+
- [GreenLinkApi.ProductionDataFromEpiasRequest](docs/ProductionDataFromEpiasRequest.md)
|
|
316
318
|
- [GreenLinkApi.ProductionDataPointCreate](docs/ProductionDataPointCreate.md)
|
|
317
319
|
- [GreenLinkApi.ProductionDataPointListOrDetail](docs/ProductionDataPointListOrDetail.md)
|
|
318
320
|
- [GreenLinkApi.ProductionDataPointUpdate](docs/ProductionDataPointUpdate.md)
|
|
@@ -321,26 +323,21 @@ Class | Method | HTTP request | Description
|
|
|
321
323
|
- [GreenLinkApi.ProductionSiteListOrDetail](docs/ProductionSiteListOrDetail.md)
|
|
322
324
|
- [GreenLinkApi.ProductionSiteUpdate](docs/ProductionSiteUpdate.md)
|
|
323
325
|
- [GreenLinkApi.Register](docs/Register.md)
|
|
324
|
-
- [GreenLinkApi.RestAuthDetail](docs/RestAuthDetail.md)
|
|
325
326
|
- [GreenLinkApi.Retailer](docs/Retailer.md)
|
|
327
|
+
- [GreenLinkApi.SmartContract](docs/SmartContract.md)
|
|
326
328
|
- [GreenLinkApi.StatusEnum](docs/StatusEnum.md)
|
|
327
|
-
- [GreenLinkApi.
|
|
328
|
-
- [GreenLinkApi.
|
|
329
|
+
- [GreenLinkApi.Token](docs/Token.md)
|
|
330
|
+
- [GreenLinkApi.TypeEnum](docs/TypeEnum.md)
|
|
331
|
+
- [GreenLinkApi.UnprocessedRow](docs/UnprocessedRow.md)
|
|
332
|
+
- [GreenLinkApi.UploadedFile](docs/UploadedFile.md)
|
|
329
333
|
- [GreenLinkApi.User](docs/User.md)
|
|
330
334
|
- [GreenLinkApi.UserDetail](docs/UserDetail.md)
|
|
331
|
-
- [GreenLinkApi.VerifyEmail](docs/VerifyEmail.md)
|
|
332
335
|
|
|
333
336
|
|
|
334
337
|
## Documentation for Authorization
|
|
335
338
|
|
|
336
339
|
|
|
337
340
|
|
|
338
|
-
### basicAuth
|
|
339
|
-
|
|
340
|
-
- **Type**: HTTP basic authentication
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
341
|
### cookieAuth
|
|
345
342
|
|
|
346
343
|
|
|
@@ -352,7 +349,7 @@ Class | Method | HTTP request | Description
|
|
|
352
349
|
|
|
353
350
|
### jwtAuth
|
|
354
351
|
|
|
355
|
-
- **Type**: Bearer authentication (
|
|
352
|
+
- **Type**: Bearer authentication (JWT)
|
|
356
353
|
|
|
357
354
|
|
|
358
355
|
|
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.55.0
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -54,9 +54,6 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
54
54
|
*/
|
|
55
55
|
|
|
56
56
|
this.authentications = {
|
|
57
|
-
'basicAuth': {
|
|
58
|
-
type: 'basic'
|
|
59
|
-
},
|
|
60
57
|
'cookieAuth': {
|
|
61
58
|
type: 'apiKey',
|
|
62
59
|
'in': 'query',
|
|
@@ -65,7 +62,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
65
62
|
'jwtAuth': {
|
|
66
63
|
type: 'bearer'
|
|
67
64
|
},
|
|
68
|
-
//
|
|
65
|
+
// JWT
|
|
69
66
|
'tokenAuth': {
|
|
70
67
|
type: 'apiKey',
|
|
71
68
|
'in': 'header',
|
|
@@ -79,7 +76,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
79
76
|
*/
|
|
80
77
|
|
|
81
78
|
this.defaultHeaders = {
|
|
82
|
-
'User-Agent': 'OpenAPI-Generator/0.
|
|
79
|
+
'User-Agent': 'OpenAPI-Generator/0.55.0/Javascript'
|
|
83
80
|
};
|
|
84
81
|
/**
|
|
85
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.55.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;
|