green_link_api 1.0.0 → 1.0.1
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 +72 -33
- package/dist/ApiClient.js +70 -24
- package/dist/api/BlockchainApi.js +283 -0
- package/dist/api/EnergyAssetsApi.js +196 -44
- package/dist/api/EnergyDataApi.js +354 -46
- package/dist/api/HealthCheckApi.js +68 -0
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +69 -0
- package/dist/api/LocationsApi.js +10 -10
- package/dist/api/LogsApi.js +428 -0
- package/dist/api/MaintenanceCheckApi.js +68 -0
- package/dist/api/OrganizationprofilesApi.js +8 -8
- package/dist/api/OrganizationsApi.js +47 -47
- package/dist/api/SchemaApi.js +6 -6
- package/dist/api/SentryDebugApi.js +68 -0
- package/dist/api/UsersApi.js +74 -256
- package/dist/index.js +267 -67
- package/dist/model/BlockchainTransaction.js +172 -0
- package/dist/model/Consumer.js +7 -7
- package/dist/model/ConsumptionDataFileList.js +132 -0
- package/dist/model/ConsumptionDataFromRetailerRequest.js +110 -0
- package/dist/model/{RestAuthDetail.js → ConsumptionDataFromRetailerResponse.js} +26 -21
- package/dist/model/ConsumptionDataPointCreate.js +12 -12
- package/dist/model/ConsumptionDataPointListOrDetail.js +21 -14
- package/dist/model/ConsumptionDataPointUpdate.js +12 -12
- package/dist/model/ConsumptionSite.js +20 -21
- package/dist/model/ConsumptionSiteCreate.js +195 -0
- package/dist/model/ConsumptionSiteFileUpload.js +133 -0
- package/dist/model/{TokenRefresh.js → ConsumptionSiteFromRetailer.js} +25 -33
- package/dist/model/ConsumptionSiteListOrDetail.js +15 -33
- package/dist/model/ConsumptionSiteMany.js +195 -0
- package/dist/model/ContentTypeEnum.js +54 -0
- package/dist/model/EmissionFactor.js +6 -8
- package/dist/model/EnergySourceEnum.js +1 -1
- package/dist/model/EnergySourcePreference.js +2 -2
- package/dist/model/GetFromEpias.js +98 -0
- package/dist/model/GridOperator.js +6 -6
- package/dist/model/Issuer.js +6 -6
- package/dist/model/Location.js +6 -8
- package/dist/model/Login.js +2 -2
- package/dist/model/MatchRequest.js +299 -0
- package/dist/model/{CountryEnum.js → MatchTypeEnum.js} +12 -12
- package/dist/model/MatchedEnergyDataPoint.js +13 -14
- package/dist/model/MatchingConsumerRequest.js +122 -0
- package/dist/model/{MatchingRequest.js → MatchingSiteRequest.js} +32 -21
- 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 +104 -0
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +2 -2
- package/dist/model/PaginatedProducerList.js +2 -2
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +104 -0
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedRetailerList.js +2 -2
- 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 +2 -2
- package/dist/model/PatchedConsumer.js +7 -7
- package/dist/model/PatchedConsumptionDataPointUpdate.js +12 -12
- package/dist/model/PatchedConsumptionSite.js +15 -16
- package/dist/model/PatchedEmissionFactor.js +5 -7
- package/dist/model/PatchedEnergySourcePreference.js +2 -2
- package/dist/model/PatchedGridOperator.js +6 -6
- package/dist/model/PatchedIssuer.js +6 -6
- package/dist/model/PatchedLocation.js +5 -7
- package/dist/model/PatchedProducer.js +6 -6
- package/dist/model/PatchedProductionDataPointUpdate.js +13 -13
- package/dist/model/{PatchedProductionSite.js → PatchedProductionSiteUpdate.js} +60 -45
- package/dist/model/PatchedRetailer.js +16 -6
- package/dist/model/PatchedSmartContract.js +134 -0
- package/dist/model/PatchedUser.js +13 -2
- package/dist/model/PatchedUserDetail.js +13 -2
- package/dist/model/PriorityEnum.js +7 -1
- package/dist/model/Producer.js +6 -6
- package/dist/model/ProductionDataFileList.js +132 -0
- package/dist/model/ProductionDataFromEpiasRequest.js +167 -0
- package/dist/model/ProductionDataPointCreate.js +13 -13
- package/dist/model/ProductionDataPointListOrDetail.js +24 -21
- package/dist/model/ProductionDataPointUpdate.js +13 -13
- package/dist/model/ProductionSite.js +37 -24
- package/dist/model/ProductionSiteFileUpload.js +177 -0
- package/dist/model/ProductionSiteListOrDetail.js +30 -43
- package/dist/model/ProductionSiteUpdate.js +245 -0
- package/dist/model/Register.js +18 -6
- package/dist/model/Retailer.js +16 -6
- package/dist/model/SmartContract.js +139 -0
- package/dist/model/StatusEnum.js +52 -0
- package/dist/model/{VerifyEmail.js → Token.js} +19 -18
- package/dist/model/TypeEnum.js +52 -0
- package/dist/model/UnprocessedRow.js +140 -0
- package/dist/model/UploadedFile.js +154 -0
- package/dist/model/User.js +13 -2
- package/dist/model/UserDetail.js +13 -2
- package/package.json +4 -4
- 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/TechnologyOrFuelTypeEnum.js +0 -170
- package/dist/model/TokenVerify.js +0 -78
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
|
|
14
|
+
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); } }
|
|
15
|
+
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* SentryDebug service.
|
|
20
|
+
* @module api/SentryDebugApi
|
|
21
|
+
* @version 1.0.1
|
|
22
|
+
*/
|
|
23
|
+
var SentryDebugApi = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new SentryDebugApi.
|
|
26
|
+
* @alias module:api/SentryDebugApi
|
|
27
|
+
* @class
|
|
28
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
29
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
30
|
+
*/
|
|
31
|
+
function SentryDebugApi(apiClient) {
|
|
32
|
+
_classCallCheck(this, SentryDebugApi);
|
|
33
|
+
|
|
34
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Callback function to receive the result of the sentryDebugRetrieve operation.
|
|
38
|
+
* @callback module:api/SentryDebugApi~sentryDebugRetrieveCallback
|
|
39
|
+
* @param {String} error Error message, if any.
|
|
40
|
+
* @param data This operation does not return a value.
|
|
41
|
+
* @param {String} response The complete HTTP response.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @param {module:api/SentryDebugApi~sentryDebugRetrieveCallback} callback The callback function, accepting three arguments: error, data, response
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
_createClass(SentryDebugApi, [{
|
|
50
|
+
key: "sentryDebugRetrieve",
|
|
51
|
+
value: function sentryDebugRetrieve(callback) {
|
|
52
|
+
var postBody = null;
|
|
53
|
+
var pathParams = {};
|
|
54
|
+
var queryParams = {};
|
|
55
|
+
var headerParams = {};
|
|
56
|
+
var formParams = {};
|
|
57
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
58
|
+
var contentTypes = [];
|
|
59
|
+
var accepts = [];
|
|
60
|
+
var returnType = null;
|
|
61
|
+
return this.apiClient.callApi('/sentry-debug/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
62
|
+
}
|
|
63
|
+
}]);
|
|
64
|
+
|
|
65
|
+
return SentryDebugApi;
|
|
66
|
+
}();
|
|
67
|
+
|
|
68
|
+
exports["default"] = SentryDebugApi;
|
package/dist/api/UsersApi.js
CHANGED
|
@@ -7,48 +7,34 @@ 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"); } }
|
|
43
29
|
|
|
44
30
|
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); } }
|
|
45
31
|
|
|
46
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
32
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
47
33
|
|
|
48
34
|
/**
|
|
49
35
|
* Users service.
|
|
50
36
|
* @module api/UsersApi
|
|
51
|
-
* @version 1.0.
|
|
37
|
+
* @version 1.0.1
|
|
52
38
|
*/
|
|
53
39
|
var UsersApi = /*#__PURE__*/function () {
|
|
54
40
|
/**
|
|
@@ -64,39 +50,74 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
64
50
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
65
51
|
}
|
|
66
52
|
/**
|
|
67
|
-
* Callback function to receive the result of the
|
|
68
|
-
* @callback module:api/UsersApi~
|
|
53
|
+
* Callback function to receive the result of the usersDestroy operation.
|
|
54
|
+
* @callback module:api/UsersApi~usersDestroyCallback
|
|
69
55
|
* @param {String} error Error message, if any.
|
|
70
|
-
* @param
|
|
56
|
+
* @param data This operation does not return a value.
|
|
71
57
|
* @param {String} response The complete HTTP response.
|
|
72
58
|
*/
|
|
73
59
|
|
|
74
60
|
/**
|
|
75
|
-
* **
|
|
76
|
-
* @param {
|
|
77
|
-
* @param {
|
|
78
|
-
* @param {String} opts.email
|
|
79
|
-
* @param {String} opts.firstName
|
|
80
|
-
* @param {String} opts.id
|
|
81
|
-
* @param {Boolean} opts.isActive
|
|
82
|
-
* @param {Boolean} opts.isOrganizationAdmin
|
|
83
|
-
* @param {Boolean} opts.isStaff
|
|
84
|
-
* @param {Boolean} opts.isSuperuser
|
|
85
|
-
* @param {String} opts.lastName
|
|
86
|
-
* @param {Number} opts.limit Number of results to return per page.
|
|
87
|
-
* @param {Number} opts.offset The initial index from which to return the results.
|
|
88
|
-
* @param {String} opts.organization
|
|
89
|
-
* @param {module:model/String} opts.organizationType Not required. 100 characters or fewer.
|
|
90
|
-
* @param {String} opts.phoneNumber
|
|
91
|
-
* @param {Date} opts.updatedAt
|
|
92
|
-
* @param {String} opts.userId
|
|
93
|
-
* @param {String} opts.username
|
|
94
|
-
* @param {module:api/UsersApi~usersListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
95
|
-
* data is of type: {@link module:model/PaginatedUserList}
|
|
61
|
+
* **Delete a specific consumption data point.** 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**: Admin **User employed by an active allowed organization**: Retailer
|
|
62
|
+
* @param {String} id A UUID string identifying this user.
|
|
63
|
+
* @param {module:api/UsersApi~usersDestroyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
96
64
|
*/
|
|
97
65
|
|
|
98
66
|
|
|
99
67
|
_createClass(UsersApi, [{
|
|
68
|
+
key: "usersDestroy",
|
|
69
|
+
value: function usersDestroy(id, callback) {
|
|
70
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
71
|
+
|
|
72
|
+
if (id === undefined || id === null) {
|
|
73
|
+
throw new Error("Missing the required parameter 'id' when calling usersDestroy");
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
var pathParams = {
|
|
77
|
+
'id': id
|
|
78
|
+
};
|
|
79
|
+
var queryParams = {};
|
|
80
|
+
var headerParams = {};
|
|
81
|
+
var formParams = {};
|
|
82
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
83
|
+
var contentTypes = [];
|
|
84
|
+
var accepts = [];
|
|
85
|
+
var returnType = null;
|
|
86
|
+
return this.apiClient.callApi('/users/{id}/', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Callback function to receive the result of the usersList operation.
|
|
90
|
+
* @callback module:api/UsersApi~usersListCallback
|
|
91
|
+
* @param {String} error Error message, if any.
|
|
92
|
+
* @param {module:model/PaginatedUserList} data The data returned by the service call.
|
|
93
|
+
* @param {String} response The complete HTTP response.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* **List all users related to the user's organization.** 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**: Producer, Consumer, GridOperator, Issuer or Retailer
|
|
98
|
+
* @param {Object} opts Optional parameters
|
|
99
|
+
* @param {Date} opts.createdAt
|
|
100
|
+
* @param {String} opts.email
|
|
101
|
+
* @param {String} opts.firstName
|
|
102
|
+
* @param {String} opts.id
|
|
103
|
+
* @param {Boolean} opts.isActive
|
|
104
|
+
* @param {Boolean} opts.isOrganizationAdmin
|
|
105
|
+
* @param {Boolean} opts.isStaff
|
|
106
|
+
* @param {Boolean} opts.isSuperuser
|
|
107
|
+
* @param {String} opts.lastName
|
|
108
|
+
* @param {Number} opts.limit Number of results to return per page.
|
|
109
|
+
* @param {Number} opts.offset The initial index from which to return the results.
|
|
110
|
+
* @param {String} opts.organization
|
|
111
|
+
* @param {module:model/String} opts.organizationType Not required. 100 characters or fewer.
|
|
112
|
+
* @param {String} opts.phoneNumber
|
|
113
|
+
* @param {Date} opts.updatedAt
|
|
114
|
+
* @param {String} opts.userId
|
|
115
|
+
* @param {String} opts.username
|
|
116
|
+
* @param {module:api/UsersApi~usersListCallback} callback The callback function, accepting three arguments: error, data, response
|
|
117
|
+
* data is of type: {@link module:model/PaginatedUserList}
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
}, {
|
|
100
121
|
key: "usersList",
|
|
101
122
|
value: function usersList(opts, callback) {
|
|
102
123
|
opts = opts || {};
|
|
@@ -123,7 +144,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
123
144
|
};
|
|
124
145
|
var headerParams = {};
|
|
125
146
|
var formParams = {};
|
|
126
|
-
var authNames = ['basicAuth', '
|
|
147
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
127
148
|
var contentTypes = [];
|
|
128
149
|
var accepts = ['application/json'];
|
|
129
150
|
var returnType = _PaginatedUserList["default"];
|
|
@@ -133,7 +154,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
133
154
|
* Callback function to receive the result of the usersLoginCreate operation.
|
|
134
155
|
* @callback module:api/UsersApi~usersLoginCreateCallback
|
|
135
156
|
* @param {String} error Error message, if any.
|
|
136
|
-
* @param {module:model/
|
|
157
|
+
* @param {module:model/Token} data The data returned by the service call.
|
|
137
158
|
* @param {String} response The complete HTTP response.
|
|
138
159
|
*/
|
|
139
160
|
|
|
@@ -141,7 +162,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
141
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.
|
|
142
163
|
* @param {module:model/Login} login
|
|
143
164
|
* @param {module:api/UsersApi~usersLoginCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
144
|
-
* data is of type: {@link module:model/
|
|
165
|
+
* data is of type: {@link module:model/Token}
|
|
145
166
|
*/
|
|
146
167
|
|
|
147
168
|
}, {
|
|
@@ -157,10 +178,10 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
157
178
|
var queryParams = {};
|
|
158
179
|
var headerParams = {};
|
|
159
180
|
var formParams = {};
|
|
160
|
-
var authNames = ['
|
|
181
|
+
var authNames = ['cookieAuth', 'tokenAuth'];
|
|
161
182
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
162
183
|
var accepts = ['application/json'];
|
|
163
|
-
var returnType =
|
|
184
|
+
var returnType = _Token["default"];
|
|
164
185
|
return this.apiClient.callApi('/users/login/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
165
186
|
}
|
|
166
187
|
/**
|
|
@@ -184,7 +205,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
184
205
|
var queryParams = {};
|
|
185
206
|
var headerParams = {};
|
|
186
207
|
var formParams = {};
|
|
187
|
-
var authNames = ['
|
|
208
|
+
var authNames = ['tokenAuth'];
|
|
188
209
|
var contentTypes = [];
|
|
189
210
|
var accepts = [];
|
|
190
211
|
var returnType = null;
|
|
@@ -223,114 +244,12 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
223
244
|
var queryParams = {};
|
|
224
245
|
var headerParams = {};
|
|
225
246
|
var formParams = {};
|
|
226
|
-
var authNames = ['basicAuth', '
|
|
247
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
227
248
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
228
249
|
var accepts = ['application/json'];
|
|
229
250
|
var returnType = _User["default"];
|
|
230
251
|
return this.apiClient.callApi('/users/{id}/', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
231
252
|
}
|
|
232
|
-
/**
|
|
233
|
-
* Callback function to receive the result of the usersPasswordChangeCreate operation.
|
|
234
|
-
* @callback module:api/UsersApi~usersPasswordChangeCreateCallback
|
|
235
|
-
* @param {String} error Error message, if any.
|
|
236
|
-
* @param {module:model/RestAuthDetail} data The data returned by the service call.
|
|
237
|
-
* @param {String} response The complete HTTP response.
|
|
238
|
-
*/
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Calls Django Auth SetPasswordForm save method. Accepts the following POST parameters: new_password1, new_password2 Returns the success/fail message.
|
|
242
|
-
* @param {module:model/PasswordChange} passwordChange
|
|
243
|
-
* @param {module:api/UsersApi~usersPasswordChangeCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
244
|
-
* data is of type: {@link module:model/RestAuthDetail}
|
|
245
|
-
*/
|
|
246
|
-
|
|
247
|
-
}, {
|
|
248
|
-
key: "usersPasswordChangeCreate",
|
|
249
|
-
value: function usersPasswordChangeCreate(passwordChange, callback) {
|
|
250
|
-
var postBody = passwordChange; // verify the required parameter 'passwordChange' is set
|
|
251
|
-
|
|
252
|
-
if (passwordChange === undefined || passwordChange === null) {
|
|
253
|
-
throw new Error("Missing the required parameter 'passwordChange' when calling usersPasswordChangeCreate");
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
var pathParams = {};
|
|
257
|
-
var queryParams = {};
|
|
258
|
-
var headerParams = {};
|
|
259
|
-
var formParams = {};
|
|
260
|
-
var authNames = ['basicAuth', 'cookieAuth', 'jwtAuth', 'tokenAuth'];
|
|
261
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
262
|
-
var accepts = ['application/json'];
|
|
263
|
-
var returnType = _RestAuthDetail["default"];
|
|
264
|
-
return this.apiClient.callApi('/users/password/change/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Callback function to receive the result of the usersPasswordResetConfirmCreate operation.
|
|
268
|
-
* @callback module:api/UsersApi~usersPasswordResetConfirmCreateCallback
|
|
269
|
-
* @param {String} error Error message, if any.
|
|
270
|
-
* @param {module:model/RestAuthDetail} data The data returned by the service call.
|
|
271
|
-
* @param {String} response The complete HTTP response.
|
|
272
|
-
*/
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* 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.
|
|
276
|
-
* @param {module:model/PasswordResetConfirm} passwordResetConfirm
|
|
277
|
-
* @param {module:api/UsersApi~usersPasswordResetConfirmCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
278
|
-
* data is of type: {@link module:model/RestAuthDetail}
|
|
279
|
-
*/
|
|
280
|
-
|
|
281
|
-
}, {
|
|
282
|
-
key: "usersPasswordResetConfirmCreate",
|
|
283
|
-
value: function usersPasswordResetConfirmCreate(passwordResetConfirm, callback) {
|
|
284
|
-
var postBody = passwordResetConfirm; // verify the required parameter 'passwordResetConfirm' is set
|
|
285
|
-
|
|
286
|
-
if (passwordResetConfirm === undefined || passwordResetConfirm === null) {
|
|
287
|
-
throw new Error("Missing the required parameter 'passwordResetConfirm' when calling usersPasswordResetConfirmCreate");
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
var pathParams = {};
|
|
291
|
-
var queryParams = {};
|
|
292
|
-
var headerParams = {};
|
|
293
|
-
var formParams = {};
|
|
294
|
-
var authNames = ['basicAuth', 'cookieAuth', 'jwtAuth', 'tokenAuth'];
|
|
295
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
296
|
-
var accepts = ['application/json'];
|
|
297
|
-
var returnType = _RestAuthDetail["default"];
|
|
298
|
-
return this.apiClient.callApi('/users/password/reset/confirm/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* Callback function to receive the result of the usersPasswordResetCreate operation.
|
|
302
|
-
* @callback module:api/UsersApi~usersPasswordResetCreateCallback
|
|
303
|
-
* @param {String} error Error message, if any.
|
|
304
|
-
* @param {module:model/RestAuthDetail} data The data returned by the service call.
|
|
305
|
-
* @param {String} response The complete HTTP response.
|
|
306
|
-
*/
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Calls Django Auth PasswordResetForm save method. Accepts the following POST parameters: email Returns the success/fail message.
|
|
310
|
-
* @param {module:model/PasswordReset} passwordReset
|
|
311
|
-
* @param {module:api/UsersApi~usersPasswordResetCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
312
|
-
* data is of type: {@link module:model/RestAuthDetail}
|
|
313
|
-
*/
|
|
314
|
-
|
|
315
|
-
}, {
|
|
316
|
-
key: "usersPasswordResetCreate",
|
|
317
|
-
value: function usersPasswordResetCreate(passwordReset, callback) {
|
|
318
|
-
var postBody = passwordReset; // verify the required parameter 'passwordReset' is set
|
|
319
|
-
|
|
320
|
-
if (passwordReset === undefined || passwordReset === null) {
|
|
321
|
-
throw new Error("Missing the required parameter 'passwordReset' when calling usersPasswordResetCreate");
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
var pathParams = {};
|
|
325
|
-
var queryParams = {};
|
|
326
|
-
var headerParams = {};
|
|
327
|
-
var formParams = {};
|
|
328
|
-
var authNames = ['basicAuth', 'cookieAuth', 'jwtAuth', 'tokenAuth'];
|
|
329
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
330
|
-
var accepts = ['application/json'];
|
|
331
|
-
var returnType = _RestAuthDetail["default"];
|
|
332
|
-
return this.apiClient.callApi('/users/password/reset/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
333
|
-
}
|
|
334
253
|
/**
|
|
335
254
|
* Callback function to receive the result of the usersRegistrationCreate operation.
|
|
336
255
|
* @callback module:api/UsersApi~usersRegistrationCreateCallback
|
|
@@ -359,7 +278,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
359
278
|
var queryParams = {};
|
|
360
279
|
var headerParams = {};
|
|
361
280
|
var formParams = {};
|
|
362
|
-
var authNames = ['basicAuth', '
|
|
281
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
363
282
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
364
283
|
var accepts = ['application/json'];
|
|
365
284
|
var returnType = _Register["default"];
|
|
@@ -395,80 +314,12 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
395
314
|
var queryParams = {};
|
|
396
315
|
var headerParams = {};
|
|
397
316
|
var formParams = {};
|
|
398
|
-
var authNames = ['basicAuth', '
|
|
317
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
399
318
|
var contentTypes = [];
|
|
400
319
|
var accepts = ['application/json'];
|
|
401
320
|
var returnType = _User["default"];
|
|
402
321
|
return this.apiClient.callApi('/users/{id}/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
403
322
|
}
|
|
404
|
-
/**
|
|
405
|
-
* Callback function to receive the result of the usersTokenRefreshCreate operation.
|
|
406
|
-
* @callback module:api/UsersApi~usersTokenRefreshCreateCallback
|
|
407
|
-
* @param {String} error Error message, if any.
|
|
408
|
-
* @param {module:model/TokenRefresh} data The data returned by the service call.
|
|
409
|
-
* @param {String} response The complete HTTP response.
|
|
410
|
-
*/
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
|
|
414
|
-
* @param {module:model/TokenRefresh} tokenRefresh
|
|
415
|
-
* @param {module:api/UsersApi~usersTokenRefreshCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
416
|
-
* data is of type: {@link module:model/TokenRefresh}
|
|
417
|
-
*/
|
|
418
|
-
|
|
419
|
-
}, {
|
|
420
|
-
key: "usersTokenRefreshCreate",
|
|
421
|
-
value: function usersTokenRefreshCreate(tokenRefresh, callback) {
|
|
422
|
-
var postBody = tokenRefresh; // verify the required parameter 'tokenRefresh' is set
|
|
423
|
-
|
|
424
|
-
if (tokenRefresh === undefined || tokenRefresh === null) {
|
|
425
|
-
throw new Error("Missing the required parameter 'tokenRefresh' when calling usersTokenRefreshCreate");
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
var pathParams = {};
|
|
429
|
-
var queryParams = {};
|
|
430
|
-
var headerParams = {};
|
|
431
|
-
var formParams = {};
|
|
432
|
-
var authNames = [];
|
|
433
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
434
|
-
var accepts = ['application/json'];
|
|
435
|
-
var returnType = _TokenRefresh["default"];
|
|
436
|
-
return this.apiClient.callApi('/users/token/refresh/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* Callback function to receive the result of the usersTokenVerifyCreate operation.
|
|
440
|
-
* @callback module:api/UsersApi~usersTokenVerifyCreateCallback
|
|
441
|
-
* @param {String} error Error message, if any.
|
|
442
|
-
* @param {module:model/TokenVerify} data The data returned by the service call.
|
|
443
|
-
* @param {String} response The complete HTTP response.
|
|
444
|
-
*/
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* Takes a token and indicates if it is valid. This view provides no information about a token's fitness for a particular use.
|
|
448
|
-
* @param {module:model/TokenVerify} tokenVerify
|
|
449
|
-
* @param {module:api/UsersApi~usersTokenVerifyCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
450
|
-
* data is of type: {@link module:model/TokenVerify}
|
|
451
|
-
*/
|
|
452
|
-
|
|
453
|
-
}, {
|
|
454
|
-
key: "usersTokenVerifyCreate",
|
|
455
|
-
value: function usersTokenVerifyCreate(tokenVerify, callback) {
|
|
456
|
-
var postBody = tokenVerify; // verify the required parameter 'tokenVerify' is set
|
|
457
|
-
|
|
458
|
-
if (tokenVerify === undefined || tokenVerify === null) {
|
|
459
|
-
throw new Error("Missing the required parameter 'tokenVerify' when calling usersTokenVerifyCreate");
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
var pathParams = {};
|
|
463
|
-
var queryParams = {};
|
|
464
|
-
var headerParams = {};
|
|
465
|
-
var formParams = {};
|
|
466
|
-
var authNames = [];
|
|
467
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
468
|
-
var accepts = ['application/json'];
|
|
469
|
-
var returnType = _TokenVerify["default"];
|
|
470
|
-
return this.apiClient.callApi('/users/token/verify/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
471
|
-
}
|
|
472
323
|
/**
|
|
473
324
|
* Callback function to receive the result of the usersUserDetailsPartialUpdate operation.
|
|
474
325
|
* @callback module:api/UsersApi~usersUserDetailsPartialUpdateCallback
|
|
@@ -494,7 +345,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
494
345
|
var queryParams = {};
|
|
495
346
|
var headerParams = {};
|
|
496
347
|
var formParams = {};
|
|
497
|
-
var authNames = ['basicAuth', '
|
|
348
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
498
349
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
499
350
|
var accepts = ['application/json'];
|
|
500
351
|
var returnType = _UserDetail["default"];
|
|
@@ -522,7 +373,7 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
522
373
|
var queryParams = {};
|
|
523
374
|
var headerParams = {};
|
|
524
375
|
var formParams = {};
|
|
525
|
-
var authNames = ['basicAuth', '
|
|
376
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
526
377
|
var contentTypes = [];
|
|
527
378
|
var accepts = ['application/json'];
|
|
528
379
|
var returnType = _UserDetail["default"];
|
|
@@ -556,45 +407,12 @@ var UsersApi = /*#__PURE__*/function () {
|
|
|
556
407
|
var queryParams = {};
|
|
557
408
|
var headerParams = {};
|
|
558
409
|
var formParams = {};
|
|
559
|
-
var authNames = ['basicAuth', '
|
|
410
|
+
var authNames = ['basicAuth', 'jwtAuth', 'tokenAuth'];
|
|
560
411
|
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
561
412
|
var accepts = ['application/json'];
|
|
562
413
|
var returnType = _UserDetail["default"];
|
|
563
414
|
return this.apiClient.callApi('/users/user-details/', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
564
415
|
}
|
|
565
|
-
/**
|
|
566
|
-
* Callback function to receive the result of the usersVerifyEmailCreate operation.
|
|
567
|
-
* @callback module:api/UsersApi~usersVerifyEmailCreateCallback
|
|
568
|
-
* @param {String} error Error message, if any.
|
|
569
|
-
* @param {module:model/VerifyEmail} data The data returned by the service call.
|
|
570
|
-
* @param {String} response The complete HTTP response.
|
|
571
|
-
*/
|
|
572
|
-
|
|
573
|
-
/**
|
|
574
|
-
* @param {module:model/VerifyEmail} verifyEmail
|
|
575
|
-
* @param {module:api/UsersApi~usersVerifyEmailCreateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
576
|
-
* data is of type: {@link module:model/VerifyEmail}
|
|
577
|
-
*/
|
|
578
|
-
|
|
579
|
-
}, {
|
|
580
|
-
key: "usersVerifyEmailCreate",
|
|
581
|
-
value: function usersVerifyEmailCreate(verifyEmail, callback) {
|
|
582
|
-
var postBody = verifyEmail; // verify the required parameter 'verifyEmail' is set
|
|
583
|
-
|
|
584
|
-
if (verifyEmail === undefined || verifyEmail === null) {
|
|
585
|
-
throw new Error("Missing the required parameter 'verifyEmail' when calling usersVerifyEmailCreate");
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
var pathParams = {};
|
|
589
|
-
var queryParams = {};
|
|
590
|
-
var headerParams = {};
|
|
591
|
-
var formParams = {};
|
|
592
|
-
var authNames = ['basicAuth', 'cookieAuth', 'jwtAuth', 'tokenAuth'];
|
|
593
|
-
var contentTypes = ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
594
|
-
var accepts = ['application/json'];
|
|
595
|
-
var returnType = _VerifyEmail["default"];
|
|
596
|
-
return this.apiClient.callApi('/users/verify-email/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
597
|
-
}
|
|
598
416
|
}]);
|
|
599
417
|
|
|
600
418
|
return UsersApi;
|