2022-12-25 20:10:23 +00:00
|
|
|
import { getTariffParams, tariffBody, replaceTariffParams } from "./inputs";
|
2022-12-22 10:45:44 +00:00
|
|
|
import { getTariffReponse, getTariffsReponse, createTariffReponse, replaceTariffReponse } from "./responses";
|
|
|
|
|
|
|
|
import type { SwaggerSchema } from "@/types/swagger.type";
|
|
|
|
|
|
|
|
export const getTariffSchema: SwaggerSchema = {
|
|
|
|
summary: "Получение тарифа",
|
|
|
|
tags: ["tariff"],
|
|
|
|
params: getTariffParams,
|
|
|
|
response: getTariffReponse,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const getTariffsSchema: SwaggerSchema = {
|
|
|
|
summary: "Получение списка тарифов",
|
|
|
|
tags: ["tariff"],
|
|
|
|
response: getTariffsReponse,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const createTariffsSchema: SwaggerSchema = {
|
|
|
|
summary: "Создание тарифа",
|
|
|
|
tags: ["tariff"],
|
|
|
|
body: tariffBody,
|
2022-12-25 20:10:23 +00:00
|
|
|
security: [{ bearer: [] }],
|
2022-12-22 10:45:44 +00:00
|
|
|
response: createTariffReponse,
|
|
|
|
};
|
|
|
|
export const replaceTariffsSchema: SwaggerSchema = {
|
|
|
|
summary: "Замена тарифа",
|
|
|
|
tags: ["tariff"],
|
2022-12-25 20:10:23 +00:00
|
|
|
params: replaceTariffParams,
|
2022-12-22 10:45:44 +00:00
|
|
|
body: tariffBody,
|
2022-12-25 20:10:23 +00:00
|
|
|
security: [{ bearer: [] }],
|
2022-12-22 10:45:44 +00:00
|
|
|
response: replaceTariffReponse,
|
|
|
|
};
|