index.js 1022 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * Generated by orval v7.2.0 🍺
  3. * Do not edit manually.
  4. * Api documentation
  5. * OpenAPI spec version: 1.0.0
  6. */
  7. import axios from 'axios';
  8. // eslint-disable-next-line @typescript-eslint/no-redeclare
  9. export const PdfCtrlSyncJobStatus202Status = {
  10. HTML_EXPORT_IN_PROGRESS: 'HTML_EXPORT_IN_PROGRESS',
  11. HTML_EXPORT_DONE: 'HTML_EXPORT_DONE',
  12. FAILED: 'FAILED',
  13. PDF_EXPORT_DONE: 'PDF_EXPORT_DONE',
  14. };
  15. // eslint-disable-next-line @typescript-eslint/no-redeclare
  16. export const PdfCtrlSyncJobStatusBodyStatus = {
  17. HTML_EXPORT_IN_PROGRESS: 'HTML_EXPORT_IN_PROGRESS',
  18. HTML_EXPORT_DONE: 'HTML_EXPORT_DONE',
  19. FAILED: 'FAILED',
  20. };
  21. /**
  22. *
  23. Sync job pdf convert status with GROWI.
  24. Register or update job inside pdf-converter with given jobId, expirationDate, and status.
  25. Return resulting status of job to GROWI.
  26. */
  27. export const pdfCtrlSyncJobStatus = (pdfCtrlSyncJobStatusBody, options) => {
  28. return axios.post(`/pdf/sync-job`, pdfCtrlSyncJobStatusBody, options);
  29. };
  30. //# sourceMappingURL=index.js.map