From 99716bd2cec6ba523a8eec8691ffc41c34470014 Mon Sep 17 00:00:00 2001 From: Alan Le Ruyet Date: Wed, 22 Nov 2023 18:24:50 +0100 Subject: [PATCH] feat: oups --- shared/models/apicalls.model.ts | 16 ++++++++++++++++ shared/models/index.ts | 1 + 2 files changed, 17 insertions(+) create mode 100644 shared/models/apicalls.model.ts diff --git a/shared/models/apicalls.model.ts b/shared/models/apicalls.model.ts new file mode 100644 index 0000000000..af29f1f96d --- /dev/null +++ b/shared/models/apicalls.model.ts @@ -0,0 +1,16 @@ +import { z } from "../helpers/zodWithOpenApi" + +import { zObjectId } from "./common" + +export const ZApiCall = z + .object({ + _id: zObjectId, + caller: z.string(), + api_path: z.string(), + response: z.string(), + result_count: z.number(), + job_count: z.number(), + training_count: z.number(), + created_at: z.date(), + }) + .strict() diff --git a/shared/models/index.ts b/shared/models/index.ts index 58d7eea422..f8dabb4dde 100644 --- a/shared/models/index.ts +++ b/shared/models/index.ts @@ -21,3 +21,4 @@ export * from "./geolocations.model" export * from "./unsubscribedLbaCompany.model" export * from "./unsubscribeOF.model" export * from "./usersRecruteur.model" +export * from "./apicalls.model"