@webiny/cognito 6.3.0 → 6.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/Cognito.js +23 -24
  2. package/Cognito.js.map +1 -1
  3. package/admin/Cognito.js +35 -41
  4. package/admin/Cognito.js.map +1 -1
  5. package/admin/CognitoLogin.js +8 -13
  6. package/admin/CognitoLogin.js.map +1 -1
  7. package/admin/Extension.js +17 -16
  8. package/admin/Extension.js.map +1 -1
  9. package/admin/SecurityPermission.js +11 -14
  10. package/admin/SecurityPermission.js.map +1 -1
  11. package/admin/domain/permissionsSchema.js +14 -9
  12. package/admin/domain/permissionsSchema.js.map +1 -1
  13. package/admin/features/permissions/abstractions.js +2 -1
  14. package/admin/features/permissions/abstractions.js.map +1 -1
  15. package/admin/features/permissions/feature.js +2 -1
  16. package/admin/features/permissions/feature.js.map +1 -1
  17. package/admin/federatedIdentityProviders.js +7 -6
  18. package/admin/federatedIdentityProviders.js.map +1 -1
  19. package/admin/presentation/Cognito/CognitoLoginScreen.js +39 -42
  20. package/admin/presentation/Cognito/CognitoLoginScreen.js.map +1 -1
  21. package/admin/presentation/Cognito/CognitoPresenter.js +250 -275
  22. package/admin/presentation/Cognito/CognitoPresenter.js.map +1 -1
  23. package/admin/presentation/Cognito/abstractions.js +2 -1
  24. package/admin/presentation/Cognito/abstractions.js.map +1 -1
  25. package/admin/presentation/Cognito/components/Divider.js +12 -13
  26. package/admin/presentation/Cognito/components/Divider.js.map +1 -1
  27. package/admin/presentation/Cognito/components/FederatedLogin.js +24 -29
  28. package/admin/presentation/Cognito/components/FederatedLogin.js.map +1 -1
  29. package/admin/presentation/Cognito/components/FederatedProviders.js +7 -10
  30. package/admin/presentation/Cognito/components/FederatedProviders.js.map +1 -1
  31. package/admin/presentation/Cognito/components/FooterSignIn.js +9 -12
  32. package/admin/presentation/Cognito/components/FooterSignIn.js.map +1 -1
  33. package/admin/presentation/Cognito/components/PasswordResetCodeSent.js +33 -37
  34. package/admin/presentation/Cognito/components/PasswordResetCodeSent.js.map +1 -1
  35. package/admin/presentation/Cognito/components/RequestPasswordResetCode.js +35 -39
  36. package/admin/presentation/Cognito/components/RequestPasswordResetCode.js.map +1 -1
  37. package/admin/presentation/Cognito/components/RequireNewPassword.js +44 -48
  38. package/admin/presentation/Cognito/components/RequireNewPassword.js.map +1 -1
  39. package/admin/presentation/Cognito/components/SetNewPassword.js +70 -71
  40. package/admin/presentation/Cognito/components/SetNewPassword.js.map +1 -1
  41. package/admin/presentation/Cognito/components/SignIn.js +52 -59
  42. package/admin/presentation/Cognito/components/SignIn.js.map +1 -1
  43. package/admin/presentation/Cognito/components/View.js +41 -60
  44. package/admin/presentation/Cognito/components/View.js.map +1 -1
  45. package/admin/presentation/Cognito/feature.js +12 -11
  46. package/admin/presentation/Cognito/feature.js.map +1 -1
  47. package/admin/presentation/shared/createPasswordValidator.js +13 -24
  48. package/admin/presentation/shared/createPasswordValidator.js.map +1 -1
  49. package/admin/presentation/shared/usePasswordValidator.js +11 -10
  50. package/admin/presentation/shared/usePasswordValidator.js.map +1 -1
  51. package/admin/presentation/userMenu/AccountDetails.js +15 -18
  52. package/admin/presentation/userMenu/AccountDetails.js.map +1 -1
  53. package/admin/presentation/userMenu/useIsDefaultTenant.js +5 -11
  54. package/admin/presentation/userMenu/useIsDefaultTenant.js.map +1 -1
  55. package/admin/routes.js +16 -17
  56. package/admin/routes.js.map +1 -1
  57. package/admin/ui/UserItem.js +0 -3
  58. package/admin/ui/components/AvatarImage/AvatarImage.js +25 -37
  59. package/admin/ui/components/AvatarImage/AvatarImage.js.map +1 -1
  60. package/admin/ui/components/AvatarImage/AvatarImagePreview.js +49 -51
  61. package/admin/ui/components/AvatarImage/AvatarImagePreview.js.map +1 -1
  62. package/admin/ui/components/AvatarImage/AvatarImageTrigger.js +25 -26
  63. package/admin/ui/components/AvatarImage/AvatarImageTrigger.js.map +1 -1
  64. package/admin/ui/components/AvatarImage/index.js +0 -2
  65. package/admin/ui/views/Account/Account.js +117 -130
  66. package/admin/ui/views/Account/Account.js.map +1 -1
  67. package/admin/ui/views/Account/graphql.js +5 -4
  68. package/admin/ui/views/Account/graphql.js.map +1 -1
  69. package/admin/ui/views/Account/index.js +0 -2
  70. package/admin/ui/views/Users/UsersDataList.js +146 -159
  71. package/admin/ui/views/Users/UsersDataList.js.map +1 -1
  72. package/admin/ui/views/Users/UsersForm.js +151 -162
  73. package/admin/ui/views/Users/UsersForm.js.map +1 -1
  74. package/admin/ui/views/Users/UsersView.js +9 -9
  75. package/admin/ui/views/Users/UsersView.js.map +1 -1
  76. package/admin/ui/views/Users/components/DeleteAction.js +23 -30
  77. package/admin/ui/views/Users/components/DeleteAction.js.map +1 -1
  78. package/admin/ui/views/Users/graphql.js +9 -10
  79. package/admin/ui/views/Users/graphql.js.map +1 -1
  80. package/admin/ui/views/Users/hooks/useUserForm.js +104 -114
  81. package/admin/ui/views/Users/hooks/useUserForm.js.map +1 -1
  82. package/admin/ui/views/Users/search.js +21 -0
  83. package/admin/ui/views/Users/search.js.map +1 -0
  84. package/admin/ui/views/utils.js +9 -7
  85. package/admin/ui/views/utils.js.map +1 -1
  86. package/api/CognitoApiFeature.js +15 -17
  87. package/api/CognitoApiFeature.js.map +1 -1
  88. package/api/domain/Username.js +5 -4
  89. package/api/domain/Username.js.map +1 -1
  90. package/api/domain/errors.js +37 -56
  91. package/api/domain/errors.js.map +1 -1
  92. package/api/features/CognitoIdp/CognitoIdentityProvider.js +49 -51
  93. package/api/features/CognitoIdp/CognitoIdentityProvider.js.map +1 -1
  94. package/api/features/CognitoIdp/abstractions.js +2 -1
  95. package/api/features/CognitoIdp/abstractions.js.map +1 -1
  96. package/api/features/CognitoIdp/feature.js +6 -5
  97. package/api/features/CognitoIdp/feature.js.map +1 -1
  98. package/api/features/CognitoIdp/index.js +0 -2
  99. package/api/features/CognitoService/CognitoService.js +93 -83
  100. package/api/features/CognitoService/CognitoService.js.map +1 -1
  101. package/api/features/CognitoService/abstractions.js +3 -5
  102. package/api/features/CognitoService/abstractions.js.map +1 -1
  103. package/api/features/CognitoService/feature.js +7 -6
  104. package/api/features/CognitoService/feature.js.map +1 -1
  105. package/api/features/CognitoService/index.js +0 -2
  106. package/api/features/CreateUser/CreateUserUseCase.js +62 -88
  107. package/api/features/CreateUser/CreateUserUseCase.js.map +1 -1
  108. package/api/features/CreateUser/abstractions.js +2 -1
  109. package/api/features/CreateUser/abstractions.js.map +1 -1
  110. package/api/features/CreateUser/feature.js +6 -5
  111. package/api/features/CreateUser/feature.js.map +1 -1
  112. package/api/features/CreateUser/index.js +0 -2
  113. package/api/features/CreateUser/schema.js +14 -13
  114. package/api/features/CreateUser/schema.js.map +1 -1
  115. package/api/features/DeleteUser/DeleteUserUseCase.js +34 -41
  116. package/api/features/DeleteUser/DeleteUserUseCase.js.map +1 -1
  117. package/api/features/DeleteUser/abstractions.js +2 -1
  118. package/api/features/DeleteUser/abstractions.js.map +1 -1
  119. package/api/features/DeleteUser/feature.js +6 -5
  120. package/api/features/DeleteUser/feature.js.map +1 -1
  121. package/api/features/DeleteUser/index.js +0 -2
  122. package/api/features/UpdateUser/UpdateUserUseCase.js +49 -71
  123. package/api/features/UpdateUser/UpdateUserUseCase.js.map +1 -1
  124. package/api/features/UpdateUser/abstractions.js +2 -1
  125. package/api/features/UpdateUser/abstractions.js.map +1 -1
  126. package/api/features/UpdateUser/feature.js +6 -5
  127. package/api/features/UpdateUser/feature.js.map +1 -1
  128. package/api/features/UpdateUser/index.js +0 -2
  129. package/api/features/UpdateUser/schema.js +13 -12
  130. package/api/features/UpdateUser/schema.js.map +1 -1
  131. package/api/features/UserInstaller/UserInstaller.js +36 -36
  132. package/api/features/UserInstaller/UserInstaller.js.map +1 -1
  133. package/api/features/UserInstaller/feature.js +6 -5
  134. package/api/features/UserInstaller/feature.js.map +1 -1
  135. package/api/graphql/user.gql.js +83 -107
  136. package/api/graphql/user.gql.js.map +1 -1
  137. package/index.js +0 -2
  138. package/package.json +23 -24
  139. package/static/svg/search.43fa797c.svg +20 -0
  140. package/admin/ui/UserItem.js.map +0 -1
  141. package/admin/ui/components/AvatarImage/index.js.map +0 -1
  142. package/admin/ui/views/Account/index.js.map +0 -1
  143. package/api/features/CognitoIdp/index.js.map +0 -1
  144. package/api/features/CognitoService/index.js.map +0 -1
  145. package/api/features/CreateUser/index.js.map +0 -1
  146. package/api/features/DeleteUser/index.js.map +0 -1
  147. package/api/features/UpdateUser/index.js.map +0 -1
  148. package/index.js.map +0 -1
@@ -7,8 +7,8 @@ import { CreateUserUseCase } from "../features/CreateUser/index.js";
7
7
  import { UpdateUserUseCase } from "../features/UpdateUser/index.js";
8
8
  import { DeleteUserUseCase } from "../features/DeleteUser/index.js";
9
9
  class AdminUserSchemaImpl {
10
- async execute(builder) {
11
- builder.addTypeDefs(/* GraphQL */`
10
+ async execute(builder) {
11
+ builder.addTypeDefs(`
12
12
  """
13
13
  This input type is used by administrators to create other user's accounts within the same tenant.
14
14
  """
@@ -56,112 +56,88 @@ class AdminUserSchemaImpl {
56
56
  deleteUser(id: ID!): AdminUsersBooleanResponse
57
57
  }
58
58
  `);
59
- builder.addResolver({
60
- path: "AdminUsersMutation.updateCurrentUser",
61
- dependencies: [IdentityContext, GetUserUseCase, UpdateUserUseCase],
62
- resolver: (identityContext, getUserUseCase, updateUserUseCase) => {
63
- return async ({
64
- args
65
- }) => {
66
- const identity = identityContext.getIdentity();
67
- if (!identity.isAdmin()) {
68
- return new NotAuthorizedResponse();
69
- }
70
-
71
- // Current user might not have permissions for `adminUsers`.
72
- return await identityContext.withoutAuthorization(async () => {
73
- const getUserResult = await getUserUseCase.execute({
74
- id: identity.id
75
- });
76
- if (getUserResult.isFail()) {
77
- // TODO: check if current identity belongs to a different tenant.
78
- // TODO: If so, switch to that other tenant, and update his profile there.
79
- return new NotFoundResponse("User not found!");
80
- }
81
- const user = getUserResult.value;
82
-
83
- // TODO: UpdateCurrentUser should be a dedicated use case
84
- const updateResult = await updateUserUseCase.execute(user.id, args.data);
85
- if (updateResult.isFail()) {
86
- return new ErrorResponse({
87
- message: updateResult.error.message,
88
- code: updateResult.error.code,
89
- data: updateResult.error.data
90
- });
91
- }
92
- return new Response(updateResult.value);
93
- });
94
- };
95
- }
96
- });
97
- builder.addResolver({
98
- path: "AdminUsersMutation.createUser",
99
- dependencies: [CreateUserUseCase],
100
- resolver: createUserUseCase => {
101
- return async ({
102
- args
103
- }) => {
104
- const result = await createUserUseCase.execute(args.data);
105
- if (result.isFail()) {
106
- return new ErrorResponse({
107
- message: result.error.message,
108
- code: result.error.code,
109
- data: result.error.data
110
- });
111
- }
112
- return new Response(result.value);
113
- };
114
- }
115
- });
116
- builder.addResolver({
117
- path: "AdminUsersMutation.updateUser",
118
- dependencies: [UpdateUserUseCase, IdentityContext],
119
- resolver: (updateUserUseCase, identityContext) => {
120
- return async ({
121
- args
122
- }) => {
123
- if (args.id === identityContext.getIdentity().id) {
124
- return new ErrorResponse({
125
- message: "You're not allowed to update your own account using this API.",
126
- code: "AdminUser/GraphQL/UpdateSelf"
127
- });
128
- }
129
- const result = await updateUserUseCase.execute(args.id, args.data);
130
- if (result.isFail()) {
131
- return new ErrorResponse({
132
- message: result.error.message,
133
- code: result.error.code
134
- });
135
- }
136
- return new Response(result.value);
137
- };
138
- }
139
- });
140
- builder.addResolver({
141
- path: "AdminUsersMutation.deleteUser",
142
- dependencies: [DeleteUserUseCase],
143
- resolver: deleteUserUseCase => {
144
- return async ({
145
- args
146
- }) => {
147
- const result = await deleteUserUseCase.execute(args.id);
148
- if (result.isFail()) {
149
- return new ErrorResponse({
150
- message: result.error.message,
151
- code: result.error.code,
152
- data: result.error.data
153
- });
154
- }
155
- return new Response(true);
156
- };
157
- }
158
- });
159
- return builder;
160
- }
59
+ builder.addResolver({
60
+ path: "AdminUsersMutation.updateCurrentUser",
61
+ dependencies: [
62
+ IdentityContext,
63
+ GetUserUseCase,
64
+ UpdateUserUseCase
65
+ ],
66
+ resolver: (identityContext, getUserUseCase, updateUserUseCase)=>async ({ args })=>{
67
+ const identity = identityContext.getIdentity();
68
+ if (!identity.isAdmin()) return new NotAuthorizedResponse();
69
+ return await identityContext.withoutAuthorization(async ()=>{
70
+ const getUserResult = await getUserUseCase.execute({
71
+ id: identity.id
72
+ });
73
+ if (getUserResult.isFail()) return new NotFoundResponse("User not found!");
74
+ const user = getUserResult.value;
75
+ const updateResult = await updateUserUseCase.execute(user.id, args.data);
76
+ if (updateResult.isFail()) return new ErrorResponse({
77
+ message: updateResult.error.message,
78
+ code: updateResult.error.code,
79
+ data: updateResult.error.data
80
+ });
81
+ return new Response(updateResult.value);
82
+ });
83
+ }
84
+ });
85
+ builder.addResolver({
86
+ path: "AdminUsersMutation.createUser",
87
+ dependencies: [
88
+ CreateUserUseCase
89
+ ],
90
+ resolver: (createUserUseCase)=>async ({ args })=>{
91
+ const result = await createUserUseCase.execute(args.data);
92
+ if (result.isFail()) return new ErrorResponse({
93
+ message: result.error.message,
94
+ code: result.error.code,
95
+ data: result.error.data
96
+ });
97
+ return new Response(result.value);
98
+ }
99
+ });
100
+ builder.addResolver({
101
+ path: "AdminUsersMutation.updateUser",
102
+ dependencies: [
103
+ UpdateUserUseCase,
104
+ IdentityContext
105
+ ],
106
+ resolver: (updateUserUseCase, identityContext)=>async ({ args })=>{
107
+ if (args.id === identityContext.getIdentity().id) return new ErrorResponse({
108
+ message: "You're not allowed to update your own account using this API.",
109
+ code: "AdminUser/GraphQL/UpdateSelf"
110
+ });
111
+ const result = await updateUserUseCase.execute(args.id, args.data);
112
+ if (result.isFail()) return new ErrorResponse({
113
+ message: result.error.message,
114
+ code: result.error.code
115
+ });
116
+ return new Response(result.value);
117
+ }
118
+ });
119
+ builder.addResolver({
120
+ path: "AdminUsersMutation.deleteUser",
121
+ dependencies: [
122
+ DeleteUserUseCase
123
+ ],
124
+ resolver: (deleteUserUseCase)=>async ({ args })=>{
125
+ const result = await deleteUserUseCase.execute(args.id);
126
+ if (result.isFail()) return new ErrorResponse({
127
+ message: result.error.message,
128
+ code: result.error.code,
129
+ data: result.error.data
130
+ });
131
+ return new Response(true);
132
+ }
133
+ });
134
+ return builder;
135
+ }
161
136
  }
162
- export const AdminUsersSchema = CoreGraphQLSchemaFactory.createImplementation({
163
- implementation: AdminUserSchemaImpl,
164
- dependencies: []
137
+ const AdminUsersSchema = CoreGraphQLSchemaFactory.createImplementation({
138
+ implementation: AdminUserSchemaImpl,
139
+ dependencies: []
165
140
  });
141
+ export { AdminUsersSchema };
166
142
 
167
143
  //# sourceMappingURL=user.gql.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ErrorResponse","NotFoundResponse","Response","CoreGraphQLSchemaFactory","IdentityContext","GetUserUseCase","NotAuthorizedResponse","CreateUserUseCase","UpdateUserUseCase","DeleteUserUseCase","AdminUserSchemaImpl","execute","builder","addTypeDefs","addResolver","path","dependencies","resolver","identityContext","getUserUseCase","updateUserUseCase","args","identity","getIdentity","isAdmin","withoutAuthorization","getUserResult","id","isFail","user","value","updateResult","data","message","error","code","createUserUseCase","result","deleteUserUseCase","AdminUsersSchema","createImplementation","implementation"],"sources":["user.gql.ts"],"sourcesContent":["import { ErrorResponse, NotFoundResponse, Response } from \"@webiny/handler-graphql/responses.js\";\nimport { CoreGraphQLSchemaFactory } from \"@webiny/handler-graphql/graphql/abstractions.js\";\nimport { IdentityContext } from \"@webiny/api-core/features/security/IdentityContext/index.js\";\nimport { GetUserUseCase } from \"@webiny/api-core/features/users/GetUser/index.js\";\nimport NotAuthorizedResponse from \"@webiny/api-core/graphql/security/NotAuthorizedResponse.js\";\nimport { CreateUserUseCase } from \"~/api/features/CreateUser/index.js\";\nimport { UpdateUserUseCase } from \"~/api/features/UpdateUser/index.js\";\nimport { DeleteUserUseCase } from \"~/api/features/DeleteUser/index.js\";\n\nclass AdminUserSchemaImpl implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addTypeDefs(/* GraphQL */ `\n \"\"\"\n This input type is used by administrators to create other user's accounts within the same tenant.\n \"\"\"\n input AdminUsersCreateInput {\n email: String!\n firstName: String!\n lastName: String!\n password: String!\n avatar: JSON\n roles: [RefInput!]\n teams: [RefInput!]\n }\n\n \"\"\"\n This input type is used by administrators to update other user's accounts within the same tenant.\n \"\"\"\n input AdminUsersUpdateInput {\n email: String\n firstName: String\n lastName: String\n password: String\n avatar: JSON\n roles: [RefInput!]\n teams: [RefInput!]\n }\n\n \"\"\"\n This input type is used by the user who is updating his own account\n \"\"\"\n input AdminUsersCurrentUserInput {\n email: String\n firstName: String\n lastName: String\n password: String\n avatar: JSON\n }\n\n extend type AdminUsersMutation {\n updateCurrentUser(data: AdminUsersCurrentUserInput!): AdminUsersResponse\n\n createUser(data: AdminUsersCreateInput!): AdminUsersResponse\n\n updateUser(id: ID!, data: AdminUsersUpdateInput!): AdminUsersResponse\n\n deleteUser(id: ID!): AdminUsersBooleanResponse\n }\n `);\n\n builder.addResolver({\n path: \"AdminUsersMutation.updateCurrentUser\",\n dependencies: [IdentityContext, GetUserUseCase, UpdateUserUseCase],\n resolver: (\n identityContext: IdentityContext.Interface,\n getUserUseCase: GetUserUseCase.Interface,\n updateUserUseCase: UpdateUserUseCase.Interface\n ) => {\n return async ({ args }) => {\n const identity = identityContext.getIdentity();\n if (!identity.isAdmin()) {\n return new NotAuthorizedResponse();\n }\n\n // Current user might not have permissions for `adminUsers`.\n return await identityContext.withoutAuthorization(async () => {\n const getUserResult = await getUserUseCase.execute({ id: identity.id });\n if (getUserResult.isFail()) {\n // TODO: check if current identity belongs to a different tenant.\n // TODO: If so, switch to that other tenant, and update his profile there.\n return new NotFoundResponse(\"User not found!\");\n }\n\n const user = getUserResult.value;\n\n // TODO: UpdateCurrentUser should be a dedicated use case\n const updateResult = await updateUserUseCase.execute(user.id, args.data);\n if (updateResult.isFail()) {\n return new ErrorResponse({\n message: updateResult.error.message,\n code: updateResult.error.code,\n data: updateResult.error.data\n });\n }\n\n return new Response(updateResult.value);\n });\n };\n }\n });\n\n builder.addResolver({\n path: \"AdminUsersMutation.createUser\",\n dependencies: [CreateUserUseCase],\n resolver: (createUserUseCase: CreateUserUseCase.Interface) => {\n return async ({ args }) => {\n const result = await createUserUseCase.execute(args.data);\n if (result.isFail()) {\n return new ErrorResponse({\n message: result.error.message,\n code: result.error.code,\n data: result.error.data\n });\n }\n\n return new Response(result.value);\n };\n }\n });\n\n builder.addResolver({\n path: \"AdminUsersMutation.updateUser\",\n dependencies: [UpdateUserUseCase, IdentityContext],\n resolver: (\n updateUserUseCase: UpdateUserUseCase.Interface,\n identityContext: IdentityContext.Interface\n ) => {\n return async ({ args }) => {\n if (args.id === identityContext.getIdentity().id) {\n return new ErrorResponse({\n message:\n \"You're not allowed to update your own account using this API.\",\n code: \"AdminUser/GraphQL/UpdateSelf\"\n });\n }\n\n const result = await updateUserUseCase.execute(args.id, args.data);\n if (result.isFail()) {\n return new ErrorResponse({\n message: result.error.message,\n code: result.error.code\n });\n }\n\n return new Response(result.value);\n };\n }\n });\n\n builder.addResolver({\n path: \"AdminUsersMutation.deleteUser\",\n dependencies: [DeleteUserUseCase],\n resolver: (deleteUserUseCase: DeleteUserUseCase.Interface) => {\n return async ({ args }) => {\n const result = await deleteUserUseCase.execute(args.id);\n if (result.isFail()) {\n return new ErrorResponse({\n message: result.error.message,\n code: result.error.code,\n data: result.error.data\n });\n }\n\n return new Response(true);\n };\n }\n });\n\n return builder;\n }\n}\n\nexport const AdminUsersSchema = CoreGraphQLSchemaFactory.createImplementation({\n implementation: AdminUserSchemaImpl,\n dependencies: []\n});\n"],"mappings":"AAAA,SAASA,aAAa,EAAEC,gBAAgB,EAAEC,QAAQ,QAAQ,sCAAsC;AAChG,SAASC,wBAAwB,QAAQ,iDAAiD;AAC1F,SAASC,eAAe,QAAQ,6DAA6D;AAC7F,SAASC,cAAc,QAAQ,kDAAkD;AACjF,OAAOC,qBAAqB,MAAM,4DAA4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,OAAO,MAAM2B,gBAAgB,GAAGpC,wBAAwB,CAACqC,oBAAoB,CAAC;EAC1EC,cAAc,EAAE/B,mBAAmB;EACnCM,YAAY,EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"api/graphql/user.gql.js","sources":["../../../src/api/graphql/user.gql.ts"],"sourcesContent":["import { ErrorResponse, NotFoundResponse, Response } from \"@webiny/handler-graphql/responses.js\";\nimport { CoreGraphQLSchemaFactory } from \"@webiny/handler-graphql/graphql/abstractions.js\";\nimport { IdentityContext } from \"@webiny/api-core/features/security/IdentityContext/index.js\";\nimport { GetUserUseCase } from \"@webiny/api-core/features/users/GetUser/index.js\";\nimport NotAuthorizedResponse from \"@webiny/api-core/graphql/security/NotAuthorizedResponse.js\";\nimport { CreateUserUseCase } from \"~/api/features/CreateUser/index.js\";\nimport { UpdateUserUseCase } from \"~/api/features/UpdateUser/index.js\";\nimport { DeleteUserUseCase } from \"~/api/features/DeleteUser/index.js\";\n\nclass AdminUserSchemaImpl implements CoreGraphQLSchemaFactory.Interface {\n async execute(\n builder: CoreGraphQLSchemaFactory.SchemaBuilder\n ): CoreGraphQLSchemaFactory.Return {\n builder.addTypeDefs(/* GraphQL */ `\n \"\"\"\n This input type is used by administrators to create other user's accounts within the same tenant.\n \"\"\"\n input AdminUsersCreateInput {\n email: String!\n firstName: String!\n lastName: String!\n password: String!\n avatar: JSON\n roles: [RefInput!]\n teams: [RefInput!]\n }\n\n \"\"\"\n This input type is used by administrators to update other user's accounts within the same tenant.\n \"\"\"\n input AdminUsersUpdateInput {\n email: String\n firstName: String\n lastName: String\n password: String\n avatar: JSON\n roles: [RefInput!]\n teams: [RefInput!]\n }\n\n \"\"\"\n This input type is used by the user who is updating his own account\n \"\"\"\n input AdminUsersCurrentUserInput {\n email: String\n firstName: String\n lastName: String\n password: String\n avatar: JSON\n }\n\n extend type AdminUsersMutation {\n updateCurrentUser(data: AdminUsersCurrentUserInput!): AdminUsersResponse\n\n createUser(data: AdminUsersCreateInput!): AdminUsersResponse\n\n updateUser(id: ID!, data: AdminUsersUpdateInput!): AdminUsersResponse\n\n deleteUser(id: ID!): AdminUsersBooleanResponse\n }\n `);\n\n builder.addResolver({\n path: \"AdminUsersMutation.updateCurrentUser\",\n dependencies: [IdentityContext, GetUserUseCase, UpdateUserUseCase],\n resolver: (\n identityContext: IdentityContext.Interface,\n getUserUseCase: GetUserUseCase.Interface,\n updateUserUseCase: UpdateUserUseCase.Interface\n ) => {\n return async ({ args }) => {\n const identity = identityContext.getIdentity();\n if (!identity.isAdmin()) {\n return new NotAuthorizedResponse();\n }\n\n // Current user might not have permissions for `adminUsers`.\n return await identityContext.withoutAuthorization(async () => {\n const getUserResult = await getUserUseCase.execute({ id: identity.id });\n if (getUserResult.isFail()) {\n // TODO: check if current identity belongs to a different tenant.\n // TODO: If so, switch to that other tenant, and update his profile there.\n return new NotFoundResponse(\"User not found!\");\n }\n\n const user = getUserResult.value;\n\n // TODO: UpdateCurrentUser should be a dedicated use case\n const updateResult = await updateUserUseCase.execute(user.id, args.data);\n if (updateResult.isFail()) {\n return new ErrorResponse({\n message: updateResult.error.message,\n code: updateResult.error.code,\n data: updateResult.error.data\n });\n }\n\n return new Response(updateResult.value);\n });\n };\n }\n });\n\n builder.addResolver({\n path: \"AdminUsersMutation.createUser\",\n dependencies: [CreateUserUseCase],\n resolver: (createUserUseCase: CreateUserUseCase.Interface) => {\n return async ({ args }) => {\n const result = await createUserUseCase.execute(args.data);\n if (result.isFail()) {\n return new ErrorResponse({\n message: result.error.message,\n code: result.error.code,\n data: result.error.data\n });\n }\n\n return new Response(result.value);\n };\n }\n });\n\n builder.addResolver({\n path: \"AdminUsersMutation.updateUser\",\n dependencies: [UpdateUserUseCase, IdentityContext],\n resolver: (\n updateUserUseCase: UpdateUserUseCase.Interface,\n identityContext: IdentityContext.Interface\n ) => {\n return async ({ args }) => {\n if (args.id === identityContext.getIdentity().id) {\n return new ErrorResponse({\n message:\n \"You're not allowed to update your own account using this API.\",\n code: \"AdminUser/GraphQL/UpdateSelf\"\n });\n }\n\n const result = await updateUserUseCase.execute(args.id, args.data);\n if (result.isFail()) {\n return new ErrorResponse({\n message: result.error.message,\n code: result.error.code\n });\n }\n\n return new Response(result.value);\n };\n }\n });\n\n builder.addResolver({\n path: \"AdminUsersMutation.deleteUser\",\n dependencies: [DeleteUserUseCase],\n resolver: (deleteUserUseCase: DeleteUserUseCase.Interface) => {\n return async ({ args }) => {\n const result = await deleteUserUseCase.execute(args.id);\n if (result.isFail()) {\n return new ErrorResponse({\n message: result.error.message,\n code: result.error.code,\n data: result.error.data\n });\n }\n\n return new Response(true);\n };\n }\n });\n\n return builder;\n }\n}\n\nexport const AdminUsersSchema = CoreGraphQLSchemaFactory.createImplementation({\n implementation: AdminUserSchemaImpl,\n dependencies: []\n});\n"],"names":["AdminUserSchemaImpl","builder","IdentityContext","GetUserUseCase","UpdateUserUseCase","identityContext","getUserUseCase","updateUserUseCase","args","identity","NotAuthorizedResponse","getUserResult","NotFoundResponse","user","updateResult","ErrorResponse","Response","CreateUserUseCase","createUserUseCase","result","DeleteUserUseCase","deleteUserUseCase","AdminUsersSchema","CoreGraphQLSchemaFactory"],"mappings":";;;;;;;;AASA,MAAMA;IACF,MAAM,QACFC,OAA+C,EAChB;QAC/BA,QAAQ,WAAW,CAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA+CnC,CAAC;QAEDA,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN,cAAc;gBAACC;gBAAiBC;gBAAgBC;aAAkB;YAClE,UAAU,CACNC,iBACAC,gBACAC,oBAEO,OAAO,EAAEC,IAAI,EAAE;oBAClB,MAAMC,WAAWJ,gBAAgB,WAAW;oBAC5C,IAAI,CAACI,SAAS,OAAO,IACjB,OAAO,IAAIC;oBAIf,OAAO,MAAML,gBAAgB,oBAAoB,CAAC;wBAC9C,MAAMM,gBAAgB,MAAML,eAAe,OAAO,CAAC;4BAAE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OAAO,KAAK,CAAC,OAAO;wBAC7B,MAAMA,OAAO,KAAK,CAAC,IAAI;oBAC3B;oBAGJ,OAAO,IAAIH,SAASG,OAAO,KAAK;gBACpC;QAER;QAEAlB,QAAQ,WAAW,CAAC;YAChB,MAAM;YACN,cAAc;gBAACmB;aAAkB;YACjC,UAAU,CAACC,oBACA,OAAO,EAAEb,IAAI,EAAE;oBAClB,MAAMW,SAAS,MAAME,kBAAkB,OAAO,CAACb,KAAK,EAAE;oBACtD,IAAIW,OAAO,MAAM,IACb,OAAO,IAAIJ,cAAc;wBACrB,SAASI,OAAO,KAAK,CAAC,OAAO;wBAC7B,MAAMA,OAAO,KAAK,CAAC,IAAI;wBACvB,MAAMA,OAAO,KAAK,CAAC,IAAI;oBAC3B;oBAGJ,OAAO,IAAIH,SAAS;gBACxB;QAER;QAEA,OAAOf;IACX;AACJ;AAEO,MAAMqB,mBAAmBC,yBAAyB,oBAAoB,CAAC;IAC1E,gBAAgBvB;IAChB,cAAc,EAAE;AACpB"}
package/index.js CHANGED
@@ -1,4 +1,2 @@
1
1
  export { Cognito } from "./Cognito.js";
2
2
  export { CognitoIdpConfig } from "./api/features/CognitoIdp/index.js";
3
-
4
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/cognito",
3
- "version": "6.3.0",
3
+ "version": "6.4.0-beta.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
@@ -12,40 +12,39 @@
12
12
  "author": "Webiny Ltd.",
13
13
  "dependencies": {
14
14
  "@apollo/react-hooks": "3.1.5",
15
- "@webiny/admin-ui": "6.3.0",
16
- "@webiny/api-core": "6.3.0",
17
- "@webiny/app": "6.3.0",
18
- "@webiny/app-admin": "6.3.0",
19
- "@webiny/aws-sdk": "6.3.0",
20
- "@webiny/di": "0.2.3",
21
- "@webiny/feature": "6.3.0",
22
- "@webiny/form": "6.3.0",
23
- "@webiny/handler-graphql": "6.3.0",
24
- "@webiny/icons": "6.3.0",
25
- "@webiny/project": "6.3.0",
26
- "@webiny/project-aws": "6.3.0",
27
- "@webiny/ui": "6.3.0",
28
- "@webiny/validation": "6.3.0",
29
- "aws-amplify": "6.16.4",
30
- "graphql": "16.13.2",
15
+ "@webiny/admin-ui": "6.4.0-beta.1",
16
+ "@webiny/api-core": "6.4.0-beta.1",
17
+ "@webiny/app": "6.4.0-beta.1",
18
+ "@webiny/app-admin": "6.4.0-beta.1",
19
+ "@webiny/aws-sdk": "6.4.0-beta.1",
20
+ "@webiny/di": "1.0.0",
21
+ "@webiny/feature": "6.4.0-beta.1",
22
+ "@webiny/form": "6.4.0-beta.1",
23
+ "@webiny/handler-graphql": "6.4.0-beta.1",
24
+ "@webiny/icons": "6.4.0-beta.1",
25
+ "@webiny/project": "6.4.0-beta.1",
26
+ "@webiny/project-aws": "6.4.0-beta.1",
27
+ "@webiny/validation": "6.4.0-beta.1",
28
+ "aws-amplify": "6.17.0",
29
+ "graphql": "16.14.0",
31
30
  "graphql-tag": "2.12.6",
32
31
  "jsonwebtoken": "9.0.3",
33
32
  "lodash": "4.18.1",
34
- "mobx": "6.15.1",
33
+ "mobx": "6.15.3",
35
34
  "mobx-react-lite": "4.1.1",
36
35
  "react": "18.3.1",
37
- "zod": "4.3.6"
36
+ "zod": "4.4.3"
38
37
  },
39
38
  "devDependencies": {
40
39
  "@types/react": "18.3.28",
41
- "@webiny/build-tools": "6.3.0",
42
- "@webiny/project-utils": "6.3.0",
43
- "@webiny/wcp": "6.3.0",
44
- "vitest": "4.1.5"
40
+ "@webiny/build-tools": "6.4.0-beta.1",
41
+ "@webiny/project-utils": "6.4.0-beta.1",
42
+ "@webiny/wcp": "6.4.0-beta.1",
43
+ "vitest": "4.1.6"
45
44
  },
46
45
  "publishConfig": {
47
46
  "access": "public",
48
47
  "directory": "dist"
49
48
  },
50
- "gitHead": "7cefe15431dbd65504e1f58147dc9e55bcbfa693"
49
+ "gitHead": "73237b8243693038c072bae1c0b783387448cbbe"
51
50
  }
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px"
4
+ height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
5
+ <g id="Header_x2F_BG" display="none">
6
+ <rect x="-358" y="-314" display="inline" fill="#F1F1F2" width="520" height="520"/>
7
+ </g>
8
+ <g id="Bounding_Boxes">
9
+ <g id="ui_x5F_spec_x5F_header_copy_3" display="none">
10
+ </g>
11
+ <path fill="none" d="M0,0h24v24H0V0z"/>
12
+ </g>
13
+ <g id="Rounded">
14
+ <g id="ui_x5F_spec_x5F_header_copy_5" display="none">
15
+ </g>
16
+ <path fill="currentColor" d="M15.5,14h-0.79l-0.28-0.27c1.2-1.4,1.82-3.31,1.48-5.34c-0.47-2.78-2.79-5-5.59-5.34c-4.23-0.52-7.79,3.04-7.27,7.27
17
+ c0.34,2.8,2.56,5.12,5.34,5.59c2.03,0.34,3.94-0.28,5.34-1.48L14,14.71v0.79l4.25,4.25c0.41,0.41,1.08,0.41,1.49,0l0,0
18
+ c0.41-0.41,0.41-1.08,0-1.49L15.5,14z M9.5,14C7.01,14,5,11.99,5,9.5S7.01,5,9.5,5S14,7.01,14,9.5S11.99,14,9.5,14z"/>
19
+ </g>
20
+ </svg>
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["UserItem.ts"],"sourcesContent":["export interface UserItem {\n id: string;\n avatar: {\n src: string;\n };\n firstName: string;\n lastName: string;\n email: string;\n external?: boolean;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./AvatarImage.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["UserAccountForm"],"sources":["index.ts"],"sourcesContent":["export { UserAccountForm } from \"./Account.js\";\n"],"mappings":"AAAA,SAASA,eAAe","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["CognitoIdpConfig","CognitoIdpFeature"],"sources":["index.ts"],"sourcesContent":["export { CognitoIdpConfig } from \"./abstractions.js\";\nexport { CognitoIdpFeature } from \"./feature.js\";\n"],"mappings":"AAAA,SAASA,gBAAgB;AACzB,SAASC,iBAAiB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./abstractions.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./abstractions.js\";\nexport * from \"./feature.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./abstractions.js\";\nexport * from \"./feature.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./abstractions.js\";\nexport * from \"./feature.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
package/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"names":["Cognito","CognitoIdpConfig"],"sources":["index.ts"],"sourcesContent":["export { Cognito } from \"./Cognito.js\";\nexport { CognitoIdpConfig } from \"./api/features/CognitoIdp/index.js\";\n"],"mappings":"AAAA,SAASA,OAAO;AAChB,SAASC,gBAAgB","ignoreList":[]}