@ludo.ninja/api 2.8.24 → 2.8.26

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 (49) hide show
  1. package/build/config/index.js +4 -4
  2. package/build/graphql_tools/__generated__/schema.d.ts +8936 -0
  3. package/build/graphql_tools/__generated__/schema.js +5431 -0
  4. package/build/hosts/index.d.ts +3 -0
  5. package/build/hosts/index.js +4 -1
  6. package/build/index.d.ts +2 -13
  7. package/build/index.js +3 -25
  8. package/package.json +1 -1
  9. package/src/config/index.ts +50 -50
  10. package/src/graphql_tools/__generated__/schema.ts +12028 -0
  11. package/src/hosts/index.ts +6 -0
  12. package/src/index.ts +2 -29
  13. package/tsconfig.tsbuildinfo +1 -1
  14. package/build/graphql_tools/__generated__/adminHost/schema.d.ts +0 -1406
  15. package/build/graphql_tools/__generated__/adminHost/schema.js +0 -683
  16. package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +0 -392
  17. package/build/graphql_tools/__generated__/assetsHost/schema.js +0 -80
  18. package/build/graphql_tools/__generated__/authHost/schema.d.ts +0 -238
  19. package/build/graphql_tools/__generated__/authHost/schema.js +0 -85
  20. package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +0 -455
  21. package/build/graphql_tools/__generated__/collectionsHost/schema.js +0 -80
  22. package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +0 -356
  23. package/build/graphql_tools/__generated__/experiencesHost/schema.js +0 -191
  24. package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +0 -808
  25. package/build/graphql_tools/__generated__/extensionHost/schema.js +0 -449
  26. package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +0 -794
  27. package/build/graphql_tools/__generated__/galleriesHost/schema.js +0 -575
  28. package/build/graphql_tools/__generated__/identityHost/schema.d.ts +0 -1201
  29. package/build/graphql_tools/__generated__/identityHost/schema.js +0 -757
  30. package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +0 -242
  31. package/build/graphql_tools/__generated__/mediasHost/schema.js +0 -110
  32. package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +0 -486
  33. package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +0 -148
  34. package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +0 -604
  35. package/build/graphql_tools/__generated__/preferencesHost/schema.js +0 -411
  36. package/build/graphql_tools/__generated__/searchHost/schema.d.ts +0 -1304
  37. package/build/graphql_tools/__generated__/searchHost/schema.js +0 -1191
  38. package/src/graphql_tools/__generated__/adminHost/schema.ts +0 -1777
  39. package/src/graphql_tools/__generated__/assetsHost/schema.ts +0 -482
  40. package/src/graphql_tools/__generated__/authHost/schema.ts +0 -317
  41. package/src/graphql_tools/__generated__/collectionsHost/schema.ts +0 -554
  42. package/src/graphql_tools/__generated__/experiencesHost/schema.ts +0 -478
  43. package/src/graphql_tools/__generated__/extensionHost/schema.ts +0 -1074
  44. package/src/graphql_tools/__generated__/galleriesHost/schema.ts +0 -1090
  45. package/src/graphql_tools/__generated__/identityHost/schema.ts +0 -1580
  46. package/src/graphql_tools/__generated__/mediasHost/schema.ts +0 -333
  47. package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +0 -629
  48. package/src/graphql_tools/__generated__/preferencesHost/schema.ts +0 -772
  49. package/src/graphql_tools/__generated__/searchHost/schema.ts +0 -2137
@@ -1,333 +0,0 @@
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
- /** scalar Long */
18
- Upload: any;
19
- };
20
-
21
-
22
- export type IMutation = {
23
- setDummy: Scalars['String'];
24
- uploadUserpic: Scalars['String'];
25
- uploadGalleryBanner: Scalars['String'];
26
- uploadOpportunityMedia: Scalars['String'];
27
- uploadBrandMedia: Scalars['String'];
28
- deleteUserpic: Scalars['Boolean'];
29
- deleteGalleryBanner: Scalars['Boolean'];
30
- deleteOpportunityMedia: Scalars['Boolean'];
31
- deleteBrandMedia: Scalars['Boolean'];
32
- };
33
-
34
-
35
- export type IMutationUploadUserpicArgs = {
36
- file: Scalars['Upload'];
37
- };
38
-
39
-
40
- export type IMutationUploadGalleryBannerArgs = {
41
- galleryId: Scalars['ID'];
42
- file: Scalars['Upload'];
43
- };
44
-
45
-
46
- export type IMutationUploadOpportunityMediaArgs = {
47
- opportunityId: Scalars['ID'];
48
- file: Scalars['Upload'];
49
- };
50
-
51
-
52
- export type IMutationUploadBrandMediaArgs = {
53
- brandId: Scalars['ID'];
54
- file: Scalars['Upload'];
55
- };
56
-
57
-
58
- export type IMutationDeleteGalleryBannerArgs = {
59
- galleryId: Scalars['ID'];
60
- };
61
-
62
-
63
- export type IMutationDeleteOpportunityMediaArgs = {
64
- opportunityId: Scalars['ID'];
65
- };
66
-
67
-
68
- export type IMutationDeleteBrandMediaArgs = {
69
- opportunityId: Scalars['ID'];
70
- };
71
-
72
- export type IQuery = {
73
- getDummy: Scalars['String'];
74
- fetchUserpic?: Maybe<Scalars['String']>;
75
- fetchGalleryBanner?: Maybe<Scalars['String']>;
76
- fetchOpportunityMedia?: Maybe<Scalars['String']>;
77
- };
78
-
79
-
80
- export type IQueryFetchUserpicArgs = {
81
- userId: Scalars['ID'];
82
- };
83
-
84
-
85
- export type IQueryFetchGalleryBannerArgs = {
86
- galleryId: Scalars['ID'];
87
- };
88
-
89
-
90
- export type IQueryFetchOpportunityMediaArgs = {
91
- opportunityId: Scalars['ID'];
92
- };
93
-
94
-
95
-
96
-
97
- export type ResolverTypeWrapper<T> = Promise<T> | T;
98
-
99
-
100
- export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
101
- resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
102
- };
103
- export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
104
-
105
- export type ResolverFn<TResult, TParent, TContext, TArgs> = (
106
- parent: TParent,
107
- args: TArgs,
108
- context: TContext,
109
- info: GraphQLResolveInfo
110
- ) => Promise<TResult> | TResult;
111
-
112
- export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
113
- parent: TParent,
114
- args: TArgs,
115
- context: TContext,
116
- info: GraphQLResolveInfo
117
- ) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
118
-
119
- export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
120
- parent: TParent,
121
- args: TArgs,
122
- context: TContext,
123
- info: GraphQLResolveInfo
124
- ) => TResult | Promise<TResult>;
125
-
126
- export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
127
- subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
128
- resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
129
- }
130
-
131
- export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
132
- subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
133
- resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
134
- }
135
-
136
- export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
137
- | SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
138
- | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
139
-
140
- export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
141
- | ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
142
- | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
143
-
144
- export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
145
- parent: TParent,
146
- context: TContext,
147
- info: GraphQLResolveInfo
148
- ) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
149
-
150
- export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
151
-
152
- export type NextResolverFn<T> = () => Promise<T>;
153
-
154
- export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
155
- next: NextResolverFn<TResult>,
156
- parent: TParent,
157
- args: TArgs,
158
- context: TContext,
159
- info: GraphQLResolveInfo
160
- ) => TResult | Promise<TResult>;
161
-
162
- /** Mapping between all available schema types and the resolvers types */
163
- export type IResolversTypes = {
164
- Mutation: ResolverTypeWrapper<{}>;
165
- String: ResolverTypeWrapper<Scalars['String']>;
166
- ID: ResolverTypeWrapper<Scalars['ID']>;
167
- Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
168
- Query: ResolverTypeWrapper<{}>;
169
- Upload: ResolverTypeWrapper<Scalars['Upload']>;
170
- };
171
-
172
- /** Mapping between all available schema types and the resolvers parents */
173
- export type IResolversParentTypes = {
174
- Mutation: {};
175
- String: Scalars['String'];
176
- ID: Scalars['ID'];
177
- Boolean: Scalars['Boolean'];
178
- Query: {};
179
- Upload: Scalars['Upload'];
180
- };
181
-
182
- export type IOneOfDirectiveArgs = { };
183
-
184
- export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
185
-
186
- export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
187
- setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
188
- uploadUserpic?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationUploadUserpicArgs, 'file'>>;
189
- uploadGalleryBanner?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationUploadGalleryBannerArgs, 'galleryId' | 'file'>>;
190
- uploadOpportunityMedia?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationUploadOpportunityMediaArgs, 'opportunityId' | 'file'>>;
191
- uploadBrandMedia?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationUploadBrandMediaArgs, 'brandId' | 'file'>>;
192
- deleteUserpic?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
193
- deleteGalleryBanner?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDeleteGalleryBannerArgs, 'galleryId'>>;
194
- deleteOpportunityMedia?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDeleteOpportunityMediaArgs, 'opportunityId'>>;
195
- deleteBrandMedia?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDeleteBrandMediaArgs, 'opportunityId'>>;
196
- };
197
-
198
- export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
199
- getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
200
- fetchUserpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType, RequireFields<IQueryFetchUserpicArgs, 'userId'>>;
201
- fetchGalleryBanner?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType, RequireFields<IQueryFetchGalleryBannerArgs, 'galleryId'>>;
202
- fetchOpportunityMedia?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunityMediaArgs, 'opportunityId'>>;
203
- };
204
-
205
- export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
206
- name: 'Upload';
207
- }
208
-
209
- export type IResolvers<ContextType = any> = {
210
- Mutation?: IMutationResolvers<ContextType>;
211
- Query?: IQueryResolvers<ContextType>;
212
- Upload?: GraphQLScalarType;
213
- };
214
-
215
- export type IDirectiveResolvers<ContextType = any> = {
216
- oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
217
- };
218
-
219
- export type IDeleteGalleryBannerMutationVariables = Exact<{
220
- galleryId: Scalars['ID'];
221
- }>;
222
-
223
-
224
- export type IDeleteGalleryBannerMutation = Pick<IMutation, 'deleteGalleryBanner'>;
225
-
226
- export type IUploadGalleryBannerMutationVariables = Exact<{
227
- galleryId: Scalars['ID'];
228
- file: Scalars['Upload'];
229
- }>;
230
-
231
-
232
- export type IUploadGalleryBannerMutation = Pick<IMutation, 'uploadGalleryBanner'>;
233
-
234
- export type IFetchUserpicQueryVariables = Exact<{
235
- userId: Scalars['ID'];
236
- }>;
237
-
238
-
239
- export type IFetchUserpicQuery = Pick<IQuery, 'fetchUserpic'>;
240
-
241
-
242
- export const DeleteGalleryBannerDocument = gql`
243
- mutation DeleteGalleryBanner($galleryId: ID!) {
244
- deleteGalleryBanner(galleryId: $galleryId)
245
- }
246
- `;
247
- export type IDeleteGalleryBannerMutationFn = Apollo.MutationFunction<IDeleteGalleryBannerMutation, IDeleteGalleryBannerMutationVariables>;
248
-
249
- /**
250
- * __useDeleteGalleryBannerMutation__
251
- *
252
- * To run a mutation, you first call `useDeleteGalleryBannerMutation` within a React component and pass it any options that fit your needs.
253
- * When your component renders, `useDeleteGalleryBannerMutation` returns a tuple that includes:
254
- * - A mutate function that you can call at any time to execute the mutation
255
- * - An object with fields that represent the current status of the mutation's execution
256
- *
257
- * @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;
258
- *
259
- * @example
260
- * const [deleteGalleryBannerMutation, { data, loading, error }] = useDeleteGalleryBannerMutation({
261
- * variables: {
262
- * galleryId: // value for 'galleryId'
263
- * },
264
- * });
265
- */
266
- export function useDeleteGalleryBannerMutation(baseOptions?: Apollo.MutationHookOptions<IDeleteGalleryBannerMutation, IDeleteGalleryBannerMutationVariables>) {
267
- return Apollo.useMutation<IDeleteGalleryBannerMutation, IDeleteGalleryBannerMutationVariables>(DeleteGalleryBannerDocument, baseOptions);
268
- }
269
- export type DeleteGalleryBannerMutationHookResult = ReturnType<typeof useDeleteGalleryBannerMutation>;
270
- export type DeleteGalleryBannerMutationResult = Apollo.MutationResult<IDeleteGalleryBannerMutation>;
271
- export type DeleteGalleryBannerMutationOptions = Apollo.BaseMutationOptions<IDeleteGalleryBannerMutation, IDeleteGalleryBannerMutationVariables>;
272
- export const UploadGalleryBannerDocument = gql`
273
- mutation UploadGalleryBanner($galleryId: ID!, $file: Upload!) {
274
- uploadGalleryBanner(galleryId: $galleryId, file: $file)
275
- }
276
- `;
277
- export type IUploadGalleryBannerMutationFn = Apollo.MutationFunction<IUploadGalleryBannerMutation, IUploadGalleryBannerMutationVariables>;
278
-
279
- /**
280
- * __useUploadGalleryBannerMutation__
281
- *
282
- * To run a mutation, you first call `useUploadGalleryBannerMutation` within a React component and pass it any options that fit your needs.
283
- * When your component renders, `useUploadGalleryBannerMutation` returns a tuple that includes:
284
- * - A mutate function that you can call at any time to execute the mutation
285
- * - An object with fields that represent the current status of the mutation's execution
286
- *
287
- * @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;
288
- *
289
- * @example
290
- * const [uploadGalleryBannerMutation, { data, loading, error }] = useUploadGalleryBannerMutation({
291
- * variables: {
292
- * galleryId: // value for 'galleryId'
293
- * file: // value for 'file'
294
- * },
295
- * });
296
- */
297
- export function useUploadGalleryBannerMutation(baseOptions?: Apollo.MutationHookOptions<IUploadGalleryBannerMutation, IUploadGalleryBannerMutationVariables>) {
298
- return Apollo.useMutation<IUploadGalleryBannerMutation, IUploadGalleryBannerMutationVariables>(UploadGalleryBannerDocument, baseOptions);
299
- }
300
- export type UploadGalleryBannerMutationHookResult = ReturnType<typeof useUploadGalleryBannerMutation>;
301
- export type UploadGalleryBannerMutationResult = Apollo.MutationResult<IUploadGalleryBannerMutation>;
302
- export type UploadGalleryBannerMutationOptions = Apollo.BaseMutationOptions<IUploadGalleryBannerMutation, IUploadGalleryBannerMutationVariables>;
303
- export const FetchUserpicDocument = gql`
304
- query FetchUserpic($userId: ID!) {
305
- fetchUserpic(userId: $userId)
306
- }
307
- `;
308
-
309
- /**
310
- * __useFetchUserpicQuery__
311
- *
312
- * To run a query within a React component, call `useFetchUserpicQuery` and pass it any options that fit your needs.
313
- * When your component renders, `useFetchUserpicQuery` returns an object from Apollo Client that contains loading, error, and data properties
314
- * you can use to render your UI.
315
- *
316
- * @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;
317
- *
318
- * @example
319
- * const { data, loading, error } = useFetchUserpicQuery({
320
- * variables: {
321
- * userId: // value for 'userId'
322
- * },
323
- * });
324
- */
325
- export function useFetchUserpicQuery(baseOptions: Apollo.QueryHookOptions<IFetchUserpicQuery, IFetchUserpicQueryVariables>) {
326
- return Apollo.useQuery<IFetchUserpicQuery, IFetchUserpicQueryVariables>(FetchUserpicDocument, baseOptions);
327
- }
328
- export function useFetchUserpicLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUserpicQuery, IFetchUserpicQueryVariables>) {
329
- return Apollo.useLazyQuery<IFetchUserpicQuery, IFetchUserpicQueryVariables>(FetchUserpicDocument, baseOptions);
330
- }
331
- export type FetchUserpicQueryHookResult = ReturnType<typeof useFetchUserpicQuery>;
332
- export type FetchUserpicLazyQueryHookResult = ReturnType<typeof useFetchUserpicLazyQuery>;
333
- export type FetchUserpicQueryResult = Apollo.QueryResult<IFetchUserpicQuery, IFetchUserpicQueryVariables>;