@ayasofyazilim/saas 0.0.66 → 0.0.68
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/.github/workflows/release.yaml +103 -0
- package/AccountService/models/Volo_Abp_Account_AccountExternalProviderSettingsDto.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_AccountRecaptchaSettingsDto.ts +14 -14
- package/AccountService/models/Volo_Abp_Account_AccountSettingsDto.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_AccountTwoFactorSettingsDto.ts +11 -11
- package/AccountService/models/Volo_Abp_Account_AuthenticatorInfoDto.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_ChangePasswordInput.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_ConfirmEmailInput.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_ConfirmPhoneNumberInput.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_DelegateNewUserInput.ts +10 -10
- package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderDto.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderItemDto.ts +11 -11
- package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderItemWithSecretDto.ts +13 -13
- package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettings.ts +12 -12
- package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettingsProperty.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_IdentityUserConfirmationStateDto.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_IsLinkedInput.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_LinkUserDto.ts +12 -12
- package/AccountService/models/Volo_Abp_Account_LinkUserInput.ts +10 -10
- package/AccountService/models/Volo_Abp_Account_ProfileDto.ts +20 -20
- package/AccountService/models/Volo_Abp_Account_ProfilePictureSourceDto.ts +11 -11
- package/AccountService/models/Volo_Abp_Account_ProfilePictureType.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_AbpLoginResult.ts +10 -10
- package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_LinkUserLoginInfo.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_LoginResultType.ts +12 -12
- package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_UserLoginInfo.ts +11 -11
- package/AccountService/models/Volo_Abp_Account_RegisterDto.ts +15 -15
- package/AccountService/models/Volo_Abp_Account_ResetPasswordDto.ts +10 -10
- package/AccountService/models/Volo_Abp_Account_SendEmailConfirmationTokenDto.ts +11 -11
- package/AccountService/models/Volo_Abp_Account_SendPasswordResetCodeDto.ts +11 -11
- package/AccountService/models/Volo_Abp_Account_SendPhoneNumberConfirmationTokenDto.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_SendTwoFactorCodeInput.ts +10 -10
- package/AccountService/models/Volo_Abp_Account_UnLinkUserInput.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_UpdateExternalProviderDto.ts +12 -12
- package/AccountService/models/Volo_Abp_Account_UpdateProfileDto.ts +15 -15
- package/AccountService/models/Volo_Abp_Account_UserDelegationDto.ts +11 -11
- package/AccountService/models/Volo_Abp_Account_UserLookupDto.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_VerifyAuthenticatorCodeDto.ts +8 -8
- package/AccountService/models/Volo_Abp_Account_VerifyAuthenticatorCodeInput.ts +8 -8
- package/AccountService/models/Volo_Abp_Account_VerifyEmailConfirmationTokenInput.ts +9 -9
- package/AccountService/models/Volo_Abp_Account_VerifyLinkLoginTokenInput.ts +10 -10
- package/AccountService/models/Volo_Abp_Account_VerifyLinkTokenInput.ts +10 -10
- package/AccountService/models/Volo_Abp_Account_VerifyPasswordResetTokenInput.ts +9 -9
- package/AccountService/models/Volo_Abp_Application_Dtos_ListResultDto_1.ts +9 -9
- package/AccountService/models/Volo_Abp_Application_Dtos_PagedResultDto_1.ts +10 -10
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationConfigurationDto.ts +30 -30
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationFeatureConfigurationDto.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationGlobalFeatureConfigurationDto.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationConfigurationDto.ts +18 -18
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto.ts +9 -9
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationResourceDto.ts +9 -9
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationSettingConfigurationDto.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ClockDto.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentCultureDto.ts +17 -17
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentUserDto.ts +22 -22
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_DateTimeFormatDto.ts +14 -14
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_IanaTimeZone.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_EntityExtensionDto.ts +10 -10
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumDto.ts +10 -10
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumFieldDto.ts +9 -9
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiCreateDto.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiDto.ts +13 -13
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiGetDto.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiUpdateDto.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyAttributeDto.ts +9 -9
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyDto.ts +19 -19
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiDto.ts +14 -14
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiFormDto.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiLookupDto.ts +12 -12
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiTableDto.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_LocalizableStringDto.ts +9 -9
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ModuleExtensionDto.ts +10 -10
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ObjectExtensionsDto.ts +11 -11
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimeZone.ts +11 -11
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimingDto.ts +9 -9
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_WindowsTimeZone.ts +8 -8
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_CurrentTenantDto.ts +10 -10
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_FindTenantResultDto.ts +11 -11
- package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_MultiTenancyInfoDto.ts +8 -8
- package/AccountService/models/Volo_Abp_Http_Modeling_ActionApiDescriptionModel.ts +20 -20
- package/AccountService/models/Volo_Abp_Http_Modeling_ApplicationApiDescriptionModel.ts +11 -11
- package/AccountService/models/Volo_Abp_Http_Modeling_ControllerApiDescriptionModel.ts +17 -17
- package/AccountService/models/Volo_Abp_Http_Modeling_ControllerInterfaceApiDescriptionModel.ts +11 -11
- package/AccountService/models/Volo_Abp_Http_Modeling_InterfaceMethodApiDescriptionModel.ts +12 -12
- package/AccountService/models/Volo_Abp_Http_Modeling_MethodParameterApiDescriptionModel.ts +13 -13
- package/AccountService/models/Volo_Abp_Http_Modeling_ModuleApiDescriptionModel.ts +11 -11
- package/AccountService/models/Volo_Abp_Http_Modeling_ParameterApiDescriptionModel.ts +17 -17
- package/AccountService/models/Volo_Abp_Http_Modeling_PropertyApiDescriptionModel.ts +17 -17
- package/AccountService/models/Volo_Abp_Http_Modeling_ReturnValueApiDescriptionModel.ts +9 -9
- package/AccountService/models/Volo_Abp_Http_Modeling_TypeApiDescriptionModel.ts +14 -14
- package/AccountService/models/Volo_Abp_Http_RemoteServiceErrorInfo.ts +13 -13
- package/AccountService/models/Volo_Abp_Http_RemoteServiceErrorResponse.ts +9 -9
- package/AccountService/models/Volo_Abp_Http_RemoteServiceValidationErrorInfo.ts +9 -9
- package/AccountService/models/Volo_Abp_Identity_Features_IdentityProTwoFactorBehaviour.ts +9 -9
- package/AccountService/models/Volo_Abp_Identity_IdentitySecurityLogDto.ts +21 -21
- package/AccountService/models/Volo_Abp_Identity_IdentityUserDto.ts +35 -35
- package/AccountService/models/Volo_Abp_Localization_LanguageInfo.ts +12 -12
- package/AccountService/models/Volo_Abp_NameValue.ts +9 -9
- package/AccountService/services/AbpApiDefinitionService.ts +34 -34
- package/AccountService/services/AbpApplicationConfigurationService.ts +34 -34
- package/AccountService/services/AbpApplicationLocalizationService.ts +37 -37
- package/AccountService/services/AbpTenantService.ts +58 -58
- package/AccountService/services/AccountExternalProviderService.ts +56 -56
- package/AccountService/services/AccountService.ts +545 -545
- package/AccountService/services/AccountSettingsService.ts +178 -178
- package/AccountService/services/DynamicClaimsService.ts +27 -27
- package/AccountService/services/LoginService.ts +99 -99
- package/AccountService/services/ProfileService.ts +155 -155
- package/AccountService/services/UserService.ts +313 -313
- package/AdministrationService/models/System_Net_HttpStatusCode.ts +67 -67
- package/AdministrationService/models/Volo_Abp_Application_Dtos_ListResultDto_1.ts +9 -9
- package/AdministrationService/models/Volo_Abp_Application_Dtos_PagedResultDto_1.ts +10 -10
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationConfigurationDto.ts +30 -30
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationFeatureConfigurationDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationGlobalFeatureConfigurationDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationConfigurationDto.ts +18 -18
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationResourceDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationSettingConfigurationDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ClockDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentCultureDto.ts +17 -17
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentUserDto.ts +22 -22
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_DateTimeFormatDto.ts +14 -14
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_IanaTimeZone.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_EntityExtensionDto.ts +10 -10
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumDto.ts +10 -10
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumFieldDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiCreateDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiDto.ts +13 -13
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiGetDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiUpdateDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyAttributeDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyDto.ts +19 -19
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiDto.ts +14 -14
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiFormDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiLookupDto.ts +12 -12
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiTableDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_LocalizableStringDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ModuleExtensionDto.ts +10 -10
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ObjectExtensionsDto.ts +11 -11
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimeZone.ts +11 -11
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimingDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_WindowsTimeZone.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_CurrentTenantDto.ts +10 -10
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_FindTenantResultDto.ts +11 -11
- package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_MultiTenancyInfoDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AuditLogging_AuditLogActionDto.ts +16 -16
- package/AdministrationService/models/Volo_Abp_AuditLogging_AuditLogDto.ts +33 -33
- package/AdministrationService/models/Volo_Abp_AuditLogging_EntityChangeDto.ts +18 -18
- package/AdministrationService/models/Volo_Abp_AuditLogging_EntityChangeWithUsernameDto.ts +10 -10
- package/AdministrationService/models/Volo_Abp_AuditLogging_EntityPropertyChangeDto.ts +14 -14
- package/AdministrationService/models/Volo_Abp_AuditLogging_GetAverageExecutionDurationPerDayOutput.ts +8 -8
- package/AdministrationService/models/Volo_Abp_AuditLogging_GetErrorRateOutput.ts +8 -8
- package/AdministrationService/models/Volo_Abp_Auditing_EntityChangeType.ts +9 -9
- package/AdministrationService/models/Volo_Abp_FeatureManagement_FeatureDto.ts +17 -17
- package/AdministrationService/models/Volo_Abp_FeatureManagement_FeatureGroupDto.ts +11 -11
- package/AdministrationService/models/Volo_Abp_FeatureManagement_FeatureProviderDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_FeatureManagement_GetFeatureListResultDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_FeatureManagement_UpdateFeatureDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_FeatureManagement_UpdateFeaturesDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_Gdpr_DownloadTokenResultDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_Gdpr_GdprRequestDto.ts +10 -10
- package/AdministrationService/models/Volo_Abp_Http_Modeling_ActionApiDescriptionModel.ts +20 -20
- package/AdministrationService/models/Volo_Abp_Http_Modeling_ApplicationApiDescriptionModel.ts +11 -11
- package/AdministrationService/models/Volo_Abp_Http_Modeling_ControllerApiDescriptionModel.ts +17 -17
- package/AdministrationService/models/Volo_Abp_Http_Modeling_ControllerInterfaceApiDescriptionModel.ts +11 -11
- package/AdministrationService/models/Volo_Abp_Http_Modeling_InterfaceMethodApiDescriptionModel.ts +12 -12
- package/AdministrationService/models/Volo_Abp_Http_Modeling_MethodParameterApiDescriptionModel.ts +13 -13
- package/AdministrationService/models/Volo_Abp_Http_Modeling_ModuleApiDescriptionModel.ts +11 -11
- package/AdministrationService/models/Volo_Abp_Http_Modeling_ParameterApiDescriptionModel.ts +17 -17
- package/AdministrationService/models/Volo_Abp_Http_Modeling_PropertyApiDescriptionModel.ts +17 -17
- package/AdministrationService/models/Volo_Abp_Http_Modeling_ReturnValueApiDescriptionModel.ts +9 -9
- package/AdministrationService/models/Volo_Abp_Http_Modeling_TypeApiDescriptionModel.ts +14 -14
- package/AdministrationService/models/Volo_Abp_Http_RemoteServiceErrorInfo.ts +13 -13
- package/AdministrationService/models/Volo_Abp_Http_RemoteServiceErrorResponse.ts +9 -9
- package/AdministrationService/models/Volo_Abp_Http_RemoteServiceValidationErrorInfo.ts +9 -9
- package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_CreateLanguageDto.ts +13 -13
- package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_CultureInfoDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_LanguageDto.ts +18 -18
- package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_LanguageResourceDto.ts +8 -8
- package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_LanguageTextDto.ts +13 -13
- package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_UpdateLanguageDto.ts +12 -12
- package/AdministrationService/models/Volo_Abp_Localization_LanguageInfo.ts +12 -12
- package/AdministrationService/models/Volo_Abp_NameValue.ts +9 -9
- package/AdministrationService/models/Volo_Abp_PermissionManagement_GetPermissionListResultDto.ts +10 -10
- package/AdministrationService/models/Volo_Abp_PermissionManagement_PermissionGrantInfoDto.ts +14 -14
- package/AdministrationService/models/Volo_Abp_PermissionManagement_PermissionGroupDto.ts +13 -13
- package/AdministrationService/models/Volo_Abp_PermissionManagement_ProviderInfoDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_PermissionManagement_UpdatePermissionDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_PermissionManagement_UpdatePermissionsDto.ts +9 -9
- package/AdministrationService/models/Volo_Abp_SettingManagement_EmailSettingsDto.ts +16 -16
- package/AdministrationService/models/Volo_Abp_SettingManagement_SendTestEmailInput.ts +11 -11
- package/AdministrationService/models/Volo_Abp_SettingManagement_UpdateEmailSettingsDto.ts +16 -16
- package/AdministrationService/models/Volo_Abp_TextTemplateManagement_TextTemplates_RestoreTemplateContentInput.ts +9 -9
- package/AdministrationService/models/Volo_Abp_TextTemplateManagement_TextTemplates_TemplateDefinitionDto.ts +13 -13
- package/AdministrationService/models/Volo_Abp_TextTemplateManagement_TextTemplates_TextTemplateContentDto.ts +10 -10
- package/AdministrationService/models/Volo_Abp_TextTemplateManagement_TextTemplates_UpdateTemplateContentInput.ts +10 -10
- package/AdministrationService/models/Volo_Abp_Validation_StringValues_IStringValueType.ts +11 -11
- package/AdministrationService/models/Volo_Abp_Validation_StringValues_IValueValidator.ts +9 -9
- package/AdministrationService/services/AbpApiDefinitionService.ts +34 -34
- package/AdministrationService/services/AbpApplicationConfigurationService.ts +34 -34
- package/AdministrationService/services/AbpApplicationLocalizationService.ts +37 -37
- package/AdministrationService/services/AbpTenantService.ts +58 -58
- package/AdministrationService/services/AuditLogsService.ts +286 -286
- package/AdministrationService/services/EmailSettingsService.ts +76 -76
- package/AdministrationService/services/FeaturesService.ts +96 -96
- package/AdministrationService/services/GdprRequestService.ts +152 -152
- package/AdministrationService/services/LanguageTextsService.ts +157 -157
- package/AdministrationService/services/LanguagesService.ts +257 -257
- package/AdministrationService/services/PermissionsService.ts +69 -69
- package/AdministrationService/services/TextTemplateContentsService.ts +85 -85
- package/AdministrationService/services/TextTemplateDefinitionsService.ts +69 -69
- package/AdministrationService/services/TimeZoneSettingsService.ts +70 -70
- package/ContractService/ContractServiceClient.ts +50 -50
- package/ContractService/schemas.gen.ts +9808 -9808
- package/ContractService/services.gen.ts +1716 -1716
- package/ContractService/types.gen.ts +3755 -3755
- package/ExportValidationService/schemas.gen.ts +3998 -3998
- package/ExportValidationService/services.gen.ts +260 -260
- package/ExportValidationService/types.gen.ts +818 -818
- package/IdentityService/models/Volo_Abp_Account_AccountExternalProviderSettingsDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_Account_AccountRecaptchaSettingsDto.ts +14 -14
- package/IdentityService/models/Volo_Abp_Account_AccountSettingsDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_Account_AccountTwoFactorSettingsDto.ts +11 -11
- package/IdentityService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettings.ts +12 -12
- package/IdentityService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettingsProperty.ts +9 -9
- package/IdentityService/models/Volo_Abp_Account_UpdateExternalProviderDto.ts +12 -12
- package/IdentityService/models/Volo_Abp_Application_Dtos_ListResultDto_1.ts +9 -9
- package/IdentityService/models/Volo_Abp_Application_Dtos_PagedResultDto_1.ts +10 -10
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationConfigurationDto.ts +30 -30
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationFeatureConfigurationDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationGlobalFeatureConfigurationDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationConfigurationDto.ts +18 -18
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationResourceDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationSettingConfigurationDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ClockDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentCultureDto.ts +17 -17
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentUserDto.ts +22 -22
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_DateTimeFormatDto.ts +14 -14
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_IanaTimeZone.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_EntityExtensionDto.ts +10 -10
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumDto.ts +10 -10
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumFieldDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiCreateDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiDto.ts +13 -13
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiGetDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiUpdateDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyAttributeDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyDto.ts +19 -19
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiDto.ts +14 -14
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiFormDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiLookupDto.ts +12 -12
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiTableDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_LocalizableStringDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ModuleExtensionDto.ts +10 -10
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ObjectExtensionsDto.ts +11 -11
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimeZone.ts +11 -11
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimingDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_WindowsTimeZone.ts +8 -8
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_CurrentTenantDto.ts +10 -10
- package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_MultiTenancyInfoDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_Http_Modeling_ActionApiDescriptionModel.ts +20 -20
- package/IdentityService/models/Volo_Abp_Http_Modeling_ApplicationApiDescriptionModel.ts +11 -11
- package/IdentityService/models/Volo_Abp_Http_Modeling_ControllerApiDescriptionModel.ts +17 -17
- package/IdentityService/models/Volo_Abp_Http_Modeling_ControllerInterfaceApiDescriptionModel.ts +11 -11
- package/IdentityService/models/Volo_Abp_Http_Modeling_InterfaceMethodApiDescriptionModel.ts +12 -12
- package/IdentityService/models/Volo_Abp_Http_Modeling_MethodParameterApiDescriptionModel.ts +13 -13
- package/IdentityService/models/Volo_Abp_Http_Modeling_ModuleApiDescriptionModel.ts +11 -11
- package/IdentityService/models/Volo_Abp_Http_Modeling_ParameterApiDescriptionModel.ts +17 -17
- package/IdentityService/models/Volo_Abp_Http_Modeling_PropertyApiDescriptionModel.ts +17 -17
- package/IdentityService/models/Volo_Abp_Http_Modeling_ReturnValueApiDescriptionModel.ts +9 -9
- package/IdentityService/models/Volo_Abp_Http_Modeling_TypeApiDescriptionModel.ts +14 -14
- package/IdentityService/models/Volo_Abp_Http_RemoteServiceErrorInfo.ts +13 -13
- package/IdentityService/models/Volo_Abp_Http_RemoteServiceErrorResponse.ts +9 -9
- package/IdentityService/models/Volo_Abp_Http_RemoteServiceValidationErrorInfo.ts +9 -9
- package/IdentityService/models/Volo_Abp_Identity_ClaimTypeDto.ts +19 -19
- package/IdentityService/models/Volo_Abp_Identity_CreateClaimTypeDto.ts +15 -15
- package/IdentityService/models/Volo_Abp_Identity_DownloadTokenResultDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_Identity_ExternalLoginProviderDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_Identity_Features_IdentityProTwoFactorBehaviour.ts +9 -9
- package/IdentityService/models/Volo_Abp_Identity_IdentityClaimValueType.ts +10 -10
- package/IdentityService/models/Volo_Abp_Identity_IdentityLdapSettingsDto.ts +15 -15
- package/IdentityService/models/Volo_Abp_Identity_IdentityLockoutSettingsDto.ts +10 -10
- package/IdentityService/models/Volo_Abp_Identity_IdentityOAuthSettingsDto.ts +15 -15
- package/IdentityService/models/Volo_Abp_Identity_IdentityPasswordSettingsDto.ts +15 -15
- package/IdentityService/models/Volo_Abp_Identity_IdentityRoleClaimDto.ts +10 -10
- package/IdentityService/models/Volo_Abp_Identity_IdentityRoleCreateDto.ts +11 -11
- package/IdentityService/models/Volo_Abp_Identity_IdentityRoleDto.ts +15 -15
- package/IdentityService/models/Volo_Abp_Identity_IdentityRoleLookupDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_Identity_IdentityRoleUpdateDto.ts +12 -12
- package/IdentityService/models/Volo_Abp_Identity_IdentitySecurityLogDto.ts +21 -21
- package/IdentityService/models/Volo_Abp_Identity_IdentitySettingsDto.ts +15 -15
- package/IdentityService/models/Volo_Abp_Identity_IdentitySignInSettingsDto.ts +10 -10
- package/IdentityService/models/Volo_Abp_Identity_IdentityUserClaimDto.ts +10 -10
- package/IdentityService/models/Volo_Abp_Identity_IdentityUserCreateDto.ts +20 -20
- package/IdentityService/models/Volo_Abp_Identity_IdentityUserDto.ts +35 -35
- package/IdentityService/models/Volo_Abp_Identity_IdentityUserSettingsDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_Identity_IdentityUserUpdateDto.ts +19 -19
- package/IdentityService/models/Volo_Abp_Identity_IdentityUserUpdatePasswordInput.ts +8 -8
- package/IdentityService/models/Volo_Abp_Identity_IdentityUserUpdateRolesDto.ts +8 -8
- package/IdentityService/models/Volo_Abp_Identity_ImportExternalUserInput.ts +10 -10
- package/IdentityService/models/Volo_Abp_Identity_ImportUsersFromFileOutput.ts +12 -12
- package/IdentityService/models/Volo_Abp_Identity_ImportUsersFromFileType.ts +8 -8
- package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitCreateDto.ts +10 -10
- package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitDto.ts +21 -21
- package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitLookupDto.ts +9 -9
- package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitMoveInput.ts +8 -8
- package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitRoleDto.ts +11 -11
- package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitRoleInput.ts +8 -8
- package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitUpdateDto.ts +10 -10
- package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitUserInput.ts +8 -8
- package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitWithDetailsDto.ts +23 -23
- package/IdentityService/models/Volo_Abp_Identity_UpdateClaimTypeDto.ts +16 -16
- package/IdentityService/models/Volo_Abp_Localization_LanguageInfo.ts +12 -12
- package/IdentityService/models/Volo_Abp_NameValue.ts +9 -9
- package/IdentityService/models/Volo_Abp_OpenIddict_Applications_Dtos_ApplicationDto.ts +29 -29
- package/IdentityService/models/Volo_Abp_OpenIddict_Applications_Dtos_ApplicationTokenLifetimeDto.ts +13 -13
- package/IdentityService/models/Volo_Abp_OpenIddict_Applications_Dtos_CreateApplicationInput.ts +28 -28
- package/IdentityService/models/Volo_Abp_OpenIddict_Applications_Dtos_UpdateApplicationInput.ts +28 -28
- package/IdentityService/models/Volo_Abp_OpenIddict_Scopes_Dtos_CreateScopeInput.ts +12 -12
- package/IdentityService/models/Volo_Abp_OpenIddict_Scopes_Dtos_ScopeDto.ts +14 -14
- package/IdentityService/models/Volo_Abp_OpenIddict_Scopes_Dtos_UpdateScopeInput.ts +12 -12
- package/IdentityService/models/Volo_Abp_Users_UserData.ts +18 -18
- package/IdentityService/services/AbpApiDefinitionService.ts +34 -34
- package/IdentityService/services/AbpApplicationConfigurationService.ts +34 -34
- package/IdentityService/services/AbpApplicationLocalizationService.ts +37 -37
- package/IdentityService/services/AccountSettingsService.ts +178 -178
- package/IdentityService/services/ApplicationsService.ts +199 -199
- package/IdentityService/services/ClaimTypeService.ts +149 -149
- package/IdentityService/services/ExternalLoginService.ts +27 -27
- package/IdentityService/services/OrganizationUnitService.ts +539 -539
- package/IdentityService/services/RoleService.ts +269 -269
- package/IdentityService/services/ScopesService.ts +164 -164
- package/IdentityService/services/SecurityLogService.ts +174 -174
- package/IdentityService/services/SettingsService.ts +135 -135
- package/IdentityService/services/UserIntegrationService.ts +144 -144
- package/IdentityService/services/UserLookupService.ts +120 -120
- package/IdentityService/services/UserService.ts +937 -937
- package/MerchantService/schemas.gen.ts +14764 -14764
- package/MerchantService/services.gen.ts +1602 -1602
- package/MerchantService/types.gen.ts +18875 -18875
- package/ProjectService.json +2937 -2937
- package/README.md +39 -14
- package/SaasService/schemas.gen.ts +5345 -5345
- package/SaasService/services.gen.ts +1329 -1329
- package/SaasService/types.gen.ts +2737 -2737
- package/SettingService/SettingServiceClient.ts +59 -62
- package/SettingService/schemas.gen.ts +5223 -5410
- package/SettingService/services.gen.ts +758 -890
- package/SettingService/types.gen.ts +1800 -2052
- package/TagService/schemas.gen.ts +5109 -5014
- package/TagService/services.gen.ts +361 -310
- package/TagService/types.gen.ts +1088 -990
- package/TravellerService/schemas.gen.ts +6274 -6274
- package/TravellerService/services.gen.ts +713 -713
- package/TravellerService/types.gen.ts +1835 -1835
- package/generator.mjs +198 -198
- package/index.ts +2 -2
- package/package.json +27 -27
- package/swagger.json +4794 -4794
package/generator.mjs
CHANGED
|
@@ -1,199 +1,199 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
|
-
import { createClient } from "@hey-api/openapi-ts";
|
|
3
|
-
import SwaggerParser from "@apidevtools/swagger-parser";
|
|
4
|
-
import fs from "fs";
|
|
5
|
-
|
|
6
|
-
const BASE_URL = "http://192.168.1.105:";
|
|
7
|
-
const WEBGATEWAY_PORT = 44336;
|
|
8
|
-
|
|
9
|
-
const upwithcrowd_api_list = [
|
|
10
|
-
{
|
|
11
|
-
input: "",
|
|
12
|
-
output: "Project",
|
|
13
|
-
port: 44964,
|
|
14
|
-
dereference: true,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
input: "",
|
|
18
|
-
output: "Fundraiser",
|
|
19
|
-
port: 44509,
|
|
20
|
-
dereference: true,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
input: "swagger-json/Backer",
|
|
24
|
-
output: "Backer",
|
|
25
|
-
port: 44325,
|
|
26
|
-
dereference: true,
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
|
-
|
|
30
|
-
var initial_api_list = [
|
|
31
|
-
{
|
|
32
|
-
input: "swagger-json/AuthServer",
|
|
33
|
-
output: "Account",
|
|
34
|
-
dereference: true,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
input: "swagger-json/Administration",
|
|
38
|
-
output: "Administration",
|
|
39
|
-
dereference: true,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
input: "swagger-json/Identity",
|
|
43
|
-
output: "Identity",
|
|
44
|
-
dereference: true,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
input: "swagger-json/Saas",
|
|
48
|
-
output: "Saas",
|
|
49
|
-
dereference: true,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
input: "swagger-json/Setting",
|
|
53
|
-
output: "Setting",
|
|
54
|
-
dereference: true,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
input: "swagger-json/CRM",
|
|
58
|
-
output: "CRM",
|
|
59
|
-
dereference: true,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
input: "swagger-json/Contract",
|
|
63
|
-
output: "Contract",
|
|
64
|
-
dereference: true,
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
input: "swagger-json/Traveller",
|
|
68
|
-
output: "Traveller",
|
|
69
|
-
dereference: true,
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
input: "swagger-json/Location",
|
|
73
|
-
output: "Location",
|
|
74
|
-
dereference: true,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
input: "swagger-json/Tag",
|
|
78
|
-
output: "Tag",
|
|
79
|
-
dereference: true,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
input: "swagger-json/ExportValidation",
|
|
83
|
-
output: "ExportValidation",
|
|
84
|
-
dereference: true,
|
|
85
|
-
},
|
|
86
|
-
...upwithcrowd_api_list,
|
|
87
|
-
];
|
|
88
|
-
|
|
89
|
-
function clean_URL(url) {
|
|
90
|
-
return url.replace(/\/\//g, "/").replace(/:\//g, "://");
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function getCircularReplacer() {
|
|
94
|
-
const ancestors = [];
|
|
95
|
-
return function (key, value) {
|
|
96
|
-
if (typeof value !== "object" || value === null) {
|
|
97
|
-
return value;
|
|
98
|
-
}
|
|
99
|
-
// `this` is the object that value is contained in,
|
|
100
|
-
// i.e., its direct parent.
|
|
101
|
-
while (ancestors.length > 0 && ancestors.at(-1) !== this) {
|
|
102
|
-
ancestors.pop();
|
|
103
|
-
}
|
|
104
|
-
if (ancestors.includes(value)) {
|
|
105
|
-
return "[Circular]";
|
|
106
|
-
}
|
|
107
|
-
ancestors.push(value);
|
|
108
|
-
return value;
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
async function generateApi(api_list) {
|
|
113
|
-
for (const api of api_list) {
|
|
114
|
-
console.log(`✨ Processing ${api.output}...`);
|
|
115
|
-
const port = api?.port ? api.port : WEBGATEWAY_PORT;
|
|
116
|
-
const apiURL = clean_URL(
|
|
117
|
-
`${BASE_URL + port}/${api.input}` + "/swagger/v1/swagger.json",
|
|
118
|
-
);
|
|
119
|
-
const swaggerText = await SwaggerParser.dereference(apiURL);
|
|
120
|
-
let temp_swagger = apiURL;
|
|
121
|
-
if (api.dereference) {
|
|
122
|
-
console.log(typeof swaggerText);
|
|
123
|
-
console.log(`🎁 Dereferencing ${api.output} is from ${apiURL} done.`);
|
|
124
|
-
temp_swagger = `temp_${api.output}_swagger.json`;
|
|
125
|
-
fs.writeFileSync(
|
|
126
|
-
temp_swagger,
|
|
127
|
-
JSON.stringify(swaggerText, getCircularReplacer()),
|
|
128
|
-
);
|
|
129
|
-
|
|
130
|
-
await createClient({
|
|
131
|
-
input: temp_swagger,
|
|
132
|
-
output: api.output + "Service",
|
|
133
|
-
name: api.output + "ServiceClient",
|
|
134
|
-
client: "fetch",
|
|
135
|
-
types: false,
|
|
136
|
-
services: false,
|
|
137
|
-
});
|
|
138
|
-
//types
|
|
139
|
-
await createClient({
|
|
140
|
-
input: apiURL,
|
|
141
|
-
output: api.output + "Service",
|
|
142
|
-
name: api.output + "ServiceClient",
|
|
143
|
-
client: "fetch",
|
|
144
|
-
schemas: false,
|
|
145
|
-
types: {
|
|
146
|
-
// dates: "types+transform" TODO implement this
|
|
147
|
-
// name: "PascalCase" TODO implement this
|
|
148
|
-
tree: true,
|
|
149
|
-
},
|
|
150
|
-
});
|
|
151
|
-
fs.unlinkSync(temp_swagger);
|
|
152
|
-
fs.writeFileSync(
|
|
153
|
-
`${api.output}Service/index.ts`,
|
|
154
|
-
`\nexport * from './schemas.gen';`,
|
|
155
|
-
{ flag: "a" },
|
|
156
|
-
);
|
|
157
|
-
} else {
|
|
158
|
-
await createClient({
|
|
159
|
-
input: temp_swagger,
|
|
160
|
-
output: api.output + "Service",
|
|
161
|
-
name: api.output + "ServiceClient",
|
|
162
|
-
client: "fetch",
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
console.log(`✅ Generating ${api.output} is done.`);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
const args = process.argv.filter((val) => val.startsWith("--"));
|
|
170
|
-
const isAll = args.filter((val) => val === "--all").length > 0;
|
|
171
|
-
const hasFilter = args.filter((val) => val.startsWith("--filter")).length > 0;
|
|
172
|
-
const knownArgs = ["--all", "--filter"];
|
|
173
|
-
const unknownArgs = args.filter(
|
|
174
|
-
(val) =>
|
|
175
|
-
!knownArgs.includes(val) && !knownArgs.includes(val.split("=").at(0)),
|
|
176
|
-
);
|
|
177
|
-
async function init() {
|
|
178
|
-
if (unknownArgs.length > 0) {
|
|
179
|
-
return console.error(`❌ Unknown arguments: ${unknownArgs.join(", ")}`);
|
|
180
|
-
}
|
|
181
|
-
if (isAll && hasFilter) {
|
|
182
|
-
return console.error(`❌ Cannot use --all and --filter at the same time.`);
|
|
183
|
-
}
|
|
184
|
-
if (hasFilter) {
|
|
185
|
-
const filter = args
|
|
186
|
-
.filter((val) => val.startsWith("--filter"))[0]
|
|
187
|
-
.split("=")[1];
|
|
188
|
-
const filterArgs = filter.split(",");
|
|
189
|
-
initial_api_list = initial_api_list.filter((val) =>
|
|
190
|
-
filterArgs.includes(val.output),
|
|
191
|
-
);
|
|
192
|
-
if (initial_api_list.length === 0) {
|
|
193
|
-
return console.error(`❌ Unknown filter: ${filter}`);
|
|
194
|
-
}
|
|
195
|
-
console.log(`📃 Generating with filters: ${filter}`);
|
|
196
|
-
}
|
|
197
|
-
await generateApi(initial_api_list);
|
|
198
|
-
}
|
|
199
|
-
init();
|
|
2
|
+
import { createClient } from "@hey-api/openapi-ts";
|
|
3
|
+
import SwaggerParser from "@apidevtools/swagger-parser";
|
|
4
|
+
import fs from "fs";
|
|
5
|
+
|
|
6
|
+
const BASE_URL = "http://192.168.1.105:";
|
|
7
|
+
const WEBGATEWAY_PORT = 44336;
|
|
8
|
+
|
|
9
|
+
const upwithcrowd_api_list = [
|
|
10
|
+
{
|
|
11
|
+
input: "",
|
|
12
|
+
output: "Project",
|
|
13
|
+
port: 44964,
|
|
14
|
+
dereference: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
input: "",
|
|
18
|
+
output: "Fundraiser",
|
|
19
|
+
port: 44509,
|
|
20
|
+
dereference: true,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
input: "swagger-json/Backer",
|
|
24
|
+
output: "Backer",
|
|
25
|
+
port: 44325,
|
|
26
|
+
dereference: true,
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
var initial_api_list = [
|
|
31
|
+
{
|
|
32
|
+
input: "swagger-json/AuthServer",
|
|
33
|
+
output: "Account",
|
|
34
|
+
dereference: true,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
input: "swagger-json/Administration",
|
|
38
|
+
output: "Administration",
|
|
39
|
+
dereference: true,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
input: "swagger-json/Identity",
|
|
43
|
+
output: "Identity",
|
|
44
|
+
dereference: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
input: "swagger-json/Saas",
|
|
48
|
+
output: "Saas",
|
|
49
|
+
dereference: true,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
input: "swagger-json/Setting",
|
|
53
|
+
output: "Setting",
|
|
54
|
+
dereference: true,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
input: "swagger-json/CRM",
|
|
58
|
+
output: "CRM",
|
|
59
|
+
dereference: true,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
input: "swagger-json/Contract",
|
|
63
|
+
output: "Contract",
|
|
64
|
+
dereference: true,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
input: "swagger-json/Traveller",
|
|
68
|
+
output: "Traveller",
|
|
69
|
+
dereference: true,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
input: "swagger-json/Location",
|
|
73
|
+
output: "Location",
|
|
74
|
+
dereference: true,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
input: "swagger-json/Tag",
|
|
78
|
+
output: "Tag",
|
|
79
|
+
dereference: true,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
input: "swagger-json/ExportValidation",
|
|
83
|
+
output: "ExportValidation",
|
|
84
|
+
dereference: true,
|
|
85
|
+
},
|
|
86
|
+
...upwithcrowd_api_list,
|
|
87
|
+
];
|
|
88
|
+
|
|
89
|
+
function clean_URL(url) {
|
|
90
|
+
return url.replace(/\/\//g, "/").replace(/:\//g, "://");
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function getCircularReplacer() {
|
|
94
|
+
const ancestors = [];
|
|
95
|
+
return function (key, value) {
|
|
96
|
+
if (typeof value !== "object" || value === null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
// `this` is the object that value is contained in,
|
|
100
|
+
// i.e., its direct parent.
|
|
101
|
+
while (ancestors.length > 0 && ancestors.at(-1) !== this) {
|
|
102
|
+
ancestors.pop();
|
|
103
|
+
}
|
|
104
|
+
if (ancestors.includes(value)) {
|
|
105
|
+
return "[Circular]";
|
|
106
|
+
}
|
|
107
|
+
ancestors.push(value);
|
|
108
|
+
return value;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
async function generateApi(api_list) {
|
|
113
|
+
for (const api of api_list) {
|
|
114
|
+
console.log(`✨ Processing ${api.output}...`);
|
|
115
|
+
const port = api?.port ? api.port : WEBGATEWAY_PORT;
|
|
116
|
+
const apiURL = clean_URL(
|
|
117
|
+
`${BASE_URL + port}/${api.input}` + "/swagger/v1/swagger.json",
|
|
118
|
+
);
|
|
119
|
+
const swaggerText = await SwaggerParser.dereference(apiURL);
|
|
120
|
+
let temp_swagger = apiURL;
|
|
121
|
+
if (api.dereference) {
|
|
122
|
+
console.log(typeof swaggerText);
|
|
123
|
+
console.log(`🎁 Dereferencing ${api.output} is from ${apiURL} done.`);
|
|
124
|
+
temp_swagger = `temp_${api.output}_swagger.json`;
|
|
125
|
+
fs.writeFileSync(
|
|
126
|
+
temp_swagger,
|
|
127
|
+
JSON.stringify(swaggerText, getCircularReplacer()),
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
await createClient({
|
|
131
|
+
input: temp_swagger,
|
|
132
|
+
output: api.output + "Service",
|
|
133
|
+
name: api.output + "ServiceClient",
|
|
134
|
+
client: "fetch",
|
|
135
|
+
types: false,
|
|
136
|
+
services: false,
|
|
137
|
+
});
|
|
138
|
+
//types
|
|
139
|
+
await createClient({
|
|
140
|
+
input: apiURL,
|
|
141
|
+
output: api.output + "Service",
|
|
142
|
+
name: api.output + "ServiceClient",
|
|
143
|
+
client: "fetch",
|
|
144
|
+
schemas: false,
|
|
145
|
+
types: {
|
|
146
|
+
// dates: "types+transform" TODO implement this
|
|
147
|
+
// name: "PascalCase" TODO implement this
|
|
148
|
+
tree: true,
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
fs.unlinkSync(temp_swagger);
|
|
152
|
+
fs.writeFileSync(
|
|
153
|
+
`${api.output}Service/index.ts`,
|
|
154
|
+
`\nexport * from './schemas.gen';`,
|
|
155
|
+
{ flag: "a" },
|
|
156
|
+
);
|
|
157
|
+
} else {
|
|
158
|
+
await createClient({
|
|
159
|
+
input: temp_swagger,
|
|
160
|
+
output: api.output + "Service",
|
|
161
|
+
name: api.output + "ServiceClient",
|
|
162
|
+
client: "fetch",
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
console.log(`✅ Generating ${api.output} is done.`);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const args = process.argv.filter((val) => val.startsWith("--"));
|
|
170
|
+
const isAll = args.filter((val) => val === "--all").length > 0;
|
|
171
|
+
const hasFilter = args.filter((val) => val.startsWith("--filter")).length > 0;
|
|
172
|
+
const knownArgs = ["--all", "--filter"];
|
|
173
|
+
const unknownArgs = args.filter(
|
|
174
|
+
(val) =>
|
|
175
|
+
!knownArgs.includes(val) && !knownArgs.includes(val.split("=").at(0)),
|
|
176
|
+
);
|
|
177
|
+
async function init() {
|
|
178
|
+
if (unknownArgs.length > 0) {
|
|
179
|
+
return console.error(`❌ Unknown arguments: ${unknownArgs.join(", ")}`);
|
|
180
|
+
}
|
|
181
|
+
if (isAll && hasFilter) {
|
|
182
|
+
return console.error(`❌ Cannot use --all and --filter at the same time.`);
|
|
183
|
+
}
|
|
184
|
+
if (hasFilter) {
|
|
185
|
+
const filter = args
|
|
186
|
+
.filter((val) => val.startsWith("--filter"))[0]
|
|
187
|
+
.split("=")[1];
|
|
188
|
+
const filterArgs = filter.split(",");
|
|
189
|
+
initial_api_list = initial_api_list.filter((val) =>
|
|
190
|
+
filterArgs.includes(val.output),
|
|
191
|
+
);
|
|
192
|
+
if (initial_api_list.length === 0) {
|
|
193
|
+
return console.error(`❌ Unknown filter: ${filter}`);
|
|
194
|
+
}
|
|
195
|
+
console.log(`📃 Generating with filters: ${filter}`);
|
|
196
|
+
}
|
|
197
|
+
await generateApi(initial_api_list);
|
|
198
|
+
}
|
|
199
|
+
init();
|
package/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as AccountService from "./AccountService";
|
|
2
|
-
export * as ProjectService from "./ProjectService";
|
|
1
|
+
export * as AccountService from "./AccountService";
|
|
2
|
+
export * as ProjectService from "./ProjectService";
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ayasofyazilim/saas",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Ayasofyazılım SAAS",
|
|
5
|
-
"main": "generator.mjs",
|
|
6
|
-
"bin": {
|
|
7
|
-
"generate": "generator.mjs"
|
|
8
|
-
},
|
|
9
|
-
"exports": {
|
|
10
|
-
"./*": "./*/index.ts"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"gen:all": "node generator.mjs --all",
|
|
14
|
-
"init-release": "publish --access public",
|
|
15
|
-
"release": "release-it"
|
|
16
|
-
},
|
|
17
|
-
"author": "",
|
|
18
|
-
"license": "ISC",
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"release-it": "^17.1.1"
|
|
21
|
-
},
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@apidevtools/swagger-parser": "^10.1.0",
|
|
24
|
-
"@hey-api/openapi-ts": "0.45.1",
|
|
25
|
-
"typescript": "^5.4.5"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@ayasofyazilim/saas",
|
|
3
|
+
"version": "0.0.68",
|
|
4
|
+
"description": "Ayasofyazılım SAAS",
|
|
5
|
+
"main": "generator.mjs",
|
|
6
|
+
"bin": {
|
|
7
|
+
"generate": "generator.mjs"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
"./*": "./*/index.ts"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"gen:all": "node generator.mjs --all",
|
|
14
|
+
"init-release": "publish --access public",
|
|
15
|
+
"release": "release-it"
|
|
16
|
+
},
|
|
17
|
+
"author": "",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"release-it": "^17.1.1"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@apidevtools/swagger-parser": "^10.1.0",
|
|
24
|
+
"@hey-api/openapi-ts": "0.45.1",
|
|
25
|
+
"typescript": "^5.4.5"
|
|
26
|
+
}
|
|
27
|
+
}
|