//! GENERATED FILE // IMPORTS import { DATA_FUNCTION } from "@idot-digital/function-generator/dist/function.js"; import { ExpressPost, ExpressPostClient } from "@idot-digital/function-generator/dist/index.client.js"; import * as Auth0 from ".././layer/Auth0/auth0.js"; import { Auth0Client } from ".././layer/Auth0/auth0.client.js" // DATA TYPE import z from "zod"; import { DATA_FROM_ZOD } from "@idot-digital/function-generator/dist/index.client.js"; import { url } from "../config.client.js"; import { OkResult, userData } from "../types.js"; const FUNC_ZOD = { REQ: z .object({ id: z.number(), }) .strict(), OPT: z.object({ uid: z.string() }), RES: OkResult, }; export type DATA = DATA_FROM_ZOD; const CLIENT_SETTINGS = { path: "/deleteLink", url, }; // LAYER type Auth0ServerType = Auth0.SERVER_TRANSFORMER; type ExpressPostType = ExpressPost.TRANSPORT_TRANSFORMER; type Auth0ClientType = Auth0.CLIENT_TRANSFORMER; export type deleteLinkClientType = Auth0ClientType; const ExpressPostRun = ExpressPostClient.create(CLIENT_SETTINGS).run; const Auth0Run = Auth0Client.create(CLIENT_SETTINGS).attach(ExpressPostRun).run; export const deleteLink = Auth0Run as DATA_FUNCTION;