@ayasofyazilim/saas 0.0.2
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/AccountService/AccountServiceClient.ts +58 -0
- package/AccountService/core/ApiError.ts +25 -0
- package/AccountService/core/ApiRequestOptions.ts +17 -0
- package/AccountService/core/ApiResult.ts +11 -0
- package/AccountService/core/BaseHttpRequest.ts +14 -0
- package/AccountService/core/CancelablePromise.ts +131 -0
- package/AccountService/core/FetchHttpRequest.ts +26 -0
- package/AccountService/core/OpenAPI.ts +32 -0
- package/AccountService/core/request.ts +322 -0
- package/AccountService/index.ts +122 -0
- package/AccountService/models/Volo_Abp_Account_AccountExternalProviderSettingsDto.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_AccountRecaptchaSettingsDto.ts +14 -0
- package/AccountService/models/Volo_Abp_Account_AccountSettingsDto.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_AccountTwoFactorSettingsDto.ts +11 -0
- package/AccountService/models/Volo_Abp_Account_AuthenticatorInfoDto.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_ChangePasswordInput.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_ConfirmEmailInput.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_ConfirmPhoneNumberInput.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_DelegateNewUserInput.ts +10 -0
- package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderDto.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderItemDto.ts +11 -0
- package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderItemWithSecretDto.ts +13 -0
- package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettings.ts +12 -0
- package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettingsProperty.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_IdentityUserConfirmationStateDto.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_IsLinkedInput.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_LinkUserDto.ts +12 -0
- package/AccountService/models/Volo_Abp_Account_LinkUserInput.ts +10 -0
- package/AccountService/models/Volo_Abp_Account_ProfileDto.ts +20 -0
- package/AccountService/models/Volo_Abp_Account_ProfilePictureSourceDto.ts +11 -0
- package/AccountService/models/Volo_Abp_Account_ProfilePictureType.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_AbpLoginResult.ts +10 -0
- package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_LinkUserLoginInfo.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_LoginResultType.ts +12 -0
- package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_UserLoginInfo.ts +11 -0
- package/AccountService/models/Volo_Abp_Account_RegisterDto.ts +15 -0
- package/AccountService/models/Volo_Abp_Account_ResetPasswordDto.ts +10 -0
- package/AccountService/models/Volo_Abp_Account_SendEmailConfirmationTokenDto.ts +11 -0
- package/AccountService/models/Volo_Abp_Account_SendPasswordResetCodeDto.ts +11 -0
- package/AccountService/models/Volo_Abp_Account_SendPhoneNumberConfirmationTokenDto.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_SendTwoFactorCodeInput.ts +10 -0
- package/AccountService/models/Volo_Abp_Account_UnLinkUserInput.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_UpdateExternalProviderDto.ts +12 -0
- package/AccountService/models/Volo_Abp_Account_UpdateProfileDto.ts +15 -0
- package/AccountService/models/Volo_Abp_Account_UserDelegationDto.ts +11 -0
- package/AccountService/models/Volo_Abp_Account_UserLookupDto.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_VerifyAuthenticatorCodeDto.ts +8 -0
- package/AccountService/models/Volo_Abp_Account_VerifyAuthenticatorCodeInput.ts +8 -0
- package/AccountService/models/Volo_Abp_Account_VerifyEmailConfirmationTokenInput.ts +9 -0
- package/AccountService/models/Volo_Abp_Account_VerifyLinkLoginTokenInput.ts +10 -0
- package/AccountService/models/Volo_Abp_Account_VerifyLinkTokenInput.ts +10 -0
- package/AccountService/models/Volo_Abp_Account_VerifyPasswordResetTokenInput.ts +9 -0
- package/AccountService/models/Volo_Abp_Application_Dtos_ListResultDto_1.ts +9 -0
- package/AccountService/models/Volo_Abp_Application_Dtos_PagedResultDto_1.ts +10 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationConfigurationDto.ts +30 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationFeatureConfigurationDto.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationGlobalFeatureConfigurationDto.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationConfigurationDto.ts +18 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto.ts +9 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationResourceDto.ts +9 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationSettingConfigurationDto.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ClockDto.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentCultureDto.ts +17 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentUserDto.ts +22 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_DateTimeFormatDto.ts +14 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_IanaTimeZone.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_EntityExtensionDto.ts +10 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumDto.ts +10 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumFieldDto.ts +9 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiCreateDto.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiDto.ts +13 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiGetDto.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiUpdateDto.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyAttributeDto.ts +9 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyDto.ts +19 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiDto.ts +14 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiFormDto.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiLookupDto.ts +12 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiTableDto.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_LocalizableStringDto.ts +9 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ModuleExtensionDto.ts +10 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ObjectExtensionsDto.ts +11 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimeZone.ts +11 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimingDto.ts +9 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_WindowsTimeZone.ts +8 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_CurrentTenantDto.ts +10 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_FindTenantResultDto.ts +11 -0
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_MultiTenancyInfoDto.ts +8 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_ActionApiDescriptionModel.ts +20 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_ApplicationApiDescriptionModel.ts +11 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_ControllerApiDescriptionModel.ts +17 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_ControllerInterfaceApiDescriptionModel.ts +11 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_InterfaceMethodApiDescriptionModel.ts +12 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_MethodParameterApiDescriptionModel.ts +13 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_ModuleApiDescriptionModel.ts +11 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_ParameterApiDescriptionModel.ts +17 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_PropertyApiDescriptionModel.ts +17 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_ReturnValueApiDescriptionModel.ts +9 -0
- package/AccountService/models/Volo_Abp_Http_Modeling_TypeApiDescriptionModel.ts +14 -0
- package/AccountService/models/Volo_Abp_Http_RemoteServiceErrorInfo.ts +13 -0
- package/AccountService/models/Volo_Abp_Http_RemoteServiceErrorResponse.ts +9 -0
- package/AccountService/models/Volo_Abp_Http_RemoteServiceValidationErrorInfo.ts +9 -0
- package/AccountService/models/Volo_Abp_Identity_Features_IdentityProTwoFactorBehaviour.ts +9 -0
- package/AccountService/models/Volo_Abp_Identity_IdentitySecurityLogDto.ts +21 -0
- package/AccountService/models/Volo_Abp_Identity_IdentityUserDto.ts +35 -0
- package/AccountService/models/Volo_Abp_Localization_LanguageInfo.ts +12 -0
- package/AccountService/models/Volo_Abp_NameValue.ts +9 -0
- package/AccountService/services/AbpApiDefinitionService.ts +34 -0
- package/AccountService/services/AbpApplicationConfigurationService.ts +34 -0
- package/AccountService/services/AbpApplicationLocalizationService.ts +37 -0
- package/AccountService/services/AbpTenantService.ts +58 -0
- package/AccountService/services/AccountExternalProviderService.ts +56 -0
- package/AccountService/services/AccountService.ts +545 -0
- package/AccountService/services/AccountSettingsService.ts +178 -0
- package/AccountService/services/DynamicClaimsService.ts +27 -0
- package/AccountService/services/LoginService.ts +99 -0
- package/AccountService/services/ProfileService.ts +155 -0
- package/AccountService/services/UserService.ts +313 -0
- package/ProjectService/ProjectServiceClient.ts +40 -0
- package/ProjectService/core/ApiError.ts +25 -0
- package/ProjectService/core/ApiRequestOptions.ts +17 -0
- package/ProjectService/core/ApiResult.ts +11 -0
- package/ProjectService/core/BaseHttpRequest.ts +14 -0
- package/ProjectService/core/CancelablePromise.ts +131 -0
- package/ProjectService/core/FetchHttpRequest.ts +26 -0
- package/ProjectService/core/OpenAPI.ts +32 -0
- package/ProjectService/core/request.ts +322 -0
- package/ProjectService/index.ts +73 -0
- package/ProjectService/models/UpWithCrowdDemo_ProjectService_ProjectsDto_SaveProjectDto.ts +19 -0
- package/ProjectService/models/UpWithCrowdDemo_ProjectService_ProjectsDto_UpdateProjectDto.ts +20 -0
- package/ProjectService/models/UpWithCrowdDemo_ProjectService_Projects_ProjectDto.ts +20 -0
- package/ProjectService/models/UpWithCrowdDemo_ProjectService_Samples_SampleDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_Application_Dtos_PagedResultDto_1.ts +10 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationConfigurationDto.ts +30 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationFeatureConfigurationDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationGlobalFeatureConfigurationDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationConfigurationDto.ts +18 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto.ts +9 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationResourceDto.ts +9 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationSettingConfigurationDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ClockDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentCultureDto.ts +17 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentUserDto.ts +22 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_DateTimeFormatDto.ts +14 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_IanaTimeZone.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_EntityExtensionDto.ts +10 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumDto.ts +10 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumFieldDto.ts +9 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiCreateDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiDto.ts +13 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiGetDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiUpdateDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyAttributeDto.ts +9 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyDto.ts +19 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiDto.ts +14 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiFormDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiLookupDto.ts +12 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiTableDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_LocalizableStringDto.ts +9 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ModuleExtensionDto.ts +10 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ObjectExtensionsDto.ts +11 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimeZone.ts +11 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimingDto.ts +9 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_WindowsTimeZone.ts +8 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_CurrentTenantDto.ts +10 -0
- package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_MultiTenancyInfoDto.ts +8 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_ActionApiDescriptionModel.ts +20 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_ApplicationApiDescriptionModel.ts +11 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_ControllerApiDescriptionModel.ts +17 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_ControllerInterfaceApiDescriptionModel.ts +11 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_InterfaceMethodApiDescriptionModel.ts +12 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_MethodParameterApiDescriptionModel.ts +13 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_ModuleApiDescriptionModel.ts +11 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_ParameterApiDescriptionModel.ts +17 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_PropertyApiDescriptionModel.ts +17 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_ReturnValueApiDescriptionModel.ts +9 -0
- package/ProjectService/models/Volo_Abp_Http_Modeling_TypeApiDescriptionModel.ts +14 -0
- package/ProjectService/models/Volo_Abp_Http_RemoteServiceErrorInfo.ts +13 -0
- package/ProjectService/models/Volo_Abp_Http_RemoteServiceErrorResponse.ts +9 -0
- package/ProjectService/models/Volo_Abp_Http_RemoteServiceValidationErrorInfo.ts +9 -0
- package/ProjectService/models/Volo_Abp_Localization_LanguageInfo.ts +12 -0
- package/ProjectService/models/Volo_Abp_NameValue.ts +9 -0
- package/ProjectService/services/AbpApiDefinitionService.ts +34 -0
- package/ProjectService/services/AbpApplicationConfigurationService.ts +34 -0
- package/ProjectService/services/AbpApplicationLocalizationService.ts +37 -0
- package/ProjectService/services/ProjectService.ts +143 -0
- package/ProjectService/services/SampleServiceService.ts +46 -0
- package/ProjectService.json +2938 -0
- package/index.ts +2 -0
- package/package.json +17 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { Volo_Abp_Account_DelegateNewUserInput } from '../models/Volo_Abp_Account_DelegateNewUserInput';
|
|
6
|
+
import type { Volo_Abp_Account_IsLinkedInput } from '../models/Volo_Abp_Account_IsLinkedInput';
|
|
7
|
+
import type { Volo_Abp_Account_LinkUserDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_ } from '../models/Volo_Abp_Account_LinkUserDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_';
|
|
8
|
+
import type { Volo_Abp_Account_LinkUserInput } from '../models/Volo_Abp_Account_LinkUserInput';
|
|
9
|
+
import type { Volo_Abp_Account_UnLinkUserInput } from '../models/Volo_Abp_Account_UnLinkUserInput';
|
|
10
|
+
import type { Volo_Abp_Account_UserDelegationDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_ } from '../models/Volo_Abp_Account_UserDelegationDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_';
|
|
11
|
+
import type { Volo_Abp_Account_UserLookupDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_ } from '../models/Volo_Abp_Account_UserLookupDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_';
|
|
12
|
+
import type { Volo_Abp_Account_VerifyLinkLoginTokenInput } from '../models/Volo_Abp_Account_VerifyLinkLoginTokenInput';
|
|
13
|
+
import type { Volo_Abp_Account_VerifyLinkTokenInput } from '../models/Volo_Abp_Account_VerifyLinkTokenInput';
|
|
14
|
+
import type { Volo_Abp_Application_Dtos_ListResultDto_1 } from '../models/Volo_Abp_Application_Dtos_ListResultDto_1';
|
|
15
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
16
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
17
|
+
export class UserService {
|
|
18
|
+
constructor(public readonly httpRequest: BaseHttpRequest) {}
|
|
19
|
+
/**
|
|
20
|
+
* @param requestBody
|
|
21
|
+
* @returns any Success
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
public postApiAccountLinkUserLink(
|
|
25
|
+
requestBody?: Volo_Abp_Account_LinkUserInput,
|
|
26
|
+
): CancelablePromise<any> {
|
|
27
|
+
return this.httpRequest.request({
|
|
28
|
+
method: 'POST',
|
|
29
|
+
url: '/api/account/link-user/link',
|
|
30
|
+
body: requestBody,
|
|
31
|
+
mediaType: 'application/json',
|
|
32
|
+
errors: {
|
|
33
|
+
400: `Bad Request`,
|
|
34
|
+
401: `Unauthorized`,
|
|
35
|
+
403: `Forbidden`,
|
|
36
|
+
404: `Not Found`,
|
|
37
|
+
500: `Server Error`,
|
|
38
|
+
501: `Server Error`,
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @param requestBody
|
|
44
|
+
* @returns any Success
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
public postApiAccountLinkUserUnlink(
|
|
48
|
+
requestBody?: Volo_Abp_Account_UnLinkUserInput,
|
|
49
|
+
): CancelablePromise<any> {
|
|
50
|
+
return this.httpRequest.request({
|
|
51
|
+
method: 'POST',
|
|
52
|
+
url: '/api/account/link-user/unlink',
|
|
53
|
+
body: requestBody,
|
|
54
|
+
mediaType: 'application/json',
|
|
55
|
+
errors: {
|
|
56
|
+
400: `Bad Request`,
|
|
57
|
+
401: `Unauthorized`,
|
|
58
|
+
403: `Forbidden`,
|
|
59
|
+
404: `Not Found`,
|
|
60
|
+
500: `Server Error`,
|
|
61
|
+
501: `Server Error`,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @param requestBody
|
|
67
|
+
* @returns boolean Success
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
public postApiAccountLinkUserIsLinked(
|
|
71
|
+
requestBody?: Volo_Abp_Account_IsLinkedInput,
|
|
72
|
+
): CancelablePromise<boolean> {
|
|
73
|
+
return this.httpRequest.request({
|
|
74
|
+
method: 'POST',
|
|
75
|
+
url: '/api/account/link-user/is-linked',
|
|
76
|
+
body: requestBody,
|
|
77
|
+
mediaType: 'application/json',
|
|
78
|
+
errors: {
|
|
79
|
+
400: `Bad Request`,
|
|
80
|
+
401: `Unauthorized`,
|
|
81
|
+
403: `Forbidden`,
|
|
82
|
+
404: `Not Found`,
|
|
83
|
+
500: `Server Error`,
|
|
84
|
+
501: `Server Error`,
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @returns string Success
|
|
90
|
+
* @throws ApiError
|
|
91
|
+
*/
|
|
92
|
+
public postApiAccountLinkUserGenerateLinkToken(): CancelablePromise<string> {
|
|
93
|
+
return this.httpRequest.request({
|
|
94
|
+
method: 'POST',
|
|
95
|
+
url: '/api/account/link-user/generate-link-token',
|
|
96
|
+
errors: {
|
|
97
|
+
400: `Bad Request`,
|
|
98
|
+
401: `Unauthorized`,
|
|
99
|
+
403: `Forbidden`,
|
|
100
|
+
404: `Not Found`,
|
|
101
|
+
500: `Server Error`,
|
|
102
|
+
501: `Server Error`,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @param requestBody
|
|
108
|
+
* @returns boolean Success
|
|
109
|
+
* @throws ApiError
|
|
110
|
+
*/
|
|
111
|
+
public postApiAccountLinkUserVerifyLinkToken(
|
|
112
|
+
requestBody?: Volo_Abp_Account_VerifyLinkTokenInput,
|
|
113
|
+
): CancelablePromise<boolean> {
|
|
114
|
+
return this.httpRequest.request({
|
|
115
|
+
method: 'POST',
|
|
116
|
+
url: '/api/account/link-user/verify-link-token',
|
|
117
|
+
body: requestBody,
|
|
118
|
+
mediaType: 'application/json',
|
|
119
|
+
errors: {
|
|
120
|
+
400: `Bad Request`,
|
|
121
|
+
401: `Unauthorized`,
|
|
122
|
+
403: `Forbidden`,
|
|
123
|
+
404: `Not Found`,
|
|
124
|
+
500: `Server Error`,
|
|
125
|
+
501: `Server Error`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @returns string Success
|
|
131
|
+
* @throws ApiError
|
|
132
|
+
*/
|
|
133
|
+
public postApiAccountLinkUserGenerateLinkLoginToken(): CancelablePromise<string> {
|
|
134
|
+
return this.httpRequest.request({
|
|
135
|
+
method: 'POST',
|
|
136
|
+
url: '/api/account/link-user/generate-link-login-token',
|
|
137
|
+
errors: {
|
|
138
|
+
400: `Bad Request`,
|
|
139
|
+
401: `Unauthorized`,
|
|
140
|
+
403: `Forbidden`,
|
|
141
|
+
404: `Not Found`,
|
|
142
|
+
500: `Server Error`,
|
|
143
|
+
501: `Server Error`,
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @param requestBody
|
|
149
|
+
* @returns boolean Success
|
|
150
|
+
* @throws ApiError
|
|
151
|
+
*/
|
|
152
|
+
public postApiAccountLinkUserVerifyLinkLoginToken(
|
|
153
|
+
requestBody?: Volo_Abp_Account_VerifyLinkLoginTokenInput,
|
|
154
|
+
): CancelablePromise<boolean> {
|
|
155
|
+
return this.httpRequest.request({
|
|
156
|
+
method: 'POST',
|
|
157
|
+
url: '/api/account/link-user/verify-link-login-token',
|
|
158
|
+
body: requestBody,
|
|
159
|
+
mediaType: 'application/json',
|
|
160
|
+
errors: {
|
|
161
|
+
400: `Bad Request`,
|
|
162
|
+
401: `Unauthorized`,
|
|
163
|
+
403: `Forbidden`,
|
|
164
|
+
404: `Not Found`,
|
|
165
|
+
500: `Server Error`,
|
|
166
|
+
501: `Server Error`,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @returns Volo_Abp_Application_Dtos_ListResultDto_1<Volo_Abp_Account_LinkUserDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_> Success
|
|
172
|
+
* @throws ApiError
|
|
173
|
+
*/
|
|
174
|
+
public getApiAccountLinkUser(): CancelablePromise<Volo_Abp_Application_Dtos_ListResultDto_1> {
|
|
175
|
+
return this.httpRequest.request({
|
|
176
|
+
method: 'GET',
|
|
177
|
+
url: '/api/account/link-user',
|
|
178
|
+
errors: {
|
|
179
|
+
400: `Bad Request`,
|
|
180
|
+
401: `Unauthorized`,
|
|
181
|
+
403: `Forbidden`,
|
|
182
|
+
404: `Not Found`,
|
|
183
|
+
500: `Server Error`,
|
|
184
|
+
501: `Server Error`,
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @returns Volo_Abp_Application_Dtos_ListResultDto_1<Volo_Abp_Account_UserDelegationDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_> Success
|
|
190
|
+
* @throws ApiError
|
|
191
|
+
*/
|
|
192
|
+
public getApiAccountUserDelegationDelegatedUsers(): CancelablePromise<Volo_Abp_Application_Dtos_ListResultDto_1> {
|
|
193
|
+
return this.httpRequest.request({
|
|
194
|
+
method: 'GET',
|
|
195
|
+
url: '/api/account/user-delegation/delegated-users',
|
|
196
|
+
errors: {
|
|
197
|
+
400: `Bad Request`,
|
|
198
|
+
401: `Unauthorized`,
|
|
199
|
+
403: `Forbidden`,
|
|
200
|
+
404: `Not Found`,
|
|
201
|
+
500: `Server Error`,
|
|
202
|
+
501: `Server Error`,
|
|
203
|
+
},
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @returns Volo_Abp_Application_Dtos_ListResultDto_1<Volo_Abp_Account_UserDelegationDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_> Success
|
|
208
|
+
* @throws ApiError
|
|
209
|
+
*/
|
|
210
|
+
public getApiAccountUserDelegationMyDelegatedUsers(): CancelablePromise<Volo_Abp_Application_Dtos_ListResultDto_1> {
|
|
211
|
+
return this.httpRequest.request({
|
|
212
|
+
method: 'GET',
|
|
213
|
+
url: '/api/account/user-delegation/my-delegated-users',
|
|
214
|
+
errors: {
|
|
215
|
+
400: `Bad Request`,
|
|
216
|
+
401: `Unauthorized`,
|
|
217
|
+
403: `Forbidden`,
|
|
218
|
+
404: `Not Found`,
|
|
219
|
+
500: `Server Error`,
|
|
220
|
+
501: `Server Error`,
|
|
221
|
+
},
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @returns Volo_Abp_Application_Dtos_ListResultDto_1<Volo_Abp_Account_UserDelegationDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_> Success
|
|
226
|
+
* @throws ApiError
|
|
227
|
+
*/
|
|
228
|
+
public getApiAccountUserDelegationActiveDelegations(): CancelablePromise<Volo_Abp_Application_Dtos_ListResultDto_1> {
|
|
229
|
+
return this.httpRequest.request({
|
|
230
|
+
method: 'GET',
|
|
231
|
+
url: '/api/account/user-delegation/active-delegations',
|
|
232
|
+
errors: {
|
|
233
|
+
400: `Bad Request`,
|
|
234
|
+
401: `Unauthorized`,
|
|
235
|
+
403: `Forbidden`,
|
|
236
|
+
404: `Not Found`,
|
|
237
|
+
500: `Server Error`,
|
|
238
|
+
501: `Server Error`,
|
|
239
|
+
},
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* @param userName
|
|
244
|
+
* @returns Volo_Abp_Application_Dtos_ListResultDto_1<Volo_Abp_Account_UserLookupDto_Volo_Abp_Account_Pro_Public_Application_Contracts_Version_8_0_4_0_Culture_neutral_PublicKeyToken_null_> Success
|
|
245
|
+
* @throws ApiError
|
|
246
|
+
*/
|
|
247
|
+
public getApiAccountUserDelegationUserLookup(
|
|
248
|
+
userName?: string,
|
|
249
|
+
): CancelablePromise<Volo_Abp_Application_Dtos_ListResultDto_1> {
|
|
250
|
+
return this.httpRequest.request({
|
|
251
|
+
method: 'GET',
|
|
252
|
+
url: '/api/account/user-delegation/user-lookup',
|
|
253
|
+
query: {
|
|
254
|
+
'UserName': userName,
|
|
255
|
+
},
|
|
256
|
+
errors: {
|
|
257
|
+
400: `Bad Request`,
|
|
258
|
+
401: `Unauthorized`,
|
|
259
|
+
403: `Forbidden`,
|
|
260
|
+
404: `Not Found`,
|
|
261
|
+
500: `Server Error`,
|
|
262
|
+
501: `Server Error`,
|
|
263
|
+
},
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @param requestBody
|
|
268
|
+
* @returns any Success
|
|
269
|
+
* @throws ApiError
|
|
270
|
+
*/
|
|
271
|
+
public postApiAccountUserDelegationDelegateNewUser(
|
|
272
|
+
requestBody?: Volo_Abp_Account_DelegateNewUserInput,
|
|
273
|
+
): CancelablePromise<any> {
|
|
274
|
+
return this.httpRequest.request({
|
|
275
|
+
method: 'POST',
|
|
276
|
+
url: '/api/account/user-delegation/delegate-new-user',
|
|
277
|
+
body: requestBody,
|
|
278
|
+
mediaType: 'application/json',
|
|
279
|
+
errors: {
|
|
280
|
+
400: `Bad Request`,
|
|
281
|
+
401: `Unauthorized`,
|
|
282
|
+
403: `Forbidden`,
|
|
283
|
+
404: `Not Found`,
|
|
284
|
+
500: `Server Error`,
|
|
285
|
+
501: `Server Error`,
|
|
286
|
+
},
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* @param id
|
|
291
|
+
* @returns any Success
|
|
292
|
+
* @throws ApiError
|
|
293
|
+
*/
|
|
294
|
+
public postApiAccountUserDelegationDeleteDelegation(
|
|
295
|
+
id?: string,
|
|
296
|
+
): CancelablePromise<any> {
|
|
297
|
+
return this.httpRequest.request({
|
|
298
|
+
method: 'POST',
|
|
299
|
+
url: '/api/account/user-delegation/delete-delegation',
|
|
300
|
+
query: {
|
|
301
|
+
'id': id,
|
|
302
|
+
},
|
|
303
|
+
errors: {
|
|
304
|
+
400: `Bad Request`,
|
|
305
|
+
401: `Unauthorized`,
|
|
306
|
+
403: `Forbidden`,
|
|
307
|
+
404: `Not Found`,
|
|
308
|
+
500: `Server Error`,
|
|
309
|
+
501: `Server Error`,
|
|
310
|
+
},
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
6
|
+
import type { OpenAPIConfig } from './core/OpenAPI';
|
|
7
|
+
import { FetchHttpRequest } from './core/FetchHttpRequest';
|
|
8
|
+
import { AbpApiDefinitionService } from './services/AbpApiDefinitionService';
|
|
9
|
+
import { AbpApplicationConfigurationService } from './services/AbpApplicationConfigurationService';
|
|
10
|
+
import { AbpApplicationLocalizationService } from './services/AbpApplicationLocalizationService';
|
|
11
|
+
import { ProjectService } from './services/ProjectService';
|
|
12
|
+
import { SampleServiceService } from './services/SampleServiceService';
|
|
13
|
+
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
14
|
+
export class ProjectServiceClient {
|
|
15
|
+
public readonly abpApiDefinition: AbpApiDefinitionService;
|
|
16
|
+
public readonly abpApplicationConfiguration: AbpApplicationConfigurationService;
|
|
17
|
+
public readonly abpApplicationLocalization: AbpApplicationLocalizationService;
|
|
18
|
+
public readonly project: ProjectService;
|
|
19
|
+
public readonly sampleService: SampleServiceService;
|
|
20
|
+
public readonly request: BaseHttpRequest;
|
|
21
|
+
constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
|
|
22
|
+
this.request = new HttpRequest({
|
|
23
|
+
BASE: config?.BASE ?? '',
|
|
24
|
+
VERSION: config?.VERSION ?? '1',
|
|
25
|
+
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
26
|
+
CREDENTIALS: config?.CREDENTIALS ?? 'include',
|
|
27
|
+
TOKEN: config?.TOKEN,
|
|
28
|
+
USERNAME: config?.USERNAME,
|
|
29
|
+
PASSWORD: config?.PASSWORD,
|
|
30
|
+
HEADERS: config?.HEADERS,
|
|
31
|
+
ENCODE_PATH: config?.ENCODE_PATH,
|
|
32
|
+
});
|
|
33
|
+
this.abpApiDefinition = new AbpApiDefinitionService(this.request);
|
|
34
|
+
this.abpApplicationConfiguration = new AbpApplicationConfigurationService(this.request);
|
|
35
|
+
this.abpApplicationLocalization = new AbpApplicationLocalizationService(this.request);
|
|
36
|
+
this.project = new ProjectService(this.request);
|
|
37
|
+
this.sampleService = new SampleServiceService(this.request);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -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 { ApiRequestOptions } from './ApiRequestOptions';
|
|
6
|
+
import type { ApiResult } from './ApiResult';
|
|
7
|
+
|
|
8
|
+
export class ApiError extends Error {
|
|
9
|
+
public readonly url: string;
|
|
10
|
+
public readonly status: number;
|
|
11
|
+
public readonly statusText: string;
|
|
12
|
+
public readonly body: any;
|
|
13
|
+
public readonly request: ApiRequestOptions;
|
|
14
|
+
|
|
15
|
+
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
|
|
16
|
+
super(message);
|
|
17
|
+
|
|
18
|
+
this.name = 'ApiError';
|
|
19
|
+
this.url = response.url;
|
|
20
|
+
this.status = response.status;
|
|
21
|
+
this.statusText = response.statusText;
|
|
22
|
+
this.body = response.body;
|
|
23
|
+
this.request = request;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type ApiRequestOptions = {
|
|
6
|
+
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
|
7
|
+
readonly url: string;
|
|
8
|
+
readonly path?: Record<string, any>;
|
|
9
|
+
readonly cookies?: Record<string, any>;
|
|
10
|
+
readonly headers?: Record<string, any>;
|
|
11
|
+
readonly query?: Record<string, any>;
|
|
12
|
+
readonly formData?: Record<string, any>;
|
|
13
|
+
readonly body?: any;
|
|
14
|
+
readonly mediaType?: string;
|
|
15
|
+
readonly responseHeader?: string;
|
|
16
|
+
readonly errors?: Record<number, string>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type ApiResult = {
|
|
6
|
+
readonly url: string;
|
|
7
|
+
readonly ok: boolean;
|
|
8
|
+
readonly status: number;
|
|
9
|
+
readonly statusText: string;
|
|
10
|
+
readonly body: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
6
|
+
import type { CancelablePromise } from './CancelablePromise';
|
|
7
|
+
import type { OpenAPIConfig } from './OpenAPI';
|
|
8
|
+
|
|
9
|
+
export abstract class BaseHttpRequest {
|
|
10
|
+
|
|
11
|
+
constructor(public readonly config: OpenAPIConfig) {}
|
|
12
|
+
|
|
13
|
+
public abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export class CancelError extends Error {
|
|
6
|
+
|
|
7
|
+
constructor(message: string) {
|
|
8
|
+
super(message);
|
|
9
|
+
this.name = 'CancelError';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public get isCancelled(): boolean {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface OnCancel {
|
|
18
|
+
readonly isResolved: boolean;
|
|
19
|
+
readonly isRejected: boolean;
|
|
20
|
+
readonly isCancelled: boolean;
|
|
21
|
+
|
|
22
|
+
(cancelHandler: () => void): void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class CancelablePromise<T> implements Promise<T> {
|
|
26
|
+
#isResolved: boolean;
|
|
27
|
+
#isRejected: boolean;
|
|
28
|
+
#isCancelled: boolean;
|
|
29
|
+
readonly #cancelHandlers: (() => void)[];
|
|
30
|
+
readonly #promise: Promise<T>;
|
|
31
|
+
#resolve?: (value: T | PromiseLike<T>) => void;
|
|
32
|
+
#reject?: (reason?: any) => void;
|
|
33
|
+
|
|
34
|
+
constructor(
|
|
35
|
+
executor: (
|
|
36
|
+
resolve: (value: T | PromiseLike<T>) => void,
|
|
37
|
+
reject: (reason?: any) => void,
|
|
38
|
+
onCancel: OnCancel
|
|
39
|
+
) => void
|
|
40
|
+
) {
|
|
41
|
+
this.#isResolved = false;
|
|
42
|
+
this.#isRejected = false;
|
|
43
|
+
this.#isCancelled = false;
|
|
44
|
+
this.#cancelHandlers = [];
|
|
45
|
+
this.#promise = new Promise<T>((resolve, reject) => {
|
|
46
|
+
this.#resolve = resolve;
|
|
47
|
+
this.#reject = reject;
|
|
48
|
+
|
|
49
|
+
const onResolve = (value: T | PromiseLike<T>): void => {
|
|
50
|
+
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this.#isResolved = true;
|
|
54
|
+
if (this.#resolve) this.#resolve(value);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const onReject = (reason?: any): void => {
|
|
58
|
+
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
this.#isRejected = true;
|
|
62
|
+
if (this.#reject) this.#reject(reason);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const onCancel = (cancelHandler: () => void): void => {
|
|
66
|
+
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
this.#cancelHandlers.push(cancelHandler);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
Object.defineProperty(onCancel, 'isResolved', {
|
|
73
|
+
get: (): boolean => this.#isResolved,
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
Object.defineProperty(onCancel, 'isRejected', {
|
|
77
|
+
get: (): boolean => this.#isRejected,
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
Object.defineProperty(onCancel, 'isCancelled', {
|
|
81
|
+
get: (): boolean => this.#isCancelled,
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
return executor(onResolve, onReject, onCancel as OnCancel);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
get [Symbol.toStringTag]() {
|
|
89
|
+
return "Cancellable Promise";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
public then<TResult1 = T, TResult2 = never>(
|
|
93
|
+
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
|
|
94
|
+
onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null
|
|
95
|
+
): Promise<TResult1 | TResult2> {
|
|
96
|
+
return this.#promise.then(onFulfilled, onRejected);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
public catch<TResult = never>(
|
|
100
|
+
onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null
|
|
101
|
+
): Promise<T | TResult> {
|
|
102
|
+
return this.#promise.catch(onRejected);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public finally(onFinally?: (() => void) | null): Promise<T> {
|
|
106
|
+
return this.#promise.finally(onFinally);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
public cancel(): void {
|
|
110
|
+
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
this.#isCancelled = true;
|
|
114
|
+
if (this.#cancelHandlers.length) {
|
|
115
|
+
try {
|
|
116
|
+
for (const cancelHandler of this.#cancelHandlers) {
|
|
117
|
+
cancelHandler();
|
|
118
|
+
}
|
|
119
|
+
} catch (error) {
|
|
120
|
+
console.warn('Cancellation threw an error', error);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
this.#cancelHandlers.length = 0;
|
|
125
|
+
if (this.#reject) this.#reject(new CancelError('Request aborted'));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
public get isCancelled(): boolean {
|
|
129
|
+
return this.#isCancelled;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
6
|
+
import { BaseHttpRequest } from './BaseHttpRequest';
|
|
7
|
+
import type { CancelablePromise } from './CancelablePromise';
|
|
8
|
+
import type { OpenAPIConfig } from './OpenAPI';
|
|
9
|
+
import { request as __request } from './request';
|
|
10
|
+
|
|
11
|
+
export class FetchHttpRequest extends BaseHttpRequest {
|
|
12
|
+
|
|
13
|
+
constructor(config: OpenAPIConfig) {
|
|
14
|
+
super(config);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Request method
|
|
19
|
+
* @param options The request options from the service
|
|
20
|
+
* @returns CancelablePromise<T>
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
public override request<T>(options: ApiRequestOptions): CancelablePromise<T> {
|
|
24
|
+
return __request(this.config, options);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ApiRequestOptions } from './ApiRequestOptions';
|
|
6
|
+
|
|
7
|
+
type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
|
|
8
|
+
type Headers = Record<string, string>;
|
|
9
|
+
|
|
10
|
+
export type OpenAPIConfig = {
|
|
11
|
+
BASE: string;
|
|
12
|
+
VERSION: string;
|
|
13
|
+
WITH_CREDENTIALS: boolean;
|
|
14
|
+
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
15
|
+
TOKEN?: string | Resolver<string> | undefined;
|
|
16
|
+
USERNAME?: string | Resolver<string> | undefined;
|
|
17
|
+
PASSWORD?: string | Resolver<string> | undefined;
|
|
18
|
+
HEADERS?: Headers | Resolver<Headers> | undefined;
|
|
19
|
+
ENCODE_PATH?: ((path: string) => string) | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const OpenAPI: OpenAPIConfig = {
|
|
23
|
+
BASE: '',
|
|
24
|
+
VERSION: '1',
|
|
25
|
+
WITH_CREDENTIALS: false,
|
|
26
|
+
CREDENTIALS: 'include',
|
|
27
|
+
TOKEN: undefined,
|
|
28
|
+
USERNAME: undefined,
|
|
29
|
+
PASSWORD: undefined,
|
|
30
|
+
HEADERS: undefined,
|
|
31
|
+
ENCODE_PATH: undefined,
|
|
32
|
+
};
|