2023-07-23 15:08:43 +00:00
|
|
|
import { gql } from 'graphql-tag'
|
2022-05-12 18:44:21 +00:00
|
|
|
|
|
|
|
export default gql`
|
2024-09-13 14:26:08 +00:00
|
|
|
type UploadFees {
|
|
|
|
totalFees: Int!
|
|
|
|
totalFeesMsats: Int!
|
|
|
|
uploadFees: Int!
|
|
|
|
uploadFeesMsats: Int!
|
|
|
|
nUnpaid: Int!
|
|
|
|
bytesUnpaid: Int!
|
|
|
|
bytes24h: Int!
|
2022-05-12 18:44:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SignedPost {
|
|
|
|
url: String!
|
|
|
|
fields: JSONObject!
|
|
|
|
}
|
2024-09-13 14:26:08 +00:00
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
uploadFees(s3Keys: [Int]!): UploadFees!
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
getSignedPOST(type: String!, size: Int!, width: Int!, height: Int!, avatar: Boolean): SignedPost!
|
|
|
|
}
|
2022-05-12 18:44:21 +00:00
|
|
|
`
|