@accounter/server
Version:
Accounter GraphQL server
41 lines (36 loc) • 885 B
text/typescript
import { gql } from 'graphql-modules';
export default gql`
extend type Query {
greenInvoiceClient(clientId: UUID!): GreenInvoiceClient!
(roles: ["business_owner", "accountant"])
}
extend type Mutation {
syncGreenInvoiceDocuments(ownerId: UUID!, singlePageLimit: Boolean): [Document!]!
(role: "business_owner")
}
extend type IssuedDocumentInfo {
originalDocument: DocumentDraft
}
extend type ClientIntegrations {
greenInvoiceInfo: GreenInvoiceClient
}
" client info "
type GreenInvoiceClient {
country: Country
emails: [String!]
greenInvoiceId: ID
businessId: UUID!
name: String
phone: String
taxId: String
self: Boolean
address: String
city: String
zip: String
fax: String
mobile: String
add: Boolean
}
`;