factura-middle
Version:
Factura+ queries definitions
44 lines (34 loc) • 949 B
text/typescript
import { ObjectType, Field } from 'type-graphql';
import { BaseResponse } from '../../entities/baseResponse';
import {Agency} from './model'
export class DeleteAgencyOutput extends BaseResponse {
constructor(data: any) {
super();
this.message = data.message;
this.success = data.success;
this.description = data.description;
}
}
export class AddAgencyOutput extends BaseResponse {
constructor(data: any) {
super();
this.message = data.message;
this.success = data.success;
this.description = data.description;
this.data = data.data;
}
data?: Agency;
}
export class GetUserAgenciesOutput extends BaseResponse {
constructor(data: any) {
super();
this.message = data.message;
this.success = data.success;
this.description = data.description;
this.data = data.data;
}
data?: Agency[];
}