@ludo.ninja/api 2.8.61 → 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.
@@ -189,6 +189,9 @@ export type IAdminUser = {
189
189
  xpLevel?: Maybe<Scalars['Int']>;
190
190
  ludoRank?: Maybe<Scalars['Float']>;
191
191
  inviterId?: Maybe<Scalars['String']>;
192
+ ip?: Maybe<Scalars['String']>;
193
+ location?: Maybe<Scalars['String']>;
194
+ userLanguage?: Maybe<Scalars['String']>;
192
195
  };
193
196
  export type IAdminXp = {
194
197
  userId: Scalars['ID'];
@@ -1058,6 +1061,9 @@ export type IAdminUserResolvers<ContextType = any, ParentType extends IResolvers
1058
1061
  xpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1059
1062
  ludoRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
1060
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>;
1061
1067
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1062
1068
  };
1063
1069
  export type IAdminXpResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminXp'] = IResolversParentTypes['AdminXp']> = {
@@ -1306,16 +1312,33 @@ export type IRemoveInviteCodeMutationVariables = Exact<{
1306
1312
  inviteCode: Scalars['String'];
1307
1313
  }>;
1308
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'>;
1309
1321
  export type IUpdateBrandArchivedStatusMutationVariables = Exact<{
1310
1322
  id: Scalars['ID'];
1311
1323
  isArchived: Scalars['Boolean'];
1312
1324
  }>;
1313
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'>;
1314
1331
  export type IUpdateCategoryArchivedStatusMutationVariables = Exact<{
1315
1332
  id: Scalars['ID'];
1316
1333
  isArchived: Scalars['Boolean'];
1317
1334
  }>;
1318
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'>;
1319
1342
  export type IUpdateProfileStatusMutationVariables = Exact<{
1320
1343
  userId: Scalars['ID'];
1321
1344
  isActive: Scalars['Boolean'];
@@ -1694,6 +1717,35 @@ export declare function useRemoveInviteCodeMutation(baseOptions?: Apollo.Mutatio
1694
1717
  export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
1695
1718
  export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
1696
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>;
1697
1749
  export declare const UpdateBrandArchivedStatusDocument: Apollo.DocumentNode;
1698
1750
  export type IUpdateBrandArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>;
1699
1751
  /**
@@ -1721,6 +1773,33 @@ export declare function useUpdateBrandArchivedStatusMutation(baseOptions?: Apoll
1721
1773
  export type UpdateBrandArchivedStatusMutationHookResult = ReturnType<typeof useUpdateBrandArchivedStatusMutation>;
1722
1774
  export type UpdateBrandArchivedStatusMutationResult = Apollo.MutationResult<IUpdateBrandArchivedStatusMutation>;
1723
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>;
1724
1803
  export declare const UpdateCategoryArchivedStatusDocument: Apollo.DocumentNode;
1725
1804
  export type IUpdateCategoryArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateCategoryArchivedStatusMutation, IUpdateCategoryArchivedStatusMutationVariables>;
1726
1805
  /**
@@ -1748,6 +1827,35 @@ export declare function useUpdateCategoryArchivedStatusMutation(baseOptions?: Ap
1748
1827
  export type UpdateCategoryArchivedStatusMutationHookResult = ReturnType<typeof useUpdateCategoryArchivedStatusMutation>;
1749
1828
  export type UpdateCategoryArchivedStatusMutationResult = Apollo.MutationResult<IUpdateCategoryArchivedStatusMutation>;
1750
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>;
1751
1859
  export declare const UpdateProfileStatusDocument: Apollo.DocumentNode;
1752
1860
  export type IUpdateProfileStatusMutationFn = Apollo.MutationFunction<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
1753
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.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;
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 */
@@ -221,6 +221,34 @@ function useRemoveInviteCodeMutation(baseOptions) {
221
221
  return Apollo.useMutation(exports.RemoveInviteCodeDocument, baseOptions);
222
222
  }
223
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;
224
252
  exports.UpdateBrandArchivedStatusDocument = (0, client_1.gql) `
225
253
  mutation UpdateBrandArchivedStatus($id: ID!, $isArchived: Boolean!) {
226
254
  updateBrandArchivedStatus(id: $id, isArchived: $isArchived)
@@ -248,6 +276,33 @@ function useUpdateBrandArchivedStatusMutation(baseOptions) {
248
276
  return Apollo.useMutation(exports.UpdateBrandArchivedStatusDocument, baseOptions);
249
277
  }
250
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;
251
306
  exports.UpdateCategoryArchivedStatusDocument = (0, client_1.gql) `
252
307
  mutation UpdateCategoryArchivedStatus($id: ID!, $isArchived: Boolean!) {
253
308
  updateCategoryArchivedStatus(id: $id, isArchived: $isArchived)
@@ -275,6 +330,34 @@ function useUpdateCategoryArchivedStatusMutation(baseOptions) {
275
330
  return Apollo.useMutation(exports.UpdateCategoryArchivedStatusDocument, baseOptions);
276
331
  }
277
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;
278
361
  exports.UpdateProfileStatusDocument = (0, client_1.gql) `
279
362
  mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
280
363
  updateProfileStatus(userId: $userId, isActive: $isActive)
@@ -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/index.d.ts CHANGED
@@ -1131,6 +1131,15 @@ declare const schema: {
1131
1131
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IRemoveInviteCodeMutation, adminSchema.Exact<{
1132
1132
  inviteCode: string;
1133
1133
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1134
+ useUpdateBrandMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateBrandMutation, adminSchema.Exact<{
1135
+ id: string;
1136
+ input: adminSchema.IBrandInput;
1137
+ file?: any;
1138
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateBrandMutation, adminSchema.Exact<{
1139
+ id: string;
1140
+ input: adminSchema.IBrandInput;
1141
+ file?: any;
1142
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1134
1143
  useUpdateBrandArchivedStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateBrandArchivedStatusMutation, adminSchema.Exact<{
1135
1144
  id: string;
1136
1145
  isArchived: boolean;
@@ -1138,6 +1147,13 @@ declare const schema: {
1138
1147
  id: string;
1139
1148
  isArchived: boolean;
1140
1149
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1150
+ useUpdateCategoryMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateCategoryMutation, adminSchema.Exact<{
1151
+ id: string;
1152
+ input: adminSchema.ICategoryInput;
1153
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateCategoryMutation, adminSchema.Exact<{
1154
+ id: string;
1155
+ input: adminSchema.ICategoryInput;
1156
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1141
1157
  useUpdateCategoryArchivedStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateCategoryArchivedStatusMutation, adminSchema.Exact<{
1142
1158
  id: string;
1143
1159
  isArchived: boolean;
@@ -1145,6 +1161,15 @@ declare const schema: {
1145
1161
  id: string;
1146
1162
  isArchived: boolean;
1147
1163
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1164
+ useUpdateOpportunityMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateOpportunityMutation, adminSchema.Exact<{
1165
+ id: string;
1166
+ input: adminSchema.IAdminOpportunityInput;
1167
+ file?: any;
1168
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateOpportunityMutation, adminSchema.Exact<{
1169
+ id: string;
1170
+ input: adminSchema.IAdminOpportunityInput;
1171
+ file?: any;
1172
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1148
1173
  useUpdateProfileStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateProfileStatusMutation, adminSchema.Exact<{
1149
1174
  userId: string;
1150
1175
  isActive: boolean;
@@ -1452,8 +1477,11 @@ declare const schema: {
1452
1477
  CreateAdminOpportunityDocument: import("graphql").DocumentNode;
1453
1478
  AddInviteCodesDocument: import("graphql").DocumentNode;
1454
1479
  RemoveInviteCodeDocument: import("graphql").DocumentNode;
1480
+ UpdateBrandDocument: import("graphql").DocumentNode;
1455
1481
  UpdateBrandArchivedStatusDocument: import("graphql").DocumentNode;
1482
+ UpdateCategoryDocument: import("graphql").DocumentNode;
1456
1483
  UpdateCategoryArchivedStatusDocument: import("graphql").DocumentNode;
1484
+ UpdateOpportunityDocument: import("graphql").DocumentNode;
1457
1485
  UpdateProfileStatusDocument: import("graphql").DocumentNode;
1458
1486
  CheckInviteCodeDocument: import("graphql").DocumentNode;
1459
1487
  FetchContactSupportPageDocument: import("graphql").DocumentNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.8.61",
3
+ "version": "2.8.62",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -199,6 +199,9 @@ export type IAdminUser = {
199
199
  xpLevel?: Maybe<Scalars['Int']>;
200
200
  ludoRank?: Maybe<Scalars['Float']>;
201
201
  inviterId?: Maybe<Scalars['String']>;
202
+ ip?: Maybe<Scalars['String']>;
203
+ location?: Maybe<Scalars['String']>;
204
+ userLanguage?: Maybe<Scalars['String']>;
202
205
  };
203
206
 
204
207
  export type IAdminXp = {
@@ -1248,6 +1251,9 @@ export type IAdminUserResolvers<ContextType = any, ParentType extends IResolvers
1248
1251
  xpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1249
1252
  ludoRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
1250
1253
  inviterId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1254
+ ip?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1255
+ location?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1256
+ userLanguage?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1251
1257
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1252
1258
  };
1253
1259
 
@@ -1544,6 +1550,15 @@ export type IRemoveInviteCodeMutationVariables = Exact<{
1544
1550
 
1545
1551
  export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
1546
1552
 
1553
+ export type IUpdateBrandMutationVariables = Exact<{
1554
+ id: Scalars['ID'];
1555
+ input: IBrandInput;
1556
+ file?: Maybe<Scalars['Upload']>;
1557
+ }>;
1558
+
1559
+
1560
+ export type IUpdateBrandMutation = Pick<IMutation, 'updateBrand'>;
1561
+
1547
1562
  export type IUpdateBrandArchivedStatusMutationVariables = Exact<{
1548
1563
  id: Scalars['ID'];
1549
1564
  isArchived: Scalars['Boolean'];
@@ -1552,6 +1567,14 @@ export type IUpdateBrandArchivedStatusMutationVariables = Exact<{
1552
1567
 
1553
1568
  export type IUpdateBrandArchivedStatusMutation = Pick<IMutation, 'updateBrandArchivedStatus'>;
1554
1569
 
1570
+ export type IUpdateCategoryMutationVariables = Exact<{
1571
+ id: Scalars['ID'];
1572
+ input: ICategoryInput;
1573
+ }>;
1574
+
1575
+
1576
+ export type IUpdateCategoryMutation = Pick<IMutation, 'updateCategory'>;
1577
+
1555
1578
  export type IUpdateCategoryArchivedStatusMutationVariables = Exact<{
1556
1579
  id: Scalars['ID'];
1557
1580
  isArchived: Scalars['Boolean'];
@@ -1560,6 +1583,15 @@ export type IUpdateCategoryArchivedStatusMutationVariables = Exact<{
1560
1583
 
1561
1584
  export type IUpdateCategoryArchivedStatusMutation = Pick<IMutation, 'updateCategoryArchivedStatus'>;
1562
1585
 
1586
+ export type IUpdateOpportunityMutationVariables = Exact<{
1587
+ id: Scalars['ID'];
1588
+ input: IAdminOpportunityInput;
1589
+ file?: Maybe<Scalars['Upload']>;
1590
+ }>;
1591
+
1592
+
1593
+ export type IUpdateOpportunityMutation = Pick<IMutation, 'updateOpportunity'>;
1594
+
1563
1595
  export type IUpdateProfileStatusMutationVariables = Exact<{
1564
1596
  userId: Scalars['ID'];
1565
1597
  isActive: Scalars['Boolean'];
@@ -1945,6 +1977,38 @@ export function useRemoveInviteCodeMutation(baseOptions?: Apollo.MutationHookOpt
1945
1977
  export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
1946
1978
  export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
1947
1979
  export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
1980
+ export const UpdateBrandDocument = gql`
1981
+ mutation updateBrand($id: ID!, $input: BrandInput!, $file: Upload) {
1982
+ updateBrand(id: $id, file: $file, input: $input)
1983
+ }
1984
+ `;
1985
+ export type IUpdateBrandMutationFn = Apollo.MutationFunction<IUpdateBrandMutation, IUpdateBrandMutationVariables>;
1986
+
1987
+ /**
1988
+ * __useUpdateBrandMutation__
1989
+ *
1990
+ * To run a mutation, you first call `useUpdateBrandMutation` within a React component and pass it any options that fit your needs.
1991
+ * When your component renders, `useUpdateBrandMutation` returns a tuple that includes:
1992
+ * - A mutate function that you can call at any time to execute the mutation
1993
+ * - An object with fields that represent the current status of the mutation's execution
1994
+ *
1995
+ * @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;
1996
+ *
1997
+ * @example
1998
+ * const [updateBrandMutation, { data, loading, error }] = useUpdateBrandMutation({
1999
+ * variables: {
2000
+ * id: // value for 'id'
2001
+ * input: // value for 'input'
2002
+ * file: // value for 'file'
2003
+ * },
2004
+ * });
2005
+ */
2006
+ export function useUpdateBrandMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateBrandMutation, IUpdateBrandMutationVariables>) {
2007
+ return Apollo.useMutation<IUpdateBrandMutation, IUpdateBrandMutationVariables>(UpdateBrandDocument, baseOptions);
2008
+ }
2009
+ export type UpdateBrandMutationHookResult = ReturnType<typeof useUpdateBrandMutation>;
2010
+ export type UpdateBrandMutationResult = Apollo.MutationResult<IUpdateBrandMutation>;
2011
+ export type UpdateBrandMutationOptions = Apollo.BaseMutationOptions<IUpdateBrandMutation, IUpdateBrandMutationVariables>;
1948
2012
  export const UpdateBrandArchivedStatusDocument = gql`
1949
2013
  mutation UpdateBrandArchivedStatus($id: ID!, $isArchived: Boolean!) {
1950
2014
  updateBrandArchivedStatus(id: $id, isArchived: $isArchived)
@@ -1976,6 +2040,37 @@ export function useUpdateBrandArchivedStatusMutation(baseOptions?: Apollo.Mutati
1976
2040
  export type UpdateBrandArchivedStatusMutationHookResult = ReturnType<typeof useUpdateBrandArchivedStatusMutation>;
1977
2041
  export type UpdateBrandArchivedStatusMutationResult = Apollo.MutationResult<IUpdateBrandArchivedStatusMutation>;
1978
2042
  export type UpdateBrandArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateBrandArchivedStatusMutation, IUpdateBrandArchivedStatusMutationVariables>;
2043
+ export const UpdateCategoryDocument = gql`
2044
+ mutation updateCategory($id: ID!, $input: CategoryInput!) {
2045
+ updateCategory(id: $id, input: $input)
2046
+ }
2047
+ `;
2048
+ export type IUpdateCategoryMutationFn = Apollo.MutationFunction<IUpdateCategoryMutation, IUpdateCategoryMutationVariables>;
2049
+
2050
+ /**
2051
+ * __useUpdateCategoryMutation__
2052
+ *
2053
+ * To run a mutation, you first call `useUpdateCategoryMutation` within a React component and pass it any options that fit your needs.
2054
+ * When your component renders, `useUpdateCategoryMutation` returns a tuple that includes:
2055
+ * - A mutate function that you can call at any time to execute the mutation
2056
+ * - An object with fields that represent the current status of the mutation's execution
2057
+ *
2058
+ * @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;
2059
+ *
2060
+ * @example
2061
+ * const [updateCategoryMutation, { data, loading, error }] = useUpdateCategoryMutation({
2062
+ * variables: {
2063
+ * id: // value for 'id'
2064
+ * input: // value for 'input'
2065
+ * },
2066
+ * });
2067
+ */
2068
+ export function useUpdateCategoryMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateCategoryMutation, IUpdateCategoryMutationVariables>) {
2069
+ return Apollo.useMutation<IUpdateCategoryMutation, IUpdateCategoryMutationVariables>(UpdateCategoryDocument, baseOptions);
2070
+ }
2071
+ export type UpdateCategoryMutationHookResult = ReturnType<typeof useUpdateCategoryMutation>;
2072
+ export type UpdateCategoryMutationResult = Apollo.MutationResult<IUpdateCategoryMutation>;
2073
+ export type UpdateCategoryMutationOptions = Apollo.BaseMutationOptions<IUpdateCategoryMutation, IUpdateCategoryMutationVariables>;
1979
2074
  export const UpdateCategoryArchivedStatusDocument = gql`
1980
2075
  mutation UpdateCategoryArchivedStatus($id: ID!, $isArchived: Boolean!) {
1981
2076
  updateCategoryArchivedStatus(id: $id, isArchived: $isArchived)
@@ -2007,6 +2102,38 @@ export function useUpdateCategoryArchivedStatusMutation(baseOptions?: Apollo.Mut
2007
2102
  export type UpdateCategoryArchivedStatusMutationHookResult = ReturnType<typeof useUpdateCategoryArchivedStatusMutation>;
2008
2103
  export type UpdateCategoryArchivedStatusMutationResult = Apollo.MutationResult<IUpdateCategoryArchivedStatusMutation>;
2009
2104
  export type UpdateCategoryArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateCategoryArchivedStatusMutation, IUpdateCategoryArchivedStatusMutationVariables>;
2105
+ export const UpdateOpportunityDocument = gql`
2106
+ mutation updateOpportunity($id: ID!, $input: AdminOpportunityInput!, $file: Upload) {
2107
+ updateOpportunity(id: $id, file: $file, input: $input)
2108
+ }
2109
+ `;
2110
+ export type IUpdateOpportunityMutationFn = Apollo.MutationFunction<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>;
2111
+
2112
+ /**
2113
+ * __useUpdateOpportunityMutation__
2114
+ *
2115
+ * To run a mutation, you first call `useUpdateOpportunityMutation` within a React component and pass it any options that fit your needs.
2116
+ * When your component renders, `useUpdateOpportunityMutation` returns a tuple that includes:
2117
+ * - A mutate function that you can call at any time to execute the mutation
2118
+ * - An object with fields that represent the current status of the mutation's execution
2119
+ *
2120
+ * @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;
2121
+ *
2122
+ * @example
2123
+ * const [updateOpportunityMutation, { data, loading, error }] = useUpdateOpportunityMutation({
2124
+ * variables: {
2125
+ * id: // value for 'id'
2126
+ * input: // value for 'input'
2127
+ * file: // value for 'file'
2128
+ * },
2129
+ * });
2130
+ */
2131
+ export function useUpdateOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>) {
2132
+ return Apollo.useMutation<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>(UpdateOpportunityDocument, baseOptions);
2133
+ }
2134
+ export type UpdateOpportunityMutationHookResult = ReturnType<typeof useUpdateOpportunityMutation>;
2135
+ export type UpdateOpportunityMutationResult = Apollo.MutationResult<IUpdateOpportunityMutation>;
2136
+ export type UpdateOpportunityMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>;
2010
2137
  export const UpdateProfileStatusDocument = gql`
2011
2138
  mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
2012
2139
  updateProfileStatus(userId: $userId, isActive: $isActive)
@@ -326,6 +326,7 @@ export type IQuery = {
326
326
  fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
327
327
  isInviteCodeAvailable: Scalars['Boolean'];
328
328
  getMyInviteCodes: Array<IUserInviteCode>;
329
+ fetchInviteCode: IInviteCode;
329
330
  fetchMyProfile: IMyProfile;
330
331
  fetchMyProfileV2: IMyProfileV2;
331
332
  fetchProfile: IProfile;
@@ -349,6 +350,11 @@ export type IQueryIsInviteCodeAvailableArgs = {
349
350
  };
350
351
 
351
352
 
353
+ export type IQueryFetchInviteCodeArgs = {
354
+ inviteCode: Scalars['String'];
355
+ };
356
+
357
+
352
358
  export type IQueryFetchProfileArgs = {
353
359
  userId: Scalars['ID'];
354
360
  };
@@ -732,6 +738,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
732
738
  fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
733
739
  isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
734
740
  getMyInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType>;
741
+ fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
735
742
  fetchMyProfile?: Resolver<IResolversTypes['MyProfile'], ParentType, ContextType>;
736
743
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
737
744
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;