{"version":3,"sources":["webpack:///./node_modules/@abaco/timesheet-module/src/modules/timesheet-module/api/WorkerApi.ts"],"names":["WorkerApi","http","rootPath","this","pk_cuaa","paging","filter","get","params","offset","count","toUpperCase","undefined","res","data"],"mappings":"uMAIqBA,G,+BAKjB,WAAYC,EAAkBC,GAAgB,uBAC1CC,KAAKF,KAAOA,EACZE,KAAKD,SAAWA,E,0GAGb,WAAiBE,EAAiBC,EAAsBC,GAAxD,uGACeH,KAAKF,KAAKM,IAAV,UAAiBJ,KAAKD,SAAtB,8BAAoDE,EAApD,uBAAkF,CAChGI,OAAQ,CACJC,OAAQJ,EAAOI,OACfC,MAAOL,EAAOK,MACdJ,OAAQA,EAAS,2BAAH,OAA8BA,EAAOK,oBAAkBC,KAL1E,cACGC,EADH,yBASIA,EAAIC,MATR,gD","file":"js/chunk-2d0c0df3.da0f5ad0.js","sourcesContent":["import { HTTPClient } from '@abaco/web-common/src/HTTP';\nimport { PagedResults, PagingParams } from '@abaco/web-common/src/Paging';\nimport { Worker } from '../models/Worker';\n\nexport default class WorkerApi {\n\n private http: HTTPClient;\n private rootPath: string;\n\n constructor(http: HTTPClient, rootPath: string) {\n this.http = http;\n this.rootPath = rootPath;\n }\n\n public async getWorkers(pk_cuaa: number, paging: PagingParams, filter: string | null): Promise>{\n const res = await this.http.get(`${this.rootPath}/v1/plots/subjects/${pk_cuaa}/dictionary_workers`, {\n params: {\n offset: paging.offset,\n count: paging.count,\n filter: filter ? `^subject_full_name like ${filter.toUpperCase()}` : undefined\n }\n })\n\n return res.data;\n }\n}\n"],"sourceRoot":""}