green_link_api 0.49.7 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -36
- package/dist/ApiClient.js +3 -6
- package/dist/api/BlockchainApi.js +283 -0
- package/dist/api/EnergyAssetsApi.js +32 -30
- package/dist/api/EnergyDataApi.js +139 -40
- package/dist/api/HealthCheckApi.js +2 -2
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -2
- package/dist/api/LocationsApi.js +9 -9
- package/dist/api/MaintenanceCheckApi.js +2 -2
- package/dist/api/OrganizationprofilesApi.js +7 -7
- package/dist/api/OrganizationsApi.js +31 -31
- package/dist/api/SchemaApi.js +2 -2
- package/dist/api/SentryDebugApi.js +2 -2
- package/dist/api/UploadedfilesApi.js +226 -0
- package/dist/api/UsersApi.js +13 -230
- package/dist/index.js +105 -41
- package/dist/model/BlockchainTransaction.js +172 -0
- package/dist/model/Consumer.js +1 -1
- package/dist/model/ConsumptionDataFileList.js +1 -1
- package/dist/model/ConsumptionDataFromRetailer.js +1 -1
- package/dist/model/ConsumptionDataPointCreate.js +11 -11
- package/dist/model/ConsumptionDataPointListOrDetail.js +20 -13
- package/dist/model/ConsumptionDataPointUpdate.js +11 -11
- package/dist/model/ConsumptionSite.js +1 -1
- package/dist/model/ConsumptionSiteCreate.js +195 -0
- package/dist/model/ConsumptionSiteFileUpload.js +1 -1
- package/dist/model/ConsumptionSiteFromRetailer.js +1 -1
- package/dist/model/ConsumptionSiteListOrDetail.js +1 -1
- package/dist/model/ConsumptionSiteMany.js +1 -1
- package/dist/model/ContentTypeEnum.js +54 -0
- package/dist/model/EmissionFactor.js +1 -1
- package/dist/model/EnergySourcePreference.js +1 -1
- package/dist/model/GetFromEpias.js +1 -1
- package/dist/model/GridOperator.js +1 -1
- package/dist/model/Issuer.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login.js +1 -1
- package/dist/model/MatchRequest.js +1 -1
- package/dist/model/MatchedEnergyDataPoint.js +12 -13
- package/dist/model/MatchingConsumerRequest.js +1 -1
- package/dist/model/MatchingSiteRequest.js +1 -1
- package/dist/model/PaginatedConsumerList.js +1 -1
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +1 -1
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +1 -1
- package/dist/model/PaginatedEmissionFactorList.js +1 -1
- package/dist/model/PaginatedEnergySourcePreferenceList.js +1 -1
- package/dist/model/PaginatedGridOperatorList.js +1 -1
- package/dist/model/PaginatedIssuerList.js +1 -1
- package/dist/model/PaginatedLocationList.js +1 -1
- package/dist/model/PaginatedMatchRequestList.js +1 -1
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +1 -1
- package/dist/model/PaginatedProducerList.js +1 -1
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +104 -0
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +1 -1
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +1 -1
- package/dist/model/PaginatedRetailerList.js +1 -1
- package/dist/model/PaginatedSmartContractList.js +104 -0
- package/dist/model/PaginatedUnprocessedRowList.js +104 -0
- package/dist/model/PaginatedUploadedFileList.js +104 -0
- package/dist/model/PaginatedUserList.js +1 -1
- package/dist/model/PatchedConsumer.js +1 -1
- package/dist/model/PatchedConsumptionDataPointUpdate.js +11 -11
- package/dist/model/PatchedConsumptionSite.js +1 -1
- package/dist/model/PatchedEmissionFactor.js +1 -1
- package/dist/model/PatchedEnergySourcePreference.js +1 -1
- package/dist/model/PatchedGridOperator.js +1 -1
- package/dist/model/PatchedIssuer.js +1 -1
- package/dist/model/PatchedLocation.js +1 -1
- package/dist/model/PatchedProducer.js +1 -1
- package/dist/model/PatchedProductionDataPointUpdate.js +12 -12
- package/dist/model/PatchedProductionSiteUpdate.js +2 -1
- package/dist/model/PatchedRetailer.js +1 -1
- package/dist/model/PatchedSmartContract.js +132 -0
- package/dist/model/PatchedUser.js +3 -1
- package/dist/model/PatchedUserDetail.js +3 -1
- package/dist/model/PriorityEnum.js +6 -0
- package/dist/model/Producer.js +1 -1
- package/dist/model/ProductionDataFileList.js +1 -1
- package/dist/model/ProductionDataFromEpiasRequest.js +167 -0
- package/dist/model/ProductionDataPointCreate.js +12 -12
- package/dist/model/ProductionDataPointListOrDetail.js +21 -14
- package/dist/model/ProductionDataPointUpdate.js +12 -12
- package/dist/model/ProductionSite.js +5 -6
- package/dist/model/ProductionSiteFileUpload.js +1 -1
- package/dist/model/ProductionSiteListOrDetail.js +1 -1
- package/dist/model/ProductionSiteUpdate.js +5 -6
- package/dist/model/Register.js +8 -5
- package/dist/model/Retailer.js +1 -1
- package/dist/model/SmartContract.js +137 -0
- package/dist/model/{VerifyEmail.js → Token.js} +18 -17
- package/dist/model/TypeEnum.js +52 -0
- package/dist/model/UnprocessedRow.js +140 -0
- package/dist/model/UploadedFile.js +166 -0
- package/dist/model/User.js +3 -1
- package/dist/model/UserDetail.js +3 -1
- package/package.json +1 -1
- package/dist/model/JWT.js +0 -103
- package/dist/model/PasswordChange.js +0 -100
- package/dist/model/PasswordReset.js +0 -79
- package/dist/model/PasswordResetConfirm.js +0 -112
- package/dist/model/RestAuthDetail.js +0 -75
- package/dist/model/TokenRefresh.js +0 -87
- package/dist/model/TokenVerify.js +0 -78
|
@@ -9,6 +9,8 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
9
9
|
|
|
10
10
|
var _ConsumptionSite = _interopRequireDefault(require("../model/ConsumptionSite"));
|
|
11
11
|
|
|
12
|
+
var _ConsumptionSiteCreate = _interopRequireDefault(require("../model/ConsumptionSiteCreate"));
|
|
13
|
+
|
|
12
14
|
var _ConsumptionSiteFileUpload = _interopRequireDefault(require("../model/ConsumptionSiteFileUpload"));
|
|
13
15
|
|
|
14
16
|
var _ConsumptionSiteFromRetailer = _interopRequireDefault(require("../model/ConsumptionSiteFromRetailer"));
|
|
@@ -44,7 +46,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
44
46
|
/**
|
|
45
47
|
* EnergyAssets service.
|
|
46
48
|
* @module api/EnergyAssetsApi
|
|
47
|
-
* @version 0.
|
|
49
|
+
* @version 0.55.0
|
|
48
50
|
*/
|
|
49
51
|
var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
50
52
|
/**
|
|
@@ -63,35 +65,35 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
63
65
|
* Callback function to receive the result of the energyAssetsConsumptionSitesCreate operation.
|
|
64
66
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesCreateCallback
|
|
65
67
|
* @param {String} error Error message, if any.
|
|
66
|
-
* @param {module:model/
|
|
68
|
+
* @param {module:model/ConsumptionSiteCreate} data The data returned by the service call.
|
|
67
69
|
* @param {String} response The complete HTTP response.
|
|
68
70
|
*/
|
|
69
71
|
|
|
70
72
|
/**
|
|
71
73
|
* **Create a specific consumption site.** User should be *authenticated* and have an *active* (is_active=True) account. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Retailer
|
|
72
|
-
* @param {module:model/
|
|
74
|
+
* @param {module:model/ConsumptionSiteCreate} consumptionSiteCreate
|
|
73
75
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
74
|
-
* data is of type: {@link module:model/
|
|
76
|
+
* data is of type: {@link module:model/ConsumptionSiteCreate}
|
|
75
77
|
*/
|
|
76
78
|
|
|
77
79
|
|
|
78
80
|
_createClass(EnergyAssetsApi, [{
|
|
79
81
|
key: "energyAssetsConsumptionSitesCreate",
|
|
80
|
-
value: function energyAssetsConsumptionSitesCreate(
|
|
81
|
-
var postBody =
|
|
82
|
+
value: function energyAssetsConsumptionSitesCreate(consumptionSiteCreate, callback) {
|
|
83
|
+
var postBody = consumptionSiteCreate; // verify the required parameter 'consumptionSiteCreate' is set
|
|
82
84
|
|
|
83
|
-
if (
|
|
84
|
-
throw new Error("Missing the required parameter '
|
|
85
|
+
if (consumptionSiteCreate === undefined || consumptionSiteCreate === null) {
|
|
86
|
+
throw new Error("Missing the required parameter 'consumptionSiteCreate' when calling energyAssetsConsumptionSitesCreate");
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
var pathParams = {};
|
|
88
90
|
var queryParams = {};
|
|
89
91
|
var headerParams = {};
|
|
90
92
|
var formParams = {};
|
|
91
|
-
var authNames = ['
|
|
93
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
92
94
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
93
95
|
var accepts = ['application/json'];
|
|
94
|
-
var returnType =
|
|
96
|
+
var returnType = _ConsumptionSiteCreate["default"];
|
|
95
97
|
return this.apiClient.callApi('/energy-assets/consumption-sites/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
96
98
|
}
|
|
97
99
|
/**
|
|
@@ -103,7 +105,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
103
105
|
*/
|
|
104
106
|
|
|
105
107
|
/**
|
|
106
|
-
* **Delete a specific consumption site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:**
|
|
108
|
+
* **Delete a specific consumption site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Consumption sites should be associated to a consumer managed by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Retailer
|
|
107
109
|
* @param {String} id A UUID string identifying this consumption site.
|
|
108
110
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
109
111
|
*/
|
|
@@ -123,7 +125,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
123
125
|
var queryParams = {};
|
|
124
126
|
var headerParams = {};
|
|
125
127
|
var formParams = {};
|
|
126
|
-
var authNames = ['
|
|
128
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
127
129
|
var contentTypes = [];
|
|
128
130
|
var accepts = [];
|
|
129
131
|
var returnType = null;
|
|
@@ -156,7 +158,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
156
158
|
var queryParams = {};
|
|
157
159
|
var headerParams = {};
|
|
158
160
|
var formParams = {};
|
|
159
|
-
var authNames = ['
|
|
161
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
160
162
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
161
163
|
var accepts = [];
|
|
162
164
|
var returnType = null;
|
|
@@ -215,7 +217,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
215
217
|
};
|
|
216
218
|
var headerParams = {};
|
|
217
219
|
var formParams = {};
|
|
218
|
-
var authNames = ['
|
|
220
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
219
221
|
var contentTypes = [];
|
|
220
222
|
var accepts = ['application/json'];
|
|
221
223
|
var returnType = _PaginatedConsumptionSiteListOrDetailList["default"];
|
|
@@ -230,7 +232,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
230
232
|
*/
|
|
231
233
|
|
|
232
234
|
/**
|
|
233
|
-
* **Add multiple consumption sites** User should be *authenticated* and have an *active* (is_active=True) account. **Note:**
|
|
235
|
+
* **Add multiple consumption sites** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Consumption sites should be added to a consumer managed by the user's organization. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Retailer
|
|
234
236
|
* @param {Array.<module:model/ConsumptionSiteMany>} consumptionSiteMany
|
|
235
237
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesManyCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
236
238
|
*/
|
|
@@ -248,7 +250,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
248
250
|
var queryParams = {};
|
|
249
251
|
var headerParams = {};
|
|
250
252
|
var formParams = {};
|
|
251
|
-
var authNames = ['
|
|
253
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
252
254
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
253
255
|
var accepts = [];
|
|
254
256
|
var returnType = null;
|
|
@@ -287,7 +289,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
287
289
|
var queryParams = {};
|
|
288
290
|
var headerParams = {};
|
|
289
291
|
var formParams = {};
|
|
290
|
-
var authNames = ['
|
|
292
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
291
293
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
292
294
|
var accepts = ['application/json'];
|
|
293
295
|
var returnType = _ConsumptionSite["default"];
|
|
@@ -323,7 +325,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
323
325
|
var queryParams = {};
|
|
324
326
|
var headerParams = {};
|
|
325
327
|
var formParams = {};
|
|
326
|
-
var authNames = ['
|
|
328
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
327
329
|
var contentTypes = [];
|
|
328
330
|
var accepts = ['application/json'];
|
|
329
331
|
var returnType = _ConsumptionSiteListOrDetail["default"];
|
|
@@ -365,7 +367,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
365
367
|
var queryParams = {};
|
|
366
368
|
var headerParams = {};
|
|
367
369
|
var formParams = {};
|
|
368
|
-
var authNames = ['
|
|
370
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
369
371
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
370
372
|
var accepts = ['application/json'];
|
|
371
373
|
var returnType = _ConsumptionSite["default"];
|
|
@@ -380,7 +382,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
380
382
|
*/
|
|
381
383
|
|
|
382
384
|
/**
|
|
383
|
-
* **Add consumption sites by uploading an Excel file .** User should be *authenticated* and have an *active* (is_active=True) account. **Note:**
|
|
385
|
+
* **Add consumption sites by uploading an Excel file .** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Consumption sites should be associated to a consumer managed by the user's organization. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Retailer
|
|
384
386
|
* @param {module:model/ConsumptionSiteFileUpload} consumptionSiteFileUpload
|
|
385
387
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesUploadFileCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
386
388
|
* data is of type: {@link module:model/ConsumptionSite}
|
|
@@ -399,7 +401,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
399
401
|
var queryParams = {};
|
|
400
402
|
var headerParams = {};
|
|
401
403
|
var formParams = {};
|
|
402
|
-
var authNames = ['
|
|
404
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
403
405
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
404
406
|
var accepts = ['application/json'];
|
|
405
407
|
var returnType = _ConsumptionSite["default"];
|
|
@@ -433,7 +435,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
433
435
|
var queryParams = {};
|
|
434
436
|
var headerParams = {};
|
|
435
437
|
var formParams = {};
|
|
436
|
-
var authNames = ['
|
|
438
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
437
439
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
438
440
|
var accepts = ['application/json'];
|
|
439
441
|
var returnType = _ProductionSite["default"];
|
|
@@ -448,7 +450,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
448
450
|
*/
|
|
449
451
|
|
|
450
452
|
/**
|
|
451
|
-
* **Delete a specific production site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:**
|
|
453
|
+
* **Delete a specific production site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Production sites should be associated to a producer managed by the user's organization. **Roles required**: Admin **User employed by an active allowed organization**: Grid Operator
|
|
452
454
|
* @param {String} id A UUID string identifying this production site.
|
|
453
455
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
454
456
|
*/
|
|
@@ -468,7 +470,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
468
470
|
var queryParams = {};
|
|
469
471
|
var headerParams = {};
|
|
470
472
|
var formParams = {};
|
|
471
|
-
var authNames = ['
|
|
473
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
472
474
|
var contentTypes = [];
|
|
473
475
|
var accepts = [];
|
|
474
476
|
var returnType = null;
|
|
@@ -537,7 +539,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
537
539
|
};
|
|
538
540
|
var headerParams = {};
|
|
539
541
|
var formParams = {};
|
|
540
|
-
var authNames = ['
|
|
542
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
541
543
|
var contentTypes = [];
|
|
542
544
|
var accepts = ['application/json'];
|
|
543
545
|
var returnType = _PaginatedProductionSiteListOrDetailList["default"];
|
|
@@ -576,7 +578,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
576
578
|
var queryParams = {};
|
|
577
579
|
var headerParams = {};
|
|
578
580
|
var formParams = {};
|
|
579
|
-
var authNames = ['
|
|
581
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
580
582
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
581
583
|
var accepts = ['application/json'];
|
|
582
584
|
var returnType = _ProductionSiteUpdate["default"];
|
|
@@ -612,7 +614,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
612
614
|
var queryParams = {};
|
|
613
615
|
var headerParams = {};
|
|
614
616
|
var formParams = {};
|
|
615
|
-
var authNames = ['
|
|
617
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
616
618
|
var contentTypes = [];
|
|
617
619
|
var accepts = ['application/json'];
|
|
618
620
|
var returnType = _ProductionSiteListOrDetail["default"];
|
|
@@ -627,7 +629,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
627
629
|
*/
|
|
628
630
|
|
|
629
631
|
/**
|
|
630
|
-
* **Upsert a specific production site.** User should be *authenticated* and have an *active* (is_active=True) account. Note
|
|
632
|
+
* **Upsert a specific production site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Production sites should be associated to a producer managed by the user's organization. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Grid Operator
|
|
631
633
|
* @param {String} id A UUID string identifying this production site.
|
|
632
634
|
* @param {module:model/ProductionSiteUpdate} productionSiteUpdate
|
|
633
635
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesUpdateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
@@ -654,7 +656,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
654
656
|
var queryParams = {};
|
|
655
657
|
var headerParams = {};
|
|
656
658
|
var formParams = {};
|
|
657
|
-
var authNames = ['
|
|
659
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
658
660
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
659
661
|
var accepts = ['application/json'];
|
|
660
662
|
var returnType = _ProductionSiteUpdate["default"];
|
|
@@ -688,7 +690,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
688
690
|
var queryParams = {};
|
|
689
691
|
var headerParams = {};
|
|
690
692
|
var formParams = {};
|
|
691
|
-
var authNames = ['
|
|
693
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
692
694
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
693
695
|
var accepts = ['application/json'];
|
|
694
696
|
var returnType = _ProductionSite["default"];
|