green_link_api 0.49.7 → 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 +6 -34
- package/dist/ApiClient.js +3 -6
- package/dist/api/EnergyAssetsApi.js +22 -22
- package/dist/api/EnergyDataApi.js +30 -30
- 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/UsersApi.js +13 -230
- package/dist/index.js +3 -59
- 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 +1 -1
- package/dist/model/ConsumptionDataPointListOrDetail.js +1 -1
- package/dist/model/ConsumptionDataPointUpdate.js +1 -1
- package/dist/model/ConsumptionSite.js +1 -1
- 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/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 +1 -1
- 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/PaginatedProductionDataPointListOrDetailList.js +1 -1
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +1 -1
- package/dist/model/PaginatedRetailerList.js +1 -1
- package/dist/model/PaginatedUserList.js +1 -1
- package/dist/model/PatchedConsumer.js +1 -1
- package/dist/model/PatchedConsumptionDataPointUpdate.js +1 -1
- 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 +1 -1
- package/dist/model/PatchedProductionSiteUpdate.js +1 -1
- package/dist/model/PatchedRetailer.js +1 -1
- package/dist/model/PatchedUser.js +3 -1
- package/dist/model/PatchedUserDetail.js +3 -1
- package/dist/model/Producer.js +1 -1
- package/dist/model/ProductionDataFileList.js +1 -1
- package/dist/model/ProductionDataPointCreate.js +1 -1
- package/dist/model/ProductionDataPointListOrDetail.js +1 -1
- package/dist/model/ProductionDataPointUpdate.js +1 -1
- package/dist/model/ProductionSite.js +1 -1
- package/dist/model/ProductionSiteFileUpload.js +1 -1
- package/dist/model/ProductionSiteListOrDetail.js +1 -1
- package/dist/model/ProductionSiteUpdate.js +1 -1
- package/dist/model/Register.js +8 -5
- package/dist/model/Retailer.js +1 -1
- package/dist/model/{VerifyEmail.js → Token.js} +18 -17
- 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
package/dist/api/UsersApi.js
CHANGED
|
@@ -7,36 +7,22 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
9
|
|
|
10
|
-
var _JWT = _interopRequireDefault(require("../model/JWT"));
|
|
11
|
-
|
|
12
10
|
var _Login = _interopRequireDefault(require("../model/Login"));
|
|
13
11
|
|
|
14
12
|
var _PaginatedUserList = _interopRequireDefault(require("../model/PaginatedUserList"));
|
|
15
13
|
|
|
16
|
-
var _PasswordChange = _interopRequireDefault(require("../model/PasswordChange"));
|
|
17
|
-
|
|
18
|
-
var _PasswordReset = _interopRequireDefault(require("../model/PasswordReset"));
|
|
19
|
-
|
|
20
|
-
var _PasswordResetConfirm = _interopRequireDefault(require("../model/PasswordResetConfirm"));
|
|
21
|
-
|
|
22
14
|
var _PatchedUser = _interopRequireDefault(require("../model/PatchedUser"));
|
|
23
15
|
|
|
24
16
|
var _PatchedUserDetail = _interopRequireDefault(require("../model/PatchedUserDetail"));
|
|
25
17
|
|
|
26
18
|
var _Register = _interopRequireDefault(require("../model/Register"));
|
|
27
19
|
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
var _TokenRefresh = _interopRequireDefault(require("../model/TokenRefresh"));
|
|
31
|
-
|
|
32
|
-
var _TokenVerify = _interopRequireDefault(require("../model/TokenVerify"));
|
|
20
|
+
var _Token = _interopRequireDefault(require("../model/Token"));
|
|
33
21
|
|
|
34
22
|
var _User = _interopRequireDefault(require("../model/User"));
|
|
35
23
|
|
|
36
24
|
var _UserDetail = _interopRequireDefault(require("../model/UserDetail"));
|
|
37
25
|
|
|
38
|
-
var _VerifyEmail = _interopRequireDefault(require("../model/VerifyEmail"));
|
|
39
|
-
|
|
40
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
41
27
|
|
|
42
28
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -48,7 +34,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
48
34
|
/**
|
|
49
35
|
* Users service.
|
|
50
36
|
* @module api/UsersApi
|
|
51
|
-
* @version 0.
|
|
37
|
+
* @version 0.51.3
|
|
52
38
|
*/
|
|
53
39
|
var UsersApi = /*#__PURE__*/function () {
|
|
54
40
|
/**
|
|
@@ -93,7 +79,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
93
79
|
var queryParams = {};
|
|
94
80
|
var headerParams = {};
|
|
95
81
|
var formParams = {};
|
|
96
|
-
var authNames = ['
|
|
82
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
97
83
|
var contentTypes = [];
|
|
98
84
|
var accepts = [];
|
|
99
85
|
var returnType = null;
|
|
@@ -158,7 +144,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
158
144
|
};
|
|
159
145
|
var headerParams = {};
|
|
160
146
|
var formParams = {};
|
|
161
|
-
var authNames = ['
|
|
147
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
162
148
|
var contentTypes = [];
|
|
163
149
|
var accepts = ['application/json'];
|
|
164
150
|
var returnType = _PaginatedUserList["default"];
|
|
@@ -168,7 +154,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
168
154
|
* Callback function to receive the result of the usersLoginCreate operation.
|
|
169
155
|
* @callback module:api/UsersApi~usersLoginCreateCallback
|
|
170
156
|
* @param {String} error Error message, if any.
|
|
171
|
-
* @param {module:model/
|
|
157
|
+
* @param {module:model/Token} data The data returned by the service call.
|
|
172
158
|
* @param {String} response The complete HTTP response.
|
|
173
159
|
*/
|
|
174
160
|
|
|
@@ -176,7 +162,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
176
162
|
* Check the credentials and return the REST Token if the credentials are valid and authenticated. Calls Django Auth login method to register User ID in Django session framework Accept the following POST parameters: username, email, password Note: username can accept both username or email fields Return the REST Framework Token Object's key.
|
|
177
163
|
* @param {module:model/Login} login
|
|
178
164
|
* @param {module:api/UsersApi~usersLoginCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
179
|
-
* data is of type: {@link module:model/
|
|
165
|
+
* data is of type: {@link module:model/Token}
|
|
180
166
|
*/
|
|
181
167
|
|
|
182
168
|
}, {
|
|
@@ -195,7 +181,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
195
181
|
var authNames = ['cookieAuth', 'tokenAuth'];
|
|
196
182
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
197
183
|
var accepts = ['application/json'];
|
|
198
|
-
var returnType =
|
|
184
|
+
var returnType = _Token["default"];
|
|
199
185
|
return this.apiClient.callApi('/users/login/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
200
186
|
}
|
|
201
187
|
/**
|
|
@@ -258,114 +244,12 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
258
244
|
var queryParams = {};
|
|
259
245
|
var headerParams = {};
|
|
260
246
|
var formParams = {};
|
|
261
|
-
var authNames = ['
|
|
247
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
262
248
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
263
249
|
var accepts = ['application/json'];
|
|
264
250
|
var returnType = _User["default"];
|
|
265
251
|
return this.apiClient.callApi('/users/{id}/', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
266
252
|
}
|
|
267
|
-
/**
|
|
268
|
-
* Callback function to receive the result of the usersPasswordChangeCreate operation.
|
|
269
|
-
* @callback module:api/UsersApi~usersPasswordChangeCreateCallback
|
|
270
|
-
* @param {String} error Error message, if any.
|
|
271
|
-
* @param {module:model/RestAuthDetail} data The data returned by the service call.
|
|
272
|
-
* @param {String} response The complete HTTP response.
|
|
273
|
-
*/
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Calls Django Auth SetPasswordForm save method. Accepts the following POST parameters: new_password1, new_password2 Returns the success/fail message.
|
|
277
|
-
* @param {module:model/PasswordChange} passwordChange
|
|
278
|
-
* @param {module:api/UsersApi~usersPasswordChangeCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
279
|
-
* data is of type: {@link module:model/RestAuthDetail}
|
|
280
|
-
*/
|
|
281
|
-
|
|
282
|
-
}, {
|
|
283
|
-
key: "usersPasswordChangeCreate",
|
|
284
|
-
value: function usersPasswordChangeCreate(passwordChange, callback) {
|
|
285
|
-
var postBody = passwordChange; // verify the required parameter 'passwordChange' is set
|
|
286
|
-
|
|
287
|
-
if (passwordChange === undefined || passwordChange === null) {
|
|
288
|
-
throw new Error("Missing the required parameter 'passwordChange' when calling usersPasswordChangeCreate");
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
var pathParams = {};
|
|
292
|
-
var queryParams = {};
|
|
293
|
-
var headerParams = {};
|
|
294
|
-
var formParams = {};
|
|
295
|
-
var authNames = ['basicAuth', 'cookieAuth', 'jwtAuth', 'tokenAuth'];
|
|
296
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
297
|
-
var accepts = ['application/json'];
|
|
298
|
-
var returnType = _RestAuthDetail["default"];
|
|
299
|
-
return this.apiClient.callApi('/users/password/change/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Callback function to receive the result of the usersPasswordResetConfirmCreate operation.
|
|
303
|
-
* @callback module:api/UsersApi~usersPasswordResetConfirmCreateCallback
|
|
304
|
-
* @param {String} error Error message, if any.
|
|
305
|
-
* @param {module:model/RestAuthDetail} data The data returned by the service call.
|
|
306
|
-
* @param {String} response The complete HTTP response.
|
|
307
|
-
*/
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Password reset e-mail link is confirmed, therefore this resets the user's password. Accepts the following POST parameters: token, uid, new_password1, new_password2 Returns the success/fail message.
|
|
311
|
-
* @param {module:model/PasswordResetConfirm} passwordResetConfirm
|
|
312
|
-
* @param {module:api/UsersApi~usersPasswordResetConfirmCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
313
|
-
* data is of type: {@link module:model/RestAuthDetail}
|
|
314
|
-
*/
|
|
315
|
-
|
|
316
|
-
}, {
|
|
317
|
-
key: "usersPasswordResetConfirmCreate",
|
|
318
|
-
value: function usersPasswordResetConfirmCreate(passwordResetConfirm, callback) {
|
|
319
|
-
var postBody = passwordResetConfirm; // verify the required parameter 'passwordResetConfirm' is set
|
|
320
|
-
|
|
321
|
-
if (passwordResetConfirm === undefined || passwordResetConfirm === null) {
|
|
322
|
-
throw new Error("Missing the required parameter 'passwordResetConfirm' when calling usersPasswordResetConfirmCreate");
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
var pathParams = {};
|
|
326
|
-
var queryParams = {};
|
|
327
|
-
var headerParams = {};
|
|
328
|
-
var formParams = {};
|
|
329
|
-
var authNames = ['basicAuth', 'cookieAuth', 'jwtAuth', 'tokenAuth'];
|
|
330
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
331
|
-
var accepts = ['application/json'];
|
|
332
|
-
var returnType = _RestAuthDetail["default"];
|
|
333
|
-
return this.apiClient.callApi('/users/password/reset/confirm/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* Callback function to receive the result of the usersPasswordResetCreate operation.
|
|
337
|
-
* @callback module:api/UsersApi~usersPasswordResetCreateCallback
|
|
338
|
-
* @param {String} error Error message, if any.
|
|
339
|
-
* @param {module:model/RestAuthDetail} data The data returned by the service call.
|
|
340
|
-
* @param {String} response The complete HTTP response.
|
|
341
|
-
*/
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Calls Django Auth PasswordResetForm save method. Accepts the following POST parameters: email Returns the success/fail message.
|
|
345
|
-
* @param {module:model/PasswordReset} passwordReset
|
|
346
|
-
* @param {module:api/UsersApi~usersPasswordResetCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
347
|
-
* data is of type: {@link module:model/RestAuthDetail}
|
|
348
|
-
*/
|
|
349
|
-
|
|
350
|
-
}, {
|
|
351
|
-
key: "usersPasswordResetCreate",
|
|
352
|
-
value: function usersPasswordResetCreate(passwordReset, callback) {
|
|
353
|
-
var postBody = passwordReset; // verify the required parameter 'passwordReset' is set
|
|
354
|
-
|
|
355
|
-
if (passwordReset === undefined || passwordReset === null) {
|
|
356
|
-
throw new Error("Missing the required parameter 'passwordReset' when calling usersPasswordResetCreate");
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
var pathParams = {};
|
|
360
|
-
var queryParams = {};
|
|
361
|
-
var headerParams = {};
|
|
362
|
-
var formParams = {};
|
|
363
|
-
var authNames = ['basicAuth', 'cookieAuth', 'jwtAuth', 'tokenAuth'];
|
|
364
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
365
|
-
var accepts = ['application/json'];
|
|
366
|
-
var returnType = _RestAuthDetail["default"];
|
|
367
|
-
return this.apiClient.callApi('/users/password/reset/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
368
|
-
}
|
|
369
253
|
/**
|
|
370
254
|
* Callback function to receive the result of the usersRegistrationCreate operation.
|
|
371
255
|
* @callback module:api/UsersApi~usersRegistrationCreateCallback
|
|
@@ -394,7 +278,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
394
278
|
var queryParams = {};
|
|
395
279
|
var headerParams = {};
|
|
396
280
|
var formParams = {};
|
|
397
|
-
var authNames = ['
|
|
281
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
398
282
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
399
283
|
var accepts = ['application/json'];
|
|
400
284
|
var returnType = _Register["default"];
|
|
@@ -430,80 +314,12 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
430
314
|
var queryParams = {};
|
|
431
315
|
var headerParams = {};
|
|
432
316
|
var formParams = {};
|
|
433
|
-
var authNames = ['
|
|
317
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
434
318
|
var contentTypes = [];
|
|
435
319
|
var accepts = ['application/json'];
|
|
436
320
|
var returnType = _User["default"];
|
|
437
321
|
return this.apiClient.callApi('/users/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
438
322
|
}
|
|
439
|
-
/**
|
|
440
|
-
* Callback function to receive the result of the usersTokenRefreshCreate operation.
|
|
441
|
-
* @callback module:api/UsersApi~usersTokenRefreshCreateCallback
|
|
442
|
-
* @param {String} error Error message, if any.
|
|
443
|
-
* @param {module:model/TokenRefresh} data The data returned by the service call.
|
|
444
|
-
* @param {String} response The complete HTTP response.
|
|
445
|
-
*/
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
|
|
449
|
-
* @param {module:model/TokenRefresh} tokenRefresh
|
|
450
|
-
* @param {module:api/UsersApi~usersTokenRefreshCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
451
|
-
* data is of type: {@link module:model/TokenRefresh}
|
|
452
|
-
*/
|
|
453
|
-
|
|
454
|
-
}, {
|
|
455
|
-
key: "usersTokenRefreshCreate",
|
|
456
|
-
value: function usersTokenRefreshCreate(tokenRefresh, callback) {
|
|
457
|
-
var postBody = tokenRefresh; // verify the required parameter 'tokenRefresh' is set
|
|
458
|
-
|
|
459
|
-
if (tokenRefresh === undefined || tokenRefresh === null) {
|
|
460
|
-
throw new Error("Missing the required parameter 'tokenRefresh' when calling usersTokenRefreshCreate");
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
var pathParams = {};
|
|
464
|
-
var queryParams = {};
|
|
465
|
-
var headerParams = {};
|
|
466
|
-
var formParams = {};
|
|
467
|
-
var authNames = [];
|
|
468
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
469
|
-
var accepts = ['application/json'];
|
|
470
|
-
var returnType = _TokenRefresh["default"];
|
|
471
|
-
return this.apiClient.callApi('/users/token/refresh/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
472
|
-
}
|
|
473
|
-
/**
|
|
474
|
-
* Callback function to receive the result of the usersTokenVerifyCreate operation.
|
|
475
|
-
* @callback module:api/UsersApi~usersTokenVerifyCreateCallback
|
|
476
|
-
* @param {String} error Error message, if any.
|
|
477
|
-
* @param {module:model/TokenVerify} data The data returned by the service call.
|
|
478
|
-
* @param {String} response The complete HTTP response.
|
|
479
|
-
*/
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Takes a token and indicates if it is valid. This view provides no information about a token's fitness for a particular use.
|
|
483
|
-
* @param {module:model/TokenVerify} tokenVerify
|
|
484
|
-
* @param {module:api/UsersApi~usersTokenVerifyCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
485
|
-
* data is of type: {@link module:model/TokenVerify}
|
|
486
|
-
*/
|
|
487
|
-
|
|
488
|
-
}, {
|
|
489
|
-
key: "usersTokenVerifyCreate",
|
|
490
|
-
value: function usersTokenVerifyCreate(tokenVerify, callback) {
|
|
491
|
-
var postBody = tokenVerify; // verify the required parameter 'tokenVerify' is set
|
|
492
|
-
|
|
493
|
-
if (tokenVerify === undefined || tokenVerify === null) {
|
|
494
|
-
throw new Error("Missing the required parameter 'tokenVerify' when calling usersTokenVerifyCreate");
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
var pathParams = {};
|
|
498
|
-
var queryParams = {};
|
|
499
|
-
var headerParams = {};
|
|
500
|
-
var formParams = {};
|
|
501
|
-
var authNames = [];
|
|
502
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
503
|
-
var accepts = ['application/json'];
|
|
504
|
-
var returnType = _TokenVerify["default"];
|
|
505
|
-
return this.apiClient.callApi('/users/token/verify/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
506
|
-
}
|
|
507
323
|
/**
|
|
508
324
|
* Callback function to receive the result of the usersUserDetailsPartialUpdate operation.
|
|
509
325
|
* @callback module:api/UsersApi~usersUserDetailsPartialUpdateCallback
|
|
@@ -529,7 +345,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
529
345
|
var queryParams = {};
|
|
530
346
|
var headerParams = {};
|
|
531
347
|
var formParams = {};
|
|
532
|
-
var authNames = ['
|
|
348
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
533
349
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
534
350
|
var accepts = ['application/json'];
|
|
535
351
|
var returnType = _UserDetail["default"];
|
|
@@ -557,7 +373,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
557
373
|
var queryParams = {};
|
|
558
374
|
var headerParams = {};
|
|
559
375
|
var formParams = {};
|
|
560
|
-
var authNames = ['
|
|
376
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
561
377
|
var contentTypes = [];
|
|
562
378
|
var accepts = ['application/json'];
|
|
563
379
|
var returnType = _UserDetail["default"];
|
|
@@ -591,45 +407,12 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
591
407
|
var queryParams = {};
|
|
592
408
|
var headerParams = {};
|
|
593
409
|
var formParams = {};
|
|
594
|
-
var authNames = ['
|
|
410
|
+
var authNames = ['jwtAuth', 'tokenAuth'];
|
|
595
411
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
596
412
|
var accepts = ['application/json'];
|
|
597
413
|
var returnType = _UserDetail["default"];
|
|
598
414
|
return this.apiClient.callApi('/users/user-details/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
599
415
|
}
|
|
600
|
-
/**
|
|
601
|
-
* Callback function to receive the result of the usersVerifyEmailCreate operation.
|
|
602
|
-
* @callback module:api/UsersApi~usersVerifyEmailCreateCallback
|
|
603
|
-
* @param {String} error Error message, if any.
|
|
604
|
-
* @param {module:model/VerifyEmail} data The data returned by the service call.
|
|
605
|
-
* @param {String} response The complete HTTP response.
|
|
606
|
-
*/
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* @param {module:model/VerifyEmail} verifyEmail
|
|
610
|
-
* @param {module:api/UsersApi~usersVerifyEmailCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
611
|
-
* data is of type: {@link module:model/VerifyEmail}
|
|
612
|
-
*/
|
|
613
|
-
|
|
614
|
-
}, {
|
|
615
|
-
key: "usersVerifyEmailCreate",
|
|
616
|
-
value: function usersVerifyEmailCreate(verifyEmail, callback) {
|
|
617
|
-
var postBody = verifyEmail; // verify the required parameter 'verifyEmail' is set
|
|
618
|
-
|
|
619
|
-
if (verifyEmail === undefined || verifyEmail === null) {
|
|
620
|
-
throw new Error("Missing the required parameter 'verifyEmail' when calling usersVerifyEmailCreate");
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
var pathParams = {};
|
|
624
|
-
var queryParams = {};
|
|
625
|
-
var headerParams = {};
|
|
626
|
-
var formParams = {};
|
|
627
|
-
var authNames = ['basicAuth', 'cookieAuth', 'jwtAuth', 'tokenAuth'];
|
|
628
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
629
|
-
var accepts = ['application/json'];
|
|
630
|
-
var returnType = _VerifyEmail["default"];
|
|
631
|
-
return this.apiClient.callApi('/users/verify-email/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
632
|
-
}
|
|
633
416
|
}]);
|
|
634
417
|
|
|
635
418
|
return UsersApi;
|
package/dist/index.js
CHANGED
|
@@ -129,12 +129,6 @@ Object.defineProperty(exports, "Issuer", {
|
|
|
129
129
|
return _Issuer["default"];
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
-
Object.defineProperty(exports, "JWT", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function get() {
|
|
135
|
-
return _JWT["default"];
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
132
|
Object.defineProperty(exports, "LicensedProductionSitesOnEpiasApi", {
|
|
139
133
|
enumerable: true,
|
|
140
134
|
get: function get() {
|
|
@@ -303,24 +297,6 @@ Object.defineProperty(exports, "PaginatedUserList", {
|
|
|
303
297
|
return _PaginatedUserList["default"];
|
|
304
298
|
}
|
|
305
299
|
});
|
|
306
|
-
Object.defineProperty(exports, "PasswordChange", {
|
|
307
|
-
enumerable: true,
|
|
308
|
-
get: function get() {
|
|
309
|
-
return _PasswordChange["default"];
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
Object.defineProperty(exports, "PasswordReset", {
|
|
313
|
-
enumerable: true,
|
|
314
|
-
get: function get() {
|
|
315
|
-
return _PasswordReset["default"];
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
Object.defineProperty(exports, "PasswordResetConfirm", {
|
|
319
|
-
enumerable: true,
|
|
320
|
-
get: function get() {
|
|
321
|
-
return _PasswordResetConfirm["default"];
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
300
|
Object.defineProperty(exports, "PatchedConsumer", {
|
|
325
301
|
enumerable: true,
|
|
326
302
|
get: function get() {
|
|
@@ -471,12 +447,6 @@ Object.defineProperty(exports, "Register", {
|
|
|
471
447
|
return _Register["default"];
|
|
472
448
|
}
|
|
473
449
|
});
|
|
474
|
-
Object.defineProperty(exports, "RestAuthDetail", {
|
|
475
|
-
enumerable: true,
|
|
476
|
-
get: function get() {
|
|
477
|
-
return _RestAuthDetail["default"];
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
450
|
Object.defineProperty(exports, "Retailer", {
|
|
481
451
|
enumerable: true,
|
|
482
452
|
get: function get() {
|
|
@@ -501,16 +471,10 @@ Object.defineProperty(exports, "StatusEnum", {
|
|
|
501
471
|
return _StatusEnum["default"];
|
|
502
472
|
}
|
|
503
473
|
});
|
|
504
|
-
Object.defineProperty(exports, "
|
|
474
|
+
Object.defineProperty(exports, "Token", {
|
|
505
475
|
enumerable: true,
|
|
506
476
|
get: function get() {
|
|
507
|
-
return
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
Object.defineProperty(exports, "TokenVerify", {
|
|
511
|
-
enumerable: true,
|
|
512
|
-
get: function get() {
|
|
513
|
-
return _TokenVerify["default"];
|
|
477
|
+
return _Token["default"];
|
|
514
478
|
}
|
|
515
479
|
});
|
|
516
480
|
Object.defineProperty(exports, "User", {
|
|
@@ -531,12 +495,6 @@ Object.defineProperty(exports, "UsersApi", {
|
|
|
531
495
|
return _UsersApi["default"];
|
|
532
496
|
}
|
|
533
497
|
});
|
|
534
|
-
Object.defineProperty(exports, "VerifyEmail", {
|
|
535
|
-
enumerable: true,
|
|
536
|
-
get: function get() {
|
|
537
|
-
return _VerifyEmail["default"];
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
498
|
|
|
541
499
|
var _ApiClient = _interopRequireDefault(require("./ApiClient"));
|
|
542
500
|
|
|
@@ -574,8 +532,6 @@ var _GridOperator = _interopRequireDefault(require("./model/GridOperator"));
|
|
|
574
532
|
|
|
575
533
|
var _Issuer = _interopRequireDefault(require("./model/Issuer"));
|
|
576
534
|
|
|
577
|
-
var _JWT = _interopRequireDefault(require("./model/JWT"));
|
|
578
|
-
|
|
579
535
|
var _Location = _interopRequireDefault(require("./model/Location"));
|
|
580
536
|
|
|
581
537
|
var _Login = _interopRequireDefault(require("./model/Login"));
|
|
@@ -622,12 +578,6 @@ var _PaginatedRetailerList = _interopRequireDefault(require("./model/PaginatedRe
|
|
|
622
578
|
|
|
623
579
|
var _PaginatedUserList = _interopRequireDefault(require("./model/PaginatedUserList"));
|
|
624
580
|
|
|
625
|
-
var _PasswordChange = _interopRequireDefault(require("./model/PasswordChange"));
|
|
626
|
-
|
|
627
|
-
var _PasswordReset = _interopRequireDefault(require("./model/PasswordReset"));
|
|
628
|
-
|
|
629
|
-
var _PasswordResetConfirm = _interopRequireDefault(require("./model/PasswordResetConfirm"));
|
|
630
|
-
|
|
631
581
|
var _PatchedConsumer = _interopRequireDefault(require("./model/PatchedConsumer"));
|
|
632
582
|
|
|
633
583
|
var _PatchedConsumptionDataPointUpdate = _interopRequireDefault(require("./model/PatchedConsumptionDataPointUpdate"));
|
|
@@ -678,22 +628,16 @@ var _ProductionSiteUpdate = _interopRequireDefault(require("./model/ProductionSi
|
|
|
678
628
|
|
|
679
629
|
var _Register = _interopRequireDefault(require("./model/Register"));
|
|
680
630
|
|
|
681
|
-
var _RestAuthDetail = _interopRequireDefault(require("./model/RestAuthDetail"));
|
|
682
|
-
|
|
683
631
|
var _Retailer = _interopRequireDefault(require("./model/Retailer"));
|
|
684
632
|
|
|
685
633
|
var _StatusEnum = _interopRequireDefault(require("./model/StatusEnum"));
|
|
686
634
|
|
|
687
|
-
var
|
|
688
|
-
|
|
689
|
-
var _TokenVerify = _interopRequireDefault(require("./model/TokenVerify"));
|
|
635
|
+
var _Token = _interopRequireDefault(require("./model/Token"));
|
|
690
636
|
|
|
691
637
|
var _User = _interopRequireDefault(require("./model/User"));
|
|
692
638
|
|
|
693
639
|
var _UserDetail = _interopRequireDefault(require("./model/UserDetail"));
|
|
694
640
|
|
|
695
|
-
var _VerifyEmail = _interopRequireDefault(require("./model/VerifyEmail"));
|
|
696
|
-
|
|
697
641
|
var _EnergyAssetsApi = _interopRequireDefault(require("./api/EnergyAssetsApi"));
|
|
698
642
|
|
|
699
643
|
var _EnergyDataApi = _interopRequireDefault(require("./api/EnergyDataApi"));
|
package/dist/model/Consumer.js
CHANGED
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionDataFileList model module.
|
|
20
20
|
* @module model/ConsumptionDataFileList
|
|
21
|
-
* @version 0.
|
|
21
|
+
* @version 0.51.3
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataFileList = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionDataFromRetailer model module.
|
|
20
20
|
* @module model/ConsumptionDataFromRetailer
|
|
21
|
-
* @version 0.
|
|
21
|
+
* @version 0.51.3
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataFromRetailer = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionDataPointCreate model module.
|
|
20
20
|
* @module model/ConsumptionDataPointCreate
|
|
21
|
-
* @version 0.
|
|
21
|
+
* @version 0.51.3
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataPointCreate = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -26,7 +26,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
26
26
|
/**
|
|
27
27
|
* The ConsumptionDataPointListOrDetail model module.
|
|
28
28
|
* @module model/ConsumptionDataPointListOrDetail
|
|
29
|
-
* @version 0.
|
|
29
|
+
* @version 0.51.3
|
|
30
30
|
*/
|
|
31
31
|
var ConsumptionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionDataPointUpdate model module.
|
|
20
20
|
* @module model/ConsumptionDataPointUpdate
|
|
21
|
-
* @version 0.
|
|
21
|
+
* @version 0.51.3
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataPointUpdate = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionSite model module.
|
|
22
22
|
* @module model/ConsumptionSite
|
|
23
|
-
* @version 0.
|
|
23
|
+
* @version 0.51.3
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionSite = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionSiteFileUpload model module.
|
|
20
20
|
* @module model/ConsumptionSiteFileUpload
|
|
21
|
-
* @version 0.
|
|
21
|
+
* @version 0.51.3
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionSiteFileUpload = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionSiteFromRetailer model module.
|
|
20
20
|
* @module model/ConsumptionSiteFromRetailer
|
|
21
|
-
* @version 0.
|
|
21
|
+
* @version 0.51.3
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionSiteFromRetailer = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -24,7 +24,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
24
24
|
/**
|
|
25
25
|
* The ConsumptionSiteListOrDetail model module.
|
|
26
26
|
* @module model/ConsumptionSiteListOrDetail
|
|
27
|
-
* @version 0.
|
|
27
|
+
* @version 0.51.3
|
|
28
28
|
*/
|
|
29
29
|
var ConsumptionSiteListOrDetail = /*#__PURE__*/function () {
|
|
30
30
|
/**
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionSiteMany model module.
|
|
22
22
|
* @module model/ConsumptionSiteMany
|
|
23
|
-
* @version 0.
|
|
23
|
+
* @version 0.51.3
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionSiteMany = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The EmissionFactor model module.
|
|
20
20
|
* @module model/EmissionFactor
|
|
21
|
-
* @version 0.
|
|
21
|
+
* @version 0.51.3
|
|
22
22
|
*/
|
|
23
23
|
var EmissionFactor = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -22,7 +22,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
22
22
|
/**
|
|
23
23
|
* The EnergySourcePreference model module.
|
|
24
24
|
* @module model/EnergySourcePreference
|
|
25
|
-
* @version 0.
|
|
25
|
+
* @version 0.51.3
|
|
26
26
|
*/
|
|
27
27
|
var EnergySourcePreference = /*#__PURE__*/function () {
|
|
28
28
|
/**
|
package/dist/model/Issuer.js
CHANGED
package/dist/model/Location.js
CHANGED