@mojito-inc/core-service
Advanced tools
Comparing version 1.0.8-beta.4 to 1.0.8-beta.5
@@ -1,1 +0,1 @@ | ||
export declare const getFileSignedURLMutation: import("@apollo/client").DocumentNode; | ||
export declare const getFileSignedURLQuery: import("@apollo/client").DocumentNode; |
import { gql } from '@apollo/client'; | ||
const getFileSignedURLMutation = gql ` | ||
mutation ($urlInput: FileSignedWithURL, $input: FileSignedWithGatingInput) { | ||
const getFileSignedURLQuery = gql ` | ||
query ($urlInput: FileSignedWithURL, $input: FileSignedWithGatingInput) { | ||
getFileSignedURL(urlInput: $urlInput, input: $input) | ||
@@ -15,2 +15,2 @@ { | ||
export { getFileSignedURLMutation }; | ||
export { getFileSignedURLQuery }; |
@@ -10,3 +10,3 @@ import { __awaiter } from '../_virtual/_tslib.js'; | ||
import { getAllInvoicesQueries } from './Queries/AllInvoicesQueries.js'; | ||
import { getFileSignedURLMutation } from './Queries/FileSignedUrlQueries.js'; | ||
import { getFileSignedURLQuery } from './Queries/FileSignedUrlQueries.js'; | ||
@@ -95,3 +95,3 @@ /** | ||
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 response = yield client.query(Object.assign(Object.assign({}, options), { query: getFileSignedURLQuery, variables: param })); | ||
const responseData = response.data; | ||
@@ -98,0 +98,0 @@ return { data: responseData }; |
{ | ||
"name": "@mojito-inc/core-service", | ||
"version": "1.0.8-beta.4", | ||
"version": "1.0.8-beta.5", | ||
"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 not supported yet
Sorry, the diff of this file is too big to display
389904