@ayasofyazilim/saas 0.0.66 → 0.0.67

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 (364) hide show
  1. package/.github/workflows/release.yaml +103 -0
  2. package/AccountService/models/Volo_Abp_Account_AccountExternalProviderSettingsDto.ts +9 -9
  3. package/AccountService/models/Volo_Abp_Account_AccountRecaptchaSettingsDto.ts +14 -14
  4. package/AccountService/models/Volo_Abp_Account_AccountSettingsDto.ts +9 -9
  5. package/AccountService/models/Volo_Abp_Account_AccountTwoFactorSettingsDto.ts +11 -11
  6. package/AccountService/models/Volo_Abp_Account_AuthenticatorInfoDto.ts +9 -9
  7. package/AccountService/models/Volo_Abp_Account_ChangePasswordInput.ts +9 -9
  8. package/AccountService/models/Volo_Abp_Account_ConfirmEmailInput.ts +9 -9
  9. package/AccountService/models/Volo_Abp_Account_ConfirmPhoneNumberInput.ts +9 -9
  10. package/AccountService/models/Volo_Abp_Account_DelegateNewUserInput.ts +10 -10
  11. package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderDto.ts +9 -9
  12. package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderItemDto.ts +11 -11
  13. package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderItemWithSecretDto.ts +13 -13
  14. package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettings.ts +12 -12
  15. package/AccountService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettingsProperty.ts +9 -9
  16. package/AccountService/models/Volo_Abp_Account_IdentityUserConfirmationStateDto.ts +9 -9
  17. package/AccountService/models/Volo_Abp_Account_IsLinkedInput.ts +9 -9
  18. package/AccountService/models/Volo_Abp_Account_LinkUserDto.ts +12 -12
  19. package/AccountService/models/Volo_Abp_Account_LinkUserInput.ts +10 -10
  20. package/AccountService/models/Volo_Abp_Account_ProfileDto.ts +20 -20
  21. package/AccountService/models/Volo_Abp_Account_ProfilePictureSourceDto.ts +11 -11
  22. package/AccountService/models/Volo_Abp_Account_ProfilePictureType.ts +9 -9
  23. package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_AbpLoginResult.ts +10 -10
  24. package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_LinkUserLoginInfo.ts +9 -9
  25. package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_LoginResultType.ts +12 -12
  26. package/AccountService/models/Volo_Abp_Account_Public_Web_Areas_Account_Controllers_Models_UserLoginInfo.ts +11 -11
  27. package/AccountService/models/Volo_Abp_Account_RegisterDto.ts +15 -15
  28. package/AccountService/models/Volo_Abp_Account_ResetPasswordDto.ts +10 -10
  29. package/AccountService/models/Volo_Abp_Account_SendEmailConfirmationTokenDto.ts +11 -11
  30. package/AccountService/models/Volo_Abp_Account_SendPasswordResetCodeDto.ts +11 -11
  31. package/AccountService/models/Volo_Abp_Account_SendPhoneNumberConfirmationTokenDto.ts +9 -9
  32. package/AccountService/models/Volo_Abp_Account_SendTwoFactorCodeInput.ts +10 -10
  33. package/AccountService/models/Volo_Abp_Account_UnLinkUserInput.ts +9 -9
  34. package/AccountService/models/Volo_Abp_Account_UpdateExternalProviderDto.ts +12 -12
  35. package/AccountService/models/Volo_Abp_Account_UpdateProfileDto.ts +15 -15
  36. package/AccountService/models/Volo_Abp_Account_UserDelegationDto.ts +11 -11
  37. package/AccountService/models/Volo_Abp_Account_UserLookupDto.ts +9 -9
  38. package/AccountService/models/Volo_Abp_Account_VerifyAuthenticatorCodeDto.ts +8 -8
  39. package/AccountService/models/Volo_Abp_Account_VerifyAuthenticatorCodeInput.ts +8 -8
  40. package/AccountService/models/Volo_Abp_Account_VerifyEmailConfirmationTokenInput.ts +9 -9
  41. package/AccountService/models/Volo_Abp_Account_VerifyLinkLoginTokenInput.ts +10 -10
  42. package/AccountService/models/Volo_Abp_Account_VerifyLinkTokenInput.ts +10 -10
  43. package/AccountService/models/Volo_Abp_Account_VerifyPasswordResetTokenInput.ts +9 -9
  44. package/AccountService/models/Volo_Abp_Application_Dtos_ListResultDto_1.ts +9 -9
  45. package/AccountService/models/Volo_Abp_Application_Dtos_PagedResultDto_1.ts +10 -10
  46. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto.ts +8 -8
  47. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationConfigurationDto.ts +30 -30
  48. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationFeatureConfigurationDto.ts +8 -8
  49. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationGlobalFeatureConfigurationDto.ts +8 -8
  50. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationConfigurationDto.ts +18 -18
  51. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto.ts +9 -9
  52. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationResourceDto.ts +9 -9
  53. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationSettingConfigurationDto.ts +8 -8
  54. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ClockDto.ts +8 -8
  55. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentCultureDto.ts +17 -17
  56. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentUserDto.ts +22 -22
  57. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_DateTimeFormatDto.ts +14 -14
  58. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_IanaTimeZone.ts +8 -8
  59. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_EntityExtensionDto.ts +10 -10
  60. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumDto.ts +10 -10
  61. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumFieldDto.ts +9 -9
  62. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiCreateDto.ts +8 -8
  63. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiDto.ts +13 -13
  64. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiGetDto.ts +8 -8
  65. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiUpdateDto.ts +8 -8
  66. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyAttributeDto.ts +9 -9
  67. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyDto.ts +19 -19
  68. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiDto.ts +14 -14
  69. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiFormDto.ts +8 -8
  70. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiLookupDto.ts +12 -12
  71. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiTableDto.ts +8 -8
  72. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_LocalizableStringDto.ts +9 -9
  73. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ModuleExtensionDto.ts +10 -10
  74. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ObjectExtensionsDto.ts +11 -11
  75. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimeZone.ts +11 -11
  76. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimingDto.ts +9 -9
  77. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_WindowsTimeZone.ts +8 -8
  78. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_CurrentTenantDto.ts +10 -10
  79. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_FindTenantResultDto.ts +11 -11
  80. package/AccountService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_MultiTenancyInfoDto.ts +8 -8
  81. package/AccountService/models/Volo_Abp_Http_Modeling_ActionApiDescriptionModel.ts +20 -20
  82. package/AccountService/models/Volo_Abp_Http_Modeling_ApplicationApiDescriptionModel.ts +11 -11
  83. package/AccountService/models/Volo_Abp_Http_Modeling_ControllerApiDescriptionModel.ts +17 -17
  84. package/AccountService/models/Volo_Abp_Http_Modeling_ControllerInterfaceApiDescriptionModel.ts +11 -11
  85. package/AccountService/models/Volo_Abp_Http_Modeling_InterfaceMethodApiDescriptionModel.ts +12 -12
  86. package/AccountService/models/Volo_Abp_Http_Modeling_MethodParameterApiDescriptionModel.ts +13 -13
  87. package/AccountService/models/Volo_Abp_Http_Modeling_ModuleApiDescriptionModel.ts +11 -11
  88. package/AccountService/models/Volo_Abp_Http_Modeling_ParameterApiDescriptionModel.ts +17 -17
  89. package/AccountService/models/Volo_Abp_Http_Modeling_PropertyApiDescriptionModel.ts +17 -17
  90. package/AccountService/models/Volo_Abp_Http_Modeling_ReturnValueApiDescriptionModel.ts +9 -9
  91. package/AccountService/models/Volo_Abp_Http_Modeling_TypeApiDescriptionModel.ts +14 -14
  92. package/AccountService/models/Volo_Abp_Http_RemoteServiceErrorInfo.ts +13 -13
  93. package/AccountService/models/Volo_Abp_Http_RemoteServiceErrorResponse.ts +9 -9
  94. package/AccountService/models/Volo_Abp_Http_RemoteServiceValidationErrorInfo.ts +9 -9
  95. package/AccountService/models/Volo_Abp_Identity_Features_IdentityProTwoFactorBehaviour.ts +9 -9
  96. package/AccountService/models/Volo_Abp_Identity_IdentitySecurityLogDto.ts +21 -21
  97. package/AccountService/models/Volo_Abp_Identity_IdentityUserDto.ts +35 -35
  98. package/AccountService/models/Volo_Abp_Localization_LanguageInfo.ts +12 -12
  99. package/AccountService/models/Volo_Abp_NameValue.ts +9 -9
  100. package/AccountService/services/AbpApiDefinitionService.ts +34 -34
  101. package/AccountService/services/AbpApplicationConfigurationService.ts +34 -34
  102. package/AccountService/services/AbpApplicationLocalizationService.ts +37 -37
  103. package/AccountService/services/AbpTenantService.ts +58 -58
  104. package/AccountService/services/AccountExternalProviderService.ts +56 -56
  105. package/AccountService/services/AccountService.ts +545 -545
  106. package/AccountService/services/AccountSettingsService.ts +178 -178
  107. package/AccountService/services/DynamicClaimsService.ts +27 -27
  108. package/AccountService/services/LoginService.ts +99 -99
  109. package/AccountService/services/ProfileService.ts +155 -155
  110. package/AccountService/services/UserService.ts +313 -313
  111. package/AdministrationService/models/System_Net_HttpStatusCode.ts +67 -67
  112. package/AdministrationService/models/Volo_Abp_Application_Dtos_ListResultDto_1.ts +9 -9
  113. package/AdministrationService/models/Volo_Abp_Application_Dtos_PagedResultDto_1.ts +10 -10
  114. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto.ts +8 -8
  115. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationConfigurationDto.ts +30 -30
  116. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationFeatureConfigurationDto.ts +8 -8
  117. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationGlobalFeatureConfigurationDto.ts +8 -8
  118. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationConfigurationDto.ts +18 -18
  119. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto.ts +9 -9
  120. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationResourceDto.ts +9 -9
  121. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationSettingConfigurationDto.ts +8 -8
  122. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ClockDto.ts +8 -8
  123. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentCultureDto.ts +17 -17
  124. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentUserDto.ts +22 -22
  125. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_DateTimeFormatDto.ts +14 -14
  126. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_IanaTimeZone.ts +8 -8
  127. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_EntityExtensionDto.ts +10 -10
  128. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumDto.ts +10 -10
  129. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumFieldDto.ts +9 -9
  130. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiCreateDto.ts +8 -8
  131. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiDto.ts +13 -13
  132. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiGetDto.ts +8 -8
  133. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiUpdateDto.ts +8 -8
  134. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyAttributeDto.ts +9 -9
  135. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyDto.ts +19 -19
  136. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiDto.ts +14 -14
  137. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiFormDto.ts +8 -8
  138. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiLookupDto.ts +12 -12
  139. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiTableDto.ts +8 -8
  140. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_LocalizableStringDto.ts +9 -9
  141. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ModuleExtensionDto.ts +10 -10
  142. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ObjectExtensionsDto.ts +11 -11
  143. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimeZone.ts +11 -11
  144. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimingDto.ts +9 -9
  145. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_WindowsTimeZone.ts +8 -8
  146. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_CurrentTenantDto.ts +10 -10
  147. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_FindTenantResultDto.ts +11 -11
  148. package/AdministrationService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_MultiTenancyInfoDto.ts +8 -8
  149. package/AdministrationService/models/Volo_Abp_AuditLogging_AuditLogActionDto.ts +16 -16
  150. package/AdministrationService/models/Volo_Abp_AuditLogging_AuditLogDto.ts +33 -33
  151. package/AdministrationService/models/Volo_Abp_AuditLogging_EntityChangeDto.ts +18 -18
  152. package/AdministrationService/models/Volo_Abp_AuditLogging_EntityChangeWithUsernameDto.ts +10 -10
  153. package/AdministrationService/models/Volo_Abp_AuditLogging_EntityPropertyChangeDto.ts +14 -14
  154. package/AdministrationService/models/Volo_Abp_AuditLogging_GetAverageExecutionDurationPerDayOutput.ts +8 -8
  155. package/AdministrationService/models/Volo_Abp_AuditLogging_GetErrorRateOutput.ts +8 -8
  156. package/AdministrationService/models/Volo_Abp_Auditing_EntityChangeType.ts +9 -9
  157. package/AdministrationService/models/Volo_Abp_FeatureManagement_FeatureDto.ts +17 -17
  158. package/AdministrationService/models/Volo_Abp_FeatureManagement_FeatureGroupDto.ts +11 -11
  159. package/AdministrationService/models/Volo_Abp_FeatureManagement_FeatureProviderDto.ts +9 -9
  160. package/AdministrationService/models/Volo_Abp_FeatureManagement_GetFeatureListResultDto.ts +9 -9
  161. package/AdministrationService/models/Volo_Abp_FeatureManagement_UpdateFeatureDto.ts +9 -9
  162. package/AdministrationService/models/Volo_Abp_FeatureManagement_UpdateFeaturesDto.ts +9 -9
  163. package/AdministrationService/models/Volo_Abp_Gdpr_DownloadTokenResultDto.ts +8 -8
  164. package/AdministrationService/models/Volo_Abp_Gdpr_GdprRequestDto.ts +10 -10
  165. package/AdministrationService/models/Volo_Abp_Http_Modeling_ActionApiDescriptionModel.ts +20 -20
  166. package/AdministrationService/models/Volo_Abp_Http_Modeling_ApplicationApiDescriptionModel.ts +11 -11
  167. package/AdministrationService/models/Volo_Abp_Http_Modeling_ControllerApiDescriptionModel.ts +17 -17
  168. package/AdministrationService/models/Volo_Abp_Http_Modeling_ControllerInterfaceApiDescriptionModel.ts +11 -11
  169. package/AdministrationService/models/Volo_Abp_Http_Modeling_InterfaceMethodApiDescriptionModel.ts +12 -12
  170. package/AdministrationService/models/Volo_Abp_Http_Modeling_MethodParameterApiDescriptionModel.ts +13 -13
  171. package/AdministrationService/models/Volo_Abp_Http_Modeling_ModuleApiDescriptionModel.ts +11 -11
  172. package/AdministrationService/models/Volo_Abp_Http_Modeling_ParameterApiDescriptionModel.ts +17 -17
  173. package/AdministrationService/models/Volo_Abp_Http_Modeling_PropertyApiDescriptionModel.ts +17 -17
  174. package/AdministrationService/models/Volo_Abp_Http_Modeling_ReturnValueApiDescriptionModel.ts +9 -9
  175. package/AdministrationService/models/Volo_Abp_Http_Modeling_TypeApiDescriptionModel.ts +14 -14
  176. package/AdministrationService/models/Volo_Abp_Http_RemoteServiceErrorInfo.ts +13 -13
  177. package/AdministrationService/models/Volo_Abp_Http_RemoteServiceErrorResponse.ts +9 -9
  178. package/AdministrationService/models/Volo_Abp_Http_RemoteServiceValidationErrorInfo.ts +9 -9
  179. package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_CreateLanguageDto.ts +13 -13
  180. package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_CultureInfoDto.ts +9 -9
  181. package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_LanguageDto.ts +18 -18
  182. package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_LanguageResourceDto.ts +8 -8
  183. package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_LanguageTextDto.ts +13 -13
  184. package/AdministrationService/models/Volo_Abp_LanguageManagement_Dto_UpdateLanguageDto.ts +12 -12
  185. package/AdministrationService/models/Volo_Abp_Localization_LanguageInfo.ts +12 -12
  186. package/AdministrationService/models/Volo_Abp_NameValue.ts +9 -9
  187. package/AdministrationService/models/Volo_Abp_PermissionManagement_GetPermissionListResultDto.ts +10 -10
  188. package/AdministrationService/models/Volo_Abp_PermissionManagement_PermissionGrantInfoDto.ts +14 -14
  189. package/AdministrationService/models/Volo_Abp_PermissionManagement_PermissionGroupDto.ts +13 -13
  190. package/AdministrationService/models/Volo_Abp_PermissionManagement_ProviderInfoDto.ts +9 -9
  191. package/AdministrationService/models/Volo_Abp_PermissionManagement_UpdatePermissionDto.ts +9 -9
  192. package/AdministrationService/models/Volo_Abp_PermissionManagement_UpdatePermissionsDto.ts +9 -9
  193. package/AdministrationService/models/Volo_Abp_SettingManagement_EmailSettingsDto.ts +16 -16
  194. package/AdministrationService/models/Volo_Abp_SettingManagement_SendTestEmailInput.ts +11 -11
  195. package/AdministrationService/models/Volo_Abp_SettingManagement_UpdateEmailSettingsDto.ts +16 -16
  196. package/AdministrationService/models/Volo_Abp_TextTemplateManagement_TextTemplates_RestoreTemplateContentInput.ts +9 -9
  197. package/AdministrationService/models/Volo_Abp_TextTemplateManagement_TextTemplates_TemplateDefinitionDto.ts +13 -13
  198. package/AdministrationService/models/Volo_Abp_TextTemplateManagement_TextTemplates_TextTemplateContentDto.ts +10 -10
  199. package/AdministrationService/models/Volo_Abp_TextTemplateManagement_TextTemplates_UpdateTemplateContentInput.ts +10 -10
  200. package/AdministrationService/models/Volo_Abp_Validation_StringValues_IStringValueType.ts +11 -11
  201. package/AdministrationService/models/Volo_Abp_Validation_StringValues_IValueValidator.ts +9 -9
  202. package/AdministrationService/services/AbpApiDefinitionService.ts +34 -34
  203. package/AdministrationService/services/AbpApplicationConfigurationService.ts +34 -34
  204. package/AdministrationService/services/AbpApplicationLocalizationService.ts +37 -37
  205. package/AdministrationService/services/AbpTenantService.ts +58 -58
  206. package/AdministrationService/services/AuditLogsService.ts +286 -286
  207. package/AdministrationService/services/EmailSettingsService.ts +76 -76
  208. package/AdministrationService/services/FeaturesService.ts +96 -96
  209. package/AdministrationService/services/GdprRequestService.ts +152 -152
  210. package/AdministrationService/services/LanguageTextsService.ts +157 -157
  211. package/AdministrationService/services/LanguagesService.ts +257 -257
  212. package/AdministrationService/services/PermissionsService.ts +69 -69
  213. package/AdministrationService/services/TextTemplateContentsService.ts +85 -85
  214. package/AdministrationService/services/TextTemplateDefinitionsService.ts +69 -69
  215. package/AdministrationService/services/TimeZoneSettingsService.ts +70 -70
  216. package/ContractService/ContractServiceClient.ts +50 -50
  217. package/ContractService/schemas.gen.ts +9808 -9808
  218. package/ContractService/services.gen.ts +1716 -1716
  219. package/ContractService/types.gen.ts +3755 -3755
  220. package/ExportValidationService/schemas.gen.ts +3998 -3998
  221. package/ExportValidationService/services.gen.ts +260 -260
  222. package/ExportValidationService/types.gen.ts +818 -818
  223. package/IdentityService/models/Volo_Abp_Account_AccountExternalProviderSettingsDto.ts +9 -9
  224. package/IdentityService/models/Volo_Abp_Account_AccountRecaptchaSettingsDto.ts +14 -14
  225. package/IdentityService/models/Volo_Abp_Account_AccountSettingsDto.ts +9 -9
  226. package/IdentityService/models/Volo_Abp_Account_AccountTwoFactorSettingsDto.ts +11 -11
  227. package/IdentityService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettings.ts +12 -12
  228. package/IdentityService/models/Volo_Abp_Account_ExternalProviders_ExternalProviderSettingsProperty.ts +9 -9
  229. package/IdentityService/models/Volo_Abp_Account_UpdateExternalProviderDto.ts +12 -12
  230. package/IdentityService/models/Volo_Abp_Application_Dtos_ListResultDto_1.ts +9 -9
  231. package/IdentityService/models/Volo_Abp_Application_Dtos_PagedResultDto_1.ts +10 -10
  232. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto.ts +8 -8
  233. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationConfigurationDto.ts +30 -30
  234. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationFeatureConfigurationDto.ts +8 -8
  235. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationGlobalFeatureConfigurationDto.ts +8 -8
  236. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationConfigurationDto.ts +18 -18
  237. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto.ts +9 -9
  238. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationResourceDto.ts +9 -9
  239. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationSettingConfigurationDto.ts +8 -8
  240. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ClockDto.ts +8 -8
  241. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentCultureDto.ts +17 -17
  242. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_CurrentUserDto.ts +22 -22
  243. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_DateTimeFormatDto.ts +14 -14
  244. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_IanaTimeZone.ts +8 -8
  245. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_EntityExtensionDto.ts +10 -10
  246. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumDto.ts +10 -10
  247. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionEnumFieldDto.ts +9 -9
  248. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiCreateDto.ts +8 -8
  249. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiDto.ts +13 -13
  250. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiGetDto.ts +8 -8
  251. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyApiUpdateDto.ts +8 -8
  252. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyAttributeDto.ts +9 -9
  253. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyDto.ts +19 -19
  254. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiDto.ts +14 -14
  255. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiFormDto.ts +8 -8
  256. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiLookupDto.ts +12 -12
  257. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ExtensionPropertyUiTableDto.ts +8 -8
  258. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_LocalizableStringDto.ts +9 -9
  259. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ModuleExtensionDto.ts +10 -10
  260. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ObjectExtending_ObjectExtensionsDto.ts +11 -11
  261. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimeZone.ts +11 -11
  262. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_TimingDto.ts +9 -9
  263. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_WindowsTimeZone.ts +8 -8
  264. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_CurrentTenantDto.ts +10 -10
  265. package/IdentityService/models/Volo_Abp_AspNetCore_Mvc_MultiTenancy_MultiTenancyInfoDto.ts +8 -8
  266. package/IdentityService/models/Volo_Abp_Http_Modeling_ActionApiDescriptionModel.ts +20 -20
  267. package/IdentityService/models/Volo_Abp_Http_Modeling_ApplicationApiDescriptionModel.ts +11 -11
  268. package/IdentityService/models/Volo_Abp_Http_Modeling_ControllerApiDescriptionModel.ts +17 -17
  269. package/IdentityService/models/Volo_Abp_Http_Modeling_ControllerInterfaceApiDescriptionModel.ts +11 -11
  270. package/IdentityService/models/Volo_Abp_Http_Modeling_InterfaceMethodApiDescriptionModel.ts +12 -12
  271. package/IdentityService/models/Volo_Abp_Http_Modeling_MethodParameterApiDescriptionModel.ts +13 -13
  272. package/IdentityService/models/Volo_Abp_Http_Modeling_ModuleApiDescriptionModel.ts +11 -11
  273. package/IdentityService/models/Volo_Abp_Http_Modeling_ParameterApiDescriptionModel.ts +17 -17
  274. package/IdentityService/models/Volo_Abp_Http_Modeling_PropertyApiDescriptionModel.ts +17 -17
  275. package/IdentityService/models/Volo_Abp_Http_Modeling_ReturnValueApiDescriptionModel.ts +9 -9
  276. package/IdentityService/models/Volo_Abp_Http_Modeling_TypeApiDescriptionModel.ts +14 -14
  277. package/IdentityService/models/Volo_Abp_Http_RemoteServiceErrorInfo.ts +13 -13
  278. package/IdentityService/models/Volo_Abp_Http_RemoteServiceErrorResponse.ts +9 -9
  279. package/IdentityService/models/Volo_Abp_Http_RemoteServiceValidationErrorInfo.ts +9 -9
  280. package/IdentityService/models/Volo_Abp_Identity_ClaimTypeDto.ts +19 -19
  281. package/IdentityService/models/Volo_Abp_Identity_CreateClaimTypeDto.ts +15 -15
  282. package/IdentityService/models/Volo_Abp_Identity_DownloadTokenResultDto.ts +8 -8
  283. package/IdentityService/models/Volo_Abp_Identity_ExternalLoginProviderDto.ts +9 -9
  284. package/IdentityService/models/Volo_Abp_Identity_Features_IdentityProTwoFactorBehaviour.ts +9 -9
  285. package/IdentityService/models/Volo_Abp_Identity_IdentityClaimValueType.ts +10 -10
  286. package/IdentityService/models/Volo_Abp_Identity_IdentityLdapSettingsDto.ts +15 -15
  287. package/IdentityService/models/Volo_Abp_Identity_IdentityLockoutSettingsDto.ts +10 -10
  288. package/IdentityService/models/Volo_Abp_Identity_IdentityOAuthSettingsDto.ts +15 -15
  289. package/IdentityService/models/Volo_Abp_Identity_IdentityPasswordSettingsDto.ts +15 -15
  290. package/IdentityService/models/Volo_Abp_Identity_IdentityRoleClaimDto.ts +10 -10
  291. package/IdentityService/models/Volo_Abp_Identity_IdentityRoleCreateDto.ts +11 -11
  292. package/IdentityService/models/Volo_Abp_Identity_IdentityRoleDto.ts +15 -15
  293. package/IdentityService/models/Volo_Abp_Identity_IdentityRoleLookupDto.ts +9 -9
  294. package/IdentityService/models/Volo_Abp_Identity_IdentityRoleUpdateDto.ts +12 -12
  295. package/IdentityService/models/Volo_Abp_Identity_IdentitySecurityLogDto.ts +21 -21
  296. package/IdentityService/models/Volo_Abp_Identity_IdentitySettingsDto.ts +15 -15
  297. package/IdentityService/models/Volo_Abp_Identity_IdentitySignInSettingsDto.ts +10 -10
  298. package/IdentityService/models/Volo_Abp_Identity_IdentityUserClaimDto.ts +10 -10
  299. package/IdentityService/models/Volo_Abp_Identity_IdentityUserCreateDto.ts +20 -20
  300. package/IdentityService/models/Volo_Abp_Identity_IdentityUserDto.ts +35 -35
  301. package/IdentityService/models/Volo_Abp_Identity_IdentityUserSettingsDto.ts +9 -9
  302. package/IdentityService/models/Volo_Abp_Identity_IdentityUserUpdateDto.ts +19 -19
  303. package/IdentityService/models/Volo_Abp_Identity_IdentityUserUpdatePasswordInput.ts +8 -8
  304. package/IdentityService/models/Volo_Abp_Identity_IdentityUserUpdateRolesDto.ts +8 -8
  305. package/IdentityService/models/Volo_Abp_Identity_ImportExternalUserInput.ts +10 -10
  306. package/IdentityService/models/Volo_Abp_Identity_ImportUsersFromFileOutput.ts +12 -12
  307. package/IdentityService/models/Volo_Abp_Identity_ImportUsersFromFileType.ts +8 -8
  308. package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitCreateDto.ts +10 -10
  309. package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitDto.ts +21 -21
  310. package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitLookupDto.ts +9 -9
  311. package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitMoveInput.ts +8 -8
  312. package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitRoleDto.ts +11 -11
  313. package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitRoleInput.ts +8 -8
  314. package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitUpdateDto.ts +10 -10
  315. package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitUserInput.ts +8 -8
  316. package/IdentityService/models/Volo_Abp_Identity_OrganizationUnitWithDetailsDto.ts +23 -23
  317. package/IdentityService/models/Volo_Abp_Identity_UpdateClaimTypeDto.ts +16 -16
  318. package/IdentityService/models/Volo_Abp_Localization_LanguageInfo.ts +12 -12
  319. package/IdentityService/models/Volo_Abp_NameValue.ts +9 -9
  320. package/IdentityService/models/Volo_Abp_OpenIddict_Applications_Dtos_ApplicationDto.ts +29 -29
  321. package/IdentityService/models/Volo_Abp_OpenIddict_Applications_Dtos_ApplicationTokenLifetimeDto.ts +13 -13
  322. package/IdentityService/models/Volo_Abp_OpenIddict_Applications_Dtos_CreateApplicationInput.ts +28 -28
  323. package/IdentityService/models/Volo_Abp_OpenIddict_Applications_Dtos_UpdateApplicationInput.ts +28 -28
  324. package/IdentityService/models/Volo_Abp_OpenIddict_Scopes_Dtos_CreateScopeInput.ts +12 -12
  325. package/IdentityService/models/Volo_Abp_OpenIddict_Scopes_Dtos_ScopeDto.ts +14 -14
  326. package/IdentityService/models/Volo_Abp_OpenIddict_Scopes_Dtos_UpdateScopeInput.ts +12 -12
  327. package/IdentityService/models/Volo_Abp_Users_UserData.ts +18 -18
  328. package/IdentityService/services/AbpApiDefinitionService.ts +34 -34
  329. package/IdentityService/services/AbpApplicationConfigurationService.ts +34 -34
  330. package/IdentityService/services/AbpApplicationLocalizationService.ts +37 -37
  331. package/IdentityService/services/AccountSettingsService.ts +178 -178
  332. package/IdentityService/services/ApplicationsService.ts +199 -199
  333. package/IdentityService/services/ClaimTypeService.ts +149 -149
  334. package/IdentityService/services/ExternalLoginService.ts +27 -27
  335. package/IdentityService/services/OrganizationUnitService.ts +539 -539
  336. package/IdentityService/services/RoleService.ts +269 -269
  337. package/IdentityService/services/ScopesService.ts +164 -164
  338. package/IdentityService/services/SecurityLogService.ts +174 -174
  339. package/IdentityService/services/SettingsService.ts +135 -135
  340. package/IdentityService/services/UserIntegrationService.ts +144 -144
  341. package/IdentityService/services/UserLookupService.ts +120 -120
  342. package/IdentityService/services/UserService.ts +937 -937
  343. package/MerchantService/schemas.gen.ts +14764 -14764
  344. package/MerchantService/services.gen.ts +1602 -1602
  345. package/MerchantService/types.gen.ts +18875 -18875
  346. package/ProjectService.json +2937 -2937
  347. package/README.md +13 -13
  348. package/SaasService/schemas.gen.ts +5345 -5345
  349. package/SaasService/services.gen.ts +1329 -1329
  350. package/SaasService/types.gen.ts +2737 -2737
  351. package/SettingService/SettingServiceClient.ts +62 -62
  352. package/SettingService/schemas.gen.ts +5410 -5410
  353. package/SettingService/services.gen.ts +890 -890
  354. package/SettingService/types.gen.ts +2052 -2052
  355. package/TagService/schemas.gen.ts +5109 -5014
  356. package/TagService/services.gen.ts +361 -310
  357. package/TagService/types.gen.ts +1088 -990
  358. package/TravellerService/schemas.gen.ts +6274 -6274
  359. package/TravellerService/services.gen.ts +713 -713
  360. package/TravellerService/types.gen.ts +1835 -1835
  361. package/generator.mjs +198 -198
  362. package/index.ts +2 -2
  363. package/package.json +27 -27
  364. 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.66",
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.67",
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
+ }