import z from "zod"; import { ServiceClient } from "../../service-client"; import { CreateProcessModelSchema, DeleteProcessModelSchema, ListProcessModelsSchema, UpdateProcessModelSchema } from "./schema"; import { TProcessModel } from "./types"; export class BpmService extends ServiceClient { protected getServiceName(): string { return 'com.appconda.service.bpm'; } public async CreateProcessModel(payload: z.infer): Promise { return await this.actionCall('process-model', 'CreateProcessModel', payload); } public async UpdateProcessModel(payload: z.infer): Promise { return await this.actionCall('process-model', 'UpdateProcessModel', payload); } public async ListProcessModels(payload: z.infer): Promise { debugger return await this.actionCall('process-model', 'ListProcessModels', payload); } public async DeleteProcessModel(payload: z.infer): Promise { return await this.actionCall('process-model', 'DeleteProcessModel', payload); } }