UNPKG

@topgroup/diginext

Version:

A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.

162 lines 5.73 kB
/// <reference types="mongoose/types/aggregate" /> /// <reference types="mongoose/types/callback" /> /// <reference types="mongoose/types/collection" /> /// <reference types="mongoose/types/connection" /> /// <reference types="mongoose/types/cursor" /> /// <reference types="mongoose/types/document" /> /// <reference types="mongoose/types/error" /> /// <reference types="mongoose/types/expressions" /> /// <reference types="mongoose/types/helpers" /> /// <reference types="mongoose/types/middlewares" /> /// <reference types="mongoose/types/indexes" /> /// <reference types="mongoose/types/models" /> /// <reference types="mongoose/types/mongooseoptions" /> /// <reference types="mongoose/types/pipelinestage" /> /// <reference types="mongoose/types/populate" /> /// <reference types="mongoose/types/query" /> /// <reference types="mongoose/types/schemaoptions" /> /// <reference types="mongoose/types/schematypes" /> /// <reference types="mongoose/types/session" /> /// <reference types="mongoose/types/types" /> /// <reference types="mongoose/types/utility" /> /// <reference types="mongoose/types/validation" /> /// <reference types="mongoose/types/virtuals" /> /// <reference types="mongoose/types/inferschematype" /> import { Schema } from "mongoose"; import type { HiddenBodyKeys } from "../interfaces"; import type { LogType } from "../interfaces/SystemTypes"; import type { IBase } from "./Base"; export /** * An interface that extends IBase and describes the properties of an activity. * * @interface ISystemLog * @extends {IBase} */ interface ISystemLog extends IBase { /** * The name of the log. * * @type {string} * @memberof ISystemLog */ name?: string; /** * The type of the log. * * @type {LogType} * @memberof ISystemLog */ type?: LogType; /** * A message associated with the log. * * @type {string} * @memberof ISystemLog */ message?: string; /** * The prioritized level of the log: * - `1` -> DEBUG: diagnostic information, intended debug message. * - `2` -> WARN: detected an unexpected application problem, might or might not harm the application in the future. * - `3` -> ERROR: failure of something important in your application * - `4` -> FATAL: a serious problem or corruption is happening. * * @type {1 | 2 | 3 | 4} * @memberof ISystemLog */ level?: 1 | 2 | 3 | 4; } export type SystemLogDto = Omit<ISystemLog, keyof HiddenBodyKeys>; export declare const systemLogSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, { collection: string; timestamps: true; }, { createdAt: NativeDate; updatedAt: NativeDate; } & { public: boolean; active: boolean; createdAt: Date; updatedAt: Date; workspace?: import("mongoose").Types.ObjectId; workspaceId?: import("mongoose").Types.ObjectId; name?: string; slug?: string; project?: import("mongoose").Types.ObjectId; projectId?: import("mongoose").Types.ObjectId; message?: string; type?: string; owner?: import("mongoose").Types.ObjectId; metadata?: any; ownerSlug?: string; ownerId?: import("mongoose").Types.ObjectId; workspaceSlug?: string; updatedBy?: import("mongoose").Types.ObjectId; updatedById?: import("mongoose").Types.ObjectId; deletedBy?: import("mongoose").Types.ObjectId; deletedById?: import("mongoose").Types.ObjectId; deletedAt?: Date; migratedAt?: Date; level?: number; }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{ createdAt: NativeDate; updatedAt: NativeDate; } & { public: boolean; active: boolean; createdAt: Date; updatedAt: Date; workspace?: import("mongoose").Types.ObjectId; workspaceId?: import("mongoose").Types.ObjectId; name?: string; slug?: string; project?: import("mongoose").Types.ObjectId; projectId?: import("mongoose").Types.ObjectId; message?: string; type?: string; owner?: import("mongoose").Types.ObjectId; metadata?: any; ownerSlug?: string; ownerId?: import("mongoose").Types.ObjectId; workspaceSlug?: string; updatedBy?: import("mongoose").Types.ObjectId; updatedById?: import("mongoose").Types.ObjectId; deletedBy?: import("mongoose").Types.ObjectId; deletedById?: import("mongoose").Types.ObjectId; deletedAt?: Date; migratedAt?: Date; level?: number; }>> & import("mongoose").FlatRecord<{ createdAt: NativeDate; updatedAt: NativeDate; } & { public: boolean; active: boolean; createdAt: Date; updatedAt: Date; workspace?: import("mongoose").Types.ObjectId; workspaceId?: import("mongoose").Types.ObjectId; name?: string; slug?: string; project?: import("mongoose").Types.ObjectId; projectId?: import("mongoose").Types.ObjectId; message?: string; type?: string; owner?: import("mongoose").Types.ObjectId; metadata?: any; ownerSlug?: string; ownerId?: import("mongoose").Types.ObjectId; workspaceSlug?: string; updatedBy?: import("mongoose").Types.ObjectId; updatedById?: import("mongoose").Types.ObjectId; deletedBy?: import("mongoose").Types.ObjectId; deletedById?: import("mongoose").Types.ObjectId; deletedAt?: Date; migratedAt?: Date; level?: number; }> & { _id: import("mongoose").Types.ObjectId; }>; export declare const SystemLogModel: import("mongoose").Model<ISystemLog, {}, {}, {}, import("mongoose").Document<unknown, {}, ISystemLog> & ISystemLog & Required<{ _id: string | import("mongoose").Types.ObjectId; }>, any>; //# sourceMappingURL=SystemLog.d.ts.map