Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
import { DirectusUser } from "./user.js";
|
|
import { MergeCoreCollection } from "../types/schema.js";
|
|
|
|
//#region src/schema/deployment.d.ts
|
|
|
|
/**
|
|
* Directus Deployment configuration
|
|
*/
|
|
type DirectusDeployment<Schema = any> = MergeCoreCollection<Schema, 'directus_deployments', {
|
|
id: string;
|
|
provider: string;
|
|
credentials: Record<string, any>;
|
|
options: Record<string, any> | null;
|
|
date_created: 'datetime' | null;
|
|
user_created: DirectusUser<Schema> | string | null;
|
|
projects: DirectusDeploymentProject<Schema>[] | string[];
|
|
}>;
|
|
/**
|
|
* Directus Deployment Project
|
|
*/
|
|
type DirectusDeploymentProject<Schema = any> = MergeCoreCollection<Schema, 'directus_deployment_projects', {
|
|
id: string;
|
|
deployment: DirectusDeployment<Schema> | string;
|
|
external_id: string;
|
|
name: string;
|
|
date_created: 'datetime' | null;
|
|
user_created: DirectusUser<Schema> | string | null;
|
|
}>;
|
|
/**
|
|
* Directus Deployment Run
|
|
*/
|
|
type DirectusDeploymentRun<Schema = any> = MergeCoreCollection<Schema, 'directus_deployment_runs', {
|
|
id: string;
|
|
project: DirectusDeploymentProject<Schema> | string;
|
|
external_id: string;
|
|
status: 'building' | 'ready' | 'error' | 'canceled';
|
|
target: string;
|
|
url: string | null;
|
|
date_created: 'datetime' | null;
|
|
user_created: DirectusUser<Schema> | string | null;
|
|
}>;
|
|
//#endregion
|
|
export { DirectusDeployment, DirectusDeploymentProject, DirectusDeploymentRun };
|
|
//# sourceMappingURL=deployment.d.ts.map |