@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.
Files changed (192) hide show
  1. package/AccountService/AccountServiceClient.ts +58 -0
  2. package/AccountService/core/ApiError.ts +25 -0
  3. package/AccountService/core/ApiRequestOptions.ts +17 -0
  4. package/AccountService/core/ApiResult.ts +11 -0
  5. package/AccountService/core/BaseHttpRequest.ts +14 -0
  6. package/AccountService/core/CancelablePromise.ts +131 -0
  7. package/AccountService/core/FetchHttpRequest.ts +26 -0
  8. package/AccountService/core/OpenAPI.ts +32 -0
  9. package/AccountService/core/request.ts +322 -0
  10. package/AccountService/index.ts +122 -0
  11. package/AccountService/models/Volo_Abp_Account_AccountExternalProviderSettingsDto.ts +9 -0
  12. package/AccountService/models/Volo_Abp_Account_AccountRecaptchaSettingsDto.ts +14 -0
  13. package/AccountService/models/Volo_Abp_Account_AccountSettingsDto.ts +9 -0
  14. package/AccountService/models/Volo_Abp_Account_AccountTwoFactorSettingsDto.ts +11 -0
  15. package/AccountService/models/Volo_Abp_Account_AuthenticatorInfoDto.ts +9 -0
  16. package/AccountService/models/Volo_Abp_Account_ChangePasswordInput.ts +9 -0
  17. package/AccountService/models/Volo_Abp_Account_ConfirmEmailInput.ts +9 -0
  18. package/AccountService/models/Volo_Abp_Account_ConfirmPhoneNumberInput.ts +9 -0
  19. package/AccountService/models/Volo_Abp_Account_DelegateNewUserInput.ts +10 -0
  20. package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderDto.ts +9 -0
  21. package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderItemDto.ts +11 -0
  22. package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderItemWithSecretDto.ts +13 -0
  23. package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettings.ts +12 -0
  24. package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettingsProperty.ts +9 -0
  25. package/AccountService/models/Volo_Abp_Account_IdentityUserConfirmationStateDto.ts +9 -0
  26. package/AccountService/models/Volo_Abp_Account_IsLinkedInput.ts +9 -0
  27. package/AccountService/models/Volo_Abp_Account_LinkUserDto.ts +12 -0
  28. package/AccountService/models/Volo_Abp_Account_LinkUserInput.ts +10 -0
  29. package/AccountService/models/Volo_Abp_Account_ProfileDto.ts +20 -0
  30. package/AccountService/models/Volo_Abp_Account_ProfilePictureSourceDto.ts +11 -0
  31. package/AccountService/models/Volo_Abp_Account_ProfilePictureType.ts +9 -0
  32. package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_AbpLoginResult.ts +10 -0
  33. package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_LinkUserLoginInfo.ts +9 -0
  34. package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_LoginResultType.ts +12 -0
  35. package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_UserLoginInfo.ts +11 -0
  36. package/AccountService/models/Volo_Abp_Account_RegisterDto.ts +15 -0
  37. package/AccountService/models/Volo_Abp_Account_ResetPasswordDto.ts +10 -0
  38. package/AccountService/models/Volo_Abp_Account_SendEmailConfirmationTokenDto.ts +11 -0
  39. package/AccountService/models/Volo_Abp_Account_SendPasswordResetCodeDto.ts +11 -0
  40. package/AccountService/models/Volo_Abp_Account_SendPhoneNumberConfirmationTokenDto.ts +9 -0
  41. package/AccountService/models/Volo_Abp_Account_SendTwoFactorCodeInput.ts +10 -0
  42. package/AccountService/models/Volo_Abp_Account_UnLinkUserInput.ts +9 -0
  43. package/AccountService/models/Volo_Abp_Account_UpdateExternalProviderDto.ts +12 -0
  44. package/AccountService/models/Volo_Abp_Account_UpdateProfileDto.ts +15 -0
  45. package/AccountService/models/Volo_Abp_Account_UserDelegationDto.ts +11 -0
  46. package/AccountService/models/Volo_Abp_Account_UserLookupDto.ts +9 -0
  47. package/AccountService/models/Volo_Abp_Account_VerifyAuthenticatorCodeDto.ts +8 -0
  48. package/AccountService/models/Volo_Abp_Account_VerifyAuthenticatorCodeInput.ts +8 -0
  49. package/AccountService/models/Volo_Abp_Account_VerifyEmailConfirmationTokenInput.ts +9 -0
  50. package/AccountService/models/Volo_Abp_Account_VerifyLinkLoginTokenInput.ts +10 -0
  51. package/AccountService/models/Volo_Abp_Account_VerifyLinkTokenInput.ts +10 -0
  52. package/AccountService/models/Volo_Abp_Account_VerifyPasswordResetTokenInput.ts +9 -0
  53. package/AccountService/models/Volo_Abp_Application_Dtos_ListResultDto_1.ts +9 -0
  54. package/AccountService/models/Volo_Abp_Application_Dtos_PagedResultDto_1.ts +10 -0
  55. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto.ts +8 -0
  56. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationConfigurationDto.ts +30 -0
  57. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationFeatureConfigurationDto.ts +8 -0
  58. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationGlobalFeatureConfigurationDto.ts +8 -0
  59. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationConfigurationDto.ts +18 -0
  60. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto.ts +9 -0
  61. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationResourceDto.ts +9 -0
  62. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationSettingConfigurationDto.ts +8 -0
  63. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ClockDto.ts +8 -0
  64. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentCultureDto.ts +17 -0
  65. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentUserDto.ts +22 -0
  66. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_DateTimeFormatDto.ts +14 -0
  67. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_IanaTimeZone.ts +8 -0
  68. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_EntityExtensionDto.ts +10 -0
  69. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumDto.ts +10 -0
  70. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumFieldDto.ts +9 -0
  71. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiCreateDto.ts +8 -0
  72. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiDto.ts +13 -0
  73. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiGetDto.ts +8 -0
  74. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiUpdateDto.ts +8 -0
  75. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyAttributeDto.ts +9 -0
  76. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyDto.ts +19 -0
  77. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiDto.ts +14 -0
  78. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiFormDto.ts +8 -0
  79. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiLookupDto.ts +12 -0
  80. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiTableDto.ts +8 -0
  81. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_LocalizableStringDto.ts +9 -0
  82. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ModuleExtensionDto.ts +10 -0
  83. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ObjectExtensionsDto.ts +11 -0
  84. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimeZone.ts +11 -0
  85. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimingDto.ts +9 -0
  86. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_WindowsTimeZone.ts +8 -0
  87. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_CurrentTenantDto.ts +10 -0
  88. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_FindTenantResultDto.ts +11 -0
  89. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_MultiTenancyInfoDto.ts +8 -0
  90. package/AccountService/models/Volo_Abp_Http_Modeling_ActionApiDescriptionModel.ts +20 -0
  91. package/AccountService/models/Volo_Abp_Http_Modeling_ApplicationApiDescriptionModel.ts +11 -0
  92. package/AccountService/models/Volo_Abp_Http_Modeling_ControllerApiDescriptionModel.ts +17 -0
  93. package/AccountService/models/Volo_Abp_Http_Modeling_ControllerInterfaceApiDescriptionModel.ts +11 -0
  94. package/AccountService/models/Volo_Abp_Http_Modeling_InterfaceMethodApiDescriptionModel.ts +12 -0
  95. package/AccountService/models/Volo_Abp_Http_Modeling_MethodParameterApiDescriptionModel.ts +13 -0
  96. package/AccountService/models/Volo_Abp_Http_Modeling_ModuleApiDescriptionModel.ts +11 -0
  97. package/AccountService/models/Volo_Abp_Http_Modeling_ParameterApiDescriptionModel.ts +17 -0
  98. package/AccountService/models/Volo_Abp_Http_Modeling_PropertyApiDescriptionModel.ts +17 -0
  99. package/AccountService/models/Volo_Abp_Http_Modeling_ReturnValueApiDescriptionModel.ts +9 -0
  100. package/AccountService/models/Volo_Abp_Http_Modeling_TypeApiDescriptionModel.ts +14 -0
  101. package/AccountService/models/Volo_Abp_Http_RemoteServiceErrorInfo.ts +13 -0
  102. package/AccountService/models/Volo_Abp_Http_RemoteServiceErrorResponse.ts +9 -0
  103. package/AccountService/models/Volo_Abp_Http_RemoteServiceValidationErrorInfo.ts +9 -0
  104. package/AccountService/models/Volo_Abp_Identity_Features_IdentityProTwoFactorBehaviour.ts +9 -0
  105. package/AccountService/models/Volo_Abp_Identity_IdentitySecurityLogDto.ts +21 -0
  106. package/AccountService/models/Volo_Abp_Identity_IdentityUserDto.ts +35 -0
  107. package/AccountService/models/Volo_Abp_Localization_LanguageInfo.ts +12 -0
  108. package/AccountService/models/Volo_Abp_NameValue.ts +9 -0
  109. package/AccountService/services/AbpApiDefinitionService.ts +34 -0
  110. package/AccountService/services/AbpApplicationConfigurationService.ts +34 -0
  111. package/AccountService/services/AbpApplicationLocalizationService.ts +37 -0
  112. package/AccountService/services/AbpTenantService.ts +58 -0
  113. package/AccountService/services/AccountExternalProviderService.ts +56 -0
  114. package/AccountService/services/AccountService.ts +545 -0
  115. package/AccountService/services/AccountSettingsService.ts +178 -0
  116. package/AccountService/services/DynamicClaimsService.ts +27 -0
  117. package/AccountService/services/LoginService.ts +99 -0
  118. package/AccountService/services/ProfileService.ts +155 -0
  119. package/AccountService/services/UserService.ts +313 -0
  120. package/ProjectService/ProjectServiceClient.ts +40 -0
  121. package/ProjectService/core/ApiError.ts +25 -0
  122. package/ProjectService/core/ApiRequestOptions.ts +17 -0
  123. package/ProjectService/core/ApiResult.ts +11 -0
  124. package/ProjectService/core/BaseHttpRequest.ts +14 -0
  125. package/ProjectService/core/CancelablePromise.ts +131 -0
  126. package/ProjectService/core/FetchHttpRequest.ts +26 -0
  127. package/ProjectService/core/OpenAPI.ts +32 -0
  128. package/ProjectService/core/request.ts +322 -0
  129. package/ProjectService/index.ts +73 -0
  130. package/ProjectService/models/UpWithCrowdDemo_ProjectService_ProjectsDto_SaveProjectDto.ts +19 -0
  131. package/ProjectService/models/UpWithCrowdDemo_ProjectService_ProjectsDto_UpdateProjectDto.ts +20 -0
  132. package/ProjectService/models/UpWithCrowdDemo_ProjectService_Projects_ProjectDto.ts +20 -0
  133. package/ProjectService/models/UpWithCrowdDemo_ProjectService_Samples_SampleDto.ts +8 -0
  134. package/ProjectService/models/Volo_Abp_Application_Dtos_PagedResultDto_1.ts +10 -0
  135. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto.ts +8 -0
  136. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationConfigurationDto.ts +30 -0
  137. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationFeatureConfigurationDto.ts +8 -0
  138. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationGlobalFeatureConfigurationDto.ts +8 -0
  139. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationConfigurationDto.ts +18 -0
  140. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto.ts +9 -0
  141. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationResourceDto.ts +9 -0
  142. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationSettingConfigurationDto.ts +8 -0
  143. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ClockDto.ts +8 -0
  144. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentCultureDto.ts +17 -0
  145. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentUserDto.ts +22 -0
  146. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_DateTimeFormatDto.ts +14 -0
  147. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_IanaTimeZone.ts +8 -0
  148. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_EntityExtensionDto.ts +10 -0
  149. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumDto.ts +10 -0
  150. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumFieldDto.ts +9 -0
  151. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiCreateDto.ts +8 -0
  152. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiDto.ts +13 -0
  153. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiGetDto.ts +8 -0
  154. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiUpdateDto.ts +8 -0
  155. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyAttributeDto.ts +9 -0
  156. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyDto.ts +19 -0
  157. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiDto.ts +14 -0
  158. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiFormDto.ts +8 -0
  159. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiLookupDto.ts +12 -0
  160. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiTableDto.ts +8 -0
  161. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_LocalizableStringDto.ts +9 -0
  162. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ModuleExtensionDto.ts +10 -0
  163. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ObjectExtensionsDto.ts +11 -0
  164. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimeZone.ts +11 -0
  165. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimingDto.ts +9 -0
  166. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_WindowsTimeZone.ts +8 -0
  167. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_CurrentTenantDto.ts +10 -0
  168. package/ProjectService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_MultiTenancyInfoDto.ts +8 -0
  169. package/ProjectService/models/Volo_Abp_Http_Modeling_ActionApiDescriptionModel.ts +20 -0
  170. package/ProjectService/models/Volo_Abp_Http_Modeling_ApplicationApiDescriptionModel.ts +11 -0
  171. package/ProjectService/models/Volo_Abp_Http_Modeling_ControllerApiDescriptionModel.ts +17 -0
  172. package/ProjectService/models/Volo_Abp_Http_Modeling_ControllerInterfaceApiDescriptionModel.ts +11 -0
  173. package/ProjectService/models/Volo_Abp_Http_Modeling_InterfaceMethodApiDescriptionModel.ts +12 -0
  174. package/ProjectService/models/Volo_Abp_Http_Modeling_MethodParameterApiDescriptionModel.ts +13 -0
  175. package/ProjectService/models/Volo_Abp_Http_Modeling_ModuleApiDescriptionModel.ts +11 -0
  176. package/ProjectService/models/Volo_Abp_Http_Modeling_ParameterApiDescriptionModel.ts +17 -0
  177. package/ProjectService/models/Volo_Abp_Http_Modeling_PropertyApiDescriptionModel.ts +17 -0
  178. package/ProjectService/models/Volo_Abp_Http_Modeling_ReturnValueApiDescriptionModel.ts +9 -0
  179. package/ProjectService/models/Volo_Abp_Http_Modeling_TypeApiDescriptionModel.ts +14 -0
  180. package/ProjectService/models/Volo_Abp_Http_RemoteServiceErrorInfo.ts +13 -0
  181. package/ProjectService/models/Volo_Abp_Http_RemoteServiceErrorResponse.ts +9 -0
  182. package/ProjectService/models/Volo_Abp_Http_RemoteServiceValidationErrorInfo.ts +9 -0
  183. package/ProjectService/models/Volo_Abp_Localization_LanguageInfo.ts +12 -0
  184. package/ProjectService/models/Volo_Abp_NameValue.ts +9 -0
  185. package/ProjectService/services/AbpApiDefinitionService.ts +34 -0
  186. package/ProjectService/services/AbpApplicationConfigurationService.ts +34 -0
  187. package/ProjectService/services/AbpApplicationLocalizationService.ts +37 -0
  188. package/ProjectService/services/ProjectService.ts +143 -0
  189. package/ProjectService/services/SampleServiceService.ts +46 -0
  190. package/ProjectService.json +2938 -0
  191. package/index.ts +2 -0
  192. package/package.json +17 -0
@@ -0,0 +1,58 @@
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 { AbpTenantService } from './services/AbpTenantService';
12
+ import { AccountService } from './services/AccountService';
13
+ import { AccountExternalProviderService } from './services/AccountExternalProviderService';
14
+ import { AccountSettingsService } from './services/AccountSettingsService';
15
+ import { DynamicClaimsService } from './services/DynamicClaimsService';
16
+ import { LoginService } from './services/LoginService';
17
+ import { ProfileService } from './services/ProfileService';
18
+ import { UserService } from './services/UserService';
19
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
20
+ export class AccountServiceClient {
21
+ public readonly abpApiDefinition: AbpApiDefinitionService;
22
+ public readonly abpApplicationConfiguration: AbpApplicationConfigurationService;
23
+ public readonly abpApplicationLocalization: AbpApplicationLocalizationService;
24
+ public readonly abpTenant: AbpTenantService;
25
+ public readonly account: AccountService;
26
+ public readonly accountExternalProvider: AccountExternalProviderService;
27
+ public readonly accountSettings: AccountSettingsService;
28
+ public readonly dynamicClaims: DynamicClaimsService;
29
+ public readonly login: LoginService;
30
+ public readonly profile: ProfileService;
31
+ public readonly user: UserService;
32
+ public readonly request: BaseHttpRequest;
33
+ constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
34
+ this.request = new HttpRequest({
35
+ BASE: config?.BASE ?? '',
36
+ VERSION: config?.VERSION ?? '1',
37
+ WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
38
+ CREDENTIALS: config?.CREDENTIALS ?? 'include',
39
+ TOKEN: config?.TOKEN,
40
+ USERNAME: config?.USERNAME,
41
+ PASSWORD: config?.PASSWORD,
42
+ HEADERS: config?.HEADERS,
43
+ ENCODE_PATH: config?.ENCODE_PATH,
44
+ });
45
+ this.abpApiDefinition = new AbpApiDefinitionService(this.request);
46
+ this.abpApplicationConfiguration = new AbpApplicationConfigurationService(this.request);
47
+ this.abpApplicationLocalization = new AbpApplicationLocalizationService(this.request);
48
+ this.abpTenant = new AbpTenantService(this.request);
49
+ this.account = new AccountService(this.request);
50
+ this.accountExternalProvider = new AccountExternalProviderService(this.request);
51
+ this.accountSettings = new AccountSettingsService(this.request);
52
+ this.dynamicClaims = new DynamicClaimsService(this.request);
53
+ this.login = new LoginService(this.request);
54
+ this.profile = new ProfileService(this.request);
55
+ this.user = new UserService(this.request);
56
+ }
57
+ }
58
+
@@ -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
+ };
@@ -0,0 +1,322 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import { ApiError } from './ApiError';
6
+ import type { ApiRequestOptions } from './ApiRequestOptions';
7
+ import type { ApiResult } from './ApiResult';
8
+ import { CancelablePromise } from './CancelablePromise';
9
+ import type { OnCancel } from './CancelablePromise';
10
+ import type { OpenAPIConfig } from './OpenAPI';
11
+
12
+ export const isDefined = <T>(value: T | null | undefined): value is Exclude<T, null | undefined> => {
13
+ return value !== undefined && value !== null;
14
+ };
15
+
16
+ export const isString = (value: any): value is string => {
17
+ return typeof value === 'string';
18
+ };
19
+
20
+ export const isStringWithValue = (value: any): value is string => {
21
+ return isString(value) && value !== '';
22
+ };
23
+
24
+ export const isBlob = (value: any): value is Blob => {
25
+ return (
26
+ typeof value === 'object' &&
27
+ typeof value.type === 'string' &&
28
+ typeof value.stream === 'function' &&
29
+ typeof value.arrayBuffer === 'function' &&
30
+ typeof value.constructor === 'function' &&
31
+ typeof value.constructor.name === 'string' &&
32
+ /^(Blob|File)$/.test(value.constructor.name) &&
33
+ /^(Blob|File)$/.test(value[Symbol.toStringTag])
34
+ );
35
+ };
36
+
37
+ export const isFormData = (value: any): value is FormData => {
38
+ return value instanceof FormData;
39
+ };
40
+
41
+ export const base64 = (str: string): string => {
42
+ try {
43
+ return btoa(str);
44
+ } catch (err) {
45
+ // @ts-ignore
46
+ return Buffer.from(str).toString('base64');
47
+ }
48
+ };
49
+
50
+ export const getQueryString = (params: Record<string, any>): string => {
51
+ const qs: string[] = [];
52
+
53
+ const append = (key: string, value: any) => {
54
+ qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
55
+ };
56
+
57
+ const process = (key: string, value: any) => {
58
+ if (isDefined(value)) {
59
+ if (Array.isArray(value)) {
60
+ value.forEach(v => {
61
+ process(key, v);
62
+ });
63
+ } else if (typeof value === 'object') {
64
+ Object.entries(value).forEach(([k, v]) => {
65
+ process(`${key}[${k}]`, v);
66
+ });
67
+ } else {
68
+ append(key, value);
69
+ }
70
+ }
71
+ };
72
+
73
+ Object.entries(params).forEach(([key, value]) => {
74
+ process(key, value);
75
+ });
76
+
77
+ if (qs.length > 0) {
78
+ return `?${qs.join('&')}`;
79
+ }
80
+
81
+ return '';
82
+ };
83
+
84
+ const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
85
+ const encoder = config.ENCODE_PATH || encodeURI;
86
+
87
+ const path = options.url
88
+ .replace('{api-version}', config.VERSION)
89
+ .replace(/{(.*?)}/g, (substring: string, group: string) => {
90
+ if (options.path?.hasOwnProperty(group)) {
91
+ return encoder(String(options.path[group]));
92
+ }
93
+ return substring;
94
+ });
95
+
96
+ const url = `${config.BASE}${path}`;
97
+ if (options.query) {
98
+ return `${url}${getQueryString(options.query)}`;
99
+ }
100
+ return url;
101
+ };
102
+
103
+ export const getFormData = (options: ApiRequestOptions): FormData | undefined => {
104
+ if (options.formData) {
105
+ const formData = new FormData();
106
+
107
+ const process = (key: string, value: any) => {
108
+ if (isString(value) || isBlob(value)) {
109
+ formData.append(key, value);
110
+ } else {
111
+ formData.append(key, JSON.stringify(value));
112
+ }
113
+ };
114
+
115
+ Object.entries(options.formData)
116
+ .filter(([_, value]) => isDefined(value))
117
+ .forEach(([key, value]) => {
118
+ if (Array.isArray(value)) {
119
+ value.forEach(v => process(key, v));
120
+ } else {
121
+ process(key, value);
122
+ }
123
+ });
124
+
125
+ return formData;
126
+ }
127
+ return undefined;
128
+ };
129
+
130
+ type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
131
+
132
+ export const resolve = async <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>): Promise<T | undefined> => {
133
+ if (typeof resolver === 'function') {
134
+ return (resolver as Resolver<T>)(options);
135
+ }
136
+ return resolver;
137
+ };
138
+
139
+ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise<Headers> => {
140
+ const [token, username, password, additionalHeaders] = await Promise.all([
141
+ resolve(options, config.TOKEN),
142
+ resolve(options, config.USERNAME),
143
+ resolve(options, config.PASSWORD),
144
+ resolve(options, config.HEADERS),
145
+ ]);
146
+
147
+ const headers = Object.entries({
148
+ Accept: 'application/json',
149
+ ...additionalHeaders,
150
+ ...options.headers,
151
+ })
152
+ .filter(([_, value]) => isDefined(value))
153
+ .reduce((headers, [key, value]) => ({
154
+ ...headers,
155
+ [key]: String(value),
156
+ }), {} as Record<string, string>);
157
+
158
+ if (isStringWithValue(token)) {
159
+ headers['Authorization'] = `Bearer ${token}`;
160
+ }
161
+
162
+ if (isStringWithValue(username) && isStringWithValue(password)) {
163
+ const credentials = base64(`${username}:${password}`);
164
+ headers['Authorization'] = `Basic ${credentials}`;
165
+ }
166
+
167
+ if (options.body) {
168
+ if (options.mediaType) {
169
+ headers['Content-Type'] = options.mediaType;
170
+ } else if (isBlob(options.body)) {
171
+ headers['Content-Type'] = options.body.type || 'application/octet-stream';
172
+ } else if (isString(options.body)) {
173
+ headers['Content-Type'] = 'text/plain';
174
+ } else if (!isFormData(options.body)) {
175
+ headers['Content-Type'] = 'application/json';
176
+ }
177
+ }
178
+
179
+ return new Headers(headers);
180
+ };
181
+
182
+ export const getRequestBody = (options: ApiRequestOptions): any => {
183
+ if (options.body !== undefined) {
184
+ if (options.mediaType?.includes('/json')) {
185
+ return JSON.stringify(options.body)
186
+ } else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
187
+ return options.body;
188
+ } else {
189
+ return JSON.stringify(options.body);
190
+ }
191
+ }
192
+ return undefined;
193
+ };
194
+
195
+ export const sendRequest = async (
196
+ config: OpenAPIConfig,
197
+ options: ApiRequestOptions,
198
+ url: string,
199
+ body: any,
200
+ formData: FormData | undefined,
201
+ headers: Headers,
202
+ onCancel: OnCancel
203
+ ): Promise<Response> => {
204
+ const controller = new AbortController();
205
+
206
+ const request: RequestInit = {
207
+ headers,
208
+ body: body ?? formData,
209
+ method: options.method,
210
+ signal: controller.signal,
211
+ };
212
+
213
+ if (config.WITH_CREDENTIALS) {
214
+ request.credentials = config.CREDENTIALS;
215
+ }
216
+
217
+ onCancel(() => controller.abort());
218
+
219
+ return await fetch(url, request);
220
+ };
221
+
222
+ export const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => {
223
+ if (responseHeader) {
224
+ const content = response.headers.get(responseHeader);
225
+ if (isString(content)) {
226
+ return content;
227
+ }
228
+ }
229
+ return undefined;
230
+ };
231
+
232
+ export const getResponseBody = async (response: Response): Promise<any> => {
233
+ if (response.status !== 204) {
234
+ try {
235
+ const contentType = response.headers.get('Content-Type');
236
+ if (contentType) {
237
+ const jsonTypes = ['application/json', 'application/problem+json']
238
+ const isJSON = jsonTypes.some(type => contentType.toLowerCase().startsWith(type));
239
+ if (isJSON) {
240
+ return await response.json();
241
+ } else {
242
+ return await response.text();
243
+ }
244
+ }
245
+ } catch (error) {
246
+ console.error(error);
247
+ }
248
+ }
249
+ return undefined;
250
+ };
251
+
252
+ export const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {
253
+ const errors: Record<number, string> = {
254
+ 400: 'Bad Request',
255
+ 401: 'Unauthorized',
256
+ 403: 'Forbidden',
257
+ 404: 'Not Found',
258
+ 500: 'Internal Server Error',
259
+ 502: 'Bad Gateway',
260
+ 503: 'Service Unavailable',
261
+ ...options.errors,
262
+ }
263
+
264
+ const error = errors[result.status];
265
+ if (error) {
266
+ throw new ApiError(options, result, error);
267
+ }
268
+
269
+ if (!result.ok) {
270
+ const errorStatus = result.status ?? 'unknown';
271
+ const errorStatusText = result.statusText ?? 'unknown';
272
+ const errorBody = (() => {
273
+ try {
274
+ return JSON.stringify(result.body, null, 2);
275
+ } catch (e) {
276
+ return undefined;
277
+ }
278
+ })();
279
+
280
+ throw new ApiError(options, result,
281
+ `Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`
282
+ );
283
+ }
284
+ };
285
+
286
+ /**
287
+ * Request method
288
+ * @param config The OpenAPI configuration object
289
+ * @param options The request options from the service
290
+ * @returns CancelablePromise<T>
291
+ * @throws ApiError
292
+ */
293
+ export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions): CancelablePromise<T> => {
294
+ return new CancelablePromise(async (resolve, reject, onCancel) => {
295
+ try {
296
+ const url = getUrl(config, options);
297
+ const formData = getFormData(options);
298
+ const body = getRequestBody(options);
299
+ const headers = await getHeaders(config, options);
300
+
301
+ if (!onCancel.isCancelled) {
302
+ const response = await sendRequest(config, options, url, body, formData, headers, onCancel);
303
+ const responseBody = await getResponseBody(response);
304
+ const responseHeader = getResponseHeader(response, options.responseHeader);
305
+
306
+ const result: ApiResult = {
307
+ url,
308
+ ok: response.ok,
309
+ status: response.status,
310
+ statusText: response.statusText,
311
+ body: responseHeader ?? responseBody,
312
+ };
313
+
314
+ catchErrorCodes(options, result);
315
+
316
+ resolve(result.body);
317
+ }
318
+ } catch (error) {
319
+ reject(error);
320
+ }
321
+ });
322
+ };