mirror of
https://github.com/serty2005/rmser.git
synced 2026-02-05 03:12:34 -06:00
2701-как будто ок днд работает
This commit is contained in:
@@ -18,6 +18,7 @@ import type {
|
||||
DraftItem,
|
||||
UpdateDraftItemRequest,
|
||||
CommitDraftRequest,
|
||||
ReorderDraftItemsRequest,
|
||||
ProductSearchResult,
|
||||
AddContainerRequest,
|
||||
AddContainerResponse,
|
||||
@@ -208,6 +209,10 @@ export const api = {
|
||||
await apiClient.delete(`/drafts/${draftId}/items/${itemId}`);
|
||||
},
|
||||
|
||||
reorderDraftItems: async (draftId: string, payload: ReorderDraftItemsRequest): Promise<void> => {
|
||||
await apiClient.post(`/drafts/${draftId}/reorder`, payload);
|
||||
},
|
||||
|
||||
commitDraft: async (draftId: string, payload: CommitDraftRequest): Promise<{ document_number: string }> => {
|
||||
const { data } = await apiClient.post<{ document_number: string }>(`/drafts/${draftId}/commit`, payload);
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user