@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.
Files changed (48) hide show
  1. package/build/config/index.js +4 -4
  2. package/build/graphql_tools/__generated__/adminHost/schema.d.ts +1434 -0
  3. package/build/graphql_tools/__generated__/adminHost/schema.js +688 -0
  4. package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +392 -0
  5. package/build/graphql_tools/__generated__/assetsHost/schema.js +80 -0
  6. package/build/graphql_tools/__generated__/authHost/schema.d.ts +238 -0
  7. package/build/graphql_tools/__generated__/authHost/schema.js +85 -0
  8. package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +455 -0
  9. package/build/graphql_tools/__generated__/collectionsHost/schema.js +80 -0
  10. package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +356 -0
  11. package/build/graphql_tools/__generated__/experiencesHost/schema.js +191 -0
  12. package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +808 -0
  13. package/build/graphql_tools/__generated__/extensionHost/schema.js +449 -0
  14. package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +794 -0
  15. package/build/graphql_tools/__generated__/galleriesHost/schema.js +575 -0
  16. package/build/graphql_tools/__generated__/identityHost/schema.d.ts +1205 -0
  17. package/build/graphql_tools/__generated__/identityHost/schema.js +757 -0
  18. package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +242 -0
  19. package/build/graphql_tools/__generated__/mediasHost/schema.js +110 -0
  20. package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +486 -0
  21. package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +148 -0
  22. package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +604 -0
  23. package/build/graphql_tools/__generated__/preferencesHost/schema.js +411 -0
  24. package/build/graphql_tools/__generated__/schema.d.ts +1 -0
  25. package/build/graphql_tools/__generated__/searchHost/schema.d.ts +1304 -0
  26. package/build/graphql_tools/__generated__/searchHost/schema.js +1191 -0
  27. package/build/hosts/index.d.ts +0 -3
  28. package/build/hosts/index.js +1 -4
  29. package/build/index.d.ts +13 -2
  30. package/build/index.js +25 -3
  31. package/package.json +1 -1
  32. package/src/config/index.ts +50 -50
  33. package/src/graphql_tools/__generated__/adminHost/schema.ts +1814 -0
  34. package/src/graphql_tools/__generated__/assetsHost/schema.ts +482 -0
  35. package/src/graphql_tools/__generated__/authHost/schema.ts +317 -0
  36. package/src/graphql_tools/__generated__/collectionsHost/schema.ts +554 -0
  37. package/src/graphql_tools/__generated__/experiencesHost/schema.ts +478 -0
  38. package/src/graphql_tools/__generated__/extensionHost/schema.ts +1074 -0
  39. package/src/graphql_tools/__generated__/galleriesHost/schema.ts +1090 -0
  40. package/src/graphql_tools/__generated__/identityHost/schema.ts +1584 -0
  41. package/src/graphql_tools/__generated__/mediasHost/schema.ts +333 -0
  42. package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +629 -0
  43. package/src/graphql_tools/__generated__/preferencesHost/schema.ts +772 -0
  44. package/src/graphql_tools/__generated__/schema.ts +1 -0
  45. package/src/graphql_tools/__generated__/searchHost/schema.ts +2137 -0
  46. package/src/hosts/index.ts +0 -6
  47. package/src/index.ts +29 -2
  48. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,242 @@
1
+ import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
2
+ import * as Apollo from '@apollo/client';
3
+ export type Maybe<T> = T | null;
4
+ export type Exact<T extends {
5
+ [key: string]: unknown;
6
+ }> = {
7
+ [K in keyof T]: T[K];
8
+ };
9
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
10
+ [SubKey in K]?: Maybe<T[SubKey]>;
11
+ };
12
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
13
+ [SubKey in K]: Maybe<T[SubKey]>;
14
+ };
15
+ export type RequireFields<T, K extends keyof T> = Omit<T, K> & {
16
+ [P in K]-?: NonNullable<T[P]>;
17
+ };
18
+ /** All built-in and custom scalars, mapped to their actual values */
19
+ export type Scalars = {
20
+ ID: string;
21
+ String: string;
22
+ Boolean: boolean;
23
+ Int: number;
24
+ Float: number;
25
+ /** scalar Long */
26
+ Upload: any;
27
+ };
28
+ export type IMutation = {
29
+ setDummy: Scalars['String'];
30
+ uploadUserpic: Scalars['String'];
31
+ uploadGalleryBanner: Scalars['String'];
32
+ uploadOpportunityMedia: Scalars['String'];
33
+ uploadBrandMedia: Scalars['String'];
34
+ deleteUserpic: Scalars['Boolean'];
35
+ deleteGalleryBanner: Scalars['Boolean'];
36
+ deleteOpportunityMedia: Scalars['Boolean'];
37
+ deleteBrandMedia: Scalars['Boolean'];
38
+ };
39
+ export type IMutationUploadUserpicArgs = {
40
+ file: Scalars['Upload'];
41
+ };
42
+ export type IMutationUploadGalleryBannerArgs = {
43
+ galleryId: Scalars['ID'];
44
+ file: Scalars['Upload'];
45
+ };
46
+ export type IMutationUploadOpportunityMediaArgs = {
47
+ opportunityId: Scalars['ID'];
48
+ file: Scalars['Upload'];
49
+ };
50
+ export type IMutationUploadBrandMediaArgs = {
51
+ brandId: Scalars['ID'];
52
+ file: Scalars['Upload'];
53
+ };
54
+ export type IMutationDeleteGalleryBannerArgs = {
55
+ galleryId: Scalars['ID'];
56
+ };
57
+ export type IMutationDeleteOpportunityMediaArgs = {
58
+ opportunityId: Scalars['ID'];
59
+ };
60
+ export type IMutationDeleteBrandMediaArgs = {
61
+ opportunityId: Scalars['ID'];
62
+ };
63
+ export type IQuery = {
64
+ getDummy: Scalars['String'];
65
+ fetchUserpic?: Maybe<Scalars['String']>;
66
+ fetchGalleryBanner?: Maybe<Scalars['String']>;
67
+ fetchOpportunityMedia?: Maybe<Scalars['String']>;
68
+ };
69
+ export type IQueryFetchUserpicArgs = {
70
+ userId: Scalars['ID'];
71
+ };
72
+ export type IQueryFetchGalleryBannerArgs = {
73
+ galleryId: Scalars['ID'];
74
+ };
75
+ export type IQueryFetchOpportunityMediaArgs = {
76
+ opportunityId: Scalars['ID'];
77
+ };
78
+ export type ResolverTypeWrapper<T> = Promise<T> | T;
79
+ export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
80
+ resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
81
+ };
82
+ export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
83
+ export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
84
+ export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
85
+ export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
86
+ export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
87
+ subscribe: SubscriptionSubscribeFn<{
88
+ [key in TKey]: TResult;
89
+ }, TParent, TContext, TArgs>;
90
+ resolve?: SubscriptionResolveFn<TResult, {
91
+ [key in TKey]: TResult;
92
+ }, TContext, TArgs>;
93
+ }
94
+ export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
95
+ subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
96
+ resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
97
+ }
98
+ export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
99
+ export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
100
+ export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
101
+ export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
102
+ export type NextResolverFn<T> = () => Promise<T>;
103
+ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
104
+ /** Mapping between all available schema types and the resolvers types */
105
+ export type IResolversTypes = {
106
+ Mutation: ResolverTypeWrapper<{}>;
107
+ String: ResolverTypeWrapper<Scalars['String']>;
108
+ ID: ResolverTypeWrapper<Scalars['ID']>;
109
+ Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
110
+ Query: ResolverTypeWrapper<{}>;
111
+ Upload: ResolverTypeWrapper<Scalars['Upload']>;
112
+ };
113
+ /** Mapping between all available schema types and the resolvers parents */
114
+ export type IResolversParentTypes = {
115
+ Mutation: {};
116
+ String: Scalars['String'];
117
+ ID: Scalars['ID'];
118
+ Boolean: Scalars['Boolean'];
119
+ Query: {};
120
+ Upload: Scalars['Upload'];
121
+ };
122
+ export type IOneOfDirectiveArgs = {};
123
+ export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
124
+ export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
125
+ setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
126
+ uploadUserpic?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationUploadUserpicArgs, 'file'>>;
127
+ uploadGalleryBanner?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationUploadGalleryBannerArgs, 'galleryId' | 'file'>>;
128
+ uploadOpportunityMedia?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationUploadOpportunityMediaArgs, 'opportunityId' | 'file'>>;
129
+ uploadBrandMedia?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationUploadBrandMediaArgs, 'brandId' | 'file'>>;
130
+ deleteUserpic?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
131
+ deleteGalleryBanner?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDeleteGalleryBannerArgs, 'galleryId'>>;
132
+ deleteOpportunityMedia?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDeleteOpportunityMediaArgs, 'opportunityId'>>;
133
+ deleteBrandMedia?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDeleteBrandMediaArgs, 'opportunityId'>>;
134
+ };
135
+ export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
136
+ getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
137
+ fetchUserpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType, RequireFields<IQueryFetchUserpicArgs, 'userId'>>;
138
+ fetchGalleryBanner?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType, RequireFields<IQueryFetchGalleryBannerArgs, 'galleryId'>>;
139
+ fetchOpportunityMedia?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunityMediaArgs, 'opportunityId'>>;
140
+ };
141
+ export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
142
+ name: 'Upload';
143
+ }
144
+ export type IResolvers<ContextType = any> = {
145
+ Mutation?: IMutationResolvers<ContextType>;
146
+ Query?: IQueryResolvers<ContextType>;
147
+ Upload?: GraphQLScalarType;
148
+ };
149
+ export type IDirectiveResolvers<ContextType = any> = {
150
+ oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
151
+ };
152
+ export type IDeleteGalleryBannerMutationVariables = Exact<{
153
+ galleryId: Scalars['ID'];
154
+ }>;
155
+ export type IDeleteGalleryBannerMutation = Pick<IMutation, 'deleteGalleryBanner'>;
156
+ export type IUploadGalleryBannerMutationVariables = Exact<{
157
+ galleryId: Scalars['ID'];
158
+ file: Scalars['Upload'];
159
+ }>;
160
+ export type IUploadGalleryBannerMutation = Pick<IMutation, 'uploadGalleryBanner'>;
161
+ export type IFetchUserpicQueryVariables = Exact<{
162
+ userId: Scalars['ID'];
163
+ }>;
164
+ export type IFetchUserpicQuery = Pick<IQuery, 'fetchUserpic'>;
165
+ export declare const DeleteGalleryBannerDocument: Apollo.DocumentNode;
166
+ export type IDeleteGalleryBannerMutationFn = Apollo.MutationFunction<IDeleteGalleryBannerMutation, IDeleteGalleryBannerMutationVariables>;
167
+ /**
168
+ * __useDeleteGalleryBannerMutation__
169
+ *
170
+ * To run a mutation, you first call `useDeleteGalleryBannerMutation` within a React component and pass it any options that fit your needs.
171
+ * When your component renders, `useDeleteGalleryBannerMutation` returns a tuple that includes:
172
+ * - A mutate function that you can call at any time to execute the mutation
173
+ * - An object with fields that represent the current status of the mutation's execution
174
+ *
175
+ * @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;
176
+ *
177
+ * @example
178
+ * const [deleteGalleryBannerMutation, { data, loading, error }] = useDeleteGalleryBannerMutation({
179
+ * variables: {
180
+ * galleryId: // value for 'galleryId'
181
+ * },
182
+ * });
183
+ */
184
+ export declare function useDeleteGalleryBannerMutation(baseOptions?: Apollo.MutationHookOptions<IDeleteGalleryBannerMutation, IDeleteGalleryBannerMutationVariables>): Apollo.MutationTuple<IDeleteGalleryBannerMutation, Exact<{
185
+ galleryId: string;
186
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
187
+ export type DeleteGalleryBannerMutationHookResult = ReturnType<typeof useDeleteGalleryBannerMutation>;
188
+ export type DeleteGalleryBannerMutationResult = Apollo.MutationResult<IDeleteGalleryBannerMutation>;
189
+ export type DeleteGalleryBannerMutationOptions = Apollo.BaseMutationOptions<IDeleteGalleryBannerMutation, IDeleteGalleryBannerMutationVariables>;
190
+ export declare const UploadGalleryBannerDocument: Apollo.DocumentNode;
191
+ export type IUploadGalleryBannerMutationFn = Apollo.MutationFunction<IUploadGalleryBannerMutation, IUploadGalleryBannerMutationVariables>;
192
+ /**
193
+ * __useUploadGalleryBannerMutation__
194
+ *
195
+ * To run a mutation, you first call `useUploadGalleryBannerMutation` within a React component and pass it any options that fit your needs.
196
+ * When your component renders, `useUploadGalleryBannerMutation` returns a tuple that includes:
197
+ * - A mutate function that you can call at any time to execute the mutation
198
+ * - An object with fields that represent the current status of the mutation's execution
199
+ *
200
+ * @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;
201
+ *
202
+ * @example
203
+ * const [uploadGalleryBannerMutation, { data, loading, error }] = useUploadGalleryBannerMutation({
204
+ * variables: {
205
+ * galleryId: // value for 'galleryId'
206
+ * file: // value for 'file'
207
+ * },
208
+ * });
209
+ */
210
+ export declare function useUploadGalleryBannerMutation(baseOptions?: Apollo.MutationHookOptions<IUploadGalleryBannerMutation, IUploadGalleryBannerMutationVariables>): Apollo.MutationTuple<IUploadGalleryBannerMutation, Exact<{
211
+ galleryId: string;
212
+ file: any;
213
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
214
+ export type UploadGalleryBannerMutationHookResult = ReturnType<typeof useUploadGalleryBannerMutation>;
215
+ export type UploadGalleryBannerMutationResult = Apollo.MutationResult<IUploadGalleryBannerMutation>;
216
+ export type UploadGalleryBannerMutationOptions = Apollo.BaseMutationOptions<IUploadGalleryBannerMutation, IUploadGalleryBannerMutationVariables>;
217
+ export declare const FetchUserpicDocument: Apollo.DocumentNode;
218
+ /**
219
+ * __useFetchUserpicQuery__
220
+ *
221
+ * To run a query within a React component, call `useFetchUserpicQuery` and pass it any options that fit your needs.
222
+ * When your component renders, `useFetchUserpicQuery` returns an object from Apollo Client that contains loading, error, and data properties
223
+ * you can use to render your UI.
224
+ *
225
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
226
+ *
227
+ * @example
228
+ * const { data, loading, error } = useFetchUserpicQuery({
229
+ * variables: {
230
+ * userId: // value for 'userId'
231
+ * },
232
+ * });
233
+ */
234
+ export declare function useFetchUserpicQuery(baseOptions: Apollo.QueryHookOptions<IFetchUserpicQuery, IFetchUserpicQueryVariables>): Apollo.QueryResult<IFetchUserpicQuery, Exact<{
235
+ userId: string;
236
+ }>>;
237
+ export declare function useFetchUserpicLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUserpicQuery, IFetchUserpicQueryVariables>): Apollo.LazyQueryResultTuple<IFetchUserpicQuery, Exact<{
238
+ userId: string;
239
+ }>>;
240
+ export type FetchUserpicQueryHookResult = ReturnType<typeof useFetchUserpicQuery>;
241
+ export type FetchUserpicLazyQueryHookResult = ReturnType<typeof useFetchUserpicLazyQuery>;
242
+ export type FetchUserpicQueryResult = Apollo.QueryResult<IFetchUserpicQuery, IFetchUserpicQueryVariables>;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.useFetchUserpicLazyQuery = exports.useFetchUserpicQuery = exports.FetchUserpicDocument = exports.useUploadGalleryBannerMutation = exports.UploadGalleryBannerDocument = exports.useDeleteGalleryBannerMutation = exports.DeleteGalleryBannerDocument = void 0;
27
+ const client_1 = require("@apollo/client");
28
+ const Apollo = __importStar(require("@apollo/client"));
29
+ exports.DeleteGalleryBannerDocument = (0, client_1.gql) `
30
+ mutation DeleteGalleryBanner($galleryId: ID!) {
31
+ deleteGalleryBanner(galleryId: $galleryId)
32
+ }
33
+ `;
34
+ /**
35
+ * __useDeleteGalleryBannerMutation__
36
+ *
37
+ * To run a mutation, you first call `useDeleteGalleryBannerMutation` within a React component and pass it any options that fit your needs.
38
+ * When your component renders, `useDeleteGalleryBannerMutation` returns a tuple that includes:
39
+ * - A mutate function that you can call at any time to execute the mutation
40
+ * - An object with fields that represent the current status of the mutation's execution
41
+ *
42
+ * @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;
43
+ *
44
+ * @example
45
+ * const [deleteGalleryBannerMutation, { data, loading, error }] = useDeleteGalleryBannerMutation({
46
+ * variables: {
47
+ * galleryId: // value for 'galleryId'
48
+ * },
49
+ * });
50
+ */
51
+ function useDeleteGalleryBannerMutation(baseOptions) {
52
+ return Apollo.useMutation(exports.DeleteGalleryBannerDocument, baseOptions);
53
+ }
54
+ exports.useDeleteGalleryBannerMutation = useDeleteGalleryBannerMutation;
55
+ exports.UploadGalleryBannerDocument = (0, client_1.gql) `
56
+ mutation UploadGalleryBanner($galleryId: ID!, $file: Upload!) {
57
+ uploadGalleryBanner(galleryId: $galleryId, file: $file)
58
+ }
59
+ `;
60
+ /**
61
+ * __useUploadGalleryBannerMutation__
62
+ *
63
+ * To run a mutation, you first call `useUploadGalleryBannerMutation` within a React component and pass it any options that fit your needs.
64
+ * When your component renders, `useUploadGalleryBannerMutation` returns a tuple that includes:
65
+ * - A mutate function that you can call at any time to execute the mutation
66
+ * - An object with fields that represent the current status of the mutation's execution
67
+ *
68
+ * @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;
69
+ *
70
+ * @example
71
+ * const [uploadGalleryBannerMutation, { data, loading, error }] = useUploadGalleryBannerMutation({
72
+ * variables: {
73
+ * galleryId: // value for 'galleryId'
74
+ * file: // value for 'file'
75
+ * },
76
+ * });
77
+ */
78
+ function useUploadGalleryBannerMutation(baseOptions) {
79
+ return Apollo.useMutation(exports.UploadGalleryBannerDocument, baseOptions);
80
+ }
81
+ exports.useUploadGalleryBannerMutation = useUploadGalleryBannerMutation;
82
+ exports.FetchUserpicDocument = (0, client_1.gql) `
83
+ query FetchUserpic($userId: ID!) {
84
+ fetchUserpic(userId: $userId)
85
+ }
86
+ `;
87
+ /**
88
+ * __useFetchUserpicQuery__
89
+ *
90
+ * To run a query within a React component, call `useFetchUserpicQuery` and pass it any options that fit your needs.
91
+ * When your component renders, `useFetchUserpicQuery` returns an object from Apollo Client that contains loading, error, and data properties
92
+ * you can use to render your UI.
93
+ *
94
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
95
+ *
96
+ * @example
97
+ * const { data, loading, error } = useFetchUserpicQuery({
98
+ * variables: {
99
+ * userId: // value for 'userId'
100
+ * },
101
+ * });
102
+ */
103
+ function useFetchUserpicQuery(baseOptions) {
104
+ return Apollo.useQuery(exports.FetchUserpicDocument, baseOptions);
105
+ }
106
+ exports.useFetchUserpicQuery = useFetchUserpicQuery;
107
+ function useFetchUserpicLazyQuery(baseOptions) {
108
+ return Apollo.useLazyQuery(exports.FetchUserpicDocument, baseOptions);
109
+ }
110
+ exports.useFetchUserpicLazyQuery = useFetchUserpicLazyQuery;