green_link_api 0.49.6 → 0.54.4
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 +39 -37
- package/dist/ApiClient.js +3 -6
- package/dist/api/BlockchainApi.js +283 -0
- package/dist/api/EnergyAssetsApi.js +89 -19
- package/dist/api/EnergyDataApi.js +173 -39
- 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 +121 -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 +101 -0
- 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/ConsumptionSiteFileUpload.js +1 -1
- package/dist/model/{TokenRefresh.js → ConsumptionSiteFromRetailer.js} +24 -32
- package/dist/model/ConsumptionSiteListOrDetail.js +1 -1
- package/dist/model/ConsumptionSiteMany.js +195 -0
- 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/TokenVerify.js +0 -78
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
|
-
|
|
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.54.4
|
|
8
|
+
- Package version: 0.54.4
|
|
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,9 +129,17 @@ 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}/ |
|
|
140
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesImportDataCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesImportDataCreate) | **POST** /energy-assets/consumption-sites/import-data/ |
|
|
143
141
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesList**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesList) | **GET** /energy-assets/consumption-sites/ |
|
|
142
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesManyCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesManyCreate) | **POST** /energy-assets/consumption-sites/many/ |
|
|
144
143
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesPartialUpdate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesPartialUpdate) | **PATCH** /energy-assets/consumption-sites/{id}/ |
|
|
145
144
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesRetrieve**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesRetrieve) | **GET** /energy-assets/consumption-sites/{id}/ |
|
|
146
145
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesUpdate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesUpdate) | **PUT** /energy-assets/consumption-sites/{id}/ |
|
|
@@ -154,6 +153,7 @@ Class | Method | HTTP request | Description
|
|
|
154
153
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsProductionSitesUploadFileCreate**](docs/EnergyAssetsApi.md#energyAssetsProductionSitesUploadFileCreate) | **POST** /energy-assets/production-sites/upload-file/ |
|
|
155
154
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataCreate**](docs/EnergyDataApi.md#energyDataConsumptionDataCreate) | **POST** /energy-data/consumption-data/ |
|
|
156
155
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataDestroy**](docs/EnergyDataApi.md#energyDataConsumptionDataDestroy) | **DELETE** /energy-data/consumption-data/{id}/ |
|
|
156
|
+
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataImportDataCreate**](docs/EnergyDataApi.md#energyDataConsumptionDataImportDataCreate) | **POST** /energy-data/consumption-data/import-data/ |
|
|
157
157
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataList**](docs/EnergyDataApi.md#energyDataConsumptionDataList) | **GET** /energy-data/consumption-data/ |
|
|
158
158
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataPartialUpdate**](docs/EnergyDataApi.md#energyDataConsumptionDataPartialUpdate) | **PATCH** /energy-data/consumption-data/{id}/ |
|
|
159
159
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataRetrieve**](docs/EnergyDataApi.md#energyDataConsumptionDataRetrieve) | **GET** /energy-data/consumption-data/{id}/ |
|
|
@@ -165,6 +165,8 @@ Class | Method | HTTP request | Description
|
|
|
165
165
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorPartialUpdate**](docs/EnergyDataApi.md#energyDataEmissionFactorPartialUpdate) | **PATCH** /energy-data/emission-factor/{id}/ |
|
|
166
166
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorRetrieve**](docs/EnergyDataApi.md#energyDataEmissionFactorRetrieve) | **GET** /energy-data/emission-factor/{id}/ |
|
|
167
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}/ |
|
|
168
170
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchRequestList**](docs/EnergyDataApi.md#energyDataMatchRequestList) | **GET** /energy-data/match-request/ |
|
|
169
171
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchRequestRetrieve**](docs/EnergyDataApi.md#energyDataMatchRequestRetrieve) | **GET** /energy-data/match-request/{id}/ |
|
|
170
172
|
*GreenLinkApi.EnergyDataApi* | [**energyDataMatchedEnergyDataCreate**](docs/EnergyDataApi.md#energyDataMatchedEnergyDataCreate) | **POST** /energy-data/matched-energy-data/ |
|
|
@@ -229,41 +231,43 @@ Class | Method | HTTP request | Description
|
|
|
229
231
|
*GreenLinkApi.OrganizationsApi* | [**organizationsRetailersUpdate**](docs/OrganizationsApi.md#organizationsRetailersUpdate) | **PUT** /organizations/retailers/{id}/ |
|
|
230
232
|
*GreenLinkApi.SchemaApi* | [**schemaRetrieve**](docs/SchemaApi.md#schemaRetrieve) | **GET** /schema/ |
|
|
231
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}/ |
|
|
232
238
|
*GreenLinkApi.UsersApi* | [**usersDestroy**](docs/UsersApi.md#usersDestroy) | **DELETE** /users/{id}/ |
|
|
233
239
|
*GreenLinkApi.UsersApi* | [**usersList**](docs/UsersApi.md#usersList) | **GET** /users/ |
|
|
234
240
|
*GreenLinkApi.UsersApi* | [**usersLoginCreate**](docs/UsersApi.md#usersLoginCreate) | **POST** /users/login/ |
|
|
235
241
|
*GreenLinkApi.UsersApi* | [**usersLogoutCreate**](docs/UsersApi.md#usersLogoutCreate) | **POST** /users/logout/ |
|
|
236
242
|
*GreenLinkApi.UsersApi* | [**usersPartialUpdate**](docs/UsersApi.md#usersPartialUpdate) | **PATCH** /users/{id}/ |
|
|
237
|
-
*GreenLinkApi.UsersApi* | [**usersPasswordChangeCreate**](docs/UsersApi.md#usersPasswordChangeCreate) | **POST** /users/password/change/ |
|
|
238
|
-
*GreenLinkApi.UsersApi* | [**usersPasswordResetConfirmCreate**](docs/UsersApi.md#usersPasswordResetConfirmCreate) | **POST** /users/password/reset/confirm/ |
|
|
239
|
-
*GreenLinkApi.UsersApi* | [**usersPasswordResetCreate**](docs/UsersApi.md#usersPasswordResetCreate) | **POST** /users/password/reset/ |
|
|
240
243
|
*GreenLinkApi.UsersApi* | [**usersRegistrationCreate**](docs/UsersApi.md#usersRegistrationCreate) | **POST** /users/registration/ |
|
|
241
244
|
*GreenLinkApi.UsersApi* | [**usersRetrieve**](docs/UsersApi.md#usersRetrieve) | **GET** /users/{id}/ |
|
|
242
|
-
*GreenLinkApi.UsersApi* | [**usersTokenRefreshCreate**](docs/UsersApi.md#usersTokenRefreshCreate) | **POST** /users/token/refresh/ |
|
|
243
|
-
*GreenLinkApi.UsersApi* | [**usersTokenVerifyCreate**](docs/UsersApi.md#usersTokenVerifyCreate) | **POST** /users/token/verify/ |
|
|
244
245
|
*GreenLinkApi.UsersApi* | [**usersUserDetailsPartialUpdate**](docs/UsersApi.md#usersUserDetailsPartialUpdate) | **PATCH** /users/user-details/ |
|
|
245
246
|
*GreenLinkApi.UsersApi* | [**usersUserDetailsRetrieve**](docs/UsersApi.md#usersUserDetailsRetrieve) | **GET** /users/user-details/ |
|
|
246
247
|
*GreenLinkApi.UsersApi* | [**usersUserDetailsUpdate**](docs/UsersApi.md#usersUserDetailsUpdate) | **PUT** /users/user-details/ |
|
|
247
|
-
*GreenLinkApi.UsersApi* | [**usersVerifyEmailCreate**](docs/UsersApi.md#usersVerifyEmailCreate) | **POST** /users/verify-email/ |
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
## Documentation for Models
|
|
251
251
|
|
|
252
|
+
- [GreenLinkApi.BlockchainTransaction](docs/BlockchainTransaction.md)
|
|
252
253
|
- [GreenLinkApi.Consumer](docs/Consumer.md)
|
|
253
254
|
- [GreenLinkApi.ConsumptionDataFileList](docs/ConsumptionDataFileList.md)
|
|
255
|
+
- [GreenLinkApi.ConsumptionDataFromRetailer](docs/ConsumptionDataFromRetailer.md)
|
|
254
256
|
- [GreenLinkApi.ConsumptionDataPointCreate](docs/ConsumptionDataPointCreate.md)
|
|
255
257
|
- [GreenLinkApi.ConsumptionDataPointListOrDetail](docs/ConsumptionDataPointListOrDetail.md)
|
|
256
258
|
- [GreenLinkApi.ConsumptionDataPointUpdate](docs/ConsumptionDataPointUpdate.md)
|
|
257
259
|
- [GreenLinkApi.ConsumptionSite](docs/ConsumptionSite.md)
|
|
258
260
|
- [GreenLinkApi.ConsumptionSiteFileUpload](docs/ConsumptionSiteFileUpload.md)
|
|
261
|
+
- [GreenLinkApi.ConsumptionSiteFromRetailer](docs/ConsumptionSiteFromRetailer.md)
|
|
259
262
|
- [GreenLinkApi.ConsumptionSiteListOrDetail](docs/ConsumptionSiteListOrDetail.md)
|
|
263
|
+
- [GreenLinkApi.ConsumptionSiteMany](docs/ConsumptionSiteMany.md)
|
|
264
|
+
- [GreenLinkApi.ContentTypeEnum](docs/ContentTypeEnum.md)
|
|
260
265
|
- [GreenLinkApi.EmissionFactor](docs/EmissionFactor.md)
|
|
261
266
|
- [GreenLinkApi.EnergySourceEnum](docs/EnergySourceEnum.md)
|
|
262
267
|
- [GreenLinkApi.EnergySourcePreference](docs/EnergySourcePreference.md)
|
|
263
268
|
- [GreenLinkApi.GetFromEpias](docs/GetFromEpias.md)
|
|
264
269
|
- [GreenLinkApi.GridOperator](docs/GridOperator.md)
|
|
265
270
|
- [GreenLinkApi.Issuer](docs/Issuer.md)
|
|
266
|
-
- [GreenLinkApi.JWT](docs/JWT.md)
|
|
267
271
|
- [GreenLinkApi.Location](docs/Location.md)
|
|
268
272
|
- [GreenLinkApi.Login](docs/Login.md)
|
|
269
273
|
- [GreenLinkApi.MatchRequest](docs/MatchRequest.md)
|
|
@@ -283,13 +287,14 @@ Class | Method | HTTP request | Description
|
|
|
283
287
|
- [GreenLinkApi.PaginatedMatchRequestList](docs/PaginatedMatchRequestList.md)
|
|
284
288
|
- [GreenLinkApi.PaginatedMatchedEnergyDataPointList](docs/PaginatedMatchedEnergyDataPointList.md)
|
|
285
289
|
- [GreenLinkApi.PaginatedProducerList](docs/PaginatedProducerList.md)
|
|
290
|
+
- [GreenLinkApi.PaginatedProductionDataFromEpiasRequestList](docs/PaginatedProductionDataFromEpiasRequestList.md)
|
|
286
291
|
- [GreenLinkApi.PaginatedProductionDataPointListOrDetailList](docs/PaginatedProductionDataPointListOrDetailList.md)
|
|
287
292
|
- [GreenLinkApi.PaginatedProductionSiteListOrDetailList](docs/PaginatedProductionSiteListOrDetailList.md)
|
|
288
293
|
- [GreenLinkApi.PaginatedRetailerList](docs/PaginatedRetailerList.md)
|
|
294
|
+
- [GreenLinkApi.PaginatedSmartContractList](docs/PaginatedSmartContractList.md)
|
|
295
|
+
- [GreenLinkApi.PaginatedUnprocessedRowList](docs/PaginatedUnprocessedRowList.md)
|
|
296
|
+
- [GreenLinkApi.PaginatedUploadedFileList](docs/PaginatedUploadedFileList.md)
|
|
289
297
|
- [GreenLinkApi.PaginatedUserList](docs/PaginatedUserList.md)
|
|
290
|
-
- [GreenLinkApi.PasswordChange](docs/PasswordChange.md)
|
|
291
|
-
- [GreenLinkApi.PasswordReset](docs/PasswordReset.md)
|
|
292
|
-
- [GreenLinkApi.PasswordResetConfirm](docs/PasswordResetConfirm.md)
|
|
293
298
|
- [GreenLinkApi.PatchedConsumer](docs/PatchedConsumer.md)
|
|
294
299
|
- [GreenLinkApi.PatchedConsumptionDataPointUpdate](docs/PatchedConsumptionDataPointUpdate.md)
|
|
295
300
|
- [GreenLinkApi.PatchedConsumptionSite](docs/PatchedConsumptionSite.md)
|
|
@@ -302,11 +307,13 @@ Class | Method | HTTP request | Description
|
|
|
302
307
|
- [GreenLinkApi.PatchedProductionDataPointUpdate](docs/PatchedProductionDataPointUpdate.md)
|
|
303
308
|
- [GreenLinkApi.PatchedProductionSiteUpdate](docs/PatchedProductionSiteUpdate.md)
|
|
304
309
|
- [GreenLinkApi.PatchedRetailer](docs/PatchedRetailer.md)
|
|
310
|
+
- [GreenLinkApi.PatchedSmartContract](docs/PatchedSmartContract.md)
|
|
305
311
|
- [GreenLinkApi.PatchedUser](docs/PatchedUser.md)
|
|
306
312
|
- [GreenLinkApi.PatchedUserDetail](docs/PatchedUserDetail.md)
|
|
307
313
|
- [GreenLinkApi.PriorityEnum](docs/PriorityEnum.md)
|
|
308
314
|
- [GreenLinkApi.Producer](docs/Producer.md)
|
|
309
315
|
- [GreenLinkApi.ProductionDataFileList](docs/ProductionDataFileList.md)
|
|
316
|
+
- [GreenLinkApi.ProductionDataFromEpiasRequest](docs/ProductionDataFromEpiasRequest.md)
|
|
310
317
|
- [GreenLinkApi.ProductionDataPointCreate](docs/ProductionDataPointCreate.md)
|
|
311
318
|
- [GreenLinkApi.ProductionDataPointListOrDetail](docs/ProductionDataPointListOrDetail.md)
|
|
312
319
|
- [GreenLinkApi.ProductionDataPointUpdate](docs/ProductionDataPointUpdate.md)
|
|
@@ -315,26 +322,21 @@ Class | Method | HTTP request | Description
|
|
|
315
322
|
- [GreenLinkApi.ProductionSiteListOrDetail](docs/ProductionSiteListOrDetail.md)
|
|
316
323
|
- [GreenLinkApi.ProductionSiteUpdate](docs/ProductionSiteUpdate.md)
|
|
317
324
|
- [GreenLinkApi.Register](docs/Register.md)
|
|
318
|
-
- [GreenLinkApi.RestAuthDetail](docs/RestAuthDetail.md)
|
|
319
325
|
- [GreenLinkApi.Retailer](docs/Retailer.md)
|
|
326
|
+
- [GreenLinkApi.SmartContract](docs/SmartContract.md)
|
|
320
327
|
- [GreenLinkApi.StatusEnum](docs/StatusEnum.md)
|
|
321
|
-
- [GreenLinkApi.
|
|
322
|
-
- [GreenLinkApi.
|
|
328
|
+
- [GreenLinkApi.Token](docs/Token.md)
|
|
329
|
+
- [GreenLinkApi.TypeEnum](docs/TypeEnum.md)
|
|
330
|
+
- [GreenLinkApi.UnprocessedRow](docs/UnprocessedRow.md)
|
|
331
|
+
- [GreenLinkApi.UploadedFile](docs/UploadedFile.md)
|
|
323
332
|
- [GreenLinkApi.User](docs/User.md)
|
|
324
333
|
- [GreenLinkApi.UserDetail](docs/UserDetail.md)
|
|
325
|
-
- [GreenLinkApi.VerifyEmail](docs/VerifyEmail.md)
|
|
326
334
|
|
|
327
335
|
|
|
328
336
|
## Documentation for Authorization
|
|
329
337
|
|
|
330
338
|
|
|
331
339
|
|
|
332
|
-
### basicAuth
|
|
333
|
-
|
|
334
|
-
- **Type**: HTTP basic authentication
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
340
|
### cookieAuth
|
|
339
341
|
|
|
340
342
|
|
|
@@ -346,7 +348,7 @@ Class | Method | HTTP request | Description
|
|
|
346
348
|
|
|
347
349
|
### jwtAuth
|
|
348
350
|
|
|
349
|
-
- **Type**: Bearer authentication (
|
|
351
|
+
- **Type**: Bearer authentication (JWT)
|
|
350
352
|
|
|
351
353
|
|
|
352
354
|
|
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.54.4
|
|
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.54.4/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.54.4
|
|
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;
|