@grantjs/schema 1.7.0 → 1.8.0
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/package.json +1 -1
- package/src/generated/graphql.ts +2 -0
- package/src/generated/resolvers.ts +1 -0
- package/src/generated/schema-types.ts +4 -1
- package/src/operations/me/my-user-authentication-methods.graphql +1 -0
- package/src/schema/me/inputs/change-my-password.graphql +4 -1
- package/src/schema/user-authentication-method/types/user-authentication-method.graphql +4 -0
package/package.json
CHANGED
package/src/generated/graphql.ts
CHANGED
|
@@ -554,6 +554,7 @@ export type MyUserAuthenticationMethodsQuery = {
|
|
|
554
554
|
providerId: string;
|
|
555
555
|
isVerified: boolean;
|
|
556
556
|
isPrimary: boolean;
|
|
557
|
+
hasPassword: boolean;
|
|
557
558
|
lastUsedAt: Date | null;
|
|
558
559
|
createdAt: Date;
|
|
559
560
|
updatedAt: Date;
|
|
@@ -4172,6 +4173,7 @@ export const MyUserAuthenticationMethodsDocument = {
|
|
|
4172
4173
|
{ kind: 'Field', name: { kind: 'Name', value: 'providerId' } },
|
|
4173
4174
|
{ kind: 'Field', name: { kind: 'Name', value: 'isVerified' } },
|
|
4174
4175
|
{ kind: 'Field', name: { kind: 'Name', value: 'isPrimary' } },
|
|
4176
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'hasPassword' } },
|
|
4175
4177
|
{ kind: 'Field', name: { kind: 'Name', value: 'lastUsedAt' } },
|
|
4176
4178
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
4177
4179
|
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
|
|
@@ -3177,6 +3177,7 @@ export type UserAuthenticationMethodResolvers<
|
|
|
3177
3177
|
> = ResolversObject<{
|
|
3178
3178
|
createdAt?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
|
|
3179
3179
|
deletedAt?: Resolver<Types.Maybe<ResolversTypes['Date']>, ParentType, ContextType>;
|
|
3180
|
+
hasPassword?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
|
|
3180
3181
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
3181
3182
|
isPrimary?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
|
|
3182
3183
|
isVerified?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
|
|
@@ -472,7 +472,8 @@ export enum CdmOnConflict {
|
|
|
472
472
|
|
|
473
473
|
export type ChangeMyPasswordInput = {
|
|
474
474
|
confirmPassword: Scalars['String']['input'];
|
|
475
|
-
|
|
475
|
+
/** Required when a password already exists; omit when setting the first password. */
|
|
476
|
+
currentPassword?: InputMaybe<Scalars['String']['input']>;
|
|
476
477
|
newPassword: Scalars['String']['input'];
|
|
477
478
|
};
|
|
478
479
|
|
|
@@ -3513,6 +3514,8 @@ export type UserAuthenticationMethod = Auditable & {
|
|
|
3513
3514
|
__typename?: 'UserAuthenticationMethod';
|
|
3514
3515
|
createdAt: Scalars['Date']['output'];
|
|
3515
3516
|
deletedAt?: Maybe<Scalars['Date']['output']>;
|
|
3517
|
+
/** True when this Email method has a password. Always false for social providers. */
|
|
3518
|
+
hasPassword: Scalars['Boolean']['output'];
|
|
3516
3519
|
id: Scalars['ID']['output'];
|
|
3517
3520
|
isPrimary: Scalars['Boolean']['output'];
|
|
3518
3521
|
isVerified: Scalars['Boolean']['output'];
|
|
@@ -7,6 +7,10 @@ type UserAuthenticationMethod implements Auditable {
|
|
|
7
7
|
providerData: JSON!
|
|
8
8
|
isVerified: Boolean!
|
|
9
9
|
isPrimary: Boolean!
|
|
10
|
+
"""
|
|
11
|
+
True when this Email method has a password. Always false for social providers.
|
|
12
|
+
"""
|
|
13
|
+
hasPassword: Boolean!
|
|
10
14
|
lastUsedAt: Date
|
|
11
15
|
createdAt: Date!
|
|
12
16
|
updatedAt: Date!
|