@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.
Files changed (70) hide show
  1. package/dist/types/activity-log.d.ts +8 -8
  2. package/dist/types/agent-design-skill-revision.d.ts +1 -1
  3. package/dist/types/alert-rule.d.ts +1 -1
  4. package/dist/types/app-message.d.ts +4 -4
  5. package/dist/types/auto-scaling-group.d.ts +3 -4
  6. package/dist/types/backup-history.d.ts +8 -4
  7. package/dist/types/cashier_subscription.d.ts +1 -1
  8. package/dist/types/collab-annotation.d.ts +13 -13
  9. package/dist/types/collab-comment.d.ts +6 -6
  10. package/dist/types/collab-integration.d.ts +1 -1
  11. package/dist/types/collab-settings.d.ts +2 -2
  12. package/dist/types/collab-share-token.d.ts +1 -1
  13. package/dist/types/compute.d.ts +11 -11
  14. package/dist/types/coupon-redemption.d.ts +16 -12
  15. package/dist/types/coupon.d.ts +15 -13
  16. package/dist/types/db-image.d.ts +3 -3
  17. package/dist/types/domain/dns-changelog.d.ts +16 -10
  18. package/dist/types/domain/dns.d.ts +1 -1
  19. package/dist/types/domain/index.d.ts +6 -6
  20. package/dist/types/domain/transfer.d.ts +13 -13
  21. package/dist/types/drain.d.ts +18 -15
  22. package/dist/types/email-dead-letter.d.ts +3 -3
  23. package/dist/types/env.d.ts +1 -1
  24. package/dist/types/environment-variable.d.ts +1 -1
  25. package/dist/types/following.d.ts +2 -2
  26. package/dist/types/framework.d.ts +9 -9
  27. package/dist/types/git.d.ts +12 -12
  28. package/dist/types/integration.d.ts +7 -7
  29. package/dist/types/intention.d.ts +1 -1
  30. package/dist/types/job.d.ts +9 -9
  31. package/dist/types/license.d.ts +8 -4
  32. package/dist/types/logs.d.ts +3 -3
  33. package/dist/types/member.d.ts +2 -2
  34. package/dist/types/object-storage-usage-segment.d.ts +8 -4
  35. package/dist/types/pgbouncer-usage-segment.d.ts +8 -5
  36. package/dist/types/plan_configuration.d.ts +1 -1
  37. package/dist/types/platform-api-key.d.ts +6 -5
  38. package/dist/types/project/index.d.ts +31 -31
  39. package/dist/types/project/preview.d.ts +1 -1
  40. package/dist/types/project-drain-subscription.d.ts +7 -5
  41. package/dist/types/project-environment.d.ts +2 -2
  42. package/dist/types/project-network-settings.d.ts +2 -2
  43. package/dist/types/project_analytics.d.ts +5 -3
  44. package/dist/types/quest-campaign.d.ts +2 -2
  45. package/dist/types/quest-participation.d.ts +8 -5
  46. package/dist/types/quest-reward-issuance.d.ts +10 -6
  47. package/dist/types/ratelimit.d.ts +20 -18
  48. package/dist/types/ref.d.ts +3 -2
  49. package/dist/types/region.d.ts +15 -15
  50. package/dist/types/restore-history.d.ts +10 -5
  51. package/dist/types/role.d.ts +2 -2
  52. package/dist/types/sandbox-activity.d.ts +10 -6
  53. package/dist/types/sandbox-snapshot-usage-segment.d.ts +8 -5
  54. package/dist/types/sandbox-snapshot.d.ts +8 -4
  55. package/dist/types/sandbox-usage-segment.d.ts +2 -2
  56. package/dist/types/sandbox.d.ts +4 -3
  57. package/dist/types/server.d.ts +15 -13
  58. package/dist/types/storage.d.ts +59 -56
  59. package/dist/types/streak-day.d.ts +6 -4
  60. package/dist/types/streak-event.d.ts +7 -4
  61. package/dist/types/streak-milestone.d.ts +6 -4
  62. package/dist/types/streak.d.ts +6 -4
  63. package/dist/types/subscription.d.ts +1 -1
  64. package/dist/types/ticket.d.ts +5 -5
  65. package/dist/types/user.d.ts +4 -4
  66. package/dist/types/volume-usage-segment.d.ts +12 -8
  67. package/dist/types/volume.d.ts +13 -11
  68. package/dist/types/webhook-setting.d.ts +2 -2
  69. package/dist/types/worker-run.d.ts +8 -4
  70. package/package.json +1 -1
@@ -1,9 +1,13 @@
1
- import { Document, Types } from "mongoose";
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: Types.ObjectId;
5
- team: Types.ObjectId | null;
6
- sandbox_id: Types.ObjectId;
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?: string;
23
- template?: string;
22
+ region: string;
23
+ template: string;
24
24
  createdAt: Date;
25
25
  updatedAt: Date;
26
26
  }
@@ -1,9 +1,10 @@
1
- import { Document, Types } from "mongoose";
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?: ISandboxEgress | null;
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: Types.ObjectId | null;
46
+ from_snapshot: Ref<ISandboxSnapshot> | null;
46
47
  snapshot_mode: "automatic" | "manual";
47
48
  snapshot_frequency: string | null;
48
49
  isDeleted: boolean;
@@ -1,17 +1,19 @@
1
- import mongoose, { Document } from "mongoose";
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?: string;
9
- ipv6?: string;
10
- domain?: string;
10
+ grpc_address: string;
11
+ ipv6: string;
12
+ domain: string;
11
13
  node_id: string;
12
14
  force_deactivation: boolean;
13
- userId: mongoose.Types.ObjectId;
14
- teamId?: mongoose.Types.ObjectId;
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?: string;
26
+ webhook_url: string;
25
27
  is_custom_provision: boolean;
26
- firewall_id?: string;
28
+ firewall_id: string;
27
29
  specifications: Record<any, any>;
28
- plugin_id?: string;
30
+ plugin_id: string;
29
31
  provider: string;
30
- provider_location?: string;
31
- provider_identifier?: string;
32
- topology_path?: string;
33
- cert_storage_path?: string | null;
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
  }
@@ -1,32 +1,35 @@
1
- import { Document, Types } from "mongoose";
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?: string[];
8
- allowedMethods?: string[];
9
- allowedOrigins?: string[];
10
- exposeHeaders?: string[];
11
- maxAgeSeconds?: number;
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?: string;
16
- prefix?: string;
17
- expirationDays?: number;
18
- transitions?: StorageLifecycleRuleTransition[];
18
+ id: string;
19
+ prefix: string;
20
+ expirationDays: number;
21
+ transitions: StorageLifecycleRuleTransition[];
19
22
  };
20
23
  export type StorageLifecycleRuleTransition = {
21
- days?: number;
22
- storageClass?: string;
24
+ days: number;
25
+ storageClass: string;
23
26
  };
24
27
  export interface IStorageBucket extends Document {
25
28
  name: string;
26
- project?: Types.ObjectId;
27
- project_environment?: Ref<IProjectEnvironment>;
28
- user_id?: Types.ObjectId;
29
- team?: Types.ObjectId;
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: Types.ObjectId;
49
- project?: Types.ObjectId;
50
- project_environment?: Ref<IProjectEnvironment>;
51
+ bucket: Ref<IStorageBucket>;
52
+ project: Ref<IProject>;
53
+ project_environment: Ref<IProjectEnvironment>;
51
54
  key: string;
52
55
  path: string;
53
- content_type?: string;
56
+ content_type: string;
54
57
  size: number;
55
- etag?: string;
56
- public_url?: string;
57
- last_modified?: Date;
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: Types.ObjectId;
63
- project?: Types.ObjectId;
64
- project_environment?: Ref<IProjectEnvironment>;
65
+ bucket: Ref<IStorageBucket>;
66
+ project: Ref<IProject>;
67
+ project_environment: Ref<IProjectEnvironment>;
65
68
  key: string;
66
69
  path: string;
67
- upload_id?: string;
68
- content_type?: string;
70
+ upload_id: string;
71
+ content_type: string;
69
72
  size: number;
70
73
  status: StorageUploadStatus;
71
74
  expires_at: Date;
72
- completed_at?: Date;
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?: Types.ObjectId;
81
- buckets: Types.ObjectId[];
82
- user_id?: Types.ObjectId;
83
- team?: Types.ObjectId;
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?: Date;
87
- expires_at?: Date;
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: Types.ObjectId;
94
- project?: Types.ObjectId;
95
- project_environment?: Ref<IProjectEnvironment>;
96
- user_id?: Types.ObjectId;
97
- team?: Types.ObjectId;
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?: Date;
105
- revoked_at?: Date;
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: Types.ObjectId;
111
- project?: Types.ObjectId;
112
- project_environment?: Ref<IProjectEnvironment>;
113
- user_id?: Types.ObjectId;
114
- team?: Types.ObjectId;
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?: string;
118
- source_prefix?: string;
119
- destination_prefix?: string;
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?: string;
128
- last_source_key?: string;
129
- error_message?: string;
130
- started_at?: Date;
131
- completed_at?: Date;
132
- cancelled_at?: Date;
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, Types } from "mongoose";
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: Types.ObjectId;
5
+ user_id: Ref<IUser>;
4
6
  day: Date;
5
7
  action_types: string[];
6
8
  is_milestone_day: boolean;
7
- created_at?: Date;
8
- updated_at?: Date;
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: Types.ObjectId;
7
+ user_id: Ref<IUser>;
5
8
  action_type: QualifyingActionType;
6
- project_id: Types.ObjectId | null;
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?: Date;
12
- updated_at?: Date;
14
+ created_at: Date;
15
+ updated_at: Date;
13
16
  }
@@ -1,10 +1,12 @@
1
- import { Document, Types } from "mongoose";
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: Types.ObjectId;
6
+ user_id: Ref<IUser>;
5
7
  type: MilestoneType;
6
8
  action: string;
7
9
  date: Date;
8
- created_at?: Date;
9
- updated_at?: Date;
10
+ created_at: Date;
11
+ updated_at: Date;
10
12
  }
@@ -1,17 +1,19 @@
1
- import { Document, Types } from "mongoose";
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: Types.ObjectId;
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?: Date;
16
- updated_at?: Date;
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?: Ref<IProject>;
14
+ project_id: Ref<IProject>;
15
15
  plan_type: SUBSCRIPTION_PLAN_TYPE;
16
16
  status: SUBSCRIPTION_STATUS;
17
17
  amount: number;
@@ -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?: string | null;
13
- linear_issue_identifier?: string | null;
14
- linear_issue_url?: string | null;
15
- resolved_at?: Date | null;
16
- remarks?: string | null;
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
  }
@@ -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?: string;
15
- company?: string;
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?: IOrigin;
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?: boolean;
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, Types } from "mongoose";
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
- _id: Types.ObjectId;
8
- volume_id: Types.ObjectId;
9
- user_id: Types.ObjectId;
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?: string | null;
13
- project_id?: Types.ObjectId | null;
14
- project_name?: string | null;
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;
@@ -1,22 +1,24 @@
1
- import { Document, Types } from "mongoose";
2
- import { IUser } from "./user";
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?: Ref<IUser>;
9
- team?: Ref<ITeam>;
10
+ user: Ref<IUser>;
11
+ team: Ref<ITeam>;
10
12
  namespace: string;
11
13
  size: number;
12
14
  type: string;
13
- mount_path?: string;
15
+ mount_path: string;
14
16
  csi_volume_id: string | null;
15
17
  region: Ref<IRegion> | null;
16
- attached_sandbox_id: Types.ObjectId | null;
17
- attached_project_id: Types.ObjectId | null;
18
+ attached_sandbox_id: Ref<ISandbox> | null;
19
+ attached_project_id: Ref<IProject> | null;
18
20
  last_attached_at: Date | null;
19
- deleted_at?: Date | null;
20
- created_at?: Date;
21
- updated_at?: Date;
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?: Ref<ITeam>;
9
+ team_id: Ref<ITeam>;
10
10
  subscription_id: Ref<ISubscription>;
11
11
  webhook_id: string;
12
- external_webhook_url?: string;
12
+ external_webhook_url: string;
13
13
  webhookUrl: string;
14
14
  discordUrl: string;
15
15
  slackUrl: string;
@@ -1,9 +1,13 @@
1
- import { Document, Types } from "mongoose";
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: Types.ObjectId;
5
- user_id: Types.ObjectId;
6
- team: Types.ObjectId | null;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",