@ludo.ninja/api 2.8.59 → 2.8.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +98 -3
- package/build/graphql_tools/__generated__/adminHost/schema.js +65 -2
- package/build/hosts/index.d.ts +1 -0
- package/build/hosts/index.js +2 -1
- package/build/index.d.ts +19 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +124 -3
- package/src/hosts/index.ts +3 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -30,6 +30,8 @@ export type Scalars = {
|
|
|
30
30
|
export type IActiveInvite = {
|
|
31
31
|
inviteCode?: Maybe<Scalars['String']>;
|
|
32
32
|
createdAt?: Maybe<Scalars['Long']>;
|
|
33
|
+
usedTimes?: Maybe<Scalars['Int']>;
|
|
34
|
+
maxUsagesLimit?: Maybe<Scalars['Int']>;
|
|
33
35
|
};
|
|
34
36
|
export type IAdminBrand = {
|
|
35
37
|
id: Scalars['String'];
|
|
@@ -242,6 +244,12 @@ export type ICategoryInput = {
|
|
|
242
244
|
name: Scalars['String'];
|
|
243
245
|
matchingWords: Array<Scalars['String']>;
|
|
244
246
|
};
|
|
247
|
+
export type ICheckInviteCodeData = {
|
|
248
|
+
code: Scalars['String'];
|
|
249
|
+
isAvailable: Scalars['Boolean'];
|
|
250
|
+
usedTimes: Scalars['Int'];
|
|
251
|
+
maxUsagesLimit: Scalars['Int'];
|
|
252
|
+
};
|
|
245
253
|
export type IContactSupportFilterInput = {
|
|
246
254
|
idTerm?: Maybe<Scalars['String']>;
|
|
247
255
|
userIdTerm?: Maybe<Scalars['String']>;
|
|
@@ -344,6 +352,7 @@ export type IMutation = {
|
|
|
344
352
|
setDummy: Scalars['String'];
|
|
345
353
|
removeInviteCode: Scalars['Boolean'];
|
|
346
354
|
addInviteCodes: Scalars['Boolean'];
|
|
355
|
+
updateInviteCodeUsagesLimit: Scalars['Boolean'];
|
|
347
356
|
updateOpportunityPushStatus: Scalars['Boolean'];
|
|
348
357
|
createBrand: Scalars['Boolean'];
|
|
349
358
|
updateBrand: Scalars['Boolean'];
|
|
@@ -365,6 +374,10 @@ export type IMutationAddInviteCodesArgs = {
|
|
|
365
374
|
userId: Scalars['String'];
|
|
366
375
|
codesNum: Scalars['Int'];
|
|
367
376
|
};
|
|
377
|
+
export type IMutationUpdateInviteCodeUsagesLimitArgs = {
|
|
378
|
+
code: Scalars['String'];
|
|
379
|
+
usagesLimit: Scalars['Int'];
|
|
380
|
+
};
|
|
368
381
|
export type IMutationUpdateOpportunityPushStatusArgs = {
|
|
369
382
|
opportunityId: Scalars['ID'];
|
|
370
383
|
isActive: Scalars['Boolean'];
|
|
@@ -483,6 +496,7 @@ export type IQuery = {
|
|
|
483
496
|
fetchUserFeedbackPage: IUserFeedbackPage;
|
|
484
497
|
fetchRegistrationInvitePage: IRegistrationInvitePage;
|
|
485
498
|
fetchAdminInvitesPage: IInvitesPage;
|
|
499
|
+
checkInviteCode: ICheckInviteCodeData;
|
|
486
500
|
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
487
501
|
fetchAdminCategories: Array<IAdminCategory>;
|
|
488
502
|
fetchAdminCategoriesPage: ICategoriesPage;
|
|
@@ -533,6 +547,9 @@ export type IQueryFetchAdminInvitesPageArgs = {
|
|
|
533
547
|
sort: IInvitesSortInput;
|
|
534
548
|
page: IAdminPageInput;
|
|
535
549
|
};
|
|
550
|
+
export type IQueryCheckInviteCodeArgs = {
|
|
551
|
+
code: Scalars['String'];
|
|
552
|
+
};
|
|
536
553
|
export type IQueryFetchAdminOpportunitiesPageArgs = {
|
|
537
554
|
filter: IOpportunitiesFilterInput;
|
|
538
555
|
sort: IOpportunitiesSortInput;
|
|
@@ -727,6 +744,7 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
727
744
|
export type IResolversTypes = {
|
|
728
745
|
ActiveInvite: ResolverTypeWrapper<IActiveInvite>;
|
|
729
746
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
747
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
730
748
|
AdminBrand: ResolverTypeWrapper<IAdminBrand>;
|
|
731
749
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
732
750
|
AdminCategory: ResolverTypeWrapper<IAdminCategory>;
|
|
@@ -736,7 +754,6 @@ export type IResolversTypes = {
|
|
|
736
754
|
AdminInvestorInquiry: ResolverTypeWrapper<IAdminInvestorInquiry>;
|
|
737
755
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
738
756
|
AdminInvite: ResolverTypeWrapper<IAdminInvite>;
|
|
739
|
-
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
740
757
|
AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
|
|
741
758
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
742
759
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -754,6 +771,7 @@ export type IResolversTypes = {
|
|
|
754
771
|
CategoriesPage: ResolverTypeWrapper<ICategoriesPage>;
|
|
755
772
|
CategoriesSortInput: ICategoriesSortInput;
|
|
756
773
|
CategoryInput: ICategoryInput;
|
|
774
|
+
CheckInviteCodeData: ResolverTypeWrapper<ICheckInviteCodeData>;
|
|
757
775
|
ContactSupportFilterInput: IContactSupportFilterInput;
|
|
758
776
|
ContactSupportPage: ResolverTypeWrapper<IContactSupportPage>;
|
|
759
777
|
ContactSupportSortInput: IContactSupportSortInput;
|
|
@@ -805,6 +823,7 @@ export type IResolversTypes = {
|
|
|
805
823
|
export type IResolversParentTypes = {
|
|
806
824
|
ActiveInvite: IActiveInvite;
|
|
807
825
|
String: Scalars['String'];
|
|
826
|
+
Int: Scalars['Int'];
|
|
808
827
|
AdminBrand: IAdminBrand;
|
|
809
828
|
Boolean: Scalars['Boolean'];
|
|
810
829
|
AdminCategory: IAdminCategory;
|
|
@@ -814,7 +833,6 @@ export type IResolversParentTypes = {
|
|
|
814
833
|
AdminInvestorInquiry: IAdminInvestorInquiry;
|
|
815
834
|
Float: Scalars['Float'];
|
|
816
835
|
AdminInvite: IAdminInvite;
|
|
817
|
-
Int: Scalars['Int'];
|
|
818
836
|
AdminOpportunity: IAdminOpportunity;
|
|
819
837
|
ID: Scalars['ID'];
|
|
820
838
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -832,6 +850,7 @@ export type IResolversParentTypes = {
|
|
|
832
850
|
CategoriesPage: ICategoriesPage;
|
|
833
851
|
CategoriesSortInput: ICategoriesSortInput;
|
|
834
852
|
CategoryInput: ICategoryInput;
|
|
853
|
+
CheckInviteCodeData: ICheckInviteCodeData;
|
|
835
854
|
ContactSupportFilterInput: IContactSupportFilterInput;
|
|
836
855
|
ContactSupportPage: IContactSupportPage;
|
|
837
856
|
ContactSupportSortInput: IContactSupportSortInput;
|
|
@@ -894,6 +913,8 @@ export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IO
|
|
|
894
913
|
export type IActiveInviteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActiveInvite'] = IResolversParentTypes['ActiveInvite']> = {
|
|
895
914
|
inviteCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
896
915
|
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
916
|
+
usedTimes?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
917
|
+
maxUsagesLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
897
918
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
898
919
|
};
|
|
899
920
|
export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminBrand'] = IResolversParentTypes['AdminBrand']> = {
|
|
@@ -1062,6 +1083,13 @@ export type ICategoriesPageResolvers<ContextType = any, ParentType extends IReso
|
|
|
1062
1083
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1063
1084
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1064
1085
|
};
|
|
1086
|
+
export type ICheckInviteCodeDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['CheckInviteCodeData'] = IResolversParentTypes['CheckInviteCodeData']> = {
|
|
1087
|
+
code?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1088
|
+
isAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
1089
|
+
usedTimes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
1090
|
+
maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
1091
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1092
|
+
};
|
|
1065
1093
|
export type IContactSupportPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['ContactSupportPage'] = IResolversParentTypes['ContactSupportPage']> = {
|
|
1066
1094
|
contactSupports?: Resolver<Array<IResolversTypes['AdminContactSupport']>, ParentType, ContextType>;
|
|
1067
1095
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
@@ -1094,6 +1122,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1094
1122
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1095
1123
|
removeInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveInviteCodeArgs, 'inviteCode'>>;
|
|
1096
1124
|
addInviteCodes?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddInviteCodesArgs, 'userId' | 'codesNum'>>;
|
|
1125
|
+
updateInviteCodeUsagesLimit?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateInviteCodeUsagesLimitArgs, 'code' | 'usagesLimit'>>;
|
|
1097
1126
|
updateOpportunityPushStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityPushStatusArgs, 'opportunityId' | 'isActive'>>;
|
|
1098
1127
|
createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'brand'>>;
|
|
1099
1128
|
updateBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArgs, 'id' | 'input'>>;
|
|
@@ -1128,6 +1157,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1128
1157
|
fetchUserFeedbackPage?: Resolver<IResolversTypes['UserFeedbackPage'], ParentType, ContextType, RequireFields<IQueryFetchUserFeedbackPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1129
1158
|
fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1130
1159
|
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1160
|
+
checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
|
|
1131
1161
|
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1132
1162
|
fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
1133
1163
|
fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1215,6 +1245,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1215
1245
|
AdminXp?: IAdminXpResolvers<ContextType>;
|
|
1216
1246
|
BrandsPage?: IBrandsPageResolvers<ContextType>;
|
|
1217
1247
|
CategoriesPage?: ICategoriesPageResolvers<ContextType>;
|
|
1248
|
+
CheckInviteCodeData?: ICheckInviteCodeDataResolvers<ContextType>;
|
|
1218
1249
|
ContactSupportPage?: IContactSupportPageResolvers<ContextType>;
|
|
1219
1250
|
ContentReportPage?: IContentReportPageResolvers<ContextType>;
|
|
1220
1251
|
FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
|
|
@@ -1241,6 +1272,11 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
1241
1272
|
Range?: IRangeDirectiveResolver<any, any, ContextType>;
|
|
1242
1273
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
1243
1274
|
};
|
|
1275
|
+
export type IUpdateInviteCodeUsagesLimitMutationVariables = Exact<{
|
|
1276
|
+
code: Scalars['String'];
|
|
1277
|
+
usagesLimit: Scalars['Int'];
|
|
1278
|
+
}>;
|
|
1279
|
+
export type IUpdateInviteCodeUsagesLimitMutation = Pick<IMutation, 'updateInviteCodeUsagesLimit'>;
|
|
1244
1280
|
export type IChangeXpPointsMutationVariables = Exact<{
|
|
1245
1281
|
userId: Scalars['ID'];
|
|
1246
1282
|
pointsDiff: Scalars['Int'];
|
|
@@ -1285,6 +1321,12 @@ export type IUpdateProfileStatusMutationVariables = Exact<{
|
|
|
1285
1321
|
isActive: Scalars['Boolean'];
|
|
1286
1322
|
}>;
|
|
1287
1323
|
export type IUpdateProfileStatusMutation = Pick<IMutation, 'updateProfileStatus'>;
|
|
1324
|
+
export type ICheckInviteCodeQueryVariables = Exact<{
|
|
1325
|
+
code: Scalars['String'];
|
|
1326
|
+
}>;
|
|
1327
|
+
export type ICheckInviteCodeQuery = {
|
|
1328
|
+
checkInviteCode: Pick<ICheckInviteCodeData, 'code' | 'isAvailable' | 'usedTimes' | 'maxUsagesLimit'>;
|
|
1329
|
+
};
|
|
1288
1330
|
export type IFetchContactSupportPageQueryVariables = Exact<{
|
|
1289
1331
|
filter: IContactSupportFilterInput;
|
|
1290
1332
|
sort: IContactSupportSortInput;
|
|
@@ -1405,7 +1447,7 @@ export type IFetchAdminInvitesPageQuery = {
|
|
|
1405
1447
|
fetchAdminInvitesPage: {
|
|
1406
1448
|
invites: Array<(Pick<IAdminInvite, 'userId' | 'username' | 'referredUsers' | 'userXpLevel'> & {
|
|
1407
1449
|
wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>;
|
|
1408
|
-
activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt'>>>;
|
|
1450
|
+
activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt' | 'usedTimes' | 'maxUsagesLimit'>>>;
|
|
1409
1451
|
})>;
|
|
1410
1452
|
nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>>;
|
|
1411
1453
|
};
|
|
@@ -1465,6 +1507,33 @@ export type IFetchBlockchainsQueryVariables = Exact<{
|
|
|
1465
1507
|
[key: string]: never;
|
|
1466
1508
|
}>;
|
|
1467
1509
|
export type IFetchBlockchainsQuery = Pick<IQuery, 'fetchBlockchains'>;
|
|
1510
|
+
export declare const UpdateInviteCodeUsagesLimitDocument: Apollo.DocumentNode;
|
|
1511
|
+
export type IUpdateInviteCodeUsagesLimitMutationFn = Apollo.MutationFunction<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>;
|
|
1512
|
+
/**
|
|
1513
|
+
* __useUpdateInviteCodeUsagesLimitMutation__
|
|
1514
|
+
*
|
|
1515
|
+
* To run a mutation, you first call `useUpdateInviteCodeUsagesLimitMutation` within a React component and pass it any options that fit your needs.
|
|
1516
|
+
* When your component renders, `useUpdateInviteCodeUsagesLimitMutation` returns a tuple that includes:
|
|
1517
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1518
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1519
|
+
*
|
|
1520
|
+
* @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;
|
|
1521
|
+
*
|
|
1522
|
+
* @example
|
|
1523
|
+
* const [updateInviteCodeUsagesLimitMutation, { data, loading, error }] = useUpdateInviteCodeUsagesLimitMutation({
|
|
1524
|
+
* variables: {
|
|
1525
|
+
* code: // value for 'code'
|
|
1526
|
+
* usagesLimit: // value for 'usagesLimit'
|
|
1527
|
+
* },
|
|
1528
|
+
* });
|
|
1529
|
+
*/
|
|
1530
|
+
export declare function useUpdateInviteCodeUsagesLimitMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>): Apollo.MutationTuple<IUpdateInviteCodeUsagesLimitMutation, Exact<{
|
|
1531
|
+
code: string;
|
|
1532
|
+
usagesLimit: number;
|
|
1533
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1534
|
+
export type UpdateInviteCodeUsagesLimitMutationHookResult = ReturnType<typeof useUpdateInviteCodeUsagesLimitMutation>;
|
|
1535
|
+
export type UpdateInviteCodeUsagesLimitMutationResult = Apollo.MutationResult<IUpdateInviteCodeUsagesLimitMutation>;
|
|
1536
|
+
export type UpdateInviteCodeUsagesLimitMutationOptions = Apollo.BaseMutationOptions<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>;
|
|
1468
1537
|
export declare const ChangeXpPointsDocument: Apollo.DocumentNode;
|
|
1469
1538
|
export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
1470
1539
|
/**
|
|
@@ -1706,6 +1775,32 @@ export declare function useUpdateProfileStatusMutation(baseOptions?: Apollo.Muta
|
|
|
1706
1775
|
export type UpdateProfileStatusMutationHookResult = ReturnType<typeof useUpdateProfileStatusMutation>;
|
|
1707
1776
|
export type UpdateProfileStatusMutationResult = Apollo.MutationResult<IUpdateProfileStatusMutation>;
|
|
1708
1777
|
export type UpdateProfileStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
|
|
1778
|
+
export declare const CheckInviteCodeDocument: Apollo.DocumentNode;
|
|
1779
|
+
/**
|
|
1780
|
+
* __useCheckInviteCodeQuery__
|
|
1781
|
+
*
|
|
1782
|
+
* To run a query within a React component, call `useCheckInviteCodeQuery` and pass it any options that fit your needs.
|
|
1783
|
+
* When your component renders, `useCheckInviteCodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1784
|
+
* you can use to render your UI.
|
|
1785
|
+
*
|
|
1786
|
+
* @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;
|
|
1787
|
+
*
|
|
1788
|
+
* @example
|
|
1789
|
+
* const { data, loading, error } = useCheckInviteCodeQuery({
|
|
1790
|
+
* variables: {
|
|
1791
|
+
* code: // value for 'code'
|
|
1792
|
+
* },
|
|
1793
|
+
* });
|
|
1794
|
+
*/
|
|
1795
|
+
export declare function useCheckInviteCodeQuery(baseOptions: Apollo.QueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>): Apollo.QueryResult<ICheckInviteCodeQuery, Exact<{
|
|
1796
|
+
code: string;
|
|
1797
|
+
}>>;
|
|
1798
|
+
export declare function useCheckInviteCodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>): Apollo.LazyQueryResultTuple<ICheckInviteCodeQuery, Exact<{
|
|
1799
|
+
code: string;
|
|
1800
|
+
}>>;
|
|
1801
|
+
export type CheckInviteCodeQueryHookResult = ReturnType<typeof useCheckInviteCodeQuery>;
|
|
1802
|
+
export type CheckInviteCodeLazyQueryHookResult = ReturnType<typeof useCheckInviteCodeLazyQuery>;
|
|
1803
|
+
export type CheckInviteCodeQueryResult = Apollo.QueryResult<ICheckInviteCodeQuery, ICheckInviteCodeQueryVariables>;
|
|
1709
1804
|
export declare const FetchContactSupportPageDocument: Apollo.DocumentNode;
|
|
1710
1805
|
/**
|
|
1711
1806
|
* __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.
|
|
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.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.useUpdateInviteCodeUsagesLimitMutation = exports.UpdateInviteCodeUsagesLimitDocument = 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 = exports.FetchAdminCategoriesDocument = exports.useFetchAdminBrandsPageLazyQuery = 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 */
|
|
@@ -33,6 +33,33 @@ var ISortDirection;
|
|
|
33
33
|
ISortDirection["Asc"] = "asc";
|
|
34
34
|
ISortDirection["Desc"] = "desc";
|
|
35
35
|
})(ISortDirection || (exports.ISortDirection = ISortDirection = {}));
|
|
36
|
+
exports.UpdateInviteCodeUsagesLimitDocument = (0, client_1.gql) `
|
|
37
|
+
mutation UpdateInviteCodeUsagesLimit($code: String!, $usagesLimit: Int!) {
|
|
38
|
+
updateInviteCodeUsagesLimit(code: $code, usagesLimit: $usagesLimit)
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
/**
|
|
42
|
+
* __useUpdateInviteCodeUsagesLimitMutation__
|
|
43
|
+
*
|
|
44
|
+
* To run a mutation, you first call `useUpdateInviteCodeUsagesLimitMutation` within a React component and pass it any options that fit your needs.
|
|
45
|
+
* When your component renders, `useUpdateInviteCodeUsagesLimitMutation` returns a tuple that includes:
|
|
46
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
47
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
48
|
+
*
|
|
49
|
+
* @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;
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* const [updateInviteCodeUsagesLimitMutation, { data, loading, error }] = useUpdateInviteCodeUsagesLimitMutation({
|
|
53
|
+
* variables: {
|
|
54
|
+
* code: // value for 'code'
|
|
55
|
+
* usagesLimit: // value for 'usagesLimit'
|
|
56
|
+
* },
|
|
57
|
+
* });
|
|
58
|
+
*/
|
|
59
|
+
function useUpdateInviteCodeUsagesLimitMutation(baseOptions) {
|
|
60
|
+
return Apollo.useMutation(exports.UpdateInviteCodeUsagesLimitDocument, baseOptions);
|
|
61
|
+
}
|
|
62
|
+
exports.useUpdateInviteCodeUsagesLimitMutation = useUpdateInviteCodeUsagesLimitMutation;
|
|
36
63
|
exports.ChangeXpPointsDocument = (0, client_1.gql) `
|
|
37
64
|
mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
|
|
38
65
|
changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)
|
|
@@ -275,6 +302,40 @@ function useUpdateProfileStatusMutation(baseOptions) {
|
|
|
275
302
|
return Apollo.useMutation(exports.UpdateProfileStatusDocument, baseOptions);
|
|
276
303
|
}
|
|
277
304
|
exports.useUpdateProfileStatusMutation = useUpdateProfileStatusMutation;
|
|
305
|
+
exports.CheckInviteCodeDocument = (0, client_1.gql) `
|
|
306
|
+
query CheckInviteCode($code: String!) {
|
|
307
|
+
checkInviteCode(code: $code) {
|
|
308
|
+
code
|
|
309
|
+
isAvailable
|
|
310
|
+
usedTimes
|
|
311
|
+
maxUsagesLimit
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
`;
|
|
315
|
+
/**
|
|
316
|
+
* __useCheckInviteCodeQuery__
|
|
317
|
+
*
|
|
318
|
+
* To run a query within a React component, call `useCheckInviteCodeQuery` and pass it any options that fit your needs.
|
|
319
|
+
* When your component renders, `useCheckInviteCodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
320
|
+
* you can use to render your UI.
|
|
321
|
+
*
|
|
322
|
+
* @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;
|
|
323
|
+
*
|
|
324
|
+
* @example
|
|
325
|
+
* const { data, loading, error } = useCheckInviteCodeQuery({
|
|
326
|
+
* variables: {
|
|
327
|
+
* code: // value for 'code'
|
|
328
|
+
* },
|
|
329
|
+
* });
|
|
330
|
+
*/
|
|
331
|
+
function useCheckInviteCodeQuery(baseOptions) {
|
|
332
|
+
return Apollo.useQuery(exports.CheckInviteCodeDocument, baseOptions);
|
|
333
|
+
}
|
|
334
|
+
exports.useCheckInviteCodeQuery = useCheckInviteCodeQuery;
|
|
335
|
+
function useCheckInviteCodeLazyQuery(baseOptions) {
|
|
336
|
+
return Apollo.useLazyQuery(exports.CheckInviteCodeDocument, baseOptions);
|
|
337
|
+
}
|
|
338
|
+
exports.useCheckInviteCodeLazyQuery = useCheckInviteCodeLazyQuery;
|
|
278
339
|
exports.FetchContactSupportPageDocument = (0, client_1.gql) `
|
|
279
340
|
query FetchContactSupportPage($filter: ContactSupportFilterInput!, $sort: ContactSupportSortInput!, $page: AdminPageInput!) {
|
|
280
341
|
fetchContactSupportPage(filter: $filter, sort: $sort, page: $page) {
|
|
@@ -789,6 +850,8 @@ exports.FetchAdminInvitesPageDocument = (0, client_1.gql) `
|
|
|
789
850
|
activeInvites {
|
|
790
851
|
inviteCode
|
|
791
852
|
createdAt
|
|
853
|
+
usedTimes
|
|
854
|
+
maxUsagesLimit
|
|
792
855
|
}
|
|
793
856
|
referredUsers
|
|
794
857
|
userXpLevel
|
package/build/hosts/index.d.ts
CHANGED
|
@@ -24,3 +24,4 @@ export declare const extensionHost = "https://chrome.ludo.ninja:8092/graphql";
|
|
|
24
24
|
export declare const experiencesHost = "https://experiences.ludo.ninja:8090/graphql";
|
|
25
25
|
export declare const serverExperiencesHost = "http://server-experiences.istio.svc.k8s.local:8090/graphql";
|
|
26
26
|
export declare const formsHost = "https://forms.ludo.ninja:8090/graphql";
|
|
27
|
+
export declare const tapHost = "https://tap.ludo.ninja:8090/graphql";
|
package/build/hosts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formsHost = exports.serverExperiencesHost = exports.experiencesHost = exports.extensionHost = exports.opportunitiesHost = exports.experiencesSubscriptionHost = exports.eventsHost = exports.serverPreferencesHost = exports.searchHostSSR = exports.preferencesHostSSR = exports.preferencesHost = exports.serverSearchHost = exports.serverShowCaseHost = exports.searchHost = exports.serverImagesHost = exports.mediasHost = exports.serverGalleriesHost = exports.galleriesHost = exports.serverIdentityHost = exports.serverCollectionsHost = exports.serverAssetsHost = exports.adminHost = exports.collectionsHost = exports.assetsHost = exports.identityHost = exports.authHost = void 0;
|
|
3
|
+
exports.tapHost = exports.formsHost = exports.serverExperiencesHost = exports.experiencesHost = exports.extensionHost = exports.opportunitiesHost = exports.experiencesSubscriptionHost = exports.eventsHost = exports.serverPreferencesHost = exports.searchHostSSR = exports.preferencesHostSSR = exports.preferencesHost = exports.serverSearchHost = exports.serverShowCaseHost = exports.searchHost = exports.serverImagesHost = exports.mediasHost = exports.serverGalleriesHost = exports.galleriesHost = exports.serverIdentityHost = exports.serverCollectionsHost = exports.serverAssetsHost = exports.adminHost = exports.collectionsHost = exports.assetsHost = exports.identityHost = exports.authHost = void 0;
|
|
4
4
|
exports.authHost = "https://auth.ludo.ninja:8080/graphql";
|
|
5
5
|
exports.identityHost = "https://identities.ludo.ninja:8090/graphql";
|
|
6
6
|
exports.assetsHost = "https://assets.ludo.ninja:8090/graphql";
|
|
@@ -27,3 +27,4 @@ exports.extensionHost = "https://chrome.ludo.ninja:8092/graphql";
|
|
|
27
27
|
exports.experiencesHost = "https://experiences.ludo.ninja:8090/graphql";
|
|
28
28
|
exports.serverExperiencesHost = "http://server-experiences.istio.svc.k8s.local:8090/graphql";
|
|
29
29
|
exports.formsHost = "https://forms.ludo.ninja:8090/graphql";
|
|
30
|
+
exports.tapHost = "https://tap.ludo.ninja:8090/graphql";
|
package/build/index.d.ts
CHANGED
|
@@ -1084,6 +1084,13 @@ declare const schema: {
|
|
|
1084
1084
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1085
1085
|
DislikeAssetDocument: import("graphql").DocumentNode;
|
|
1086
1086
|
LikeAssetDocument: import("graphql").DocumentNode;
|
|
1087
|
+
useUpdateInviteCodeUsagesLimitMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateInviteCodeUsagesLimitMutation, adminSchema.Exact<{
|
|
1088
|
+
code: string;
|
|
1089
|
+
usagesLimit: number;
|
|
1090
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateInviteCodeUsagesLimitMutation, adminSchema.Exact<{
|
|
1091
|
+
code: string;
|
|
1092
|
+
usagesLimit: number;
|
|
1093
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1087
1094
|
useChangeXpPointsMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IChangeXpPointsMutation, adminSchema.Exact<{
|
|
1088
1095
|
userId: string;
|
|
1089
1096
|
pointsDiff: number;
|
|
@@ -1145,6 +1152,16 @@ declare const schema: {
|
|
|
1145
1152
|
userId: string;
|
|
1146
1153
|
isActive: boolean;
|
|
1147
1154
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1155
|
+
useCheckInviteCodeQuery(baseOptions: import("@apollo/client").QueryHookOptions<adminSchema.ICheckInviteCodeQuery, adminSchema.Exact<{
|
|
1156
|
+
code: string;
|
|
1157
|
+
}>>): import("@apollo/client").QueryResult<adminSchema.ICheckInviteCodeQuery, adminSchema.Exact<{
|
|
1158
|
+
code: string;
|
|
1159
|
+
}>>;
|
|
1160
|
+
useCheckInviteCodeLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<adminSchema.ICheckInviteCodeQuery, adminSchema.Exact<{
|
|
1161
|
+
code: string;
|
|
1162
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<adminSchema.ICheckInviteCodeQuery, adminSchema.Exact<{
|
|
1163
|
+
code: string;
|
|
1164
|
+
}>>;
|
|
1148
1165
|
useFetchContactSupportPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<adminSchema.IFetchContactSupportPageQuery, adminSchema.Exact<{
|
|
1149
1166
|
filter: adminSchema.IContactSupportFilterInput;
|
|
1150
1167
|
sort: adminSchema.IContactSupportSortInput;
|
|
@@ -1428,6 +1445,7 @@ declare const schema: {
|
|
|
1428
1445
|
[key: string]: never;
|
|
1429
1446
|
}>>;
|
|
1430
1447
|
ISortDirection: typeof adminSchema.ISortDirection;
|
|
1448
|
+
UpdateInviteCodeUsagesLimitDocument: import("graphql").DocumentNode;
|
|
1431
1449
|
ChangeXpPointsDocument: import("graphql").DocumentNode;
|
|
1432
1450
|
CreateCategoryDocument: import("graphql").DocumentNode;
|
|
1433
1451
|
CreateBrandDocument: import("graphql").DocumentNode;
|
|
@@ -1437,6 +1455,7 @@ declare const schema: {
|
|
|
1437
1455
|
UpdateBrandArchivedStatusDocument: import("graphql").DocumentNode;
|
|
1438
1456
|
UpdateCategoryArchivedStatusDocument: import("graphql").DocumentNode;
|
|
1439
1457
|
UpdateProfileStatusDocument: import("graphql").DocumentNode;
|
|
1458
|
+
CheckInviteCodeDocument: import("graphql").DocumentNode;
|
|
1440
1459
|
FetchContactSupportPageDocument: import("graphql").DocumentNode;
|
|
1441
1460
|
FetchContentReportPageDocument: import("graphql").DocumentNode;
|
|
1442
1461
|
FetchFormOpportunityPageDocument: import("graphql").DocumentNode;
|