@ludo.ninja/api 2.4.3 → 2.4.5
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.
|
@@ -1512,6 +1512,11 @@ export type IOffer = {
|
|
|
1512
1512
|
status?: Maybe<Scalars['String']>;
|
|
1513
1513
|
};
|
|
1514
1514
|
|
|
1515
|
+
export type IOpportunitiesPageV2 = {
|
|
1516
|
+
currentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
1517
|
+
similarOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1515
1520
|
export type IOpportunity = {
|
|
1516
1521
|
opportunityId?: Maybe<Scalars['ID']>;
|
|
1517
1522
|
name?: Maybe<Scalars['String']>;
|
|
@@ -1654,7 +1659,7 @@ export type IQuery = {
|
|
|
1654
1659
|
fetchExpectations: Array<Maybe<IExpectation>>;
|
|
1655
1660
|
fetchExtensionBrands: Array<Maybe<IBrand>>;
|
|
1656
1661
|
fetchExtensionCategories: Array<Maybe<ICategory>>;
|
|
1657
|
-
|
|
1662
|
+
fetchExtensionOpportunitiesV2: IOpportunitiesPageV2;
|
|
1658
1663
|
fetchFavorites: IGalleriesPage;
|
|
1659
1664
|
fetchFavoritesV2: IGalleriesPageV2;
|
|
1660
1665
|
fetchFollowers: Array<Maybe<IFollower>>;
|
|
@@ -1917,10 +1922,10 @@ export type IQueryFetchDynamicCollectionsDataArgs = {
|
|
|
1917
1922
|
};
|
|
1918
1923
|
|
|
1919
1924
|
|
|
1920
|
-
export type
|
|
1921
|
-
|
|
1925
|
+
export type IQueryFetchExtensionOpportunitiesV2Args = {
|
|
1926
|
+
domain: Scalars['String'];
|
|
1922
1927
|
brandId?: Maybe<Scalars['String']>;
|
|
1923
|
-
|
|
1928
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
1924
1929
|
};
|
|
1925
1930
|
|
|
1926
1931
|
|
|
@@ -2675,6 +2680,29 @@ export type IXpSortInput = {
|
|
|
2675
2680
|
sortBySuggestedOpportunities: ISort;
|
|
2676
2681
|
};
|
|
2677
2682
|
|
|
2683
|
+
export type IChangeXpPointsMutationVariables = Exact<{
|
|
2684
|
+
userId: Scalars['ID'];
|
|
2685
|
+
pointsDiff: Scalars['Int'];
|
|
2686
|
+
}>;
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
export type IChangeXpPointsMutation = Pick<IMutation, 'changeXpPoints'>;
|
|
2690
|
+
|
|
2691
|
+
export type IAddInviteCodesMutationVariables = Exact<{
|
|
2692
|
+
userId: Scalars['String'];
|
|
2693
|
+
codesNum: Scalars['Int'];
|
|
2694
|
+
}>;
|
|
2695
|
+
|
|
2696
|
+
|
|
2697
|
+
export type IAddInviteCodesMutation = Pick<IMutation, 'addInviteCodes'>;
|
|
2698
|
+
|
|
2699
|
+
export type IRemoveInviteCodeMutationVariables = Exact<{
|
|
2700
|
+
inviteCode: Scalars['String'];
|
|
2701
|
+
}>;
|
|
2702
|
+
|
|
2703
|
+
|
|
2704
|
+
export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
|
|
2705
|
+
|
|
2678
2706
|
export type IFetchAdminXpPageQueryVariables = Exact<{
|
|
2679
2707
|
filter: IXpFilterInput;
|
|
2680
2708
|
sort: IXpSortInput;
|
|
@@ -2910,14 +2938,14 @@ export type IFetchExtensionCategoriesQueryVariables = Exact<{ [key: string]: nev
|
|
|
2910
2938
|
|
|
2911
2939
|
export type IFetchExtensionCategoriesQuery = { fetchExtensionCategories: Array<Maybe<Pick<ICategory, 'categoryId' | 'name' | 'matchingWords'>>> };
|
|
2912
2940
|
|
|
2913
|
-
export type
|
|
2914
|
-
|
|
2941
|
+
export type IFetchExtensionOpportunitiesV2QueryVariables = Exact<{
|
|
2942
|
+
domain: Scalars['String'];
|
|
2915
2943
|
brandId?: Maybe<Scalars['String']>;
|
|
2916
|
-
|
|
2944
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
2917
2945
|
}>;
|
|
2918
2946
|
|
|
2919
2947
|
|
|
2920
|
-
export type
|
|
2948
|
+
export type IFetchExtensionOpportunitiesV2Query = { fetchExtensionOpportunitiesV2: { currentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>>>, similarOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>>> } };
|
|
2921
2949
|
|
|
2922
2950
|
export type IFetchNftDataQueryVariables = Exact<{
|
|
2923
2951
|
blockchain: Scalars['String'];
|
|
@@ -3652,6 +3680,98 @@ export type IFindUserShowcaseItemsQuery = { findUserShowcaseItems: (
|
|
|
3652
3680
|
) };
|
|
3653
3681
|
|
|
3654
3682
|
|
|
3683
|
+
export const ChangeXpPointsDocument = gql`
|
|
3684
|
+
mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
|
|
3685
|
+
changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)
|
|
3686
|
+
}
|
|
3687
|
+
`;
|
|
3688
|
+
export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
3689
|
+
|
|
3690
|
+
/**
|
|
3691
|
+
* __useChangeXpPointsMutation__
|
|
3692
|
+
*
|
|
3693
|
+
* To run a mutation, you first call `useChangeXpPointsMutation` within a React component and pass it any options that fit your needs.
|
|
3694
|
+
* When your component renders, `useChangeXpPointsMutation` returns a tuple that includes:
|
|
3695
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
3696
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
3697
|
+
*
|
|
3698
|
+
* @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;
|
|
3699
|
+
*
|
|
3700
|
+
* @example
|
|
3701
|
+
* const [changeXpPointsMutation, { data, loading, error }] = useChangeXpPointsMutation({
|
|
3702
|
+
* variables: {
|
|
3703
|
+
* userId: // value for 'userId'
|
|
3704
|
+
* pointsDiff: // value for 'pointsDiff'
|
|
3705
|
+
* },
|
|
3706
|
+
* });
|
|
3707
|
+
*/
|
|
3708
|
+
export function useChangeXpPointsMutation(baseOptions?: Apollo.MutationHookOptions<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>) {
|
|
3709
|
+
return Apollo.useMutation<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>(ChangeXpPointsDocument, baseOptions);
|
|
3710
|
+
}
|
|
3711
|
+
export type ChangeXpPointsMutationHookResult = ReturnType<typeof useChangeXpPointsMutation>;
|
|
3712
|
+
export type ChangeXpPointsMutationResult = Apollo.MutationResult<IChangeXpPointsMutation>;
|
|
3713
|
+
export type ChangeXpPointsMutationOptions = Apollo.BaseMutationOptions<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
3714
|
+
export const AddInviteCodesDocument = gql`
|
|
3715
|
+
mutation AddInviteCodes($userId: String!, $codesNum: Int!) {
|
|
3716
|
+
addInviteCodes(userId: $userId, codesNum: $codesNum)
|
|
3717
|
+
}
|
|
3718
|
+
`;
|
|
3719
|
+
export type IAddInviteCodesMutationFn = Apollo.MutationFunction<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>;
|
|
3720
|
+
|
|
3721
|
+
/**
|
|
3722
|
+
* __useAddInviteCodesMutation__
|
|
3723
|
+
*
|
|
3724
|
+
* To run a mutation, you first call `useAddInviteCodesMutation` within a React component and pass it any options that fit your needs.
|
|
3725
|
+
* When your component renders, `useAddInviteCodesMutation` returns a tuple that includes:
|
|
3726
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
3727
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
3728
|
+
*
|
|
3729
|
+
* @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;
|
|
3730
|
+
*
|
|
3731
|
+
* @example
|
|
3732
|
+
* const [addInviteCodesMutation, { data, loading, error }] = useAddInviteCodesMutation({
|
|
3733
|
+
* variables: {
|
|
3734
|
+
* userId: // value for 'userId'
|
|
3735
|
+
* codesNum: // value for 'codesNum'
|
|
3736
|
+
* },
|
|
3737
|
+
* });
|
|
3738
|
+
*/
|
|
3739
|
+
export function useAddInviteCodesMutation(baseOptions?: Apollo.MutationHookOptions<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>) {
|
|
3740
|
+
return Apollo.useMutation<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>(AddInviteCodesDocument, baseOptions);
|
|
3741
|
+
}
|
|
3742
|
+
export type AddInviteCodesMutationHookResult = ReturnType<typeof useAddInviteCodesMutation>;
|
|
3743
|
+
export type AddInviteCodesMutationResult = Apollo.MutationResult<IAddInviteCodesMutation>;
|
|
3744
|
+
export type AddInviteCodesMutationOptions = Apollo.BaseMutationOptions<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>;
|
|
3745
|
+
export const RemoveInviteCodeDocument = gql`
|
|
3746
|
+
mutation RemoveInviteCode($inviteCode: String!) {
|
|
3747
|
+
removeInviteCode(inviteCode: $inviteCode)
|
|
3748
|
+
}
|
|
3749
|
+
`;
|
|
3750
|
+
export type IRemoveInviteCodeMutationFn = Apollo.MutationFunction<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
|
|
3751
|
+
|
|
3752
|
+
/**
|
|
3753
|
+
* __useRemoveInviteCodeMutation__
|
|
3754
|
+
*
|
|
3755
|
+
* To run a mutation, you first call `useRemoveInviteCodeMutation` within a React component and pass it any options that fit your needs.
|
|
3756
|
+
* When your component renders, `useRemoveInviteCodeMutation` returns a tuple that includes:
|
|
3757
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
3758
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
3759
|
+
*
|
|
3760
|
+
* @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;
|
|
3761
|
+
*
|
|
3762
|
+
* @example
|
|
3763
|
+
* const [removeInviteCodeMutation, { data, loading, error }] = useRemoveInviteCodeMutation({
|
|
3764
|
+
* variables: {
|
|
3765
|
+
* inviteCode: // value for 'inviteCode'
|
|
3766
|
+
* },
|
|
3767
|
+
* });
|
|
3768
|
+
*/
|
|
3769
|
+
export function useRemoveInviteCodeMutation(baseOptions?: Apollo.MutationHookOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>) {
|
|
3770
|
+
return Apollo.useMutation<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>(RemoveInviteCodeDocument, baseOptions);
|
|
3771
|
+
}
|
|
3772
|
+
export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
|
|
3773
|
+
export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
|
|
3774
|
+
export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
|
|
3655
3775
|
export const FetchAdminXpPageDocument = gql`
|
|
3656
3776
|
query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page: AdminPageInput!) {
|
|
3657
3777
|
fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {
|
|
@@ -5001,64 +5121,88 @@ export function useFetchExtensionCategoriesLazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
5001
5121
|
export type FetchExtensionCategoriesQueryHookResult = ReturnType<typeof useFetchExtensionCategoriesQuery>;
|
|
5002
5122
|
export type FetchExtensionCategoriesLazyQueryHookResult = ReturnType<typeof useFetchExtensionCategoriesLazyQuery>;
|
|
5003
5123
|
export type FetchExtensionCategoriesQueryResult = Apollo.QueryResult<IFetchExtensionCategoriesQuery, IFetchExtensionCategoriesQueryVariables>;
|
|
5004
|
-
export const
|
|
5005
|
-
query
|
|
5006
|
-
|
|
5007
|
-
|
|
5124
|
+
export const FetchExtensionOpportunitiesV2Document = gql`
|
|
5125
|
+
query FetchExtensionOpportunitiesV2($domain: String!, $brandId: String, $categoryId: String) {
|
|
5126
|
+
fetchExtensionOpportunitiesV2(
|
|
5127
|
+
domain: $domain
|
|
5008
5128
|
brandId: $brandId
|
|
5009
|
-
|
|
5129
|
+
categoryId: $categoryId
|
|
5010
5130
|
) {
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5131
|
+
currentOpportunities {
|
|
5132
|
+
opportunityId
|
|
5133
|
+
brandId
|
|
5134
|
+
categoryId
|
|
5135
|
+
opportunityStatus
|
|
5136
|
+
opportunityType
|
|
5137
|
+
notificationType
|
|
5138
|
+
name
|
|
5139
|
+
brandName
|
|
5140
|
+
brandDescription
|
|
5141
|
+
brandMedia
|
|
5142
|
+
brandUrl
|
|
5143
|
+
brandIndustry
|
|
5144
|
+
categoryName
|
|
5145
|
+
ludoUrl
|
|
5146
|
+
projectUrl
|
|
5147
|
+
activeFrom
|
|
5148
|
+
activeUntil
|
|
5149
|
+
media
|
|
5150
|
+
reportLink
|
|
5151
|
+
shareLink
|
|
5152
|
+
}
|
|
5153
|
+
similarOpportunities {
|
|
5154
|
+
opportunityId
|
|
5155
|
+
brandId
|
|
5156
|
+
categoryId
|
|
5157
|
+
opportunityStatus
|
|
5158
|
+
opportunityType
|
|
5159
|
+
notificationType
|
|
5160
|
+
name
|
|
5161
|
+
brandName
|
|
5162
|
+
brandDescription
|
|
5163
|
+
brandMedia
|
|
5164
|
+
brandUrl
|
|
5165
|
+
brandIndustry
|
|
5166
|
+
categoryName
|
|
5167
|
+
ludoUrl
|
|
5168
|
+
projectUrl
|
|
5169
|
+
activeFrom
|
|
5170
|
+
activeUntil
|
|
5171
|
+
media
|
|
5172
|
+
reportLink
|
|
5173
|
+
shareLink
|
|
5174
|
+
}
|
|
5031
5175
|
}
|
|
5032
5176
|
}
|
|
5033
5177
|
`;
|
|
5034
5178
|
|
|
5035
5179
|
/**
|
|
5036
|
-
*
|
|
5180
|
+
* __useFetchExtensionOpportunitiesV2Query__
|
|
5037
5181
|
*
|
|
5038
|
-
* To run a query within a React component, call `
|
|
5039
|
-
* When your component renders, `
|
|
5182
|
+
* To run a query within a React component, call `useFetchExtensionOpportunitiesV2Query` and pass it any options that fit your needs.
|
|
5183
|
+
* When your component renders, `useFetchExtensionOpportunitiesV2Query` returns an object from Apollo Client that contains loading, error, and data properties
|
|
5040
5184
|
* you can use to render your UI.
|
|
5041
5185
|
*
|
|
5042
5186
|
* @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;
|
|
5043
5187
|
*
|
|
5044
5188
|
* @example
|
|
5045
|
-
* const { data, loading, error } =
|
|
5189
|
+
* const { data, loading, error } = useFetchExtensionOpportunitiesV2Query({
|
|
5046
5190
|
* variables: {
|
|
5047
|
-
*
|
|
5191
|
+
* domain: // value for 'domain'
|
|
5048
5192
|
* brandId: // value for 'brandId'
|
|
5049
|
-
*
|
|
5193
|
+
* categoryId: // value for 'categoryId'
|
|
5050
5194
|
* },
|
|
5051
5195
|
* });
|
|
5052
5196
|
*/
|
|
5053
|
-
export function
|
|
5054
|
-
return Apollo.useQuery<
|
|
5197
|
+
export function useFetchExtensionOpportunitiesV2Query(baseOptions: Apollo.QueryHookOptions<IFetchExtensionOpportunitiesV2Query, IFetchExtensionOpportunitiesV2QueryVariables>) {
|
|
5198
|
+
return Apollo.useQuery<IFetchExtensionOpportunitiesV2Query, IFetchExtensionOpportunitiesV2QueryVariables>(FetchExtensionOpportunitiesV2Document, baseOptions);
|
|
5055
5199
|
}
|
|
5056
|
-
export function
|
|
5057
|
-
return Apollo.useLazyQuery<
|
|
5200
|
+
export function useFetchExtensionOpportunitiesV2LazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchExtensionOpportunitiesV2Query, IFetchExtensionOpportunitiesV2QueryVariables>) {
|
|
5201
|
+
return Apollo.useLazyQuery<IFetchExtensionOpportunitiesV2Query, IFetchExtensionOpportunitiesV2QueryVariables>(FetchExtensionOpportunitiesV2Document, baseOptions);
|
|
5058
5202
|
}
|
|
5059
|
-
export type
|
|
5060
|
-
export type
|
|
5061
|
-
export type
|
|
5203
|
+
export type FetchExtensionOpportunitiesV2QueryHookResult = ReturnType<typeof useFetchExtensionOpportunitiesV2Query>;
|
|
5204
|
+
export type FetchExtensionOpportunitiesV2LazyQueryHookResult = ReturnType<typeof useFetchExtensionOpportunitiesV2LazyQuery>;
|
|
5205
|
+
export type FetchExtensionOpportunitiesV2QueryResult = Apollo.QueryResult<IFetchExtensionOpportunitiesV2Query, IFetchExtensionOpportunitiesV2QueryVariables>;
|
|
5062
5206
|
export const FetchNftDataDocument = gql`
|
|
5063
5207
|
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
5064
5208
|
fetchNFTData(
|