@ludo.ninja/api 2.8.28 → 2.8.30
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/build/config/index.js +4 -4
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +1434 -0
- package/build/graphql_tools/__generated__/adminHost/schema.js +688 -0
- package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +392 -0
- package/build/graphql_tools/__generated__/assetsHost/schema.js +80 -0
- package/build/graphql_tools/__generated__/authHost/schema.d.ts +238 -0
- package/build/graphql_tools/__generated__/authHost/schema.js +85 -0
- package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +455 -0
- package/build/graphql_tools/__generated__/collectionsHost/schema.js +80 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +356 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +191 -0
- package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +808 -0
- package/build/graphql_tools/__generated__/extensionHost/schema.js +449 -0
- package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +794 -0
- package/build/graphql_tools/__generated__/galleriesHost/schema.js +575 -0
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +1205 -0
- package/build/graphql_tools/__generated__/identityHost/schema.js +757 -0
- package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +242 -0
- package/build/graphql_tools/__generated__/mediasHost/schema.js +110 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +486 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +148 -0
- package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +604 -0
- package/build/graphql_tools/__generated__/preferencesHost/schema.js +411 -0
- package/build/graphql_tools/__generated__/schema.d.ts +1 -0
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +1304 -0
- package/build/graphql_tools/__generated__/searchHost/schema.js +1191 -0
- package/build/hosts/index.d.ts +0 -3
- package/build/hosts/index.js +1 -4
- package/build/index.d.ts +13 -2
- package/build/index.js +25 -3
- package/package.json +1 -1
- package/src/config/index.ts +50 -50
- package/src/graphql_tools/__generated__/adminHost/schema.ts +1814 -0
- package/src/graphql_tools/__generated__/assetsHost/schema.ts +482 -0
- package/src/graphql_tools/__generated__/authHost/schema.ts +317 -0
- package/src/graphql_tools/__generated__/collectionsHost/schema.ts +554 -0
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +478 -0
- package/src/graphql_tools/__generated__/extensionHost/schema.ts +1074 -0
- package/src/graphql_tools/__generated__/galleriesHost/schema.ts +1090 -0
- package/src/graphql_tools/__generated__/identityHost/schema.ts +1584 -0
- package/src/graphql_tools/__generated__/mediasHost/schema.ts +333 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +629 -0
- package/src/graphql_tools/__generated__/preferencesHost/schema.ts +772 -0
- package/src/graphql_tools/__generated__/schema.ts +1 -0
- package/src/graphql_tools/__generated__/searchHost/schema.ts +2137 -0
- package/src/hosts/index.ts +0 -6
- package/src/index.ts +29 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
|
3
|
+
import { gql } from '@apollo/client';
|
|
4
|
+
import * as Apollo from '@apollo/client';
|
|
5
|
+
export type Maybe<T> = T | null;
|
|
6
|
+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
7
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
8
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
9
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };
|
|
10
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
11
|
+
export type Scalars = {
|
|
12
|
+
ID: string;
|
|
13
|
+
String: string;
|
|
14
|
+
Boolean: boolean;
|
|
15
|
+
Int: number;
|
|
16
|
+
Float: number;
|
|
17
|
+
/** A 64-bit signed integer */
|
|
18
|
+
Long: any;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export type IGenerateCompanyTokenInput = {
|
|
23
|
+
companyName: Scalars['String'];
|
|
24
|
+
tariffPlan: Scalars['String'];
|
|
25
|
+
authorities: Array<Maybe<Scalars['String']>>;
|
|
26
|
+
ttlMin?: Maybe<Scalars['Int']>;
|
|
27
|
+
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type ILogin = {
|
|
31
|
+
userId?: Maybe<Scalars['String']>;
|
|
32
|
+
loggedTime?: Maybe<Scalars['Long']>;
|
|
33
|
+
ip?: Maybe<Scalars['String']>;
|
|
34
|
+
location?: Maybe<Scalars['String']>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type ILoginsPage = {
|
|
38
|
+
logins?: Maybe<Array<Maybe<ILogin>>>;
|
|
39
|
+
nextPageToken?: Maybe<Scalars['String']>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
export type IMutation = {
|
|
44
|
+
setDummy: Scalars['String'];
|
|
45
|
+
refreshToken: ITokenPair;
|
|
46
|
+
revokeToken: Scalars['Boolean'];
|
|
47
|
+
generateCompanyToken: Scalars['String'];
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
export type IMutationRefreshTokenArgs = {
|
|
52
|
+
refreshToken: Scalars['String'];
|
|
53
|
+
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
export type IMutationGenerateCompanyTokenArgs = {
|
|
58
|
+
input: IGenerateCompanyTokenInput;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** scalar Upload */
|
|
62
|
+
export type IQuery = {
|
|
63
|
+
getDummy: Scalars['String'];
|
|
64
|
+
isValidAuthToken: Scalars['Boolean'];
|
|
65
|
+
fetchLogins: ILoginsPage;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/** scalar Upload */
|
|
70
|
+
export type IQueryIsValidAuthTokenArgs = {
|
|
71
|
+
authToken: Scalars['String'];
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/** scalar Upload */
|
|
76
|
+
export type IQueryFetchLoginsArgs = {
|
|
77
|
+
pageSize: Scalars['Int'];
|
|
78
|
+
pageToken?: Maybe<Scalars['String']>;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type ITokenPair = {
|
|
82
|
+
userId?: Maybe<Scalars['String']>;
|
|
83
|
+
tokenAuth?: Maybe<Scalars['String']>;
|
|
84
|
+
tokenRefresh?: Maybe<Scalars['String']>;
|
|
85
|
+
role?: Maybe<Scalars['String']>;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
94
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
95
|
+
};
|
|
96
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
97
|
+
|
|
98
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (
|
|
99
|
+
parent: TParent,
|
|
100
|
+
args: TArgs,
|
|
101
|
+
context: TContext,
|
|
102
|
+
info: GraphQLResolveInfo
|
|
103
|
+
) => Promise<TResult> | TResult;
|
|
104
|
+
|
|
105
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
|
|
106
|
+
parent: TParent,
|
|
107
|
+
args: TArgs,
|
|
108
|
+
context: TContext,
|
|
109
|
+
info: GraphQLResolveInfo
|
|
110
|
+
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
111
|
+
|
|
112
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
|
|
113
|
+
parent: TParent,
|
|
114
|
+
args: TArgs,
|
|
115
|
+
context: TContext,
|
|
116
|
+
info: GraphQLResolveInfo
|
|
117
|
+
) => TResult | Promise<TResult>;
|
|
118
|
+
|
|
119
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
120
|
+
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
|
|
121
|
+
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
125
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
126
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
|
|
130
|
+
| SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
|
|
131
|
+
| SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
132
|
+
|
|
133
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
|
|
134
|
+
| ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
|
|
135
|
+
| SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
136
|
+
|
|
137
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
|
|
138
|
+
parent: TParent,
|
|
139
|
+
context: TContext,
|
|
140
|
+
info: GraphQLResolveInfo
|
|
141
|
+
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
142
|
+
|
|
143
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
144
|
+
|
|
145
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
146
|
+
|
|
147
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
|
|
148
|
+
next: NextResolverFn<TResult>,
|
|
149
|
+
parent: TParent,
|
|
150
|
+
args: TArgs,
|
|
151
|
+
context: TContext,
|
|
152
|
+
info: GraphQLResolveInfo
|
|
153
|
+
) => TResult | Promise<TResult>;
|
|
154
|
+
|
|
155
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
156
|
+
export type IResolversTypes = {
|
|
157
|
+
GenerateCompanyTokenInput: IGenerateCompanyTokenInput;
|
|
158
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
159
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
160
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
161
|
+
Login: ResolverTypeWrapper<ILogin>;
|
|
162
|
+
LoginsPage: ResolverTypeWrapper<ILoginsPage>;
|
|
163
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
164
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
165
|
+
Query: ResolverTypeWrapper<{}>;
|
|
166
|
+
TokenPair: ResolverTypeWrapper<ITokenPair>;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
170
|
+
export type IResolversParentTypes = {
|
|
171
|
+
GenerateCompanyTokenInput: IGenerateCompanyTokenInput;
|
|
172
|
+
String: Scalars['String'];
|
|
173
|
+
Int: Scalars['Int'];
|
|
174
|
+
Boolean: Scalars['Boolean'];
|
|
175
|
+
Login: ILogin;
|
|
176
|
+
LoginsPage: ILoginsPage;
|
|
177
|
+
Long: Scalars['Long'];
|
|
178
|
+
Mutation: {};
|
|
179
|
+
Query: {};
|
|
180
|
+
TokenPair: ITokenPair;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export type IOneOfDirectiveArgs = { };
|
|
184
|
+
|
|
185
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
186
|
+
|
|
187
|
+
export type ILoginResolvers<ContextType = any, ParentType extends IResolversParentTypes['Login'] = IResolversParentTypes['Login']> = {
|
|
188
|
+
userId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
189
|
+
loggedTime?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
190
|
+
ip?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
191
|
+
location?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
192
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export type ILoginsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['LoginsPage'] = IResolversParentTypes['LoginsPage']> = {
|
|
196
|
+
logins?: Resolver<Maybe<Array<Maybe<IResolversTypes['Login']>>>, ParentType, ContextType>;
|
|
197
|
+
nextPageToken?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
198
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
202
|
+
name: 'Long';
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
206
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
207
|
+
refreshToken?: Resolver<IResolversTypes['TokenPair'], ParentType, ContextType, RequireFields<IMutationRefreshTokenArgs, 'refreshToken'>>;
|
|
208
|
+
revokeToken?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
209
|
+
generateCompanyToken?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationGenerateCompanyTokenArgs, 'input'>>;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
213
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
214
|
+
isValidAuthToken?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsValidAuthTokenArgs, 'authToken'>>;
|
|
215
|
+
fetchLogins?: Resolver<IResolversTypes['LoginsPage'], ParentType, ContextType, RequireFields<IQueryFetchLoginsArgs, 'pageSize'>>;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
export type ITokenPairResolvers<ContextType = any, ParentType extends IResolversParentTypes['TokenPair'] = IResolversParentTypes['TokenPair']> = {
|
|
219
|
+
userId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
220
|
+
tokenAuth?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
221
|
+
tokenRefresh?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
222
|
+
role?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
223
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
export type IResolvers<ContextType = any> = {
|
|
227
|
+
Login?: ILoginResolvers<ContextType>;
|
|
228
|
+
LoginsPage?: ILoginsPageResolvers<ContextType>;
|
|
229
|
+
Long?: GraphQLScalarType;
|
|
230
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
231
|
+
Query?: IQueryResolvers<ContextType>;
|
|
232
|
+
TokenPair?: ITokenPairResolvers<ContextType>;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
236
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export type IRefreshTokenMutationVariables = Exact<{
|
|
240
|
+
refreshToken: Scalars['String'];
|
|
241
|
+
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
242
|
+
}>;
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
export type IRefreshTokenMutation = { refreshToken: Pick<ITokenPair, 'userId' | 'tokenAuth' | 'tokenRefresh' | 'role'> };
|
|
246
|
+
|
|
247
|
+
export type IRevokeTokenMutationVariables = Exact<{ [key: string]: never; }>;
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
export type IRevokeTokenMutation = Pick<IMutation, 'revokeToken'>;
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
export const RefreshTokenDocument = gql`
|
|
254
|
+
mutation RefreshToken($refreshToken: String!, $showNsfw: Boolean) {
|
|
255
|
+
refreshToken(refreshToken: $refreshToken, showNsfw: $showNsfw) {
|
|
256
|
+
userId
|
|
257
|
+
tokenAuth
|
|
258
|
+
tokenRefresh
|
|
259
|
+
role
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
`;
|
|
263
|
+
export type IRefreshTokenMutationFn = Apollo.MutationFunction<IRefreshTokenMutation, IRefreshTokenMutationVariables>;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* __useRefreshTokenMutation__
|
|
267
|
+
*
|
|
268
|
+
* To run a mutation, you first call `useRefreshTokenMutation` within a React component and pass it any options that fit your needs.
|
|
269
|
+
* When your component renders, `useRefreshTokenMutation` returns a tuple that includes:
|
|
270
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
271
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
272
|
+
*
|
|
273
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* const [refreshTokenMutation, { data, loading, error }] = useRefreshTokenMutation({
|
|
277
|
+
* variables: {
|
|
278
|
+
* refreshToken: // value for 'refreshToken'
|
|
279
|
+
* showNsfw: // value for 'showNsfw'
|
|
280
|
+
* },
|
|
281
|
+
* });
|
|
282
|
+
*/
|
|
283
|
+
export function useRefreshTokenMutation(baseOptions?: Apollo.MutationHookOptions<IRefreshTokenMutation, IRefreshTokenMutationVariables>) {
|
|
284
|
+
return Apollo.useMutation<IRefreshTokenMutation, IRefreshTokenMutationVariables>(RefreshTokenDocument, baseOptions);
|
|
285
|
+
}
|
|
286
|
+
export type RefreshTokenMutationHookResult = ReturnType<typeof useRefreshTokenMutation>;
|
|
287
|
+
export type RefreshTokenMutationResult = Apollo.MutationResult<IRefreshTokenMutation>;
|
|
288
|
+
export type RefreshTokenMutationOptions = Apollo.BaseMutationOptions<IRefreshTokenMutation, IRefreshTokenMutationVariables>;
|
|
289
|
+
export const RevokeTokenDocument = gql`
|
|
290
|
+
mutation RevokeToken {
|
|
291
|
+
revokeToken
|
|
292
|
+
}
|
|
293
|
+
`;
|
|
294
|
+
export type IRevokeTokenMutationFn = Apollo.MutationFunction<IRevokeTokenMutation, IRevokeTokenMutationVariables>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* __useRevokeTokenMutation__
|
|
298
|
+
*
|
|
299
|
+
* To run a mutation, you first call `useRevokeTokenMutation` within a React component and pass it any options that fit your needs.
|
|
300
|
+
* When your component renders, `useRevokeTokenMutation` returns a tuple that includes:
|
|
301
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
302
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
303
|
+
*
|
|
304
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* const [revokeTokenMutation, { data, loading, error }] = useRevokeTokenMutation({
|
|
308
|
+
* variables: {
|
|
309
|
+
* },
|
|
310
|
+
* });
|
|
311
|
+
*/
|
|
312
|
+
export function useRevokeTokenMutation(baseOptions?: Apollo.MutationHookOptions<IRevokeTokenMutation, IRevokeTokenMutationVariables>) {
|
|
313
|
+
return Apollo.useMutation<IRevokeTokenMutation, IRevokeTokenMutationVariables>(RevokeTokenDocument, baseOptions);
|
|
314
|
+
}
|
|
315
|
+
export type RevokeTokenMutationHookResult = ReturnType<typeof useRevokeTokenMutation>;
|
|
316
|
+
export type RevokeTokenMutationResult = Apollo.MutationResult<IRevokeTokenMutation>;
|
|
317
|
+
export type RevokeTokenMutationOptions = Apollo.BaseMutationOptions<IRevokeTokenMutation, IRevokeTokenMutationVariables>;
|