@ludo.ninja/api 2.8.60 → 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 +48 -6
- package/build/graphql_tools/__generated__/adminHost/schema.js +32 -3
- package/build/hosts/index.d.ts +1 -0
- package/build/hosts/index.js +2 -1
- package/build/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +60 -7
- 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'];
|
|
@@ -244,7 +246,7 @@ export type ICategoryInput = {
|
|
|
244
246
|
};
|
|
245
247
|
export type ICheckInviteCodeData = {
|
|
246
248
|
code: Scalars['String'];
|
|
247
|
-
|
|
249
|
+
isAvailable: Scalars['Boolean'];
|
|
248
250
|
usedTimes: Scalars['Int'];
|
|
249
251
|
maxUsagesLimit: Scalars['Int'];
|
|
250
252
|
};
|
|
@@ -350,6 +352,7 @@ export type IMutation = {
|
|
|
350
352
|
setDummy: Scalars['String'];
|
|
351
353
|
removeInviteCode: Scalars['Boolean'];
|
|
352
354
|
addInviteCodes: Scalars['Boolean'];
|
|
355
|
+
updateInviteCodeUsagesLimit: Scalars['Boolean'];
|
|
353
356
|
updateOpportunityPushStatus: Scalars['Boolean'];
|
|
354
357
|
createBrand: Scalars['Boolean'];
|
|
355
358
|
updateBrand: Scalars['Boolean'];
|
|
@@ -371,6 +374,10 @@ export type IMutationAddInviteCodesArgs = {
|
|
|
371
374
|
userId: Scalars['String'];
|
|
372
375
|
codesNum: Scalars['Int'];
|
|
373
376
|
};
|
|
377
|
+
export type IMutationUpdateInviteCodeUsagesLimitArgs = {
|
|
378
|
+
code: Scalars['String'];
|
|
379
|
+
usagesLimit: Scalars['Int'];
|
|
380
|
+
};
|
|
374
381
|
export type IMutationUpdateOpportunityPushStatusArgs = {
|
|
375
382
|
opportunityId: Scalars['ID'];
|
|
376
383
|
isActive: Scalars['Boolean'];
|
|
@@ -737,6 +744,7 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
737
744
|
export type IResolversTypes = {
|
|
738
745
|
ActiveInvite: ResolverTypeWrapper<IActiveInvite>;
|
|
739
746
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
747
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
740
748
|
AdminBrand: ResolverTypeWrapper<IAdminBrand>;
|
|
741
749
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
742
750
|
AdminCategory: ResolverTypeWrapper<IAdminCategory>;
|
|
@@ -746,7 +754,6 @@ export type IResolversTypes = {
|
|
|
746
754
|
AdminInvestorInquiry: ResolverTypeWrapper<IAdminInvestorInquiry>;
|
|
747
755
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
748
756
|
AdminInvite: ResolverTypeWrapper<IAdminInvite>;
|
|
749
|
-
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
750
757
|
AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
|
|
751
758
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
752
759
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -816,6 +823,7 @@ export type IResolversTypes = {
|
|
|
816
823
|
export type IResolversParentTypes = {
|
|
817
824
|
ActiveInvite: IActiveInvite;
|
|
818
825
|
String: Scalars['String'];
|
|
826
|
+
Int: Scalars['Int'];
|
|
819
827
|
AdminBrand: IAdminBrand;
|
|
820
828
|
Boolean: Scalars['Boolean'];
|
|
821
829
|
AdminCategory: IAdminCategory;
|
|
@@ -825,7 +833,6 @@ export type IResolversParentTypes = {
|
|
|
825
833
|
AdminInvestorInquiry: IAdminInvestorInquiry;
|
|
826
834
|
Float: Scalars['Float'];
|
|
827
835
|
AdminInvite: IAdminInvite;
|
|
828
|
-
Int: Scalars['Int'];
|
|
829
836
|
AdminOpportunity: IAdminOpportunity;
|
|
830
837
|
ID: Scalars['ID'];
|
|
831
838
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -906,6 +913,8 @@ export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IO
|
|
|
906
913
|
export type IActiveInviteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActiveInvite'] = IResolversParentTypes['ActiveInvite']> = {
|
|
907
914
|
inviteCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
908
915
|
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
916
|
+
usedTimes?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
917
|
+
maxUsagesLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
909
918
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
910
919
|
};
|
|
911
920
|
export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminBrand'] = IResolversParentTypes['AdminBrand']> = {
|
|
@@ -1076,7 +1085,7 @@ export type ICategoriesPageResolvers<ContextType = any, ParentType extends IReso
|
|
|
1076
1085
|
};
|
|
1077
1086
|
export type ICheckInviteCodeDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['CheckInviteCodeData'] = IResolversParentTypes['CheckInviteCodeData']> = {
|
|
1078
1087
|
code?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1079
|
-
|
|
1088
|
+
isAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
1080
1089
|
usedTimes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
1081
1090
|
maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
1082
1091
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -1113,6 +1122,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1113
1122
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1114
1123
|
removeInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveInviteCodeArgs, 'inviteCode'>>;
|
|
1115
1124
|
addInviteCodes?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddInviteCodesArgs, 'userId' | 'codesNum'>>;
|
|
1125
|
+
updateInviteCodeUsagesLimit?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateInviteCodeUsagesLimitArgs, 'code' | 'usagesLimit'>>;
|
|
1116
1126
|
updateOpportunityPushStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityPushStatusArgs, 'opportunityId' | 'isActive'>>;
|
|
1117
1127
|
createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'brand'>>;
|
|
1118
1128
|
updateBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArgs, 'id' | 'input'>>;
|
|
@@ -1262,6 +1272,11 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
1262
1272
|
Range?: IRangeDirectiveResolver<any, any, ContextType>;
|
|
1263
1273
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
1264
1274
|
};
|
|
1275
|
+
export type IUpdateInviteCodeUsagesLimitMutationVariables = Exact<{
|
|
1276
|
+
code: Scalars['String'];
|
|
1277
|
+
usagesLimit: Scalars['Int'];
|
|
1278
|
+
}>;
|
|
1279
|
+
export type IUpdateInviteCodeUsagesLimitMutation = Pick<IMutation, 'updateInviteCodeUsagesLimit'>;
|
|
1265
1280
|
export type IChangeXpPointsMutationVariables = Exact<{
|
|
1266
1281
|
userId: Scalars['ID'];
|
|
1267
1282
|
pointsDiff: Scalars['Int'];
|
|
@@ -1310,7 +1325,7 @@ export type ICheckInviteCodeQueryVariables = Exact<{
|
|
|
1310
1325
|
code: Scalars['String'];
|
|
1311
1326
|
}>;
|
|
1312
1327
|
export type ICheckInviteCodeQuery = {
|
|
1313
|
-
checkInviteCode: Pick<ICheckInviteCodeData, 'code' | '
|
|
1328
|
+
checkInviteCode: Pick<ICheckInviteCodeData, 'code' | 'isAvailable' | 'usedTimes' | 'maxUsagesLimit'>;
|
|
1314
1329
|
};
|
|
1315
1330
|
export type IFetchContactSupportPageQueryVariables = Exact<{
|
|
1316
1331
|
filter: IContactSupportFilterInput;
|
|
@@ -1432,7 +1447,7 @@ export type IFetchAdminInvitesPageQuery = {
|
|
|
1432
1447
|
fetchAdminInvitesPage: {
|
|
1433
1448
|
invites: Array<(Pick<IAdminInvite, 'userId' | 'username' | 'referredUsers' | 'userXpLevel'> & {
|
|
1434
1449
|
wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>;
|
|
1435
|
-
activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt'>>>;
|
|
1450
|
+
activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt' | 'usedTimes' | 'maxUsagesLimit'>>>;
|
|
1436
1451
|
})>;
|
|
1437
1452
|
nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>>;
|
|
1438
1453
|
};
|
|
@@ -1492,6 +1507,33 @@ export type IFetchBlockchainsQueryVariables = Exact<{
|
|
|
1492
1507
|
[key: string]: never;
|
|
1493
1508
|
}>;
|
|
1494
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>;
|
|
1495
1537
|
export declare const ChangeXpPointsDocument: Apollo.DocumentNode;
|
|
1496
1538
|
export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
1497
1539
|
/**
|
|
@@ -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 = exports.FetchAdminCategoriesPageDocument = exports.useFetchAdminCategoriesLazyQuery = exports.useFetchAdminCategoriesQuery = 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)
|
|
@@ -279,7 +306,7 @@ exports.CheckInviteCodeDocument = (0, client_1.gql) `
|
|
|
279
306
|
query CheckInviteCode($code: String!) {
|
|
280
307
|
checkInviteCode(code: $code) {
|
|
281
308
|
code
|
|
282
|
-
|
|
309
|
+
isAvailable
|
|
283
310
|
usedTimes
|
|
284
311
|
maxUsagesLimit
|
|
285
312
|
}
|
|
@@ -823,6 +850,8 @@ exports.FetchAdminInvitesPageDocument = (0, client_1.gql) `
|
|
|
823
850
|
activeInvites {
|
|
824
851
|
inviteCode
|
|
825
852
|
createdAt
|
|
853
|
+
usedTimes
|
|
854
|
+
maxUsagesLimit
|
|
826
855
|
}
|
|
827
856
|
referredUsers
|
|
828
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;
|
|
@@ -1438,6 +1445,7 @@ declare const schema: {
|
|
|
1438
1445
|
[key: string]: never;
|
|
1439
1446
|
}>>;
|
|
1440
1447
|
ISortDirection: typeof adminSchema.ISortDirection;
|
|
1448
|
+
UpdateInviteCodeUsagesLimitDocument: import("graphql").DocumentNode;
|
|
1441
1449
|
ChangeXpPointsDocument: import("graphql").DocumentNode;
|
|
1442
1450
|
CreateCategoryDocument: import("graphql").DocumentNode;
|
|
1443
1451
|
CreateBrandDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -26,6 +26,8 @@ export type Scalars = {
|
|
|
26
26
|
export type IActiveInvite = {
|
|
27
27
|
inviteCode?: Maybe<Scalars['String']>;
|
|
28
28
|
createdAt?: Maybe<Scalars['Long']>;
|
|
29
|
+
usedTimes?: Maybe<Scalars['Int']>;
|
|
30
|
+
maxUsagesLimit?: Maybe<Scalars['Int']>;
|
|
29
31
|
};
|
|
30
32
|
|
|
31
33
|
export type IAdminBrand = {
|
|
@@ -264,7 +266,7 @@ export type ICategoryInput = {
|
|
|
264
266
|
|
|
265
267
|
export type ICheckInviteCodeData = {
|
|
266
268
|
code: Scalars['String'];
|
|
267
|
-
|
|
269
|
+
isAvailable: Scalars['Boolean'];
|
|
268
270
|
usedTimes: Scalars['Int'];
|
|
269
271
|
maxUsagesLimit: Scalars['Int'];
|
|
270
272
|
};
|
|
@@ -387,6 +389,7 @@ export type IMutation = {
|
|
|
387
389
|
setDummy: Scalars['String'];
|
|
388
390
|
removeInviteCode: Scalars['Boolean'];
|
|
389
391
|
addInviteCodes: Scalars['Boolean'];
|
|
392
|
+
updateInviteCodeUsagesLimit: Scalars['Boolean'];
|
|
390
393
|
updateOpportunityPushStatus: Scalars['Boolean'];
|
|
391
394
|
createBrand: Scalars['Boolean'];
|
|
392
395
|
updateBrand: Scalars['Boolean'];
|
|
@@ -414,6 +417,12 @@ export type IMutationAddInviteCodesArgs = {
|
|
|
414
417
|
};
|
|
415
418
|
|
|
416
419
|
|
|
420
|
+
export type IMutationUpdateInviteCodeUsagesLimitArgs = {
|
|
421
|
+
code: Scalars['String'];
|
|
422
|
+
usagesLimit: Scalars['Int'];
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
|
|
417
426
|
export type IMutationUpdateOpportunityPushStatusArgs = {
|
|
418
427
|
opportunityId: Scalars['ID'];
|
|
419
428
|
isActive: Scalars['Boolean'];
|
|
@@ -905,6 +914,7 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
905
914
|
export type IResolversTypes = {
|
|
906
915
|
ActiveInvite: ResolverTypeWrapper<IActiveInvite>;
|
|
907
916
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
917
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
908
918
|
AdminBrand: ResolverTypeWrapper<IAdminBrand>;
|
|
909
919
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
910
920
|
AdminCategory: ResolverTypeWrapper<IAdminCategory>;
|
|
@@ -914,7 +924,6 @@ export type IResolversTypes = {
|
|
|
914
924
|
AdminInvestorInquiry: ResolverTypeWrapper<IAdminInvestorInquiry>;
|
|
915
925
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
916
926
|
AdminInvite: ResolverTypeWrapper<IAdminInvite>;
|
|
917
|
-
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
918
927
|
AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
|
|
919
928
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
920
929
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -985,6 +994,7 @@ export type IResolversTypes = {
|
|
|
985
994
|
export type IResolversParentTypes = {
|
|
986
995
|
ActiveInvite: IActiveInvite;
|
|
987
996
|
String: Scalars['String'];
|
|
997
|
+
Int: Scalars['Int'];
|
|
988
998
|
AdminBrand: IAdminBrand;
|
|
989
999
|
Boolean: Scalars['Boolean'];
|
|
990
1000
|
AdminCategory: IAdminCategory;
|
|
@@ -994,7 +1004,6 @@ export type IResolversParentTypes = {
|
|
|
994
1004
|
AdminInvestorInquiry: IAdminInvestorInquiry;
|
|
995
1005
|
Float: Scalars['Float'];
|
|
996
1006
|
AdminInvite: IAdminInvite;
|
|
997
|
-
Int: Scalars['Int'];
|
|
998
1007
|
AdminOpportunity: IAdminOpportunity;
|
|
999
1008
|
ID: Scalars['ID'];
|
|
1000
1009
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -1082,6 +1091,8 @@ export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IO
|
|
|
1082
1091
|
export type IActiveInviteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActiveInvite'] = IResolversParentTypes['ActiveInvite']> = {
|
|
1083
1092
|
inviteCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1084
1093
|
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
1094
|
+
usedTimes?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1095
|
+
maxUsagesLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1085
1096
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1086
1097
|
};
|
|
1087
1098
|
|
|
@@ -1268,7 +1279,7 @@ export type ICategoriesPageResolvers<ContextType = any, ParentType extends IReso
|
|
|
1268
1279
|
|
|
1269
1280
|
export type ICheckInviteCodeDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['CheckInviteCodeData'] = IResolversParentTypes['CheckInviteCodeData']> = {
|
|
1270
1281
|
code?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1271
|
-
|
|
1282
|
+
isAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
1272
1283
|
usedTimes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
1273
1284
|
maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
1274
1285
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -1312,6 +1323,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1312
1323
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1313
1324
|
removeInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveInviteCodeArgs, 'inviteCode'>>;
|
|
1314
1325
|
addInviteCodes?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddInviteCodesArgs, 'userId' | 'codesNum'>>;
|
|
1326
|
+
updateInviteCodeUsagesLimit?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateInviteCodeUsagesLimitArgs, 'code' | 'usagesLimit'>>;
|
|
1315
1327
|
updateOpportunityPushStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityPushStatusArgs, 'opportunityId' | 'isActive'>>;
|
|
1316
1328
|
createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'brand'>>;
|
|
1317
1329
|
updateBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArgs, 'id' | 'input'>>;
|
|
@@ -1477,6 +1489,14 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
1477
1489
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
1478
1490
|
};
|
|
1479
1491
|
|
|
1492
|
+
export type IUpdateInviteCodeUsagesLimitMutationVariables = Exact<{
|
|
1493
|
+
code: Scalars['String'];
|
|
1494
|
+
usagesLimit: Scalars['Int'];
|
|
1495
|
+
}>;
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
export type IUpdateInviteCodeUsagesLimitMutation = Pick<IMutation, 'updateInviteCodeUsagesLimit'>;
|
|
1499
|
+
|
|
1480
1500
|
export type IChangeXpPointsMutationVariables = Exact<{
|
|
1481
1501
|
userId: Scalars['ID'];
|
|
1482
1502
|
pointsDiff: Scalars['Int'];
|
|
@@ -1553,7 +1573,7 @@ export type ICheckInviteCodeQueryVariables = Exact<{
|
|
|
1553
1573
|
}>;
|
|
1554
1574
|
|
|
1555
1575
|
|
|
1556
|
-
export type ICheckInviteCodeQuery = { checkInviteCode: Pick<ICheckInviteCodeData, 'code' | '
|
|
1576
|
+
export type ICheckInviteCodeQuery = { checkInviteCode: Pick<ICheckInviteCodeData, 'code' | 'isAvailable' | 'usedTimes' | 'maxUsagesLimit'> };
|
|
1557
1577
|
|
|
1558
1578
|
export type IFetchContactSupportPageQueryVariables = Exact<{
|
|
1559
1579
|
filter: IContactSupportFilterInput;
|
|
@@ -1655,7 +1675,7 @@ export type IFetchAdminInvitesPageQueryVariables = Exact<{
|
|
|
1655
1675
|
|
|
1656
1676
|
export type IFetchAdminInvitesPageQuery = { fetchAdminInvitesPage: { invites: Array<(
|
|
1657
1677
|
Pick<IAdminInvite, 'userId' | 'username' | 'referredUsers' | 'userXpLevel'>
|
|
1658
|
-
& { wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt'>>> }
|
|
1678
|
+
& { wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt' | 'usedTimes' | 'maxUsagesLimit'>>> }
|
|
1659
1679
|
)>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
|
|
1660
1680
|
|
|
1661
1681
|
export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
|
|
@@ -1709,6 +1729,37 @@ export type IFetchBlockchainsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
1709
1729
|
export type IFetchBlockchainsQuery = Pick<IQuery, 'fetchBlockchains'>;
|
|
1710
1730
|
|
|
1711
1731
|
|
|
1732
|
+
export const UpdateInviteCodeUsagesLimitDocument = gql`
|
|
1733
|
+
mutation UpdateInviteCodeUsagesLimit($code: String!, $usagesLimit: Int!) {
|
|
1734
|
+
updateInviteCodeUsagesLimit(code: $code, usagesLimit: $usagesLimit)
|
|
1735
|
+
}
|
|
1736
|
+
`;
|
|
1737
|
+
export type IUpdateInviteCodeUsagesLimitMutationFn = Apollo.MutationFunction<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>;
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* __useUpdateInviteCodeUsagesLimitMutation__
|
|
1741
|
+
*
|
|
1742
|
+
* To run a mutation, you first call `useUpdateInviteCodeUsagesLimitMutation` within a React component and pass it any options that fit your needs.
|
|
1743
|
+
* When your component renders, `useUpdateInviteCodeUsagesLimitMutation` returns a tuple that includes:
|
|
1744
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1745
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1746
|
+
*
|
|
1747
|
+
* @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;
|
|
1748
|
+
*
|
|
1749
|
+
* @example
|
|
1750
|
+
* const [updateInviteCodeUsagesLimitMutation, { data, loading, error }] = useUpdateInviteCodeUsagesLimitMutation({
|
|
1751
|
+
* variables: {
|
|
1752
|
+
* code: // value for 'code'
|
|
1753
|
+
* usagesLimit: // value for 'usagesLimit'
|
|
1754
|
+
* },
|
|
1755
|
+
* });
|
|
1756
|
+
*/
|
|
1757
|
+
export function useUpdateInviteCodeUsagesLimitMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>) {
|
|
1758
|
+
return Apollo.useMutation<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>(UpdateInviteCodeUsagesLimitDocument, baseOptions);
|
|
1759
|
+
}
|
|
1760
|
+
export type UpdateInviteCodeUsagesLimitMutationHookResult = ReturnType<typeof useUpdateInviteCodeUsagesLimitMutation>;
|
|
1761
|
+
export type UpdateInviteCodeUsagesLimitMutationResult = Apollo.MutationResult<IUpdateInviteCodeUsagesLimitMutation>;
|
|
1762
|
+
export type UpdateInviteCodeUsagesLimitMutationOptions = Apollo.BaseMutationOptions<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>;
|
|
1712
1763
|
export const ChangeXpPointsDocument = gql`
|
|
1713
1764
|
mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
|
|
1714
1765
|
changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)
|
|
@@ -1991,7 +2042,7 @@ export const CheckInviteCodeDocument = gql`
|
|
|
1991
2042
|
query CheckInviteCode($code: String!) {
|
|
1992
2043
|
checkInviteCode(code: $code) {
|
|
1993
2044
|
code
|
|
1994
|
-
|
|
2045
|
+
isAvailable
|
|
1995
2046
|
usedTimes
|
|
1996
2047
|
maxUsagesLimit
|
|
1997
2048
|
}
|
|
@@ -2559,6 +2610,8 @@ export const FetchAdminInvitesPageDocument = gql`
|
|
|
2559
2610
|
activeInvites {
|
|
2560
2611
|
inviteCode
|
|
2561
2612
|
createdAt
|
|
2613
|
+
usedTimes
|
|
2614
|
+
maxUsagesLimit
|
|
2562
2615
|
}
|
|
2563
2616
|
referredUsers
|
|
2564
2617
|
userXpLevel
|
package/src/hosts/index.ts
CHANGED
|
@@ -49,3 +49,6 @@ export const experiencesHost = "https://experiences.ludo.ninja:8090/graphql";
|
|
|
49
49
|
export const serverExperiencesHost = "http://server-experiences.istio.svc.k8s.local:8090/graphql";
|
|
50
50
|
|
|
51
51
|
export const formsHost = "https://forms.ludo.ninja:8090/graphql";
|
|
52
|
+
|
|
53
|
+
export const tapHost = "https://tap.ludo.ninja:8090/graphql";
|
|
54
|
+
|