@fenixalliance/abs-api-client 1.0.13 → 1.0.15
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/clients/accountingService/core/OpenAPI.js +1 -1
- package/clients/accountingService/core/OpenAPI.ts +1 -1
- package/clients/authService/core/ApiError.js +20 -0
- package/clients/authService/core/ApiError.ts +25 -0
- package/clients/authService/core/ApiRequestOptions.js +2 -0
- package/clients/authService/core/ApiRequestOptions.ts +17 -0
- package/clients/authService/core/ApiResult.js +2 -0
- package/clients/authService/core/ApiResult.ts +11 -0
- package/clients/authService/core/CancelablePromise.js +104 -0
- package/clients/authService/core/CancelablePromise.ts +131 -0
- package/clients/authService/core/OpenAPI.js +14 -0
- package/clients/authService/core/OpenAPI.ts +32 -0
- package/clients/authService/core/request.js +294 -0
- package/clients/authService/core/request.ts +322 -0
- package/clients/authService/index.js +28 -0
- package/clients/authService/index.ts +48 -0
- package/clients/authService/models/AccessTokenResponse.js +2 -0
- package/clients/authService/models/AccessTokenResponse.ts +11 -0
- package/clients/authService/models/AccountHolderCreateDto.js +12 -0
- package/clients/authService/models/AccountHolderCreateDto.ts +41 -0
- package/clients/authService/models/AccountHolderCreateDtoEnvelope.js +2 -0
- package/clients/authService/models/AccountHolderCreateDtoEnvelope.ts +14 -0
- package/clients/authService/models/ApiAuthorizationResult.js +2 -0
- package/clients/authService/models/ApiAuthorizationResult.ts +17 -0
- package/clients/authService/models/ApiAuthorizationResultEnvelope.js +2 -0
- package/clients/authService/models/ApiAuthorizationResultEnvelope.ts +14 -0
- package/clients/authService/models/EnrollmentId.js +2 -0
- package/clients/authService/models/EnrollmentId.ts +5 -0
- package/clients/authService/models/ErrorEnvelope.js +2 -0
- package/clients/authService/models/ErrorEnvelope.ts +12 -0
- package/clients/authService/models/ForgotPasswordRequest.js +2 -0
- package/clients/authService/models/ForgotPasswordRequest.ts +8 -0
- package/clients/authService/models/HttpValidationProblemDetails.js +2 -0
- package/clients/authService/models/HttpValidationProblemDetails.ts +5 -0
- package/clients/authService/models/InfoRequest.js +2 -0
- package/clients/authService/models/InfoRequest.ts +10 -0
- package/clients/authService/models/InfoResponse.js +2 -0
- package/clients/authService/models/InfoResponse.ts +9 -0
- package/clients/authService/models/JsonWebKey.js +2 -0
- package/clients/authService/models/JsonWebKey.ts +13 -0
- package/clients/authService/models/JsonWebKeySet.js +2 -0
- package/clients/authService/models/JsonWebKeySet.ts +9 -0
- package/clients/authService/models/JsonWebKeySetEnvelope.js +2 -0
- package/clients/authService/models/JsonWebKeySetEnvelope.ts +14 -0
- package/clients/authService/models/JsonWebToken.js +2 -0
- package/clients/authService/models/JsonWebToken.ts +15 -0
- package/clients/authService/models/JsonWebTokenEnvelope.js +2 -0
- package/clients/authService/models/JsonWebTokenEnvelope.ts +14 -0
- package/clients/authService/models/JsonWebTokenHeader.js +2 -0
- package/clients/authService/models/JsonWebTokenHeader.ts +11 -0
- package/clients/authService/models/JsonWebTokenPayload.js +2 -0
- package/clients/authService/models/JsonWebTokenPayload.ts +17 -0
- package/clients/authService/models/LoginRequest.js +2 -0
- package/clients/authService/models/LoginRequest.ts +11 -0
- package/clients/authService/models/OAuthTokenRequest.js +2 -0
- package/clients/authService/models/OAuthTokenRequest.ts +12 -0
- package/clients/authService/models/OpenIdConfiguration.js +2 -0
- package/clients/authService/models/OpenIdConfiguration.ts +19 -0
- package/clients/authService/models/OpenIdConfigurationEnvelope.js +2 -0
- package/clients/authService/models/OpenIdConfigurationEnvelope.ts +14 -0
- package/clients/authService/models/RefreshRequest.js +2 -0
- package/clients/authService/models/RefreshRequest.ts +8 -0
- package/clients/authService/models/RegisterRequest.js +2 -0
- package/clients/authService/models/RegisterRequest.ts +9 -0
- package/clients/authService/models/ResendConfirmationEmailRequest.js +2 -0
- package/clients/authService/models/ResendConfirmationEmailRequest.ts +8 -0
- package/clients/authService/models/ResetPasswordRequest.js +2 -0
- package/clients/authService/models/ResetPasswordRequest.ts +10 -0
- package/clients/authService/models/SigninModel.js +2 -0
- package/clients/authService/models/SigninModel.ts +9 -0
- package/clients/authService/models/StringListEnvelope.js +2 -0
- package/clients/authService/models/StringListEnvelope.ts +13 -0
- package/clients/authService/models/TenantId.js +2 -0
- package/clients/authService/models/TenantId.ts +5 -0
- package/clients/authService/models/TwoFactorRequest.js +2 -0
- package/clients/authService/models/TwoFactorRequest.ts +12 -0
- package/clients/authService/models/TwoFactorResponse.js +2 -0
- package/clients/authService/models/TwoFactorResponse.ts +12 -0
- package/clients/authService/models/UserId.js +2 -0
- package/clients/authService/models/UserId.ts +5 -0
- package/clients/authService/services/ApplicationsService.js +112 -0
- package/clients/authService/services/ApplicationsService.ts +132 -0
- package/clients/authService/services/AuthService.js +246 -0
- package/clients/authService/services/AuthService.ts +293 -0
- package/clients/authService/services/CheckerService.js +22 -0
- package/clients/authService/services/CheckerService.ts +25 -0
- package/clients/authService/services/OAuthService.js +152 -0
- package/clients/authService/services/OAuthService.ts +183 -0
- package/clients/authService/services/ResourceService.js +22 -0
- package/clients/authService/services/ResourceService.ts +25 -0
- package/clients/authService/services/UserInfoService.js +36 -0
- package/clients/authService/services/UserInfoService.ts +41 -0
- package/clients/cartService/core/OpenAPI.js +1 -1
- package/clients/cartService/core/OpenAPI.ts +1 -1
- package/clients/catalogService/core/OpenAPI.js +1 -1
- package/clients/catalogService/core/OpenAPI.ts +1 -1
- package/clients/contentService/core/OpenAPI.js +1 -1
- package/clients/contentService/core/OpenAPI.ts +1 -1
- package/clients/contentService/services/PortalsService.js +26 -14
- package/clients/contentService/services/PortalsService.ts +26 -14
- package/clients/crmService/core/OpenAPI.js +1 -1
- package/clients/crmService/core/OpenAPI.ts +1 -1
- package/clients/dealsService/core/OpenAPI.js +1 -1
- package/clients/dealsService/core/OpenAPI.ts +1 -1
- package/clients/forexService/core/OpenAPI.js +1 -1
- package/clients/forexService/core/OpenAPI.ts +1 -1
- package/clients/globeService/core/OpenAPI.js +1 -1
- package/clients/globeService/core/OpenAPI.ts +1 -1
- package/clients/globeService/index.js +5 -1
- package/clients/globeService/index.ts +4 -0
- package/clients/globeService/models/Error.js +2 -0
- package/clients/globeService/models/Error.ts +10 -0
- package/clients/globeService/models/PaymentResponse.js +21 -0
- package/clients/globeService/models/PaymentResponse.ts +34 -0
- package/clients/globeService/models/ResponseStatus.js +2 -0
- package/clients/globeService/models/ResponseStatus.ts +12 -0
- package/clients/globeService/services/MigrationsService.js +26 -0
- package/clients/globeService/services/MigrationsService.ts +30 -0
- package/clients/holderService/core/OpenAPI.js +1 -1
- package/clients/holderService/core/OpenAPI.ts +1 -1
- package/clients/hrmsService/core/OpenAPI.js +1 -1
- package/clients/hrmsService/core/OpenAPI.ts +1 -1
- package/clients/identityService/core/OpenAPI.js +1 -1
- package/clients/identityService/core/OpenAPI.ts +1 -1
- package/clients/inventoryService/core/OpenAPI.js +1 -1
- package/clients/inventoryService/core/OpenAPI.ts +1 -1
- package/clients/invoicingService/core/OpenAPI.js +1 -1
- package/clients/invoicingService/core/OpenAPI.ts +1 -1
- package/clients/learningService/core/OpenAPI.js +1 -1
- package/clients/learningService/core/OpenAPI.ts +1 -1
- package/clients/marketingService/core/OpenAPI.js +1 -1
- package/clients/marketingService/core/OpenAPI.ts +1 -1
- package/clients/ordersService/core/OpenAPI.js +1 -1
- package/clients/ordersService/core/OpenAPI.ts +1 -1
- package/clients/paymentsService/core/OpenAPI.js +1 -1
- package/clients/paymentsService/core/OpenAPI.ts +1 -1
- package/clients/pricingService/core/OpenAPI.js +1 -1
- package/clients/pricingService/core/OpenAPI.ts +1 -1
- package/clients/projectsService/core/OpenAPI.js +1 -1
- package/clients/projectsService/core/OpenAPI.ts +1 -1
- package/clients/quotesService/core/OpenAPI.js +1 -1
- package/clients/quotesService/core/OpenAPI.ts +1 -1
- package/clients/salesService/core/OpenAPI.js +1 -1
- package/clients/salesService/core/OpenAPI.ts +1 -1
- package/clients/securityService/core/OpenAPI.js +1 -1
- package/clients/securityService/core/OpenAPI.ts +1 -1
- package/clients/shipmentsService/core/OpenAPI.js +1 -1
- package/clients/shipmentsService/core/OpenAPI.ts +1 -1
- package/clients/socialService/core/OpenAPI.js +1 -1
- package/clients/socialService/core/OpenAPI.ts +1 -1
- package/clients/socialService/services/SocialProfilesService.js +72 -24
- package/clients/socialService/services/SocialProfilesService.ts +72 -24
- package/clients/storageService/core/OpenAPI.js +1 -1
- package/clients/storageService/core/OpenAPI.ts +1 -1
- package/clients/supportService/core/OpenAPI.js +1 -1
- package/clients/supportService/core/OpenAPI.ts +1 -1
- package/clients/systemService/core/OpenAPI.js +1 -1
- package/clients/systemService/core/OpenAPI.ts +1 -1
- package/clients/systemService/index.js +5 -1
- package/clients/systemService/index.ts +10 -0
- package/clients/systemService/models/AdditionalAttribute.js +2 -0
- package/clients/systemService/models/AdditionalAttribute.ts +9 -0
- package/clients/systemService/models/LicenseAttributes.js +2 -0
- package/clients/systemService/models/LicenseAttributes.ts +5 -0
- package/clients/systemService/models/LicenseAttributesListEnvelope.js +2 -0
- package/clients/systemService/models/LicenseAttributesListEnvelope.ts +14 -0
- package/clients/systemService/models/LicenseFeature.js +2 -0
- package/clients/systemService/models/LicenseFeature.ts +9 -0
- package/clients/systemService/models/LicenseKey.js +2 -0
- package/clients/systemService/models/LicenseKey.ts +8 -0
- package/clients/systemService/models/LicenseKeyRequest.js +12 -0
- package/clients/systemService/models/LicenseKeyRequest.ts +28 -0
- package/clients/systemService/models/LicenseValidationError.js +2 -0
- package/clients/systemService/models/LicenseValidationError.ts +9 -0
- package/clients/systemService/models/LicenseValidationErrorListEnvelope.js +2 -0
- package/clients/systemService/models/LicenseValidationErrorListEnvelope.ts +14 -0
- package/clients/systemService/models/StringEnvelope.js +2 -0
- package/clients/systemService/models/StringEnvelope.ts +13 -0
- package/clients/systemService/services/LicensesService.js +108 -0
- package/clients/systemService/services/LicensesService.ts +131 -0
- package/clients/tenantService/core/OpenAPI.js +1 -1
- package/clients/tenantService/core/OpenAPI.ts +1 -1
- package/clients/timeTrackerService/core/OpenAPI.js +1 -1
- package/clients/timeTrackerService/core/OpenAPI.ts +1 -1
- package/clients/walletsService/core/OpenAPI.js +1 -1
- package/clients/walletsService/core/OpenAPI.ts +1 -1
- package/clients/walletsService/services/WalletsService.js +65 -21
- package/clients/walletsService/services/WalletsService.ts +65 -21
- package/package.json +1 -1
- package/schemas/authService/schema.s.js +6 -0
- package/schemas/authService/schema.s.ts +894 -0
- package/schemas/contentService/schema.s.ts +120 -48
- package/schemas/globeService/schema.s.ts +64 -0
- package/schemas/socialService/schema.s.ts +1046 -990
- package/schemas/systemService/schema.s.ts +238 -0
- package/schemas/walletsService/schema.s.ts +971 -774
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class AuthService {
|
|
7
|
+
/**
|
|
8
|
+
* @returns any OK
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static getVersion() {
|
|
12
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
13
|
+
method: 'GET',
|
|
14
|
+
url: '/version',
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @returns any OK
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
static getHealth() {
|
|
22
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '/health',
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @returns any OK
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static getHello() {
|
|
32
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
33
|
+
method: 'GET',
|
|
34
|
+
url: '/hello',
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @param requestBody
|
|
39
|
+
* @returns any OK
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
static postRegister(requestBody) {
|
|
43
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
44
|
+
method: 'POST',
|
|
45
|
+
url: '/register',
|
|
46
|
+
body: requestBody,
|
|
47
|
+
mediaType: 'application/json',
|
|
48
|
+
errors: {
|
|
49
|
+
400: `Bad Request`,
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @param useCookies
|
|
55
|
+
* @param useSessionCookies
|
|
56
|
+
* @param requestBody
|
|
57
|
+
* @returns AccessTokenResponse OK
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
static postLogin(useCookies, useSessionCookies, requestBody) {
|
|
61
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
|
+
method: 'POST',
|
|
63
|
+
url: '/login',
|
|
64
|
+
query: {
|
|
65
|
+
'useCookies': useCookies,
|
|
66
|
+
'useSessionCookies': useSessionCookies,
|
|
67
|
+
},
|
|
68
|
+
body: requestBody,
|
|
69
|
+
mediaType: 'application/json',
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @param requestBody
|
|
74
|
+
* @returns AccessTokenResponse OK
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
static postRefresh(requestBody) {
|
|
78
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
79
|
+
method: 'POST',
|
|
80
|
+
url: '/refresh',
|
|
81
|
+
body: requestBody,
|
|
82
|
+
mediaType: 'application/json',
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @param userId
|
|
87
|
+
* @param code
|
|
88
|
+
* @param changedEmail
|
|
89
|
+
* @returns any OK
|
|
90
|
+
* @throws ApiError
|
|
91
|
+
*/
|
|
92
|
+
static mapIdentityApiConfirmEmail(userId, code, changedEmail) {
|
|
93
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
94
|
+
method: 'GET',
|
|
95
|
+
url: '/confirmEmail',
|
|
96
|
+
query: {
|
|
97
|
+
'userId': userId,
|
|
98
|
+
'code': code,
|
|
99
|
+
'changedEmail': changedEmail,
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @param requestBody
|
|
105
|
+
* @returns any OK
|
|
106
|
+
* @throws ApiError
|
|
107
|
+
*/
|
|
108
|
+
static postResendConfirmationEmail(requestBody) {
|
|
109
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
110
|
+
method: 'POST',
|
|
111
|
+
url: '/resendConfirmationEmail',
|
|
112
|
+
body: requestBody,
|
|
113
|
+
mediaType: 'application/json',
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @param requestBody
|
|
118
|
+
* @returns any OK
|
|
119
|
+
* @throws ApiError
|
|
120
|
+
*/
|
|
121
|
+
static postForgotPassword(requestBody) {
|
|
122
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
123
|
+
method: 'POST',
|
|
124
|
+
url: '/forgotPassword',
|
|
125
|
+
body: requestBody,
|
|
126
|
+
mediaType: 'application/json',
|
|
127
|
+
errors: {
|
|
128
|
+
400: `Bad Request`,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @param requestBody
|
|
134
|
+
* @returns any OK
|
|
135
|
+
* @throws ApiError
|
|
136
|
+
*/
|
|
137
|
+
static postResetPassword(requestBody) {
|
|
138
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
139
|
+
method: 'POST',
|
|
140
|
+
url: '/resetPassword',
|
|
141
|
+
body: requestBody,
|
|
142
|
+
mediaType: 'application/json',
|
|
143
|
+
errors: {
|
|
144
|
+
400: `Bad Request`,
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @param requestBody
|
|
150
|
+
* @returns TwoFactorResponse OK
|
|
151
|
+
* @throws ApiError
|
|
152
|
+
*/
|
|
153
|
+
static postManage2Fa(requestBody) {
|
|
154
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
155
|
+
method: 'POST',
|
|
156
|
+
url: '/manage/2fa',
|
|
157
|
+
body: requestBody,
|
|
158
|
+
mediaType: 'application/json',
|
|
159
|
+
errors: {
|
|
160
|
+
400: `Bad Request`,
|
|
161
|
+
404: `Not Found`,
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @returns InfoResponse OK
|
|
167
|
+
* @throws ApiError
|
|
168
|
+
*/
|
|
169
|
+
static getManageInfo() {
|
|
170
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
171
|
+
method: 'GET',
|
|
172
|
+
url: '/manage/info',
|
|
173
|
+
errors: {
|
|
174
|
+
400: `Bad Request`,
|
|
175
|
+
404: `Not Found`,
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* @param requestBody
|
|
181
|
+
* @returns InfoResponse OK
|
|
182
|
+
* @throws ApiError
|
|
183
|
+
*/
|
|
184
|
+
static postManageInfo(requestBody) {
|
|
185
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
186
|
+
method: 'POST',
|
|
187
|
+
url: '/manage/info',
|
|
188
|
+
body: requestBody,
|
|
189
|
+
mediaType: 'application/json',
|
|
190
|
+
errors: {
|
|
191
|
+
400: `Bad Request`,
|
|
192
|
+
404: `Not Found`,
|
|
193
|
+
},
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @param formData
|
|
198
|
+
* @returns any OK
|
|
199
|
+
* @throws ApiError
|
|
200
|
+
*/
|
|
201
|
+
static postAccountPerformExternalLogin(formData) {
|
|
202
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
203
|
+
method: 'POST',
|
|
204
|
+
url: '/Account/PerformExternalLogin',
|
|
205
|
+
formData: formData,
|
|
206
|
+
mediaType: 'multipart/form-data',
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* @param formData
|
|
211
|
+
* @returns any OK
|
|
212
|
+
* @throws ApiError
|
|
213
|
+
*/
|
|
214
|
+
static postAccountLogout(formData) {
|
|
215
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
216
|
+
method: 'POST',
|
|
217
|
+
url: '/Account/Logout',
|
|
218
|
+
formData: formData,
|
|
219
|
+
mediaType: 'multipart/form-data',
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @param formData
|
|
224
|
+
* @returns any OK
|
|
225
|
+
* @throws ApiError
|
|
226
|
+
*/
|
|
227
|
+
static postAccountManageLinkExternalLogin(formData) {
|
|
228
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
229
|
+
method: 'POST',
|
|
230
|
+
url: '/Account/Manage/LinkExternalLogin',
|
|
231
|
+
formData: formData,
|
|
232
|
+
mediaType: 'multipart/form-data',
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* @returns any OK
|
|
237
|
+
* @throws ApiError
|
|
238
|
+
*/
|
|
239
|
+
static postAccountManageDownloadPersonalData() {
|
|
240
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
241
|
+
method: 'POST',
|
|
242
|
+
url: '/Account/Manage/DownloadPersonalData',
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
exports.AuthService = AuthService;
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { AccessTokenResponse } from '../models/AccessTokenResponse';
|
|
6
|
+
import type { ForgotPasswordRequest } from '../models/ForgotPasswordRequest';
|
|
7
|
+
import type { InfoRequest } from '../models/InfoRequest';
|
|
8
|
+
import type { InfoResponse } from '../models/InfoResponse';
|
|
9
|
+
import type { LoginRequest } from '../models/LoginRequest';
|
|
10
|
+
import type { RefreshRequest } from '../models/RefreshRequest';
|
|
11
|
+
import type { RegisterRequest } from '../models/RegisterRequest';
|
|
12
|
+
import type { ResendConfirmationEmailRequest } from '../models/ResendConfirmationEmailRequest';
|
|
13
|
+
import type { ResetPasswordRequest } from '../models/ResetPasswordRequest';
|
|
14
|
+
import type { TwoFactorRequest } from '../models/TwoFactorRequest';
|
|
15
|
+
import type { TwoFactorResponse } from '../models/TwoFactorResponse';
|
|
16
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
17
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
18
|
+
import { request as __request } from '../core/request';
|
|
19
|
+
export class AuthService {
|
|
20
|
+
/**
|
|
21
|
+
* @returns any OK
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
public static getVersion(): CancelablePromise<any> {
|
|
25
|
+
return __request(OpenAPI, {
|
|
26
|
+
method: 'GET',
|
|
27
|
+
url: '/version',
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @returns any OK
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
public static getHealth(): CancelablePromise<any> {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: 'GET',
|
|
37
|
+
url: '/health',
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @returns any OK
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
public static getHello(): CancelablePromise<any> {
|
|
45
|
+
return __request(OpenAPI, {
|
|
46
|
+
method: 'GET',
|
|
47
|
+
url: '/hello',
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @param requestBody
|
|
52
|
+
* @returns any OK
|
|
53
|
+
* @throws ApiError
|
|
54
|
+
*/
|
|
55
|
+
public static postRegister(
|
|
56
|
+
requestBody?: RegisterRequest,
|
|
57
|
+
): CancelablePromise<any> {
|
|
58
|
+
return __request(OpenAPI, {
|
|
59
|
+
method: 'POST',
|
|
60
|
+
url: '/register',
|
|
61
|
+
body: requestBody,
|
|
62
|
+
mediaType: 'application/json',
|
|
63
|
+
errors: {
|
|
64
|
+
400: `Bad Request`,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @param useCookies
|
|
70
|
+
* @param useSessionCookies
|
|
71
|
+
* @param requestBody
|
|
72
|
+
* @returns AccessTokenResponse OK
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
public static postLogin(
|
|
76
|
+
useCookies?: boolean,
|
|
77
|
+
useSessionCookies?: boolean,
|
|
78
|
+
requestBody?: LoginRequest,
|
|
79
|
+
): CancelablePromise<AccessTokenResponse> {
|
|
80
|
+
return __request(OpenAPI, {
|
|
81
|
+
method: 'POST',
|
|
82
|
+
url: '/login',
|
|
83
|
+
query: {
|
|
84
|
+
'useCookies': useCookies,
|
|
85
|
+
'useSessionCookies': useSessionCookies,
|
|
86
|
+
},
|
|
87
|
+
body: requestBody,
|
|
88
|
+
mediaType: 'application/json',
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @param requestBody
|
|
93
|
+
* @returns AccessTokenResponse OK
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
public static postRefresh(
|
|
97
|
+
requestBody?: RefreshRequest,
|
|
98
|
+
): CancelablePromise<AccessTokenResponse> {
|
|
99
|
+
return __request(OpenAPI, {
|
|
100
|
+
method: 'POST',
|
|
101
|
+
url: '/refresh',
|
|
102
|
+
body: requestBody,
|
|
103
|
+
mediaType: 'application/json',
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @param userId
|
|
108
|
+
* @param code
|
|
109
|
+
* @param changedEmail
|
|
110
|
+
* @returns any OK
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
public static mapIdentityApiConfirmEmail(
|
|
114
|
+
userId?: string,
|
|
115
|
+
code?: string,
|
|
116
|
+
changedEmail?: string,
|
|
117
|
+
): CancelablePromise<any> {
|
|
118
|
+
return __request(OpenAPI, {
|
|
119
|
+
method: 'GET',
|
|
120
|
+
url: '/confirmEmail',
|
|
121
|
+
query: {
|
|
122
|
+
'userId': userId,
|
|
123
|
+
'code': code,
|
|
124
|
+
'changedEmail': changedEmail,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @param requestBody
|
|
130
|
+
* @returns any OK
|
|
131
|
+
* @throws ApiError
|
|
132
|
+
*/
|
|
133
|
+
public static postResendConfirmationEmail(
|
|
134
|
+
requestBody?: ResendConfirmationEmailRequest,
|
|
135
|
+
): CancelablePromise<any> {
|
|
136
|
+
return __request(OpenAPI, {
|
|
137
|
+
method: 'POST',
|
|
138
|
+
url: '/resendConfirmationEmail',
|
|
139
|
+
body: requestBody,
|
|
140
|
+
mediaType: 'application/json',
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @param requestBody
|
|
145
|
+
* @returns any OK
|
|
146
|
+
* @throws ApiError
|
|
147
|
+
*/
|
|
148
|
+
public static postForgotPassword(
|
|
149
|
+
requestBody?: ForgotPasswordRequest,
|
|
150
|
+
): CancelablePromise<any> {
|
|
151
|
+
return __request(OpenAPI, {
|
|
152
|
+
method: 'POST',
|
|
153
|
+
url: '/forgotPassword',
|
|
154
|
+
body: requestBody,
|
|
155
|
+
mediaType: 'application/json',
|
|
156
|
+
errors: {
|
|
157
|
+
400: `Bad Request`,
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* @param requestBody
|
|
163
|
+
* @returns any OK
|
|
164
|
+
* @throws ApiError
|
|
165
|
+
*/
|
|
166
|
+
public static postResetPassword(
|
|
167
|
+
requestBody?: ResetPasswordRequest,
|
|
168
|
+
): CancelablePromise<any> {
|
|
169
|
+
return __request(OpenAPI, {
|
|
170
|
+
method: 'POST',
|
|
171
|
+
url: '/resetPassword',
|
|
172
|
+
body: requestBody,
|
|
173
|
+
mediaType: 'application/json',
|
|
174
|
+
errors: {
|
|
175
|
+
400: `Bad Request`,
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* @param requestBody
|
|
181
|
+
* @returns TwoFactorResponse OK
|
|
182
|
+
* @throws ApiError
|
|
183
|
+
*/
|
|
184
|
+
public static postManage2Fa(
|
|
185
|
+
requestBody?: TwoFactorRequest,
|
|
186
|
+
): CancelablePromise<TwoFactorResponse> {
|
|
187
|
+
return __request(OpenAPI, {
|
|
188
|
+
method: 'POST',
|
|
189
|
+
url: '/manage/2fa',
|
|
190
|
+
body: requestBody,
|
|
191
|
+
mediaType: 'application/json',
|
|
192
|
+
errors: {
|
|
193
|
+
400: `Bad Request`,
|
|
194
|
+
404: `Not Found`,
|
|
195
|
+
},
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* @returns InfoResponse OK
|
|
200
|
+
* @throws ApiError
|
|
201
|
+
*/
|
|
202
|
+
public static getManageInfo(): CancelablePromise<InfoResponse> {
|
|
203
|
+
return __request(OpenAPI, {
|
|
204
|
+
method: 'GET',
|
|
205
|
+
url: '/manage/info',
|
|
206
|
+
errors: {
|
|
207
|
+
400: `Bad Request`,
|
|
208
|
+
404: `Not Found`,
|
|
209
|
+
},
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @param requestBody
|
|
214
|
+
* @returns InfoResponse OK
|
|
215
|
+
* @throws ApiError
|
|
216
|
+
*/
|
|
217
|
+
public static postManageInfo(
|
|
218
|
+
requestBody?: InfoRequest,
|
|
219
|
+
): CancelablePromise<InfoResponse> {
|
|
220
|
+
return __request(OpenAPI, {
|
|
221
|
+
method: 'POST',
|
|
222
|
+
url: '/manage/info',
|
|
223
|
+
body: requestBody,
|
|
224
|
+
mediaType: 'application/json',
|
|
225
|
+
errors: {
|
|
226
|
+
400: `Bad Request`,
|
|
227
|
+
404: `Not Found`,
|
|
228
|
+
},
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* @param formData
|
|
233
|
+
* @returns any OK
|
|
234
|
+
* @throws ApiError
|
|
235
|
+
*/
|
|
236
|
+
public static postAccountPerformExternalLogin(
|
|
237
|
+
formData?: {
|
|
238
|
+
provider: string;
|
|
239
|
+
returnUrl: string;
|
|
240
|
+
},
|
|
241
|
+
): CancelablePromise<any> {
|
|
242
|
+
return __request(OpenAPI, {
|
|
243
|
+
method: 'POST',
|
|
244
|
+
url: '/Account/PerformExternalLogin',
|
|
245
|
+
formData: formData,
|
|
246
|
+
mediaType: 'multipart/form-data',
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* @param formData
|
|
251
|
+
* @returns any OK
|
|
252
|
+
* @throws ApiError
|
|
253
|
+
*/
|
|
254
|
+
public static postAccountLogout(
|
|
255
|
+
formData?: {
|
|
256
|
+
returnUrl: string;
|
|
257
|
+
},
|
|
258
|
+
): CancelablePromise<any> {
|
|
259
|
+
return __request(OpenAPI, {
|
|
260
|
+
method: 'POST',
|
|
261
|
+
url: '/Account/Logout',
|
|
262
|
+
formData: formData,
|
|
263
|
+
mediaType: 'multipart/form-data',
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @param formData
|
|
268
|
+
* @returns any OK
|
|
269
|
+
* @throws ApiError
|
|
270
|
+
*/
|
|
271
|
+
public static postAccountManageLinkExternalLogin(
|
|
272
|
+
formData?: {
|
|
273
|
+
provider: string;
|
|
274
|
+
},
|
|
275
|
+
): CancelablePromise<any> {
|
|
276
|
+
return __request(OpenAPI, {
|
|
277
|
+
method: 'POST',
|
|
278
|
+
url: '/Account/Manage/LinkExternalLogin',
|
|
279
|
+
formData: formData,
|
|
280
|
+
mediaType: 'multipart/form-data',
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* @returns any OK
|
|
285
|
+
* @throws ApiError
|
|
286
|
+
*/
|
|
287
|
+
public static postAccountManageDownloadPersonalData(): CancelablePromise<any> {
|
|
288
|
+
return __request(OpenAPI, {
|
|
289
|
+
method: 'POST',
|
|
290
|
+
url: '/Account/Manage/DownloadPersonalData',
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckerService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class CheckerService {
|
|
7
|
+
/**
|
|
8
|
+
* @param xApiVersion
|
|
9
|
+
* @returns boolean OK
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static getApiV2AuthCheckerIsAuthenticated(xApiVersion) {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/api/v2/Auth/Checker/IsAuthenticated',
|
|
16
|
+
headers: {
|
|
17
|
+
'x-api-version': xApiVersion,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.CheckerService = CheckerService;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
7
|
+
import { request as __request } from '../core/request';
|
|
8
|
+
export class CheckerService {
|
|
9
|
+
/**
|
|
10
|
+
* @param xApiVersion
|
|
11
|
+
* @returns boolean OK
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
public static getApiV2AuthCheckerIsAuthenticated(
|
|
15
|
+
xApiVersion?: string,
|
|
16
|
+
): CancelablePromise<boolean> {
|
|
17
|
+
return __request(OpenAPI, {
|
|
18
|
+
method: 'GET',
|
|
19
|
+
url: '/api/v2/Auth/Checker/IsAuthenticated',
|
|
20
|
+
headers: {
|
|
21
|
+
'x-api-version': xApiVersion,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|