green_link_api 0.51.3 → 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.
Files changed (95) hide show
  1. package/README.md +29 -5
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/BlockchainApi.js +283 -0
  4. package/dist/api/EnergyAssetsApi.js +1 -1
  5. package/dist/api/EnergyDataApi.js +110 -11
  6. package/dist/api/HealthCheckApi.js +1 -1
  7. package/dist/api/LicensedProductionSitesOnEpiasApi.js +1 -1
  8. package/dist/api/LocationsApi.js +1 -1
  9. package/dist/api/MaintenanceCheckApi.js +1 -1
  10. package/dist/api/OrganizationprofilesApi.js +1 -1
  11. package/dist/api/OrganizationsApi.js +1 -1
  12. package/dist/api/SchemaApi.js +1 -1
  13. package/dist/api/SentryDebugApi.js +1 -1
  14. package/dist/api/UploadedfilesApi.js +226 -0
  15. package/dist/api/UsersApi.js +1 -1
  16. package/dist/index.js +112 -0
  17. package/dist/model/BlockchainTransaction.js +172 -0
  18. package/dist/model/Consumer.js +1 -1
  19. package/dist/model/ConsumptionDataFileList.js +1 -1
  20. package/dist/model/ConsumptionDataFromRetailer.js +1 -1
  21. package/dist/model/ConsumptionDataPointCreate.js +11 -11
  22. package/dist/model/ConsumptionDataPointListOrDetail.js +20 -13
  23. package/dist/model/ConsumptionDataPointUpdate.js +11 -11
  24. package/dist/model/ConsumptionSite.js +1 -1
  25. package/dist/model/ConsumptionSiteFileUpload.js +1 -1
  26. package/dist/model/ConsumptionSiteFromRetailer.js +1 -1
  27. package/dist/model/ConsumptionSiteListOrDetail.js +1 -1
  28. package/dist/model/ConsumptionSiteMany.js +1 -1
  29. package/dist/model/ContentTypeEnum.js +54 -0
  30. package/dist/model/EmissionFactor.js +1 -1
  31. package/dist/model/EnergySourcePreference.js +1 -1
  32. package/dist/model/GetFromEpias.js +1 -1
  33. package/dist/model/GridOperator.js +1 -1
  34. package/dist/model/Issuer.js +1 -1
  35. package/dist/model/Location.js +1 -1
  36. package/dist/model/Login.js +1 -1
  37. package/dist/model/MatchRequest.js +1 -1
  38. package/dist/model/MatchedEnergyDataPoint.js +12 -13
  39. package/dist/model/MatchingConsumerRequest.js +1 -1
  40. package/dist/model/MatchingSiteRequest.js +1 -1
  41. package/dist/model/PaginatedConsumerList.js +1 -1
  42. package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +1 -1
  43. package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +1 -1
  44. package/dist/model/PaginatedEmissionFactorList.js +1 -1
  45. package/dist/model/PaginatedEnergySourcePreferenceList.js +1 -1
  46. package/dist/model/PaginatedGridOperatorList.js +1 -1
  47. package/dist/model/PaginatedIssuerList.js +1 -1
  48. package/dist/model/PaginatedLocationList.js +1 -1
  49. package/dist/model/PaginatedMatchRequestList.js +1 -1
  50. package/dist/model/PaginatedMatchedEnergyDataPointList.js +1 -1
  51. package/dist/model/PaginatedProducerList.js +1 -1
  52. package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +104 -0
  53. package/dist/model/PaginatedProductionDataPointListOrDetailList.js +1 -1
  54. package/dist/model/PaginatedProductionSiteListOrDetailList.js +1 -1
  55. package/dist/model/PaginatedRetailerList.js +1 -1
  56. package/dist/model/PaginatedSmartContractList.js +104 -0
  57. package/dist/model/PaginatedUnprocessedRowList.js +104 -0
  58. package/dist/model/PaginatedUploadedFileList.js +104 -0
  59. package/dist/model/PaginatedUserList.js +1 -1
  60. package/dist/model/PatchedConsumer.js +1 -1
  61. package/dist/model/PatchedConsumptionDataPointUpdate.js +11 -11
  62. package/dist/model/PatchedConsumptionSite.js +1 -1
  63. package/dist/model/PatchedEmissionFactor.js +1 -1
  64. package/dist/model/PatchedEnergySourcePreference.js +1 -1
  65. package/dist/model/PatchedGridOperator.js +1 -1
  66. package/dist/model/PatchedIssuer.js +1 -1
  67. package/dist/model/PatchedLocation.js +1 -1
  68. package/dist/model/PatchedProducer.js +1 -1
  69. package/dist/model/PatchedProductionDataPointUpdate.js +12 -12
  70. package/dist/model/PatchedProductionSiteUpdate.js +2 -1
  71. package/dist/model/PatchedRetailer.js +1 -1
  72. package/dist/model/PatchedSmartContract.js +132 -0
  73. package/dist/model/PatchedUser.js +1 -1
  74. package/dist/model/PatchedUserDetail.js +1 -1
  75. package/dist/model/PriorityEnum.js +6 -0
  76. package/dist/model/Producer.js +1 -1
  77. package/dist/model/ProductionDataFileList.js +1 -1
  78. package/dist/model/ProductionDataFromEpiasRequest.js +167 -0
  79. package/dist/model/ProductionDataPointCreate.js +12 -12
  80. package/dist/model/ProductionDataPointListOrDetail.js +21 -14
  81. package/dist/model/ProductionDataPointUpdate.js +12 -12
  82. package/dist/model/ProductionSite.js +5 -6
  83. package/dist/model/ProductionSiteFileUpload.js +1 -1
  84. package/dist/model/ProductionSiteListOrDetail.js +1 -1
  85. package/dist/model/ProductionSiteUpdate.js +5 -6
  86. package/dist/model/Register.js +1 -1
  87. package/dist/model/Retailer.js +1 -1
  88. package/dist/model/SmartContract.js +137 -0
  89. package/dist/model/Token.js +1 -1
  90. package/dist/model/TypeEnum.js +52 -0
  91. package/dist/model/UnprocessedRow.js +140 -0
  92. package/dist/model/UploadedFile.js +166 -0
  93. package/dist/model/User.js +1 -1
  94. package/dist/model/UserDetail.js +1 -1
  95. package/package.json +1 -1
package/README.md CHANGED
@@ -4,8 +4,8 @@ GreenLinkApi - JavaScript client for green_link_api
4
4
  GreenLink API documentation with interactive tools for testing API endpoints.
5
5
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
6
6
 
7
- - API version: 0.51.3
8
- - Package version: 0.51.3
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
@@ -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.EnergyAssetsApi()
114
- var consumptionSite = new GreenLinkApi.ConsumptionSite(); // {ConsumptionSite}
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.energyAssetsConsumptionSitesCreate(consumptionSite, callback);
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)
@@ -248,6 +261,7 @@ Class | Method | HTTP request | Description
248
261
  - [GreenLinkApi.ConsumptionSiteFromRetailer](docs/ConsumptionSiteFromRetailer.md)
249
262
  - [GreenLinkApi.ConsumptionSiteListOrDetail](docs/ConsumptionSiteListOrDetail.md)
250
263
  - [GreenLinkApi.ConsumptionSiteMany](docs/ConsumptionSiteMany.md)
264
+ - [GreenLinkApi.ContentTypeEnum](docs/ContentTypeEnum.md)
251
265
  - [GreenLinkApi.EmissionFactor](docs/EmissionFactor.md)
252
266
  - [GreenLinkApi.EnergySourceEnum](docs/EnergySourceEnum.md)
253
267
  - [GreenLinkApi.EnergySourcePreference](docs/EnergySourcePreference.md)
@@ -273,9 +287,13 @@ Class | Method | HTTP request | Description
273
287
  - [GreenLinkApi.PaginatedMatchRequestList](docs/PaginatedMatchRequestList.md)
274
288
  - [GreenLinkApi.PaginatedMatchedEnergyDataPointList](docs/PaginatedMatchedEnergyDataPointList.md)
275
289
  - [GreenLinkApi.PaginatedProducerList](docs/PaginatedProducerList.md)
290
+ - [GreenLinkApi.PaginatedProductionDataFromEpiasRequestList](docs/PaginatedProductionDataFromEpiasRequestList.md)
276
291
  - [GreenLinkApi.PaginatedProductionDataPointListOrDetailList](docs/PaginatedProductionDataPointListOrDetailList.md)
277
292
  - [GreenLinkApi.PaginatedProductionSiteListOrDetailList](docs/PaginatedProductionSiteListOrDetailList.md)
278
293
  - [GreenLinkApi.PaginatedRetailerList](docs/PaginatedRetailerList.md)
294
+ - [GreenLinkApi.PaginatedSmartContractList](docs/PaginatedSmartContractList.md)
295
+ - [GreenLinkApi.PaginatedUnprocessedRowList](docs/PaginatedUnprocessedRowList.md)
296
+ - [GreenLinkApi.PaginatedUploadedFileList](docs/PaginatedUploadedFileList.md)
279
297
  - [GreenLinkApi.PaginatedUserList](docs/PaginatedUserList.md)
280
298
  - [GreenLinkApi.PatchedConsumer](docs/PatchedConsumer.md)
281
299
  - [GreenLinkApi.PatchedConsumptionDataPointUpdate](docs/PatchedConsumptionDataPointUpdate.md)
@@ -289,11 +307,13 @@ Class | Method | HTTP request | Description
289
307
  - [GreenLinkApi.PatchedProductionDataPointUpdate](docs/PatchedProductionDataPointUpdate.md)
290
308
  - [GreenLinkApi.PatchedProductionSiteUpdate](docs/PatchedProductionSiteUpdate.md)
291
309
  - [GreenLinkApi.PatchedRetailer](docs/PatchedRetailer.md)
310
+ - [GreenLinkApi.PatchedSmartContract](docs/PatchedSmartContract.md)
292
311
  - [GreenLinkApi.PatchedUser](docs/PatchedUser.md)
293
312
  - [GreenLinkApi.PatchedUserDetail](docs/PatchedUserDetail.md)
294
313
  - [GreenLinkApi.PriorityEnum](docs/PriorityEnum.md)
295
314
  - [GreenLinkApi.Producer](docs/Producer.md)
296
315
  - [GreenLinkApi.ProductionDataFileList](docs/ProductionDataFileList.md)
316
+ - [GreenLinkApi.ProductionDataFromEpiasRequest](docs/ProductionDataFromEpiasRequest.md)
297
317
  - [GreenLinkApi.ProductionDataPointCreate](docs/ProductionDataPointCreate.md)
298
318
  - [GreenLinkApi.ProductionDataPointListOrDetail](docs/ProductionDataPointListOrDetail.md)
299
319
  - [GreenLinkApi.ProductionDataPointUpdate](docs/ProductionDataPointUpdate.md)
@@ -303,8 +323,12 @@ Class | Method | HTTP request | Description
303
323
  - [GreenLinkApi.ProductionSiteUpdate](docs/ProductionSiteUpdate.md)
304
324
  - [GreenLinkApi.Register](docs/Register.md)
305
325
  - [GreenLinkApi.Retailer](docs/Retailer.md)
326
+ - [GreenLinkApi.SmartContract](docs/SmartContract.md)
306
327
  - [GreenLinkApi.StatusEnum](docs/StatusEnum.md)
307
328
  - [GreenLinkApi.Token](docs/Token.md)
329
+ - [GreenLinkApi.TypeEnum](docs/TypeEnum.md)
330
+ - [GreenLinkApi.UnprocessedRow](docs/UnprocessedRow.md)
331
+ - [GreenLinkApi.UploadedFile](docs/UploadedFile.md)
308
332
  - [GreenLinkApi.User](docs/User.md)
309
333
  - [GreenLinkApi.UserDetail](docs/UserDetail.md)
310
334
 
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.51.3
24
+ * @version 0.54.4
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.51.3/Javascript'
79
+ 'User-Agent': 'OpenAPI-Generator/0.54.4/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.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;
@@ -44,7 +44,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
44
44
  /**
45
45
  * EnergyAssets service.
46
46
  * @module api/EnergyAssetsApi
47
- * @version 0.51.3
47
+ * @version 0.54.4
48
48
  */
49
49
  var EnergyAssetsApi = /*#__PURE__*/function () {
50
50
  /**