@zeroin.earth/appwrite-graphql 0.14.5 → 0.14.8

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
@@ -45,6 +45,7 @@ type Scalars = {
45
45
  };
46
46
  type Account_UserFragmentFragment = {
47
47
  __typename?: 'User';
48
+ _id?: string | null;
48
49
  name?: string | null;
49
50
  email?: string | null;
50
51
  prefs?: {
@@ -5151,7 +5152,9 @@ declare function useVerification(): {
5151
5152
  status: "idle";
5152
5153
  mutate: _tanstack_react_query.UseMutateFunction<{
5153
5154
  __typename?: "Token";
5155
+ secret?: string;
5154
5156
  expire?: any;
5157
+ userId?: string;
5155
5158
  }, AppwriteException, Exact<{
5156
5159
  userId: string;
5157
5160
  secret: string;
@@ -5164,7 +5167,9 @@ declare function useVerification(): {
5164
5167
  submittedAt: number;
5165
5168
  mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
5166
5169
  __typename?: "Token";
5170
+ secret?: string;
5167
5171
  expire?: any;
5172
+ userId?: string;
5168
5173
  }, AppwriteException, Exact<{
5169
5174
  userId: string;
5170
5175
  secret: string;
@@ -5183,7 +5188,9 @@ declare function useVerification(): {
5183
5188
  status: "pending";
5184
5189
  mutate: _tanstack_react_query.UseMutateFunction<{
5185
5190
  __typename?: "Token";
5191
+ secret?: string;
5186
5192
  expire?: any;
5193
+ userId?: string;
5187
5194
  }, AppwriteException, Exact<{
5188
5195
  userId: string;
5189
5196
  secret: string;
@@ -5196,7 +5203,9 @@ declare function useVerification(): {
5196
5203
  submittedAt: number;
5197
5204
  mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
5198
5205
  __typename?: "Token";
5206
+ secret?: string;
5199
5207
  expire?: any;
5208
+ userId?: string;
5200
5209
  }, AppwriteException, Exact<{
5201
5210
  userId: string;
5202
5211
  secret: string;
@@ -5215,7 +5224,9 @@ declare function useVerification(): {
5215
5224
  status: "error";
5216
5225
  mutate: _tanstack_react_query.UseMutateFunction<{
5217
5226
  __typename?: "Token";
5227
+ secret?: string;
5218
5228
  expire?: any;
5229
+ userId?: string;
5219
5230
  }, AppwriteException, Exact<{
5220
5231
  userId: string;
5221
5232
  secret: string;
@@ -5228,7 +5239,9 @@ declare function useVerification(): {
5228
5239
  submittedAt: number;
5229
5240
  mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
5230
5241
  __typename?: "Token";
5242
+ secret?: string;
5231
5243
  expire?: any;
5244
+ userId?: string;
5232
5245
  }, AppwriteException, Exact<{
5233
5246
  userId: string;
5234
5247
  secret: string;
@@ -5236,7 +5249,9 @@ declare function useVerification(): {
5236
5249
  } | {
5237
5250
  data: {
5238
5251
  __typename?: "Token";
5252
+ secret?: string;
5239
5253
  expire?: any;
5254
+ userId?: string;
5240
5255
  };
5241
5256
  error: null;
5242
5257
  variables: Exact<{
@@ -5250,7 +5265,9 @@ declare function useVerification(): {
5250
5265
  status: "success";
5251
5266
  mutate: _tanstack_react_query.UseMutateFunction<{
5252
5267
  __typename?: "Token";
5268
+ secret?: string;
5253
5269
  expire?: any;
5270
+ userId?: string;
5254
5271
  }, AppwriteException, Exact<{
5255
5272
  userId: string;
5256
5273
  secret: string;
@@ -5263,7 +5280,9 @@ declare function useVerification(): {
5263
5280
  submittedAt: number;
5264
5281
  mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
5265
5282
  __typename?: "Token";
5283
+ secret?: string;
5266
5284
  expire?: any;
5285
+ userId?: string;
5267
5286
  }, AppwriteException, Exact<{
5268
5287
  userId: string;
5269
5288
  secret: string;
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ type Scalars = {
45
45
  };
46
46
  type Account_UserFragmentFragment = {
47
47
  __typename?: 'User';
48
+ _id?: string | null;
48
49
  name?: string | null;
49
50
  email?: string | null;
50
51
  prefs?: {
@@ -5151,7 +5152,9 @@ declare function useVerification(): {
5151
5152
  status: "idle";
5152
5153
  mutate: _tanstack_react_query.UseMutateFunction<{
5153
5154
  __typename?: "Token";
5155
+ secret?: string;
5154
5156
  expire?: any;
5157
+ userId?: string;
5155
5158
  }, AppwriteException, Exact<{
5156
5159
  userId: string;
5157
5160
  secret: string;
@@ -5164,7 +5167,9 @@ declare function useVerification(): {
5164
5167
  submittedAt: number;
5165
5168
  mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
5166
5169
  __typename?: "Token";
5170
+ secret?: string;
5167
5171
  expire?: any;
5172
+ userId?: string;
5168
5173
  }, AppwriteException, Exact<{
5169
5174
  userId: string;
5170
5175
  secret: string;
@@ -5183,7 +5188,9 @@ declare function useVerification(): {
5183
5188
  status: "pending";
5184
5189
  mutate: _tanstack_react_query.UseMutateFunction<{
5185
5190
  __typename?: "Token";
5191
+ secret?: string;
5186
5192
  expire?: any;
5193
+ userId?: string;
5187
5194
  }, AppwriteException, Exact<{
5188
5195
  userId: string;
5189
5196
  secret: string;
@@ -5196,7 +5203,9 @@ declare function useVerification(): {
5196
5203
  submittedAt: number;
5197
5204
  mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
5198
5205
  __typename?: "Token";
5206
+ secret?: string;
5199
5207
  expire?: any;
5208
+ userId?: string;
5200
5209
  }, AppwriteException, Exact<{
5201
5210
  userId: string;
5202
5211
  secret: string;
@@ -5215,7 +5224,9 @@ declare function useVerification(): {
5215
5224
  status: "error";
5216
5225
  mutate: _tanstack_react_query.UseMutateFunction<{
5217
5226
  __typename?: "Token";
5227
+ secret?: string;
5218
5228
  expire?: any;
5229
+ userId?: string;
5219
5230
  }, AppwriteException, Exact<{
5220
5231
  userId: string;
5221
5232
  secret: string;
@@ -5228,7 +5239,9 @@ declare function useVerification(): {
5228
5239
  submittedAt: number;
5229
5240
  mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
5230
5241
  __typename?: "Token";
5242
+ secret?: string;
5231
5243
  expire?: any;
5244
+ userId?: string;
5232
5245
  }, AppwriteException, Exact<{
5233
5246
  userId: string;
5234
5247
  secret: string;
@@ -5236,7 +5249,9 @@ declare function useVerification(): {
5236
5249
  } | {
5237
5250
  data: {
5238
5251
  __typename?: "Token";
5252
+ secret?: string;
5239
5253
  expire?: any;
5254
+ userId?: string;
5240
5255
  };
5241
5256
  error: null;
5242
5257
  variables: Exact<{
@@ -5250,7 +5265,9 @@ declare function useVerification(): {
5250
5265
  status: "success";
5251
5266
  mutate: _tanstack_react_query.UseMutateFunction<{
5252
5267
  __typename?: "Token";
5268
+ secret?: string;
5253
5269
  expire?: any;
5270
+ userId?: string;
5254
5271
  }, AppwriteException, Exact<{
5255
5272
  userId: string;
5256
5273
  secret: string;
@@ -5263,7 +5280,9 @@ declare function useVerification(): {
5263
5280
  submittedAt: number;
5264
5281
  mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
5265
5282
  __typename?: "Token";
5283
+ secret?: string;
5266
5284
  expire?: any;
5285
+ userId?: string;
5267
5286
  }, AppwriteException, Exact<{
5268
5287
  userId: string;
5269
5288
  secret: string;
package/dist/index.js CHANGED
@@ -169,9 +169,9 @@ var import_react2 = require("react");
169
169
  var import_immer = require("immer");
170
170
 
171
171
  // src/__generated__/graphql.ts
172
- var Account_UserFragmentFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Account_UserFragment" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "User" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "prefs" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "data" } }] } }] } }] };
172
+ var Account_UserFragmentFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Account_UserFragment" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "User" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "_id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "prefs" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "data" } }] } }] } }] };
173
173
  var Identity_ProviderFragmentFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Identity_ProviderFragment" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Identity" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "userId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "provider" } }] } }] };
174
- var AccountGetDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "AccountGet" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "accountGet" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "Account_UserFragment" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Account_UserFragment" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "User" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "prefs" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "data" } }] } }] } }] };
174
+ var AccountGetDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "AccountGet" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "accountGet" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "Account_UserFragment" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Account_UserFragment" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "User" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "_id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "prefs" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "data" } }] } }] } }] };
175
175
  var CreateAnonymousSessionDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateAnonymousSession" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "accountCreateAnonymousSession" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "_id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expire" } }, { "kind": "Field", "name": { "kind": "Name", "value": "current" } }] } }] } }] };
176
176
  var CreateEmailTokenDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateEmailToken" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "email" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "phrase" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Boolean" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "accountCreateEmailToken" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "userId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "email" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "email" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "phrase" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "phrase" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "expire" } }] } }] } }] };
177
177
  var CreateJwtDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateJWT" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "accountCreateJWT" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "jwt" } }] } }] } }] };
@@ -210,7 +210,7 @@ var UpdatePhoneSessionDocument = { "kind": "Document", "definitions": [{ "kind":
210
210
  var UpdatePhoneVerificationDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "UpdatePhoneVerification" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "secret" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "accountUpdatePhoneVerification" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "userId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "secret" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "secret" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "expire" } }] } }] } }] };
211
211
  var UpdatePrefsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "UpdatePrefs" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "prefs" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "JSON" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "accountUpdatePrefs" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "prefs" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "prefs" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "prefs" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "data" } }] } }] } }] } }] };
212
212
  var UpdateSessionDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "UpdateSession" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "sessionId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "accountUpdateSession" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "sessionId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "sessionId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "userId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expire" } }, { "kind": "Field", "name": { "kind": "Name", "value": "current" } }] } }] } }] };
213
- var UpdateVerificationDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "UpdateVerification" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "secret" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "accountUpdateVerification" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "userId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "secret" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "secret" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "expire" } }] } }] } }] };
213
+ var UpdateVerificationDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "UpdateVerification" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "secret" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "accountUpdateVerification" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "userId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "secret" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "secret" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "secret" } }, { "kind": "Field", "name": { "kind": "Name", "value": "expire" } }, { "kind": "Field", "name": { "kind": "Name", "value": "userId" } }] } }] } }] };
214
214
  var ListDocumentsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "ListDocuments" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "databaseId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "collectionId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "queries" } }, "type": { "kind": "ListType", "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "databasesListDocuments" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "databaseId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "databaseId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "collectionId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "collectionId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "queries" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "queries" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "total" } }, { "kind": "Field", "name": { "kind": "Name", "value": "documents" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "_id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "data" } }] } }] } }] } }] };
215
215
  var CreateDocumentDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateDocument" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "databaseId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "collectionId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "documentId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "data" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "JSON" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "permissions" } }, "type": { "kind": "ListType", "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "databasesCreateDocument" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "databaseId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "databaseId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "collectionId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "collectionId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "documentId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "documentId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "data" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "data" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "permissions" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "permissions" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "_id" } }] } }] } }] };
216
216
  var DeleteDocumentDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "DeleteDocument" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "databaseId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "collectionId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "documentId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "databasesDeleteDocument" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "databaseId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "databaseId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "collectionId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "collectionId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "documentId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "documentId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "status" } }] } }] } }] };
@@ -221,7 +221,7 @@ var GetFunctionExecutionDocument = { "kind": "Document", "definitions": [{ "kind
221
221
 
222
222
  // src/__generated__/gql.ts
223
223
  var documents = {
224
- "\n fragment Account_UserFragment on User {\n name\n email\n prefs {\n data\n }\n }\n": Account_UserFragmentFragmentDoc,
224
+ "\n fragment Account_UserFragment on User {\n _id\n name\n email\n prefs {\n data\n }\n }\n": Account_UserFragmentFragmentDoc,
225
225
  "\n fragment Identity_ProviderFragment on Identity {\n userId\n provider\n }\n": Identity_ProviderFragmentFragmentDoc,
226
226
  "\n query AccountGet {\n accountGet {\n ...Account_UserFragment\n }\n }\n": AccountGetDocument,
227
227
  "\n mutation CreateAnonymousSession {\n accountCreateAnonymousSession {\n _id\n expire\n current\n }\n }\n": CreateAnonymousSessionDocument,
@@ -262,7 +262,7 @@ var documents = {
262
262
  "\n mutation UpdatePhoneVerification($userId: String!, $secret: String!) {\n accountUpdatePhoneVerification(userId: $userId, secret: $secret) {\n expire\n }\n }\n": UpdatePhoneVerificationDocument,
263
263
  "\n mutation UpdatePrefs($prefs: JSON!) {\n accountUpdatePrefs(prefs: $prefs) {\n prefs {\n data\n }\n }\n }\n": UpdatePrefsDocument,
264
264
  "\n mutation UpdateSession($sessionId: String!) {\n accountUpdateSession(sessionId: $sessionId) {\n userId\n expire\n current\n }\n }\n": UpdateSessionDocument,
265
- "\n mutation UpdateVerification($userId: String!, $secret: String!) {\n accountUpdateVerification(userId: $userId, secret: $secret) {\n expire\n }\n }\n": UpdateVerificationDocument,
265
+ "\n mutation UpdateVerification($userId: String!, $secret: String!) {\n accountUpdateVerification(userId: $userId, secret: $secret) {\n secret\n expire\n userId\n }\n }\n": UpdateVerificationDocument,
266
266
  "\n query ListDocuments($databaseId: String!, $collectionId: String!, $queries: [String!]) {\n databasesListDocuments(\n databaseId: $databaseId\n collectionId: $collectionId\n queries: $queries\n ) {\n total\n documents {\n _id\n data\n }\n }\n }\n": ListDocumentsDocument,
267
267
  "\n mutation CreateDocument(\n $databaseId: String!\n $collectionId: String!\n $documentId: String!\n $data: JSON!\n $permissions: [String!]\n ) {\n databasesCreateDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n data: $data\n permissions: $permissions\n ) {\n _id\n }\n }\n": CreateDocumentDocument,
268
268
  "\n mutation DeleteDocument($databaseId: String!, $collectionId: String!, $documentId: String!) {\n databasesDeleteDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n ) {\n status\n }\n }\n": DeleteDocumentDocument,
@@ -1649,7 +1649,9 @@ var updateVerification = gql(
1649
1649
  `
1650
1650
  mutation UpdateVerification($userId: String!, $secret: String!) {
1651
1651
  accountUpdateVerification(userId: $userId, secret: $secret) {
1652
+ secret
1652
1653
  expire
1654
+ userId
1653
1655
  }
1654
1656
  }
1655
1657
  `
@@ -2167,6 +2169,7 @@ var Account_UserFragment = gql(
2167
2169
  /* GraphQL */
2168
2170
  `
2169
2171
  fragment Account_UserFragment on User {
2172
+ _id
2170
2173
  name
2171
2174
  email
2172
2175
  prefs {