Merge pull request #786 from Tria-plc/freight_feature/usermanagement

split export
This commit is contained in:
marshal
2026-07-18 12:20:48 +03:00
committed by GitHub
14 changed files with 1092 additions and 41 deletions

View File

@@ -164,8 +164,11 @@ export const contractsService = {
};
},
getById: async (id: string): Promise<Freight.IContract> => {
const response = await client.get<Freight.IContract>(C.BY_ID(id));
getById: async (
id: string,
opts?: { suppressErrorModal?: boolean },
): Promise<Freight.IContract> => {
const response = await client.get<Freight.IContract>(C.BY_ID(id), opts);
return unwrap(response.data) as Freight.IContract;
},
@@ -258,8 +261,11 @@ export const contractsService = {
};
},
getClearance: async (id: string): Promise<Freight.ContractClearanceView> => {
const response = await client.get(C.CLEARANCE(id));
getClearance: async (
id: string,
opts?: { suppressErrorModal?: boolean },
): Promise<Freight.ContractClearanceView> => {
const response = await client.get(C.CLEARANCE(id), opts);
return unwrap(response.data) as Freight.ContractClearanceView;
},