@ludo.ninja/api 2.8.59 → 2.8.60

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.
@@ -242,6 +242,12 @@ export type ICategoryInput = {
242
242
  name: Scalars['String'];
243
243
  matchingWords: Array<Scalars['String']>;
244
244
  };
245
+ export type ICheckInviteCodeData = {
246
+ code: Scalars['String'];
247
+ isUsed: Scalars['Boolean'];
248
+ usedTimes: Scalars['Int'];
249
+ maxUsagesLimit: Scalars['Int'];
250
+ };
245
251
  export type IContactSupportFilterInput = {
246
252
  idTerm?: Maybe<Scalars['String']>;
247
253
  userIdTerm?: Maybe<Scalars['String']>;
@@ -483,6 +489,7 @@ export type IQuery = {
483
489
  fetchUserFeedbackPage: IUserFeedbackPage;
484
490
  fetchRegistrationInvitePage: IRegistrationInvitePage;
485
491
  fetchAdminInvitesPage: IInvitesPage;
492
+ checkInviteCode: ICheckInviteCodeData;
486
493
  fetchAdminOpportunitiesPage: IOpportunitiesPage;
487
494
  fetchAdminCategories: Array<IAdminCategory>;
488
495
  fetchAdminCategoriesPage: ICategoriesPage;
@@ -533,6 +540,9 @@ export type IQueryFetchAdminInvitesPageArgs = {
533
540
  sort: IInvitesSortInput;
534
541
  page: IAdminPageInput;
535
542
  };
543
+ export type IQueryCheckInviteCodeArgs = {
544
+ code: Scalars['String'];
545
+ };
536
546
  export type IQueryFetchAdminOpportunitiesPageArgs = {
537
547
  filter: IOpportunitiesFilterInput;
538
548
  sort: IOpportunitiesSortInput;
@@ -754,6 +764,7 @@ export type IResolversTypes = {
754
764
  CategoriesPage: ResolverTypeWrapper<ICategoriesPage>;
755
765
  CategoriesSortInput: ICategoriesSortInput;
756
766
  CategoryInput: ICategoryInput;
767
+ CheckInviteCodeData: ResolverTypeWrapper<ICheckInviteCodeData>;
757
768
  ContactSupportFilterInput: IContactSupportFilterInput;
758
769
  ContactSupportPage: ResolverTypeWrapper<IContactSupportPage>;
759
770
  ContactSupportSortInput: IContactSupportSortInput;
@@ -832,6 +843,7 @@ export type IResolversParentTypes = {
832
843
  CategoriesPage: ICategoriesPage;
833
844
  CategoriesSortInput: ICategoriesSortInput;
834
845
  CategoryInput: ICategoryInput;
846
+ CheckInviteCodeData: ICheckInviteCodeData;
835
847
  ContactSupportFilterInput: IContactSupportFilterInput;
836
848
  ContactSupportPage: IContactSupportPage;
837
849
  ContactSupportSortInput: IContactSupportSortInput;
@@ -1062,6 +1074,13 @@ export type ICategoriesPageResolvers<ContextType = any, ParentType extends IReso
1062
1074
  nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
1063
1075
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1064
1076
  };
1077
+ export type ICheckInviteCodeDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['CheckInviteCodeData'] = IResolversParentTypes['CheckInviteCodeData']> = {
1078
+ code?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1079
+ isUsed?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
1080
+ usedTimes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
1081
+ maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
1082
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1083
+ };
1065
1084
  export type IContactSupportPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['ContactSupportPage'] = IResolversParentTypes['ContactSupportPage']> = {
1066
1085
  contactSupports?: Resolver<Array<IResolversTypes['AdminContactSupport']>, ParentType, ContextType>;
1067
1086
  nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
@@ -1128,6 +1147,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1128
1147
  fetchUserFeedbackPage?: Resolver<IResolversTypes['UserFeedbackPage'], ParentType, ContextType, RequireFields<IQueryFetchUserFeedbackPageArgs, 'filter' | 'sort' | 'page'>>;
1129
1148
  fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
1130
1149
  fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
1150
+ checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
1131
1151
  fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
1132
1152
  fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
1133
1153
  fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
@@ -1215,6 +1235,7 @@ export type IResolvers<ContextType = any> = {
1215
1235
  AdminXp?: IAdminXpResolvers<ContextType>;
1216
1236
  BrandsPage?: IBrandsPageResolvers<ContextType>;
1217
1237
  CategoriesPage?: ICategoriesPageResolvers<ContextType>;
1238
+ CheckInviteCodeData?: ICheckInviteCodeDataResolvers<ContextType>;
1218
1239
  ContactSupportPage?: IContactSupportPageResolvers<ContextType>;
1219
1240
  ContentReportPage?: IContentReportPageResolvers<ContextType>;
1220
1241
  FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
@@ -1285,6 +1306,12 @@ export type IUpdateProfileStatusMutationVariables = Exact<{
1285
1306
  isActive: Scalars['Boolean'];
1286
1307
  }>;
1287
1308
  export type IUpdateProfileStatusMutation = Pick<IMutation, 'updateProfileStatus'>;
1309
+ export type ICheckInviteCodeQueryVariables = Exact<{
1310
+ code: Scalars['String'];
1311
+ }>;
1312
+ export type ICheckInviteCodeQuery = {
1313
+ checkInviteCode: Pick<ICheckInviteCodeData, 'code' | 'isUsed' | 'usedTimes' | 'maxUsagesLimit'>;
1314
+ };
1288
1315
  export type IFetchContactSupportPageQueryVariables = Exact<{
1289
1316
  filter: IContactSupportFilterInput;
1290
1317
  sort: IContactSupportSortInput;
@@ -1706,6 +1733,32 @@ export declare function useUpdateProfileStatusMutation(baseOptions?: Apollo.Muta
1706
1733
  export type UpdateProfileStatusMutationHookResult = ReturnType<typeof useUpdateProfileStatusMutation>;
1707
1734
  export type UpdateProfileStatusMutationResult = Apollo.MutationResult<IUpdateProfileStatusMutation>;
1708
1735
  export type UpdateProfileStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
1736
+ export declare const CheckInviteCodeDocument: Apollo.DocumentNode;
1737
+ /**
1738
+ * __useCheckInviteCodeQuery__
1739
+ *
1740
+ * To run a query within a React component, call `useCheckInviteCodeQuery` and pass it any options that fit your needs.
1741
+ * When your component renders, `useCheckInviteCodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
1742
+ * you can use to render your UI.
1743
+ *
1744
+ * @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;
1745
+ *
1746
+ * @example
1747
+ * const { data, loading, error } = useCheckInviteCodeQuery({
1748
+ * variables: {
1749
+ * code: // value for 'code'
1750
+ * },
1751
+ * });
1752
+ */
1753
+ export declare function useCheckInviteCodeQuery(baseOptions: Apollo.QueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>): Apollo.QueryResult<ICheckInviteCodeQuery, Exact<{
1754
+ code: string;
1755
+ }>>;
1756
+ export declare function useCheckInviteCodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>): Apollo.LazyQueryResultTuple<ICheckInviteCodeQuery, Exact<{
1757
+ code: string;
1758
+ }>>;
1759
+ export type CheckInviteCodeQueryHookResult = ReturnType<typeof useCheckInviteCodeQuery>;
1760
+ export type CheckInviteCodeLazyQueryHookResult = ReturnType<typeof useCheckInviteCodeLazyQuery>;
1761
+ export type CheckInviteCodeQueryResult = Apollo.QueryResult<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>;
1709
1762
  export declare const FetchContactSupportPageDocument: Apollo.DocumentNode;
1710
1763
  /**
1711
1764
  * __useFetchContactSupportPageQuery__
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.FetchAdminCategoriesPageDocument = exports.useFetchAdminCategoriesLazyQuery = exports.useFetchAdminCategoriesQuery = exports.FetchAdminCategoriesDocument = exports.useFetchAdminBrandsPageLazyQuery = exports.useFetchAdminBrandsPageQuery = exports.FetchAdminBrandsPageDocument = exports.useFetchAdminBrandsLazyQuery = exports.useFetchAdminBrandsQuery = exports.FetchAdminBrandsDocument = exports.useFetchUserFeedbackPageLazyQuery = exports.useFetchUserFeedbackPageQuery = exports.FetchUserFeedbackPageDocument = exports.useFetchRegistrationInvitePageLazyQuery = exports.useFetchRegistrationInvitePageQuery = exports.FetchRegistrationInvitePageDocument = exports.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = exports.useFetchInvestorInquiryPageLazyQuery = exports.useFetchInvestorInquiryPageQuery = exports.FetchInvestorInquiryPageDocument = exports.useFetchFormOpportunityPageLazyQuery = exports.useFetchFormOpportunityPageQuery = exports.FetchFormOpportunityPageDocument = exports.useFetchContentReportPageLazyQuery = exports.useFetchContentReportPageQuery = exports.FetchContentReportPageDocument = exports.useFetchContactSupportPageLazyQuery = exports.useFetchContactSupportPageQuery = exports.FetchContactSupportPageDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = exports.useRemoveInviteCodeMutation = exports.RemoveInviteCodeDocument = exports.useAddInviteCodesMutation = exports.AddInviteCodesDocument = exports.useCreateAdminOpportunityMutation = exports.CreateAdminOpportunityDocument = exports.useCreateBrandMutation = exports.CreateBrandDocument = exports.useCreateCategoryMutation = exports.CreateCategoryDocument = exports.useChangeXpPointsMutation = exports.ChangeXpPointsDocument = exports.ISortDirection = void 0;
27
- exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = exports.useFetchAdminOpportunitiesPageQuery = exports.FetchAdminOpportunitiesPageDocument = exports.useFetchAdminInvitesPageLazyQuery = exports.useFetchAdminInvitesPageQuery = exports.FetchAdminInvitesPageDocument = exports.useFetchAdminCategoriesPageLazyQuery = exports.useFetchAdminCategoriesPageQuery = void 0;
26
+ exports.FetchAdminCategoriesDocument = exports.useFetchAdminBrandsPageLazyQuery = exports.useFetchAdminBrandsPageQuery = exports.FetchAdminBrandsPageDocument = exports.useFetchAdminBrandsLazyQuery = exports.useFetchAdminBrandsQuery = exports.FetchAdminBrandsDocument = exports.useFetchUserFeedbackPageLazyQuery = exports.useFetchUserFeedbackPageQuery = exports.FetchUserFeedbackPageDocument = exports.useFetchRegistrationInvitePageLazyQuery = exports.useFetchRegistrationInvitePageQuery = exports.FetchRegistrationInvitePageDocument = exports.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = exports.useFetchInvestorInquiryPageLazyQuery = exports.useFetchInvestorInquiryPageQuery = exports.FetchInvestorInquiryPageDocument = exports.useFetchFormOpportunityPageLazyQuery = exports.useFetchFormOpportunityPageQuery = exports.FetchFormOpportunityPageDocument = exports.useFetchContentReportPageLazyQuery = exports.useFetchContentReportPageQuery = exports.FetchContentReportPageDocument = exports.useFetchContactSupportPageLazyQuery = exports.useFetchContactSupportPageQuery = exports.FetchContactSupportPageDocument = exports.useCheckInviteCodeLazyQuery = exports.useCheckInviteCodeQuery = exports.CheckInviteCodeDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = exports.useRemoveInviteCodeMutation = exports.RemoveInviteCodeDocument = exports.useAddInviteCodesMutation = exports.AddInviteCodesDocument = exports.useCreateAdminOpportunityMutation = exports.CreateAdminOpportunityDocument = exports.useCreateBrandMutation = exports.CreateBrandDocument = exports.useCreateCategoryMutation = exports.CreateCategoryDocument = exports.useChangeXpPointsMutation = exports.ChangeXpPointsDocument = exports.ISortDirection = void 0;
27
+ exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = exports.useFetchAdminOpportunitiesPageQuery = exports.FetchAdminOpportunitiesPageDocument = exports.useFetchAdminInvitesPageLazyQuery = exports.useFetchAdminInvitesPageQuery = exports.FetchAdminInvitesPageDocument = exports.useFetchAdminCategoriesPageLazyQuery = exports.useFetchAdminCategoriesPageQuery = exports.FetchAdminCategoriesPageDocument = exports.useFetchAdminCategoriesLazyQuery = exports.useFetchAdminCategoriesQuery = void 0;
28
28
  const client_1 = require("@apollo/client");
29
29
  const Apollo = __importStar(require("@apollo/client"));
30
30
  /** front-end asked for lower case values */
@@ -275,6 +275,40 @@ function useUpdateProfileStatusMutation(baseOptions) {
275
275
  return Apollo.useMutation(exports.UpdateProfileStatusDocument, baseOptions);
276
276
  }
277
277
  exports.useUpdateProfileStatusMutation = useUpdateProfileStatusMutation;
278
+ exports.CheckInviteCodeDocument = (0, client_1.gql) `
279
+ query CheckInviteCode($code: String!) {
280
+ checkInviteCode(code: $code) {
281
+ code
282
+ isUsed
283
+ usedTimes
284
+ maxUsagesLimit
285
+ }
286
+ }
287
+ `;
288
+ /**
289
+ * __useCheckInviteCodeQuery__
290
+ *
291
+ * To run a query within a React component, call `useCheckInviteCodeQuery` and pass it any options that fit your needs.
292
+ * When your component renders, `useCheckInviteCodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
293
+ * you can use to render your UI.
294
+ *
295
+ * @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;
296
+ *
297
+ * @example
298
+ * const { data, loading, error } = useCheckInviteCodeQuery({
299
+ * variables: {
300
+ * code: // value for 'code'
301
+ * },
302
+ * });
303
+ */
304
+ function useCheckInviteCodeQuery(baseOptions) {
305
+ return Apollo.useQuery(exports.CheckInviteCodeDocument, baseOptions);
306
+ }
307
+ exports.useCheckInviteCodeQuery = useCheckInviteCodeQuery;
308
+ function useCheckInviteCodeLazyQuery(baseOptions) {
309
+ return Apollo.useLazyQuery(exports.CheckInviteCodeDocument, baseOptions);
310
+ }
311
+ exports.useCheckInviteCodeLazyQuery = useCheckInviteCodeLazyQuery;
278
312
  exports.FetchContactSupportPageDocument = (0, client_1.gql) `
279
313
  query FetchContactSupportPage($filter: ContactSupportFilterInput!, $sort: ContactSupportSortInput!, $page: AdminPageInput!) {
280
314
  fetchContactSupportPage(filter: $filter, sort: $sort, page: $page) {
package/build/index.d.ts CHANGED
@@ -1145,6 +1145,16 @@ declare const schema: {
1145
1145
  userId: string;
1146
1146
  isActive: boolean;
1147
1147
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1148
+ useCheckInviteCodeQuery(baseOptions: import("@apollo/client").QueryHookOptions<adminSchema.ICheckInviteCodeQuery, adminSchema.Exact<{
1149
+ code: string;
1150
+ }>>): import("@apollo/client").QueryResult<adminSchema.ICheckInviteCodeQuery, adminSchema.Exact<{
1151
+ code: string;
1152
+ }>>;
1153
+ useCheckInviteCodeLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<adminSchema.ICheckInviteCodeQuery, adminSchema.Exact<{
1154
+ code: string;
1155
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<adminSchema.ICheckInviteCodeQuery, adminSchema.Exact<{
1156
+ code: string;
1157
+ }>>;
1148
1158
  useFetchContactSupportPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<adminSchema.IFetchContactSupportPageQuery, adminSchema.Exact<{
1149
1159
  filter: adminSchema.IContactSupportFilterInput;
1150
1160
  sort: adminSchema.IContactSupportSortInput;
@@ -1437,6 +1447,7 @@ declare const schema: {
1437
1447
  UpdateBrandArchivedStatusDocument: import("graphql").DocumentNode;
1438
1448
  UpdateCategoryArchivedStatusDocument: import("graphql").DocumentNode;
1439
1449
  UpdateProfileStatusDocument: import("graphql").DocumentNode;
1450
+ CheckInviteCodeDocument: import("graphql").DocumentNode;
1440
1451
  FetchContactSupportPageDocument: import("graphql").DocumentNode;
1441
1452
  FetchContentReportPageDocument: import("graphql").DocumentNode;
1442
1453
  FetchFormOpportunityPageDocument: import("graphql").DocumentNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.8.59",
3
+ "version": "2.8.60",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -262,6 +262,13 @@ export type ICategoryInput = {
262
262
  matchingWords: Array<Scalars['String']>;
263
263
  };
264
264
 
265
+ export type ICheckInviteCodeData = {
266
+ code: Scalars['String'];
267
+ isUsed: Scalars['Boolean'];
268
+ usedTimes: Scalars['Int'];
269
+ maxUsagesLimit: Scalars['Int'];
270
+ };
271
+
265
272
  export type IContactSupportFilterInput = {
266
273
  idTerm?: Maybe<Scalars['String']>;
267
274
  userIdTerm?: Maybe<Scalars['String']>;
@@ -556,6 +563,7 @@ export type IQuery = {
556
563
  fetchUserFeedbackPage: IUserFeedbackPage;
557
564
  fetchRegistrationInvitePage: IRegistrationInvitePage;
558
565
  fetchAdminInvitesPage: IInvitesPage;
566
+ checkInviteCode: ICheckInviteCodeData;
559
567
  fetchAdminOpportunitiesPage: IOpportunitiesPage;
560
568
  fetchAdminCategories: Array<IAdminCategory>;
561
569
  fetchAdminCategoriesPage: ICategoriesPage;
@@ -624,6 +632,11 @@ export type IQueryFetchAdminInvitesPageArgs = {
624
632
  };
625
633
 
626
634
 
635
+ export type IQueryCheckInviteCodeArgs = {
636
+ code: Scalars['String'];
637
+ };
638
+
639
+
627
640
  export type IQueryFetchAdminOpportunitiesPageArgs = {
628
641
  filter: IOpportunitiesFilterInput;
629
642
  sort: IOpportunitiesSortInput;
@@ -919,6 +932,7 @@ export type IResolversTypes = {
919
932
  CategoriesPage: ResolverTypeWrapper<ICategoriesPage>;
920
933
  CategoriesSortInput: ICategoriesSortInput;
921
934
  CategoryInput: ICategoryInput;
935
+ CheckInviteCodeData: ResolverTypeWrapper<ICheckInviteCodeData>;
922
936
  ContactSupportFilterInput: IContactSupportFilterInput;
923
937
  ContactSupportPage: ResolverTypeWrapper<IContactSupportPage>;
924
938
  ContactSupportSortInput: IContactSupportSortInput;
@@ -998,6 +1012,7 @@ export type IResolversParentTypes = {
998
1012
  CategoriesPage: ICategoriesPage;
999
1013
  CategoriesSortInput: ICategoriesSortInput;
1000
1014
  CategoryInput: ICategoryInput;
1015
+ CheckInviteCodeData: ICheckInviteCodeData;
1001
1016
  ContactSupportFilterInput: IContactSupportFilterInput;
1002
1017
  ContactSupportPage: IContactSupportPage;
1003
1018
  ContactSupportSortInput: IContactSupportSortInput;
@@ -1251,6 +1266,14 @@ export type ICategoriesPageResolvers<ContextType = any, ParentType extends IReso
1251
1266
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1252
1267
  };
1253
1268
 
1269
+ export type ICheckInviteCodeDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['CheckInviteCodeData'] = IResolversParentTypes['CheckInviteCodeData']> = {
1270
+ code?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1271
+ isUsed?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
1272
+ usedTimes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
1273
+ maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
1274
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1275
+ };
1276
+
1254
1277
  export type IContactSupportPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['ContactSupportPage'] = IResolversParentTypes['ContactSupportPage']> = {
1255
1278
  contactSupports?: Resolver<Array<IResolversTypes['AdminContactSupport']>, ParentType, ContextType>;
1256
1279
  nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
@@ -1326,6 +1349,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1326
1349
  fetchUserFeedbackPage?: Resolver<IResolversTypes['UserFeedbackPage'], ParentType, ContextType, RequireFields<IQueryFetchUserFeedbackPageArgs, 'filter' | 'sort' | 'page'>>;
1327
1350
  fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
1328
1351
  fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
1352
+ checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
1329
1353
  fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
1330
1354
  fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
1331
1355
  fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
@@ -1424,6 +1448,7 @@ export type IResolvers<ContextType = any> = {
1424
1448
  AdminXp?: IAdminXpResolvers<ContextType>;
1425
1449
  BrandsPage?: IBrandsPageResolvers<ContextType>;
1426
1450
  CategoriesPage?: ICategoriesPageResolvers<ContextType>;
1451
+ CheckInviteCodeData?: ICheckInviteCodeDataResolvers<ContextType>;
1427
1452
  ContactSupportPage?: IContactSupportPageResolvers<ContextType>;
1428
1453
  ContentReportPage?: IContentReportPageResolvers<ContextType>;
1429
1454
  FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
@@ -1523,6 +1548,13 @@ export type IUpdateProfileStatusMutationVariables = Exact<{
1523
1548
 
1524
1549
  export type IUpdateProfileStatusMutation = Pick<IMutation, 'updateProfileStatus'>;
1525
1550
 
1551
+ export type ICheckInviteCodeQueryVariables = Exact<{
1552
+ code: Scalars['String'];
1553
+ }>;
1554
+
1555
+
1556
+ export type ICheckInviteCodeQuery = { checkInviteCode: Pick<ICheckInviteCodeData, 'code' | 'isUsed' | 'usedTimes' | 'maxUsagesLimit'> };
1557
+
1526
1558
  export type IFetchContactSupportPageQueryVariables = Exact<{
1527
1559
  filter: IContactSupportFilterInput;
1528
1560
  sort: IContactSupportSortInput;
@@ -1955,6 +1987,42 @@ export function useUpdateProfileStatusMutation(baseOptions?: Apollo.MutationHook
1955
1987
  export type UpdateProfileStatusMutationHookResult = ReturnType<typeof useUpdateProfileStatusMutation>;
1956
1988
  export type UpdateProfileStatusMutationResult = Apollo.MutationResult<IUpdateProfileStatusMutation>;
1957
1989
  export type UpdateProfileStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
1990
+ export const CheckInviteCodeDocument = gql`
1991
+ query CheckInviteCode($code: String!) {
1992
+ checkInviteCode(code: $code) {
1993
+ code
1994
+ isUsed
1995
+ usedTimes
1996
+ maxUsagesLimit
1997
+ }
1998
+ }
1999
+ `;
2000
+
2001
+ /**
2002
+ * __useCheckInviteCodeQuery__
2003
+ *
2004
+ * To run a query within a React component, call `useCheckInviteCodeQuery` and pass it any options that fit your needs.
2005
+ * When your component renders, `useCheckInviteCodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
2006
+ * you can use to render your UI.
2007
+ *
2008
+ * @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;
2009
+ *
2010
+ * @example
2011
+ * const { data, loading, error } = useCheckInviteCodeQuery({
2012
+ * variables: {
2013
+ * code: // value for 'code'
2014
+ * },
2015
+ * });
2016
+ */
2017
+ export function useCheckInviteCodeQuery(baseOptions: Apollo.QueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>) {
2018
+ return Apollo.useQuery<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>(CheckInviteCodeDocument, baseOptions);
2019
+ }
2020
+ export function useCheckInviteCodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>) {
2021
+ return Apollo.useLazyQuery<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>(CheckInviteCodeDocument, baseOptions);
2022
+ }
2023
+ export type CheckInviteCodeQueryHookResult = ReturnType<typeof useCheckInviteCodeQuery>;
2024
+ export type CheckInviteCodeLazyQueryHookResult = ReturnType<typeof useCheckInviteCodeLazyQuery>;
2025
+ export type CheckInviteCodeQueryResult = Apollo.QueryResult<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>;
1958
2026
  export const FetchContactSupportPageDocument = gql`
1959
2027
  query FetchContactSupportPage($filter: ContactSupportFilterInput!, $sort: ContactSupportSortInput!, $page: AdminPageInput!) {
1960
2028
  fetchContactSupportPage(filter: $filter, sort: $sort, page: $page) {