UNPKG

@topgroup/diginext

Version:

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

188 lines 5.7 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 type { Types } from "mongoose"; import { Schema } from "mongoose"; import type { HiddenBodyKeys } from "../interfaces"; import type { IApp } from "./App"; import type { IBase } from "./Base"; import type { IBuild } from "./Build"; import type { IUser } from "./User"; import type { IWorkspace } from "./Workspace"; export interface IProject extends IBase { name?: string; isDefault?: boolean; image?: string; slug?: string; apiKey?: string; clientId?: string; clientSecret?: string; createdBy?: string; lastUpdatedBy?: string; /** * Latest build tag of an application in this project */ latestBuildTag?: Types.ObjectId | string; /** * Latest build ID or DOCUMENT */ latestBuild?: Types.ObjectId | IBuild | string; /** * List of App slugs * * @remarks This can be populated to {App} data */ appSlugs?: string[]; /** * List of App IDs * * @remarks This can be populated to {App} data */ apps?: (Types.ObjectId | IApp | string)[]; owner?: Types.ObjectId | IUser | string; workspace?: Types.ObjectId | IWorkspace | string; /** * Date when the project was archived (take down all deploy environments) */ archivedAt?: Date; } export type ProjectDto = Omit<IProject, keyof HiddenBodyKeys>; export declare const projectSchema: 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; appSlugs: string[]; apps: Types.ObjectId[]; workspace?: Types.ObjectId; workspaceId?: Types.ObjectId; name?: string; slug?: string; project?: Types.ObjectId; projectId?: Types.ObjectId; image?: string; owner?: Types.ObjectId; apiKey?: string; metadata?: any; ownerSlug?: string; ownerId?: Types.ObjectId; workspaceSlug?: string; updatedBy?: Types.ObjectId; updatedById?: Types.ObjectId; deletedBy?: Types.ObjectId; deletedById?: Types.ObjectId; deletedAt?: Date; migratedAt?: Date; isDefault?: boolean; createdBy?: string; lastUpdatedBy?: string; latestBuild?: Types.ObjectId; archivedAt?: Date; clientId?: string; clientSecret?: string; latestBuildTag?: string; }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{ createdAt: NativeDate; updatedAt: NativeDate; } & { public: boolean; active: boolean; createdAt: Date; updatedAt: Date; appSlugs: string[]; apps: Types.ObjectId[]; workspace?: Types.ObjectId; workspaceId?: Types.ObjectId; name?: string; slug?: string; project?: Types.ObjectId; projectId?: Types.ObjectId; image?: string; owner?: Types.ObjectId; apiKey?: string; metadata?: any; ownerSlug?: string; ownerId?: Types.ObjectId; workspaceSlug?: string; updatedBy?: Types.ObjectId; updatedById?: Types.ObjectId; deletedBy?: Types.ObjectId; deletedById?: Types.ObjectId; deletedAt?: Date; migratedAt?: Date; isDefault?: boolean; createdBy?: string; lastUpdatedBy?: string; latestBuild?: Types.ObjectId; archivedAt?: Date; clientId?: string; clientSecret?: string; latestBuildTag?: string; }>> & import("mongoose").FlatRecord<{ createdAt: NativeDate; updatedAt: NativeDate; } & { public: boolean; active: boolean; createdAt: Date; updatedAt: Date; appSlugs: string[]; apps: Types.ObjectId[]; workspace?: Types.ObjectId; workspaceId?: Types.ObjectId; name?: string; slug?: string; project?: Types.ObjectId; projectId?: Types.ObjectId; image?: string; owner?: Types.ObjectId; apiKey?: string; metadata?: any; ownerSlug?: string; ownerId?: Types.ObjectId; workspaceSlug?: string; updatedBy?: Types.ObjectId; updatedById?: Types.ObjectId; deletedBy?: Types.ObjectId; deletedById?: Types.ObjectId; deletedAt?: Date; migratedAt?: Date; isDefault?: boolean; createdBy?: string; lastUpdatedBy?: string; latestBuild?: Types.ObjectId; archivedAt?: Date; clientId?: string; clientSecret?: string; latestBuildTag?: string; }> & { _id: Types.ObjectId; }>; //# sourceMappingURL=Project.d.ts.map