16 lines
369 B
TypeScript
16 lines
369 B
TypeScript
import sendRequest from "services";
|
|
import endpoints from "utilities/endpoints";
|
|
|
|
export type IAutofillPolicy = {
|
|
description: string;
|
|
resolution: string;
|
|
};
|
|
|
|
export default {
|
|
getPolicyInterpretationFromSQL: (sql: string): Promise<IAutofillPolicy> => {
|
|
const { AUTOFILL_POLICY } = endpoints;
|
|
|
|
return sendRequest("POST", AUTOFILL_POLICY, { sql });
|
|
},
|
|
};
|