@brimble/models 3.7.83 → 3.7.84

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 (233) hide show
  1. package/db-image.ts +5 -0
  2. package/package.json +1 -1
  3. package/types/db-image.ts +1 -0
  4. package/dist/activity-log.d.ts +0 -30
  5. package/dist/activity-log.js +0 -61
  6. package/dist/app-message.d.ts +0 -30
  7. package/dist/app-message.js +0 -14
  8. package/dist/auto-scaling.d.ts +0 -30
  9. package/dist/auto-scaling.js +0 -63
  10. package/dist/card.d.ts +0 -30
  11. package/dist/card.js +0 -41
  12. package/dist/cashier_subscription.d.ts +0 -30
  13. package/dist/cashier_subscription.js +0 -27
  14. package/dist/cashier_subscription_item.d.ts +0 -30
  15. package/dist/cashier_subscription_item.js +0 -17
  16. package/dist/collab-annotation.d.ts +0 -30
  17. package/dist/collab-annotation.js +0 -31
  18. package/dist/collab-comment.d.ts +0 -30
  19. package/dist/collab-comment.js +0 -19
  20. package/dist/collab-integration.d.ts +0 -30
  21. package/dist/collab-integration.js +0 -17
  22. package/dist/collab-push-subscription.d.ts +0 -30
  23. package/dist/collab-push-subscription.js +0 -14
  24. package/dist/collab-settings.d.ts +0 -30
  25. package/dist/collab-settings.js +0 -24
  26. package/dist/collab-share-token.d.ts +0 -30
  27. package/dist/collab-share-token.js +0 -11
  28. package/dist/compute.d.ts +0 -30
  29. package/dist/compute.js +0 -82
  30. package/dist/db-image.d.ts +0 -30
  31. package/dist/db-image.js +0 -62
  32. package/dist/domain/dns.d.ts +0 -30
  33. package/dist/domain/dns.js +0 -33
  34. package/dist/domain/index.d.ts +0 -30
  35. package/dist/domain/index.js +0 -105
  36. package/dist/domain/renewal.d.ts +0 -30
  37. package/dist/domain/renewal.js +0 -21
  38. package/dist/domain/transfer.d.ts +0 -30
  39. package/dist/domain/transfer.js +0 -99
  40. package/dist/enum/index.d.ts +0 -222
  41. package/dist/enum/index.js +0 -261
  42. package/dist/env.d.ts +0 -30
  43. package/dist/env.js +0 -34
  44. package/dist/environment-variable.d.ts +0 -30
  45. package/dist/environment-variable.js +0 -16
  46. package/dist/follower.d.ts +0 -30
  47. package/dist/follower.js +0 -15
  48. package/dist/following.d.ts +0 -30
  49. package/dist/following.js +0 -15
  50. package/dist/framework.d.ts +0 -30
  51. package/dist/framework.js +0 -84
  52. package/dist/index.d.ts +0 -62
  53. package/dist/index.js +0 -197
  54. package/dist/integration.d.ts +0 -30
  55. package/dist/integration.js +0 -35
  56. package/dist/intention.d.ts +0 -30
  57. package/dist/intention.js +0 -36
  58. package/dist/invoice.d.ts +0 -30
  59. package/dist/invoice.js +0 -28
  60. package/dist/job.d.ts +0 -6
  61. package/dist/job.js +0 -52
  62. package/dist/license.d.ts +0 -30
  63. package/dist/license.js +0 -75
  64. package/dist/load-balancer-port.d.ts +0 -30
  65. package/dist/load-balancer-port.js +0 -27
  66. package/dist/logs.d.ts +0 -30
  67. package/dist/logs.js +0 -42
  68. package/dist/member-permission.d.ts +0 -30
  69. package/dist/member-permission.js +0 -9
  70. package/dist/member.d.ts +0 -30
  71. package/dist/member.js +0 -40
  72. package/dist/ownership-transfer.d.ts +0 -30
  73. package/dist/ownership-transfer.js +0 -35
  74. package/dist/permission.d.ts +0 -30
  75. package/dist/permission.js +0 -12
  76. package/dist/plan_configuration.d.ts +0 -6
  77. package/dist/plan_configuration.js +0 -42
  78. package/dist/project/connection.d.ts +0 -30
  79. package/dist/project/connection.js +0 -14
  80. package/dist/project/index.d.ts +0 -33
  81. package/dist/project/index.js +0 -235
  82. package/dist/project/preview.d.ts +0 -30
  83. package/dist/project/preview.js +0 -37
  84. package/dist/project-environment.d.ts +0 -30
  85. package/dist/project-environment.js +0 -13
  86. package/dist/project-tag-assignment.d.ts +0 -30
  87. package/dist/project-tag-assignment.js +0 -32
  88. package/dist/project_analytics.d.ts +0 -30
  89. package/dist/project_analytics.js +0 -18
  90. package/dist/provider.d.ts +0 -30
  91. package/dist/provider.js +0 -10
  92. package/dist/region.d.ts +0 -30
  93. package/dist/region.js +0 -17
  94. package/dist/role.d.ts +0 -30
  95. package/dist/role.js +0 -11
  96. package/dist/server.d.ts +0 -30
  97. package/dist/server.js +0 -101
  98. package/dist/settings.d.ts +0 -30
  99. package/dist/settings.js +0 -49
  100. package/dist/subscription.d.ts +0 -30
  101. package/dist/subscription.js +0 -82
  102. package/dist/tag.d.ts +0 -30
  103. package/dist/tag.js +0 -29
  104. package/dist/team.d.ts +0 -30
  105. package/dist/team.js +0 -61
  106. package/dist/token.d.ts +0 -30
  107. package/dist/token.js +0 -36
  108. package/dist/types/activity-log.d.ts +0 -18
  109. package/dist/types/activity-log.js +0 -2
  110. package/dist/types/app-message.d.ts +0 -15
  111. package/dist/types/app-message.js +0 -2
  112. package/dist/types/auto-scaling-group.d.ts +0 -20
  113. package/dist/types/auto-scaling-group.js +0 -2
  114. package/dist/types/card.d.ts +0 -12
  115. package/dist/types/card.js +0 -2
  116. package/dist/types/cashier_subscription.d.ts +0 -27
  117. package/dist/types/cashier_subscription.js +0 -2
  118. package/dist/types/collab-annotation.d.ts +0 -27
  119. package/dist/types/collab-annotation.js +0 -2
  120. package/dist/types/collab-comment.d.ts +0 -20
  121. package/dist/types/collab-comment.js +0 -2
  122. package/dist/types/collab-integration.d.ts +0 -13
  123. package/dist/types/collab-integration.js +0 -2
  124. package/dist/types/collab-push-subscription.d.ts +0 -12
  125. package/dist/types/collab-push-subscription.js +0 -2
  126. package/dist/types/collab-settings.d.ts +0 -16
  127. package/dist/types/collab-settings.js +0 -2
  128. package/dist/types/collab-share-token.d.ts +0 -12
  129. package/dist/types/collab-share-token.js +0 -2
  130. package/dist/types/compute.d.ts +0 -48
  131. package/dist/types/compute.js +0 -2
  132. package/dist/types/db-image.d.ts +0 -24
  133. package/dist/types/db-image.js +0 -2
  134. package/dist/types/domain/dns.d.ts +0 -12
  135. package/dist/types/domain/dns.js +0 -2
  136. package/dist/types/domain/index.d.ts +0 -34
  137. package/dist/types/domain/index.js +0 -2
  138. package/dist/types/domain/renewal.d.ts +0 -10
  139. package/dist/types/domain/renewal.js +0 -2
  140. package/dist/types/domain/transfer.d.ts +0 -27
  141. package/dist/types/domain/transfer.js +0 -2
  142. package/dist/types/env.d.ts +0 -13
  143. package/dist/types/env.js +0 -2
  144. package/dist/types/environment-variable.d.ts +0 -12
  145. package/dist/types/environment-variable.js +0 -2
  146. package/dist/types/following.d.ts +0 -5
  147. package/dist/types/following.js +0 -2
  148. package/dist/types/framework.d.ts +0 -39
  149. package/dist/types/framework.js +0 -2
  150. package/dist/types/git.d.ts +0 -14
  151. package/dist/types/git.js +0 -2
  152. package/dist/types/index.d.ts +0 -56
  153. package/dist/types/index.js +0 -2
  154. package/dist/types/installed_integration.d.ts +0 -6
  155. package/dist/types/installed_integration.js +0 -2
  156. package/dist/types/integration.d.ts +0 -14
  157. package/dist/types/integration.js +0 -2
  158. package/dist/types/intention.d.ts +0 -13
  159. package/dist/types/intention.js +0 -2
  160. package/dist/types/invoice.d.ts +0 -15
  161. package/dist/types/invoice.js +0 -2
  162. package/dist/types/job.d.ts +0 -19
  163. package/dist/types/job.js +0 -2
  164. package/dist/types/license.d.ts +0 -18
  165. package/dist/types/license.js +0 -2
  166. package/dist/types/load-balancer-port.d.ts +0 -12
  167. package/dist/types/load-balancer-port.js +0 -2
  168. package/dist/types/logs.d.ts +0 -35
  169. package/dist/types/logs.js +0 -2
  170. package/dist/types/member-permission.d.ts +0 -8
  171. package/dist/types/member-permission.js +0 -2
  172. package/dist/types/member.d.ts +0 -18
  173. package/dist/types/member.js +0 -2
  174. package/dist/types/ownership-transfer.d.ts +0 -12
  175. package/dist/types/ownership-transfer.js +0 -2
  176. package/dist/types/permission.d.ts +0 -13
  177. package/dist/types/permission.js +0 -2
  178. package/dist/types/plan_configuration.d.ts +0 -36
  179. package/dist/types/plan_configuration.js +0 -2
  180. package/dist/types/project/connection.d.ts +0 -6
  181. package/dist/types/project/connection.js +0 -2
  182. package/dist/types/project/index.d.ts +0 -95
  183. package/dist/types/project/index.js +0 -2
  184. package/dist/types/project/preview.d.ts +0 -21
  185. package/dist/types/project/preview.js +0 -2
  186. package/dist/types/project-environment.d.ts +0 -13
  187. package/dist/types/project-environment.js +0 -2
  188. package/dist/types/project-tag-assignment.d.ts +0 -13
  189. package/dist/types/project-tag-assignment.js +0 -2
  190. package/dist/types/project_analytics.d.ts +0 -11
  191. package/dist/types/project_analytics.js +0 -2
  192. package/dist/types/provider.d.ts +0 -7
  193. package/dist/types/provider.js +0 -2
  194. package/dist/types/region.d.ts +0 -15
  195. package/dist/types/region.js +0 -2
  196. package/dist/types/role.d.ts +0 -9
  197. package/dist/types/role.js +0 -2
  198. package/dist/types/server.d.ts +0 -32
  199. package/dist/types/server.js +0 -2
  200. package/dist/types/settings.d.ts +0 -11
  201. package/dist/types/settings.js +0 -2
  202. package/dist/types/subscription.d.ts +0 -33
  203. package/dist/types/subscription.js +0 -2
  204. package/dist/types/tag.d.ts +0 -11
  205. package/dist/types/tag.js +0 -2
  206. package/dist/types/team.d.ts +0 -19
  207. package/dist/types/team.js +0 -2
  208. package/dist/types/token.d.ts +0 -11
  209. package/dist/types/token.js +0 -2
  210. package/dist/types/user.d.ts +0 -41
  211. package/dist/types/user.js +0 -2
  212. package/dist/types/volume.d.ts +0 -14
  213. package/dist/types/volume.js +0 -2
  214. package/dist/types/wallet.d.ts +0 -8
  215. package/dist/types/wallet.js +0 -2
  216. package/dist/types/webhook-category.d.ts +0 -4
  217. package/dist/types/webhook-category.js +0 -2
  218. package/dist/types/webhook-event.d.ts +0 -7
  219. package/dist/types/webhook-event.js +0 -2
  220. package/dist/types/webhook-setting.d.ts +0 -16
  221. package/dist/types/webhook-setting.js +0 -2
  222. package/dist/user.d.ts +0 -30
  223. package/dist/user.js +0 -61
  224. package/dist/volume.d.ts +0 -30
  225. package/dist/volume.js +0 -31
  226. package/dist/wallet.d.ts +0 -30
  227. package/dist/wallet.js +0 -26
  228. package/dist/webhook-category.d.ts +0 -30
  229. package/dist/webhook-category.js +0 -10
  230. package/dist/webhook-event.d.ts +0 -30
  231. package/dist/webhook-event.js +0 -19
  232. package/dist/webhook-setting.d.ts +0 -30
  233. package/dist/webhook-setting.js +0 -50
@@ -1,18 +0,0 @@
1
- import mongoose, { Document } from "mongoose";
2
- import { LicenseStatus } from "../enum";
3
- export interface ILicense extends Document {
4
- licenseKey: string;
5
- infisicalIdentity: string;
6
- userId: mongoose.Types.ObjectId;
7
- teamId: mongoose.Types.ObjectId;
8
- status: LicenseStatus;
9
- tag: string;
10
- subscriptionId: mongoose.Types.ObjectId;
11
- devices: Array<{
12
- deviceId: string;
13
- hostname: string;
14
- lastSeen: Date;
15
- isActive: boolean;
16
- }>;
17
- maxDevices: number;
18
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IProject } from "./project";
3
- import { IRegion } from "./region";
4
- import { IServer } from "./server";
5
- export interface ILoadBalancerPort extends Document {
6
- port: number;
7
- server_id: IServer;
8
- project_id: IProject;
9
- region_id: IRegion;
10
- createdAt: Date;
11
- updatedAt: Date;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ENVIRONMENT, PROJECT_STATUS } from "../enum";
3
- import { IProject } from "./project";
4
- import { IUser } from "./user";
5
- import { IPreview } from "./project/preview";
6
- import { ITeam } from "./team";
7
- export interface ILog extends Document {
8
- name: string;
9
- key: string;
10
- commit: {
11
- sha: string;
12
- branch: string;
13
- message: string;
14
- committer: {
15
- name: string;
16
- email: string;
17
- username: string;
18
- };
19
- };
20
- status: PROJECT_STATUS;
21
- project: IProject;
22
- user?: IUser;
23
- team?: ITeam;
24
- jobs: {
25
- id: number;
26
- name: string;
27
- }[];
28
- environment: ENVIRONMENT;
29
- preview: IPreview;
30
- startTime: Date | string;
31
- endTime: Date | string;
32
- createdAt: Date | string;
33
- updatedAt: Date | string;
34
- deleted: boolean;
35
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IPermission } from "./permission";
3
- import { IMember } from "./member";
4
- export interface IMemberPermission extends Document {
5
- permission: IPermission;
6
- member: IMember;
7
- enabled: boolean;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ROLES } from "../enum";
3
- import { ITeam, IUser } from "./";
4
- import { IMemberPermission } from "./member-permission";
5
- import { IProjectEnvironment } from "./project-environment";
6
- export interface IMember extends Document {
7
- user: IUser;
8
- team: ITeam;
9
- role: ROLES;
10
- accepted: boolean;
11
- invitedBy: IUser;
12
- email: string;
13
- featureOnboarded: boolean;
14
- permissions: IMemberPermission[];
15
- project_environments: IProjectEnvironment[];
16
- createdAt: Date;
17
- updatedAt: Date;
18
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ITeam } from "./team";
3
- import { IUser } from "./user";
4
- export interface IOwnershipTransfer extends Document {
5
- team: ITeam;
6
- from_user: IUser;
7
- to_user: IUser;
8
- status: "pending" | "accepted" | "denied" | "expired";
9
- expires_at: Date;
10
- created_at: Date;
11
- updated_at: Date;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IRole } from "./role";
3
- import { PERMISSION_TYPE, REQUEST_TYPE } from "../enum";
4
- export interface IPermission extends Document {
5
- title: string;
6
- role: IRole[];
7
- type: PERMISSION_TYPE;
8
- request: {
9
- route: string;
10
- type: REQUEST_TYPE;
11
- };
12
- enabled: boolean;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,36 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { SUBSCRIPTION_PLAN_TYPE } from "../enum";
3
- import { IRegion } from "./region";
4
- export interface IPlanConfiguration extends Document {
5
- tag: string;
6
- price: number;
7
- region: IRegion;
8
- slack_support: boolean;
9
- autoscaling_enabled: boolean;
10
- concurrent_builds: number;
11
- project_limit: number;
12
- deploy_private_organization: boolean;
13
- preview_comments: boolean;
14
- analytics: boolean;
15
- build_minutes: number;
16
- log_retention: number;
17
- multi_region: boolean;
18
- ai_debug_enabled: boolean;
19
- ai_debug_limit: number;
20
- bandwidth: number;
21
- pull_request_preview: boolean;
22
- plan_type: SUBSCRIPTION_PLAN_TYPE;
23
- memory: number;
24
- build_timeout: number;
25
- storage: number;
26
- cpu: number;
27
- tokens: number;
28
- hierarchy: number;
29
- view_metrics: boolean;
30
- token_request: number;
31
- custom_domain: boolean;
32
- unlimited_projects: boolean;
33
- webhook_enabled: boolean;
34
- can_deploy_all_applications: boolean;
35
- stripe_prices?: Record<string, string>;
36
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IProject } from ".";
3
- export interface IProjectConnection extends Document {
4
- service: IProject;
5
- project: IProject;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,95 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { GIT_TYPE, PROJECT_STATUS, ServiceType } from "../../enum";
3
- import { IDomain } from "../domain";
4
- import { IEnv } from "../env";
5
- import { ILog } from "../logs";
6
- import { ITeam } from "../team";
7
- import { IUser } from "../user";
8
- import { IServer } from "../server";
9
- import { IPreview } from "./preview";
10
- import { IDbImage } from "../db-image";
11
- import { IAutoScalingGroup } from "../auto-scaling-group";
12
- import { IProjectEnvironment } from "../project-environment";
13
- import { IRegion } from "../region";
14
- export interface IProject extends Document {
15
- name: string;
16
- healthCheckPath?: string;
17
- preStartCommand?: string;
18
- backupEnabled: boolean;
19
- buildCacheEnabled?: boolean;
20
- domains: Array<IDomain>;
21
- environments: Array<IEnv>;
22
- uuid: number;
23
- pid: number;
24
- port: number;
25
- ip: string;
26
- dir: string;
27
- tlsEnabled: boolean;
28
- dbImage: IDbImage;
29
- installCommand: string;
30
- buildCommand: string;
31
- startCommand: string;
32
- outputDirectory: string;
33
- user_id: IUser;
34
- monitor_id: string;
35
- nomadJobId: string;
36
- watchPaths: string[];
37
- repo: {
38
- name: string;
39
- full_name: string;
40
- id: number;
41
- branch: string;
42
- installationId: number;
43
- git: GIT_TYPE;
44
- } | null;
45
- rootDir?: string;
46
- team: ITeam;
47
- server: IServer;
48
- isPrivate: boolean;
49
- status: PROJECT_STATUS;
50
- framework: string;
51
- description: string;
52
- logs: Array<ILog>;
53
- log: ILog;
54
- maintenance: boolean;
55
- passwordEnabled: boolean;
56
- disabled: boolean;
57
- authEnabled: boolean;
58
- password: string | null;
59
- deployedInCluster: boolean;
60
- screenshot: {
61
- image: string;
62
- public_id: string;
63
- };
64
- createdAt: Date;
65
- updatedAt: Date;
66
- container_stats_schedule_id: string | null;
67
- lastProcessed: number;
68
- tracking_token: string;
69
- from: string;
70
- previews: IPreview[];
71
- project_environment?: IProjectEnvironment;
72
- inherit_environment_vars: boolean;
73
- replicas: number;
74
- vaultPath: string | null;
75
- vaultToken: string | null;
76
- specs: {
77
- memory: number;
78
- cpu: number;
79
- storage: number;
80
- region: IRegion;
81
- };
82
- last_requested: Date;
83
- isPaused: boolean;
84
- billable: boolean;
85
- serviceType?: ServiceType;
86
- last_backup_url?: string;
87
- last_backup_at?: Date;
88
- replica_ready: boolean;
89
- autoscaling_group?: IAutoScalingGroup;
90
- isPaid: boolean;
91
- hasUpdates?: boolean;
92
- whiteListedIps?: string[];
93
- diskSize?: number;
94
- volumeMount: string;
95
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IServer } from "../server";
3
- import { IProject } from ".";
4
- import { PROJECT_STATUS } from "../../enum";
5
- import { ILog } from "../logs";
6
- export interface IPreview extends Document {
7
- name: string;
8
- healthCheckPath?: string;
9
- pid: number;
10
- port: number;
11
- ip: string;
12
- dir: string;
13
- branch: string;
14
- server: IServer;
15
- project: IProject;
16
- issue_comment_id: number;
17
- status: PROJECT_STATUS;
18
- log: ILog;
19
- last_requested: Date;
20
- isPaused: boolean;
21
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ITeam } from "./team";
3
- import { IUser } from "./user";
4
- export interface IProjectEnvironment extends Document {
5
- name: string;
6
- slug: string;
7
- owner: IUser;
8
- team?: ITeam;
9
- inherit_from?: IProjectEnvironment;
10
- isDefault: boolean;
11
- createdAt: Date;
12
- updatedAt: Date;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ITag } from "./tag";
3
- import { IProject } from "./project";
4
- import { ITeam } from "./team";
5
- import { IUser } from "./user";
6
- export interface IProjectTagAssignment extends Document {
7
- tagId: ITag;
8
- projectId: IProject;
9
- teamId: ITeam;
10
- assignedBy: IUser;
11
- createdAt: Date;
12
- updatedAt: Date;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
- export interface IProjectAnalytics extends Document {
3
- project: Types.ObjectId;
4
- provider: "umami";
5
- websiteId: string;
6
- shareId?: string | null;
7
- domain: string;
8
- enabled: boolean;
9
- createdAt: Date;
10
- updatedAt: Date;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { Document } from "mongoose";
2
- export interface IProvider extends Document {
3
- name: string;
4
- slug: string;
5
- logo: string;
6
- enabled: boolean;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- import { Schema } from "mongoose";
2
- import { REGION_CONTINENT } from "../enum";
3
- export interface IRegion extends Document {
4
- _id: Schema.Types.ObjectId;
5
- name: string;
6
- country: string;
7
- continent?: REGION_CONTINENT;
8
- enabled?: boolean;
9
- dbVolumePath: string;
10
- is_paid: boolean;
11
- provider: string;
12
- provider_identifier: string;
13
- storage_pricing_factor: number;
14
- floating_ip?: string;
15
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ROLES } from "../enum";
3
- import { IPermission } from "./permission";
4
- export interface IRole extends Document {
5
- type: ROLES;
6
- description?: string;
7
- is_custom?: boolean;
8
- permissions: IPermission[];
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,32 +0,0 @@
1
- import mongoose, { Document } from "mongoose";
2
- import { SERVER_STATUS, SERVER_PROTOCOL } from "../enum";
3
- import { IRegion } from "./region";
4
- export interface IServer extends Document {
5
- name: string;
6
- url: string;
7
- grpc_address?: string;
8
- ipv6?: string;
9
- domain?: string;
10
- userId: mongoose.Types.ObjectId;
11
- teamId?: mongoose.Types.ObjectId;
12
- ip_address: string;
13
- private_ip_address: string;
14
- tunnel_token: string;
15
- type: string;
16
- protocol: SERVER_PROTOCOL;
17
- status: SERVER_STATUS;
18
- default: boolean;
19
- tag: string;
20
- region: IRegion;
21
- webhook_url?: string;
22
- is_custom_provision: boolean;
23
- firewall_id?: string;
24
- specifications: Record<any, any>;
25
- plugin_id?: string;
26
- provider: string;
27
- provider_location?: string;
28
- provider_identifier?: string;
29
- topology_path?: string;
30
- cert_storage_path?: string | null;
31
- meta: Record<any, any>;
32
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { Document } from "mongoose";
2
- export interface ISettings extends Document {
3
- vaultEnabled: boolean;
4
- maintenanceMode: boolean;
5
- buildsEnabled: boolean;
6
- minimumBuildMinutes: number;
7
- enableSecretRotation: boolean;
8
- domainPromoEnabled: boolean;
9
- postHogEnabled: boolean;
10
- metaSettings: Record<string, any>;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,33 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { SUBSCRIPTION_PLAN_TYPE, SUBSCRIPTION_STATUS } from "../enum";
3
- import { IUser } from "./user";
4
- import { ITeam } from "./team";
5
- import { IProject } from "./project";
6
- export interface ISubscription extends Document {
7
- initial_start_date: string;
8
- team_id: ITeam;
9
- due_amount: number;
10
- admin_id: IUser;
11
- downgraded: boolean;
12
- billable_id: IUser;
13
- project_id?: IProject;
14
- plan_type: SUBSCRIPTION_PLAN_TYPE;
15
- status: SUBSCRIPTION_STATUS;
16
- amount: number;
17
- transaction_retries: number;
18
- debit_date: string;
19
- start_date: string;
20
- expiry_date: string;
21
- reminder_date: string;
22
- is_pending_downgrade: boolean;
23
- grafana_org_id: string;
24
- job_identifier: string;
25
- trigger_created: boolean;
26
- trigger_created_at: string;
27
- disabled_at: Date;
28
- specifications: {
29
- [key: string]: any;
30
- };
31
- created_at: Date;
32
- updated_at: Date;
33
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ITeam } from "./team";
3
- import { IUser } from "./user";
4
- export interface ITag extends Document {
5
- name: string;
6
- color: string;
7
- teamId: ITeam;
8
- createdBy: IUser;
9
- createdAt: Date;
10
- updatedAt: Date;
11
- }
package/dist/types/tag.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IMember, IProject, ISubscription } from "./";
3
- import { BUILD_DISABLED_BY } from "../enum";
4
- export interface ITeam extends Document {
5
- name: string;
6
- description: string;
7
- size: number;
8
- members: IMember[];
9
- projects: IProject[];
10
- ai_usage_count: number;
11
- image: string;
12
- isCreator: boolean;
13
- build_minutes: number;
14
- build_minutes_last_reset_at: Date | null;
15
- build_minutes_cycle_anchor: Date | null;
16
- build_disabled: boolean;
17
- build_disabled_by: BUILD_DISABLED_BY;
18
- subscription: ISubscription;
19
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ISubscription } from "./subscription";
3
- import { IUser } from "./user";
4
- export interface IToken extends Document {
5
- subscription_id: ISubscription;
6
- owner_id: IUser;
7
- key_id: string;
8
- key: string;
9
- tokens_remaining: number;
10
- tokens_used: number;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,41 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IGit } from ".";
3
- import { IFollowing, IProject, ITeam } from "./";
4
- import { BUILD_DISABLED_BY } from "../enum";
5
- export interface IUser extends Document {
6
- first_name: string;
7
- last_name: string;
8
- email: string;
9
- username: string;
10
- password: string;
11
- email_verified_at: string;
12
- verification_token: number;
13
- token?: string;
14
- company?: string;
15
- ai_usage_count: number;
16
- github: IGit;
17
- gitlab: IGit;
18
- location: string;
19
- interests: Array<string>;
20
- bitbucket: IGit;
21
- following: IFollowing[];
22
- projects: IProject[];
23
- teams: ITeam[];
24
- avatar: string;
25
- freeTrialActive: boolean;
26
- activated: boolean;
27
- is_waitlist: boolean;
28
- build_disabled: boolean;
29
- build_disabled_by: BUILD_DISABLED_BY;
30
- spending_limit: number;
31
- build_minutes: number;
32
- disabled: boolean;
33
- disabled_at: Date;
34
- has_payment_method: boolean;
35
- notifications: {
36
- email: boolean;
37
- mute: boolean;
38
- };
39
- created_at: Date;
40
- updated_at: Date;
41
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IUser } from "./user";
3
- import { ITeam } from "./team";
4
- import { ISubscription } from "./subscription";
5
- export interface IVolume extends Document {
6
- name: string;
7
- user?: IUser;
8
- team?: ITeam;
9
- subscription: ISubscription;
10
- size: number;
11
- mount_path?: string;
12
- created_at?: Date;
13
- updated_at?: Date;
14
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });