@brimble/models 3.8.152 → 3.8.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,6 +8,16 @@ const agentWebsiteSnapshotSchema = new mongoose_1.Schema({
|
|
|
8
8
|
s3_key: { type: String, required: true },
|
|
9
9
|
size: { type: Number, required: true },
|
|
10
10
|
digest: { type: String, default: null },
|
|
11
|
+
files: {
|
|
12
|
+
type: [
|
|
13
|
+
{
|
|
14
|
+
_id: false,
|
|
15
|
+
path: { type: String, required: true },
|
|
16
|
+
size: { type: Number, required: true },
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
default: [],
|
|
20
|
+
},
|
|
11
21
|
status: {
|
|
12
22
|
type: String,
|
|
13
23
|
enum: Object.values(enum_1.AGENT_WEBSITE_SNAPSHOT_STATUS),
|
package/dist/agent-website.js
CHANGED
|
@@ -12,6 +12,8 @@ const agentWebsiteSchema = new mongoose_1.Schema({
|
|
|
12
12
|
required: true,
|
|
13
13
|
default: enum_1.AGENT_WEBSITE_STATUS.Active,
|
|
14
14
|
},
|
|
15
|
+
runner_sandbox_id: { type: String, default: null },
|
|
16
|
+
runner_port: { type: Number, default: null },
|
|
15
17
|
deleted_at: { type: Date, default: null },
|
|
16
18
|
}, {
|
|
17
19
|
timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
|
|
@@ -2,6 +2,10 @@ import { Document, Types } from "mongoose";
|
|
|
2
2
|
import { AGENT_WEBSITE_SNAPSHOT_STATUS } from "../enum";
|
|
3
3
|
import { IAgentWebsite } from "./agent-website";
|
|
4
4
|
import { IUser } from "./user";
|
|
5
|
+
export type IAgentWebsiteSnapshotFile = {
|
|
6
|
+
path: string;
|
|
7
|
+
size: number;
|
|
8
|
+
};
|
|
5
9
|
export interface IAgentWebsiteSnapshot extends Document {
|
|
6
10
|
website_id: IAgentWebsite | Types.ObjectId;
|
|
7
11
|
user_id: IUser | Types.ObjectId;
|
|
@@ -9,6 +13,7 @@ export interface IAgentWebsiteSnapshot extends Document {
|
|
|
9
13
|
size: number;
|
|
10
14
|
digest: string | null;
|
|
11
15
|
status: AGENT_WEBSITE_SNAPSHOT_STATUS;
|
|
16
|
+
files: IAgentWebsiteSnapshotFile[];
|
|
12
17
|
created_at: Date;
|
|
13
18
|
updated_at: Date;
|
|
14
19
|
}
|
|
@@ -8,6 +8,8 @@ export interface IAgentWebsite extends Document {
|
|
|
8
8
|
user_id: IUser | Types.ObjectId;
|
|
9
9
|
team_id: ITeam | Types.ObjectId | null;
|
|
10
10
|
status: AGENT_WEBSITE_STATUS;
|
|
11
|
+
runner_sandbox_id: string | null;
|
|
12
|
+
runner_port: number | null;
|
|
11
13
|
deleted_at: Date | null;
|
|
12
14
|
created_at: Date;
|
|
13
15
|
updated_at: Date;
|