@ludo.ninja/api 2.4.4 → 2.4.6

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
- fetchExtensionOpportunities: Array<Maybe<IOpportunityV2>>;
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 IQueryFetchExtensionOpportunitiesArgs = {
1921
- userId?: Maybe<Scalars['String']>;
1925
+ export type IQueryFetchExtensionOpportunitiesV2Args = {
1926
+ domain: Scalars['String'];
1922
1927
  brandId?: Maybe<Scalars['String']>;
1923
- category?: Maybe<Scalars['String']>;
1928
+ categoryId?: Maybe<Scalars['String']>;
1924
1929
  };
1925
1930
 
1926
1931
 
@@ -2698,6 +2703,18 @@ export type IRemoveInviteCodeMutationVariables = Exact<{
2698
2703
 
2699
2704
  export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
2700
2705
 
2706
+ export type IFetchAdminInvitesPageQueryVariables = Exact<{
2707
+ filter: IInvitesFilterInput;
2708
+ sort: IInvitesSortInput;
2709
+ page: IAdminPageInput;
2710
+ }>;
2711
+
2712
+
2713
+ export type IFetchAdminInvitesPageQuery = { fetchAdminInvitesPage: { invites: Array<(
2714
+ Pick<IAdminInvite, 'userId' | 'referredUsers' | 'userXpLevel'>
2715
+ & { wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt'>>> }
2716
+ )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
2717
+
2701
2718
  export type IFetchAdminXpPageQueryVariables = Exact<{
2702
2719
  filter: IXpFilterInput;
2703
2720
  sort: IXpSortInput;
@@ -2933,14 +2950,14 @@ export type IFetchExtensionCategoriesQueryVariables = Exact<{ [key: string]: nev
2933
2950
 
2934
2951
  export type IFetchExtensionCategoriesQuery = { fetchExtensionCategories: Array<Maybe<Pick<ICategory, 'categoryId' | 'name' | 'matchingWords'>>> };
2935
2952
 
2936
- export type IFetchExtensionOpportunitiesQueryVariables = Exact<{
2937
- userId?: Maybe<Scalars['String']>;
2953
+ export type IFetchExtensionOpportunitiesV2QueryVariables = Exact<{
2954
+ domain: Scalars['String'];
2938
2955
  brandId?: Maybe<Scalars['String']>;
2939
- category?: Maybe<Scalars['String']>;
2956
+ categoryId?: Maybe<Scalars['String']>;
2940
2957
  }>;
2941
2958
 
2942
2959
 
2943
- export type IFetchExtensionOpportunitiesQuery = { fetchExtensionOpportunities: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>> };
2960
+ 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'>>>> } };
2944
2961
 
2945
2962
  export type IFetchNftDataQueryVariables = Exact<{
2946
2963
  blockchain: Scalars['String'];
@@ -3767,6 +3784,61 @@ export function useRemoveInviteCodeMutation(baseOptions?: Apollo.MutationHookOpt
3767
3784
  export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
3768
3785
  export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
3769
3786
  export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
3787
+ export const FetchAdminInvitesPageDocument = gql`
3788
+ query fetchAdminInvitesPage($filter: InvitesFilterInput!, $sort: InvitesSortInput!, $page: AdminPageInput!) {
3789
+ fetchAdminInvitesPage(filter: $filter, sort: $sort, page: $page) {
3790
+ invites {
3791
+ userId
3792
+ wallet {
3793
+ address
3794
+ blockchain
3795
+ chainId
3796
+ }
3797
+ activeInvites {
3798
+ inviteCode
3799
+ createdAt
3800
+ }
3801
+ referredUsers
3802
+ userXpLevel
3803
+ }
3804
+ nextPage {
3805
+ num
3806
+ lastNum
3807
+ size
3808
+ elements
3809
+ token
3810
+ }
3811
+ }
3812
+ }
3813
+ `;
3814
+
3815
+ /**
3816
+ * __useFetchAdminInvitesPageQuery__
3817
+ *
3818
+ * To run a query within a React component, call `useFetchAdminInvitesPageQuery` and pass it any options that fit your needs.
3819
+ * When your component renders, `useFetchAdminInvitesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
3820
+ * you can use to render your UI.
3821
+ *
3822
+ * @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;
3823
+ *
3824
+ * @example
3825
+ * const { data, loading, error } = useFetchAdminInvitesPageQuery({
3826
+ * variables: {
3827
+ * filter: // value for 'filter'
3828
+ * sort: // value for 'sort'
3829
+ * page: // value for 'page'
3830
+ * },
3831
+ * });
3832
+ */
3833
+ export function useFetchAdminInvitesPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>) {
3834
+ return Apollo.useQuery<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>(FetchAdminInvitesPageDocument, baseOptions);
3835
+ }
3836
+ export function useFetchAdminInvitesPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>) {
3837
+ return Apollo.useLazyQuery<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>(FetchAdminInvitesPageDocument, baseOptions);
3838
+ }
3839
+ export type FetchAdminInvitesPageQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageQuery>;
3840
+ export type FetchAdminInvitesPageLazyQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageLazyQuery>;
3841
+ export type FetchAdminInvitesPageQueryResult = Apollo.QueryResult<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>;
3770
3842
  export const FetchAdminXpPageDocument = gql`
3771
3843
  query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page: AdminPageInput!) {
3772
3844
  fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {
@@ -5116,64 +5188,88 @@ export function useFetchExtensionCategoriesLazyQuery(baseOptions?: Apollo.LazyQu
5116
5188
  export type FetchExtensionCategoriesQueryHookResult = ReturnType<typeof useFetchExtensionCategoriesQuery>;
5117
5189
  export type FetchExtensionCategoriesLazyQueryHookResult = ReturnType<typeof useFetchExtensionCategoriesLazyQuery>;
5118
5190
  export type FetchExtensionCategoriesQueryResult = Apollo.QueryResult<IFetchExtensionCategoriesQuery, IFetchExtensionCategoriesQueryVariables>;
5119
- export const FetchExtensionOpportunitiesDocument = gql`
5120
- query FetchExtensionOpportunities($userId: String, $brandId: String, $category: String) {
5121
- fetchExtensionOpportunities(
5122
- userId: $userId
5191
+ export const FetchExtensionOpportunitiesV2Document = gql`
5192
+ query FetchExtensionOpportunitiesV2($domain: String!, $brandId: String, $categoryId: String) {
5193
+ fetchExtensionOpportunitiesV2(
5194
+ domain: $domain
5123
5195
  brandId: $brandId
5124
- category: $category
5196
+ categoryId: $categoryId
5125
5197
  ) {
5126
- opportunityId
5127
- brandId
5128
- categoryId
5129
- opportunityStatus
5130
- opportunityType
5131
- notificationType
5132
- name
5133
- brandName
5134
- brandDescription
5135
- brandMedia
5136
- brandUrl
5137
- brandIndustry
5138
- categoryName
5139
- ludoUrl
5140
- projectUrl
5141
- activeFrom
5142
- activeUntil
5143
- media
5144
- reportLink
5145
- shareLink
5198
+ currentOpportunities {
5199
+ opportunityId
5200
+ brandId
5201
+ categoryId
5202
+ opportunityStatus
5203
+ opportunityType
5204
+ notificationType
5205
+ name
5206
+ brandName
5207
+ brandDescription
5208
+ brandMedia
5209
+ brandUrl
5210
+ brandIndustry
5211
+ categoryName
5212
+ ludoUrl
5213
+ projectUrl
5214
+ activeFrom
5215
+ activeUntil
5216
+ media
5217
+ reportLink
5218
+ shareLink
5219
+ }
5220
+ similarOpportunities {
5221
+ opportunityId
5222
+ brandId
5223
+ categoryId
5224
+ opportunityStatus
5225
+ opportunityType
5226
+ notificationType
5227
+ name
5228
+ brandName
5229
+ brandDescription
5230
+ brandMedia
5231
+ brandUrl
5232
+ brandIndustry
5233
+ categoryName
5234
+ ludoUrl
5235
+ projectUrl
5236
+ activeFrom
5237
+ activeUntil
5238
+ media
5239
+ reportLink
5240
+ shareLink
5241
+ }
5146
5242
  }
5147
5243
  }
5148
5244
  `;
5149
5245
 
5150
5246
  /**
5151
- * __useFetchExtensionOpportunitiesQuery__
5247
+ * __useFetchExtensionOpportunitiesV2Query__
5152
5248
  *
5153
- * To run a query within a React component, call `useFetchExtensionOpportunitiesQuery` and pass it any options that fit your needs.
5154
- * When your component renders, `useFetchExtensionOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
5249
+ * To run a query within a React component, call `useFetchExtensionOpportunitiesV2Query` and pass it any options that fit your needs.
5250
+ * When your component renders, `useFetchExtensionOpportunitiesV2Query` returns an object from Apollo Client that contains loading, error, and data properties
5155
5251
  * you can use to render your UI.
5156
5252
  *
5157
5253
  * @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;
5158
5254
  *
5159
5255
  * @example
5160
- * const { data, loading, error } = useFetchExtensionOpportunitiesQuery({
5256
+ * const { data, loading, error } = useFetchExtensionOpportunitiesV2Query({
5161
5257
  * variables: {
5162
- * userId: // value for 'userId'
5258
+ * domain: // value for 'domain'
5163
5259
  * brandId: // value for 'brandId'
5164
- * category: // value for 'category'
5260
+ * categoryId: // value for 'categoryId'
5165
5261
  * },
5166
5262
  * });
5167
5263
  */
5168
- export function useFetchExtensionOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchExtensionOpportunitiesQuery, IFetchExtensionOpportunitiesQueryVariables>) {
5169
- return Apollo.useQuery<IFetchExtensionOpportunitiesQuery, IFetchExtensionOpportunitiesQueryVariables>(FetchExtensionOpportunitiesDocument, baseOptions);
5264
+ export function useFetchExtensionOpportunitiesV2Query(baseOptions: Apollo.QueryHookOptions<IFetchExtensionOpportunitiesV2Query, IFetchExtensionOpportunitiesV2QueryVariables>) {
5265
+ return Apollo.useQuery<IFetchExtensionOpportunitiesV2Query, IFetchExtensionOpportunitiesV2QueryVariables>(FetchExtensionOpportunitiesV2Document, baseOptions);
5170
5266
  }
5171
- export function useFetchExtensionOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchExtensionOpportunitiesQuery, IFetchExtensionOpportunitiesQueryVariables>) {
5172
- return Apollo.useLazyQuery<IFetchExtensionOpportunitiesQuery, IFetchExtensionOpportunitiesQueryVariables>(FetchExtensionOpportunitiesDocument, baseOptions);
5267
+ export function useFetchExtensionOpportunitiesV2LazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchExtensionOpportunitiesV2Query, IFetchExtensionOpportunitiesV2QueryVariables>) {
5268
+ return Apollo.useLazyQuery<IFetchExtensionOpportunitiesV2Query, IFetchExtensionOpportunitiesV2QueryVariables>(FetchExtensionOpportunitiesV2Document, baseOptions);
5173
5269
  }
5174
- export type FetchExtensionOpportunitiesQueryHookResult = ReturnType<typeof useFetchExtensionOpportunitiesQuery>;
5175
- export type FetchExtensionOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchExtensionOpportunitiesLazyQuery>;
5176
- export type FetchExtensionOpportunitiesQueryResult = Apollo.QueryResult<IFetchExtensionOpportunitiesQuery, IFetchExtensionOpportunitiesQueryVariables>;
5270
+ export type FetchExtensionOpportunitiesV2QueryHookResult = ReturnType<typeof useFetchExtensionOpportunitiesV2Query>;
5271
+ export type FetchExtensionOpportunitiesV2LazyQueryHookResult = ReturnType<typeof useFetchExtensionOpportunitiesV2LazyQuery>;
5272
+ export type FetchExtensionOpportunitiesV2QueryResult = Apollo.QueryResult<IFetchExtensionOpportunitiesV2Query, IFetchExtensionOpportunitiesV2QueryVariables>;
5177
5273
  export const FetchNftDataDocument = gql`
5178
5274
  query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
5179
5275
  fetchNFTData(