phx-react
Version:
PHX REACT
4 lines (3 loc) • 1.49 kB
TypeScript
export declare const returnBorrowBookMutation = "\n mutation returnBorrowBookMutation(\n $inWarehouseIdArray: [Int!]!\n $inBookshelfIdArray: [Int!]!\n $borrowBookIdArray: [Int!]!\n $inWarehouseStateId: Int!\n $inBookshelfStateId: Int!\n ) {\n moveBookToWarehouse: update_library_dang_ki_ca_biet(\n where: { id: { _in: $inWarehouseIdArray }}\n _set: {state_id: $inWarehouseStateId, updated_at: now}\n ) {\n affected_rows\n }\n\n moveBookToBookshelf: update_library_dang_ki_ca_biet(\n where: { id: { _in: $inBookshelfIdArray }}\n _set: {state_id: $inBookshelfStateId, updated_at: now }\n ) {\n affected_rows\n }\n\n updateBorrowBook: update_library_borrow_book(\n where: {\n id: {_in: $borrowBookIdArray}\n }\n _set: {return_date: now, updated_at: now}\n ) {\n affected_rows\n }\n }\n";
export declare const getTicketStateListQuery = "\n query getTicketStateListQuery($school_id: Int!) {\n library_ticket_state(\n where: {deleted_at: {_is_null: true}, school_id: {_eq: $school_id}}\n ) {\n name\n id\n code\n }\n }\n";
export declare const returnBorrowTicketMutation = "\n mutation returnBorrowTicketMutation($idArray: [Int!]!, $returnStateId: Int!) {\n update_library_borrow_ticket(\n where: {id: {_in: $idArray}}\n _set: {updated_at: now, ticket_state_id: $returnStateId, actual_return_date: now }\n ) {\n affected_rows\n }\n }\n";