@zeroin.earth/appwrite-graphql 0.15.1 → 0.15.3

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/dist/index.d.mts CHANGED
@@ -43,7 +43,7 @@ type Scalars = {
43
43
  output: any;
44
44
  };
45
45
  };
46
- type Account_UserFragmentFragment = {
46
+ type Account_UserFragment = {
47
47
  __typename?: 'User';
48
48
  _id?: string | null;
49
49
  name?: string | null;
@@ -53,14 +53,14 @@ type Account_UserFragmentFragment = {
53
53
  data?: any | null;
54
54
  } | null;
55
55
  } & {
56
- ' $fragmentName'?: 'Account_UserFragmentFragment';
56
+ ' $fragmentName'?: 'Account_UserFragment';
57
57
  };
58
- type Identity_ProviderFragmentFragment = {
58
+ type Identity_ProviderFragment = {
59
59
  __typename?: 'Identity';
60
60
  userId?: string | null;
61
61
  provider?: string | null;
62
62
  } & {
63
- ' $fragmentName'?: 'Identity_ProviderFragmentFragment';
63
+ ' $fragmentName'?: 'Identity_ProviderFragment';
64
64
  };
65
65
  type GetSessionQueryVariables = Exact<{
66
66
  sessionId: Scalars['String']['input'];
@@ -111,7 +111,7 @@ declare function useAccount<Preferences extends Models.Preferences>(): _tanstack
111
111
  __typename?: "User";
112
112
  } & {
113
113
  ' $fragmentRefs'?: {
114
- Account_UserFragmentFragment: Account_UserFragmentFragment;
114
+ Account_UserFragment: Account_UserFragment;
115
115
  };
116
116
  }, AppwriteException>;
117
117
 
@@ -2117,7 +2117,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2117
2117
  __typename?: "Identity";
2118
2118
  } & {
2119
2119
  ' $fragmentRefs'?: {
2120
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2120
+ Identity_ProviderFragment: Identity_ProviderFragment;
2121
2121
  };
2122
2122
  })[];
2123
2123
  };
@@ -2149,7 +2149,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2149
2149
  __typename?: "Identity";
2150
2150
  } & {
2151
2151
  ' $fragmentRefs'?: {
2152
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2152
+ Identity_ProviderFragment: Identity_ProviderFragment;
2153
2153
  };
2154
2154
  })[];
2155
2155
  }, AppwriteException>>;
@@ -2162,7 +2162,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2162
2162
  __typename?: "Identity";
2163
2163
  } & {
2164
2164
  ' $fragmentRefs'?: {
2165
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2165
+ Identity_ProviderFragment: Identity_ProviderFragment;
2166
2166
  };
2167
2167
  })[];
2168
2168
  };
@@ -2194,7 +2194,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2194
2194
  __typename?: "Identity";
2195
2195
  } & {
2196
2196
  ' $fragmentRefs'?: {
2197
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2197
+ Identity_ProviderFragment: Identity_ProviderFragment;
2198
2198
  };
2199
2199
  })[];
2200
2200
  }, AppwriteException>>;
@@ -2229,7 +2229,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2229
2229
  __typename?: "Identity";
2230
2230
  } & {
2231
2231
  ' $fragmentRefs'?: {
2232
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2232
+ Identity_ProviderFragment: Identity_ProviderFragment;
2233
2233
  };
2234
2234
  })[];
2235
2235
  }, AppwriteException>>;
@@ -2264,7 +2264,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2264
2264
  __typename?: "Identity";
2265
2265
  } & {
2266
2266
  ' $fragmentRefs'?: {
2267
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2267
+ Identity_ProviderFragment: Identity_ProviderFragment;
2268
2268
  };
2269
2269
  })[];
2270
2270
  }, AppwriteException>>;
@@ -2299,7 +2299,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2299
2299
  __typename?: "Identity";
2300
2300
  } & {
2301
2301
  ' $fragmentRefs'?: {
2302
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2302
+ Identity_ProviderFragment: Identity_ProviderFragment;
2303
2303
  };
2304
2304
  })[];
2305
2305
  }, AppwriteException>>;
@@ -3260,7 +3260,6 @@ declare function useResetPassword(): {
3260
3260
  userId: string;
3261
3261
  secret: string;
3262
3262
  password: string;
3263
- passwordAgain: string;
3264
3263
  }>, unknown>;
3265
3264
  reset: () => void;
3266
3265
  context: unknown;
@@ -3275,7 +3274,6 @@ declare function useResetPassword(): {
3275
3274
  userId: string;
3276
3275
  secret: string;
3277
3276
  password: string;
3278
- passwordAgain: string;
3279
3277
  }>, unknown>;
3280
3278
  } | {
3281
3279
  data: undefined;
@@ -3283,7 +3281,6 @@ declare function useResetPassword(): {
3283
3281
  userId: string;
3284
3282
  secret: string;
3285
3283
  password: string;
3286
- passwordAgain: string;
3287
3284
  }>;
3288
3285
  error: null;
3289
3286
  isError: false;
@@ -3298,7 +3295,6 @@ declare function useResetPassword(): {
3298
3295
  userId: string;
3299
3296
  secret: string;
3300
3297
  password: string;
3301
- passwordAgain: string;
3302
3298
  }>, unknown>;
3303
3299
  reset: () => void;
3304
3300
  context: unknown;
@@ -3313,7 +3309,6 @@ declare function useResetPassword(): {
3313
3309
  userId: string;
3314
3310
  secret: string;
3315
3311
  password: string;
3316
- passwordAgain: string;
3317
3312
  }>, unknown>;
3318
3313
  } | {
3319
3314
  data: undefined;
@@ -3322,7 +3317,6 @@ declare function useResetPassword(): {
3322
3317
  userId: string;
3323
3318
  secret: string;
3324
3319
  password: string;
3325
- passwordAgain: string;
3326
3320
  }>;
3327
3321
  isError: true;
3328
3322
  isIdle: false;
@@ -3336,7 +3330,6 @@ declare function useResetPassword(): {
3336
3330
  userId: string;
3337
3331
  secret: string;
3338
3332
  password: string;
3339
- passwordAgain: string;
3340
3333
  }>, unknown>;
3341
3334
  reset: () => void;
3342
3335
  context: unknown;
@@ -3351,7 +3344,6 @@ declare function useResetPassword(): {
3351
3344
  userId: string;
3352
3345
  secret: string;
3353
3346
  password: string;
3354
- passwordAgain: string;
3355
3347
  }>, unknown>;
3356
3348
  } | {
3357
3349
  data: {
@@ -3363,7 +3355,6 @@ declare function useResetPassword(): {
3363
3355
  userId: string;
3364
3356
  secret: string;
3365
3357
  password: string;
3366
- passwordAgain: string;
3367
3358
  }>;
3368
3359
  isError: false;
3369
3360
  isIdle: false;
@@ -3377,7 +3368,6 @@ declare function useResetPassword(): {
3377
3368
  userId: string;
3378
3369
  secret: string;
3379
3370
  password: string;
3380
- passwordAgain: string;
3381
3371
  }>, unknown>;
3382
3372
  reset: () => void;
3383
3373
  context: unknown;
@@ -3392,7 +3382,6 @@ declare function useResetPassword(): {
3392
3382
  userId: string;
3393
3383
  secret: string;
3394
3384
  password: string;
3395
- passwordAgain: string;
3396
3385
  }>, unknown>;
3397
3386
  };
3398
3387
 
@@ -5909,9 +5898,11 @@ declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TT
5909
5898
  declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
5910
5899
  declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
5911
5900
 
5912
- declare const fragments: {
5913
- Account_UserFragment: _graphql_typed_document_node_core.TypedDocumentNode<Account_UserFragmentFragment, unknown>;
5914
- Identity_ProviderFragment: _graphql_typed_document_node_core.TypedDocumentNode<Identity_ProviderFragmentFragment, unknown>;
5915
- };
5901
+ declare namespace fragments {
5902
+ const Account_UserFragment: _graphql_typed_document_node_core.TypedDocumentNode<Account_UserFragment, unknown>;
5903
+ type Account_UserFragmentType = Account_UserFragment;
5904
+ const Identity_ProviderFragment: _graphql_typed_document_node_core.TypedDocumentNode<Identity_ProviderFragment, unknown>;
5905
+ type Identity_ProviderFragmentType = Identity_ProviderFragment;
5906
+ }
5916
5907
 
5917
5908
  export { fragments, getFragmentData, useAccount, useAppwrite, useCollection, useCreateAnonymousSession, useCreateDocument, useCreateEmailToken, useCreateJWT, useCreateMagicURLToken, useCreateMfaAuthenticator, useCreateMfaChallenge, useCreateMfaRecoveryCodes, useCreatePhoneToken, useCreatePhoneVerification, useCreateSession, useDeleteDocument, useDeleteIdentity, useDeleteMfaAuthenticator, useDeleteSession, useDeleteSessions, useDocument, useFunction, useGetMfaRecoveryCodes, useGetPrefs, useGetSession, useListIdentities, useListMfaFactors, useListSessions, useLogin, useLogout, useLogs, useMutation, usePasswordRecovery, useQuery, useQueryClient, useResetPassword, useSignUp, useSuspenseCollection, useSuspenseCreateJWT, useSuspenseFunction, useUpdateDocument, useUpdateEmail, useUpdateMagicURLSession, useUpdateMfa, useUpdateMfaAuthenticator, useUpdateMfaChallenge, useUpdateMfaRecoveryCodes, useUpdateName, useUpdatePassword, useUpdatePhone, useUpdatePhoneSession, useUpdatePhoneVerification, useUpdatePrefs, useUpdateSession, useVerification };
package/dist/index.d.ts CHANGED
@@ -43,7 +43,7 @@ type Scalars = {
43
43
  output: any;
44
44
  };
45
45
  };
46
- type Account_UserFragmentFragment = {
46
+ type Account_UserFragment = {
47
47
  __typename?: 'User';
48
48
  _id?: string | null;
49
49
  name?: string | null;
@@ -53,14 +53,14 @@ type Account_UserFragmentFragment = {
53
53
  data?: any | null;
54
54
  } | null;
55
55
  } & {
56
- ' $fragmentName'?: 'Account_UserFragmentFragment';
56
+ ' $fragmentName'?: 'Account_UserFragment';
57
57
  };
58
- type Identity_ProviderFragmentFragment = {
58
+ type Identity_ProviderFragment = {
59
59
  __typename?: 'Identity';
60
60
  userId?: string | null;
61
61
  provider?: string | null;
62
62
  } & {
63
- ' $fragmentName'?: 'Identity_ProviderFragmentFragment';
63
+ ' $fragmentName'?: 'Identity_ProviderFragment';
64
64
  };
65
65
  type GetSessionQueryVariables = Exact<{
66
66
  sessionId: Scalars['String']['input'];
@@ -111,7 +111,7 @@ declare function useAccount<Preferences extends Models.Preferences>(): _tanstack
111
111
  __typename?: "User";
112
112
  } & {
113
113
  ' $fragmentRefs'?: {
114
- Account_UserFragmentFragment: Account_UserFragmentFragment;
114
+ Account_UserFragment: Account_UserFragment;
115
115
  };
116
116
  }, AppwriteException>;
117
117
 
@@ -2117,7 +2117,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2117
2117
  __typename?: "Identity";
2118
2118
  } & {
2119
2119
  ' $fragmentRefs'?: {
2120
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2120
+ Identity_ProviderFragment: Identity_ProviderFragment;
2121
2121
  };
2122
2122
  })[];
2123
2123
  };
@@ -2149,7 +2149,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2149
2149
  __typename?: "Identity";
2150
2150
  } & {
2151
2151
  ' $fragmentRefs'?: {
2152
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2152
+ Identity_ProviderFragment: Identity_ProviderFragment;
2153
2153
  };
2154
2154
  })[];
2155
2155
  }, AppwriteException>>;
@@ -2162,7 +2162,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2162
2162
  __typename?: "Identity";
2163
2163
  } & {
2164
2164
  ' $fragmentRefs'?: {
2165
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2165
+ Identity_ProviderFragment: Identity_ProviderFragment;
2166
2166
  };
2167
2167
  })[];
2168
2168
  };
@@ -2194,7 +2194,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2194
2194
  __typename?: "Identity";
2195
2195
  } & {
2196
2196
  ' $fragmentRefs'?: {
2197
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2197
+ Identity_ProviderFragment: Identity_ProviderFragment;
2198
2198
  };
2199
2199
  })[];
2200
2200
  }, AppwriteException>>;
@@ -2229,7 +2229,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2229
2229
  __typename?: "Identity";
2230
2230
  } & {
2231
2231
  ' $fragmentRefs'?: {
2232
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2232
+ Identity_ProviderFragment: Identity_ProviderFragment;
2233
2233
  };
2234
2234
  })[];
2235
2235
  }, AppwriteException>>;
@@ -2264,7 +2264,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2264
2264
  __typename?: "Identity";
2265
2265
  } & {
2266
2266
  ' $fragmentRefs'?: {
2267
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2267
+ Identity_ProviderFragment: Identity_ProviderFragment;
2268
2268
  };
2269
2269
  })[];
2270
2270
  }, AppwriteException>>;
@@ -2299,7 +2299,7 @@ declare function useListIdentities({ queries }: ListIdentitiesQueryVariables): {
2299
2299
  __typename?: "Identity";
2300
2300
  } & {
2301
2301
  ' $fragmentRefs'?: {
2302
- Identity_ProviderFragmentFragment: Identity_ProviderFragmentFragment;
2302
+ Identity_ProviderFragment: Identity_ProviderFragment;
2303
2303
  };
2304
2304
  })[];
2305
2305
  }, AppwriteException>>;
@@ -3260,7 +3260,6 @@ declare function useResetPassword(): {
3260
3260
  userId: string;
3261
3261
  secret: string;
3262
3262
  password: string;
3263
- passwordAgain: string;
3264
3263
  }>, unknown>;
3265
3264
  reset: () => void;
3266
3265
  context: unknown;
@@ -3275,7 +3274,6 @@ declare function useResetPassword(): {
3275
3274
  userId: string;
3276
3275
  secret: string;
3277
3276
  password: string;
3278
- passwordAgain: string;
3279
3277
  }>, unknown>;
3280
3278
  } | {
3281
3279
  data: undefined;
@@ -3283,7 +3281,6 @@ declare function useResetPassword(): {
3283
3281
  userId: string;
3284
3282
  secret: string;
3285
3283
  password: string;
3286
- passwordAgain: string;
3287
3284
  }>;
3288
3285
  error: null;
3289
3286
  isError: false;
@@ -3298,7 +3295,6 @@ declare function useResetPassword(): {
3298
3295
  userId: string;
3299
3296
  secret: string;
3300
3297
  password: string;
3301
- passwordAgain: string;
3302
3298
  }>, unknown>;
3303
3299
  reset: () => void;
3304
3300
  context: unknown;
@@ -3313,7 +3309,6 @@ declare function useResetPassword(): {
3313
3309
  userId: string;
3314
3310
  secret: string;
3315
3311
  password: string;
3316
- passwordAgain: string;
3317
3312
  }>, unknown>;
3318
3313
  } | {
3319
3314
  data: undefined;
@@ -3322,7 +3317,6 @@ declare function useResetPassword(): {
3322
3317
  userId: string;
3323
3318
  secret: string;
3324
3319
  password: string;
3325
- passwordAgain: string;
3326
3320
  }>;
3327
3321
  isError: true;
3328
3322
  isIdle: false;
@@ -3336,7 +3330,6 @@ declare function useResetPassword(): {
3336
3330
  userId: string;
3337
3331
  secret: string;
3338
3332
  password: string;
3339
- passwordAgain: string;
3340
3333
  }>, unknown>;
3341
3334
  reset: () => void;
3342
3335
  context: unknown;
@@ -3351,7 +3344,6 @@ declare function useResetPassword(): {
3351
3344
  userId: string;
3352
3345
  secret: string;
3353
3346
  password: string;
3354
- passwordAgain: string;
3355
3347
  }>, unknown>;
3356
3348
  } | {
3357
3349
  data: {
@@ -3363,7 +3355,6 @@ declare function useResetPassword(): {
3363
3355
  userId: string;
3364
3356
  secret: string;
3365
3357
  password: string;
3366
- passwordAgain: string;
3367
3358
  }>;
3368
3359
  isError: false;
3369
3360
  isIdle: false;
@@ -3377,7 +3368,6 @@ declare function useResetPassword(): {
3377
3368
  userId: string;
3378
3369
  secret: string;
3379
3370
  password: string;
3380
- passwordAgain: string;
3381
3371
  }>, unknown>;
3382
3372
  reset: () => void;
3383
3373
  context: unknown;
@@ -3392,7 +3382,6 @@ declare function useResetPassword(): {
3392
3382
  userId: string;
3393
3383
  secret: string;
3394
3384
  password: string;
3395
- passwordAgain: string;
3396
3385
  }>, unknown>;
3397
3386
  };
3398
3387
 
@@ -5909,9 +5898,11 @@ declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TT
5909
5898
  declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
5910
5899
  declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
5911
5900
 
5912
- declare const fragments: {
5913
- Account_UserFragment: _graphql_typed_document_node_core.TypedDocumentNode<Account_UserFragmentFragment, unknown>;
5914
- Identity_ProviderFragment: _graphql_typed_document_node_core.TypedDocumentNode<Identity_ProviderFragmentFragment, unknown>;
5915
- };
5901
+ declare namespace fragments {
5902
+ const Account_UserFragment: _graphql_typed_document_node_core.TypedDocumentNode<Account_UserFragment, unknown>;
5903
+ type Account_UserFragmentType = Account_UserFragment;
5904
+ const Identity_ProviderFragment: _graphql_typed_document_node_core.TypedDocumentNode<Identity_ProviderFragment, unknown>;
5905
+ type Identity_ProviderFragmentType = Identity_ProviderFragment;
5906
+ }
5916
5907
 
5917
5908
  export { fragments, getFragmentData, useAccount, useAppwrite, useCollection, useCreateAnonymousSession, useCreateDocument, useCreateEmailToken, useCreateJWT, useCreateMagicURLToken, useCreateMfaAuthenticator, useCreateMfaChallenge, useCreateMfaRecoveryCodes, useCreatePhoneToken, useCreatePhoneVerification, useCreateSession, useDeleteDocument, useDeleteIdentity, useDeleteMfaAuthenticator, useDeleteSession, useDeleteSessions, useDocument, useFunction, useGetMfaRecoveryCodes, useGetPrefs, useGetSession, useListIdentities, useListMfaFactors, useListSessions, useLogin, useLogout, useLogs, useMutation, usePasswordRecovery, useQuery, useQueryClient, useResetPassword, useSignUp, useSuspenseCollection, useSuspenseCreateJWT, useSuspenseFunction, useUpdateDocument, useUpdateEmail, useUpdateMagicURLSession, useUpdateMfa, useUpdateMfaAuthenticator, useUpdateMfaChallenge, useUpdateMfaRecoveryCodes, useUpdateName, useUpdatePassword, useUpdatePhone, useUpdatePhoneSession, useUpdatePhoneVerification, useUpdatePrefs, useUpdateSession, useVerification };