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.
- package/README.md +2 -2
- package/dist/ApiClient.js +51 -133
- package/dist/api/BlockchainApi.js +19 -38
- package/dist/api/EnergyAssetsApi.js +61 -106
- package/dist/api/EnergyDataApi.js +88 -152
- package/dist/api/HealthCheckApi.js +2 -12
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -12
- package/dist/api/LocationsApi.js +21 -40
- package/dist/api/LogsApi.js +36 -67
- package/dist/api/MaintenanceCheckApi.js +2 -12
- package/dist/api/OrganizationprofilesApi.js +19 -38
- package/dist/api/OrganizationsApi.js +91 -146
- package/dist/api/SchemaApi.js +2 -12
- package/dist/api/SentryDebugApi.js +2 -12
- package/dist/api/UsersApi.js +23 -47
- package/dist/index.js +0 -110
- package/dist/model/Activities.js +9 -28
- package/dist/model/BlockchainTransaction.js +12 -36
- package/dist/model/Consumer.js +13 -37
- package/dist/model/ConsumptionDataFileList.js +8 -26
- package/dist/model/ConsumptionDataFromRetailerRequest.js +5 -20
- package/dist/model/ConsumptionDataPointCreate.js +24 -59
- package/dist/model/ConsumptionDataPointListOrDetail.js +24 -64
- package/dist/model/ConsumptionDataPointUpdate.js +24 -59
- package/dist/model/ConsumptionSite.js +15 -41
- package/dist/model/ConsumptionSiteContract.js +9 -29
- package/dist/model/ConsumptionSiteContractImport.js +5 -20
- package/dist/model/ConsumptionSiteCreate.js +15 -41
- package/dist/model/ConsumptionSiteFileUpload.js +8 -26
- package/dist/model/ConsumptionSiteListOrDetail.js +14 -41
- package/dist/model/ContentTypeEnum.js +0 -15
- package/dist/model/EacTypeEnum.js +0 -11
- package/dist/model/EmissionFactor.js +9 -28
- package/dist/model/EnergySourceEnum.js +0 -18
- package/dist/model/EnergySourcePreference.js +10 -32
- package/dist/model/GetFromEpias.js +5 -20
- package/dist/model/GridOperator.js +11 -33
- package/dist/model/ImportRequest.js +14 -40
- package/dist/model/ImportRequestStatusEnum.js +0 -14
- package/dist/model/ImportedEnergyDataPoint.js +11 -32
- package/dist/model/Issuer.js +11 -33
- package/dist/model/Location.js +19 -48
- package/dist/model/Login.js +5 -20
- package/dist/model/MatchRequest.js +23 -63
- package/dist/model/MatchTypeEnum.js +0 -12
- package/dist/model/MatchedEnergyDataPoint.js +14 -39
- package/dist/model/MatchingConsumerRequest.js +7 -24
- package/dist/model/MatchingSiteRequest.js +7 -24
- package/dist/model/OrganizationTypeEnum.js +0 -16
- package/dist/model/PaginatedActivitiesList.js +6 -23
- package/dist/model/PaginatedConsumerList.js +6 -23
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +6 -23
- package/dist/model/PaginatedConsumptionSiteContractList.js +6 -23
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +6 -23
- package/dist/model/PaginatedEmissionFactorList.js +6 -23
- package/dist/model/PaginatedEnergySourcePreferenceList.js +6 -23
- package/dist/model/PaginatedGridOperatorList.js +6 -23
- package/dist/model/PaginatedImportRequestList.js +6 -23
- package/dist/model/PaginatedImportedEnergyDataPointList.js +6 -23
- package/dist/model/PaginatedIssuerList.js +6 -23
- package/dist/model/PaginatedLocationList.js +6 -23
- package/dist/model/PaginatedMatchRequestList.js +6 -23
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +6 -23
- package/dist/model/PaginatedProducerList.js +6 -23
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +6 -23
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +6 -23
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +6 -23
- package/dist/model/PaginatedRetailerList.js +6 -23
- package/dist/model/PaginatedSmartContractList.js +6 -23
- package/dist/model/PaginatedUnprocessedRowList.js +6 -23
- package/dist/model/PaginatedUploadedCertificateListorDetailList.js +6 -23
- package/dist/model/PaginatedUploadedFileList.js +6 -23
- package/dist/model/PaginatedUserList.js +6 -23
- package/dist/model/PatchedConsumer.js +13 -37
- package/dist/model/PatchedConsumptionDataPointUpdate.js +24 -59
- package/dist/model/PatchedConsumptionSite.js +15 -41
- package/dist/model/PatchedEmissionFactor.js +9 -28
- package/dist/model/PatchedEnergySourcePreference.js +10 -32
- package/dist/model/PatchedGridOperator.js +11 -33
- package/dist/model/PatchedIssuer.js +11 -33
- package/dist/model/PatchedLocation.js +19 -48
- package/dist/model/PatchedProducer.js +11 -33
- package/dist/model/PatchedProductionDataPointUpdate.js +18 -47
- package/dist/model/PatchedProductionSiteUpdate.js +20 -51
- package/dist/model/PatchedRetailer.js +12 -35
- package/dist/model/PatchedSmartContract.js +9 -28
- package/dist/model/PatchedUser.js +18 -47
- package/dist/model/PatchedUserDetail.js +18 -47
- package/dist/model/PriorityEnum.js +0 -18
- package/dist/model/Producer.js +11 -33
- package/dist/model/ProductionDataFileList.js +8 -26
- package/dist/model/ProductionDataFromEpiasRequest.js +11 -36
- package/dist/model/ProductionDataPointCreate.js +18 -47
- package/dist/model/ProductionDataPointListOrDetail.js +19 -53
- package/dist/model/ProductionDataPointUpdate.js +18 -47
- package/dist/model/ProductionSite.js +20 -51
- package/dist/model/ProductionSiteFileUpload.js +12 -34
- package/dist/model/ProductionSiteListOrDetail.js +18 -48
- package/dist/model/ProductionSiteUpdate.js +20 -51
- package/dist/model/Register.js +14 -38
- package/dist/model/Retailer.js +12 -35
- package/dist/model/SmartContract.js +9 -28
- package/dist/model/Status619Enum.js +0 -13
- package/dist/model/Token.js +3 -16
- package/dist/model/TypeEnum.js +0 -13
- package/dist/model/UnprocessedRow.js +9 -28
- package/dist/model/UploadedCertificate.js +12 -35
- package/dist/model/UploadedCertificateListorDetail.js +12 -36
- package/dist/model/UploadedFile.js +10 -32
- package/dist/model/User.js +18 -47
- package/dist/model/UserDetail.js +18 -47
- 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.
|
|
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;
|
|
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;
|
|
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'];
|
|
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;
|
|
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;
|
|
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
|
-
}
|
|
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;
|