green_link_api 0.49.5 → 0.51.3
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 +15 -37
- package/dist/ApiClient.js +5 -8
- package/dist/api/EnergyAssetsApi.js +104 -34
- package/dist/api/EnergyDataApi.js +81 -46
- package/dist/api/HealthCheckApi.js +3 -3
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +3 -3
- package/dist/api/LocationsApi.js +10 -10
- package/dist/api/MaintenanceCheckApi.js +3 -3
- package/dist/api/OrganizationprofilesApi.js +8 -8
- package/dist/api/OrganizationsApi.js +32 -32
- package/dist/api/SchemaApi.js +3 -3
- package/dist/api/SentryDebugApi.js +3 -3
- package/dist/api/UsersApi.js +14 -231
- package/dist/index.js +27 -59
- package/dist/model/Consumer.js +2 -2
- package/dist/model/ConsumptionDataFileList.js +2 -2
- package/dist/model/ConsumptionDataFromRetailer.js +101 -0
- package/dist/model/ConsumptionDataPointCreate.js +2 -2
- package/dist/model/ConsumptionDataPointListOrDetail.js +2 -2
- package/dist/model/ConsumptionDataPointUpdate.js +2 -2
- package/dist/model/ConsumptionSite.js +2 -2
- package/dist/model/ConsumptionSiteFileUpload.js +2 -2
- package/dist/model/{TokenRefresh.js → ConsumptionSiteFromRetailer.js} +25 -33
- package/dist/model/ConsumptionSiteListOrDetail.js +2 -2
- package/dist/model/ConsumptionSiteMany.js +195 -0
- package/dist/model/EmissionFactor.js +2 -2
- package/dist/model/EnergySourceEnum.js +1 -1
- package/dist/model/EnergySourcePreference.js +2 -2
- package/dist/model/GetFromEpias.js +2 -2
- package/dist/model/GridOperator.js +2 -2
- package/dist/model/Issuer.js +2 -2
- package/dist/model/Location.js +2 -2
- package/dist/model/Login.js +2 -2
- package/dist/model/MatchRequest.js +2 -2
- package/dist/model/MatchTypeEnum.js +1 -1
- package/dist/model/MatchedEnergyDataPoint.js +2 -2
- package/dist/model/MatchingConsumerRequest.js +2 -2
- package/dist/model/MatchingSiteRequest.js +2 -2
- package/dist/model/OrganizationTypeEnum.js +1 -1
- package/dist/model/PaginatedConsumerList.js +2 -2
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedEmissionFactorList.js +2 -2
- package/dist/model/PaginatedEnergySourcePreferenceList.js +2 -2
- package/dist/model/PaginatedGridOperatorList.js +2 -2
- package/dist/model/PaginatedIssuerList.js +2 -2
- package/dist/model/PaginatedLocationList.js +2 -2
- package/dist/model/PaginatedMatchRequestList.js +2 -2
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +2 -2
- package/dist/model/PaginatedProducerList.js +2 -2
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedRetailerList.js +2 -2
- package/dist/model/PaginatedUserList.js +2 -2
- package/dist/model/PatchedConsumer.js +2 -2
- package/dist/model/PatchedConsumptionDataPointUpdate.js +2 -2
- package/dist/model/PatchedConsumptionSite.js +2 -2
- package/dist/model/PatchedEmissionFactor.js +2 -2
- package/dist/model/PatchedEnergySourcePreference.js +2 -2
- package/dist/model/PatchedGridOperator.js +2 -2
- package/dist/model/PatchedIssuer.js +2 -2
- package/dist/model/PatchedLocation.js +2 -2
- package/dist/model/PatchedProducer.js +2 -2
- package/dist/model/PatchedProductionDataPointUpdate.js +2 -2
- package/dist/model/PatchedProductionSiteUpdate.js +2 -2
- package/dist/model/PatchedRetailer.js +2 -2
- package/dist/model/PatchedUser.js +13 -2
- package/dist/model/PatchedUserDetail.js +13 -2
- package/dist/model/PriorityEnum.js +1 -1
- package/dist/model/Producer.js +2 -2
- package/dist/model/ProductionDataFileList.js +2 -2
- package/dist/model/ProductionDataPointCreate.js +2 -2
- package/dist/model/ProductionDataPointListOrDetail.js +2 -2
- package/dist/model/ProductionDataPointUpdate.js +2 -2
- package/dist/model/ProductionSite.js +7 -5
- package/dist/model/ProductionSiteFileUpload.js +2 -2
- package/dist/model/ProductionSiteListOrDetail.js +2 -2
- package/dist/model/ProductionSiteUpdate.js +7 -5
- package/dist/model/Register.js +18 -6
- package/dist/model/Retailer.js +2 -2
- package/dist/model/StatusEnum.js +1 -1
- package/dist/model/{VerifyEmail.js → Token.js} +19 -18
- package/dist/model/User.js +13 -2
- package/dist/model/UserDetail.js +13 -2
- 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
|
@@ -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.
|
|
8
|
-
- Package version: 0.
|
|
7
|
+
- API version: 0.51.3
|
|
8
|
+
- Package version: 0.51.3
|
|
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
|
|
@@ -140,25 +131,28 @@ Class | Method | HTTP request | Description
|
|
|
140
131
|
------------ | ------------- | ------------- | -------------
|
|
141
132
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesCreate) | **POST** /energy-assets/consumption-sites/ |
|
|
142
133
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesDestroy**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesDestroy) | **DELETE** /energy-assets/consumption-sites/{id}/ |
|
|
134
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesImportDataCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesImportDataCreate) | **POST** /energy-assets/consumption-sites/import-data/ |
|
|
143
135
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesList**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesList) | **GET** /energy-assets/consumption-sites/ |
|
|
136
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesManyCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesManyCreate) | **POST** /energy-assets/consumption-sites/many/ |
|
|
144
137
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesPartialUpdate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesPartialUpdate) | **PATCH** /energy-assets/consumption-sites/{id}/ |
|
|
145
138
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesRetrieve**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesRetrieve) | **GET** /energy-assets/consumption-sites/{id}/ |
|
|
146
139
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesUpdate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesUpdate) | **PUT** /energy-assets/consumption-sites/{id}/ |
|
|
147
|
-
*GreenLinkApi.EnergyAssetsApi* | [**
|
|
140
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsConsumptionSitesUploadFileCreate**](docs/EnergyAssetsApi.md#energyAssetsConsumptionSitesUploadFileCreate) | **POST** /energy-assets/consumption-sites/upload-file/ |
|
|
148
141
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsProductionSitesCreate**](docs/EnergyAssetsApi.md#energyAssetsProductionSitesCreate) | **POST** /energy-assets/production-sites/ |
|
|
149
142
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsProductionSitesDestroy**](docs/EnergyAssetsApi.md#energyAssetsProductionSitesDestroy) | **DELETE** /energy-assets/production-sites/{id}/ |
|
|
150
143
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsProductionSitesList**](docs/EnergyAssetsApi.md#energyAssetsProductionSitesList) | **GET** /energy-assets/production-sites/ |
|
|
151
144
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsProductionSitesPartialUpdate**](docs/EnergyAssetsApi.md#energyAssetsProductionSitesPartialUpdate) | **PATCH** /energy-assets/production-sites/{id}/ |
|
|
152
145
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsProductionSitesRetrieve**](docs/EnergyAssetsApi.md#energyAssetsProductionSitesRetrieve) | **GET** /energy-assets/production-sites/{id}/ |
|
|
153
146
|
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsProductionSitesUpdate**](docs/EnergyAssetsApi.md#energyAssetsProductionSitesUpdate) | **PUT** /energy-assets/production-sites/{id}/ |
|
|
154
|
-
*GreenLinkApi.EnergyAssetsApi* | [**
|
|
147
|
+
*GreenLinkApi.EnergyAssetsApi* | [**energyAssetsProductionSitesUploadFileCreate**](docs/EnergyAssetsApi.md#energyAssetsProductionSitesUploadFileCreate) | **POST** /energy-assets/production-sites/upload-file/ |
|
|
155
148
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataCreate**](docs/EnergyDataApi.md#energyDataConsumptionDataCreate) | **POST** /energy-data/consumption-data/ |
|
|
156
149
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataDestroy**](docs/EnergyDataApi.md#energyDataConsumptionDataDestroy) | **DELETE** /energy-data/consumption-data/{id}/ |
|
|
150
|
+
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataImportDataCreate**](docs/EnergyDataApi.md#energyDataConsumptionDataImportDataCreate) | **POST** /energy-data/consumption-data/import-data/ |
|
|
157
151
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataList**](docs/EnergyDataApi.md#energyDataConsumptionDataList) | **GET** /energy-data/consumption-data/ |
|
|
158
152
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataPartialUpdate**](docs/EnergyDataApi.md#energyDataConsumptionDataPartialUpdate) | **PATCH** /energy-data/consumption-data/{id}/ |
|
|
159
153
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataRetrieve**](docs/EnergyDataApi.md#energyDataConsumptionDataRetrieve) | **GET** /energy-data/consumption-data/{id}/ |
|
|
160
154
|
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataUpdate**](docs/EnergyDataApi.md#energyDataConsumptionDataUpdate) | **PUT** /energy-data/consumption-data/{id}/ |
|
|
161
|
-
*GreenLinkApi.EnergyDataApi* | [**
|
|
155
|
+
*GreenLinkApi.EnergyDataApi* | [**energyDataConsumptionDataUploadFileCreate**](docs/EnergyDataApi.md#energyDataConsumptionDataUploadFileCreate) | **POST** /energy-data/consumption-data/upload-file/ |
|
|
162
156
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorCreate**](docs/EnergyDataApi.md#energyDataEmissionFactorCreate) | **POST** /energy-data/emission-factor/ |
|
|
163
157
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorDestroy**](docs/EnergyDataApi.md#energyDataEmissionFactorDestroy) | **DELETE** /energy-data/emission-factor/{id}/ |
|
|
164
158
|
*GreenLinkApi.EnergyDataApi* | [**energyDataEmissionFactorList**](docs/EnergyDataApi.md#energyDataEmissionFactorList) | **GET** /energy-data/emission-factor/ |
|
|
@@ -179,7 +173,7 @@ Class | Method | HTTP request | Description
|
|
|
179
173
|
*GreenLinkApi.EnergyDataApi* | [**energyDataProductionDataPartialUpdate**](docs/EnergyDataApi.md#energyDataProductionDataPartialUpdate) | **PATCH** /energy-data/production-data/{id}/ |
|
|
180
174
|
*GreenLinkApi.EnergyDataApi* | [**energyDataProductionDataRetrieve**](docs/EnergyDataApi.md#energyDataProductionDataRetrieve) | **GET** /energy-data/production-data/{id}/ |
|
|
181
175
|
*GreenLinkApi.EnergyDataApi* | [**energyDataProductionDataUpdate**](docs/EnergyDataApi.md#energyDataProductionDataUpdate) | **PUT** /energy-data/production-data/{id}/ |
|
|
182
|
-
*GreenLinkApi.EnergyDataApi* | [**
|
|
176
|
+
*GreenLinkApi.EnergyDataApi* | [**energyDataProductionDataUploadFileCreate**](docs/EnergyDataApi.md#energyDataProductionDataUploadFileCreate) | **POST** /energy-data/production-data/upload-file/ |
|
|
183
177
|
*GreenLinkApi.HealthCheckApi* | [**healthCheckRetrieve**](docs/HealthCheckApi.md#healthCheckRetrieve) | **GET** /health-check/ |
|
|
184
178
|
*GreenLinkApi.LicensedProductionSitesOnEpiasApi* | [**licensedProductionSitesOnEpiasRetrieve**](docs/LicensedProductionSitesOnEpiasApi.md#licensedProductionSitesOnEpiasRetrieve) | **GET** /licensed-production-sites-on-epias/ |
|
|
185
179
|
*GreenLinkApi.LocationsApi* | [**locationsConsumptionSitesRetrieve**](docs/LocationsApi.md#locationsConsumptionSitesRetrieve) | **GET** /locations/consumption-sites/ |
|
|
@@ -234,36 +228,32 @@ Class | Method | HTTP request | Description
|
|
|
234
228
|
*GreenLinkApi.UsersApi* | [**usersLoginCreate**](docs/UsersApi.md#usersLoginCreate) | **POST** /users/login/ |
|
|
235
229
|
*GreenLinkApi.UsersApi* | [**usersLogoutCreate**](docs/UsersApi.md#usersLogoutCreate) | **POST** /users/logout/ |
|
|
236
230
|
*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
231
|
*GreenLinkApi.UsersApi* | [**usersRegistrationCreate**](docs/UsersApi.md#usersRegistrationCreate) | **POST** /users/registration/ |
|
|
241
232
|
*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
233
|
*GreenLinkApi.UsersApi* | [**usersUserDetailsPartialUpdate**](docs/UsersApi.md#usersUserDetailsPartialUpdate) | **PATCH** /users/user-details/ |
|
|
245
234
|
*GreenLinkApi.UsersApi* | [**usersUserDetailsRetrieve**](docs/UsersApi.md#usersUserDetailsRetrieve) | **GET** /users/user-details/ |
|
|
246
235
|
*GreenLinkApi.UsersApi* | [**usersUserDetailsUpdate**](docs/UsersApi.md#usersUserDetailsUpdate) | **PUT** /users/user-details/ |
|
|
247
|
-
*GreenLinkApi.UsersApi* | [**usersVerifyEmailCreate**](docs/UsersApi.md#usersVerifyEmailCreate) | **POST** /users/verify-email/ |
|
|
248
236
|
|
|
249
237
|
|
|
250
238
|
## Documentation for Models
|
|
251
239
|
|
|
252
240
|
- [GreenLinkApi.Consumer](docs/Consumer.md)
|
|
253
241
|
- [GreenLinkApi.ConsumptionDataFileList](docs/ConsumptionDataFileList.md)
|
|
242
|
+
- [GreenLinkApi.ConsumptionDataFromRetailer](docs/ConsumptionDataFromRetailer.md)
|
|
254
243
|
- [GreenLinkApi.ConsumptionDataPointCreate](docs/ConsumptionDataPointCreate.md)
|
|
255
244
|
- [GreenLinkApi.ConsumptionDataPointListOrDetail](docs/ConsumptionDataPointListOrDetail.md)
|
|
256
245
|
- [GreenLinkApi.ConsumptionDataPointUpdate](docs/ConsumptionDataPointUpdate.md)
|
|
257
246
|
- [GreenLinkApi.ConsumptionSite](docs/ConsumptionSite.md)
|
|
258
247
|
- [GreenLinkApi.ConsumptionSiteFileUpload](docs/ConsumptionSiteFileUpload.md)
|
|
248
|
+
- [GreenLinkApi.ConsumptionSiteFromRetailer](docs/ConsumptionSiteFromRetailer.md)
|
|
259
249
|
- [GreenLinkApi.ConsumptionSiteListOrDetail](docs/ConsumptionSiteListOrDetail.md)
|
|
250
|
+
- [GreenLinkApi.ConsumptionSiteMany](docs/ConsumptionSiteMany.md)
|
|
260
251
|
- [GreenLinkApi.EmissionFactor](docs/EmissionFactor.md)
|
|
261
252
|
- [GreenLinkApi.EnergySourceEnum](docs/EnergySourceEnum.md)
|
|
262
253
|
- [GreenLinkApi.EnergySourcePreference](docs/EnergySourcePreference.md)
|
|
263
254
|
- [GreenLinkApi.GetFromEpias](docs/GetFromEpias.md)
|
|
264
255
|
- [GreenLinkApi.GridOperator](docs/GridOperator.md)
|
|
265
256
|
- [GreenLinkApi.Issuer](docs/Issuer.md)
|
|
266
|
-
- [GreenLinkApi.JWT](docs/JWT.md)
|
|
267
257
|
- [GreenLinkApi.Location](docs/Location.md)
|
|
268
258
|
- [GreenLinkApi.Login](docs/Login.md)
|
|
269
259
|
- [GreenLinkApi.MatchRequest](docs/MatchRequest.md)
|
|
@@ -287,9 +277,6 @@ Class | Method | HTTP request | Description
|
|
|
287
277
|
- [GreenLinkApi.PaginatedProductionSiteListOrDetailList](docs/PaginatedProductionSiteListOrDetailList.md)
|
|
288
278
|
- [GreenLinkApi.PaginatedRetailerList](docs/PaginatedRetailerList.md)
|
|
289
279
|
- [GreenLinkApi.PaginatedUserList](docs/PaginatedUserList.md)
|
|
290
|
-
- [GreenLinkApi.PasswordChange](docs/PasswordChange.md)
|
|
291
|
-
- [GreenLinkApi.PasswordReset](docs/PasswordReset.md)
|
|
292
|
-
- [GreenLinkApi.PasswordResetConfirm](docs/PasswordResetConfirm.md)
|
|
293
280
|
- [GreenLinkApi.PatchedConsumer](docs/PatchedConsumer.md)
|
|
294
281
|
- [GreenLinkApi.PatchedConsumptionDataPointUpdate](docs/PatchedConsumptionDataPointUpdate.md)
|
|
295
282
|
- [GreenLinkApi.PatchedConsumptionSite](docs/PatchedConsumptionSite.md)
|
|
@@ -315,26 +302,17 @@ Class | Method | HTTP request | Description
|
|
|
315
302
|
- [GreenLinkApi.ProductionSiteListOrDetail](docs/ProductionSiteListOrDetail.md)
|
|
316
303
|
- [GreenLinkApi.ProductionSiteUpdate](docs/ProductionSiteUpdate.md)
|
|
317
304
|
- [GreenLinkApi.Register](docs/Register.md)
|
|
318
|
-
- [GreenLinkApi.RestAuthDetail](docs/RestAuthDetail.md)
|
|
319
305
|
- [GreenLinkApi.Retailer](docs/Retailer.md)
|
|
320
306
|
- [GreenLinkApi.StatusEnum](docs/StatusEnum.md)
|
|
321
|
-
- [GreenLinkApi.
|
|
322
|
-
- [GreenLinkApi.TokenVerify](docs/TokenVerify.md)
|
|
307
|
+
- [GreenLinkApi.Token](docs/Token.md)
|
|
323
308
|
- [GreenLinkApi.User](docs/User.md)
|
|
324
309
|
- [GreenLinkApi.UserDetail](docs/UserDetail.md)
|
|
325
|
-
- [GreenLinkApi.VerifyEmail](docs/VerifyEmail.md)
|
|
326
310
|
|
|
327
311
|
|
|
328
312
|
## Documentation for Authorization
|
|
329
313
|
|
|
330
314
|
|
|
331
315
|
|
|
332
|
-
### basicAuth
|
|
333
|
-
|
|
334
|
-
- **Type**: HTTP basic authentication
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
316
|
### cookieAuth
|
|
339
317
|
|
|
340
318
|
|
|
@@ -346,7 +324,7 @@ Class | Method | HTTP request | Description
|
|
|
346
324
|
|
|
347
325
|
### jwtAuth
|
|
348
326
|
|
|
349
|
-
- **Type**: Bearer authentication (
|
|
327
|
+
- **Type**: Bearer authentication (JWT)
|
|
350
328
|
|
|
351
329
|
|
|
352
330
|
|
package/dist/ApiClient.js
CHANGED
|
@@ -11,17 +11,17 @@ var _querystring = _interopRequireDefault(require("querystring"));
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
14
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
14
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
15
15
|
|
|
16
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
17
|
|
|
18
18
|
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); } }
|
|
19
19
|
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @module ApiClient
|
|
24
|
-
* @version 0.
|
|
24
|
+
* @version 0.51.3
|
|
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.51.3/Javascript'
|
|
83
80
|
};
|
|
84
81
|
/**
|
|
85
82
|
* The default HTTP timeout for all API calls.
|
|
@@ -11,8 +11,12 @@ var _ConsumptionSite = _interopRequireDefault(require("../model/ConsumptionSite"
|
|
|
11
11
|
|
|
12
12
|
var _ConsumptionSiteFileUpload = _interopRequireDefault(require("../model/ConsumptionSiteFileUpload"));
|
|
13
13
|
|
|
14
|
+
var _ConsumptionSiteFromRetailer = _interopRequireDefault(require("../model/ConsumptionSiteFromRetailer"));
|
|
15
|
+
|
|
14
16
|
var _ConsumptionSiteListOrDetail = _interopRequireDefault(require("../model/ConsumptionSiteListOrDetail"));
|
|
15
17
|
|
|
18
|
+
var _ConsumptionSiteMany = _interopRequireDefault(require("../model/ConsumptionSiteMany"));
|
|
19
|
+
|
|
16
20
|
var _PaginatedConsumptionSiteListOrDetailList = _interopRequireDefault(require("../model/PaginatedConsumptionSiteListOrDetailList"));
|
|
17
21
|
|
|
18
22
|
var _PaginatedProductionSiteListOrDetailList = _interopRequireDefault(require("../model/PaginatedProductionSiteListOrDetailList"));
|
|
@@ -35,12 +39,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
35
39
|
|
|
36
40
|
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); } }
|
|
37
41
|
|
|
38
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
42
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
39
43
|
|
|
40
44
|
/**
|
|
41
45
|
* EnergyAssets service.
|
|
42
46
|
* @module api/EnergyAssetsApi
|
|
43
|
-
* @version 0.
|
|
47
|
+
* @version 0.51.3
|
|
44
48
|
*/
|
|
45
49
|
var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
46
50
|
/**
|
|
@@ -84,7 +88,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
84
88
|
var queryParams = {};
|
|
85
89
|
var headerParams = {};
|
|
86
90
|
var formParams = {};
|
|
87
|
-
var authNames = ['
|
|
91
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
88
92
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
89
93
|
var accepts = ['application/json'];
|
|
90
94
|
var returnType = _ConsumptionSite["default"];
|
|
@@ -99,7 +103,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
99
103
|
*/
|
|
100
104
|
|
|
101
105
|
/**
|
|
102
|
-
* **Delete a specific consumption site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:**
|
|
106
|
+
* **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
|
|
103
107
|
* @param {String} id A UUID string identifying this consumption site.
|
|
104
108
|
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
105
109
|
*/
|
|
@@ -119,12 +123,45 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
119
123
|
var queryParams = {};
|
|
120
124
|
var headerParams = {};
|
|
121
125
|
var formParams = {};
|
|
122
|
-
var authNames = ['
|
|
126
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
123
127
|
var contentTypes = [];
|
|
124
128
|
var accepts = [];
|
|
125
129
|
var returnType = null;
|
|
126
130
|
return this.apiClient.callApi('/energy-assets/consumption-sites/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
127
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* Callback function to receive the result of the energyAssetsConsumptionSitesImportDataCreate operation.
|
|
134
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesImportDataCreateCallback
|
|
135
|
+
* @param {String} error Error message, if any.
|
|
136
|
+
* @param data This operation does not return a value.
|
|
137
|
+
* @param {String} response The complete HTTP response.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* **Get Consumption Sites from retailer** 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
|
|
142
|
+
* @param {module:model/ConsumptionSiteFromRetailer} consumptionSiteFromRetailer
|
|
143
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesImportDataCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
}, {
|
|
147
|
+
key: "energyAssetsConsumptionSitesImportDataCreate",
|
|
148
|
+
value: function energyAssetsConsumptionSitesImportDataCreate(consumptionSiteFromRetailer, callback) {
|
|
149
|
+
var postBody = consumptionSiteFromRetailer; // verify the required parameter 'consumptionSiteFromRetailer' is set
|
|
150
|
+
|
|
151
|
+
if (consumptionSiteFromRetailer === undefined || consumptionSiteFromRetailer === null) {
|
|
152
|
+
throw new Error("Missing the required parameter 'consumptionSiteFromRetailer' when calling energyAssetsConsumptionSitesImportDataCreate");
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
var pathParams = {};
|
|
156
|
+
var queryParams = {};
|
|
157
|
+
var headerParams = {};
|
|
158
|
+
var formParams = {};
|
|
159
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
160
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
161
|
+
var accepts = [];
|
|
162
|
+
var returnType = null;
|
|
163
|
+
return this.apiClient.callApi('/energy-assets/consumption-sites/import-data/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
164
|
+
}
|
|
128
165
|
/**
|
|
129
166
|
* Callback function to receive the result of the energyAssetsConsumptionSitesList operation.
|
|
130
167
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesListCallback
|
|
@@ -178,12 +215,45 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
178
215
|
};
|
|
179
216
|
var headerParams = {};
|
|
180
217
|
var formParams = {};
|
|
181
|
-
var authNames = ['
|
|
218
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
182
219
|
var contentTypes = [];
|
|
183
220
|
var accepts = ['application/json'];
|
|
184
221
|
var returnType = _PaginatedConsumptionSiteListOrDetailList["default"];
|
|
185
222
|
return this.apiClient.callApi('/energy-assets/consumption-sites/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
186
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* Callback function to receive the result of the energyAssetsConsumptionSitesManyCreate operation.
|
|
226
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesManyCreateCallback
|
|
227
|
+
* @param {String} error Error message, if any.
|
|
228
|
+
* @param data This operation does not return a value.
|
|
229
|
+
* @param {String} response The complete HTTP response.
|
|
230
|
+
*/
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* **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
|
+
* @param {Array.<module:model/ConsumptionSiteMany>} consumptionSiteMany
|
|
235
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesManyCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
236
|
+
*/
|
|
237
|
+
|
|
238
|
+
}, {
|
|
239
|
+
key: "energyAssetsConsumptionSitesManyCreate",
|
|
240
|
+
value: function energyAssetsConsumptionSitesManyCreate(consumptionSiteMany, callback) {
|
|
241
|
+
var postBody = consumptionSiteMany; // verify the required parameter 'consumptionSiteMany' is set
|
|
242
|
+
|
|
243
|
+
if (consumptionSiteMany === undefined || consumptionSiteMany === null) {
|
|
244
|
+
throw new Error("Missing the required parameter 'consumptionSiteMany' when calling energyAssetsConsumptionSitesManyCreate");
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
var pathParams = {};
|
|
248
|
+
var queryParams = {};
|
|
249
|
+
var headerParams = {};
|
|
250
|
+
var formParams = {};
|
|
251
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
252
|
+
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
253
|
+
var accepts = [];
|
|
254
|
+
var returnType = null;
|
|
255
|
+
return this.apiClient.callApi('/energy-assets/consumption-sites/many/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
256
|
+
}
|
|
187
257
|
/**
|
|
188
258
|
* Callback function to receive the result of the energyAssetsConsumptionSitesPartialUpdate operation.
|
|
189
259
|
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesPartialUpdateCallback
|
|
@@ -217,7 +287,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
217
287
|
var queryParams = {};
|
|
218
288
|
var headerParams = {};
|
|
219
289
|
var formParams = {};
|
|
220
|
-
var authNames = ['
|
|
290
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
221
291
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
222
292
|
var accepts = ['application/json'];
|
|
223
293
|
var returnType = _ConsumptionSite["default"];
|
|
@@ -253,7 +323,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
253
323
|
var queryParams = {};
|
|
254
324
|
var headerParams = {};
|
|
255
325
|
var formParams = {};
|
|
256
|
-
var authNames = ['
|
|
326
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
257
327
|
var contentTypes = [];
|
|
258
328
|
var accepts = ['application/json'];
|
|
259
329
|
var returnType = _ConsumptionSiteListOrDetail["default"];
|
|
@@ -295,45 +365,45 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
295
365
|
var queryParams = {};
|
|
296
366
|
var headerParams = {};
|
|
297
367
|
var formParams = {};
|
|
298
|
-
var authNames = ['
|
|
368
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
299
369
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
300
370
|
var accepts = ['application/json'];
|
|
301
371
|
var returnType = _ConsumptionSite["default"];
|
|
302
372
|
return this.apiClient.callApi('/energy-assets/consumption-sites/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
303
373
|
}
|
|
304
374
|
/**
|
|
305
|
-
* Callback function to receive the result of the
|
|
306
|
-
* @callback module:api/EnergyAssetsApi~
|
|
375
|
+
* Callback function to receive the result of the energyAssetsConsumptionSitesUploadFileCreate operation.
|
|
376
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsConsumptionSitesUploadFileCreateCallback
|
|
307
377
|
* @param {String} error Error message, if any.
|
|
308
378
|
* @param {module:model/ConsumptionSite} data The data returned by the service call.
|
|
309
379
|
* @param {String} response The complete HTTP response.
|
|
310
380
|
*/
|
|
311
381
|
|
|
312
382
|
/**
|
|
313
|
-
* **Add consumption sites by uploading an Excel file .** User should be *authenticated* and have an *active* (is_active=True) account. **Note:**
|
|
383
|
+
* **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
|
|
314
384
|
* @param {module:model/ConsumptionSiteFileUpload} consumptionSiteFileUpload
|
|
315
|
-
* @param {module:api/EnergyAssetsApi~
|
|
385
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsConsumptionSitesUploadFileCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
316
386
|
* data is of type: {@link module:model/ConsumptionSite}
|
|
317
387
|
*/
|
|
318
388
|
|
|
319
389
|
}, {
|
|
320
|
-
key: "
|
|
321
|
-
value: function
|
|
390
|
+
key: "energyAssetsConsumptionSitesUploadFileCreate",
|
|
391
|
+
value: function energyAssetsConsumptionSitesUploadFileCreate(consumptionSiteFileUpload, callback) {
|
|
322
392
|
var postBody = consumptionSiteFileUpload; // verify the required parameter 'consumptionSiteFileUpload' is set
|
|
323
393
|
|
|
324
394
|
if (consumptionSiteFileUpload === undefined || consumptionSiteFileUpload === null) {
|
|
325
|
-
throw new Error("Missing the required parameter 'consumptionSiteFileUpload' when calling
|
|
395
|
+
throw new Error("Missing the required parameter 'consumptionSiteFileUpload' when calling energyAssetsConsumptionSitesUploadFileCreate");
|
|
326
396
|
}
|
|
327
397
|
|
|
328
398
|
var pathParams = {};
|
|
329
399
|
var queryParams = {};
|
|
330
400
|
var headerParams = {};
|
|
331
401
|
var formParams = {};
|
|
332
|
-
var authNames = ['
|
|
402
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
333
403
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
334
404
|
var accepts = ['application/json'];
|
|
335
405
|
var returnType = _ConsumptionSite["default"];
|
|
336
|
-
return this.apiClient.callApi('/energy-assets/consumption-sites/
|
|
406
|
+
return this.apiClient.callApi('/energy-assets/consumption-sites/upload-file/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
337
407
|
}
|
|
338
408
|
/**
|
|
339
409
|
* Callback function to receive the result of the energyAssetsProductionSitesCreate operation.
|
|
@@ -363,7 +433,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
363
433
|
var queryParams = {};
|
|
364
434
|
var headerParams = {};
|
|
365
435
|
var formParams = {};
|
|
366
|
-
var authNames = ['
|
|
436
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
367
437
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
368
438
|
var accepts = ['application/json'];
|
|
369
439
|
var returnType = _ProductionSite["default"];
|
|
@@ -378,7 +448,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
378
448
|
*/
|
|
379
449
|
|
|
380
450
|
/**
|
|
381
|
-
* **Delete a specific production site.** User should be *authenticated* and have an *active* (is_active=True) account. **Note:**
|
|
451
|
+
* **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
|
|
382
452
|
* @param {String} id A UUID string identifying this production site.
|
|
383
453
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
384
454
|
*/
|
|
@@ -398,7 +468,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
398
468
|
var queryParams = {};
|
|
399
469
|
var headerParams = {};
|
|
400
470
|
var formParams = {};
|
|
401
|
-
var authNames = ['
|
|
471
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
402
472
|
var contentTypes = [];
|
|
403
473
|
var accepts = [];
|
|
404
474
|
var returnType = null;
|
|
@@ -467,7 +537,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
467
537
|
};
|
|
468
538
|
var headerParams = {};
|
|
469
539
|
var formParams = {};
|
|
470
|
-
var authNames = ['
|
|
540
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
471
541
|
var contentTypes = [];
|
|
472
542
|
var accepts = ['application/json'];
|
|
473
543
|
var returnType = _PaginatedProductionSiteListOrDetailList["default"];
|
|
@@ -506,7 +576,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
506
576
|
var queryParams = {};
|
|
507
577
|
var headerParams = {};
|
|
508
578
|
var formParams = {};
|
|
509
|
-
var authNames = ['
|
|
579
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
510
580
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
511
581
|
var accepts = ['application/json'];
|
|
512
582
|
var returnType = _ProductionSiteUpdate["default"];
|
|
@@ -542,7 +612,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
542
612
|
var queryParams = {};
|
|
543
613
|
var headerParams = {};
|
|
544
614
|
var formParams = {};
|
|
545
|
-
var authNames = ['
|
|
615
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
546
616
|
var contentTypes = [];
|
|
547
617
|
var accepts = ['application/json'];
|
|
548
618
|
var returnType = _ProductionSiteListOrDetail["default"];
|
|
@@ -557,7 +627,7 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
557
627
|
*/
|
|
558
628
|
|
|
559
629
|
/**
|
|
560
|
-
* **Upsert a specific production site.** User should be *authenticated* and have an *active* (is_active=True) account. Note
|
|
630
|
+
* **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
|
|
561
631
|
* @param {String} id A UUID string identifying this production site.
|
|
562
632
|
* @param {module:model/ProductionSiteUpdate} productionSiteUpdate
|
|
563
633
|
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesUpdateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
@@ -584,15 +654,15 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
584
654
|
var queryParams = {};
|
|
585
655
|
var headerParams = {};
|
|
586
656
|
var formParams = {};
|
|
587
|
-
var authNames = ['
|
|
657
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
588
658
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
589
659
|
var accepts = ['application/json'];
|
|
590
660
|
var returnType = _ProductionSiteUpdate["default"];
|
|
591
661
|
return this.apiClient.callApi('/energy-assets/production-sites/{id}/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
592
662
|
}
|
|
593
663
|
/**
|
|
594
|
-
* Callback function to receive the result of the
|
|
595
|
-
* @callback module:api/EnergyAssetsApi~
|
|
664
|
+
* Callback function to receive the result of the energyAssetsProductionSitesUploadFileCreate operation.
|
|
665
|
+
* @callback module:api/EnergyAssetsApi~energyAssetsProductionSitesUploadFileCreateCallback
|
|
596
666
|
* @param {String} error Error message, if any.
|
|
597
667
|
* @param {module:model/ProductionSite} data The data returned by the service call.
|
|
598
668
|
* @param {String} response The complete HTTP response.
|
|
@@ -601,28 +671,28 @@ var EnergyAssetsApi = /*#__PURE__*/function () {
|
|
|
601
671
|
/**
|
|
602
672
|
* **Add production sites by uploading an Excel file .** User should be *authenticated* and have an *active* (is_active=True) account. **Note:** Object should be owned by the user's organization or retailer. **Roles required**: Staff and/or Admin **User employed by an active allowed organization**: Retailer
|
|
603
673
|
* @param {module:model/ProductionSiteFileUpload} productionSiteFileUpload
|
|
604
|
-
* @param {module:api/EnergyAssetsApi~
|
|
674
|
+
* @param {module:api/EnergyAssetsApi~energyAssetsProductionSitesUploadFileCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
605
675
|
* data is of type: {@link module:model/ProductionSite}
|
|
606
676
|
*/
|
|
607
677
|
|
|
608
678
|
}, {
|
|
609
|
-
key: "
|
|
610
|
-
value: function
|
|
679
|
+
key: "energyAssetsProductionSitesUploadFileCreate",
|
|
680
|
+
value: function energyAssetsProductionSitesUploadFileCreate(productionSiteFileUpload, callback) {
|
|
611
681
|
var postBody = productionSiteFileUpload; // verify the required parameter 'productionSiteFileUpload' is set
|
|
612
682
|
|
|
613
683
|
if (productionSiteFileUpload === undefined || productionSiteFileUpload === null) {
|
|
614
|
-
throw new Error("Missing the required parameter 'productionSiteFileUpload' when calling
|
|
684
|
+
throw new Error("Missing the required parameter 'productionSiteFileUpload' when calling energyAssetsProductionSitesUploadFileCreate");
|
|
615
685
|
}
|
|
616
686
|
|
|
617
687
|
var pathParams = {};
|
|
618
688
|
var queryParams = {};
|
|
619
689
|
var headerParams = {};
|
|
620
690
|
var formParams = {};
|
|
621
|
-
var authNames = ['
|
|
691
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
622
692
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
623
693
|
var accepts = ['application/json'];
|
|
624
694
|
var returnType = _ProductionSite["default"];
|
|
625
|
-
return this.apiClient.callApi('/energy-assets/production-sites/
|
|
695
|
+
return this.apiClient.callApi('/energy-assets/production-sites/upload-file/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
626
696
|
}
|
|
627
697
|
}]);
|
|
628
698
|
|