u
This commit is contained in:
@@ -61,4 +61,30 @@ export const quote = {
|
||||
return http(`/api/quote/${id}`, { method: 'DELETE' });
|
||||
},
|
||||
// #endregion
|
||||
|
||||
/**
|
||||
* POST /api/quote/:id/pdf
|
||||
* Generates and attaches quote PDF.
|
||||
* @param {number|string} id Quote ID
|
||||
* → 201 { attachment: object, fileUrl: string }
|
||||
*/
|
||||
// #region POST /api/quote/:id/pdf — createPdf
|
||||
createPdf(id) {
|
||||
return http(`/api/quote/${id}/pdf`, { method: 'POST' });
|
||||
},
|
||||
// #endregion
|
||||
|
||||
/**
|
||||
* DELETE /api/quote/:id/file/:fileId
|
||||
* Deletes quote attachment file.
|
||||
* @param {number|string} id Quote ID
|
||||
* @param {number|string} fileId File ID
|
||||
* → 204 void
|
||||
*/
|
||||
// #region DELETE /api/quote/:id/file/:fileId — deleteFile
|
||||
deleteFile(id, fileId) {
|
||||
return http(`/api/quote/${id}/file/${fileId}`, { method: 'DELETE' });
|
||||
},
|
||||
// #endregion
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user