@ludo.ninja/api 3.0.25 → 3.0.27

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.
@@ -25,6 +25,11 @@ export type Scalars = {
25
25
  /** A 64-bit signed integer */
26
26
  Long: any;
27
27
  };
28
+ export type IActivityStreak = {
29
+ userId: Scalars['ID'];
30
+ streak?: Maybe<Scalars['Int']>;
31
+ bonus?: Maybe<Scalars['Int']>;
32
+ };
28
33
  export type IMutation = {
29
34
  setDummy: Scalars['String'];
30
35
  };
@@ -43,6 +48,7 @@ export type IQuery = {
43
48
  fetchMyTasks: Array<Maybe<ITask>>;
44
49
  fetchMyLatestExperienceIncrement?: Maybe<IUserXpIncrement>;
45
50
  fetchMyMonthReferralsXps: Scalars['Int'];
51
+ fetchMyActivityStreak: IActivityStreak;
46
52
  };
47
53
  export type ISubscription = {
48
54
  onDummy: Scalars['String'];
@@ -124,15 +130,16 @@ export type NextResolverFn<T> = () => Promise<T>;
124
130
  export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
125
131
  /** Mapping between all available schema types and the resolvers types */
126
132
  export type IResolversTypes = {
133
+ ActivityStreak: ResolverTypeWrapper<IActivityStreak>;
134
+ ID: ResolverTypeWrapper<Scalars['ID']>;
135
+ Int: ResolverTypeWrapper<Scalars['Int']>;
127
136
  Long: ResolverTypeWrapper<Scalars['Long']>;
128
137
  Mutation: ResolverTypeWrapper<{}>;
129
138
  String: ResolverTypeWrapper<Scalars['String']>;
130
139
  OpportunityNotification: ResolverTypeWrapper<IOpportunityNotification>;
131
140
  Query: ResolverTypeWrapper<{}>;
132
- Int: ResolverTypeWrapper<Scalars['Int']>;
133
141
  Subscription: ResolverTypeWrapper<{}>;
134
142
  Task: ResolverTypeWrapper<ITask>;
135
- ID: ResolverTypeWrapper<Scalars['ID']>;
136
143
  Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
137
144
  UsedInviteCode: ResolverTypeWrapper<IUsedInviteCode>;
138
145
  UserXP: ResolverTypeWrapper<IUserXp>;
@@ -140,15 +147,16 @@ export type IResolversTypes = {
140
147
  };
141
148
  /** Mapping between all available schema types and the resolvers parents */
142
149
  export type IResolversParentTypes = {
150
+ ActivityStreak: IActivityStreak;
151
+ ID: Scalars['ID'];
152
+ Int: Scalars['Int'];
143
153
  Long: Scalars['Long'];
144
154
  Mutation: {};
145
155
  String: Scalars['String'];
146
156
  OpportunityNotification: IOpportunityNotification;
147
157
  Query: {};
148
- Int: Scalars['Int'];
149
158
  Subscription: {};
150
159
  Task: ITask;
151
- ID: Scalars['ID'];
152
160
  Boolean: Scalars['Boolean'];
153
161
  UsedInviteCode: IUsedInviteCode;
154
162
  UserXP: IUserXp;
@@ -156,6 +164,12 @@ export type IResolversParentTypes = {
156
164
  };
157
165
  export type IOneOfDirectiveArgs = {};
158
166
  export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
167
+ export type IActivityStreakResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActivityStreak'] = IResolversParentTypes['ActivityStreak']> = {
168
+ userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
169
+ streak?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
170
+ bonus?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
171
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
172
+ };
159
173
  export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
160
174
  name: 'Long';
161
175
  }
@@ -178,6 +192,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
178
192
  fetchMyTasks?: Resolver<Array<Maybe<IResolversTypes['Task']>>, ParentType, ContextType>;
179
193
  fetchMyLatestExperienceIncrement?: Resolver<Maybe<IResolversTypes['UserXPIncrement']>, ParentType, ContextType>;
180
194
  fetchMyMonthReferralsXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
195
+ fetchMyActivityStreak?: Resolver<IResolversTypes['ActivityStreak'], ParentType, ContextType>;
181
196
  };
182
197
  export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
183
198
  onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
@@ -224,6 +239,7 @@ export type IUserXpIncrementResolvers<ContextType = any, ParentType extends IRes
224
239
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
225
240
  };
226
241
  export type IResolvers<ContextType = any> = {
242
+ ActivityStreak?: IActivityStreakResolvers<ContextType>;
227
243
  Long?: GraphQLScalarType;
228
244
  Mutation?: IMutationResolvers<ContextType>;
229
245
  OpportunityNotification?: IOpportunityNotificationResolvers<ContextType>;
@@ -237,6 +253,12 @@ export type IResolvers<ContextType = any> = {
237
253
  export type IDirectiveResolvers<ContextType = any> = {
238
254
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
239
255
  };
256
+ export type IFetchMyActivityStreakQueryVariables = Exact<{
257
+ [key: string]: never;
258
+ }>;
259
+ export type IFetchMyActivityStreakQuery = {
260
+ fetchMyActivityStreak: Pick<IActivityStreak, 'userId' | 'streak' | 'bonus'>;
261
+ };
240
262
  export type IFetchMyExperienceV2QueryVariables = Exact<{
241
263
  [key: string]: never;
242
264
  }>;
@@ -283,6 +305,31 @@ export type IOnUserOpportunityNotificationSubscriptionVariables = Exact<{
283
305
  export type IOnUserOpportunityNotificationSubscription = {
284
306
  onUserOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'>;
285
307
  };
308
+ export declare const FetchMyActivityStreakDocument: Apollo.DocumentNode;
309
+ /**
310
+ * __useFetchMyActivityStreakQuery__
311
+ *
312
+ * To run a query within a React component, call `useFetchMyActivityStreakQuery` and pass it any options that fit your needs.
313
+ * When your component renders, `useFetchMyActivityStreakQuery` 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 } = useFetchMyActivityStreakQuery({
320
+ * variables: {
321
+ * },
322
+ * });
323
+ */
324
+ export declare function useFetchMyActivityStreakQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyActivityStreakQuery, IFetchMyActivityStreakQueryVariables>): Apollo.QueryResult<IFetchMyActivityStreakQuery, Exact<{
325
+ [key: string]: never;
326
+ }>>;
327
+ export declare function useFetchMyActivityStreakLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyActivityStreakQuery, IFetchMyActivityStreakQueryVariables>): Apollo.LazyQueryResultTuple<IFetchMyActivityStreakQuery, Exact<{
328
+ [key: string]: never;
329
+ }>>;
330
+ export type FetchMyActivityStreakQueryHookResult = ReturnType<typeof useFetchMyActivityStreakQuery>;
331
+ export type FetchMyActivityStreakLazyQueryHookResult = ReturnType<typeof useFetchMyActivityStreakLazyQuery>;
332
+ export type FetchMyActivityStreakQueryResult = Apollo.QueryResult<IFetchMyActivityStreakQuery, IFetchMyActivityStreakQueryVariables>;
286
333
  export declare const FetchMyExperienceV2Document: Apollo.DocumentNode;
287
334
  /**
288
335
  * __useFetchMyExperienceV2Query__
@@ -23,9 +23,41 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.useOnUserOpportunityNotificationSubscription = exports.OnUserOpportunityNotificationDocument = exports.useOnMyExperienceUpdatedSubscription = exports.OnMyExperienceUpdatedDocument = exports.useOnMyExperienceIncrementedSubscription = exports.OnMyExperienceIncrementedDocument = exports.useOnInviteCodeUsedSubscription = exports.OnInviteCodeUsedDocument = exports.useOnCommonOpportunityNotificationSubscription = exports.OnCommonOpportunityNotificationDocument = exports.useFetchMyTasksLazyQuery = exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyMonthReferralsXpsLazyQuery = exports.useFetchMyMonthReferralsXpsQuery = exports.FetchMyMonthReferralsXpsDocument = exports.useFetchMyExperienceV2LazyQuery = exports.useFetchMyExperienceV2Query = exports.FetchMyExperienceV2Document = void 0;
26
+ exports.useOnUserOpportunityNotificationSubscription = exports.OnUserOpportunityNotificationDocument = exports.useOnMyExperienceUpdatedSubscription = exports.OnMyExperienceUpdatedDocument = exports.useOnMyExperienceIncrementedSubscription = exports.OnMyExperienceIncrementedDocument = exports.useOnInviteCodeUsedSubscription = exports.OnInviteCodeUsedDocument = exports.useOnCommonOpportunityNotificationSubscription = exports.OnCommonOpportunityNotificationDocument = exports.useFetchMyTasksLazyQuery = exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyMonthReferralsXpsLazyQuery = exports.useFetchMyMonthReferralsXpsQuery = exports.FetchMyMonthReferralsXpsDocument = exports.useFetchMyExperienceV2LazyQuery = exports.useFetchMyExperienceV2Query = exports.FetchMyExperienceV2Document = exports.useFetchMyActivityStreakLazyQuery = exports.useFetchMyActivityStreakQuery = exports.FetchMyActivityStreakDocument = void 0;
27
27
  const client_1 = require("@apollo/client");
28
28
  const Apollo = __importStar(require("@apollo/client"));
29
+ exports.FetchMyActivityStreakDocument = (0, client_1.gql) `
30
+ query FetchMyActivityStreak {
31
+ fetchMyActivityStreak {
32
+ userId
33
+ streak
34
+ bonus
35
+ }
36
+ }
37
+ `;
38
+ /**
39
+ * __useFetchMyActivityStreakQuery__
40
+ *
41
+ * To run a query within a React component, call `useFetchMyActivityStreakQuery` and pass it any options that fit your needs.
42
+ * When your component renders, `useFetchMyActivityStreakQuery` returns an object from Apollo Client that contains loading, error, and data properties
43
+ * you can use to render your UI.
44
+ *
45
+ * @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;
46
+ *
47
+ * @example
48
+ * const { data, loading, error } = useFetchMyActivityStreakQuery({
49
+ * variables: {
50
+ * },
51
+ * });
52
+ */
53
+ function useFetchMyActivityStreakQuery(baseOptions) {
54
+ return Apollo.useQuery(exports.FetchMyActivityStreakDocument, baseOptions);
55
+ }
56
+ exports.useFetchMyActivityStreakQuery = useFetchMyActivityStreakQuery;
57
+ function useFetchMyActivityStreakLazyQuery(baseOptions) {
58
+ return Apollo.useLazyQuery(exports.FetchMyActivityStreakDocument, baseOptions);
59
+ }
60
+ exports.useFetchMyActivityStreakLazyQuery = useFetchMyActivityStreakLazyQuery;
29
61
  exports.FetchMyExperienceV2Document = (0, client_1.gql) `
30
62
  query FetchMyExperienceV2 {
31
63
  fetchMyExperienceV2 {
@@ -71,6 +71,7 @@ export type IMutation = {
71
71
  likeOpportunity: Scalars['Boolean'];
72
72
  dislikeOpportunity: Scalars['Boolean'];
73
73
  registerForAirdrop: Scalars['Boolean'];
74
+ copyOpportunityShareLink: Scalars['Boolean'];
74
75
  };
75
76
  export type IMutationCreateBrandArgs = {
76
77
  input: IBrandInput;
@@ -110,6 +111,9 @@ export type IMutationRegisterForAirdropArgs = {
110
111
  blockchain: Scalars['String'];
111
112
  address: Scalars['String'];
112
113
  };
114
+ export type IMutationCopyOpportunityShareLinkArgs = {
115
+ opportunityId: Scalars['ID'];
116
+ };
113
117
  export type IOpportunitiesPage = {
114
118
  currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
115
119
  similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
@@ -354,6 +358,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
354
358
  likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
355
359
  dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
356
360
  registerForAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdropArgs, 'opportunityId' | 'blockchain' | 'address'>>;
361
+ copyOpportunityShareLink?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCopyOpportunityShareLinkArgs, 'opportunityId'>>;
357
362
  };
358
363
  export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
359
364
  currentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['Opportunity']>>>, ParentType, ContextType>;
@@ -472,6 +477,10 @@ export type ILikeOpportunityMutationVariables = Exact<{
472
477
  opportunityId: Scalars['String'];
473
478
  }>;
474
479
  export type ILikeOpportunityMutation = Pick<IMutation, 'likeOpportunity'>;
480
+ export type ICopyOpportunityShareLinkMutationVariables = Exact<{
481
+ opportunityId: Scalars['ID'];
482
+ }>;
483
+ export type ICopyOpportunityShareLinkMutation = Pick<IMutation, 'copyOpportunityShareLink'>;
475
484
  export type ICreateOpportunityMutationVariables = Exact<{
476
485
  input: IOpportunityInput;
477
486
  }>;
@@ -578,6 +587,31 @@ export declare function useLikeOpportunityMutation(baseOptions?: Apollo.Mutation
578
587
  export type LikeOpportunityMutationHookResult = ReturnType<typeof useLikeOpportunityMutation>;
579
588
  export type LikeOpportunityMutationResult = Apollo.MutationResult<ILikeOpportunityMutation>;
580
589
  export type LikeOpportunityMutationOptions = Apollo.BaseMutationOptions<ILikeOpportunityMutation, ILikeOpportunityMutationVariables>;
590
+ export declare const CopyOpportunityShareLinkDocument: Apollo.DocumentNode;
591
+ export type ICopyOpportunityShareLinkMutationFn = Apollo.MutationFunction<ICopyOpportunityShareLinkMutation, ICopyOpportunityShareLinkMutationVariables>;
592
+ /**
593
+ * __useCopyOpportunityShareLinkMutation__
594
+ *
595
+ * To run a mutation, you first call `useCopyOpportunityShareLinkMutation` within a React component and pass it any options that fit your needs.
596
+ * When your component renders, `useCopyOpportunityShareLinkMutation` returns a tuple that includes:
597
+ * - A mutate function that you can call at any time to execute the mutation
598
+ * - An object with fields that represent the current status of the mutation's execution
599
+ *
600
+ * @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;
601
+ *
602
+ * @example
603
+ * const [copyOpportunityShareLinkMutation, { data, loading, error }] = useCopyOpportunityShareLinkMutation({
604
+ * variables: {
605
+ * opportunityId: // value for 'opportunityId'
606
+ * },
607
+ * });
608
+ */
609
+ export declare function useCopyOpportunityShareLinkMutation(baseOptions?: Apollo.MutationHookOptions<ICopyOpportunityShareLinkMutation, ICopyOpportunityShareLinkMutationVariables>): Apollo.MutationTuple<ICopyOpportunityShareLinkMutation, Exact<{
610
+ opportunityId: string;
611
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
612
+ export type CopyOpportunityShareLinkMutationHookResult = ReturnType<typeof useCopyOpportunityShareLinkMutation>;
613
+ export type CopyOpportunityShareLinkMutationResult = Apollo.MutationResult<ICopyOpportunityShareLinkMutation>;
614
+ export type CopyOpportunityShareLinkMutationOptions = Apollo.BaseMutationOptions<ICopyOpportunityShareLinkMutation, ICopyOpportunityShareLinkMutationVariables>;
581
615
  export declare const CreateOpportunityDocument: Apollo.DocumentNode;
582
616
  export type ICreateOpportunityMutationFn = Apollo.MutationFunction<ICreateOpportunityMutation, ICreateOpportunityMutationVariables>;
583
617
  /**
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useFetchAirdropRegistrationsCsvLazyQuery = exports.useFetchAirdropRegistrationsCsvQuery = exports.FetchAirdropRegistrationsCsvDocument = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
26
+ exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useFetchAirdropRegistrationsCsvLazyQuery = exports.useFetchAirdropRegistrationsCsvQuery = exports.FetchAirdropRegistrationsCsvDocument = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
27
27
  const client_1 = require("@apollo/client");
28
28
  const Apollo = __importStar(require("@apollo/client"));
29
29
  exports.DislikeOpportunityDocument = (0, client_1.gql) `
@@ -78,6 +78,32 @@ function useLikeOpportunityMutation(baseOptions) {
78
78
  return Apollo.useMutation(exports.LikeOpportunityDocument, baseOptions);
79
79
  }
80
80
  exports.useLikeOpportunityMutation = useLikeOpportunityMutation;
81
+ exports.CopyOpportunityShareLinkDocument = (0, client_1.gql) `
82
+ mutation CopyOpportunityShareLink($opportunityId: ID!) {
83
+ copyOpportunityShareLink(opportunityId: $opportunityId)
84
+ }
85
+ `;
86
+ /**
87
+ * __useCopyOpportunityShareLinkMutation__
88
+ *
89
+ * To run a mutation, you first call `useCopyOpportunityShareLinkMutation` within a React component and pass it any options that fit your needs.
90
+ * When your component renders, `useCopyOpportunityShareLinkMutation` returns a tuple that includes:
91
+ * - A mutate function that you can call at any time to execute the mutation
92
+ * - An object with fields that represent the current status of the mutation's execution
93
+ *
94
+ * @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;
95
+ *
96
+ * @example
97
+ * const [copyOpportunityShareLinkMutation, { data, loading, error }] = useCopyOpportunityShareLinkMutation({
98
+ * variables: {
99
+ * opportunityId: // value for 'opportunityId'
100
+ * },
101
+ * });
102
+ */
103
+ function useCopyOpportunityShareLinkMutation(baseOptions) {
104
+ return Apollo.useMutation(exports.CopyOpportunityShareLinkDocument, baseOptions);
105
+ }
106
+ exports.useCopyOpportunityShareLinkMutation = useCopyOpportunityShareLinkMutation;
81
107
  exports.CreateOpportunityDocument = (0, client_1.gql) `
82
108
  mutation CreateOpportunity($input: OpportunityInput!) {
83
109
  createOpportunity(input: $input)
package/build/index.d.ts CHANGED
@@ -570,6 +570,11 @@ declare const schema: {
570
570
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.ILikeOpportunityMutation, opportunitiesSchema.Exact<{
571
571
  opportunityId: string;
572
572
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
573
+ useCopyOpportunityShareLinkMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.ICopyOpportunityShareLinkMutation, opportunitiesSchema.Exact<{
574
+ opportunityId: string;
575
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.ICopyOpportunityShareLinkMutation, opportunitiesSchema.Exact<{
576
+ opportunityId: string;
577
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
573
578
  useCreateOpportunityMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.ICreateOpportunityMutation, opportunitiesSchema.Exact<{
574
579
  input: opportunitiesSchema.IOpportunityInput;
575
580
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.ICreateOpportunityMutation, opportunitiesSchema.Exact<{
@@ -651,6 +656,7 @@ declare const schema: {
651
656
  }>>;
652
657
  DislikeOpportunityDocument: import("graphql").DocumentNode;
653
658
  LikeOpportunityDocument: import("graphql").DocumentNode;
659
+ CopyOpportunityShareLinkDocument: import("graphql").DocumentNode;
654
660
  CreateOpportunityDocument: import("graphql").DocumentNode;
655
661
  OpenOpportunityDocument: import("graphql").DocumentNode;
656
662
  RegisterForAirdropDocument: import("graphql").DocumentNode;
@@ -1257,6 +1263,16 @@ declare const schema: {
1257
1263
  FetchNftRanksDocument: import("graphql").DocumentNode;
1258
1264
  FetchWalletRanksDocument: import("graphql").DocumentNode;
1259
1265
  FetchWalletRanksV2Document: import("graphql").DocumentNode;
1266
+ useFetchMyActivityStreakQuery(baseOptions?: import("@apollo/client").QueryHookOptions<experiencesSchema.IFetchMyActivityStreakQuery, experiencesSchema.Exact<{
1267
+ [key: string]: never;
1268
+ }>> | undefined): import("@apollo/client").QueryResult<experiencesSchema.IFetchMyActivityStreakQuery, experiencesSchema.Exact<{
1269
+ [key: string]: never;
1270
+ }>>;
1271
+ useFetchMyActivityStreakLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<experiencesSchema.IFetchMyActivityStreakQuery, experiencesSchema.Exact<{
1272
+ [key: string]: never;
1273
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMyActivityStreakQuery, experiencesSchema.Exact<{
1274
+ [key: string]: never;
1275
+ }>>;
1260
1276
  useFetchMyExperienceV2Query(baseOptions?: import("@apollo/client").QueryHookOptions<experiencesSchema.IFetchMyExperienceV2Query, experiencesSchema.Exact<{
1261
1277
  [key: string]: never;
1262
1278
  }>> | undefined): import("@apollo/client").QueryResult<experiencesSchema.IFetchMyExperienceV2Query, experiencesSchema.Exact<{
@@ -1342,6 +1358,7 @@ declare const schema: {
1342
1358
  authToken: string;
1343
1359
  }> | undefined;
1344
1360
  };
1361
+ FetchMyActivityStreakDocument: import("graphql").DocumentNode;
1345
1362
  FetchMyExperienceV2Document: import("graphql").DocumentNode;
1346
1363
  FetchMyMonthReferralsXpsDocument: import("graphql").DocumentNode;
1347
1364
  FetchMyTasksDocument: import("graphql").DocumentNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "3.0.25",
3
+ "version": "3.0.27",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -19,6 +19,12 @@ export type Scalars = {
19
19
  };
20
20
 
21
21
 
22
+ export type IActivityStreak = {
23
+ userId: Scalars['ID'];
24
+ streak?: Maybe<Scalars['Int']>;
25
+ bonus?: Maybe<Scalars['Int']>;
26
+ };
27
+
22
28
 
23
29
  export type IMutation = {
24
30
  setDummy: Scalars['String'];
@@ -40,6 +46,7 @@ export type IQuery = {
40
46
  fetchMyTasks: Array<Maybe<ITask>>;
41
47
  fetchMyLatestExperienceIncrement?: Maybe<IUserXpIncrement>;
42
48
  fetchMyMonthReferralsXps: Scalars['Int'];
49
+ fetchMyActivityStreak: IActivityStreak;
43
50
  };
44
51
 
45
52
  export type ISubscription = {
@@ -176,15 +183,16 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
176
183
 
177
184
  /** Mapping between all available schema types and the resolvers types */
178
185
  export type IResolversTypes = {
186
+ ActivityStreak: ResolverTypeWrapper<IActivityStreak>;
187
+ ID: ResolverTypeWrapper<Scalars['ID']>;
188
+ Int: ResolverTypeWrapper<Scalars['Int']>;
179
189
  Long: ResolverTypeWrapper<Scalars['Long']>;
180
190
  Mutation: ResolverTypeWrapper<{}>;
181
191
  String: ResolverTypeWrapper<Scalars['String']>;
182
192
  OpportunityNotification: ResolverTypeWrapper<IOpportunityNotification>;
183
193
  Query: ResolverTypeWrapper<{}>;
184
- Int: ResolverTypeWrapper<Scalars['Int']>;
185
194
  Subscription: ResolverTypeWrapper<{}>;
186
195
  Task: ResolverTypeWrapper<ITask>;
187
- ID: ResolverTypeWrapper<Scalars['ID']>;
188
196
  Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
189
197
  UsedInviteCode: ResolverTypeWrapper<IUsedInviteCode>;
190
198
  UserXP: ResolverTypeWrapper<IUserXp>;
@@ -193,15 +201,16 @@ export type IResolversTypes = {
193
201
 
194
202
  /** Mapping between all available schema types and the resolvers parents */
195
203
  export type IResolversParentTypes = {
204
+ ActivityStreak: IActivityStreak;
205
+ ID: Scalars['ID'];
206
+ Int: Scalars['Int'];
196
207
  Long: Scalars['Long'];
197
208
  Mutation: {};
198
209
  String: Scalars['String'];
199
210
  OpportunityNotification: IOpportunityNotification;
200
211
  Query: {};
201
- Int: Scalars['Int'];
202
212
  Subscription: {};
203
213
  Task: ITask;
204
- ID: Scalars['ID'];
205
214
  Boolean: Scalars['Boolean'];
206
215
  UsedInviteCode: IUsedInviteCode;
207
216
  UserXP: IUserXp;
@@ -212,6 +221,13 @@ export type IOneOfDirectiveArgs = { };
212
221
 
213
222
  export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
214
223
 
224
+ export type IActivityStreakResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActivityStreak'] = IResolversParentTypes['ActivityStreak']> = {
225
+ userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
226
+ streak?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
227
+ bonus?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
228
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
229
+ };
230
+
215
231
  export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
216
232
  name: 'Long';
217
233
  }
@@ -237,6 +253,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
237
253
  fetchMyTasks?: Resolver<Array<Maybe<IResolversTypes['Task']>>, ParentType, ContextType>;
238
254
  fetchMyLatestExperienceIncrement?: Resolver<Maybe<IResolversTypes['UserXPIncrement']>, ParentType, ContextType>;
239
255
  fetchMyMonthReferralsXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
256
+ fetchMyActivityStreak?: Resolver<IResolversTypes['ActivityStreak'], ParentType, ContextType>;
240
257
  };
241
258
 
242
259
  export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
@@ -289,6 +306,7 @@ export type IUserXpIncrementResolvers<ContextType = any, ParentType extends IRes
289
306
  };
290
307
 
291
308
  export type IResolvers<ContextType = any> = {
309
+ ActivityStreak?: IActivityStreakResolvers<ContextType>;
292
310
  Long?: GraphQLScalarType;
293
311
  Mutation?: IMutationResolvers<ContextType>;
294
312
  OpportunityNotification?: IOpportunityNotificationResolvers<ContextType>;
@@ -304,6 +322,11 @@ export type IDirectiveResolvers<ContextType = any> = {
304
322
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
305
323
  };
306
324
 
325
+ export type IFetchMyActivityStreakQueryVariables = Exact<{ [key: string]: never; }>;
326
+
327
+
328
+ export type IFetchMyActivityStreakQuery = { fetchMyActivityStreak: Pick<IActivityStreak, 'userId' | 'streak' | 'bonus'> };
329
+
307
330
  export type IFetchMyExperienceV2QueryVariables = Exact<{ [key: string]: never; }>;
308
331
 
309
332
 
@@ -353,6 +376,40 @@ export type IOnUserOpportunityNotificationSubscriptionVariables = Exact<{
353
376
  export type IOnUserOpportunityNotificationSubscription = { onUserOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'> };
354
377
 
355
378
 
379
+ export const FetchMyActivityStreakDocument = gql`
380
+ query FetchMyActivityStreak {
381
+ fetchMyActivityStreak {
382
+ userId
383
+ streak
384
+ bonus
385
+ }
386
+ }
387
+ `;
388
+
389
+ /**
390
+ * __useFetchMyActivityStreakQuery__
391
+ *
392
+ * To run a query within a React component, call `useFetchMyActivityStreakQuery` and pass it any options that fit your needs.
393
+ * When your component renders, `useFetchMyActivityStreakQuery` returns an object from Apollo Client that contains loading, error, and data properties
394
+ * you can use to render your UI.
395
+ *
396
+ * @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;
397
+ *
398
+ * @example
399
+ * const { data, loading, error } = useFetchMyActivityStreakQuery({
400
+ * variables: {
401
+ * },
402
+ * });
403
+ */
404
+ export function useFetchMyActivityStreakQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyActivityStreakQuery, IFetchMyActivityStreakQueryVariables>) {
405
+ return Apollo.useQuery<IFetchMyActivityStreakQuery, IFetchMyActivityStreakQueryVariables>(FetchMyActivityStreakDocument, baseOptions);
406
+ }
407
+ export function useFetchMyActivityStreakLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyActivityStreakQuery, IFetchMyActivityStreakQueryVariables>) {
408
+ return Apollo.useLazyQuery<IFetchMyActivityStreakQuery, IFetchMyActivityStreakQueryVariables>(FetchMyActivityStreakDocument, baseOptions);
409
+ }
410
+ export type FetchMyActivityStreakQueryHookResult = ReturnType<typeof useFetchMyActivityStreakQuery>;
411
+ export type FetchMyActivityStreakLazyQueryHookResult = ReturnType<typeof useFetchMyActivityStreakLazyQuery>;
412
+ export type FetchMyActivityStreakQueryResult = Apollo.QueryResult<IFetchMyActivityStreakQuery, IFetchMyActivityStreakQueryVariables>;
356
413
  export const FetchMyExperienceV2Document = gql`
357
414
  query FetchMyExperienceV2 {
358
415
  fetchMyExperienceV2 {
@@ -70,6 +70,7 @@ export type IMutation = {
70
70
  likeOpportunity: Scalars['Boolean'];
71
71
  dislikeOpportunity: Scalars['Boolean'];
72
72
  registerForAirdrop: Scalars['Boolean'];
73
+ copyOpportunityShareLink: Scalars['Boolean'];
73
74
  };
74
75
 
75
76
 
@@ -132,6 +133,11 @@ export type IMutationRegisterForAirdropArgs = {
132
133
  address: Scalars['String'];
133
134
  };
134
135
 
136
+
137
+ export type IMutationCopyOpportunityShareLinkArgs = {
138
+ opportunityId: Scalars['ID'];
139
+ };
140
+
135
141
  export type IOpportunitiesPage = {
136
142
  currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
137
143
  similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
@@ -444,6 +450,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
444
450
  likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
445
451
  dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
446
452
  registerForAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdropArgs, 'opportunityId' | 'blockchain' | 'address'>>;
453
+ copyOpportunityShareLink?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCopyOpportunityShareLinkArgs, 'opportunityId'>>;
447
454
  };
448
455
 
449
456
  export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
@@ -576,6 +583,13 @@ export type ILikeOpportunityMutationVariables = Exact<{
576
583
 
577
584
  export type ILikeOpportunityMutation = Pick<IMutation, 'likeOpportunity'>;
578
585
 
586
+ export type ICopyOpportunityShareLinkMutationVariables = Exact<{
587
+ opportunityId: Scalars['ID'];
588
+ }>;
589
+
590
+
591
+ export type ICopyOpportunityShareLinkMutation = Pick<IMutation, 'copyOpportunityShareLink'>;
592
+
579
593
  export type ICreateOpportunityMutationVariables = Exact<{
580
594
  input: IOpportunityInput;
581
595
  }>;
@@ -701,6 +715,36 @@ export function useLikeOpportunityMutation(baseOptions?: Apollo.MutationHookOpti
701
715
  export type LikeOpportunityMutationHookResult = ReturnType<typeof useLikeOpportunityMutation>;
702
716
  export type LikeOpportunityMutationResult = Apollo.MutationResult<ILikeOpportunityMutation>;
703
717
  export type LikeOpportunityMutationOptions = Apollo.BaseMutationOptions<ILikeOpportunityMutation, ILikeOpportunityMutationVariables>;
718
+ export const CopyOpportunityShareLinkDocument = gql`
719
+ mutation CopyOpportunityShareLink($opportunityId: ID!) {
720
+ copyOpportunityShareLink(opportunityId: $opportunityId)
721
+ }
722
+ `;
723
+ export type ICopyOpportunityShareLinkMutationFn = Apollo.MutationFunction<ICopyOpportunityShareLinkMutation, ICopyOpportunityShareLinkMutationVariables>;
724
+
725
+ /**
726
+ * __useCopyOpportunityShareLinkMutation__
727
+ *
728
+ * To run a mutation, you first call `useCopyOpportunityShareLinkMutation` within a React component and pass it any options that fit your needs.
729
+ * When your component renders, `useCopyOpportunityShareLinkMutation` returns a tuple that includes:
730
+ * - A mutate function that you can call at any time to execute the mutation
731
+ * - An object with fields that represent the current status of the mutation's execution
732
+ *
733
+ * @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;
734
+ *
735
+ * @example
736
+ * const [copyOpportunityShareLinkMutation, { data, loading, error }] = useCopyOpportunityShareLinkMutation({
737
+ * variables: {
738
+ * opportunityId: // value for 'opportunityId'
739
+ * },
740
+ * });
741
+ */
742
+ export function useCopyOpportunityShareLinkMutation(baseOptions?: Apollo.MutationHookOptions<ICopyOpportunityShareLinkMutation, ICopyOpportunityShareLinkMutationVariables>) {
743
+ return Apollo.useMutation<ICopyOpportunityShareLinkMutation, ICopyOpportunityShareLinkMutationVariables>(CopyOpportunityShareLinkDocument, baseOptions);
744
+ }
745
+ export type CopyOpportunityShareLinkMutationHookResult = ReturnType<typeof useCopyOpportunityShareLinkMutation>;
746
+ export type CopyOpportunityShareLinkMutationResult = Apollo.MutationResult<ICopyOpportunityShareLinkMutation>;
747
+ export type CopyOpportunityShareLinkMutationOptions = Apollo.BaseMutationOptions<ICopyOpportunityShareLinkMutation, ICopyOpportunityShareLinkMutationVariables>;
704
748
  export const CreateOpportunityDocument = gql`
705
749
  mutation CreateOpportunity($input: OpportunityInput!) {
706
750
  createOpportunity(input: $input)