@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grantjs/schema",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
- currentPassword: Scalars['String']['input'];
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'];
@@ -6,6 +6,7 @@ query MyUserAuthenticationMethods {
6
6
  providerId
7
7
  isVerified
8
8
  isPrimary
9
+ hasPassword
9
10
  lastUsedAt
10
11
  createdAt
11
12
  updatedAt
@@ -1,5 +1,8 @@
1
1
  input ChangeMyPasswordInput {
2
- currentPassword: String!
2
+ """
3
+ Required when a password already exists; omit when setting the first password.
4
+ """
5
+ currentPassword: String
3
6
  newPassword: String!
4
7
  confirmPassword: String!
5
8
  }
@@ -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!