{"version":3,"sources":["webpack:///./node_modules/@abaco/processes-module/src/modules/processes/api/PrintApi.ts"],"names":["PrintApi","http","rootPath","this","processId","printTypeId","post","res","data","get"],"mappings":"yMASqBA,G,+BAKjB,WAAYC,EAAkBC,GAAgB,uBAC1CC,KAAKF,KAAOA,EACZE,KAAKD,SAAWA,E,2GAGpB,WAAkBE,EAAmBC,GAArC,uGACsBF,KAAKF,KAAKK,KAAV,oEAA4EF,EAA5E,mBAAgGC,IADtH,cACUE,EADV,yBAEWA,EAAIC,MAFf,gD,mJAKA,WAAuBJ,GAAvB,uGACsBD,KAAKF,KAAKQ,IAAV,oEAA2EL,EAA3E,uBADtB,cACUG,EADV,yBAEWA,EAAIC,MAFf,gD","file":"js/chunk-2d0f069f.699892bb.js","sourcesContent":["import { Anomaly } from '../models/Anomalies';\nimport { FormCategory, FormIn } from '../models/Forms';\nimport { Print, PrintTypeUI } from '../models/Prints';\nimport { BaseProcess, ProcessFilter, ProcessHistory, ProcessIn, ProcessTypeIn, Status, QueueResult, ProcessType } from '../models/Processes';\nimport { Farm } from '@abaco/farm-registry/src/modules/farm-registry/models/Farm';\nimport SSOModule from '@abaco/sso-web-module/src/abaco-module';\nimport { HTTPClient, propsToDate, propsToDatePaged } from '@abaco/web-common/src/HTTP';\nimport { PagedResults, PagingParams } from '@abaco/web-common/src/Paging';\n\nexport default class PrintApi {\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 async insertPrint(processId: number, printTypeId: string): Promise {\n const res = await this.http.post(`/sitiagri-rest-api/api_basic/v1/applications/applications/${processId}/prints/${printTypeId}`);\n return res.data;\n }\n\n async getProcessPrints(processId: number): Promise> {\n const res = await this.http.get(`/sitiagri-rest-api/api_basic/v1/applications/applications/${processId}/dictionary_prints`);\n return res.data;\n // let res: PrintTypeUI[] = [];\n // let el: PrintTypeUI = {\n // app_type_id: 123,\n // fg_active: 1,\n // fg_main_print: 1,\n // in_queue: 0,\n // output_type: \"PDF\",\n // parameters: [],\n // print_name: \"Cs agreement document\",\n // print_type_id: \"asd\",\n // sco_output_type: \"PDF\",\n // };\n // res.push(el);\n // el = {\n // app_type_id: 123,\n // fg_active: 1,\n // fg_main_print: 1,\n // in_queue: 0,\n // output_type: \"PDF\",\n // parameters: [],\n // print_name: \"Application documentation\",\n // print_type_id: \"asd\",\n // sco_output_type: \"PDF\",\n // };\n // res.push(el);\n // el = {\n // app_type_id: 123,\n // fg_active: 1,\n // fg_main_print: 1,\n // in_queue: 0,\n // output_type: \"PDF\",\n // parameters: [],\n // print_name: \"Forms applied\",\n // print_type_id: \"asd\",\n // sco_output_type: \"PDF\",\n // };\n // res.push(el);\n // return {totalcount: 3, offset: 0, records: res, count: 3};\n }\n\n}\n"],"sourceRoot":""}