2701-как будто ок днд работает

This commit is contained in:
2026-01-27 12:09:54 +03:00
parent de4bd9c8d7
commit 1e2d43be8e
13 changed files with 10257 additions and 175 deletions

View File

@@ -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;