@ludo.ninja/api 2.8.60 → 2.8.62
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 +156 -6
- package/build/graphql_tools/__generated__/adminHost/schema.js +115 -3
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +5 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +14 -0
- package/build/hosts/index.d.ts +1 -0
- package/build/hosts/index.js +2 -1
- package/build/index.d.ts +36 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +187 -7
- package/src/graphql_tools/__generated__/identityHost/schema.ts +7 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +18 -0
- 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'];
|
|
@@ -187,6 +189,9 @@ export type IAdminUser = {
|
|
|
187
189
|
xpLevel?: Maybe<Scalars['Int']>;
|
|
188
190
|
ludoRank?: Maybe<Scalars['Float']>;
|
|
189
191
|
inviterId?: Maybe<Scalars['String']>;
|
|
192
|
+
ip?: Maybe<Scalars['String']>;
|
|
193
|
+
location?: Maybe<Scalars['String']>;
|
|
194
|
+
userLanguage?: Maybe<Scalars['String']>;
|
|
190
195
|
};
|
|
191
196
|
export type IAdminXp = {
|
|
192
197
|
userId: Scalars['ID'];
|
|
@@ -244,7 +249,7 @@ export type ICategoryInput = {
|
|
|
244
249
|
};
|
|
245
250
|
export type ICheckInviteCodeData = {
|
|
246
251
|
code: Scalars['String'];
|
|
247
|
-
|
|
252
|
+
isAvailable: Scalars['Boolean'];
|
|
248
253
|
usedTimes: Scalars['Int'];
|
|
249
254
|
maxUsagesLimit: Scalars['Int'];
|
|
250
255
|
};
|
|
@@ -350,6 +355,7 @@ export type IMutation = {
|
|
|
350
355
|
setDummy: Scalars['String'];
|
|
351
356
|
removeInviteCode: Scalars['Boolean'];
|
|
352
357
|
addInviteCodes: Scalars['Boolean'];
|
|
358
|
+
updateInviteCodeUsagesLimit: Scalars['Boolean'];
|
|
353
359
|
updateOpportunityPushStatus: Scalars['Boolean'];
|
|
354
360
|
createBrand: Scalars['Boolean'];
|
|
355
361
|
updateBrand: Scalars['Boolean'];
|
|
@@ -371,6 +377,10 @@ export type IMutationAddInviteCodesArgs = {
|
|
|
371
377
|
userId: Scalars['String'];
|
|
372
378
|
codesNum: Scalars['Int'];
|
|
373
379
|
};
|
|
380
|
+
export type IMutationUpdateInviteCodeUsagesLimitArgs = {
|
|
381
|
+
code: Scalars['String'];
|
|
382
|
+
usagesLimit: Scalars['Int'];
|
|
383
|
+
};
|
|
374
384
|
export type IMutationUpdateOpportunityPushStatusArgs = {
|
|
375
385
|
opportunityId: Scalars['ID'];
|
|
376
386
|
isActive: Scalars['Boolean'];
|
|
@@ -737,6 +747,7 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
737
747
|
export type IResolversTypes = {
|
|
738
748
|
ActiveInvite: ResolverTypeWrapper<IActiveInvite>;
|
|
739
749
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
750
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
740
751
|
AdminBrand: ResolverTypeWrapper<IAdminBrand>;
|
|
741
752
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
742
753
|
AdminCategory: ResolverTypeWrapper<IAdminCategory>;
|
|
@@ -746,7 +757,6 @@ export type IResolversTypes = {
|
|
|
746
757
|
AdminInvestorInquiry: ResolverTypeWrapper<IAdminInvestorInquiry>;
|
|
747
758
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
748
759
|
AdminInvite: ResolverTypeWrapper<IAdminInvite>;
|
|
749
|
-
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
750
760
|
AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
|
|
751
761
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
752
762
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -816,6 +826,7 @@ export type IResolversTypes = {
|
|
|
816
826
|
export type IResolversParentTypes = {
|
|
817
827
|
ActiveInvite: IActiveInvite;
|
|
818
828
|
String: Scalars['String'];
|
|
829
|
+
Int: Scalars['Int'];
|
|
819
830
|
AdminBrand: IAdminBrand;
|
|
820
831
|
Boolean: Scalars['Boolean'];
|
|
821
832
|
AdminCategory: IAdminCategory;
|
|
@@ -825,7 +836,6 @@ export type IResolversParentTypes = {
|
|
|
825
836
|
AdminInvestorInquiry: IAdminInvestorInquiry;
|
|
826
837
|
Float: Scalars['Float'];
|
|
827
838
|
AdminInvite: IAdminInvite;
|
|
828
|
-
Int: Scalars['Int'];
|
|
829
839
|
AdminOpportunity: IAdminOpportunity;
|
|
830
840
|
ID: Scalars['ID'];
|
|
831
841
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -906,6 +916,8 @@ export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IO
|
|
|
906
916
|
export type IActiveInviteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActiveInvite'] = IResolversParentTypes['ActiveInvite']> = {
|
|
907
917
|
inviteCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
908
918
|
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
919
|
+
usedTimes?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
920
|
+
maxUsagesLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
909
921
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
910
922
|
};
|
|
911
923
|
export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminBrand'] = IResolversParentTypes['AdminBrand']> = {
|
|
@@ -1049,6 +1061,9 @@ export type IAdminUserResolvers<ContextType = any, ParentType extends IResolvers
|
|
|
1049
1061
|
xpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1050
1062
|
ludoRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1051
1063
|
inviterId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1064
|
+
ip?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1065
|
+
location?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1066
|
+
userLanguage?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1052
1067
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1053
1068
|
};
|
|
1054
1069
|
export type IAdminXpResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminXp'] = IResolversParentTypes['AdminXp']> = {
|
|
@@ -1076,7 +1091,7 @@ export type ICategoriesPageResolvers<ContextType = any, ParentType extends IReso
|
|
|
1076
1091
|
};
|
|
1077
1092
|
export type ICheckInviteCodeDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['CheckInviteCodeData'] = IResolversParentTypes['CheckInviteCodeData']> = {
|
|
1078
1093
|
code?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1079
|
-
|
|
1094
|
+
isAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
1080
1095
|
usedTimes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
1081
1096
|
maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
1082
1097
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -1113,6 +1128,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1113
1128
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1114
1129
|
removeInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveInviteCodeArgs, 'inviteCode'>>;
|
|
1115
1130
|
addInviteCodes?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddInviteCodesArgs, 'userId' | 'codesNum'>>;
|
|
1131
|
+
updateInviteCodeUsagesLimit?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateInviteCodeUsagesLimitArgs, 'code' | 'usagesLimit'>>;
|
|
1116
1132
|
updateOpportunityPushStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityPushStatusArgs, 'opportunityId' | 'isActive'>>;
|
|
1117
1133
|
createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'brand'>>;
|
|
1118
1134
|
updateBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArgs, 'id' | 'input'>>;
|
|
@@ -1262,6 +1278,11 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
1262
1278
|
Range?: IRangeDirectiveResolver<any, any, ContextType>;
|
|
1263
1279
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
1264
1280
|
};
|
|
1281
|
+
export type IUpdateInviteCodeUsagesLimitMutationVariables = Exact<{
|
|
1282
|
+
code: Scalars['String'];
|
|
1283
|
+
usagesLimit: Scalars['Int'];
|
|
1284
|
+
}>;
|
|
1285
|
+
export type IUpdateInviteCodeUsagesLimitMutation = Pick<IMutation, 'updateInviteCodeUsagesLimit'>;
|
|
1265
1286
|
export type IChangeXpPointsMutationVariables = Exact<{
|
|
1266
1287
|
userId: Scalars['ID'];
|
|
1267
1288
|
pointsDiff: Scalars['Int'];
|
|
@@ -1291,16 +1312,33 @@ export type IRemoveInviteCodeMutationVariables = Exact<{
|
|
|
1291
1312
|
inviteCode: Scalars['String'];
|
|
1292
1313
|
}>;
|
|
1293
1314
|
export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
|
|
1315
|
+
export type IUpdateBrandMutationVariables = Exact<{
|
|
1316
|
+
id: Scalars['ID'];
|
|
1317
|
+
input: IBrandInput;
|
|
1318
|
+
file?: Maybe<Scalars['Upload']>;
|
|
1319
|
+
}>;
|
|
1320
|
+
export type IUpdateBrandMutation = Pick<IMutation, 'updateBrand'>;
|
|
1294
1321
|
export type IUpdateBrandArchivedStatusMutationVariables = Exact<{
|
|
1295
1322
|
id: Scalars['ID'];
|
|
1296
1323
|
isArchived: Scalars['Boolean'];
|
|
1297
1324
|
}>;
|
|
1298
1325
|
export type IUpdateBrandArchivedStatusMutation = Pick<IMutation, 'updateBrandArchivedStatus'>;
|
|
1326
|
+
export type IUpdateCategoryMutationVariables = Exact<{
|
|
1327
|
+
id: Scalars['ID'];
|
|
1328
|
+
input: ICategoryInput;
|
|
1329
|
+
}>;
|
|
1330
|
+
export type IUpdateCategoryMutation = Pick<IMutation, 'updateCategory'>;
|
|
1299
1331
|
export type IUpdateCategoryArchivedStatusMutationVariables = Exact<{
|
|
1300
1332
|
id: Scalars['ID'];
|
|
1301
1333
|
isArchived: Scalars['Boolean'];
|
|
1302
1334
|
}>;
|
|
1303
1335
|
export type IUpdateCategoryArchivedStatusMutation = Pick<IMutation, 'updateCategoryArchivedStatus'>;
|
|
1336
|
+
export type IUpdateOpportunityMutationVariables = Exact<{
|
|
1337
|
+
id: Scalars['ID'];
|
|
1338
|
+
input: IAdminOpportunityInput;
|
|
1339
|
+
file?: Maybe<Scalars['Upload']>;
|
|
1340
|
+
}>;
|
|
1341
|
+
export type IUpdateOpportunityMutation = Pick<IMutation, 'updateOpportunity'>;
|
|
1304
1342
|
export type IUpdateProfileStatusMutationVariables = Exact<{
|
|
1305
1343
|
userId: Scalars['ID'];
|
|
1306
1344
|
isActive: Scalars['Boolean'];
|
|
@@ -1310,7 +1348,7 @@ export type ICheckInviteCodeQueryVariables = Exact<{
|
|
|
1310
1348
|
code: Scalars['String'];
|
|
1311
1349
|
}>;
|
|
1312
1350
|
export type ICheckInviteCodeQuery = {
|
|
1313
|
-
checkInviteCode: Pick<ICheckInviteCodeData, 'code' | '
|
|
1351
|
+
checkInviteCode: Pick<ICheckInviteCodeData, 'code' | 'isAvailable' | 'usedTimes' | 'maxUsagesLimit'>;
|
|
1314
1352
|
};
|
|
1315
1353
|
export type IFetchContactSupportPageQueryVariables = Exact<{
|
|
1316
1354
|
filter: IContactSupportFilterInput;
|
|
@@ -1432,7 +1470,7 @@ export type IFetchAdminInvitesPageQuery = {
|
|
|
1432
1470
|
fetchAdminInvitesPage: {
|
|
1433
1471
|
invites: Array<(Pick<IAdminInvite, 'userId' | 'username' | 'referredUsers' | 'userXpLevel'> & {
|
|
1434
1472
|
wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>;
|
|
1435
|
-
activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt'>>>;
|
|
1473
|
+
activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt' | 'usedTimes' | 'maxUsagesLimit'>>>;
|
|
1436
1474
|
})>;
|
|
1437
1475
|
nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>>;
|
|
1438
1476
|
};
|
|
@@ -1492,6 +1530,33 @@ export type IFetchBlockchainsQueryVariables = Exact<{
|
|
|
1492
1530
|
[key: string]: never;
|
|
1493
1531
|
}>;
|
|
1494
1532
|
export type IFetchBlockchainsQuery = Pick<IQuery, 'fetchBlockchains'>;
|
|
1533
|
+
export declare const UpdateInviteCodeUsagesLimitDocument: Apollo.DocumentNode;
|
|
1534
|
+
export type IUpdateInviteCodeUsagesLimitMutationFn = Apollo.MutationFunction<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>;
|
|
1535
|
+
/**
|
|
1536
|
+
* __useUpdateInviteCodeUsagesLimitMutation__
|
|
1537
|
+
*
|
|
1538
|
+
* To run a mutation, you first call `useUpdateInviteCodeUsagesLimitMutation` within a React component and pass it any options that fit your needs.
|
|
1539
|
+
* When your component renders, `useUpdateInviteCodeUsagesLimitMutation` returns a tuple that includes:
|
|
1540
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1541
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1542
|
+
*
|
|
1543
|
+
* @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;
|
|
1544
|
+
*
|
|
1545
|
+
* @example
|
|
1546
|
+
* const [updateInviteCodeUsagesLimitMutation, { data, loading, error }] = useUpdateInviteCodeUsagesLimitMutation({
|
|
1547
|
+
* variables: {
|
|
1548
|
+
* code: // value for 'code'
|
|
1549
|
+
* usagesLimit: // value for 'usagesLimit'
|
|
1550
|
+
* },
|
|
1551
|
+
* });
|
|
1552
|
+
*/
|
|
1553
|
+
export declare function useUpdateInviteCodeUsagesLimitMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>): Apollo.MutationTuple<IUpdateInviteCodeUsagesLimitMutation, Exact<{
|
|
1554
|
+
code: string;
|
|
1555
|
+
usagesLimit: number;
|
|
1556
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1557
|
+
export type UpdateInviteCodeUsagesLimitMutationHookResult = ReturnType<typeof useUpdateInviteCodeUsagesLimitMutation>;
|
|
1558
|
+
export type UpdateInviteCodeUsagesLimitMutationResult = Apollo.MutationResult<IUpdateInviteCodeUsagesLimitMutation>;
|
|
1559
|
+
export type UpdateInviteCodeUsagesLimitMutationOptions = Apollo.BaseMutationOptions<IUpdateInviteCodeUsagesLimitMutation, IUpdateInviteCodeUsagesLimitMutationVariables>;
|
|
1495
1560
|
export declare const ChangeXpPointsDocument: Apollo.DocumentNode;
|
|
1496
1561
|
export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
1497
1562
|
/**
|
|
@@ -1652,6 +1717,35 @@ export declare function useRemoveInviteCodeMutation(baseOptions?: Apollo.Mutatio
|
|
|
1652
1717
|
export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
|
|
1653
1718
|
export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
|
|
1654
1719
|
export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
|
|
1720
|
+
export declare const UpdateBrandDocument: Apollo.DocumentNode;
|
|
1721
|
+
export type IUpdateBrandMutationFn = Apollo.MutationFunction<IUpdateBrandMutation, IUpdateBrandMutationVariables>;
|
|
1722
|
+
/**
|
|
1723
|
+
* __useUpdateBrandMutation__
|
|
1724
|
+
*
|
|
1725
|
+
* To run a mutation, you first call `useUpdateBrandMutation` within a React component and pass it any options that fit your needs.
|
|
1726
|
+
* When your component renders, `useUpdateBrandMutation` returns a tuple that includes:
|
|
1727
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1728
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1729
|
+
*
|
|
1730
|
+
* @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;
|
|
1731
|
+
*
|
|
1732
|
+
* @example
|
|
1733
|
+
* const [updateBrandMutation, { data, loading, error }] = useUpdateBrandMutation({
|
|
1734
|
+
* variables: {
|
|
1735
|
+
* id: // value for 'id'
|
|
1736
|
+
* input: // value for 'input'
|
|
1737
|
+
* file: // value for 'file'
|
|
1738
|
+
* },
|
|
1739
|
+
* });
|
|
1740
|
+
*/
|
|
1741
|
+
export declare function useUpdateBrandMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateBrandMutation, IUpdateBrandMutationVariables>): Apollo.MutationTuple<IUpdateBrandMutation, Exact<{
|
|
1742
|
+
id: string;
|
|
1743
|
+
input: IBrandInput;
|
|
1744
|
+
file?: any;
|
|
1745
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1746
|
+
export type UpdateBrandMutationHookResult = ReturnType<typeof useUpdateBrandMutation>;
|
|
1747
|
+
export type UpdateBrandMutationResult = Apollo.MutationResult<IUpdateBrandMutation>;
|
|
1748
|
+
export type UpdateBrandMutationOptions = Apollo.BaseMutationOptions<IUpdateBrandMutation, IUpdateBrandMutationVariables>;
|
|
1655
1749
|
export declare const UpdateBrandArchivedStatusDocument: Apollo.DocumentNode;
|
|
1656
1750
|
export type IUpdateBrandArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>;
|
|
1657
1751
|
/**
|
|
@@ -1679,6 +1773,33 @@ export declare function useUpdateBrandArchivedStatusMutation(baseOptions?: Apoll
|
|
|
1679
1773
|
export type UpdateBrandArchivedStatusMutationHookResult = ReturnType<typeof useUpdateBrandArchivedStatusMutation>;
|
|
1680
1774
|
export type UpdateBrandArchivedStatusMutationResult = Apollo.MutationResult<IUpdateBrandArchivedStatusMutation>;
|
|
1681
1775
|
export type UpdateBrandArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>;
|
|
1776
|
+
export declare const UpdateCategoryDocument: Apollo.DocumentNode;
|
|
1777
|
+
export type IUpdateCategoryMutationFn = Apollo.MutationFunction<IUpdateCategoryMutation, IUpdateCategoryMutationVariables>;
|
|
1778
|
+
/**
|
|
1779
|
+
* __useUpdateCategoryMutation__
|
|
1780
|
+
*
|
|
1781
|
+
* To run a mutation, you first call `useUpdateCategoryMutation` within a React component and pass it any options that fit your needs.
|
|
1782
|
+
* When your component renders, `useUpdateCategoryMutation` returns a tuple that includes:
|
|
1783
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1784
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1785
|
+
*
|
|
1786
|
+
* @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;
|
|
1787
|
+
*
|
|
1788
|
+
* @example
|
|
1789
|
+
* const [updateCategoryMutation, { data, loading, error }] = useUpdateCategoryMutation({
|
|
1790
|
+
* variables: {
|
|
1791
|
+
* id: // value for 'id'
|
|
1792
|
+
* input: // value for 'input'
|
|
1793
|
+
* },
|
|
1794
|
+
* });
|
|
1795
|
+
*/
|
|
1796
|
+
export declare function useUpdateCategoryMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateCategoryMutation, IUpdateCategoryMutationVariables>): Apollo.MutationTuple<IUpdateCategoryMutation, Exact<{
|
|
1797
|
+
id: string;
|
|
1798
|
+
input: ICategoryInput;
|
|
1799
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1800
|
+
export type UpdateCategoryMutationHookResult = ReturnType<typeof useUpdateCategoryMutation>;
|
|
1801
|
+
export type UpdateCategoryMutationResult = Apollo.MutationResult<IUpdateCategoryMutation>;
|
|
1802
|
+
export type UpdateCategoryMutationOptions = Apollo.BaseMutationOptions<IUpdateCategoryMutation, IUpdateCategoryMutationVariables>;
|
|
1682
1803
|
export declare const UpdateCategoryArchivedStatusDocument: Apollo.DocumentNode;
|
|
1683
1804
|
export type IUpdateCategoryArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateCategoryArchivedStatusMutation, IUpdateCategoryArchivedStatusMutationVariables>;
|
|
1684
1805
|
/**
|
|
@@ -1706,6 +1827,35 @@ export declare function useUpdateCategoryArchivedStatusMutation(baseOptions?: Ap
|
|
|
1706
1827
|
export type UpdateCategoryArchivedStatusMutationHookResult = ReturnType<typeof useUpdateCategoryArchivedStatusMutation>;
|
|
1707
1828
|
export type UpdateCategoryArchivedStatusMutationResult = Apollo.MutationResult<IUpdateCategoryArchivedStatusMutation>;
|
|
1708
1829
|
export type UpdateCategoryArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateCategoryArchivedStatusMutation, IUpdateCategoryArchivedStatusMutationVariables>;
|
|
1830
|
+
export declare const UpdateOpportunityDocument: Apollo.DocumentNode;
|
|
1831
|
+
export type IUpdateOpportunityMutationFn = Apollo.MutationFunction<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>;
|
|
1832
|
+
/**
|
|
1833
|
+
* __useUpdateOpportunityMutation__
|
|
1834
|
+
*
|
|
1835
|
+
* To run a mutation, you first call `useUpdateOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
1836
|
+
* When your component renders, `useUpdateOpportunityMutation` returns a tuple that includes:
|
|
1837
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1838
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1839
|
+
*
|
|
1840
|
+
* @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;
|
|
1841
|
+
*
|
|
1842
|
+
* @example
|
|
1843
|
+
* const [updateOpportunityMutation, { data, loading, error }] = useUpdateOpportunityMutation({
|
|
1844
|
+
* variables: {
|
|
1845
|
+
* id: // value for 'id'
|
|
1846
|
+
* input: // value for 'input'
|
|
1847
|
+
* file: // value for 'file'
|
|
1848
|
+
* },
|
|
1849
|
+
* });
|
|
1850
|
+
*/
|
|
1851
|
+
export declare function useUpdateOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>): Apollo.MutationTuple<IUpdateOpportunityMutation, Exact<{
|
|
1852
|
+
id: string;
|
|
1853
|
+
input: IAdminOpportunityInput;
|
|
1854
|
+
file?: any;
|
|
1855
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1856
|
+
export type UpdateOpportunityMutationHookResult = ReturnType<typeof useUpdateOpportunityMutation>;
|
|
1857
|
+
export type UpdateOpportunityMutationResult = Apollo.MutationResult<IUpdateOpportunityMutation>;
|
|
1858
|
+
export type UpdateOpportunityMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>;
|
|
1709
1859
|
export declare const UpdateProfileStatusDocument: Apollo.DocumentNode;
|
|
1710
1860
|
export type IUpdateProfileStatusMutationFn = Apollo.MutationFunction<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
|
|
1711
1861
|
/**
|
|
@@ -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.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.useUpdateOpportunityMutation = exports.UpdateOpportunityDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateCategoryMutation = exports.UpdateCategoryDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = exports.useUpdateBrandMutation = exports.UpdateBrandDocument = 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 = exports.useFetchAdminBrandsPageQuery = exports.FetchAdminBrandsPageDocument = exports.useFetchAdminBrandsLazyQuery = exports.useFetchAdminBrandsQuery = exports.FetchAdminBrandsDocument = exports.useFetchUserFeedbackPageLazyQuery = 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)
|
|
@@ -194,6 +221,34 @@ function useRemoveInviteCodeMutation(baseOptions) {
|
|
|
194
221
|
return Apollo.useMutation(exports.RemoveInviteCodeDocument, baseOptions);
|
|
195
222
|
}
|
|
196
223
|
exports.useRemoveInviteCodeMutation = useRemoveInviteCodeMutation;
|
|
224
|
+
exports.UpdateBrandDocument = (0, client_1.gql) `
|
|
225
|
+
mutation updateBrand($id: ID!, $input: BrandInput!, $file: Upload) {
|
|
226
|
+
updateBrand(id: $id, file: $file, input: $input)
|
|
227
|
+
}
|
|
228
|
+
`;
|
|
229
|
+
/**
|
|
230
|
+
* __useUpdateBrandMutation__
|
|
231
|
+
*
|
|
232
|
+
* To run a mutation, you first call `useUpdateBrandMutation` within a React component and pass it any options that fit your needs.
|
|
233
|
+
* When your component renders, `useUpdateBrandMutation` returns a tuple that includes:
|
|
234
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
235
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
236
|
+
*
|
|
237
|
+
* @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;
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* const [updateBrandMutation, { data, loading, error }] = useUpdateBrandMutation({
|
|
241
|
+
* variables: {
|
|
242
|
+
* id: // value for 'id'
|
|
243
|
+
* input: // value for 'input'
|
|
244
|
+
* file: // value for 'file'
|
|
245
|
+
* },
|
|
246
|
+
* });
|
|
247
|
+
*/
|
|
248
|
+
function useUpdateBrandMutation(baseOptions) {
|
|
249
|
+
return Apollo.useMutation(exports.UpdateBrandDocument, baseOptions);
|
|
250
|
+
}
|
|
251
|
+
exports.useUpdateBrandMutation = useUpdateBrandMutation;
|
|
197
252
|
exports.UpdateBrandArchivedStatusDocument = (0, client_1.gql) `
|
|
198
253
|
mutation UpdateBrandArchivedStatus($id: ID!, $isArchived: Boolean!) {
|
|
199
254
|
updateBrandArchivedStatus(id: $id, isArchived: $isArchived)
|
|
@@ -221,6 +276,33 @@ function useUpdateBrandArchivedStatusMutation(baseOptions) {
|
|
|
221
276
|
return Apollo.useMutation(exports.UpdateBrandArchivedStatusDocument, baseOptions);
|
|
222
277
|
}
|
|
223
278
|
exports.useUpdateBrandArchivedStatusMutation = useUpdateBrandArchivedStatusMutation;
|
|
279
|
+
exports.UpdateCategoryDocument = (0, client_1.gql) `
|
|
280
|
+
mutation updateCategory($id: ID!, $input: CategoryInput!) {
|
|
281
|
+
updateCategory(id: $id, input: $input)
|
|
282
|
+
}
|
|
283
|
+
`;
|
|
284
|
+
/**
|
|
285
|
+
* __useUpdateCategoryMutation__
|
|
286
|
+
*
|
|
287
|
+
* To run a mutation, you first call `useUpdateCategoryMutation` within a React component and pass it any options that fit your needs.
|
|
288
|
+
* When your component renders, `useUpdateCategoryMutation` returns a tuple that includes:
|
|
289
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
290
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
291
|
+
*
|
|
292
|
+
* @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;
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* const [updateCategoryMutation, { data, loading, error }] = useUpdateCategoryMutation({
|
|
296
|
+
* variables: {
|
|
297
|
+
* id: // value for 'id'
|
|
298
|
+
* input: // value for 'input'
|
|
299
|
+
* },
|
|
300
|
+
* });
|
|
301
|
+
*/
|
|
302
|
+
function useUpdateCategoryMutation(baseOptions) {
|
|
303
|
+
return Apollo.useMutation(exports.UpdateCategoryDocument, baseOptions);
|
|
304
|
+
}
|
|
305
|
+
exports.useUpdateCategoryMutation = useUpdateCategoryMutation;
|
|
224
306
|
exports.UpdateCategoryArchivedStatusDocument = (0, client_1.gql) `
|
|
225
307
|
mutation UpdateCategoryArchivedStatus($id: ID!, $isArchived: Boolean!) {
|
|
226
308
|
updateCategoryArchivedStatus(id: $id, isArchived: $isArchived)
|
|
@@ -248,6 +330,34 @@ function useUpdateCategoryArchivedStatusMutation(baseOptions) {
|
|
|
248
330
|
return Apollo.useMutation(exports.UpdateCategoryArchivedStatusDocument, baseOptions);
|
|
249
331
|
}
|
|
250
332
|
exports.useUpdateCategoryArchivedStatusMutation = useUpdateCategoryArchivedStatusMutation;
|
|
333
|
+
exports.UpdateOpportunityDocument = (0, client_1.gql) `
|
|
334
|
+
mutation updateOpportunity($id: ID!, $input: AdminOpportunityInput!, $file: Upload) {
|
|
335
|
+
updateOpportunity(id: $id, file: $file, input: $input)
|
|
336
|
+
}
|
|
337
|
+
`;
|
|
338
|
+
/**
|
|
339
|
+
* __useUpdateOpportunityMutation__
|
|
340
|
+
*
|
|
341
|
+
* To run a mutation, you first call `useUpdateOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
342
|
+
* When your component renders, `useUpdateOpportunityMutation` returns a tuple that includes:
|
|
343
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
344
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
345
|
+
*
|
|
346
|
+
* @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;
|
|
347
|
+
*
|
|
348
|
+
* @example
|
|
349
|
+
* const [updateOpportunityMutation, { data, loading, error }] = useUpdateOpportunityMutation({
|
|
350
|
+
* variables: {
|
|
351
|
+
* id: // value for 'id'
|
|
352
|
+
* input: // value for 'input'
|
|
353
|
+
* file: // value for 'file'
|
|
354
|
+
* },
|
|
355
|
+
* });
|
|
356
|
+
*/
|
|
357
|
+
function useUpdateOpportunityMutation(baseOptions) {
|
|
358
|
+
return Apollo.useMutation(exports.UpdateOpportunityDocument, baseOptions);
|
|
359
|
+
}
|
|
360
|
+
exports.useUpdateOpportunityMutation = useUpdateOpportunityMutation;
|
|
251
361
|
exports.UpdateProfileStatusDocument = (0, client_1.gql) `
|
|
252
362
|
mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
|
|
253
363
|
updateProfileStatus(userId: $userId, isActive: $isActive)
|
|
@@ -279,7 +389,7 @@ exports.CheckInviteCodeDocument = (0, client_1.gql) `
|
|
|
279
389
|
query CheckInviteCode($code: String!) {
|
|
280
390
|
checkInviteCode(code: $code) {
|
|
281
391
|
code
|
|
282
|
-
|
|
392
|
+
isAvailable
|
|
283
393
|
usedTimes
|
|
284
394
|
maxUsagesLimit
|
|
285
395
|
}
|
|
@@ -823,6 +933,8 @@ exports.FetchAdminInvitesPageDocument = (0, client_1.gql) `
|
|
|
823
933
|
activeInvites {
|
|
824
934
|
inviteCode
|
|
825
935
|
createdAt
|
|
936
|
+
usedTimes
|
|
937
|
+
maxUsagesLimit
|
|
826
938
|
}
|
|
827
939
|
referredUsers
|
|
828
940
|
userXpLevel
|
|
@@ -273,6 +273,7 @@ export type IQuery = {
|
|
|
273
273
|
fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
|
|
274
274
|
isInviteCodeAvailable: Scalars['Boolean'];
|
|
275
275
|
getMyInviteCodes: Array<IUserInviteCode>;
|
|
276
|
+
fetchInviteCode: IInviteCode;
|
|
276
277
|
fetchMyProfile: IMyProfile;
|
|
277
278
|
fetchMyProfileV2: IMyProfileV2;
|
|
278
279
|
fetchProfile: IProfile;
|
|
@@ -288,6 +289,9 @@ export type IQueryFetchMultiversxAuditArgs = {
|
|
|
288
289
|
export type IQueryIsInviteCodeAvailableArgs = {
|
|
289
290
|
inviteCode: Scalars['String'];
|
|
290
291
|
};
|
|
292
|
+
export type IQueryFetchInviteCodeArgs = {
|
|
293
|
+
inviteCode: Scalars['String'];
|
|
294
|
+
};
|
|
291
295
|
export type IQueryFetchProfileArgs = {
|
|
292
296
|
userId: Scalars['ID'];
|
|
293
297
|
};
|
|
@@ -594,6 +598,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
594
598
|
fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
|
|
595
599
|
isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
|
|
596
600
|
getMyInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType>;
|
|
601
|
+
fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
|
|
597
602
|
fetchMyProfile?: Resolver<IResolversTypes['MyProfile'], ParentType, ContextType>;
|
|
598
603
|
fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
|
|
599
604
|
fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
|
|
@@ -62,6 +62,7 @@ export type IMutation = {
|
|
|
62
62
|
updateOpportunity: Scalars['Boolean'];
|
|
63
63
|
likeOpportunity: Scalars['Boolean'];
|
|
64
64
|
dislikeOpportunity: Scalars['Boolean'];
|
|
65
|
+
testNotifyUser: Scalars['Boolean'];
|
|
65
66
|
};
|
|
66
67
|
export type IMutationCreateBrandArgs = {
|
|
67
68
|
input: IBrandInput;
|
|
@@ -96,6 +97,11 @@ export type IMutationLikeOpportunityArgs = {
|
|
|
96
97
|
export type IMutationDislikeOpportunityArgs = {
|
|
97
98
|
opportunityId: Scalars['String'];
|
|
98
99
|
};
|
|
100
|
+
export type IMutationTestNotifyUserArgs = {
|
|
101
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
102
|
+
address?: Maybe<Scalars['String']>;
|
|
103
|
+
opportunityId?: Maybe<Scalars['ID']>;
|
|
104
|
+
};
|
|
99
105
|
export type IOpportunitiesPage = {
|
|
100
106
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
101
107
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -198,6 +204,7 @@ export type IQuery = {
|
|
|
198
204
|
fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
|
|
199
205
|
fetchOpportunity: IOpportunityV2;
|
|
200
206
|
fetchOpportunitiesByIds: Array<IOpportunityV2>;
|
|
207
|
+
fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
201
208
|
};
|
|
202
209
|
/** scalar Upload */
|
|
203
210
|
export type IQueryFetchBrandArgs = {
|
|
@@ -219,6 +226,11 @@ export type IQueryFetchOpportunityArgs = {
|
|
|
219
226
|
export type IQueryFetchOpportunitiesByIdsArgs = {
|
|
220
227
|
opportunityIds: Array<Scalars['ID']>;
|
|
221
228
|
};
|
|
229
|
+
/** scalar Upload */
|
|
230
|
+
export type IQueryFetchOpportunitiesForWalletArgs = {
|
|
231
|
+
blockchain: Scalars['String'];
|
|
232
|
+
wallet: Scalars['String'];
|
|
233
|
+
};
|
|
222
234
|
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
223
235
|
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
224
236
|
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
@@ -316,6 +328,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
316
328
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'opportunityId' | 'input'>>;
|
|
317
329
|
likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
|
|
318
330
|
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
331
|
+
testNotifyUser?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, Partial<IMutationTestNotifyUserArgs>>;
|
|
319
332
|
};
|
|
320
333
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
321
334
|
currentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['Opportunity']>>>, ParentType, ContextType>;
|
|
@@ -399,6 +412,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
399
412
|
fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
|
|
400
413
|
fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
|
|
401
414
|
fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
|
|
415
|
+
fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
|
|
402
416
|
};
|
|
403
417
|
export type IResolvers<ContextType = any> = {
|
|
404
418
|
Brand?: IBrandResolvers<ContextType>;
|
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";
|