@mojito-inc/core-service
Advanced tools
Comparing version 1.0.8-beta.3 to 1.0.8-beta.4
@@ -26,2 +26,3 @@ export interface NetworkData { | ||
animationType?: string; | ||
downloadVideo?: string; | ||
} | ||
@@ -28,0 +29,0 @@ export declare enum TokenStatus { |
@@ -74,2 +74,3 @@ import { gql } from '@apollo/client'; | ||
animationType | ||
downloadVideo | ||
} | ||
@@ -76,0 +77,0 @@ contractName |
@@ -7,1 +7,2 @@ export * from './AllRegistryTokenData'; | ||
export * from './AllInvoicesData'; | ||
export * from './FileSignedUrlData'; |
@@ -7,1 +7,2 @@ export * from './AllRegistryTokenParam'; | ||
export * from './AllInvoicesParam'; | ||
export * from './FileSignedUrlParam'; |
import { Response } from '../data'; | ||
import { GetNFTFavoriteListByUserData, AddNFTToFavoriteData, RemoveNFTFromFavoriteData, GetAllRegistryTokensData, GetNFTAttributesRarityData, GetNFTDetailsData, GetNFTHistoryData, InitiateBuyNFTData, UpdateTransactionHashData, GenerateSecondaryInvoiceData, UserOrderActivityData, TransferNFTData, GetAllInvoicesData, GeneratePrimaryInvoiceData } from './NFTData'; | ||
import { GetNFTFavoriteListByUserData, AddNFTToFavoriteData, RemoveNFTFromFavoriteData, GetAllRegistryTokensData, GetNFTAttributesRarityData, GetNFTDetailsData, GetNFTHistoryData, InitiateBuyNFTData, UpdateTransactionHashData, GenerateSecondaryInvoiceData, UserOrderActivityData, TransferNFTData, GetAllInvoicesData, GeneratePrimaryInvoiceData, FileSignedUrlData } from './NFTData'; | ||
import { QueryOptions } from '../domain'; | ||
import { FavoriteListByUserParam, FavoriteParam, GetAllRegistryTokensParam, GetNFTAttributesRarityParam, GetNFTDetailsParam, GetNFTHistoryParam, InitiateBuyNFTParam, UpdateTransactionHashParam, GenerateSecondaryInvoiceParam, GetUserOrderActivityParam, TransferNFTParam, GetAllInvoicesParam, GeneratePrimaryInvoiceParam } from './NFTParam'; | ||
import { FavoriteListByUserParam, FavoriteParam, GetAllRegistryTokensParam, GetNFTAttributesRarityParam, GetNFTDetailsParam, GetNFTHistoryParam, InitiateBuyNFTParam, UpdateTransactionHashParam, GenerateSecondaryInvoiceParam, GetUserOrderActivityParam, TransferNFTParam, GetAllInvoicesParam, GeneratePrimaryInvoiceParam, FileSignedUrlParam } from './NFTParam'; | ||
export interface NFTService { | ||
@@ -174,2 +174,14 @@ /** | ||
getAllInvoices: (param: GetAllInvoicesParam, options?: QueryOptions) => Promise<Response<GetAllInvoicesData>>; | ||
/** | ||
* Returns the url data | ||
* | ||
* @remarks | ||
* This method is part of NFT service | ||
* | ||
* @param param - get FileSignedUrl param {@link FileSignedUrlParam} | ||
* @param options - graphql fetch query options {@link QueryOptions} | ||
* @returns {@link FileSignedUrlData} FileSigned Url | ||
* | ||
*/ | ||
getFileSignedUrl: (param: FileSignedUrlParam, options?: QueryOptions) => Promise<Response<FileSignedUrlData>>; | ||
} |
@@ -7,1 +7,2 @@ export * from './AllRegistryTokenQueries'; | ||
export * from './AllInvoicesQueries'; | ||
export * from './FileSignedUrlQueries'; |
@@ -10,2 +10,3 @@ import { __awaiter } from '../_virtual/_tslib.js'; | ||
import { getAllInvoicesQueries } from './Queries/AllInvoicesQueries.js'; | ||
import { getFileSignedURLMutation } from './Queries/FileSignedUrlQueries.js'; | ||
@@ -93,2 +94,7 @@ /** | ||
}), [client]); | ||
const getFileSignedUrl = useCallback((param, options) => __awaiter(void 0, void 0, void 0, function* () { | ||
const response = yield client.mutate(Object.assign(Object.assign({}, options), { mutation: getFileSignedURLMutation, variables: param })); | ||
const responseData = response.data; | ||
return { data: responseData }; | ||
}), [client]); | ||
return useMemo(() => { | ||
@@ -110,2 +116,3 @@ return { | ||
getAllInvoices, | ||
getFileSignedUrl, | ||
}; | ||
@@ -127,2 +134,3 @@ }, [ | ||
getAllInvoices, | ||
getFileSignedUrl, | ||
]); | ||
@@ -129,0 +137,0 @@ }; |
{ | ||
"name": "@mojito-inc/core-service", | ||
"version": "1.0.8-beta.3", | ||
"version": "1.0.8-beta.4", | ||
"description": "Mojito Core API service for auction, payment, token", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
389911
253
10386
2577
0