@brimble/models 4.0.1 → 4.0.3
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.
- package/dist/types/activity-log.d.ts +8 -8
- package/dist/types/agent-design-skill-revision.d.ts +1 -1
- package/dist/types/alert-rule.d.ts +1 -1
- package/dist/types/app-message.d.ts +4 -4
- package/dist/types/auto-scaling-group.d.ts +3 -4
- package/dist/types/backup-history.d.ts +8 -4
- package/dist/types/cashier_subscription.d.ts +1 -1
- package/dist/types/collab-annotation.d.ts +13 -13
- package/dist/types/collab-comment.d.ts +6 -6
- package/dist/types/collab-integration.d.ts +1 -1
- package/dist/types/collab-settings.d.ts +2 -2
- package/dist/types/collab-share-token.d.ts +1 -1
- package/dist/types/compute.d.ts +11 -11
- package/dist/types/coupon-redemption.d.ts +16 -12
- package/dist/types/coupon.d.ts +15 -13
- package/dist/types/db-image.d.ts +3 -3
- package/dist/types/domain/dns-changelog.d.ts +16 -10
- package/dist/types/domain/dns.d.ts +1 -1
- package/dist/types/domain/index.d.ts +6 -6
- package/dist/types/domain/transfer.d.ts +13 -13
- package/dist/types/drain.d.ts +18 -15
- package/dist/types/email-dead-letter.d.ts +3 -3
- package/dist/types/env.d.ts +1 -1
- package/dist/types/environment-variable.d.ts +1 -1
- package/dist/types/following.d.ts +2 -2
- package/dist/types/framework.d.ts +9 -9
- package/dist/types/git.d.ts +12 -12
- package/dist/types/integration.d.ts +7 -7
- package/dist/types/intention.d.ts +1 -1
- package/dist/types/job.d.ts +9 -9
- package/dist/types/license.d.ts +8 -4
- package/dist/types/logs.d.ts +3 -3
- package/dist/types/member.d.ts +2 -2
- package/dist/types/object-storage-usage-segment.d.ts +8 -4
- package/dist/types/pgbouncer-usage-segment.d.ts +8 -5
- package/dist/types/plan_configuration.d.ts +1 -1
- package/dist/types/platform-api-key.d.ts +6 -5
- package/dist/types/project/index.d.ts +31 -31
- package/dist/types/project/preview.d.ts +1 -1
- package/dist/types/project-drain-subscription.d.ts +7 -5
- package/dist/types/project-environment.d.ts +2 -2
- package/dist/types/project-network-settings.d.ts +2 -2
- package/dist/types/project_analytics.d.ts +5 -3
- package/dist/types/quest-campaign.d.ts +2 -2
- package/dist/types/quest-participation.d.ts +8 -5
- package/dist/types/quest-reward-issuance.d.ts +10 -6
- package/dist/types/ratelimit.d.ts +20 -18
- package/dist/types/ref.d.ts +3 -2
- package/dist/types/region.d.ts +15 -15
- package/dist/types/restore-history.d.ts +10 -5
- package/dist/types/role.d.ts +2 -2
- package/dist/types/sandbox-activity.d.ts +10 -6
- package/dist/types/sandbox-snapshot-usage-segment.d.ts +8 -5
- package/dist/types/sandbox-snapshot.d.ts +8 -4
- package/dist/types/sandbox-usage-segment.d.ts +2 -2
- package/dist/types/sandbox.d.ts +4 -3
- package/dist/types/server.d.ts +15 -13
- package/dist/types/storage.d.ts +59 -56
- package/dist/types/streak-day.d.ts +6 -4
- package/dist/types/streak-event.d.ts +7 -4
- package/dist/types/streak-milestone.d.ts +6 -4
- package/dist/types/streak.d.ts +6 -4
- package/dist/types/subscription.d.ts +1 -1
- package/dist/types/ticket.d.ts +5 -5
- package/dist/types/user.d.ts +4 -4
- package/dist/types/volume-usage-segment.d.ts +12 -8
- package/dist/types/volume.d.ts +13 -11
- package/dist/types/webhook-setting.d.ts +2 -2
- package/dist/types/worker-run.d.ts +8 -4
- package/package.json +1 -1
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { Document
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
2
|
import { SANDBOX_SNAPSHOT_STATUS } from "../enum";
|
|
3
|
+
import { ISandbox } from "./sandbox";
|
|
4
|
+
import { ITeam } from "./team";
|
|
5
|
+
import { IUser } from "./user";
|
|
6
|
+
import { Ref } from "./ref";
|
|
3
7
|
export interface ISandboxSnapshot extends Document {
|
|
4
|
-
user_id:
|
|
5
|
-
team:
|
|
6
|
-
sandbox_id:
|
|
8
|
+
user_id: Ref<IUser>;
|
|
9
|
+
team: Ref<ITeam> | null;
|
|
10
|
+
sandbox_id: Ref<ISandbox>;
|
|
7
11
|
name: string;
|
|
8
12
|
image_tag: string;
|
|
9
13
|
source_template: string;
|
|
@@ -19,8 +19,8 @@ export interface ISandboxUsageSegment extends Document {
|
|
|
19
19
|
current: ISandboxUsageSegmentCurrent;
|
|
20
20
|
costs: ISandboxUsageSegmentCosts;
|
|
21
21
|
billed: boolean;
|
|
22
|
-
region
|
|
23
|
-
template
|
|
22
|
+
region: string;
|
|
23
|
+
template: string;
|
|
24
24
|
createdAt: Date;
|
|
25
25
|
updatedAt: Date;
|
|
26
26
|
}
|
package/dist/types/sandbox.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Document
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
2
|
import { IUser } from "./user";
|
|
3
3
|
import { ITeam } from "./team";
|
|
4
4
|
import { IProjectEnvironment } from "./project-environment";
|
|
5
5
|
import { SANDBOX_STATUS, SANDBOX_DESTROY_REASON, SANDBOX_EGRESS_MODE } from "../enum";
|
|
6
6
|
import { IRegion } from "./region";
|
|
7
|
+
import { ISandboxSnapshot } from "./sandbox-snapshot";
|
|
7
8
|
import { Ref } from "./ref";
|
|
8
9
|
export interface ISandboxSpecs {
|
|
9
10
|
cpu: number;
|
|
@@ -35,14 +36,14 @@ export interface ISandbox extends Document {
|
|
|
35
36
|
destroy_timeout: string | null;
|
|
36
37
|
one_shot: boolean;
|
|
37
38
|
block_outbound: boolean;
|
|
38
|
-
egress
|
|
39
|
+
egress: ISandboxEgress | null;
|
|
39
40
|
persistent: boolean;
|
|
40
41
|
persistent_disk_gb: number | null;
|
|
41
42
|
csi_volume_id: string | null;
|
|
42
43
|
paused_at: Date | null;
|
|
43
44
|
paused_by: string | null;
|
|
44
45
|
image_override: string | null;
|
|
45
|
-
from_snapshot:
|
|
46
|
+
from_snapshot: Ref<ISandboxSnapshot> | null;
|
|
46
47
|
snapshot_mode: "automatic" | "manual";
|
|
47
48
|
snapshot_frequency: string | null;
|
|
48
49
|
isDeleted: boolean;
|
package/dist/types/server.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
2
|
import { SERVER_STATUS, SERVER_PROTOCOL } from "../enum";
|
|
3
3
|
import { IRegion } from "./region";
|
|
4
|
+
import { ITeam } from "./team";
|
|
5
|
+
import { IUser } from "./user";
|
|
4
6
|
import { Ref } from "./ref";
|
|
5
7
|
export interface IServer extends Document {
|
|
6
8
|
name: string;
|
|
7
9
|
url: string;
|
|
8
|
-
grpc_address
|
|
9
|
-
ipv6
|
|
10
|
-
domain
|
|
10
|
+
grpc_address: string;
|
|
11
|
+
ipv6: string;
|
|
12
|
+
domain: string;
|
|
11
13
|
node_id: string;
|
|
12
14
|
force_deactivation: boolean;
|
|
13
|
-
userId:
|
|
14
|
-
teamId
|
|
15
|
+
userId: Ref<IUser>;
|
|
16
|
+
teamId: Ref<ITeam>;
|
|
15
17
|
ip_address: string;
|
|
16
18
|
private_ip_address: string;
|
|
17
19
|
tunnel_token: string;
|
|
@@ -21,15 +23,15 @@ export interface IServer extends Document {
|
|
|
21
23
|
default: boolean;
|
|
22
24
|
tag: string;
|
|
23
25
|
region: Ref<IRegion>;
|
|
24
|
-
webhook_url
|
|
26
|
+
webhook_url: string;
|
|
25
27
|
is_custom_provision: boolean;
|
|
26
|
-
firewall_id
|
|
28
|
+
firewall_id: string;
|
|
27
29
|
specifications: Record<any, any>;
|
|
28
|
-
plugin_id
|
|
30
|
+
plugin_id: string;
|
|
29
31
|
provider: string;
|
|
30
|
-
provider_location
|
|
31
|
-
provider_identifier
|
|
32
|
-
topology_path
|
|
33
|
-
cert_storage_path
|
|
32
|
+
provider_location: string;
|
|
33
|
+
provider_identifier: string;
|
|
34
|
+
topology_path: string;
|
|
35
|
+
cert_storage_path: string | null;
|
|
34
36
|
meta: Record<any, any>;
|
|
35
37
|
}
|
package/dist/types/storage.d.ts
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
import { Document
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
|
+
import { IProject } from "./project";
|
|
2
3
|
import { IProjectEnvironment } from "./project-environment";
|
|
4
|
+
import { ITeam } from "./team";
|
|
5
|
+
import { IUser } from "./user";
|
|
3
6
|
import { Ref } from "./ref";
|
|
4
7
|
import { StorageBucketStatus, StorageCredentialRole, StorageCredentialStatus, StorageMigrationStatus, StorageTokenStatus, StorageUploadStatus } from "../enum";
|
|
5
8
|
export type StorageTokenPermission = "read" | "write" | "delete" | "list" | "admin";
|
|
6
9
|
export type StorageCorsRule = {
|
|
7
|
-
allowedHeaders
|
|
8
|
-
allowedMethods
|
|
9
|
-
allowedOrigins
|
|
10
|
-
exposeHeaders
|
|
11
|
-
maxAgeSeconds
|
|
10
|
+
allowedHeaders: string[];
|
|
11
|
+
allowedMethods: string[];
|
|
12
|
+
allowedOrigins: string[];
|
|
13
|
+
exposeHeaders: string[];
|
|
14
|
+
maxAgeSeconds: number;
|
|
12
15
|
[key: string]: unknown;
|
|
13
16
|
};
|
|
14
17
|
export type StorageLifecycleRule = {
|
|
15
|
-
id
|
|
16
|
-
prefix
|
|
17
|
-
expirationDays
|
|
18
|
-
transitions
|
|
18
|
+
id: string;
|
|
19
|
+
prefix: string;
|
|
20
|
+
expirationDays: number;
|
|
21
|
+
transitions: StorageLifecycleRuleTransition[];
|
|
19
22
|
};
|
|
20
23
|
export type StorageLifecycleRuleTransition = {
|
|
21
|
-
days
|
|
22
|
-
storageClass
|
|
24
|
+
days: number;
|
|
25
|
+
storageClass: string;
|
|
23
26
|
};
|
|
24
27
|
export interface IStorageBucket extends Document {
|
|
25
28
|
name: string;
|
|
26
|
-
project
|
|
27
|
-
project_environment
|
|
28
|
-
user_id
|
|
29
|
-
team
|
|
29
|
+
project: Ref<IProject>;
|
|
30
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
31
|
+
user_id: Ref<IUser>;
|
|
32
|
+
team: Ref<ITeam>;
|
|
30
33
|
bucket_name: string;
|
|
31
34
|
is_public: boolean;
|
|
32
35
|
versioning: boolean;
|
|
@@ -45,31 +48,31 @@ export interface IStorageBucket extends Document {
|
|
|
45
48
|
updatedAt: Date;
|
|
46
49
|
}
|
|
47
50
|
export interface IStorageObject extends Document {
|
|
48
|
-
bucket:
|
|
49
|
-
project
|
|
50
|
-
project_environment
|
|
51
|
+
bucket: Ref<IStorageBucket>;
|
|
52
|
+
project: Ref<IProject>;
|
|
53
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
51
54
|
key: string;
|
|
52
55
|
path: string;
|
|
53
|
-
content_type
|
|
56
|
+
content_type: string;
|
|
54
57
|
size: number;
|
|
55
|
-
etag
|
|
56
|
-
public_url
|
|
57
|
-
last_modified
|
|
58
|
+
etag: string;
|
|
59
|
+
public_url: string;
|
|
60
|
+
last_modified: Date;
|
|
58
61
|
createdAt: Date;
|
|
59
62
|
updatedAt: Date;
|
|
60
63
|
}
|
|
61
64
|
export interface IStorageUpload extends Document {
|
|
62
|
-
bucket:
|
|
63
|
-
project
|
|
64
|
-
project_environment
|
|
65
|
+
bucket: Ref<IStorageBucket>;
|
|
66
|
+
project: Ref<IProject>;
|
|
67
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
65
68
|
key: string;
|
|
66
69
|
path: string;
|
|
67
|
-
upload_id
|
|
68
|
-
content_type
|
|
70
|
+
upload_id: string;
|
|
71
|
+
content_type: string;
|
|
69
72
|
size: number;
|
|
70
73
|
status: StorageUploadStatus;
|
|
71
74
|
expires_at: Date;
|
|
72
|
-
completed_at
|
|
75
|
+
completed_at: Date;
|
|
73
76
|
createdAt: Date;
|
|
74
77
|
updatedAt: Date;
|
|
75
78
|
}
|
|
@@ -77,46 +80,46 @@ export interface IStorageToken extends Document {
|
|
|
77
80
|
name: string;
|
|
78
81
|
token_hash: string;
|
|
79
82
|
prefix: string;
|
|
80
|
-
project
|
|
81
|
-
buckets:
|
|
82
|
-
user_id
|
|
83
|
-
team
|
|
83
|
+
project: Ref<IProject>;
|
|
84
|
+
buckets: Ref<IStorageBucket>[];
|
|
85
|
+
user_id: Ref<IUser>;
|
|
86
|
+
team: Ref<ITeam>;
|
|
84
87
|
permissions: StorageTokenPermission[];
|
|
85
88
|
status: StorageTokenStatus;
|
|
86
|
-
last_used_at
|
|
87
|
-
expires_at
|
|
89
|
+
last_used_at: Date;
|
|
90
|
+
expires_at: Date;
|
|
88
91
|
createdAt: Date;
|
|
89
92
|
updatedAt: Date;
|
|
90
93
|
}
|
|
91
94
|
export interface IStorageCredential extends Document {
|
|
92
95
|
name: string;
|
|
93
|
-
bucket:
|
|
94
|
-
project
|
|
95
|
-
project_environment
|
|
96
|
-
user_id
|
|
97
|
-
team
|
|
96
|
+
bucket: Ref<IStorageBucket>;
|
|
97
|
+
project: Ref<IProject>;
|
|
98
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
99
|
+
user_id: Ref<IUser>;
|
|
100
|
+
team: Ref<ITeam>;
|
|
98
101
|
provider: string;
|
|
99
102
|
provider_org_id: string;
|
|
100
103
|
access_key_id: string;
|
|
101
104
|
policy_names: string[];
|
|
102
105
|
role: StorageCredentialRole;
|
|
103
106
|
status: StorageCredentialStatus;
|
|
104
|
-
last_rotated_at
|
|
105
|
-
revoked_at
|
|
107
|
+
last_rotated_at: Date;
|
|
108
|
+
revoked_at: Date;
|
|
106
109
|
createdAt: Date;
|
|
107
110
|
updatedAt: Date;
|
|
108
111
|
}
|
|
109
112
|
export interface IStorageMigration extends Document {
|
|
110
|
-
bucket:
|
|
111
|
-
project
|
|
112
|
-
project_environment
|
|
113
|
-
user_id
|
|
114
|
-
team
|
|
113
|
+
bucket: Ref<IStorageBucket>;
|
|
114
|
+
project: Ref<IProject>;
|
|
115
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
116
|
+
user_id: Ref<IUser>;
|
|
117
|
+
team: Ref<ITeam>;
|
|
115
118
|
source_bucket: string;
|
|
116
119
|
source_region: string;
|
|
117
|
-
source_endpoint
|
|
118
|
-
source_prefix
|
|
119
|
-
destination_prefix
|
|
120
|
+
source_endpoint: string;
|
|
121
|
+
source_prefix: string;
|
|
122
|
+
destination_prefix: string;
|
|
120
123
|
vault_path: string;
|
|
121
124
|
status: StorageMigrationStatus;
|
|
122
125
|
total_objects: number;
|
|
@@ -124,12 +127,12 @@ export interface IStorageMigration extends Document {
|
|
|
124
127
|
failed_objects: number;
|
|
125
128
|
total_bytes: number;
|
|
126
129
|
copied_bytes: number;
|
|
127
|
-
continuation_token
|
|
128
|
-
last_source_key
|
|
129
|
-
error_message
|
|
130
|
-
started_at
|
|
131
|
-
completed_at
|
|
132
|
-
cancelled_at
|
|
130
|
+
continuation_token: string;
|
|
131
|
+
last_source_key: string;
|
|
132
|
+
error_message: string;
|
|
133
|
+
started_at: Date;
|
|
134
|
+
completed_at: Date;
|
|
135
|
+
cancelled_at: Date;
|
|
133
136
|
createdAt: Date;
|
|
134
137
|
updatedAt: Date;
|
|
135
138
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { Document
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
|
+
import { IUser } from "./user";
|
|
3
|
+
import { Ref } from "./ref";
|
|
2
4
|
export interface IStreakDay extends Document {
|
|
3
|
-
user_id:
|
|
5
|
+
user_id: Ref<IUser>;
|
|
4
6
|
day: Date;
|
|
5
7
|
action_types: string[];
|
|
6
8
|
is_milestone_day: boolean;
|
|
7
|
-
created_at
|
|
8
|
-
updated_at
|
|
9
|
+
created_at: Date;
|
|
10
|
+
updated_at: Date;
|
|
9
11
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { Document, Types } from "mongoose";
|
|
2
2
|
import { QualifyingActionType } from "../enum";
|
|
3
|
+
import { IProject } from "./project";
|
|
4
|
+
import { IUser } from "./user";
|
|
5
|
+
import { Ref } from "./ref";
|
|
3
6
|
export interface IStreakEvent extends Document {
|
|
4
|
-
user_id:
|
|
7
|
+
user_id: Ref<IUser>;
|
|
5
8
|
action_type: QualifyingActionType;
|
|
6
|
-
project_id:
|
|
9
|
+
project_id: Ref<IProject> | null;
|
|
7
10
|
resource_id: Types.ObjectId | null;
|
|
8
11
|
service_type: string | null;
|
|
9
12
|
system_day: Date;
|
|
10
13
|
dedupe_key: string;
|
|
11
|
-
created_at
|
|
12
|
-
updated_at
|
|
14
|
+
created_at: Date;
|
|
15
|
+
updated_at: Date;
|
|
13
16
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { Document
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
2
|
import { MilestoneType } from "../enum";
|
|
3
|
+
import { IUser } from "./user";
|
|
4
|
+
import { Ref } from "./ref";
|
|
3
5
|
export interface IStreakMilestone extends Document {
|
|
4
|
-
user_id:
|
|
6
|
+
user_id: Ref<IUser>;
|
|
5
7
|
type: MilestoneType;
|
|
6
8
|
action: string;
|
|
7
9
|
date: Date;
|
|
8
|
-
created_at
|
|
9
|
-
updated_at
|
|
10
|
+
created_at: Date;
|
|
11
|
+
updated_at: Date;
|
|
10
12
|
}
|
package/dist/types/streak.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { Document
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
2
|
import { MilestoneType } from "../enum";
|
|
3
|
+
import { IUser } from "./user";
|
|
4
|
+
import { Ref } from "./ref";
|
|
3
5
|
export interface IStreakMilestoneRef {
|
|
4
6
|
type: MilestoneType;
|
|
5
7
|
date: Date;
|
|
6
8
|
}
|
|
7
9
|
export interface IStreak extends Document {
|
|
8
|
-
user_id:
|
|
10
|
+
user_id: Ref<IUser>;
|
|
9
11
|
current_count: number;
|
|
10
12
|
longest_count: number;
|
|
11
13
|
last_active_day: Date | null;
|
|
12
14
|
last_processed_day: Date | null;
|
|
13
15
|
last_milestone: IStreakMilestoneRef | null;
|
|
14
16
|
last_streak_email_day: Date | null;
|
|
15
|
-
created_at
|
|
16
|
-
updated_at
|
|
17
|
+
created_at: Date;
|
|
18
|
+
updated_at: Date;
|
|
17
19
|
}
|
|
@@ -11,7 +11,7 @@ export interface ISubscription extends Document {
|
|
|
11
11
|
admin_id: Ref<IUser>;
|
|
12
12
|
downgraded: boolean;
|
|
13
13
|
billable_id: Ref<IUser>;
|
|
14
|
-
project_id
|
|
14
|
+
project_id: Ref<IProject>;
|
|
15
15
|
plan_type: SUBSCRIPTION_PLAN_TYPE;
|
|
16
16
|
status: SUBSCRIPTION_STATUS;
|
|
17
17
|
amount: number;
|
package/dist/types/ticket.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ export interface ITicket extends Document {
|
|
|
9
9
|
message: string;
|
|
10
10
|
status: string;
|
|
11
11
|
attachment_count: number;
|
|
12
|
-
linear_issue_id
|
|
13
|
-
linear_issue_identifier
|
|
14
|
-
linear_issue_url
|
|
15
|
-
resolved_at
|
|
16
|
-
remarks
|
|
12
|
+
linear_issue_id: string | null;
|
|
13
|
+
linear_issue_identifier: string | null;
|
|
14
|
+
linear_issue_url: string | null;
|
|
15
|
+
resolved_at: Date | null;
|
|
16
|
+
remarks: string | null;
|
|
17
17
|
createdAt: Date;
|
|
18
18
|
updatedAt: Date;
|
|
19
19
|
}
|
package/dist/types/user.d.ts
CHANGED
|
@@ -11,15 +11,15 @@ export interface IUser extends Document {
|
|
|
11
11
|
password: string;
|
|
12
12
|
email_verified_at: string;
|
|
13
13
|
verification_token: number;
|
|
14
|
-
token
|
|
15
|
-
company
|
|
14
|
+
token: string;
|
|
15
|
+
company: string;
|
|
16
16
|
ai_usage_count: number;
|
|
17
17
|
github: IGit;
|
|
18
18
|
gitlab: IGit;
|
|
19
19
|
location: string;
|
|
20
20
|
interests: Array<string>;
|
|
21
21
|
bitbucket: IGit;
|
|
22
|
-
origin
|
|
22
|
+
origin: IOrigin;
|
|
23
23
|
following: Ref<IFollowing>[];
|
|
24
24
|
projects: Ref<IProject>[];
|
|
25
25
|
teams: Ref<ITeam>[];
|
|
@@ -45,7 +45,7 @@ export interface IUser extends Document {
|
|
|
45
45
|
email: boolean;
|
|
46
46
|
mute: boolean;
|
|
47
47
|
};
|
|
48
|
-
totp_enabled
|
|
48
|
+
totp_enabled: boolean;
|
|
49
49
|
agent_byok_enabled: boolean;
|
|
50
50
|
created_at: Date;
|
|
51
51
|
updated_at: Date;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { Document
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
|
+
import { IProject } from "./project";
|
|
3
|
+
import { ITeam } from "./team";
|
|
4
|
+
import { IUser } from "./user";
|
|
5
|
+
import { IVolume } from "./volume";
|
|
6
|
+
import { Ref } from "./ref";
|
|
2
7
|
export interface IVolumeUsageSegmentCosts {
|
|
3
8
|
startDate: Date;
|
|
4
9
|
endDate: Date | null;
|
|
5
10
|
}
|
|
6
11
|
export interface IVolumeUsageSegment extends Document {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
team_id: Types.ObjectId | null;
|
|
12
|
+
volume_id: Ref<IVolume>;
|
|
13
|
+
user_id: Ref<IUser>;
|
|
14
|
+
team_id: Ref<ITeam> | null;
|
|
11
15
|
size_gb: number;
|
|
12
|
-
volume_name
|
|
13
|
-
project_id
|
|
14
|
-
project_name
|
|
16
|
+
volume_name: string | null;
|
|
17
|
+
project_id: Ref<IProject> | null;
|
|
18
|
+
project_name: string | null;
|
|
15
19
|
costs: IVolumeUsageSegmentCosts;
|
|
16
20
|
billed: boolean;
|
|
17
21
|
createdAt: Date;
|
package/dist/types/volume.d.ts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { Document
|
|
2
|
-
import {
|
|
3
|
-
import { ITeam } from "./team";
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
|
+
import { IProject } from "./project";
|
|
4
3
|
import { IRegion } from "./region";
|
|
4
|
+
import { ISandbox } from "./sandbox";
|
|
5
|
+
import { ITeam } from "./team";
|
|
6
|
+
import { IUser } from "./user";
|
|
5
7
|
import { Ref } from "./ref";
|
|
6
8
|
export interface IVolume extends Document {
|
|
7
9
|
name: string;
|
|
8
|
-
user
|
|
9
|
-
team
|
|
10
|
+
user: Ref<IUser>;
|
|
11
|
+
team: Ref<ITeam>;
|
|
10
12
|
namespace: string;
|
|
11
13
|
size: number;
|
|
12
14
|
type: string;
|
|
13
|
-
mount_path
|
|
15
|
+
mount_path: string;
|
|
14
16
|
csi_volume_id: string | null;
|
|
15
17
|
region: Ref<IRegion> | null;
|
|
16
|
-
attached_sandbox_id:
|
|
17
|
-
attached_project_id:
|
|
18
|
+
attached_sandbox_id: Ref<ISandbox> | null;
|
|
19
|
+
attached_project_id: Ref<IProject> | null;
|
|
18
20
|
last_attached_at: Date | null;
|
|
19
|
-
deleted_at
|
|
20
|
-
created_at
|
|
21
|
-
updated_at
|
|
21
|
+
deleted_at: Date | null;
|
|
22
|
+
created_at: Date;
|
|
23
|
+
updated_at: Date;
|
|
22
24
|
}
|
|
@@ -6,10 +6,10 @@ import { ITeam } from "./team";
|
|
|
6
6
|
import { Ref } from "./ref";
|
|
7
7
|
export interface IWebhookSetting extends Document {
|
|
8
8
|
user_id: Ref<IUser>;
|
|
9
|
-
team_id
|
|
9
|
+
team_id: Ref<ITeam>;
|
|
10
10
|
subscription_id: Ref<ISubscription>;
|
|
11
11
|
webhook_id: string;
|
|
12
|
-
external_webhook_url
|
|
12
|
+
external_webhook_url: string;
|
|
13
13
|
webhookUrl: string;
|
|
14
14
|
discordUrl: string;
|
|
15
15
|
slackUrl: string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { Document
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
2
|
import { WorkerRunStatus, WorkerRunTrigger } from "../enum";
|
|
3
|
+
import { IProject } from "./project";
|
|
4
|
+
import { ITeam } from "./team";
|
|
5
|
+
import { IUser } from "./user";
|
|
6
|
+
import { Ref } from "./ref";
|
|
3
7
|
export interface IWorkerRun extends Document {
|
|
4
|
-
project:
|
|
5
|
-
user_id:
|
|
6
|
-
team:
|
|
8
|
+
project: Ref<IProject>;
|
|
9
|
+
user_id: Ref<IUser>;
|
|
10
|
+
team: Ref<ITeam> | null;
|
|
7
11
|
parentJobId: string | null;
|
|
8
12
|
childJobId: string | null;
|
|
9
13
|
namespace: string | null;
|