@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 { GetCurrentUserGateway, GetCurrentUserUseCase } from "./abstractions/index.js";
|
|
2
|
+
class GetCurrentUserUseCaseImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute() {
|
|
7
|
+
const result = await this.gateway.execute();
|
|
8
|
+
return result;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
const GetCurrentUserUseCase_GetCurrentUserUseCase = GetCurrentUserUseCase.createImplementation({
|
|
12
|
+
implementation: GetCurrentUserUseCaseImpl,
|
|
13
|
+
dependencies: [
|
|
14
|
+
GetCurrentUserGateway
|
|
15
|
+
]
|
|
16
|
+
});
|
|
17
|
+
export { GetCurrentUserUseCase_GetCurrentUserUseCase as GetCurrentUserUseCase };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=GetCurrentUserUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/account/getCurrentUser/GetCurrentUserUseCase.js","sources":["../../../../../src/admin/features/account/getCurrentUser/GetCurrentUserUseCase.ts"],"sourcesContent":["import {\n GetCurrentUserUseCase as UseCaseAbstraction,\n GetCurrentUserGateway\n} from \"./abstractions/index.js\";\n\nclass GetCurrentUserUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly gateway: GetCurrentUserGateway.Interface) {}\n\n async execute(): Promise<UseCaseAbstraction.Result> {\n const result = await this.gateway.execute();\n return result;\n }\n}\n\nexport const GetCurrentUserUseCase = UseCaseAbstraction.createImplementation({\n implementation: GetCurrentUserUseCaseImpl,\n dependencies: [GetCurrentUserGateway]\n});\n"],"names":["GetCurrentUserUseCaseImpl","gateway","result","GetCurrentUserUseCase","UseCaseAbstraction","GetCurrentUserGateway"],"mappings":";AAKA,MAAMA;IACF,YAA6BC,OAAwC,CAAE;aAA1CA,OAAO,GAAPA;IAA2C;IAExE,MAAM,UAA8C;QAChD,MAAMC,SAAS,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO;QACzC,OAAOA;IACX;AACJ;AAEO,MAAMC,8CAAwBC,sBAAAA,oBAAuC,CAAC;IACzE,gBAAgBJ;IAChB,cAAc;QAACK;KAAsB;AACzC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IGetCurrentUserGatewayResult {
|
|
2
|
+
id: string;
|
|
3
|
+
email: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
avatar: any;
|
|
7
|
+
external: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IGetCurrentUserGateway {
|
|
10
|
+
execute(): Promise<IGetCurrentUserGatewayResult>;
|
|
11
|
+
}
|
|
12
|
+
export declare const GetCurrentUserGateway: import("@webiny/di").Abstraction<IGetCurrentUserGateway>;
|
|
13
|
+
export declare namespace GetCurrentUserGateway {
|
|
14
|
+
type Interface = IGetCurrentUserGateway;
|
|
15
|
+
type Result = IGetCurrentUserGatewayResult;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/account/getCurrentUser/abstractions/GetCurrentUserGateway.js","sources":["../../../../../../src/admin/features/account/getCurrentUser/abstractions/GetCurrentUserGateway.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface IGetCurrentUserGatewayResult {\n id: string;\n email: string;\n firstName: string;\n lastName: string;\n avatar: any;\n external: boolean;\n}\n\nexport interface IGetCurrentUserGateway {\n execute(): Promise<IGetCurrentUserGatewayResult>;\n}\n\nexport const GetCurrentUserGateway = createAbstraction<IGetCurrentUserGateway>(\n \"Cognito/GetCurrentUserGateway\"\n);\n\nexport namespace GetCurrentUserGateway {\n export type Interface = IGetCurrentUserGateway;\n export type Result = IGetCurrentUserGatewayResult;\n}\n"],"names":["GetCurrentUserGateway","createAbstraction"],"mappings":";AAeO,MAAMA,wBAAwBC,kBACjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IGetCurrentUserGatewayResult } from "./GetCurrentUserGateway.js";
|
|
2
|
+
export type IGetCurrentUserUseCaseResult = IGetCurrentUserGatewayResult;
|
|
3
|
+
export interface IGetCurrentUserUseCase {
|
|
4
|
+
execute(): Promise<IGetCurrentUserUseCaseResult>;
|
|
5
|
+
}
|
|
6
|
+
export declare const GetCurrentUserUseCase: import("@webiny/di").Abstraction<IGetCurrentUserUseCase>;
|
|
7
|
+
export declare namespace GetCurrentUserUseCase {
|
|
8
|
+
type Interface = IGetCurrentUserUseCase;
|
|
9
|
+
type Result = IGetCurrentUserUseCaseResult;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/account/getCurrentUser/abstractions/GetCurrentUserUseCase.js","sources":["../../../../../../src/admin/features/account/getCurrentUser/abstractions/GetCurrentUserUseCase.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { IGetCurrentUserGatewayResult } from \"./GetCurrentUserGateway.js\";\n\nexport type IGetCurrentUserUseCaseResult = IGetCurrentUserGatewayResult;\n\nexport interface IGetCurrentUserUseCase {\n execute(): Promise<IGetCurrentUserUseCaseResult>;\n}\n\nexport const GetCurrentUserUseCase = createAbstraction<IGetCurrentUserUseCase>(\n \"Cognito/GetCurrentUserUseCase\"\n);\n\nexport namespace GetCurrentUserUseCase {\n export type Interface = IGetCurrentUserUseCase;\n export type Result = IGetCurrentUserUseCaseResult;\n}\n"],"names":["GetCurrentUserUseCase","createAbstraction"],"mappings":";AASO,MAAMA,wBAAwBC,kBACjC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { GetCurrentUserGateway } from "./GetCurrentUserGateway.js";
|
|
2
|
+
export type { IGetCurrentUserGateway } from "./GetCurrentUserGateway.js";
|
|
3
|
+
export type { IGetCurrentUserGatewayResult } from "./GetCurrentUserGateway.js";
|
|
4
|
+
export { GetCurrentUserUseCase } from "./GetCurrentUserUseCase.js";
|
|
5
|
+
export type { IGetCurrentUserUseCase } from "./GetCurrentUserUseCase.js";
|
|
6
|
+
export type { IGetCurrentUserUseCaseResult } from "./GetCurrentUserUseCase.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { GetCurrentUserUseCase } from "./abstractions/index.js";
|
|
3
|
+
import { GetCurrentUserUseCase as external_GetCurrentUserUseCase_js_GetCurrentUserUseCase } from "./GetCurrentUserUseCase.js";
|
|
4
|
+
import { GetCurrentUserGateway } from "./GetCurrentUserGateway.js";
|
|
5
|
+
const GetCurrentUserFeature = createFeature({
|
|
6
|
+
name: "Cognito/GetCurrentUser",
|
|
7
|
+
register (container) {
|
|
8
|
+
container.register(external_GetCurrentUserUseCase_js_GetCurrentUserUseCase);
|
|
9
|
+
container.register(GetCurrentUserGateway).inSingletonScope();
|
|
10
|
+
},
|
|
11
|
+
resolve (container) {
|
|
12
|
+
return {
|
|
13
|
+
useCase: container.resolve(GetCurrentUserUseCase)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { GetCurrentUserFeature };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/account/getCurrentUser/feature.js","sources":["../../../../../src/admin/features/account/getCurrentUser/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { GetCurrentUserUseCase as UseCaseAbstraction } from \"./abstractions/index.js\";\nimport { GetCurrentUserUseCase } from \"./GetCurrentUserUseCase.js\";\nimport { GetCurrentUserGateway } from \"./GetCurrentUserGateway.js\";\n\nexport const GetCurrentUserFeature = createFeature({\n name: \"Cognito/GetCurrentUser\",\n register(container) {\n container.register(GetCurrentUserUseCase);\n container.register(GetCurrentUserGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["GetCurrentUserFeature","createFeature","container","GetCurrentUserUseCase","GetCurrentUserGateway","UseCaseAbstraction"],"mappings":";;;;AAKO,MAAMA,wBAAwBC,cAAc;IAC/C,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,uBAAuB,gBAAgB;IAC9D;IACA,SAAQF,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACG;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GetCurrentUserFeature } from "./feature.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GetCurrentUserFeature } from "./feature.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UpdateCurrentUserGateway as GatewayAbstraction } from "./abstractions/index.js";
|
|
2
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient";
|
|
3
|
+
declare class UpdateCurrentUserGatewayImpl implements GatewayAbstraction.Interface {
|
|
4
|
+
private readonly client;
|
|
5
|
+
constructor(client: MainGraphQLClient.Interface);
|
|
6
|
+
execute(params: GatewayAbstraction.Params): Promise<GatewayAbstraction.Result>;
|
|
7
|
+
}
|
|
8
|
+
export declare const UpdateCurrentUserGateway: typeof UpdateCurrentUserGatewayImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/UpdateCurrentUserGateway.js").IUpdateCurrentUserGateway>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { UpdateCurrentUserGateway } from "./abstractions/index.js";
|
|
2
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient";
|
|
3
|
+
const UPDATE_CURRENT_USER = `
|
|
4
|
+
mutation UpdateCurrentUser($data: AdminUsersCurrentUserInput!) {
|
|
5
|
+
adminUsers {
|
|
6
|
+
updateCurrentUser(data: $data) {
|
|
7
|
+
data {
|
|
8
|
+
id
|
|
9
|
+
email
|
|
10
|
+
firstName
|
|
11
|
+
lastName
|
|
12
|
+
avatar
|
|
13
|
+
external
|
|
14
|
+
}
|
|
15
|
+
error {
|
|
16
|
+
code
|
|
17
|
+
message
|
|
18
|
+
data
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
class UpdateCurrentUserGatewayImpl {
|
|
25
|
+
constructor(client){
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
async execute(params) {
|
|
29
|
+
const response = await this.client.execute({
|
|
30
|
+
query: UPDATE_CURRENT_USER,
|
|
31
|
+
variables: {
|
|
32
|
+
data: params
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
const { data, error } = response.adminUsers.updateCurrentUser;
|
|
36
|
+
if (!data) throw new Error(error?.message || "Could not update current user.");
|
|
37
|
+
return data;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const UpdateCurrentUserGateway_UpdateCurrentUserGateway = UpdateCurrentUserGateway.createImplementation({
|
|
41
|
+
implementation: UpdateCurrentUserGatewayImpl,
|
|
42
|
+
dependencies: [
|
|
43
|
+
MainGraphQLClient
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
export { UpdateCurrentUserGateway_UpdateCurrentUserGateway as UpdateCurrentUserGateway };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=UpdateCurrentUserGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/account/updateCurrentUser/UpdateCurrentUserGateway.js","sources":["../../../../../src/admin/features/account/updateCurrentUser/UpdateCurrentUserGateway.ts"],"sourcesContent":["import { UpdateCurrentUserGateway as GatewayAbstraction } from \"./abstractions/index.js\";\nimport { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient\";\n\nconst UPDATE_CURRENT_USER = /* GraphQL */ `\n mutation UpdateCurrentUser($data: AdminUsersCurrentUserInput!) {\n adminUsers {\n updateCurrentUser(data: $data) {\n data {\n id\n email\n firstName\n lastName\n avatar\n external\n }\n error {\n code\n message\n data\n }\n }\n }\n }\n`;\n\ntype UpdateCurrentUserResponse = {\n adminUsers: {\n updateCurrentUser:\n | { data: GatewayAbstraction.Result; error: null }\n | { data: null; error: { code: string; message: string; data: any } };\n };\n};\n\nclass UpdateCurrentUserGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private readonly client: MainGraphQLClient.Interface) {}\n\n async execute(params: GatewayAbstraction.Params): Promise<GatewayAbstraction.Result> {\n const response = await this.client.execute<UpdateCurrentUserResponse>({\n query: UPDATE_CURRENT_USER,\n variables: { data: params }\n });\n\n const { data, error } = response.adminUsers.updateCurrentUser;\n\n if (!data) {\n throw new Error(error?.message || \"Could not update current user.\");\n }\n\n return data;\n }\n}\n\nexport const UpdateCurrentUserGateway = GatewayAbstraction.createImplementation({\n implementation: UpdateCurrentUserGatewayImpl,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["UPDATE_CURRENT_USER","UpdateCurrentUserGatewayImpl","client","params","response","data","error","Error","UpdateCurrentUserGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;AAGA,MAAMA,sBAAoC,CAAC;;;;;;;;;;;;;;;;;;;;AAoB3C,CAAC;AAUD,MAAMC;IACF,YAA6BC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAEnE,MAAM,QAAQC,MAAiC,EAAsC;QACjF,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAA4B;YAClE,OAAOJ;YACP,WAAW;gBAAE,MAAMG;YAAO;QAC9B;QAEA,MAAM,EAAEE,IAAI,EAAEC,KAAK,EAAE,GAAGF,SAAS,UAAU,CAAC,iBAAiB;QAE7D,IAAI,CAACC,MACD,MAAM,IAAIE,MAAMD,OAAO,WAAW;QAGtC,OAAOD;IACX;AACJ;AAEO,MAAMG,oDAA2BC,yBAAAA,oBAAuC,CAAC;IAC5E,gBAAgBR;IAChB,cAAc;QAACS;KAAkB;AACrC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UpdateCurrentUserUseCase as UseCaseAbstraction, UpdateCurrentUserGateway } from "./abstractions/index.js";
|
|
2
|
+
declare class UpdateCurrentUserUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
3
|
+
private readonly gateway;
|
|
4
|
+
constructor(gateway: UpdateCurrentUserGateway.Interface);
|
|
5
|
+
execute(params: UseCaseAbstraction.Params): Promise<UseCaseAbstraction.Result>;
|
|
6
|
+
}
|
|
7
|
+
export declare const UpdateCurrentUserUseCase: typeof UpdateCurrentUserUseCaseImpl & {
|
|
8
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/UpdateCurrentUserUseCase.js").IUpdateCurrentUserUseCase>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UpdateCurrentUserGateway, UpdateCurrentUserUseCase } from "./abstractions/index.js";
|
|
2
|
+
class UpdateCurrentUserUseCaseImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute(params) {
|
|
7
|
+
const result = await this.gateway.execute(params);
|
|
8
|
+
return result;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
const UpdateCurrentUserUseCase_UpdateCurrentUserUseCase = UpdateCurrentUserUseCase.createImplementation({
|
|
12
|
+
implementation: UpdateCurrentUserUseCaseImpl,
|
|
13
|
+
dependencies: [
|
|
14
|
+
UpdateCurrentUserGateway
|
|
15
|
+
]
|
|
16
|
+
});
|
|
17
|
+
export { UpdateCurrentUserUseCase_UpdateCurrentUserUseCase as UpdateCurrentUserUseCase };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=UpdateCurrentUserUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/account/updateCurrentUser/UpdateCurrentUserUseCase.js","sources":["../../../../../src/admin/features/account/updateCurrentUser/UpdateCurrentUserUseCase.ts"],"sourcesContent":["import {\n UpdateCurrentUserUseCase as UseCaseAbstraction,\n UpdateCurrentUserGateway\n} from \"./abstractions/index.js\";\n\nclass UpdateCurrentUserUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly gateway: UpdateCurrentUserGateway.Interface) {}\n\n async execute(params: UseCaseAbstraction.Params): Promise<UseCaseAbstraction.Result> {\n const result = await this.gateway.execute(params);\n return result;\n }\n}\n\nexport const UpdateCurrentUserUseCase = UseCaseAbstraction.createImplementation({\n implementation: UpdateCurrentUserUseCaseImpl,\n dependencies: [UpdateCurrentUserGateway]\n});\n"],"names":["UpdateCurrentUserUseCaseImpl","gateway","params","result","UpdateCurrentUserUseCase","UseCaseAbstraction","UpdateCurrentUserGateway"],"mappings":";AAKA,MAAMA;IACF,YAA6BC,OAA2C,CAAE;aAA7CA,OAAO,GAAPA;IAA8C;IAE3E,MAAM,QAAQC,MAAiC,EAAsC;QACjF,MAAMC,SAAS,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAACD;QAC1C,OAAOC;IACX;AACJ;AAEO,MAAMC,oDAA2BC,yBAAAA,oBAAuC,CAAC;IAC5E,gBAAgBL;IAChB,cAAc;QAACM;KAAyB;AAC5C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface IUpdateCurrentUserGatewayParams {
|
|
2
|
+
firstName?: string;
|
|
3
|
+
lastName?: string;
|
|
4
|
+
email?: string;
|
|
5
|
+
password?: string;
|
|
6
|
+
avatar?: {
|
|
7
|
+
src?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface IUpdateCurrentUserGatewayResult {
|
|
11
|
+
id: string;
|
|
12
|
+
email: string;
|
|
13
|
+
firstName: string;
|
|
14
|
+
lastName: string;
|
|
15
|
+
avatar: any;
|
|
16
|
+
external: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface IUpdateCurrentUserGateway {
|
|
19
|
+
execute(params: IUpdateCurrentUserGatewayParams): Promise<IUpdateCurrentUserGatewayResult>;
|
|
20
|
+
}
|
|
21
|
+
export declare const UpdateCurrentUserGateway: import("@webiny/di").Abstraction<IUpdateCurrentUserGateway>;
|
|
22
|
+
export declare namespace UpdateCurrentUserGateway {
|
|
23
|
+
type Interface = IUpdateCurrentUserGateway;
|
|
24
|
+
type Params = IUpdateCurrentUserGatewayParams;
|
|
25
|
+
type Result = IUpdateCurrentUserGatewayResult;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/account/updateCurrentUser/abstractions/UpdateCurrentUserGateway.js","sources":["../../../../../../src/admin/features/account/updateCurrentUser/abstractions/UpdateCurrentUserGateway.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface IUpdateCurrentUserGatewayParams {\n firstName?: string;\n lastName?: string;\n email?: string;\n password?: string;\n avatar?: { src?: string };\n}\n\nexport interface IUpdateCurrentUserGatewayResult {\n id: string;\n email: string;\n firstName: string;\n lastName: string;\n avatar: any;\n external: boolean;\n}\n\nexport interface IUpdateCurrentUserGateway {\n execute(params: IUpdateCurrentUserGatewayParams): Promise<IUpdateCurrentUserGatewayResult>;\n}\n\nexport const UpdateCurrentUserGateway = createAbstraction<IUpdateCurrentUserGateway>(\n \"Cognito/UpdateCurrentUserGateway\"\n);\n\nexport namespace UpdateCurrentUserGateway {\n export type Interface = IUpdateCurrentUserGateway;\n export type Params = IUpdateCurrentUserGatewayParams;\n export type Result = IUpdateCurrentUserGatewayResult;\n}\n"],"names":["UpdateCurrentUserGateway","createAbstraction"],"mappings":";AAuBO,MAAMA,2BAA2BC,kBACpC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IUpdateCurrentUserGatewayParams } from "./UpdateCurrentUserGateway.js";
|
|
2
|
+
import type { IUpdateCurrentUserGatewayResult } from "./UpdateCurrentUserGateway.js";
|
|
3
|
+
export type IUpdateCurrentUserUseCaseParams = IUpdateCurrentUserGatewayParams;
|
|
4
|
+
export type IUpdateCurrentUserUseCaseResult = IUpdateCurrentUserGatewayResult;
|
|
5
|
+
export interface IUpdateCurrentUserUseCase {
|
|
6
|
+
execute(params: IUpdateCurrentUserUseCaseParams): Promise<IUpdateCurrentUserUseCaseResult>;
|
|
7
|
+
}
|
|
8
|
+
export declare const UpdateCurrentUserUseCase: import("@webiny/di").Abstraction<IUpdateCurrentUserUseCase>;
|
|
9
|
+
export declare namespace UpdateCurrentUserUseCase {
|
|
10
|
+
type Interface = IUpdateCurrentUserUseCase;
|
|
11
|
+
type Params = IUpdateCurrentUserUseCaseParams;
|
|
12
|
+
type Result = IUpdateCurrentUserUseCaseResult;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/account/updateCurrentUser/abstractions/UpdateCurrentUserUseCase.js","sources":["../../../../../../src/admin/features/account/updateCurrentUser/abstractions/UpdateCurrentUserUseCase.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { IUpdateCurrentUserGatewayParams } from \"./UpdateCurrentUserGateway.js\";\nimport type { IUpdateCurrentUserGatewayResult } from \"./UpdateCurrentUserGateway.js\";\n\nexport type IUpdateCurrentUserUseCaseParams = IUpdateCurrentUserGatewayParams;\nexport type IUpdateCurrentUserUseCaseResult = IUpdateCurrentUserGatewayResult;\n\nexport interface IUpdateCurrentUserUseCase {\n execute(params: IUpdateCurrentUserUseCaseParams): Promise<IUpdateCurrentUserUseCaseResult>;\n}\n\nexport const UpdateCurrentUserUseCase = createAbstraction<IUpdateCurrentUserUseCase>(\n \"Cognito/UpdateCurrentUserUseCase\"\n);\n\nexport namespace UpdateCurrentUserUseCase {\n export type Interface = IUpdateCurrentUserUseCase;\n export type Params = IUpdateCurrentUserUseCaseParams;\n export type Result = IUpdateCurrentUserUseCaseResult;\n}\n"],"names":["UpdateCurrentUserUseCase","createAbstraction"],"mappings":";AAWO,MAAMA,2BAA2BC,kBACpC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { UpdateCurrentUserGateway } from "./UpdateCurrentUserGateway.js";
|
|
2
|
+
export type { IUpdateCurrentUserGateway } from "./UpdateCurrentUserGateway.js";
|
|
3
|
+
export type { IUpdateCurrentUserGatewayParams } from "./UpdateCurrentUserGateway.js";
|
|
4
|
+
export type { IUpdateCurrentUserGatewayResult } from "./UpdateCurrentUserGateway.js";
|
|
5
|
+
export { UpdateCurrentUserUseCase } from "./UpdateCurrentUserUseCase.js";
|
|
6
|
+
export type { IUpdateCurrentUserUseCase } from "./UpdateCurrentUserUseCase.js";
|
|
7
|
+
export type { IUpdateCurrentUserUseCaseParams } from "./UpdateCurrentUserUseCase.js";
|
|
8
|
+
export type { IUpdateCurrentUserUseCaseResult } from "./UpdateCurrentUserUseCase.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { UpdateCurrentUserUseCase } from "./abstractions/index.js";
|
|
3
|
+
import { UpdateCurrentUserUseCase as external_UpdateCurrentUserUseCase_js_UpdateCurrentUserUseCase } from "./UpdateCurrentUserUseCase.js";
|
|
4
|
+
import { UpdateCurrentUserGateway } from "./UpdateCurrentUserGateway.js";
|
|
5
|
+
const UpdateCurrentUserFeature = createFeature({
|
|
6
|
+
name: "Cognito/UpdateCurrentUser",
|
|
7
|
+
register (container) {
|
|
8
|
+
container.register(external_UpdateCurrentUserUseCase_js_UpdateCurrentUserUseCase);
|
|
9
|
+
container.register(UpdateCurrentUserGateway).inSingletonScope();
|
|
10
|
+
},
|
|
11
|
+
resolve (container) {
|
|
12
|
+
return {
|
|
13
|
+
useCase: container.resolve(UpdateCurrentUserUseCase)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { UpdateCurrentUserFeature };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/account/updateCurrentUser/feature.js","sources":["../../../../../src/admin/features/account/updateCurrentUser/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { UpdateCurrentUserUseCase as UseCaseAbstraction } from \"./abstractions/index.js\";\nimport { UpdateCurrentUserUseCase } from \"./UpdateCurrentUserUseCase.js\";\nimport { UpdateCurrentUserGateway } from \"./UpdateCurrentUserGateway.js\";\n\nexport const UpdateCurrentUserFeature = createFeature({\n name: \"Cognito/UpdateCurrentUser\",\n register(container) {\n container.register(UpdateCurrentUserUseCase);\n container.register(UpdateCurrentUserGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["UpdateCurrentUserFeature","createFeature","container","UpdateCurrentUserUseCase","UpdateCurrentUserGateway","UseCaseAbstraction"],"mappings":";;;;AAKO,MAAMA,2BAA2BC,cAAc;IAClD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,0BAA0B,gBAAgB;IACjE;IACA,SAAQF,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACG;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdateCurrentUserFeature } from "./feature.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdateCurrentUserFeature } from "./feature.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Permissions } from "@webiny/app-admin/exports/admin/security.js";
|
|
2
|
+
import { COGNITO_PERMISSIONS_SCHEMA } from "../../../admin/domain/permissionsSchema.js";
|
|
3
|
+
export declare const CognitoPermissions: import("@webiny/di").Abstraction<{
|
|
4
|
+
canAccess: (entityId: "user") => boolean;
|
|
5
|
+
canAction: (action: string, entityId: "user") => boolean;
|
|
6
|
+
} & {
|
|
7
|
+
canRead: (entityId: string) => boolean;
|
|
8
|
+
canCreate: (entityId: string) => boolean;
|
|
9
|
+
canEdit: (entityId: string, item?: import("@webiny/app-admin/permissions").OwnableItem) => boolean;
|
|
10
|
+
canDelete: (entityId: string, item?: import("@webiny/app-admin/permissions").OwnableItem) => boolean;
|
|
11
|
+
} & {
|
|
12
|
+
canPublish: (entityId: string) => boolean;
|
|
13
|
+
canUnpublish: (entityId: string) => boolean;
|
|
14
|
+
}>;
|
|
15
|
+
export declare namespace CognitoPermissions {
|
|
16
|
+
type Interface = Permissions<typeof COGNITO_PERMISSIONS_SCHEMA>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createPermissionsAbstraction } from "@webiny/app-admin/exports/admin/security.js";
|
|
2
|
+
import { COGNITO_PERMISSIONS_SCHEMA } from "../../domain/permissionsSchema.js";
|
|
3
|
+
const CognitoPermissions = createPermissionsAbstraction(COGNITO_PERMISSIONS_SCHEMA);
|
|
4
|
+
export { CognitoPermissions };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=abstractions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/permissions/abstractions.js","sources":["../../../../src/admin/features/permissions/abstractions.ts"],"sourcesContent":["import { createPermissionsAbstraction } from \"@webiny/app-admin/exports/admin/security.js\";\nimport type { Permissions } from \"@webiny/app-admin/exports/admin/security.js\";\nimport { COGNITO_PERMISSIONS_SCHEMA } from \"~/admin/domain/permissionsSchema.js\";\n\nexport const CognitoPermissions = createPermissionsAbstraction(COGNITO_PERMISSIONS_SCHEMA);\n\nexport namespace CognitoPermissions {\n export type Interface = Permissions<typeof COGNITO_PERMISSIONS_SCHEMA>;\n}\n"],"names":["CognitoPermissions","createPermissionsAbstraction","COGNITO_PERMISSIONS_SCHEMA"],"mappings":";;AAIO,MAAMA,qBAAqBC,6BAA6BC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const CognitoPermissionsFeature: import("@webiny/feature/admin/createFeature.js").FeatureDefinition<{
|
|
2
|
+
permissions: {
|
|
3
|
+
canAccess: (entityId: "user") => boolean;
|
|
4
|
+
canAction: (action: string, entityId: "user") => boolean;
|
|
5
|
+
} & {
|
|
6
|
+
canRead: (entityId: string) => boolean;
|
|
7
|
+
canCreate: (entityId: string) => boolean;
|
|
8
|
+
canEdit: (entityId: string, item?: import("@webiny/app-admin/index.js").OwnableItem) => boolean;
|
|
9
|
+
canDelete: (entityId: string, item?: import("@webiny/app-admin/index.js").OwnableItem) => boolean;
|
|
10
|
+
} & {
|
|
11
|
+
canPublish: (entityId: string) => boolean;
|
|
12
|
+
canUnpublish: (entityId: string) => boolean;
|
|
13
|
+
};
|
|
14
|
+
}, []>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createPermissionsFeature } from "@webiny/app-admin/exports/admin/security.js";
|
|
2
|
+
import { CognitoPermissions } from "./abstractions.js";
|
|
3
|
+
import { COGNITO_PERMISSIONS_SCHEMA } from "../../domain/permissionsSchema.js";
|
|
4
|
+
const CognitoPermissionsFeature = createPermissionsFeature(COGNITO_PERMISSIONS_SCHEMA, CognitoPermissions);
|
|
5
|
+
export { CognitoPermissionsFeature };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/permissions/feature.js","sources":["../../../../src/admin/features/permissions/feature.ts"],"sourcesContent":["import { createPermissionsFeature } from \"@webiny/app-admin/exports/admin/security.js\";\nimport { CognitoPermissions } from \"./abstractions.js\";\nimport { COGNITO_PERMISSIONS_SCHEMA } from \"~/admin/domain/permissionsSchema.js\";\n\nexport const CognitoPermissionsFeature = createPermissionsFeature(\n COGNITO_PERMISSIONS_SCHEMA,\n CognitoPermissions\n);\n"],"names":["CognitoPermissionsFeature","createPermissionsFeature","COGNITO_PERMISSIONS_SCHEMA","CognitoPermissions"],"mappings":";;;AAIO,MAAMA,4BAA4BC,yBACrCC,4BACAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { CreateUserGateway as GatewayAbstraction, type ICreateUserGatewayParams, type ICreateUserGatewayResult } from "./abstractions/index.js";
|
|
3
|
+
declare class CreateUserGraphQLGateway implements GatewayAbstraction.Interface {
|
|
4
|
+
private readonly client;
|
|
5
|
+
constructor(client: MainGraphQLClient.Interface);
|
|
6
|
+
execute(params: ICreateUserGatewayParams): Promise<ICreateUserGatewayResult>;
|
|
7
|
+
}
|
|
8
|
+
export declare const CreateUserGateway: typeof CreateUserGraphQLGateway & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/CreateUserGateway.js").ICreateUserGateway>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { CreateUserGateway } from "./abstractions/index.js";
|
|
3
|
+
const CREATE_USER = `
|
|
4
|
+
mutation CreateUser($data: AdminUsersCreateInput!) {
|
|
5
|
+
adminUsers {
|
|
6
|
+
user: createUser(data: $data) {
|
|
7
|
+
data {
|
|
8
|
+
id
|
|
9
|
+
email
|
|
10
|
+
firstName
|
|
11
|
+
lastName
|
|
12
|
+
avatar
|
|
13
|
+
createdOn
|
|
14
|
+
external
|
|
15
|
+
}
|
|
16
|
+
error {
|
|
17
|
+
code
|
|
18
|
+
message
|
|
19
|
+
data
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
class CreateUserGraphQLGateway {
|
|
26
|
+
constructor(client){
|
|
27
|
+
this.client = client;
|
|
28
|
+
}
|
|
29
|
+
async execute(params) {
|
|
30
|
+
const response = await this.client.execute({
|
|
31
|
+
query: CREATE_USER,
|
|
32
|
+
variables: {
|
|
33
|
+
data: params.data
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const envelope = response.adminUsers.user;
|
|
37
|
+
if (envelope.error) throw new Error(envelope.error.message);
|
|
38
|
+
return envelope.data;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const CreateUserGateway_CreateUserGateway = CreateUserGateway.createImplementation({
|
|
42
|
+
implementation: CreateUserGraphQLGateway,
|
|
43
|
+
dependencies: [
|
|
44
|
+
MainGraphQLClient
|
|
45
|
+
]
|
|
46
|
+
});
|
|
47
|
+
export { CreateUserGateway_CreateUserGateway as CreateUserGateway };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=CreateUserGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/createUser/CreateUserGateway.js","sources":["../../../../../src/admin/features/users/createUser/CreateUserGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/index.js\";\nimport {\n CreateUserGateway as GatewayAbstraction,\n type ICreateUserGatewayParams,\n type ICreateUserGatewayResult\n} from \"./abstractions/index.js\";\n\nconst CREATE_USER = /* GraphQL */ `\n mutation CreateUser($data: AdminUsersCreateInput!) {\n adminUsers {\n user: createUser(data: $data) {\n data {\n id\n email\n firstName\n lastName\n avatar\n createdOn\n external\n }\n error {\n code\n message\n data\n }\n }\n }\n }\n`;\n\ntype CreateUserResponse = {\n adminUsers: {\n user:\n | { data: ICreateUserGatewayResult; error: null }\n | { data: null; error: { code: string; message: string; data: unknown } };\n };\n};\n\nclass CreateUserGraphQLGateway implements GatewayAbstraction.Interface {\n constructor(private readonly client: MainGraphQLClient.Interface) {}\n\n async execute(params: ICreateUserGatewayParams): Promise<ICreateUserGatewayResult> {\n const response = await this.client.execute<CreateUserResponse>({\n query: CREATE_USER,\n variables: { data: params.data }\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 CreateUserGateway = GatewayAbstraction.createImplementation({\n implementation: CreateUserGraphQLGateway,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["CREATE_USER","CreateUserGraphQLGateway","client","params","response","envelope","Error","CreateUserGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;AAOA,MAAMA,cAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;AAqBnC,CAAC;AAUD,MAAMC;IACF,YAA6BC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAEnE,MAAM,QAAQC,MAAgC,EAAqC;QAC/E,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAqB;YAC3D,OAAOJ;YACP,WAAW;gBAAE,MAAMG,OAAO,IAAI;YAAC;QACnC;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,sCAAoBC,kBAAAA,oBAAuC,CAAC;IACrE,gBAAgBP;IAChB,cAAc;QAACQ;KAAkB;AACrC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateUserGateway, CreateUserUseCase as UseCaseAbstraction, type ICreateUserUseCaseParams, type ICreateUserUseCaseResult } from "./abstractions/index.js";
|
|
2
|
+
declare class CreateUserUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
3
|
+
private readonly gateway;
|
|
4
|
+
constructor(gateway: CreateUserGateway.Interface);
|
|
5
|
+
execute(params: ICreateUserUseCaseParams): Promise<ICreateUserUseCaseResult>;
|
|
6
|
+
}
|
|
7
|
+
export declare const CreateUserUseCase: typeof CreateUserUseCaseImpl & {
|
|
8
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions/CreateUserUseCase.js").ICreateUserUseCase>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateUserGateway, CreateUserUseCase } from "./abstractions/index.js";
|
|
2
|
+
class CreateUserUseCaseImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute(params) {
|
|
7
|
+
return this.gateway.execute(params);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const CreateUserUseCase_CreateUserUseCase = CreateUserUseCase.createImplementation({
|
|
11
|
+
implementation: CreateUserUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
CreateUserGateway
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { CreateUserUseCase_CreateUserUseCase as CreateUserUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=CreateUserUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/createUser/CreateUserUseCase.js","sources":["../../../../../src/admin/features/users/createUser/CreateUserUseCase.ts"],"sourcesContent":["import {\n CreateUserGateway,\n CreateUserUseCase as UseCaseAbstraction,\n type ICreateUserUseCaseParams,\n type ICreateUserUseCaseResult\n} from \"./abstractions/index.js\";\n\nclass CreateUserUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly gateway: CreateUserGateway.Interface) {}\n\n async execute(params: ICreateUserUseCaseParams): Promise<ICreateUserUseCaseResult> {\n return this.gateway.execute(params);\n }\n}\n\nexport const CreateUserUseCase = UseCaseAbstraction.createImplementation({\n implementation: CreateUserUseCaseImpl,\n dependencies: [CreateUserGateway]\n});\n"],"names":["CreateUserUseCaseImpl","gateway","params","CreateUserUseCase","UseCaseAbstraction","CreateUserGateway"],"mappings":";AAOA,MAAMA;IACF,YAA6BC,OAAoC,CAAE;aAAtCA,OAAO,GAAPA;IAAuC;IAEpE,MAAM,QAAQC,MAAgC,EAAqC;QAC/E,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,21 @@
|
|
|
1
|
+
export interface ICreateUserGatewayResult {
|
|
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 ICreateUserGatewayParams {
|
|
11
|
+
data: Record<string, any>;
|
|
12
|
+
}
|
|
13
|
+
export interface ICreateUserGateway {
|
|
14
|
+
execute(params: ICreateUserGatewayParams): Promise<ICreateUserGatewayResult>;
|
|
15
|
+
}
|
|
16
|
+
export declare const CreateUserGateway: import("@webiny/di").Abstraction<ICreateUserGateway>;
|
|
17
|
+
export declare namespace CreateUserGateway {
|
|
18
|
+
type Interface = ICreateUserGateway;
|
|
19
|
+
type Params = ICreateUserGatewayParams;
|
|
20
|
+
type Result = ICreateUserGatewayResult;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/createUser/abstractions/CreateUserGateway.js","sources":["../../../../../../src/admin/features/users/createUser/abstractions/CreateUserGateway.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface ICreateUserGatewayResult {\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 ICreateUserGatewayParams {\n data: Record<string, any>;\n}\n\nexport interface ICreateUserGateway {\n execute(params: ICreateUserGatewayParams): Promise<ICreateUserGatewayResult>;\n}\n\nexport const CreateUserGateway = createAbstraction<ICreateUserGateway>(\"CreateUserGateway\");\n\nexport namespace CreateUserGateway {\n export type Interface = ICreateUserGateway;\n export type Params = ICreateUserGatewayParams;\n export type Result = ICreateUserGatewayResult;\n}\n"],"names":["CreateUserGateway","createAbstraction"],"mappings":";AAoBO,MAAMA,oBAAoBC,kBAAsC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ICreateUserGatewayResult } from "./CreateUserGateway.js";
|
|
2
|
+
export type ICreateUserUseCaseResult = ICreateUserGatewayResult;
|
|
3
|
+
export interface ICreateUserUseCaseParams {
|
|
4
|
+
data: Record<string, any>;
|
|
5
|
+
}
|
|
6
|
+
export interface ICreateUserUseCase {
|
|
7
|
+
execute(params: ICreateUserUseCaseParams): Promise<ICreateUserUseCaseResult>;
|
|
8
|
+
}
|
|
9
|
+
export declare const CreateUserUseCase: import("@webiny/di").Abstraction<ICreateUserUseCase>;
|
|
10
|
+
export declare namespace CreateUserUseCase {
|
|
11
|
+
type Interface = ICreateUserUseCase;
|
|
12
|
+
type Params = ICreateUserUseCaseParams;
|
|
13
|
+
type Result = ICreateUserUseCaseResult;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/users/createUser/abstractions/CreateUserUseCase.js","sources":["../../../../../../src/admin/features/users/createUser/abstractions/CreateUserUseCase.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { ICreateUserGatewayResult } from \"./CreateUserGateway.js\";\n\nexport type ICreateUserUseCaseResult = ICreateUserGatewayResult;\n\nexport interface ICreateUserUseCaseParams {\n data: Record<string, any>;\n}\n\nexport interface ICreateUserUseCase {\n execute(params: ICreateUserUseCaseParams): Promise<ICreateUserUseCaseResult>;\n}\n\nexport const CreateUserUseCase = createAbstraction<ICreateUserUseCase>(\"CreateUserUseCase\");\n\nexport namespace CreateUserUseCase {\n export type Interface = ICreateUserUseCase;\n export type Params = ICreateUserUseCaseParams;\n export type Result = ICreateUserUseCaseResult;\n}\n"],"names":["CreateUserUseCase","createAbstraction"],"mappings":";AAaO,MAAMA,oBAAoBC,kBAAsC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { CreateUserGateway, type ICreateUserGateway, type ICreateUserGatewayParams, type ICreateUserGatewayResult } from "./CreateUserGateway.js";
|
|
2
|
+
export { CreateUserUseCase, type ICreateUserUseCase, type ICreateUserUseCaseParams, type ICreateUserUseCaseResult } from "./CreateUserUseCase.js";
|