green_link_api 1.10.2 → 1.10.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 (112) hide show
  1. package/README.md +2 -2
  2. package/dist/ApiClient.js +51 -133
  3. package/dist/api/BlockchainApi.js +19 -38
  4. package/dist/api/EnergyAssetsApi.js +61 -106
  5. package/dist/api/EnergyDataApi.js +88 -152
  6. package/dist/api/HealthCheckApi.js +2 -12
  7. package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -12
  8. package/dist/api/LocationsApi.js +21 -40
  9. package/dist/api/LogsApi.js +36 -67
  10. package/dist/api/MaintenanceCheckApi.js +2 -12
  11. package/dist/api/OrganizationprofilesApi.js +19 -38
  12. package/dist/api/OrganizationsApi.js +91 -146
  13. package/dist/api/SchemaApi.js +2 -12
  14. package/dist/api/SentryDebugApi.js +2 -12
  15. package/dist/api/UsersApi.js +23 -47
  16. package/dist/index.js +0 -110
  17. package/dist/model/Activities.js +9 -28
  18. package/dist/model/BlockchainTransaction.js +12 -36
  19. package/dist/model/Consumer.js +13 -37
  20. package/dist/model/ConsumptionDataFileList.js +8 -26
  21. package/dist/model/ConsumptionDataFromRetailerRequest.js +5 -20
  22. package/dist/model/ConsumptionDataPointCreate.js +24 -59
  23. package/dist/model/ConsumptionDataPointListOrDetail.js +24 -64
  24. package/dist/model/ConsumptionDataPointUpdate.js +24 -59
  25. package/dist/model/ConsumptionSite.js +15 -41
  26. package/dist/model/ConsumptionSiteContract.js +9 -29
  27. package/dist/model/ConsumptionSiteContractImport.js +5 -20
  28. package/dist/model/ConsumptionSiteCreate.js +15 -41
  29. package/dist/model/ConsumptionSiteFileUpload.js +8 -26
  30. package/dist/model/ConsumptionSiteListOrDetail.js +14 -41
  31. package/dist/model/ContentTypeEnum.js +0 -15
  32. package/dist/model/EacTypeEnum.js +0 -11
  33. package/dist/model/EmissionFactor.js +9 -28
  34. package/dist/model/EnergySourceEnum.js +0 -18
  35. package/dist/model/EnergySourcePreference.js +10 -32
  36. package/dist/model/GetFromEpias.js +5 -20
  37. package/dist/model/GridOperator.js +11 -33
  38. package/dist/model/ImportRequest.js +14 -40
  39. package/dist/model/ImportRequestStatusEnum.js +0 -14
  40. package/dist/model/ImportedEnergyDataPoint.js +11 -32
  41. package/dist/model/Issuer.js +11 -33
  42. package/dist/model/Location.js +19 -48
  43. package/dist/model/Login.js +5 -20
  44. package/dist/model/MatchRequest.js +23 -63
  45. package/dist/model/MatchTypeEnum.js +0 -12
  46. package/dist/model/MatchedEnergyDataPoint.js +14 -39
  47. package/dist/model/MatchingConsumerRequest.js +7 -24
  48. package/dist/model/MatchingSiteRequest.js +7 -24
  49. package/dist/model/OrganizationTypeEnum.js +0 -16
  50. package/dist/model/PaginatedActivitiesList.js +6 -23
  51. package/dist/model/PaginatedConsumerList.js +6 -23
  52. package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +6 -23
  53. package/dist/model/PaginatedConsumptionSiteContractList.js +6 -23
  54. package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +6 -23
  55. package/dist/model/PaginatedEmissionFactorList.js +6 -23
  56. package/dist/model/PaginatedEnergySourcePreferenceList.js +6 -23
  57. package/dist/model/PaginatedGridOperatorList.js +6 -23
  58. package/dist/model/PaginatedImportRequestList.js +6 -23
  59. package/dist/model/PaginatedImportedEnergyDataPointList.js +6 -23
  60. package/dist/model/PaginatedIssuerList.js +6 -23
  61. package/dist/model/PaginatedLocationList.js +6 -23
  62. package/dist/model/PaginatedMatchRequestList.js +6 -23
  63. package/dist/model/PaginatedMatchedEnergyDataPointList.js +6 -23
  64. package/dist/model/PaginatedProducerList.js +6 -23
  65. package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +6 -23
  66. package/dist/model/PaginatedProductionDataPointListOrDetailList.js +6 -23
  67. package/dist/model/PaginatedProductionSiteListOrDetailList.js +6 -23
  68. package/dist/model/PaginatedRetailerList.js +6 -23
  69. package/dist/model/PaginatedSmartContractList.js +6 -23
  70. package/dist/model/PaginatedUnprocessedRowList.js +6 -23
  71. package/dist/model/PaginatedUploadedCertificateListorDetailList.js +6 -23
  72. package/dist/model/PaginatedUploadedFileList.js +6 -23
  73. package/dist/model/PaginatedUserList.js +6 -23
  74. package/dist/model/PatchedConsumer.js +13 -37
  75. package/dist/model/PatchedConsumptionDataPointUpdate.js +24 -59
  76. package/dist/model/PatchedConsumptionSite.js +15 -41
  77. package/dist/model/PatchedEmissionFactor.js +9 -28
  78. package/dist/model/PatchedEnergySourcePreference.js +10 -32
  79. package/dist/model/PatchedGridOperator.js +11 -33
  80. package/dist/model/PatchedIssuer.js +11 -33
  81. package/dist/model/PatchedLocation.js +19 -48
  82. package/dist/model/PatchedProducer.js +11 -33
  83. package/dist/model/PatchedProductionDataPointUpdate.js +18 -47
  84. package/dist/model/PatchedProductionSiteUpdate.js +20 -51
  85. package/dist/model/PatchedRetailer.js +12 -35
  86. package/dist/model/PatchedSmartContract.js +9 -28
  87. package/dist/model/PatchedUser.js +18 -47
  88. package/dist/model/PatchedUserDetail.js +18 -47
  89. package/dist/model/PriorityEnum.js +0 -18
  90. package/dist/model/Producer.js +11 -33
  91. package/dist/model/ProductionDataFileList.js +8 -26
  92. package/dist/model/ProductionDataFromEpiasRequest.js +11 -36
  93. package/dist/model/ProductionDataPointCreate.js +18 -47
  94. package/dist/model/ProductionDataPointListOrDetail.js +19 -53
  95. package/dist/model/ProductionDataPointUpdate.js +18 -47
  96. package/dist/model/ProductionSite.js +20 -51
  97. package/dist/model/ProductionSiteFileUpload.js +12 -34
  98. package/dist/model/ProductionSiteListOrDetail.js +18 -48
  99. package/dist/model/ProductionSiteUpdate.js +20 -51
  100. package/dist/model/Register.js +14 -38
  101. package/dist/model/Retailer.js +12 -35
  102. package/dist/model/SmartContract.js +9 -28
  103. package/dist/model/Status619Enum.js +0 -13
  104. package/dist/model/Token.js +3 -16
  105. package/dist/model/TypeEnum.js +0 -13
  106. package/dist/model/UnprocessedRow.js +9 -28
  107. package/dist/model/UploadedCertificate.js +12 -35
  108. package/dist/model/UploadedCertificateListorDetail.js +12 -36
  109. package/dist/model/UploadedFile.js +10 -32
  110. package/dist/model/User.js +18 -47
  111. package/dist/model/UserDetail.js +18 -47
  112. package/package.json +1 -1
@@ -4,27 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
-
10
8
  var _PaginatedSmartContractList = _interopRequireDefault(require("../model/PaginatedSmartContractList"));
11
-
12
9
  var _PatchedSmartContract = _interopRequireDefault(require("../model/PatchedSmartContract"));
13
-
14
10
  var _SmartContract = _interopRequireDefault(require("../model/SmartContract"));
15
-
16
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
12
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
-
20
13
  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
14
  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
15
  /**
25
16
  * Blockchain service.
26
17
  * @module api/BlockchainApi
27
- * @version 1.10.2
18
+ * @version 1.10.4
28
19
  */
29
20
  var BlockchainApi = /*#__PURE__*/function () {
30
21
  /**
@@ -36,9 +27,9 @@ var BlockchainApi = /*#__PURE__*/function () {
36
27
  */
37
28
  function BlockchainApi(apiClient) {
38
29
  _classCallCheck(this, BlockchainApi);
39
-
40
30
  this.apiClient = apiClient || _ApiClient["default"].instance;
41
31
  }
32
+
42
33
  /**
43
34
  * Callback function to receive the result of the blockchainSmartContractsCreate operation.
44
35
  * @callback module:api/BlockchainApi~blockchainSmartContractsCreateCallback
@@ -53,17 +44,14 @@ var BlockchainApi = /*#__PURE__*/function () {
53
44
  * @param {module:api/BlockchainApi~blockchainSmartContractsCreateCallback} callback The callback function, accepting three arguments: error, data, response
54
45
  * data is of type: {@link module:model/SmartContract}
55
46
  */
56
-
57
-
58
47
  _createClass(BlockchainApi, [{
59
48
  key: "blockchainSmartContractsCreate",
60
49
  value: function blockchainSmartContractsCreate(smartContract, callback) {
61
- var postBody = smartContract; // verify the required parameter 'smartContract' is set
62
-
50
+ var postBody = smartContract;
51
+ // verify the required parameter 'smartContract' is set
63
52
  if (smartContract === undefined || smartContract === null) {
64
53
  throw new Error("Missing the required parameter 'smartContract' when calling blockchainSmartContractsCreate");
65
54
  }
66
-
67
55
  var pathParams = {};
68
56
  var queryParams = {};
69
57
  var headerParams = {};
@@ -74,6 +62,7 @@ var BlockchainApi = /*#__PURE__*/function () {
74
62
  var returnType = _SmartContract["default"];
75
63
  return this.apiClient.callApi('/blockchain/smart-contracts/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
76
64
  }
65
+
77
66
  /**
78
67
  * Callback function to receive the result of the blockchainSmartContractsDestroy operation.
79
68
  * @callback module:api/BlockchainApi~blockchainSmartContractsDestroyCallback
@@ -87,16 +76,14 @@ var BlockchainApi = /*#__PURE__*/function () {
87
76
  * @param {String} id A UUID string identifying this smart contract.
88
77
  * @param {module:api/BlockchainApi~blockchainSmartContractsDestroyCallback} callback The callback function, accepting three arguments: error, data, response
89
78
  */
90
-
91
79
  }, {
92
80
  key: "blockchainSmartContractsDestroy",
93
81
  value: function blockchainSmartContractsDestroy(id, callback) {
94
- var postBody = null; // verify the required parameter 'id' is set
95
-
82
+ var postBody = null;
83
+ // verify the required parameter 'id' is set
96
84
  if (id === undefined || id === null) {
97
85
  throw new Error("Missing the required parameter 'id' when calling blockchainSmartContractsDestroy");
98
86
  }
99
-
100
87
  var pathParams = {
101
88
  'id': id
102
89
  };
@@ -109,6 +96,7 @@ var BlockchainApi = /*#__PURE__*/function () {
109
96
  var returnType = null;
110
97
  return this.apiClient.callApi('/blockchain/smart-contracts/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
111
98
  }
99
+
112
100
  /**
113
101
  * Callback function to receive the result of the blockchainSmartContractsList operation.
114
102
  * @callback module:api/BlockchainApi~blockchainSmartContractsListCallback
@@ -132,7 +120,6 @@ var BlockchainApi = /*#__PURE__*/function () {
132
120
  * @param {module:api/BlockchainApi~blockchainSmartContractsListCallback} callback The callback function, accepting three arguments: error, data, response
133
121
  * data is of type: {@link module:model/PaginatedSmartContractList}
134
122
  */
135
-
136
123
  }, {
137
124
  key: "blockchainSmartContractsList",
138
125
  value: function blockchainSmartContractsList(opts, callback) {
@@ -158,6 +145,7 @@ var BlockchainApi = /*#__PURE__*/function () {
158
145
  var returnType = _PaginatedSmartContractList["default"];
159
146
  return this.apiClient.callApi('/blockchain/smart-contracts/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
160
147
  }
148
+
161
149
  /**
162
150
  * Callback function to receive the result of the blockchainSmartContractsPartialUpdate operation.
163
151
  * @callback module:api/BlockchainApi~blockchainSmartContractsPartialUpdateCallback
@@ -174,17 +162,15 @@ var BlockchainApi = /*#__PURE__*/function () {
174
162
  * @param {module:api/BlockchainApi~blockchainSmartContractsPartialUpdateCallback} callback The callback function, accepting three arguments: error, data, response
175
163
  * data is of type: {@link module:model/SmartContract}
176
164
  */
177
-
178
165
  }, {
179
166
  key: "blockchainSmartContractsPartialUpdate",
180
167
  value: function blockchainSmartContractsPartialUpdate(id, opts, callback) {
181
168
  opts = opts || {};
182
- var postBody = opts['patchedSmartContract']; // verify the required parameter 'id' is set
183
-
169
+ var postBody = opts['patchedSmartContract'];
170
+ // verify the required parameter 'id' is set
184
171
  if (id === undefined || id === null) {
185
172
  throw new Error("Missing the required parameter 'id' when calling blockchainSmartContractsPartialUpdate");
186
173
  }
187
-
188
174
  var pathParams = {
189
175
  'id': id
190
176
  };
@@ -197,6 +183,7 @@ var BlockchainApi = /*#__PURE__*/function () {
197
183
  var returnType = _SmartContract["default"];
198
184
  return this.apiClient.callApi('/blockchain/smart-contracts/{id}/', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
199
185
  }
186
+
200
187
  /**
201
188
  * Callback function to receive the result of the blockchainSmartContractsRetrieve operation.
202
189
  * @callback module:api/BlockchainApi~blockchainSmartContractsRetrieveCallback
@@ -211,16 +198,14 @@ var BlockchainApi = /*#__PURE__*/function () {
211
198
  * @param {module:api/BlockchainApi~blockchainSmartContractsRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
212
199
  * data is of type: {@link module:model/SmartContract}
213
200
  */
214
-
215
201
  }, {
216
202
  key: "blockchainSmartContractsRetrieve",
217
203
  value: function blockchainSmartContractsRetrieve(id, callback) {
218
- var postBody = null; // verify the required parameter 'id' is set
219
-
204
+ var postBody = null;
205
+ // verify the required parameter 'id' is set
220
206
  if (id === undefined || id === null) {
221
207
  throw new Error("Missing the required parameter 'id' when calling blockchainSmartContractsRetrieve");
222
208
  }
223
-
224
209
  var pathParams = {
225
210
  'id': id
226
211
  };
@@ -233,6 +218,7 @@ var BlockchainApi = /*#__PURE__*/function () {
233
218
  var returnType = _SmartContract["default"];
234
219
  return this.apiClient.callApi('/blockchain/smart-contracts/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
235
220
  }
221
+
236
222
  /**
237
223
  * Callback function to receive the result of the blockchainSmartContractsUpdate operation.
238
224
  * @callback module:api/BlockchainApi~blockchainSmartContractsUpdateCallback
@@ -248,21 +234,18 @@ var BlockchainApi = /*#__PURE__*/function () {
248
234
  * @param {module:api/BlockchainApi~blockchainSmartContractsUpdateCallback} callback The callback function, accepting three arguments: error, data, response
249
235
  * data is of type: {@link module:model/SmartContract}
250
236
  */
251
-
252
237
  }, {
253
238
  key: "blockchainSmartContractsUpdate",
254
239
  value: function blockchainSmartContractsUpdate(id, smartContract, callback) {
255
- var postBody = smartContract; // verify the required parameter 'id' is set
256
-
240
+ var postBody = smartContract;
241
+ // verify the required parameter 'id' is set
257
242
  if (id === undefined || id === null) {
258
243
  throw new Error("Missing the required parameter 'id' when calling blockchainSmartContractsUpdate");
259
- } // verify the required parameter 'smartContract' is set
260
-
261
-
244
+ }
245
+ // verify the required parameter 'smartContract' is set
262
246
  if (smartContract === undefined || smartContract === null) {
263
247
  throw new Error("Missing the required parameter 'smartContract' when calling blockchainSmartContractsUpdate");
264
248
  }
265
-
266
249
  var pathParams = {
267
250
  'id': id
268
251
  };
@@ -276,8 +259,6 @@ var BlockchainApi = /*#__PURE__*/function () {
276
259
  return this.apiClient.callApi('/blockchain/smart-contracts/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
277
260
  }
278
261
  }]);
279
-
280
262
  return BlockchainApi;
281
263
  }();
282
-
283
264
  exports["default"] = BlockchainApi;