2023-07-23 10:08:43 -05:00
|
|
|
import { gql } from 'graphql-tag'
|
2022-05-12 13:44:21 -05:00
|
|
|
|
|
|
|
export default gql`
|
2024-09-13 16:26:08 +02:00
|
|
|
type UploadFees {
|
|
|
|
totalFees: Int!
|
|
|
|
totalFeesMsats: Int!
|
|
|
|
uploadFees: Int!
|
|
|
|
uploadFeesMsats: Int!
|
|
|
|
nUnpaid: Int!
|
|
|
|
bytesUnpaid: Int!
|
|
|
|
bytes24h: Int!
|
2022-05-12 13:44:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
type SignedPost {
|
|
|
|
url: String!
|
|
|
|
fields: JSONObject!
|
|
|
|
}
|
2024-09-13 16:26:08 +02: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 13:44:21 -05:00
|
|
|
`
|