@webiny/cognito 0.0.0-unstable.0d717d18dd
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/Cognito.d.ts +55 -0
- package/Cognito.js +102 -0
- package/Cognito.js.map +1 -0
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/admin/Cognito.d.ts +8 -0
- package/admin/Cognito.js +50 -0
- package/admin/Cognito.js.map +1 -0
- package/admin/CognitoLogin.d.ts +7 -0
- package/admin/CognitoLogin.js +13 -0
- package/admin/CognitoLogin.js.map +1 -0
- package/admin/DefaultCognitoSignInConfig.d.ts +23 -0
- package/admin/DefaultCognitoSignInConfig.js +51 -0
- package/admin/DefaultCognitoSignInConfig.js.map +1 -0
- package/admin/Extension.d.ts +2 -0
- package/admin/Extension.js +45 -0
- package/admin/Extension.js.map +1 -0
- package/admin/SecurityPermission.d.ts +2 -0
- package/admin/SecurityPermission.js +15 -0
- package/admin/SecurityPermission.js.map +1 -0
- package/admin/SignInExtension.d.ts +2 -0
- package/admin/SignInExtension.js +9 -0
- package/admin/SignInExtension.js.map +1 -0
- package/admin/domain/permissionsSchema.d.ts +10 -0
- package/admin/domain/permissionsSchema.js +18 -0
- package/admin/domain/permissionsSchema.js.map +1 -0
- package/admin/features/account/getCurrentUser/GetCurrentUserGateway.d.ts +11 -0
- package/admin/features/account/getCurrentUser/GetCurrentUserGateway.js +44 -0
- package/admin/features/account/getCurrentUser/GetCurrentUserGateway.js.map +1 -0
- package/admin/features/account/getCurrentUser/GetCurrentUserUseCase.d.ts +10 -0
- package/admin/features/account/getCurrentUser/GetCurrentUserUseCase.js +19 -0
- package/admin/features/account/getCurrentUser/GetCurrentUserUseCase.js.map +1 -0
- package/admin/features/account/getCurrentUser/abstractions/GetCurrentUserGateway.d.ts +16 -0
- package/admin/features/account/getCurrentUser/abstractions/GetCurrentUserGateway.js +5 -0
- package/admin/features/account/getCurrentUser/abstractions/GetCurrentUserGateway.js.map +1 -0
- package/admin/features/account/getCurrentUser/abstractions/GetCurrentUserUseCase.d.ts +10 -0
- package/admin/features/account/getCurrentUser/abstractions/GetCurrentUserUseCase.js +5 -0
- package/admin/features/account/getCurrentUser/abstractions/GetCurrentUserUseCase.js.map +1 -0
- package/admin/features/account/getCurrentUser/abstractions/index.d.ts +6 -0
- package/admin/features/account/getCurrentUser/abstractions/index.js +2 -0
- package/admin/features/account/getCurrentUser/feature.d.ts +3 -0
- package/admin/features/account/getCurrentUser/feature.js +19 -0
- package/admin/features/account/getCurrentUser/feature.js.map +1 -0
- package/admin/features/account/getCurrentUser/index.d.ts +1 -0
- package/admin/features/account/getCurrentUser/index.js +1 -0
- package/admin/features/account/updateCurrentUser/UpdateCurrentUserGateway.d.ts +11 -0
- package/admin/features/account/updateCurrentUser/UpdateCurrentUserGateway.js +48 -0
- package/admin/features/account/updateCurrentUser/UpdateCurrentUserGateway.js.map +1 -0
- package/admin/features/account/updateCurrentUser/UpdateCurrentUserUseCase.d.ts +10 -0
- package/admin/features/account/updateCurrentUser/UpdateCurrentUserUseCase.js +19 -0
- package/admin/features/account/updateCurrentUser/UpdateCurrentUserUseCase.js.map +1 -0
- package/admin/features/account/updateCurrentUser/abstractions/UpdateCurrentUserGateway.d.ts +26 -0
- package/admin/features/account/updateCurrentUser/abstractions/UpdateCurrentUserGateway.js +5 -0
- package/admin/features/account/updateCurrentUser/abstractions/UpdateCurrentUserGateway.js.map +1 -0
- package/admin/features/account/updateCurrentUser/abstractions/UpdateCurrentUserUseCase.d.ts +13 -0
- package/admin/features/account/updateCurrentUser/abstractions/UpdateCurrentUserUseCase.js +5 -0
- package/admin/features/account/updateCurrentUser/abstractions/UpdateCurrentUserUseCase.js.map +1 -0
- package/admin/features/account/updateCurrentUser/abstractions/index.d.ts +8 -0
- package/admin/features/account/updateCurrentUser/abstractions/index.js +2 -0
- package/admin/features/account/updateCurrentUser/feature.d.ts +3 -0
- package/admin/features/account/updateCurrentUser/feature.js +19 -0
- package/admin/features/account/updateCurrentUser/feature.js.map +1 -0
- package/admin/features/account/updateCurrentUser/index.d.ts +1 -0
- package/admin/features/account/updateCurrentUser/index.js +1 -0
- package/admin/features/permissions/abstractions.d.ts +17 -0
- package/admin/features/permissions/abstractions.js +6 -0
- package/admin/features/permissions/abstractions.js.map +1 -0
- package/admin/features/permissions/feature.d.ts +14 -0
- package/admin/features/permissions/feature.js +7 -0
- package/admin/features/permissions/feature.js.map +1 -0
- package/admin/features/users/createUser/CreateUserGateway.d.ts +11 -0
- package/admin/features/users/createUser/CreateUserGateway.js +49 -0
- package/admin/features/users/createUser/CreateUserGateway.js.map +1 -0
- package/admin/features/users/createUser/CreateUserUseCase.d.ts +10 -0
- package/admin/features/users/createUser/CreateUserUseCase.js +18 -0
- package/admin/features/users/createUser/CreateUserUseCase.js.map +1 -0
- package/admin/features/users/createUser/abstractions/CreateUserGateway.d.ts +21 -0
- package/admin/features/users/createUser/abstractions/CreateUserGateway.js +5 -0
- package/admin/features/users/createUser/abstractions/CreateUserGateway.js.map +1 -0
- package/admin/features/users/createUser/abstractions/CreateUserUseCase.d.ts +14 -0
- package/admin/features/users/createUser/abstractions/CreateUserUseCase.js +5 -0
- package/admin/features/users/createUser/abstractions/CreateUserUseCase.js.map +1 -0
- package/admin/features/users/createUser/abstractions/index.d.ts +2 -0
- package/admin/features/users/createUser/abstractions/index.js +2 -0
- package/admin/features/users/createUser/feature.d.ts +3 -0
- package/admin/features/users/createUser/feature.js +19 -0
- package/admin/features/users/createUser/feature.js.map +1 -0
- package/admin/features/users/createUser/index.d.ts +2 -0
- package/admin/features/users/createUser/index.js +2 -0
- package/admin/features/users/deleteUser/DeleteUserGateway.d.ts +11 -0
- package/admin/features/users/deleteUser/DeleteUserGateway.js +40 -0
- package/admin/features/users/deleteUser/DeleteUserGateway.js.map +1 -0
- package/admin/features/users/deleteUser/DeleteUserUseCase.d.ts +10 -0
- package/admin/features/users/deleteUser/DeleteUserUseCase.js +18 -0
- package/admin/features/users/deleteUser/DeleteUserUseCase.js.map +1 -0
- package/admin/features/users/deleteUser/abstractions/DeleteUserGateway.d.ts +11 -0
- package/admin/features/users/deleteUser/abstractions/DeleteUserGateway.js +5 -0
- package/admin/features/users/deleteUser/abstractions/DeleteUserGateway.js.map +1 -0
- package/admin/features/users/deleteUser/abstractions/DeleteUserUseCase.d.ts +11 -0
- package/admin/features/users/deleteUser/abstractions/DeleteUserUseCase.js +5 -0
- package/admin/features/users/deleteUser/abstractions/DeleteUserUseCase.js.map +1 -0
- package/admin/features/users/deleteUser/abstractions/index.d.ts +2 -0
- package/admin/features/users/deleteUser/abstractions/index.js +2 -0
- package/admin/features/users/deleteUser/feature.d.ts +3 -0
- package/admin/features/users/deleteUser/feature.js +19 -0
- package/admin/features/users/deleteUser/feature.js.map +1 -0
- package/admin/features/users/deleteUser/index.d.ts +2 -0
- package/admin/features/users/deleteUser/index.js +2 -0
- package/admin/features/users/getUser/GetUserGateway.d.ts +11 -0
- package/admin/features/users/getUser/GetUserGateway.js +57 -0
- package/admin/features/users/getUser/GetUserGateway.js.map +1 -0
- package/admin/features/users/getUser/GetUserUseCase.d.ts +10 -0
- package/admin/features/users/getUser/GetUserUseCase.js +18 -0
- package/admin/features/users/getUser/GetUserUseCase.js.map +1 -0
- package/admin/features/users/getUser/abstractions/GetUserGateway.d.ts +32 -0
- package/admin/features/users/getUser/abstractions/GetUserGateway.js +5 -0
- package/admin/features/users/getUser/abstractions/GetUserGateway.js.map +1 -0
- package/admin/features/users/getUser/abstractions/GetUserUseCase.d.ts +14 -0
- package/admin/features/users/getUser/abstractions/GetUserUseCase.js +5 -0
- package/admin/features/users/getUser/abstractions/GetUserUseCase.js.map +1 -0
- package/admin/features/users/getUser/abstractions/index.d.ts +2 -0
- package/admin/features/users/getUser/abstractions/index.js +2 -0
- package/admin/features/users/getUser/feature.d.ts +3 -0
- package/admin/features/users/getUser/feature.js +19 -0
- package/admin/features/users/getUser/feature.js.map +1 -0
- package/admin/features/users/getUser/index.d.ts +2 -0
- package/admin/features/users/getUser/index.js +2 -0
- package/admin/features/users/listUsers/ListUsersGateway.d.ts +11 -0
- package/admin/features/users/listUsers/ListUsersGateway.js +39 -0
- package/admin/features/users/listUsers/ListUsersGateway.js.map +1 -0
- package/admin/features/users/listUsers/ListUsersUseCase.d.ts +10 -0
- package/admin/features/users/listUsers/ListUsersUseCase.js +18 -0
- package/admin/features/users/listUsers/ListUsersUseCase.js.map +1 -0
- package/admin/features/users/listUsers/abstractions/ListUsersGateway.d.ts +17 -0
- package/admin/features/users/listUsers/abstractions/ListUsersGateway.js +5 -0
- package/admin/features/users/listUsers/abstractions/ListUsersGateway.js.map +1 -0
- package/admin/features/users/listUsers/abstractions/ListUsersUseCase.d.ts +10 -0
- package/admin/features/users/listUsers/abstractions/ListUsersUseCase.js +5 -0
- package/admin/features/users/listUsers/abstractions/ListUsersUseCase.js.map +1 -0
- package/admin/features/users/listUsers/abstractions/index.d.ts +2 -0
- package/admin/features/users/listUsers/abstractions/index.js +2 -0
- package/admin/features/users/listUsers/feature.d.ts +3 -0
- package/admin/features/users/listUsers/feature.js +19 -0
- package/admin/features/users/listUsers/feature.js.map +1 -0
- package/admin/features/users/listUsers/index.d.ts +2 -0
- package/admin/features/users/listUsers/index.js +2 -0
- package/admin/features/users/updateUser/UpdateUserGateway.d.ts +11 -0
- package/admin/features/users/updateUser/UpdateUserGateway.js +59 -0
- package/admin/features/users/updateUser/UpdateUserGateway.js.map +1 -0
- package/admin/features/users/updateUser/UpdateUserUseCase.d.ts +10 -0
- package/admin/features/users/updateUser/UpdateUserUseCase.js +18 -0
- package/admin/features/users/updateUser/UpdateUserUseCase.js.map +1 -0
- package/admin/features/users/updateUser/abstractions/UpdateUserGateway.d.ts +33 -0
- package/admin/features/users/updateUser/abstractions/UpdateUserGateway.js +5 -0
- package/admin/features/users/updateUser/abstractions/UpdateUserGateway.js.map +1 -0
- package/admin/features/users/updateUser/abstractions/UpdateUserUseCase.d.ts +15 -0
- package/admin/features/users/updateUser/abstractions/UpdateUserUseCase.js +5 -0
- package/admin/features/users/updateUser/abstractions/UpdateUserUseCase.js.map +1 -0
- package/admin/features/users/updateUser/abstractions/index.d.ts +2 -0
- package/admin/features/users/updateUser/abstractions/index.js +2 -0
- package/admin/features/users/updateUser/feature.d.ts +3 -0
- package/admin/features/users/updateUser/feature.js +19 -0
- package/admin/features/users/updateUser/feature.js.map +1 -0
- package/admin/features/users/updateUser/index.d.ts +2 -0
- package/admin/features/users/updateUser/index.js +2 -0
- package/admin/federatedIdentityProviders.d.ts +9 -0
- package/admin/federatedIdentityProviders.js +10 -0
- package/admin/federatedIdentityProviders.js.map +1 -0
- package/admin/index.d.ts +2 -0
- package/admin/index.js +2 -0
- package/admin/presentation/Cognito/CognitoLoginScreen.d.ts +10 -0
- package/admin/presentation/Cognito/CognitoLoginScreen.js +60 -0
- package/admin/presentation/Cognito/CognitoLoginScreen.js.map +1 -0
- package/admin/presentation/Cognito/CognitoPresenter.d.ts +81 -0
- package/admin/presentation/Cognito/CognitoPresenter.js +386 -0
- package/admin/presentation/Cognito/CognitoPresenter.js.map +1 -0
- package/admin/presentation/Cognito/CognitoSignInConfig.d.ts +31 -0
- package/admin/presentation/Cognito/CognitoSignInConfig.js +5 -0
- package/admin/presentation/Cognito/CognitoSignInConfig.js.map +1 -0
- package/admin/presentation/Cognito/abstractions.d.ts +91 -0
- package/admin/presentation/Cognito/abstractions.js +5 -0
- package/admin/presentation/Cognito/abstractions.js.map +1 -0
- package/admin/presentation/Cognito/components/ConfirmTotpCode.d.ts +26 -0
- package/admin/presentation/Cognito/components/ConfirmTotpCode.js +45 -0
- package/admin/presentation/Cognito/components/ConfirmTotpCode.js.map +1 -0
- package/admin/presentation/Cognito/components/Divider.d.ts +20 -0
- package/admin/presentation/Cognito/components/Divider.js +16 -0
- package/admin/presentation/Cognito/components/Divider.js.map +1 -0
- package/admin/presentation/Cognito/components/FederatedLogin.d.ts +24 -0
- package/admin/presentation/Cognito/components/FederatedLogin.js +43 -0
- package/admin/presentation/Cognito/components/FederatedLogin.js.map +1 -0
- package/admin/presentation/Cognito/components/FederatedProviders.d.ts +44 -0
- package/admin/presentation/Cognito/components/FederatedProviders.js +11 -0
- package/admin/presentation/Cognito/components/FederatedProviders.js.map +1 -0
- package/admin/presentation/Cognito/components/FooterSignIn.d.ts +23 -0
- package/admin/presentation/Cognito/components/FooterSignIn.js +13 -0
- package/admin/presentation/Cognito/components/FooterSignIn.js.map +1 -0
- package/admin/presentation/Cognito/components/PasswordResetCodeSent.d.ts +27 -0
- package/admin/presentation/Cognito/components/PasswordResetCodeSent.js +40 -0
- package/admin/presentation/Cognito/components/PasswordResetCodeSent.js.map +1 -0
- package/admin/presentation/Cognito/components/RequestPasswordResetCode.d.ts +26 -0
- package/admin/presentation/Cognito/components/RequestPasswordResetCode.js +42 -0
- package/admin/presentation/Cognito/components/RequestPasswordResetCode.js.map +1 -0
- package/admin/presentation/Cognito/components/RequireNewPassword.d.ts +26 -0
- package/admin/presentation/Cognito/components/RequireNewPassword.js +52 -0
- package/admin/presentation/Cognito/components/RequireNewPassword.js.map +1 -0
- package/admin/presentation/Cognito/components/SetNewPassword.d.ts +26 -0
- package/admin/presentation/Cognito/components/SetNewPassword.js +79 -0
- package/admin/presentation/Cognito/components/SetNewPassword.js.map +1 -0
- package/admin/presentation/Cognito/components/SetupTotp.d.ts +25 -0
- package/admin/presentation/Cognito/components/SetupTotp.js +60 -0
- package/admin/presentation/Cognito/components/SetupTotp.js.map +1 -0
- package/admin/presentation/Cognito/components/SignIn.d.ts +26 -0
- package/admin/presentation/Cognito/components/SignIn.js +64 -0
- package/admin/presentation/Cognito/components/SignIn.js.map +1 -0
- package/admin/presentation/Cognito/components/View.d.ts +98 -0
- package/admin/presentation/Cognito/components/View.js +48 -0
- package/admin/presentation/Cognito/components/View.js.map +1 -0
- package/admin/presentation/Cognito/components/index.d.ts +292 -0
- package/admin/presentation/Cognito/components/index.js +29 -0
- package/admin/presentation/Cognito/components/index.js.map +1 -0
- package/admin/presentation/Cognito/feature.d.ts +3 -0
- package/admin/presentation/Cognito/feature.js +17 -0
- package/admin/presentation/Cognito/feature.js.map +1 -0
- package/admin/presentation/Cognito/signInFeature.d.ts +1 -0
- package/admin/presentation/Cognito/signInFeature.js +11 -0
- package/admin/presentation/Cognito/signInFeature.js.map +1 -0
- package/admin/presentation/shared/createPasswordValidator.d.ts +8 -0
- package/admin/presentation/shared/createPasswordValidator.js +16 -0
- package/admin/presentation/shared/createPasswordValidator.js.map +1 -0
- package/admin/presentation/shared/usePasswordValidator.d.ts +1 -0
- package/admin/presentation/shared/usePasswordValidator.js +16 -0
- package/admin/presentation/shared/usePasswordValidator.js.map +1 -0
- package/admin/presentation/userMenu/AccountDetails.d.ts +6 -0
- package/admin/presentation/userMenu/AccountDetails.js +20 -0
- package/admin/presentation/userMenu/AccountDetails.js.map +1 -0
- package/admin/presentation/userMenu/useIsDefaultTenant.d.ts +1 -0
- package/admin/presentation/userMenu/useIsDefaultTenant.js +9 -0
- package/admin/presentation/userMenu/useIsDefaultTenant.js.map +1 -0
- package/admin/routes.d.ts +10 -0
- package/admin/routes.js +20 -0
- package/admin/routes.js.map +1 -0
- package/admin/ui/UserItem.d.ts +10 -0
- package/admin/ui/UserItem.js +0 -0
- package/admin/ui/components/AvatarImage/AvatarImage.d.ts +3 -0
- package/admin/ui/components/AvatarImage/AvatarImage.js +31 -0
- package/admin/ui/components/AvatarImage/AvatarImage.js.map +1 -0
- package/admin/ui/components/AvatarImage/AvatarImagePreview.d.ts +10 -0
- package/admin/ui/components/AvatarImage/AvatarImagePreview.js +53 -0
- package/admin/ui/components/AvatarImage/AvatarImagePreview.js.map +1 -0
- package/admin/ui/components/AvatarImage/AvatarImageTrigger.d.ts +7 -0
- package/admin/ui/components/AvatarImage/AvatarImageTrigger.js +28 -0
- package/admin/ui/components/AvatarImage/AvatarImageTrigger.js.map +1 -0
- package/admin/ui/components/AvatarImage/index.d.ts +1 -0
- package/admin/ui/components/AvatarImage/index.js +1 -0
- package/admin/ui/views/Account/Account.d.ts +2 -0
- package/admin/ui/views/Account/Account.js +137 -0
- package/admin/ui/views/Account/Account.js.map +1 -0
- package/admin/ui/views/Account/index.d.ts +1 -0
- package/admin/ui/views/Account/index.js +1 -0
- package/admin/ui/views/Users/UsersDataList.d.ts +3 -0
- package/admin/ui/views/Users/UsersDataList.js +177 -0
- package/admin/ui/views/Users/UsersDataList.js.map +1 -0
- package/admin/ui/views/Users/UsersForm.d.ts +5 -0
- package/admin/ui/views/Users/UsersForm.js +169 -0
- package/admin/ui/views/Users/UsersForm.js.map +1 -0
- package/admin/ui/views/Users/UsersView.d.ts +2 -0
- package/admin/ui/views/Users/UsersView.js +14 -0
- package/admin/ui/views/Users/UsersView.js.map +1 -0
- package/admin/ui/views/Users/components/DeleteAction.d.ts +7 -0
- package/admin/ui/views/Users/components/DeleteAction.js +29 -0
- package/admin/ui/views/Users/components/DeleteAction.js.map +1 -0
- package/admin/ui/views/Users/hooks/useUserForm.d.ts +27 -0
- package/admin/ui/views/Users/hooks/useUserForm.js +101 -0
- package/admin/ui/views/Users/hooks/useUserForm.js.map +1 -0
- package/admin/ui/views/Users/search.js +21 -0
- package/admin/ui/views/Users/search.js.map +1 -0
- package/admin/ui/views/Users/search.svg +20 -0
- package/admin/ui/views/utils.d.ts +3 -0
- package/admin/ui/views/utils.js +12 -0
- package/admin/ui/views/utils.js.map +1 -0
- package/api/CognitoApiFeature.d.ts +4 -0
- package/api/CognitoApiFeature.js +26 -0
- package/api/CognitoApiFeature.js.map +1 -0
- package/api/domain/Username.d.ts +4 -0
- package/api/domain/Username.js +8 -0
- package/api/domain/Username.js.map +1 -0
- package/api/domain/errors.d.ts +37 -0
- package/api/domain/errors.js +44 -0
- package/api/domain/errors.js.map +1 -0
- package/api/features/CognitoIdp/CognitoIdentityProvider.d.ts +15 -0
- package/api/features/CognitoIdp/CognitoIdentityProvider.js +63 -0
- package/api/features/CognitoIdp/CognitoIdentityProvider.js.map +1 -0
- package/api/features/CognitoIdp/abstractions.d.ts +15 -0
- package/api/features/CognitoIdp/abstractions.js +5 -0
- package/api/features/CognitoIdp/abstractions.js.map +1 -0
- package/api/features/CognitoIdp/feature.d.ts +4 -0
- package/api/features/CognitoIdp/feature.js +11 -0
- package/api/features/CognitoIdp/feature.js.map +1 -0
- package/api/features/CognitoIdp/index.d.ts +2 -0
- package/api/features/CognitoIdp/index.js +2 -0
- package/api/features/CognitoService/CognitoService.d.ts +20 -0
- package/api/features/CognitoService/CognitoService.js +100 -0
- package/api/features/CognitoService/CognitoService.js.map +1 -0
- package/api/features/CognitoService/abstractions.d.ts +54 -0
- package/api/features/CognitoService/abstractions.js +6 -0
- package/api/features/CognitoService/abstractions.js.map +1 -0
- package/api/features/CognitoService/feature.d.ts +8 -0
- package/api/features/CognitoService/feature.js +13 -0
- package/api/features/CognitoService/feature.js.map +1 -0
- package/api/features/CognitoService/index.d.ts +1 -0
- package/api/features/CognitoService/index.js +1 -0
- package/api/features/CreateUser/CreateUserUseCase.d.ts +22 -0
- package/api/features/CreateUser/CreateUserUseCase.js +80 -0
- package/api/features/CreateUser/CreateUserUseCase.js.map +1 -0
- package/api/features/CreateUser/abstractions.d.ts +35 -0
- package/api/features/CreateUser/abstractions.js +5 -0
- package/api/features/CreateUser/abstractions.js.map +1 -0
- package/api/features/CreateUser/feature.d.ts +4 -0
- package/api/features/CreateUser/feature.js +11 -0
- package/api/features/CreateUser/feature.js.map +1 -0
- package/api/features/CreateUser/index.d.ts +2 -0
- package/api/features/CreateUser/index.js +2 -0
- package/api/features/CreateUser/schema.d.ts +15 -0
- package/api/features/CreateUser/schema.js +18 -0
- package/api/features/CreateUser/schema.js.map +1 -0
- package/api/features/DeleteUser/DeleteUserUseCase.d.ts +16 -0
- package/api/features/DeleteUser/DeleteUserUseCase.js +47 -0
- package/api/features/DeleteUser/DeleteUserUseCase.js.map +1 -0
- package/api/features/DeleteUser/abstractions.d.ts +19 -0
- package/api/features/DeleteUser/abstractions.js +5 -0
- package/api/features/DeleteUser/abstractions.js.map +1 -0
- package/api/features/DeleteUser/feature.d.ts +4 -0
- package/api/features/DeleteUser/feature.js +11 -0
- package/api/features/DeleteUser/feature.js.map +1 -0
- package/api/features/DeleteUser/index.d.ts +2 -0
- package/api/features/DeleteUser/index.js +2 -0
- package/api/features/UpdateUser/UpdateUserUseCase.d.ts +21 -0
- package/api/features/UpdateUser/UpdateUserUseCase.js +66 -0
- package/api/features/UpdateUser/UpdateUserUseCase.js.map +1 -0
- package/api/features/UpdateUser/abstractions.d.ts +33 -0
- package/api/features/UpdateUser/abstractions.js +5 -0
- package/api/features/UpdateUser/abstractions.js.map +1 -0
- package/api/features/UpdateUser/feature.d.ts +4 -0
- package/api/features/UpdateUser/feature.js +11 -0
- package/api/features/UpdateUser/feature.js.map +1 -0
- package/api/features/UpdateUser/index.d.ts +2 -0
- package/api/features/UpdateUser/index.js +2 -0
- package/api/features/UpdateUser/schema.d.ts +14 -0
- package/api/features/UpdateUser/schema.js +17 -0
- package/api/features/UpdateUser/schema.js.map +1 -0
- package/api/features/UserInstaller/UserInstaller.d.ts +27 -0
- package/api/features/UserInstaller/UserInstaller.js +48 -0
- package/api/features/UserInstaller/UserInstaller.js.map +1 -0
- package/api/features/UserInstaller/feature.d.ts +4 -0
- package/api/features/UserInstaller/feature.js +11 -0
- package/api/features/UserInstaller/feature.js.map +1 -0
- package/api/graphql/user.gql.d.ts +8 -0
- package/api/graphql/user.gql.js +143 -0
- package/api/graphql/user.gql.js.map +1 -0
- package/api/index.d.ts +1 -0
- package/api/index.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/infra/CognitoFederationPulumi.d.ts +8 -0
- package/infra/CognitoFederationPulumi.js +17 -0
- package/infra/CognitoFederationPulumi.js.map +1 -0
- package/package.json +51 -0
- package/static/svg/search.43fa797c.svg +20 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { CreateUserUseCase } from "./abstractions/index.js";
|
|
3
|
+
import { CreateUserUseCase as external_CreateUserUseCase_js_CreateUserUseCase } from "./CreateUserUseCase.js";
|
|
4
|
+
import { CreateUserGateway } from "./CreateUserGateway.js";
|
|
5
|
+
const CreateUserFeature = createFeature({
|
|
6
|
+
name: "Cognito/Users/CreateUser",
|
|
7
|
+
register (container) {
|
|
8
|
+
container.register(external_CreateUserUseCase_js_CreateUserUseCase);
|
|
9
|
+
container.register(CreateUserGateway).inSingletonScope();
|
|
10
|
+
},
|
|
11
|
+
resolve (container) {
|
|
12
|
+
return {
|
|
13
|
+
useCase: container.resolve(CreateUserUseCase)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { CreateUserFeature };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/createUser/feature.js","sources":["../../../../../src/admin/features/users/createUser/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { CreateUserUseCase as UseCaseAbstraction } from \"./abstractions/index.js\";\nimport { CreateUserUseCase } from \"./CreateUserUseCase.js\";\nimport { CreateUserGateway } from \"./CreateUserGateway.js\";\n\nexport const CreateUserFeature = createFeature({\n name: \"Cognito/Users/CreateUser\",\n register(container) {\n container.register(CreateUserUseCase);\n container.register(CreateUserGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["CreateUserFeature","createFeature","container","CreateUserUseCase","CreateUserGateway","UseCaseAbstraction"],"mappings":";;;;AAKO,MAAMA,oBAAoBC,cAAc;IAC3C,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,mBAAmB,gBAAgB;IAC1D;IACA,SAAQF,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACG;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { DeleteUserGateway as GatewayAbstraction, type IDeleteUserGatewayParams } from "./abstractions/index.js";
|
|
3
|
+
declare class DeleteUserGraphQLGateway implements GatewayAbstraction.Interface {
|
|
4
|
+
private readonly client;
|
|
5
|
+
constructor(client: MainGraphQLClient.Interface);
|
|
6
|
+
execute(params: IDeleteUserGatewayParams): Promise<boolean>;
|
|
7
|
+
}
|
|
8
|
+
export declare const DeleteUserGateway: typeof DeleteUserGraphQLGateway & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/DeleteUserGateway.js").IDeleteUserGateway>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { DeleteUserGateway } from "./abstractions/index.js";
|
|
3
|
+
const DELETE_USER = `
|
|
4
|
+
mutation DeleteUser($id: ID!) {
|
|
5
|
+
adminUsers {
|
|
6
|
+
deleteUser(id: $id) {
|
|
7
|
+
data
|
|
8
|
+
error {
|
|
9
|
+
code
|
|
10
|
+
message
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
class DeleteUserGraphQLGateway {
|
|
17
|
+
constructor(client){
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
async execute(params) {
|
|
21
|
+
const response = await this.client.execute({
|
|
22
|
+
query: DELETE_USER,
|
|
23
|
+
variables: {
|
|
24
|
+
id: params.id
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const envelope = response.adminUsers.deleteUser;
|
|
28
|
+
if (envelope.error) throw new Error(envelope.error.message);
|
|
29
|
+
return envelope.data;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const DeleteUserGateway_DeleteUserGateway = DeleteUserGateway.createImplementation({
|
|
33
|
+
implementation: DeleteUserGraphQLGateway,
|
|
34
|
+
dependencies: [
|
|
35
|
+
MainGraphQLClient
|
|
36
|
+
]
|
|
37
|
+
});
|
|
38
|
+
export { DeleteUserGateway_DeleteUserGateway as DeleteUserGateway };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=DeleteUserGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/deleteUser/DeleteUserGateway.js","sources":["../../../../../src/admin/features/users/deleteUser/DeleteUserGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/index.js\";\nimport {\n DeleteUserGateway as GatewayAbstraction,\n type IDeleteUserGatewayParams\n} from \"./abstractions/index.js\";\n\nconst DELETE_USER = /* GraphQL */ `\n mutation DeleteUser($id: ID!) {\n adminUsers {\n deleteUser(id: $id) {\n data\n error {\n code\n message\n }\n }\n }\n }\n`;\n\ntype DeleteUserResponse = {\n adminUsers: {\n deleteUser:\n | { data: boolean; error: null }\n | { data: null; error: { code: string; message: string } };\n };\n};\n\nclass DeleteUserGraphQLGateway implements GatewayAbstraction.Interface {\n constructor(private readonly client: MainGraphQLClient.Interface) {}\n\n async execute(params: IDeleteUserGatewayParams): Promise<boolean> {\n const response = await this.client.execute<DeleteUserResponse>({\n query: DELETE_USER,\n variables: { id: params.id }\n });\n\n const envelope = response.adminUsers.deleteUser;\n if (envelope.error) {\n throw new Error(envelope.error.message);\n }\n\n return envelope.data;\n }\n}\n\nexport const DeleteUserGateway = GatewayAbstraction.createImplementation({\n implementation: DeleteUserGraphQLGateway,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["DELETE_USER","DeleteUserGraphQLGateway","client","params","response","envelope","Error","DeleteUserGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;AAMA,MAAMA,cAA4B,CAAC;;;;;;;;;;;;AAYnC,CAAC;AAUD,MAAMC;IACF,YAA6BC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAEnE,MAAM,QAAQC,MAAgC,EAAoB;QAC9D,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAqB;YAC3D,OAAOJ;YACP,WAAW;gBAAE,IAAIG,OAAO,EAAE;YAAC;QAC/B;QAEA,MAAME,WAAWD,SAAS,UAAU,CAAC,UAAU;QAC/C,IAAIC,SAAS,KAAK,EACd,MAAM,IAAIC,MAAMD,SAAS,KAAK,CAAC,OAAO;QAG1C,OAAOA,SAAS,IAAI;IACxB;AACJ;AAEO,MAAME,sCAAoBC,kBAAAA,oBAAuC,CAAC;IACrE,gBAAgBP;IAChB,cAAc;QAACQ;KAAkB;AACrC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeleteUserGateway, DeleteUserUseCase as UseCaseAbstraction, type IDeleteUserUseCaseParams } from "./abstractions/index.js";
|
|
2
|
+
declare class DeleteUserUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
3
|
+
private readonly gateway;
|
|
4
|
+
constructor(gateway: DeleteUserGateway.Interface);
|
|
5
|
+
execute(params: IDeleteUserUseCaseParams): Promise<boolean>;
|
|
6
|
+
}
|
|
7
|
+
export declare const DeleteUserUseCase: typeof DeleteUserUseCaseImpl & {
|
|
8
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/DeleteUserUseCase.js").IDeleteUserUseCase>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeleteUserGateway, DeleteUserUseCase } from "./abstractions/index.js";
|
|
2
|
+
class DeleteUserUseCaseImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute(params) {
|
|
7
|
+
return this.gateway.execute(params);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const DeleteUserUseCase_DeleteUserUseCase = DeleteUserUseCase.createImplementation({
|
|
11
|
+
implementation: DeleteUserUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
DeleteUserGateway
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { DeleteUserUseCase_DeleteUserUseCase as DeleteUserUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=DeleteUserUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/deleteUser/DeleteUserUseCase.js","sources":["../../../../../src/admin/features/users/deleteUser/DeleteUserUseCase.ts"],"sourcesContent":["import {\n DeleteUserGateway,\n DeleteUserUseCase as UseCaseAbstraction,\n type IDeleteUserUseCaseParams\n} from \"./abstractions/index.js\";\n\nclass DeleteUserUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly gateway: DeleteUserGateway.Interface) {}\n\n async execute(params: IDeleteUserUseCaseParams): Promise<boolean> {\n return this.gateway.execute(params);\n }\n}\n\nexport const DeleteUserUseCase = UseCaseAbstraction.createImplementation({\n implementation: DeleteUserUseCaseImpl,\n dependencies: [DeleteUserGateway]\n});\n"],"names":["DeleteUserUseCaseImpl","gateway","params","DeleteUserUseCase","UseCaseAbstraction","DeleteUserGateway"],"mappings":";AAMA,MAAMA;IACF,YAA6BC,OAAoC,CAAE;aAAtCA,OAAO,GAAPA;IAAuC;IAEpE,MAAM,QAAQC,MAAgC,EAAoB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAACA;IAChC;AACJ;AAEO,MAAMC,sCAAoBC,kBAAAA,oBAAuC,CAAC;IACrE,gBAAgBJ;IAChB,cAAc;QAACK;KAAkB;AACrC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface IDeleteUserGatewayParams {
|
|
2
|
+
id: string;
|
|
3
|
+
}
|
|
4
|
+
export interface IDeleteUserGateway {
|
|
5
|
+
execute(params: IDeleteUserGatewayParams): Promise<boolean>;
|
|
6
|
+
}
|
|
7
|
+
export declare const DeleteUserGateway: import("@webiny/di").Abstraction<IDeleteUserGateway>;
|
|
8
|
+
export declare namespace DeleteUserGateway {
|
|
9
|
+
type Interface = IDeleteUserGateway;
|
|
10
|
+
type Params = IDeleteUserGatewayParams;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/deleteUser/abstractions/DeleteUserGateway.js","sources":["../../../../../../src/admin/features/users/deleteUser/abstractions/DeleteUserGateway.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface IDeleteUserGatewayParams {\n id: string;\n}\n\nexport interface IDeleteUserGateway {\n execute(params: IDeleteUserGatewayParams): Promise<boolean>;\n}\n\nexport const DeleteUserGateway = createAbstraction<IDeleteUserGateway>(\"DeleteUserGateway\");\n\nexport namespace DeleteUserGateway {\n export type Interface = IDeleteUserGateway;\n export type Params = IDeleteUserGatewayParams;\n}\n"],"names":["DeleteUserGateway","createAbstraction"],"mappings":";AAUO,MAAMA,oBAAoBC,kBAAsC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface IDeleteUserUseCaseParams {
|
|
2
|
+
id: string;
|
|
3
|
+
}
|
|
4
|
+
export interface IDeleteUserUseCase {
|
|
5
|
+
execute(params: IDeleteUserUseCaseParams): Promise<boolean>;
|
|
6
|
+
}
|
|
7
|
+
export declare const DeleteUserUseCase: import("@webiny/di").Abstraction<IDeleteUserUseCase>;
|
|
8
|
+
export declare namespace DeleteUserUseCase {
|
|
9
|
+
type Interface = IDeleteUserUseCase;
|
|
10
|
+
type Params = IDeleteUserUseCaseParams;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/deleteUser/abstractions/DeleteUserUseCase.js","sources":["../../../../../../src/admin/features/users/deleteUser/abstractions/DeleteUserUseCase.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface IDeleteUserUseCaseParams {\n id: string;\n}\n\nexport interface IDeleteUserUseCase {\n execute(params: IDeleteUserUseCaseParams): Promise<boolean>;\n}\n\nexport const DeleteUserUseCase = createAbstraction<IDeleteUserUseCase>(\"DeleteUserUseCase\");\n\nexport namespace DeleteUserUseCase {\n export type Interface = IDeleteUserUseCase;\n export type Params = IDeleteUserUseCaseParams;\n}\n"],"names":["DeleteUserUseCase","createAbstraction"],"mappings":";AAUO,MAAMA,oBAAoBC,kBAAsC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { DeleteUserUseCase } from "./abstractions/index.js";
|
|
3
|
+
import { DeleteUserUseCase as external_DeleteUserUseCase_js_DeleteUserUseCase } from "./DeleteUserUseCase.js";
|
|
4
|
+
import { DeleteUserGateway } from "./DeleteUserGateway.js";
|
|
5
|
+
const DeleteUserFeature = createFeature({
|
|
6
|
+
name: "Cognito/Users/DeleteUser",
|
|
7
|
+
register (container) {
|
|
8
|
+
container.register(external_DeleteUserUseCase_js_DeleteUserUseCase);
|
|
9
|
+
container.register(DeleteUserGateway).inSingletonScope();
|
|
10
|
+
},
|
|
11
|
+
resolve (container) {
|
|
12
|
+
return {
|
|
13
|
+
useCase: container.resolve(DeleteUserUseCase)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { DeleteUserFeature };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/deleteUser/feature.js","sources":["../../../../../src/admin/features/users/deleteUser/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { DeleteUserUseCase as UseCaseAbstraction } from \"./abstractions/index.js\";\nimport { DeleteUserUseCase } from \"./DeleteUserUseCase.js\";\nimport { DeleteUserGateway } from \"./DeleteUserGateway.js\";\n\nexport const DeleteUserFeature = createFeature({\n name: \"Cognito/Users/DeleteUser\",\n register(container) {\n container.register(DeleteUserUseCase);\n container.register(DeleteUserGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["DeleteUserFeature","createFeature","container","DeleteUserUseCase","DeleteUserGateway","UseCaseAbstraction"],"mappings":";;;;AAKO,MAAMA,oBAAoBC,cAAc;IAC3C,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,mBAAmB,gBAAgB;IAC1D;IACA,SAAQF,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACG;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { GetUserGateway as GatewayAbstraction, type IGetUserGatewayParams, type IGetUserGatewayResult } from "./abstractions/index.js";
|
|
3
|
+
declare class GetUserGraphQLGateway implements GatewayAbstraction.Interface {
|
|
4
|
+
private readonly client;
|
|
5
|
+
constructor(client: MainGraphQLClient.Interface);
|
|
6
|
+
execute(params: IGetUserGatewayParams): Promise<IGetUserGatewayResult>;
|
|
7
|
+
}
|
|
8
|
+
export declare const GetUserGateway: typeof GetUserGraphQLGateway & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/GetUserGateway.js").IGetUserGateway>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { GetUserGateway } from "./abstractions/index.js";
|
|
3
|
+
const GET_USER = `
|
|
4
|
+
query GetUser($id: ID!) {
|
|
5
|
+
adminUsers {
|
|
6
|
+
user: getUser(where: { id: $id }) {
|
|
7
|
+
data {
|
|
8
|
+
id
|
|
9
|
+
email
|
|
10
|
+
firstName
|
|
11
|
+
lastName
|
|
12
|
+
avatar
|
|
13
|
+
external
|
|
14
|
+
roles {
|
|
15
|
+
id
|
|
16
|
+
slug
|
|
17
|
+
name
|
|
18
|
+
}
|
|
19
|
+
teams {
|
|
20
|
+
id
|
|
21
|
+
slug
|
|
22
|
+
name
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
error {
|
|
26
|
+
code
|
|
27
|
+
message
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
class GetUserGraphQLGateway {
|
|
34
|
+
constructor(client){
|
|
35
|
+
this.client = client;
|
|
36
|
+
}
|
|
37
|
+
async execute(params) {
|
|
38
|
+
const response = await this.client.execute({
|
|
39
|
+
query: GET_USER,
|
|
40
|
+
variables: {
|
|
41
|
+
id: params.id
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const envelope = response.adminUsers.user;
|
|
45
|
+
if (envelope.error) throw new Error(envelope.error.message);
|
|
46
|
+
return envelope.data;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const GetUserGateway_GetUserGateway = GetUserGateway.createImplementation({
|
|
50
|
+
implementation: GetUserGraphQLGateway,
|
|
51
|
+
dependencies: [
|
|
52
|
+
MainGraphQLClient
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
export { GetUserGateway_GetUserGateway as GetUserGateway };
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=GetUserGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/getUser/GetUserGateway.js","sources":["../../../../../src/admin/features/users/getUser/GetUserGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/index.js\";\nimport {\n GetUserGateway as GatewayAbstraction,\n type IGetUserGatewayParams,\n type IGetUserGatewayResult\n} from \"./abstractions/index.js\";\n\nconst GET_USER = /* GraphQL */ `\n query GetUser($id: ID!) {\n adminUsers {\n user: getUser(where: { id: $id }) {\n data {\n id\n email\n firstName\n lastName\n avatar\n external\n roles {\n id\n slug\n name\n }\n teams {\n id\n slug\n name\n }\n }\n error {\n code\n message\n }\n }\n }\n }\n`;\n\ntype GetUserResponse = {\n adminUsers: {\n user:\n | { data: IGetUserGatewayResult; error: null }\n | { data: null; error: { code: string; message: string } };\n };\n};\n\nclass GetUserGraphQLGateway implements GatewayAbstraction.Interface {\n constructor(private readonly client: MainGraphQLClient.Interface) {}\n\n async execute(params: IGetUserGatewayParams): Promise<IGetUserGatewayResult> {\n const response = await this.client.execute<GetUserResponse>({\n query: GET_USER,\n variables: { id: params.id }\n });\n\n const envelope = response.adminUsers.user;\n if (envelope.error) {\n throw new Error(envelope.error.message);\n }\n\n return envelope.data;\n }\n}\n\nexport const GetUserGateway = GatewayAbstraction.createImplementation({\n implementation: GetUserGraphQLGateway,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["GET_USER","GetUserGraphQLGateway","client","params","response","envelope","Error","GetUserGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;AAOA,MAAMA,WAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BhC,CAAC;AAUD,MAAMC;IACF,YAA6BC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAEnE,MAAM,QAAQC,MAA6B,EAAkC;QACzE,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAkB;YACxD,OAAOJ;YACP,WAAW;gBAAE,IAAIG,OAAO,EAAE;YAAC;QAC/B;QAEA,MAAME,WAAWD,SAAS,UAAU,CAAC,IAAI;QACzC,IAAIC,SAAS,KAAK,EACd,MAAM,IAAIC,MAAMD,SAAS,KAAK,CAAC,OAAO;QAG1C,OAAOA,SAAS,IAAI;IACxB;AACJ;AAEO,MAAME,gCAAiBC,eAAAA,oBAAuC,CAAC;IAClE,gBAAgBP;IAChB,cAAc;QAACQ;KAAkB;AACrC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GetUserGateway, GetUserUseCase as UseCaseAbstraction, type IGetUserUseCaseParams, type IGetUserUseCaseResult } from "./abstractions/index.js";
|
|
2
|
+
declare class GetUserUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
3
|
+
private readonly gateway;
|
|
4
|
+
constructor(gateway: GetUserGateway.Interface);
|
|
5
|
+
execute(params: IGetUserUseCaseParams): Promise<IGetUserUseCaseResult>;
|
|
6
|
+
}
|
|
7
|
+
export declare const GetUserUseCase: typeof GetUserUseCaseImpl & {
|
|
8
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/GetUserUseCase.js").IGetUserUseCase>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GetUserGateway, GetUserUseCase } from "./abstractions/index.js";
|
|
2
|
+
class GetUserUseCaseImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute(params) {
|
|
7
|
+
return this.gateway.execute(params);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const GetUserUseCase_GetUserUseCase = GetUserUseCase.createImplementation({
|
|
11
|
+
implementation: GetUserUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
GetUserGateway
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { GetUserUseCase_GetUserUseCase as GetUserUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=GetUserUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/getUser/GetUserUseCase.js","sources":["../../../../../src/admin/features/users/getUser/GetUserUseCase.ts"],"sourcesContent":["import {\n GetUserGateway,\n GetUserUseCase as UseCaseAbstraction,\n type IGetUserUseCaseParams,\n type IGetUserUseCaseResult\n} from \"./abstractions/index.js\";\n\nclass GetUserUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly gateway: GetUserGateway.Interface) {}\n\n async execute(params: IGetUserUseCaseParams): Promise<IGetUserUseCaseResult> {\n return this.gateway.execute(params);\n }\n}\n\nexport const GetUserUseCase = UseCaseAbstraction.createImplementation({\n implementation: GetUserUseCaseImpl,\n dependencies: [GetUserGateway]\n});\n"],"names":["GetUserUseCaseImpl","gateway","params","GetUserUseCase","UseCaseAbstraction","GetUserGateway"],"mappings":";AAOA,MAAMA;IACF,YAA6BC,OAAiC,CAAE;aAAnCA,OAAO,GAAPA;IAAoC;IAEjE,MAAM,QAAQC,MAA6B,EAAkC;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAACA;IAChC;AACJ;AAEO,MAAMC,gCAAiBC,eAAAA,oBAAuC,CAAC;IAClE,gBAAgBJ;IAChB,cAAc;QAACK;KAAe;AAClC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface IUserRoleRef {
|
|
2
|
+
id: string;
|
|
3
|
+
slug: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IUserTeamRef {
|
|
7
|
+
id: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IGetUserGatewayResult {
|
|
12
|
+
id: string;
|
|
13
|
+
email: string;
|
|
14
|
+
firstName: string;
|
|
15
|
+
lastName: string;
|
|
16
|
+
avatar: any;
|
|
17
|
+
external: boolean;
|
|
18
|
+
roles: IUserRoleRef[];
|
|
19
|
+
teams: IUserTeamRef[];
|
|
20
|
+
}
|
|
21
|
+
export interface IGetUserGateway {
|
|
22
|
+
execute(params: IGetUserGatewayParams): Promise<IGetUserGatewayResult>;
|
|
23
|
+
}
|
|
24
|
+
export interface IGetUserGatewayParams {
|
|
25
|
+
id: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const GetUserGateway: import("@webiny/di").Abstraction<IGetUserGateway>;
|
|
28
|
+
export declare namespace GetUserGateway {
|
|
29
|
+
type Interface = IGetUserGateway;
|
|
30
|
+
type Params = IGetUserGatewayParams;
|
|
31
|
+
type Result = IGetUserGatewayResult;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/getUser/abstractions/GetUserGateway.js","sources":["../../../../../../src/admin/features/users/getUser/abstractions/GetUserGateway.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface IUserRoleRef {\n id: string;\n slug: string;\n name: string;\n}\n\nexport interface IUserTeamRef {\n id: string;\n slug: string;\n name: string;\n}\n\nexport interface IGetUserGatewayResult {\n id: string;\n email: string;\n firstName: string;\n lastName: string;\n avatar: any;\n external: boolean;\n roles: IUserRoleRef[];\n teams: IUserTeamRef[];\n}\n\nexport interface IGetUserGateway {\n execute(params: IGetUserGatewayParams): Promise<IGetUserGatewayResult>;\n}\n\nexport interface IGetUserGatewayParams {\n id: string;\n}\n\nexport const GetUserGateway = createAbstraction<IGetUserGateway>(\"GetUserGateway\");\n\nexport namespace GetUserGateway {\n export type Interface = IGetUserGateway;\n export type Params = IGetUserGatewayParams;\n export type Result = IGetUserGatewayResult;\n}\n"],"names":["GetUserGateway","createAbstraction"],"mappings":";AAiCO,MAAMA,iBAAiBC,kBAAmC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IGetUserGatewayResult } from "./GetUserGateway.js";
|
|
2
|
+
export type IGetUserUseCaseResult = IGetUserGatewayResult;
|
|
3
|
+
export interface IGetUserUseCaseParams {
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IGetUserUseCase {
|
|
7
|
+
execute(params: IGetUserUseCaseParams): Promise<IGetUserUseCaseResult>;
|
|
8
|
+
}
|
|
9
|
+
export declare const GetUserUseCase: import("@webiny/di").Abstraction<IGetUserUseCase>;
|
|
10
|
+
export declare namespace GetUserUseCase {
|
|
11
|
+
type Interface = IGetUserUseCase;
|
|
12
|
+
type Params = IGetUserUseCaseParams;
|
|
13
|
+
type Result = IGetUserUseCaseResult;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/getUser/abstractions/GetUserUseCase.js","sources":["../../../../../../src/admin/features/users/getUser/abstractions/GetUserUseCase.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { IGetUserGatewayResult } from \"./GetUserGateway.js\";\n\nexport type IGetUserUseCaseResult = IGetUserGatewayResult;\n\nexport interface IGetUserUseCaseParams {\n id: string;\n}\n\nexport interface IGetUserUseCase {\n execute(params: IGetUserUseCaseParams): Promise<IGetUserUseCaseResult>;\n}\n\nexport const GetUserUseCase = createAbstraction<IGetUserUseCase>(\"GetUserUseCase\");\n\nexport namespace GetUserUseCase {\n export type Interface = IGetUserUseCase;\n export type Params = IGetUserUseCaseParams;\n export type Result = IGetUserUseCaseResult;\n}\n"],"names":["GetUserUseCase","createAbstraction"],"mappings":";AAaO,MAAMA,iBAAiBC,kBAAmC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { GetUserGateway, type IGetUserGateway, type IGetUserGatewayParams, type IGetUserGatewayResult, type IUserRoleRef, type IUserTeamRef } from "./GetUserGateway.js";
|
|
2
|
+
export { GetUserUseCase, type IGetUserUseCase, type IGetUserUseCaseParams, type IGetUserUseCaseResult } from "./GetUserUseCase.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { GetUserUseCase } from "./abstractions/index.js";
|
|
3
|
+
import { GetUserUseCase as external_GetUserUseCase_js_GetUserUseCase } from "./GetUserUseCase.js";
|
|
4
|
+
import { GetUserGateway } from "./GetUserGateway.js";
|
|
5
|
+
const GetUserFeature = createFeature({
|
|
6
|
+
name: "Cognito/Users/GetUser",
|
|
7
|
+
register (container) {
|
|
8
|
+
container.register(external_GetUserUseCase_js_GetUserUseCase);
|
|
9
|
+
container.register(GetUserGateway).inSingletonScope();
|
|
10
|
+
},
|
|
11
|
+
resolve (container) {
|
|
12
|
+
return {
|
|
13
|
+
useCase: container.resolve(GetUserUseCase)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { GetUserFeature };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/getUser/feature.js","sources":["../../../../../src/admin/features/users/getUser/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { GetUserUseCase as UseCaseAbstraction } from \"./abstractions/index.js\";\nimport { GetUserUseCase } from \"./GetUserUseCase.js\";\nimport { GetUserGateway } from \"./GetUserGateway.js\";\n\nexport const GetUserFeature = createFeature({\n name: \"Cognito/Users/GetUser\",\n register(container) {\n container.register(GetUserUseCase);\n container.register(GetUserGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["GetUserFeature","createFeature","container","GetUserUseCase","GetUserGateway","UseCaseAbstraction"],"mappings":";;;;AAKO,MAAMA,iBAAiBC,cAAc;IACxC,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,gBAAgB,gBAAgB;IACvD;IACA,SAAQF,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACG;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { ListUsersGateway as GatewayAbstraction, type IListUsersGatewayResult } from "./abstractions/index.js";
|
|
3
|
+
declare class ListUsersGraphQLGateway implements GatewayAbstraction.Interface {
|
|
4
|
+
private readonly client;
|
|
5
|
+
constructor(client: MainGraphQLClient.Interface);
|
|
6
|
+
execute(): Promise<IListUsersGatewayResult[]>;
|
|
7
|
+
}
|
|
8
|
+
export declare const ListUsersGateway: typeof ListUsersGraphQLGateway & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/ListUsersGateway.js").IListUsersGateway>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { ListUsersGateway } from "./abstractions/index.js";
|
|
3
|
+
const LIST_USERS = `
|
|
4
|
+
query ListUsers {
|
|
5
|
+
adminUsers {
|
|
6
|
+
users: listUsers {
|
|
7
|
+
data {
|
|
8
|
+
id
|
|
9
|
+
email
|
|
10
|
+
firstName
|
|
11
|
+
lastName
|
|
12
|
+
avatar
|
|
13
|
+
createdOn
|
|
14
|
+
external
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
class ListUsersGraphQLGateway {
|
|
21
|
+
constructor(client){
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
async execute() {
|
|
25
|
+
const response = await this.client.execute({
|
|
26
|
+
query: LIST_USERS
|
|
27
|
+
});
|
|
28
|
+
return response.adminUsers.users.data;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const ListUsersGateway_ListUsersGateway = ListUsersGateway.createImplementation({
|
|
32
|
+
implementation: ListUsersGraphQLGateway,
|
|
33
|
+
dependencies: [
|
|
34
|
+
MainGraphQLClient
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
export { ListUsersGateway_ListUsersGateway as ListUsersGateway };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=ListUsersGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/listUsers/ListUsersGateway.js","sources":["../../../../../src/admin/features/users/listUsers/ListUsersGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/index.js\";\nimport {\n ListUsersGateway as GatewayAbstraction,\n type IListUsersGatewayResult\n} from \"./abstractions/index.js\";\n\nconst LIST_USERS = /* GraphQL */ `\n query ListUsers {\n adminUsers {\n users: listUsers {\n data {\n id\n email\n firstName\n lastName\n avatar\n createdOn\n external\n }\n }\n }\n }\n`;\n\ntype ListUsersResponse = {\n adminUsers: {\n users: {\n data: IListUsersGatewayResult[];\n };\n };\n};\n\nclass ListUsersGraphQLGateway implements GatewayAbstraction.Interface {\n constructor(private readonly client: MainGraphQLClient.Interface) {}\n\n async execute(): Promise<IListUsersGatewayResult[]> {\n const response = await this.client.execute<ListUsersResponse>({\n query: LIST_USERS\n });\n\n return response.adminUsers.users.data;\n }\n}\n\nexport const ListUsersGateway = GatewayAbstraction.createImplementation({\n implementation: ListUsersGraphQLGateway,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["LIST_USERS","ListUsersGraphQLGateway","client","response","ListUsersGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;AAMA,MAAMA,aAA2B,CAAC;;;;;;;;;;;;;;;;AAgBlC,CAAC;AAUD,MAAMC;IACF,YAA6BC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAEnE,MAAM,UAA8C;QAChD,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAoB;YAC1D,OAAOH;QACX;QAEA,OAAOG,SAAS,UAAU,CAAC,KAAK,CAAC,IAAI;IACzC;AACJ;AAEO,MAAMC,oCAAmBC,iBAAAA,oBAAuC,CAAC;IACpE,gBAAgBJ;IAChB,cAAc;QAACK;KAAkB;AACrC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ListUsersGateway, ListUsersUseCase as UseCaseAbstraction, type IListUsersUseCaseResult } from "./abstractions/index.js";
|
|
2
|
+
declare class ListUsersUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
3
|
+
private readonly gateway;
|
|
4
|
+
constructor(gateway: ListUsersGateway.Interface);
|
|
5
|
+
execute(): Promise<IListUsersUseCaseResult[]>;
|
|
6
|
+
}
|
|
7
|
+
export declare const ListUsersUseCase: typeof ListUsersUseCaseImpl & {
|
|
8
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/ListUsersUseCase.js").IListUsersUseCase>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ListUsersGateway, ListUsersUseCase } from "./abstractions/index.js";
|
|
2
|
+
class ListUsersUseCaseImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute() {
|
|
7
|
+
return this.gateway.execute();
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const ListUsersUseCase_ListUsersUseCase = ListUsersUseCase.createImplementation({
|
|
11
|
+
implementation: ListUsersUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
ListUsersGateway
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { ListUsersUseCase_ListUsersUseCase as ListUsersUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=ListUsersUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/listUsers/ListUsersUseCase.js","sources":["../../../../../src/admin/features/users/listUsers/ListUsersUseCase.ts"],"sourcesContent":["import {\n ListUsersGateway,\n ListUsersUseCase as UseCaseAbstraction,\n type IListUsersUseCaseResult\n} from \"./abstractions/index.js\";\n\nclass ListUsersUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly gateway: ListUsersGateway.Interface) {}\n\n async execute(): Promise<IListUsersUseCaseResult[]> {\n return this.gateway.execute();\n }\n}\n\nexport const ListUsersUseCase = UseCaseAbstraction.createImplementation({\n implementation: ListUsersUseCaseImpl,\n dependencies: [ListUsersGateway]\n});\n"],"names":["ListUsersUseCaseImpl","gateway","ListUsersUseCase","UseCaseAbstraction","ListUsersGateway"],"mappings":";AAMA,MAAMA;IACF,YAA6BC,OAAmC,CAAE;aAArCA,OAAO,GAAPA;IAAsC;IAEnE,MAAM,UAA8C;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO;IAC/B;AACJ;AAEO,MAAMC,oCAAmBC,iBAAAA,oBAAuC,CAAC;IACpE,gBAAgBH;IAChB,cAAc;QAACI;KAAiB;AACpC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IListUsersGatewayResult {
|
|
2
|
+
id: string;
|
|
3
|
+
email: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
avatar: any;
|
|
7
|
+
createdOn: string;
|
|
8
|
+
external: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface IListUsersGateway {
|
|
11
|
+
execute(): Promise<IListUsersGatewayResult[]>;
|
|
12
|
+
}
|
|
13
|
+
export declare const ListUsersGateway: import("@webiny/di").Abstraction<IListUsersGateway>;
|
|
14
|
+
export declare namespace ListUsersGateway {
|
|
15
|
+
type Interface = IListUsersGateway;
|
|
16
|
+
type Result = IListUsersGatewayResult;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/listUsers/abstractions/ListUsersGateway.js","sources":["../../../../../../src/admin/features/users/listUsers/abstractions/ListUsersGateway.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface IListUsersGatewayResult {\n id: string;\n email: string;\n firstName: string;\n lastName: string;\n avatar: any;\n createdOn: string;\n external: boolean;\n}\n\nexport interface IListUsersGateway {\n execute(): Promise<IListUsersGatewayResult[]>;\n}\n\nexport const ListUsersGateway = createAbstraction<IListUsersGateway>(\"ListUsersGateway\");\n\nexport namespace ListUsersGateway {\n export type Interface = IListUsersGateway;\n export type Result = IListUsersGatewayResult;\n}\n"],"names":["ListUsersGateway","createAbstraction"],"mappings":";AAgBO,MAAMA,mBAAmBC,kBAAqC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IListUsersGatewayResult } from "./ListUsersGateway.js";
|
|
2
|
+
export type IListUsersUseCaseResult = IListUsersGatewayResult;
|
|
3
|
+
export interface IListUsersUseCase {
|
|
4
|
+
execute(): Promise<IListUsersUseCaseResult[]>;
|
|
5
|
+
}
|
|
6
|
+
export declare const ListUsersUseCase: import("@webiny/di").Abstraction<IListUsersUseCase>;
|
|
7
|
+
export declare namespace ListUsersUseCase {
|
|
8
|
+
type Interface = IListUsersUseCase;
|
|
9
|
+
type Result = IListUsersUseCaseResult;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/listUsers/abstractions/ListUsersUseCase.js","sources":["../../../../../../src/admin/features/users/listUsers/abstractions/ListUsersUseCase.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { IListUsersGatewayResult } from \"./ListUsersGateway.js\";\n\nexport type IListUsersUseCaseResult = IListUsersGatewayResult;\n\nexport interface IListUsersUseCase {\n execute(): Promise<IListUsersUseCaseResult[]>;\n}\n\nexport const ListUsersUseCase = createAbstraction<IListUsersUseCase>(\"ListUsersUseCase\");\n\nexport namespace ListUsersUseCase {\n export type Interface = IListUsersUseCase;\n export type Result = IListUsersUseCaseResult;\n}\n"],"names":["ListUsersUseCase","createAbstraction"],"mappings":";AASO,MAAMA,mBAAmBC,kBAAqC"}
|