@ludo.ninja/api 2.8.61 → 2.8.63
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 +108 -0
- package/build/graphql_tools/__generated__/adminHost/schema.js +85 -2
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +60 -0
- package/build/graphql_tools/__generated__/identityHost/schema.js +46 -2
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +14 -0
- package/build/index.d.ts +38 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +127 -0
- package/src/graphql_tools/__generated__/identityHost/schema.ts +84 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +18 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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.
|
|
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)
|
|
@@ -92,6 +92,7 @@ export type IMutation = {
|
|
|
92
92
|
createNonce: Scalars['String'];
|
|
93
93
|
signInAdminMetamask: IIdentity;
|
|
94
94
|
signInMetamask: IIdentity;
|
|
95
|
+
signInTon: IIdentity;
|
|
95
96
|
signInTezos: IIdentity;
|
|
96
97
|
signInSolana: IIdentity;
|
|
97
98
|
signInElrond: IIdentity;
|
|
@@ -101,6 +102,7 @@ export type IMutation = {
|
|
|
101
102
|
addWalletSolana: Scalars['Boolean'];
|
|
102
103
|
addWalletElrond: Scalars['Boolean'];
|
|
103
104
|
addWalletFlow: Scalars['Boolean'];
|
|
105
|
+
addWalletTon: Scalars['Boolean'];
|
|
104
106
|
removeWallet: Scalars['Boolean'];
|
|
105
107
|
setMainWallet: Scalars['Boolean'];
|
|
106
108
|
generateNewInviteCodes: Array<IUserInviteCode>;
|
|
@@ -127,6 +129,11 @@ export type IMutationSignInMetamaskArgs = {
|
|
|
127
129
|
restore?: Maybe<Scalars['Boolean']>;
|
|
128
130
|
inviteCode?: Maybe<Scalars['String']>;
|
|
129
131
|
};
|
|
132
|
+
export type IMutationSignInTonArgs = {
|
|
133
|
+
signature: Scalars['String'];
|
|
134
|
+
address: Scalars['String'];
|
|
135
|
+
restore?: Maybe<Scalars['Boolean']>;
|
|
136
|
+
};
|
|
130
137
|
export type IMutationSignInTezosArgs = {
|
|
131
138
|
signature: Scalars['String'];
|
|
132
139
|
pubkey: Scalars['String'];
|
|
@@ -172,6 +179,10 @@ export type IMutationAddWalletFlowArgs = {
|
|
|
172
179
|
signature: Scalars['String'];
|
|
173
180
|
address: Scalars['String'];
|
|
174
181
|
};
|
|
182
|
+
export type IMutationAddWalletTonArgs = {
|
|
183
|
+
signature: Scalars['String'];
|
|
184
|
+
address: Scalars['String'];
|
|
185
|
+
};
|
|
175
186
|
export type IMutationRemoveWalletArgs = {
|
|
176
187
|
blockchain: Scalars['String'];
|
|
177
188
|
address: Scalars['String'];
|
|
@@ -273,6 +284,7 @@ export type IQuery = {
|
|
|
273
284
|
fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
|
|
274
285
|
isInviteCodeAvailable: Scalars['Boolean'];
|
|
275
286
|
getMyInviteCodes: Array<IUserInviteCode>;
|
|
287
|
+
fetchInviteCode: IInviteCode;
|
|
276
288
|
fetchMyProfile: IMyProfile;
|
|
277
289
|
fetchMyProfileV2: IMyProfileV2;
|
|
278
290
|
fetchProfile: IProfile;
|
|
@@ -288,6 +300,9 @@ export type IQueryFetchMultiversxAuditArgs = {
|
|
|
288
300
|
export type IQueryIsInviteCodeAvailableArgs = {
|
|
289
301
|
inviteCode: Scalars['String'];
|
|
290
302
|
};
|
|
303
|
+
export type IQueryFetchInviteCodeArgs = {
|
|
304
|
+
inviteCode: Scalars['String'];
|
|
305
|
+
};
|
|
291
306
|
export type IQueryFetchProfileArgs = {
|
|
292
307
|
userId: Scalars['ID'];
|
|
293
308
|
};
|
|
@@ -501,6 +516,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
501
516
|
createNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationCreateNonceArgs, 'address' | 'blockchain'>>;
|
|
502
517
|
signInAdminMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInAdminMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
503
518
|
signInMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
519
|
+
signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'signature' | 'address'>>;
|
|
504
520
|
signInTezos?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTezosArgs, 'signature' | 'pubkey'>>;
|
|
505
521
|
signInSolana?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInSolanaArgs, 'signature' | 'pubkey'>>;
|
|
506
522
|
signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
|
|
@@ -510,6 +526,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
510
526
|
addWalletSolana?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletSolanaArgs, 'signature' | 'pubkey'>>;
|
|
511
527
|
addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
|
|
512
528
|
addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
|
|
529
|
+
addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'signature' | 'address'>>;
|
|
513
530
|
removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
|
|
514
531
|
setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
|
|
515
532
|
generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
|
|
@@ -594,6 +611,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
594
611
|
fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
|
|
595
612
|
isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
|
|
596
613
|
getMyInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType>;
|
|
614
|
+
fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
|
|
597
615
|
fetchMyProfile?: Resolver<IResolversTypes['MyProfile'], ParentType, ContextType>;
|
|
598
616
|
fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
|
|
599
617
|
fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
|
|
@@ -794,6 +812,19 @@ export type ISignInTezosMutation = {
|
|
|
794
812
|
};
|
|
795
813
|
});
|
|
796
814
|
};
|
|
815
|
+
export type ISignInTonMutationVariables = Exact<{
|
|
816
|
+
signature: Scalars['String'];
|
|
817
|
+
address: Scalars['String'];
|
|
818
|
+
restore?: Maybe<Scalars['Boolean']>;
|
|
819
|
+
}>;
|
|
820
|
+
export type ISignInTonMutation = {
|
|
821
|
+
signInTon: (Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role'> & {
|
|
822
|
+
tokens: {
|
|
823
|
+
portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
|
|
824
|
+
extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
|
|
825
|
+
};
|
|
826
|
+
});
|
|
827
|
+
};
|
|
797
828
|
export type IUpdateProfileMutationVariables = Exact<{
|
|
798
829
|
username?: Maybe<Scalars['String']>;
|
|
799
830
|
about?: Maybe<Scalars['String']>;
|
|
@@ -1325,6 +1356,35 @@ export declare function useSignInTezosMutation(baseOptions?: Apollo.MutationHook
|
|
|
1325
1356
|
export type SignInTezosMutationHookResult = ReturnType<typeof useSignInTezosMutation>;
|
|
1326
1357
|
export type SignInTezosMutationResult = Apollo.MutationResult<ISignInTezosMutation>;
|
|
1327
1358
|
export type SignInTezosMutationOptions = Apollo.BaseMutationOptions<ISignInTezosMutation, ISignInTezosMutationVariables>;
|
|
1359
|
+
export declare const SignInTonDocument: Apollo.DocumentNode;
|
|
1360
|
+
export type ISignInTonMutationFn = Apollo.MutationFunction<ISignInTonMutation, ISignInTonMutationVariables>;
|
|
1361
|
+
/**
|
|
1362
|
+
* __useSignInTonMutation__
|
|
1363
|
+
*
|
|
1364
|
+
* To run a mutation, you first call `useSignInTonMutation` within a React component and pass it any options that fit your needs.
|
|
1365
|
+
* When your component renders, `useSignInTonMutation` returns a tuple that includes:
|
|
1366
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1367
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1368
|
+
*
|
|
1369
|
+
* @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;
|
|
1370
|
+
*
|
|
1371
|
+
* @example
|
|
1372
|
+
* const [signInTonMutation, { data, loading, error }] = useSignInTonMutation({
|
|
1373
|
+
* variables: {
|
|
1374
|
+
* signature: // value for 'signature'
|
|
1375
|
+
* address: // value for 'address'
|
|
1376
|
+
* restore: // value for 'restore'
|
|
1377
|
+
* },
|
|
1378
|
+
* });
|
|
1379
|
+
*/
|
|
1380
|
+
export declare function useSignInTonMutation(baseOptions?: Apollo.MutationHookOptions<ISignInTonMutation, ISignInTonMutationVariables>): Apollo.MutationTuple<ISignInTonMutation, Exact<{
|
|
1381
|
+
signature: string;
|
|
1382
|
+
address: string;
|
|
1383
|
+
restore?: Maybe<boolean> | undefined;
|
|
1384
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1385
|
+
export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation>;
|
|
1386
|
+
export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
|
|
1387
|
+
export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
|
|
1328
1388
|
export declare const UpdateProfileDocument: Apollo.DocumentNode;
|
|
1329
1389
|
export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMutation, IUpdateProfileMutationVariables>;
|
|
1330
1390
|
/**
|
|
@@ -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.useGetMyInviteCodesLazyQuery = exports.useGetMyInviteCodesQuery = exports.GetMyInviteCodesDocument = exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = void 0;
|
|
26
|
+
exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMyProfileLazyQuery = exports.useFetchMyProfileQuery = exports.FetchMyProfileDocument = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSignInAdminMetamaskMutation = exports.SignInAdminMetamaskDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useSaveEmailOfJoinerMutation = exports.SaveEmailOfJoinerDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.IRole = void 0;
|
|
27
|
+
exports.useGetMyInviteCodesLazyQuery = exports.useGetMyInviteCodesQuery = exports.GetMyInviteCodesDocument = exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var IRole;
|
|
@@ -596,6 +596,50 @@ function useSignInTezosMutation(baseOptions) {
|
|
|
596
596
|
return Apollo.useMutation(exports.SignInTezosDocument, baseOptions);
|
|
597
597
|
}
|
|
598
598
|
exports.useSignInTezosMutation = useSignInTezosMutation;
|
|
599
|
+
exports.SignInTonDocument = (0, client_1.gql) `
|
|
600
|
+
mutation SignInTon($signature: String!, $address: String!, $restore: Boolean) {
|
|
601
|
+
signInTon(signature: $signature, address: $address, restore: $restore) {
|
|
602
|
+
userId
|
|
603
|
+
wallets
|
|
604
|
+
tokens {
|
|
605
|
+
portalTokenPair {
|
|
606
|
+
authToken
|
|
607
|
+
refreshToken
|
|
608
|
+
}
|
|
609
|
+
extensionTokenPair {
|
|
610
|
+
authToken
|
|
611
|
+
refreshToken
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
newUser
|
|
615
|
+
inviteCode
|
|
616
|
+
role
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
`;
|
|
620
|
+
/**
|
|
621
|
+
* __useSignInTonMutation__
|
|
622
|
+
*
|
|
623
|
+
* To run a mutation, you first call `useSignInTonMutation` within a React component and pass it any options that fit your needs.
|
|
624
|
+
* When your component renders, `useSignInTonMutation` returns a tuple that includes:
|
|
625
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
626
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
627
|
+
*
|
|
628
|
+
* @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;
|
|
629
|
+
*
|
|
630
|
+
* @example
|
|
631
|
+
* const [signInTonMutation, { data, loading, error }] = useSignInTonMutation({
|
|
632
|
+
* variables: {
|
|
633
|
+
* signature: // value for 'signature'
|
|
634
|
+
* address: // value for 'address'
|
|
635
|
+
* restore: // value for 'restore'
|
|
636
|
+
* },
|
|
637
|
+
* });
|
|
638
|
+
*/
|
|
639
|
+
function useSignInTonMutation(baseOptions) {
|
|
640
|
+
return Apollo.useMutation(exports.SignInTonDocument, baseOptions);
|
|
641
|
+
}
|
|
642
|
+
exports.useSignInTonMutation = useSignInTonMutation;
|
|
599
643
|
exports.UpdateProfileDocument = (0, client_1.gql) `
|
|
600
644
|
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean) {
|
|
601
645
|
updateProfile(
|
|
@@ -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
|
@@ -612,6 +612,15 @@ declare const schema: {
|
|
|
612
612
|
signature: string;
|
|
613
613
|
pubkey: string;
|
|
614
614
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
615
|
+
useSignInTonMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.ISignInTonMutation, identitySchema.Exact<{
|
|
616
|
+
signature: string;
|
|
617
|
+
address: string;
|
|
618
|
+
restore?: identitySchema.Maybe<boolean> | undefined;
|
|
619
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.ISignInTonMutation, identitySchema.Exact<{
|
|
620
|
+
signature: string;
|
|
621
|
+
address: string;
|
|
622
|
+
restore?: identitySchema.Maybe<boolean> | undefined;
|
|
623
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
615
624
|
useUpdateProfileMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IUpdateProfileMutation, identitySchema.Exact<{
|
|
616
625
|
username?: identitySchema.Maybe<string> | undefined;
|
|
617
626
|
about?: identitySchema.Maybe<string> | undefined;
|
|
@@ -707,6 +716,7 @@ declare const schema: {
|
|
|
707
716
|
SignInMetamaskDocument: import("graphql").DocumentNode;
|
|
708
717
|
SignInSolanaDocument: import("graphql").DocumentNode;
|
|
709
718
|
SignInTezosDocument: import("graphql").DocumentNode;
|
|
719
|
+
SignInTonDocument: import("graphql").DocumentNode;
|
|
710
720
|
UpdateProfileDocument: import("graphql").DocumentNode;
|
|
711
721
|
FetchMultiversXAuditDocument: import("graphql").DocumentNode;
|
|
712
722
|
FetchMyProfileDocument: import("graphql").DocumentNode;
|
|
@@ -1131,6 +1141,15 @@ declare const schema: {
|
|
|
1131
1141
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IRemoveInviteCodeMutation, adminSchema.Exact<{
|
|
1132
1142
|
inviteCode: string;
|
|
1133
1143
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1144
|
+
useUpdateBrandMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateBrandMutation, adminSchema.Exact<{
|
|
1145
|
+
id: string;
|
|
1146
|
+
input: adminSchema.IBrandInput;
|
|
1147
|
+
file?: any;
|
|
1148
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateBrandMutation, adminSchema.Exact<{
|
|
1149
|
+
id: string;
|
|
1150
|
+
input: adminSchema.IBrandInput;
|
|
1151
|
+
file?: any;
|
|
1152
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1134
1153
|
useUpdateBrandArchivedStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateBrandArchivedStatusMutation, adminSchema.Exact<{
|
|
1135
1154
|
id: string;
|
|
1136
1155
|
isArchived: boolean;
|
|
@@ -1138,6 +1157,13 @@ declare const schema: {
|
|
|
1138
1157
|
id: string;
|
|
1139
1158
|
isArchived: boolean;
|
|
1140
1159
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1160
|
+
useUpdateCategoryMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateCategoryMutation, adminSchema.Exact<{
|
|
1161
|
+
id: string;
|
|
1162
|
+
input: adminSchema.ICategoryInput;
|
|
1163
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateCategoryMutation, adminSchema.Exact<{
|
|
1164
|
+
id: string;
|
|
1165
|
+
input: adminSchema.ICategoryInput;
|
|
1166
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1141
1167
|
useUpdateCategoryArchivedStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateCategoryArchivedStatusMutation, adminSchema.Exact<{
|
|
1142
1168
|
id: string;
|
|
1143
1169
|
isArchived: boolean;
|
|
@@ -1145,6 +1171,15 @@ declare const schema: {
|
|
|
1145
1171
|
id: string;
|
|
1146
1172
|
isArchived: boolean;
|
|
1147
1173
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1174
|
+
useUpdateOpportunityMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateOpportunityMutation, adminSchema.Exact<{
|
|
1175
|
+
id: string;
|
|
1176
|
+
input: adminSchema.IAdminOpportunityInput;
|
|
1177
|
+
file?: any;
|
|
1178
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateOpportunityMutation, adminSchema.Exact<{
|
|
1179
|
+
id: string;
|
|
1180
|
+
input: adminSchema.IAdminOpportunityInput;
|
|
1181
|
+
file?: any;
|
|
1182
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1148
1183
|
useUpdateProfileStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateProfileStatusMutation, adminSchema.Exact<{
|
|
1149
1184
|
userId: string;
|
|
1150
1185
|
isActive: boolean;
|
|
@@ -1452,8 +1487,11 @@ declare const schema: {
|
|
|
1452
1487
|
CreateAdminOpportunityDocument: import("graphql").DocumentNode;
|
|
1453
1488
|
AddInviteCodesDocument: import("graphql").DocumentNode;
|
|
1454
1489
|
RemoveInviteCodeDocument: import("graphql").DocumentNode;
|
|
1490
|
+
UpdateBrandDocument: import("graphql").DocumentNode;
|
|
1455
1491
|
UpdateBrandArchivedStatusDocument: import("graphql").DocumentNode;
|
|
1492
|
+
UpdateCategoryDocument: import("graphql").DocumentNode;
|
|
1456
1493
|
UpdateCategoryArchivedStatusDocument: import("graphql").DocumentNode;
|
|
1494
|
+
UpdateOpportunityDocument: import("graphql").DocumentNode;
|
|
1457
1495
|
UpdateProfileStatusDocument: import("graphql").DocumentNode;
|
|
1458
1496
|
CheckInviteCodeDocument: import("graphql").DocumentNode;
|
|
1459
1497
|
FetchContactSupportPageDocument: import("graphql").DocumentNode;
|