@ludo.ninja/api 2.8.7 → 2.8.9
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.
|
@@ -43,13 +43,12 @@ export type IAdminInvite = {
|
|
|
43
43
|
export type IAdminOpportunity = {
|
|
44
44
|
opportunityId: Scalars['ID'];
|
|
45
45
|
name?: Maybe<Scalars['String']>;
|
|
46
|
+
description?: Maybe<Scalars['String']>;
|
|
46
47
|
brandName?: Maybe<Scalars['String']>;
|
|
47
48
|
industry?: Maybe<Scalars['String']>;
|
|
48
49
|
category?: Maybe<Scalars['String']>;
|
|
49
50
|
ludoUrl?: Maybe<Scalars['String']>;
|
|
50
51
|
projectUrl?: Maybe<Scalars['String']>;
|
|
51
|
-
media?: Maybe<Scalars['String']>;
|
|
52
|
-
description?: Maybe<Scalars['String']>;
|
|
53
52
|
pushNotificationsEnabled?: Maybe<Scalars['Boolean']>;
|
|
54
53
|
status?: Maybe<Scalars['String']>;
|
|
55
54
|
activeFrom?: Maybe<Scalars['Long']>;
|
|
@@ -58,6 +57,7 @@ export type IAdminOpportunity = {
|
|
|
58
57
|
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
59
58
|
minLudoRank?: Maybe<Scalars['Float']>;
|
|
60
59
|
maxLudoRank?: Maybe<Scalars['Float']>;
|
|
60
|
+
media?: Maybe<Scalars['String']>;
|
|
61
61
|
minWalletValue?: Maybe<Scalars['Float']>;
|
|
62
62
|
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
63
63
|
clicks?: Maybe<Scalars['Int']>;
|
|
@@ -335,18 +335,28 @@ export type IBannerAssetsPage = {
|
|
|
335
335
|
|
|
336
336
|
export type IBrand = {
|
|
337
337
|
brandId: Scalars['ID'];
|
|
338
|
-
name: Scalars['String'];
|
|
339
|
-
matchingWords: Array<Maybe<Scalars['String']>>;
|
|
340
338
|
description?: Maybe<Scalars['String']>;
|
|
339
|
+
id: Scalars['String'];
|
|
341
340
|
industry?: Maybe<Scalars['String']>;
|
|
342
341
|
link?: Maybe<Scalars['String']>;
|
|
342
|
+
matchingWords: Array<Scalars['String']>;
|
|
343
343
|
media?: Maybe<Scalars['String']>;
|
|
344
|
+
name: Scalars['String'];
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
export type IBrandInput = {
|
|
348
|
+
name: Scalars['String'];
|
|
349
|
+
matchingWords: Array<Scalars['String']>;
|
|
350
|
+
description: Scalars['String'];
|
|
351
|
+
industry?: Maybe<Scalars['String']>;
|
|
352
|
+
link?: Maybe<Scalars['String']>;
|
|
344
353
|
};
|
|
345
354
|
|
|
346
355
|
export type ICategory = {
|
|
347
356
|
categoryId: Scalars['ID'];
|
|
357
|
+
id: Scalars['String'];
|
|
358
|
+
matchingWords: Array<Scalars['String']>;
|
|
348
359
|
name: Scalars['String'];
|
|
349
|
-
matchingWords: Array<Maybe<Scalars['String']>>;
|
|
350
360
|
};
|
|
351
361
|
|
|
352
362
|
export type ICollection = {
|
|
@@ -883,6 +893,9 @@ export type IMutation = {
|
|
|
883
893
|
blockUser: Scalars['Boolean'];
|
|
884
894
|
blockUsers: Scalars['Boolean'];
|
|
885
895
|
changeXpPoints: Scalars['Boolean'];
|
|
896
|
+
createAdminOpportunity: Scalars['Boolean'];
|
|
897
|
+
createBrand: Scalars['Boolean'];
|
|
898
|
+
createCategory: Scalars['Boolean'];
|
|
886
899
|
createFavoriteListV2: Scalars['ID'];
|
|
887
900
|
createFavorites: Scalars['ID'];
|
|
888
901
|
createGallery: Scalars['ID'];
|
|
@@ -956,6 +969,7 @@ export type IMutation = {
|
|
|
956
969
|
subscribeGallery: Scalars['Int'];
|
|
957
970
|
unfollowProfile: Scalars['Boolean'];
|
|
958
971
|
unsubscribeGallery: Scalars['Int'];
|
|
972
|
+
updateOpportunityPushStatus: Scalars['Boolean'];
|
|
959
973
|
updateProfile: Scalars['Boolean'];
|
|
960
974
|
updateProfileStatus: Scalars['Boolean'];
|
|
961
975
|
uploadGalleryBanner: Scalars['String'];
|
|
@@ -1107,6 +1121,24 @@ export type IMutationChangeXpPointsArgs = {
|
|
|
1107
1121
|
};
|
|
1108
1122
|
|
|
1109
1123
|
|
|
1124
|
+
export type IMutationCreateAdminOpportunityArgs = {
|
|
1125
|
+
input: IOpportunityInput;
|
|
1126
|
+
file?: Maybe<Scalars['Upload']>;
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
export type IMutationCreateBrandArgs = {
|
|
1131
|
+
brand: IBrandInput;
|
|
1132
|
+
file?: Maybe<Scalars['Upload']>;
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
export type IMutationCreateCategoryArgs = {
|
|
1137
|
+
name: Scalars['String'];
|
|
1138
|
+
matchingWords: Array<Scalars['String']>;
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
|
|
1110
1142
|
export type IMutationCreateFavoriteListV2Args = {
|
|
1111
1143
|
name: Scalars['String'];
|
|
1112
1144
|
description?: Maybe<Scalars['String']>;
|
|
@@ -1521,6 +1553,12 @@ export type IMutationUnsubscribeGalleryArgs = {
|
|
|
1521
1553
|
};
|
|
1522
1554
|
|
|
1523
1555
|
|
|
1556
|
+
export type IMutationUpdateOpportunityPushStatusArgs = {
|
|
1557
|
+
opportunityId: Scalars['ID'];
|
|
1558
|
+
isActive: Scalars['Boolean'];
|
|
1559
|
+
};
|
|
1560
|
+
|
|
1561
|
+
|
|
1524
1562
|
export type IMutationUpdateProfileArgs = {
|
|
1525
1563
|
profile?: Maybe<IInputProfile>;
|
|
1526
1564
|
};
|
|
@@ -1653,19 +1691,35 @@ export type IOpportunity = {
|
|
|
1653
1691
|
};
|
|
1654
1692
|
|
|
1655
1693
|
export type IOpportunityInput = {
|
|
1656
|
-
|
|
1694
|
+
activeFrom?: Maybe<Scalars['Long']>;
|
|
1695
|
+
activeUntil?: Maybe<Scalars['Long']>;
|
|
1696
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
1697
|
+
brandId: Scalars['String'];
|
|
1698
|
+
category?: Maybe<Scalars['String']>;
|
|
1699
|
+
categoryId: Scalars['String'];
|
|
1700
|
+
collection?: Maybe<Scalars['String']>;
|
|
1701
|
+
creatorWallet?: Maybe<Scalars['String']>;
|
|
1657
1702
|
description: Scalars['String'];
|
|
1658
|
-
startedAt: Scalars['Long'];
|
|
1659
1703
|
endedAt: Scalars['Long'];
|
|
1660
|
-
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
1661
|
-
category?: Maybe<Scalars['String']>;
|
|
1662
1704
|
links?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
1663
1705
|
ludoRankRequired?: Maybe<Scalars['Boolean']>;
|
|
1664
1706
|
ludoRankRequiredMax?: Maybe<Scalars['Int']>;
|
|
1665
1707
|
ludoRankRequiredMin?: Maybe<Scalars['Int']>;
|
|
1708
|
+
ludoUrl?: Maybe<Scalars['String']>;
|
|
1709
|
+
maxLudoRank?: Maybe<Scalars['Float']>;
|
|
1710
|
+
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
1711
|
+
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
1712
|
+
minLudoRank?: Maybe<Scalars['Float']>;
|
|
1713
|
+
minWalletValue?: Maybe<Scalars['Float']>;
|
|
1714
|
+
minXpLevel?: Maybe<Scalars['Int']>;
|
|
1715
|
+
name: Scalars['String'];
|
|
1716
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
1717
|
+
pushNotificationsEnabled?: Maybe<Scalars['Boolean']>;
|
|
1666
1718
|
rewardType?: Maybe<Scalars['String']>;
|
|
1667
|
-
|
|
1719
|
+
startedAt: Scalars['Long'];
|
|
1668
1720
|
status?: Maybe<Scalars['String']>;
|
|
1721
|
+
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
1722
|
+
type?: Maybe<Scalars['String']>;
|
|
1669
1723
|
};
|
|
1670
1724
|
|
|
1671
1725
|
export type IOpportunityPage = {
|
|
@@ -1765,6 +1819,9 @@ export type IQuery = {
|
|
|
1765
1819
|
fetchAssetsCount: Scalars['Long'];
|
|
1766
1820
|
fetchBannerAssets: Array<Maybe<IBannerAsset>>;
|
|
1767
1821
|
fetchBlockchainSelections: Array<Maybe<ISelection>>;
|
|
1822
|
+
fetchBlockchains: Array<Scalars['String']>;
|
|
1823
|
+
fetchBrands: Array<IBrand>;
|
|
1824
|
+
fetchCategories: Array<ICategory>;
|
|
1768
1825
|
fetchCategorySelections: Array<Maybe<ISelection>>;
|
|
1769
1826
|
fetchCollection: ICollection;
|
|
1770
1827
|
fetchCollectionAssets: ICollectionAssetsPage;
|
|
@@ -2912,6 +2969,30 @@ export type IChangeXpPointsMutationVariables = Exact<{
|
|
|
2912
2969
|
|
|
2913
2970
|
export type IChangeXpPointsMutation = Pick<IMutation, 'changeXpPoints'>;
|
|
2914
2971
|
|
|
2972
|
+
export type ICreateCategoryMutationVariables = Exact<{
|
|
2973
|
+
name: Scalars['String'];
|
|
2974
|
+
matchingWords: Array<Scalars['String']>;
|
|
2975
|
+
}>;
|
|
2976
|
+
|
|
2977
|
+
|
|
2978
|
+
export type ICreateCategoryMutation = Pick<IMutation, 'createCategory'>;
|
|
2979
|
+
|
|
2980
|
+
export type ICreateBrandMutationVariables = Exact<{
|
|
2981
|
+
brand: IBrandInput;
|
|
2982
|
+
file?: Maybe<Scalars['Upload']>;
|
|
2983
|
+
}>;
|
|
2984
|
+
|
|
2985
|
+
|
|
2986
|
+
export type ICreateBrandMutation = Pick<IMutation, 'createBrand'>;
|
|
2987
|
+
|
|
2988
|
+
export type ICreateAdminOpportunityMutationVariables = Exact<{
|
|
2989
|
+
file?: Maybe<Scalars['Upload']>;
|
|
2990
|
+
input: IOpportunityInput;
|
|
2991
|
+
}>;
|
|
2992
|
+
|
|
2993
|
+
|
|
2994
|
+
export type ICreateAdminOpportunityMutation = Pick<IMutation, 'createAdminOpportunity'>;
|
|
2995
|
+
|
|
2915
2996
|
export type IAddInviteCodesMutationVariables = Exact<{
|
|
2916
2997
|
userId: Scalars['String'];
|
|
2917
2998
|
codesNum: Scalars['Int'];
|
|
@@ -4015,6 +4096,99 @@ export function useChangeXpPointsMutation(baseOptions?: Apollo.MutationHookOptio
|
|
|
4015
4096
|
export type ChangeXpPointsMutationHookResult = ReturnType<typeof useChangeXpPointsMutation>;
|
|
4016
4097
|
export type ChangeXpPointsMutationResult = Apollo.MutationResult<IChangeXpPointsMutation>;
|
|
4017
4098
|
export type ChangeXpPointsMutationOptions = Apollo.BaseMutationOptions<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
4099
|
+
export const CreateCategoryDocument = gql`
|
|
4100
|
+
mutation CreateCategory($name: String!, $matchingWords: [String!]!) {
|
|
4101
|
+
createCategory(name: $name, matchingWords: $matchingWords)
|
|
4102
|
+
}
|
|
4103
|
+
`;
|
|
4104
|
+
export type ICreateCategoryMutationFn = Apollo.MutationFunction<ICreateCategoryMutation, ICreateCategoryMutationVariables>;
|
|
4105
|
+
|
|
4106
|
+
/**
|
|
4107
|
+
* __useCreateCategoryMutation__
|
|
4108
|
+
*
|
|
4109
|
+
* To run a mutation, you first call `useCreateCategoryMutation` within a React component and pass it any options that fit your needs.
|
|
4110
|
+
* When your component renders, `useCreateCategoryMutation` returns a tuple that includes:
|
|
4111
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
4112
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
4113
|
+
*
|
|
4114
|
+
* @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;
|
|
4115
|
+
*
|
|
4116
|
+
* @example
|
|
4117
|
+
* const [createCategoryMutation, { data, loading, error }] = useCreateCategoryMutation({
|
|
4118
|
+
* variables: {
|
|
4119
|
+
* name: // value for 'name'
|
|
4120
|
+
* matchingWords: // value for 'matchingWords'
|
|
4121
|
+
* },
|
|
4122
|
+
* });
|
|
4123
|
+
*/
|
|
4124
|
+
export function useCreateCategoryMutation(baseOptions?: Apollo.MutationHookOptions<ICreateCategoryMutation, ICreateCategoryMutationVariables>) {
|
|
4125
|
+
return Apollo.useMutation<ICreateCategoryMutation, ICreateCategoryMutationVariables>(CreateCategoryDocument, baseOptions);
|
|
4126
|
+
}
|
|
4127
|
+
export type CreateCategoryMutationHookResult = ReturnType<typeof useCreateCategoryMutation>;
|
|
4128
|
+
export type CreateCategoryMutationResult = Apollo.MutationResult<ICreateCategoryMutation>;
|
|
4129
|
+
export type CreateCategoryMutationOptions = Apollo.BaseMutationOptions<ICreateCategoryMutation, ICreateCategoryMutationVariables>;
|
|
4130
|
+
export const CreateBrandDocument = gql`
|
|
4131
|
+
mutation CreateBrand($brand: BrandInput!, $file: Upload) {
|
|
4132
|
+
createBrand(brand: $brand, file: $file)
|
|
4133
|
+
}
|
|
4134
|
+
`;
|
|
4135
|
+
export type ICreateBrandMutationFn = Apollo.MutationFunction<ICreateBrandMutation, ICreateBrandMutationVariables>;
|
|
4136
|
+
|
|
4137
|
+
/**
|
|
4138
|
+
* __useCreateBrandMutation__
|
|
4139
|
+
*
|
|
4140
|
+
* To run a mutation, you first call `useCreateBrandMutation` within a React component and pass it any options that fit your needs.
|
|
4141
|
+
* When your component renders, `useCreateBrandMutation` returns a tuple that includes:
|
|
4142
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
4143
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
4144
|
+
*
|
|
4145
|
+
* @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;
|
|
4146
|
+
*
|
|
4147
|
+
* @example
|
|
4148
|
+
* const [createBrandMutation, { data, loading, error }] = useCreateBrandMutation({
|
|
4149
|
+
* variables: {
|
|
4150
|
+
* brand: // value for 'brand'
|
|
4151
|
+
* file: // value for 'file'
|
|
4152
|
+
* },
|
|
4153
|
+
* });
|
|
4154
|
+
*/
|
|
4155
|
+
export function useCreateBrandMutation(baseOptions?: Apollo.MutationHookOptions<ICreateBrandMutation, ICreateBrandMutationVariables>) {
|
|
4156
|
+
return Apollo.useMutation<ICreateBrandMutation, ICreateBrandMutationVariables>(CreateBrandDocument, baseOptions);
|
|
4157
|
+
}
|
|
4158
|
+
export type CreateBrandMutationHookResult = ReturnType<typeof useCreateBrandMutation>;
|
|
4159
|
+
export type CreateBrandMutationResult = Apollo.MutationResult<ICreateBrandMutation>;
|
|
4160
|
+
export type CreateBrandMutationOptions = Apollo.BaseMutationOptions<ICreateBrandMutation, ICreateBrandMutationVariables>;
|
|
4161
|
+
export const CreateAdminOpportunityDocument = gql`
|
|
4162
|
+
mutation createAdminOpportunity($file: Upload, $input: OpportunityInput!) {
|
|
4163
|
+
createAdminOpportunity(file: $file, input: $input)
|
|
4164
|
+
}
|
|
4165
|
+
`;
|
|
4166
|
+
export type ICreateAdminOpportunityMutationFn = Apollo.MutationFunction<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>;
|
|
4167
|
+
|
|
4168
|
+
/**
|
|
4169
|
+
* __useCreateAdminOpportunityMutation__
|
|
4170
|
+
*
|
|
4171
|
+
* To run a mutation, you first call `useCreateAdminOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
4172
|
+
* When your component renders, `useCreateAdminOpportunityMutation` returns a tuple that includes:
|
|
4173
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
4174
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
4175
|
+
*
|
|
4176
|
+
* @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;
|
|
4177
|
+
*
|
|
4178
|
+
* @example
|
|
4179
|
+
* const [createAdminOpportunityMutation, { data, loading, error }] = useCreateAdminOpportunityMutation({
|
|
4180
|
+
* variables: {
|
|
4181
|
+
* file: // value for 'file'
|
|
4182
|
+
* input: // value for 'input'
|
|
4183
|
+
* },
|
|
4184
|
+
* });
|
|
4185
|
+
*/
|
|
4186
|
+
export function useCreateAdminOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>) {
|
|
4187
|
+
return Apollo.useMutation<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>(CreateAdminOpportunityDocument, baseOptions);
|
|
4188
|
+
}
|
|
4189
|
+
export type CreateAdminOpportunityMutationHookResult = ReturnType<typeof useCreateAdminOpportunityMutation>;
|
|
4190
|
+
export type CreateAdminOpportunityMutationResult = Apollo.MutationResult<ICreateAdminOpportunityMutation>;
|
|
4191
|
+
export type CreateAdminOpportunityMutationOptions = Apollo.BaseMutationOptions<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>;
|
|
4018
4192
|
export const AddInviteCodesDocument = gql`
|
|
4019
4193
|
mutation AddInviteCodes($userId: String!, $codesNum: Int!) {
|
|
4020
4194
|
addInviteCodes(userId: $userId, codesNum: $codesNum)
|