@brimble/models 3.8.43 → 3.8.45

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 (278) hide show
  1. package/enum/index.ts +10 -0
  2. package/index.ts +4 -1
  3. package/package.json +1 -1
  4. package/storage.ts +36 -2
  5. package/types/index.ts +1 -0
  6. package/types/storage.ts +25 -1
  7. package/types/volume.ts +1 -0
  8. package/volume.ts +4 -0
  9. package/dist/activity-log.d.ts +0 -9
  10. package/dist/activity-log.js +0 -61
  11. package/dist/app-message.d.ts +0 -9
  12. package/dist/app-message.js +0 -14
  13. package/dist/auto-scaling.d.ts +0 -9
  14. package/dist/auto-scaling.js +0 -63
  15. package/dist/card.d.ts +0 -9
  16. package/dist/card.js +0 -41
  17. package/dist/cashier_subscription.d.ts +0 -9
  18. package/dist/cashier_subscription.js +0 -27
  19. package/dist/cashier_subscription_item.d.ts +0 -9
  20. package/dist/cashier_subscription_item.js +0 -17
  21. package/dist/collab-annotation.d.ts +0 -9
  22. package/dist/collab-annotation.js +0 -31
  23. package/dist/collab-comment.d.ts +0 -9
  24. package/dist/collab-comment.js +0 -19
  25. package/dist/collab-integration.d.ts +0 -9
  26. package/dist/collab-integration.js +0 -17
  27. package/dist/collab-push-subscription.d.ts +0 -9
  28. package/dist/collab-push-subscription.js +0 -14
  29. package/dist/collab-settings.d.ts +0 -9
  30. package/dist/collab-settings.js +0 -24
  31. package/dist/collab-share-token.d.ts +0 -9
  32. package/dist/collab-share-token.js +0 -11
  33. package/dist/compute.d.ts +0 -9
  34. package/dist/compute.js +0 -82
  35. package/dist/db-image.d.ts +0 -9
  36. package/dist/db-image.js +0 -67
  37. package/dist/domain/dns.d.ts +0 -9
  38. package/dist/domain/dns.js +0 -33
  39. package/dist/domain/index.d.ts +0 -9
  40. package/dist/domain/index.js +0 -109
  41. package/dist/domain/renewal.d.ts +0 -9
  42. package/dist/domain/renewal.js +0 -21
  43. package/dist/domain/transfer.d.ts +0 -9
  44. package/dist/domain/transfer.js +0 -99
  45. package/dist/enum/index.d.ts +0 -263
  46. package/dist/enum/index.js +0 -309
  47. package/dist/env.d.ts +0 -9
  48. package/dist/env.js +0 -34
  49. package/dist/environment-variable.d.ts +0 -9
  50. package/dist/environment-variable.js +0 -16
  51. package/dist/follower.d.ts +0 -9
  52. package/dist/follower.js +0 -15
  53. package/dist/following.d.ts +0 -9
  54. package/dist/following.js +0 -15
  55. package/dist/framework.d.ts +0 -9
  56. package/dist/framework.js +0 -84
  57. package/dist/idempotency.d.ts +0 -9
  58. package/dist/idempotency.js +0 -17
  59. package/dist/index.d.ts +0 -72
  60. package/dist/index.js +0 -229
  61. package/dist/integration.d.ts +0 -9
  62. package/dist/integration.js +0 -35
  63. package/dist/intention.d.ts +0 -9
  64. package/dist/intention.js +0 -36
  65. package/dist/invoice.d.ts +0 -9
  66. package/dist/invoice.js +0 -28
  67. package/dist/job.d.ts +0 -10
  68. package/dist/job.js +0 -62
  69. package/dist/license.d.ts +0 -9
  70. package/dist/license.js +0 -75
  71. package/dist/load-balancer-port.d.ts +0 -9
  72. package/dist/load-balancer-port.js +0 -27
  73. package/dist/logs.d.ts +0 -9
  74. package/dist/logs.js +0 -40
  75. package/dist/member-permission.d.ts +0 -9
  76. package/dist/member-permission.js +0 -9
  77. package/dist/member.d.ts +0 -9
  78. package/dist/member.js +0 -40
  79. package/dist/object-storage-usage-segment.d.ts +0 -9
  80. package/dist/object-storage-usage-segment.js +0 -46
  81. package/dist/ownership-transfer.d.ts +0 -9
  82. package/dist/ownership-transfer.js +0 -35
  83. package/dist/permission.d.ts +0 -9
  84. package/dist/permission.js +0 -12
  85. package/dist/plan_configuration.d.ts +0 -10
  86. package/dist/plan_configuration.js +0 -61
  87. package/dist/project/connection.d.ts +0 -9
  88. package/dist/project/connection.js +0 -14
  89. package/dist/project/index.d.ts +0 -16
  90. package/dist/project/index.js +0 -256
  91. package/dist/project/preview.d.ts +0 -9
  92. package/dist/project/preview.js +0 -37
  93. package/dist/project-environment.d.ts +0 -9
  94. package/dist/project-environment.js +0 -13
  95. package/dist/project-tag-assignment.d.ts +0 -9
  96. package/dist/project-tag-assignment.js +0 -32
  97. package/dist/project_analytics.d.ts +0 -9
  98. package/dist/project_analytics.js +0 -18
  99. package/dist/provider.d.ts +0 -9
  100. package/dist/provider.js +0 -10
  101. package/dist/region.d.ts +0 -10
  102. package/dist/region.js +0 -17
  103. package/dist/role.d.ts +0 -9
  104. package/dist/role.js +0 -11
  105. package/dist/sandbox-activity.d.ts +0 -9
  106. package/dist/sandbox-activity.js +0 -49
  107. package/dist/sandbox-image.d.ts +0 -9
  108. package/dist/sandbox-image.js +0 -31
  109. package/dist/sandbox-snapshot-usage-segment.d.ts +0 -9
  110. package/dist/sandbox-snapshot-usage-segment.js +0 -49
  111. package/dist/sandbox-snapshot.d.ts +0 -9
  112. package/dist/sandbox-snapshot.js +0 -51
  113. package/dist/sandbox-usage-segment.d.ts +0 -9
  114. package/dist/sandbox-usage-segment.js +0 -57
  115. package/dist/sandbox.d.ts +0 -9
  116. package/dist/sandbox.js +0 -132
  117. package/dist/server.d.ts +0 -9
  118. package/dist/server.js +0 -101
  119. package/dist/settings.d.ts +0 -9
  120. package/dist/settings.js +0 -49
  121. package/dist/storage.d.ts +0 -29
  122. package/dist/storage.js +0 -65
  123. package/dist/subscription.d.ts +0 -9
  124. package/dist/subscription.js +0 -82
  125. package/dist/tag.d.ts +0 -9
  126. package/dist/tag.js +0 -29
  127. package/dist/team.d.ts +0 -9
  128. package/dist/team.js +0 -82
  129. package/dist/token.d.ts +0 -9
  130. package/dist/token.js +0 -36
  131. package/dist/types/activity-log.d.ts +0 -18
  132. package/dist/types/activity-log.js +0 -2
  133. package/dist/types/app-message.d.ts +0 -15
  134. package/dist/types/app-message.js +0 -2
  135. package/dist/types/auto-scaling-group.d.ts +0 -20
  136. package/dist/types/auto-scaling-group.js +0 -2
  137. package/dist/types/card.d.ts +0 -12
  138. package/dist/types/card.js +0 -2
  139. package/dist/types/cashier_subscription.d.ts +0 -27
  140. package/dist/types/cashier_subscription.js +0 -2
  141. package/dist/types/collab-annotation.d.ts +0 -27
  142. package/dist/types/collab-annotation.js +0 -2
  143. package/dist/types/collab-comment.d.ts +0 -20
  144. package/dist/types/collab-comment.js +0 -2
  145. package/dist/types/collab-integration.d.ts +0 -13
  146. package/dist/types/collab-integration.js +0 -2
  147. package/dist/types/collab-push-subscription.d.ts +0 -12
  148. package/dist/types/collab-push-subscription.js +0 -2
  149. package/dist/types/collab-settings.d.ts +0 -16
  150. package/dist/types/collab-settings.js +0 -2
  151. package/dist/types/collab-share-token.d.ts +0 -12
  152. package/dist/types/collab-share-token.js +0 -2
  153. package/dist/types/compute.d.ts +0 -48
  154. package/dist/types/compute.js +0 -2
  155. package/dist/types/db-image.d.ts +0 -25
  156. package/dist/types/db-image.js +0 -2
  157. package/dist/types/domain/dns.d.ts +0 -12
  158. package/dist/types/domain/dns.js +0 -2
  159. package/dist/types/domain/index.d.ts +0 -35
  160. package/dist/types/domain/index.js +0 -2
  161. package/dist/types/domain/renewal.d.ts +0 -10
  162. package/dist/types/domain/renewal.js +0 -2
  163. package/dist/types/domain/transfer.d.ts +0 -27
  164. package/dist/types/domain/transfer.js +0 -2
  165. package/dist/types/env.d.ts +0 -13
  166. package/dist/types/env.js +0 -2
  167. package/dist/types/environment-variable.d.ts +0 -12
  168. package/dist/types/environment-variable.js +0 -2
  169. package/dist/types/following.d.ts +0 -5
  170. package/dist/types/following.js +0 -2
  171. package/dist/types/framework.d.ts +0 -39
  172. package/dist/types/framework.js +0 -2
  173. package/dist/types/git.d.ts +0 -14
  174. package/dist/types/git.js +0 -2
  175. package/dist/types/idempotency.d.ts +0 -10
  176. package/dist/types/idempotency.js +0 -2
  177. package/dist/types/index.d.ts +0 -66
  178. package/dist/types/index.js +0 -2
  179. package/dist/types/installed_integration.d.ts +0 -6
  180. package/dist/types/installed_integration.js +0 -2
  181. package/dist/types/integration.d.ts +0 -14
  182. package/dist/types/integration.js +0 -2
  183. package/dist/types/intention.d.ts +0 -13
  184. package/dist/types/intention.js +0 -2
  185. package/dist/types/invoice.d.ts +0 -15
  186. package/dist/types/invoice.js +0 -2
  187. package/dist/types/job.d.ts +0 -19
  188. package/dist/types/job.js +0 -2
  189. package/dist/types/license.d.ts +0 -18
  190. package/dist/types/license.js +0 -2
  191. package/dist/types/load-balancer-port.d.ts +0 -12
  192. package/dist/types/load-balancer-port.js +0 -2
  193. package/dist/types/logs.d.ts +0 -35
  194. package/dist/types/logs.js +0 -2
  195. package/dist/types/member-permission.d.ts +0 -8
  196. package/dist/types/member-permission.js +0 -2
  197. package/dist/types/member.d.ts +0 -18
  198. package/dist/types/member.js +0 -2
  199. package/dist/types/object-storage-usage-segment.d.ts +0 -23
  200. package/dist/types/object-storage-usage-segment.js +0 -2
  201. package/dist/types/ownership-transfer.d.ts +0 -12
  202. package/dist/types/ownership-transfer.js +0 -2
  203. package/dist/types/permission.d.ts +0 -13
  204. package/dist/types/permission.js +0 -2
  205. package/dist/types/plan_configuration.d.ts +0 -55
  206. package/dist/types/plan_configuration.js +0 -2
  207. package/dist/types/project/connection.d.ts +0 -6
  208. package/dist/types/project/connection.js +0 -2
  209. package/dist/types/project/index.d.ts +0 -100
  210. package/dist/types/project/index.js +0 -2
  211. package/dist/types/project/preview.d.ts +0 -21
  212. package/dist/types/project/preview.js +0 -2
  213. package/dist/types/project-environment.d.ts +0 -13
  214. package/dist/types/project-environment.js +0 -2
  215. package/dist/types/project-tag-assignment.d.ts +0 -13
  216. package/dist/types/project-tag-assignment.js +0 -2
  217. package/dist/types/project_analytics.d.ts +0 -11
  218. package/dist/types/project_analytics.js +0 -2
  219. package/dist/types/provider.d.ts +0 -7
  220. package/dist/types/provider.js +0 -2
  221. package/dist/types/region.d.ts +0 -15
  222. package/dist/types/region.js +0 -2
  223. package/dist/types/role.d.ts +0 -9
  224. package/dist/types/role.js +0 -2
  225. package/dist/types/sandbox-activity.d.ts +0 -14
  226. package/dist/types/sandbox-activity.js +0 -2
  227. package/dist/types/sandbox-image.d.ts +0 -9
  228. package/dist/types/sandbox-image.js +0 -2
  229. package/dist/types/sandbox-snapshot-usage-segment.d.ts +0 -16
  230. package/dist/types/sandbox-snapshot-usage-segment.js +0 -2
  231. package/dist/types/sandbox-snapshot.d.ts +0 -16
  232. package/dist/types/sandbox-snapshot.js +0 -2
  233. package/dist/types/sandbox-usage-segment.d.ts +0 -25
  234. package/dist/types/sandbox-usage-segment.js +0 -2
  235. package/dist/types/sandbox.d.ts +0 -41
  236. package/dist/types/sandbox.js +0 -2
  237. package/dist/types/server.d.ts +0 -32
  238. package/dist/types/server.js +0 -2
  239. package/dist/types/settings.d.ts +0 -11
  240. package/dist/types/settings.js +0 -2
  241. package/dist/types/storage.d.ts +0 -62
  242. package/dist/types/storage.js +0 -2
  243. package/dist/types/subscription.d.ts +0 -33
  244. package/dist/types/subscription.js +0 -2
  245. package/dist/types/tag.d.ts +0 -11
  246. package/dist/types/tag.js +0 -2
  247. package/dist/types/team.d.ts +0 -24
  248. package/dist/types/team.js +0 -2
  249. package/dist/types/token.d.ts +0 -11
  250. package/dist/types/token.js +0 -2
  251. package/dist/types/user.d.ts +0 -44
  252. package/dist/types/user.js +0 -2
  253. package/dist/types/volume-usage-segment.d.ts +0 -16
  254. package/dist/types/volume-usage-segment.js +0 -2
  255. package/dist/types/volume.d.ts +0 -19
  256. package/dist/types/volume.js +0 -2
  257. package/dist/types/wallet.d.ts +0 -8
  258. package/dist/types/wallet.js +0 -2
  259. package/dist/types/webhook-category.d.ts +0 -4
  260. package/dist/types/webhook-category.js +0 -2
  261. package/dist/types/webhook-event.d.ts +0 -7
  262. package/dist/types/webhook-event.js +0 -2
  263. package/dist/types/webhook-setting.d.ts +0 -16
  264. package/dist/types/webhook-setting.js +0 -2
  265. package/dist/user.d.ts +0 -9
  266. package/dist/user.js +0 -70
  267. package/dist/volume-usage-segment.d.ts +0 -9
  268. package/dist/volume-usage-segment.js +0 -46
  269. package/dist/volume.d.ts +0 -9
  270. package/dist/volume.js +0 -44
  271. package/dist/wallet.d.ts +0 -9
  272. package/dist/wallet.js +0 -26
  273. package/dist/webhook-category.d.ts +0 -9
  274. package/dist/webhook-category.js +0 -10
  275. package/dist/webhook-event.d.ts +0 -9
  276. package/dist/webhook-event.js +0 -19
  277. package/dist/webhook-setting.d.ts +0 -9
  278. package/dist/webhook-setting.js +0 -50
@@ -1,14 +0,0 @@
1
- import { Document } from "mongoose";
2
- export interface IGit extends Document {
3
- git_id?: number;
4
- installation_ids?: number[];
5
- access_token: string;
6
- token_type: string;
7
- scope?: string;
8
- refresh_token?: string;
9
- created_at?: number;
10
- state?: string;
11
- expires_in?: number;
12
- expires_at?: number;
13
- scopes?: string;
14
- }
package/dist/types/git.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import { Document } from "mongoose";
2
- export interface IIdempotencyRecord extends Document<string> {
3
- _id: string;
4
- endpoint: string;
5
- requestHash: string;
6
- responseStatus: number;
7
- responseBody: unknown;
8
- createdAt: Date;
9
- expiresAt: Date;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,66 +0,0 @@
1
- export type { IAutoScalingGroup } from "./auto-scaling-group";
2
- export type { ICard } from "./card";
3
- export type { IComputeChange } from "./compute";
4
- export type { IDbImage } from "./db-image";
5
- export type { IDomain } from "./domain";
6
- export type { IDns } from "./domain/dns";
7
- export type { IDomainRenewal } from "./domain/renewal";
8
- export type { IDomainTransfer } from "./domain/transfer";
9
- export type { IEnv } from "./env";
10
- export type { IFollowing } from "./following";
11
- export type { BrimbleFrameworkType, IFramework } from "./framework";
12
- export type { IGit } from "./git";
13
- export type { IInstalledIntegration } from "./installed_integration";
14
- export type { IIntegration } from "./integration";
15
- export type { IIntention } from "./intention";
16
- export type { IJob } from "./job";
17
- export type { ILicense } from "./license";
18
- export type { ILoadBalancerPort } from "./load-balancer-port";
19
- export type { ILog } from "./logs";
20
- export type { IMember } from "./member";
21
- export type { IMemberPermission } from "./member-permission";
22
- export type { IPermission } from "./permission";
23
- export type { IPlanConfiguration } from "./plan_configuration";
24
- export type { IProvider } from "./provider";
25
- export type { IProject } from "./project";
26
- export type { IProjectAnalytics } from "./project_analytics";
27
- export type { IProjectConnection } from "./project/connection";
28
- export type { IPreview } from "./project/preview";
29
- export type { IRegion } from "./region";
30
- export type { IRole } from "./role";
31
- export type { IServer } from "./server";
32
- export type { ISettings } from "./settings";
33
- export type { ISubscription } from "./subscription";
34
- export type { ITeam } from "./team";
35
- export type { IToken } from "./token";
36
- export type { IUser } from "./user";
37
- export type { IVolume } from "./volume";
38
- export type { IWallet } from "./wallet";
39
- export type { IWebhookCategory } from "./webhook-category";
40
- export type { IWebhookEvent } from "./webhook-event";
41
- export type { IWebhookSetting } from "./webhook-setting";
42
- export type { ICollabAnnotation } from "./collab-annotation";
43
- export type { ICollabComment, ICollabAttachment } from "./collab-comment";
44
- export type { ICollabIntegration } from "./collab-integration";
45
- export type { ICollabSettings } from "./collab-settings";
46
- export type { ICollabShareToken } from "./collab-share-token";
47
- export type { ICollabPushSubscription } from "./collab-push-subscription";
48
- export type { IAppMessage } from "./app-message";
49
- export type { IInvoice } from "./invoice";
50
- export type { IProjectTagAssignment } from "./project-tag-assignment";
51
- export type { ITag } from "./tag";
52
- export type { ICashierSubscription, ICashierSubscriptionItem } from "./cashier_subscription";
53
- export type { IProjectEnvironment } from "./project-environment";
54
- export type { IEnvironmentVariable } from "./environment-variable";
55
- export type { IActivityLog } from "./activity-log";
56
- export type { IOwnershipTransfer } from "./ownership-transfer";
57
- export type { ISandbox, ISandboxSpecs } from "./sandbox";
58
- export type { ISandboxActivity } from "./sandbox-activity";
59
- export type { ISandboxImage } from "./sandbox-image";
60
- export type { ISandboxSnapshot } from "./sandbox-snapshot";
61
- export type { ISandboxSnapshotUsageSegment, ISandboxSnapshotUsageSegmentCosts, } from "./sandbox-snapshot-usage-segment";
62
- export type { ISandboxUsageSegment, ISandboxUsageSegmentCurrent, ISandboxUsageSegmentCosts, } from "./sandbox-usage-segment";
63
- export type { IVolumeUsageSegment, IVolumeUsageSegmentCosts, } from "./volume-usage-segment";
64
- export type { IObjectStorageUsageSegment, IObjectStorageUsageSegmentCosts, IObjectStorageUsageUnitsSummary, } from "./object-storage-usage-segment";
65
- export type { IIdempotencyRecord } from "./idempotency";
66
- export type { IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, StorageTokenPermission, } from "./storage";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { Document } from "mongoose";
2
- export interface IInstalledIntegration extends Document {
3
- user_id: string;
4
- integration_id: string;
5
- enabled: boolean;
6
- }
@@ -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 { INTEGRATION_PROVIDERS, INTEGRATION_TYPES } from "../enum";
3
- export interface IIntegration extends Document {
4
- user_id: string;
5
- team_id?: string;
6
- app_id?: string;
7
- name: INTEGRATION_PROVIDERS;
8
- scope_description?: string[];
9
- hook?: string;
10
- reference?: string;
11
- token?: string;
12
- type: INTEGRATION_TYPES;
13
- extra?: any;
14
- }
@@ -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 { IProject } from "./";
3
- export interface IIntention extends Document {
4
- project: IProject;
5
- sourceName: string;
6
- destinationName: string;
7
- sourceNamespace: string;
8
- destinationNamespace: string;
9
- action: "allow" | "deny";
10
- description?: string;
11
- createdAt: Date;
12
- updatedAt: Date;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { INVOICE_STATUS, INVOICE_PAYMENT_STATUS, INVOICE_TYPE } from "../enum";
3
- export interface IInvoice extends Document {
4
- ref: string;
5
- user_id: string;
6
- subscription_id: string;
7
- total_amount: number;
8
- due: boolean;
9
- type: INVOICE_TYPE;
10
- status: INVOICE_STATUS;
11
- payment_status: INVOICE_PAYMENT_STATUS;
12
- billing_period: string;
13
- created_at: Date;
14
- updated_at: Date;
15
- }
@@ -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 { JobStatus } from "../enum";
3
- export interface IJob extends Document {
4
- title: string;
5
- jobId: string;
6
- url: string;
7
- method: string;
8
- schedule: string;
9
- headers?: Map<string, string>;
10
- maxAttempts?: number;
11
- attempts?: number;
12
- isRecurring: boolean;
13
- lastRun?: Date;
14
- nextRun?: Date;
15
- body?: any;
16
- status?: JobStatus;
17
- createdAt?: Date;
18
- updatedAt?: Date;
19
- }
package/dist/types/job.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,23 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
- export interface IObjectStorageUsageSegmentCosts {
3
- startDate: Date;
4
- endDate: Date | null;
5
- }
6
- export interface IObjectStorageUsageSegment extends Document {
7
- bucket_id: Types.ObjectId;
8
- user_id: Types.ObjectId;
9
- team_id: Types.ObjectId | null;
10
- size_gb: number;
11
- costs: IObjectStorageUsageSegmentCosts;
12
- billed: boolean;
13
- createdAt: Date;
14
- updatedAt: Date;
15
- }
16
- export interface IObjectStorageUsageUnitsSummary {
17
- gbHours: number;
18
- segmentIds: string[];
19
- date: {
20
- start: string;
21
- end: string;
22
- };
23
- }
@@ -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,55 +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
- password_enabled: boolean;
15
- analytics: boolean;
16
- build_minutes: number;
17
- log_retention: number;
18
- multi_region: boolean;
19
- ai_debug_enabled: boolean;
20
- ai_debug_limit: number;
21
- bandwidth: number;
22
- pull_request_preview: boolean;
23
- plan_type: SUBSCRIPTION_PLAN_TYPE;
24
- volumes_enabled: boolean;
25
- memory: number;
26
- build_timeout: number;
27
- storage: number;
28
- cpu: number;
29
- tokens: number;
30
- hierarchy: number;
31
- view_metrics: boolean;
32
- token_request: number;
33
- custom_domain: boolean;
34
- unlimited_projects: boolean;
35
- webhook_enabled: boolean;
36
- can_deploy_all_applications: boolean;
37
- stripe_prices?: Record<string, string>;
38
- storage_bucket_enabled: boolean;
39
- storage_bucket_quota_gb: number;
40
- sandbox_max_count: number;
41
- sanxbox_hours_max: number;
42
- sandbox_enabled: boolean;
43
- sandbox_cpu_hours_included: number;
44
- sandbox_memory_gb_hours_included: number;
45
- sandbox_max_runtime_minutes: number;
46
- sandbox_max_vcpu: number;
47
- sandbox_max_memory_gb: number;
48
- sandbox_creation_rate_per_minute: number;
49
- sandbox_cpu_overage_price: number;
50
- sandbox_memory_overage_price: number;
51
- sandbox_snapshot_storage_price: number;
52
- sandbox_snapshot_gb_months_included: number;
53
- sandbox_max_volume_size_gb: number;
54
- sandbox_max_volumes: number;
55
- }
@@ -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,100 +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
- import { IVolume } from "../volume";
15
- export interface IProject extends Document {
16
- name: string;
17
- healthCheckPath?: string;
18
- preStartCommand?: string;
19
- backupEnabled: boolean;
20
- free_tier_expires_at?: Date | null;
21
- free_tier_expiry_notified_at?: Date | null;
22
- buildCacheEnabled?: boolean;
23
- domains: Array<IDomain>;
24
- environments: Array<IEnv>;
25
- uuid: number;
26
- pid: number;
27
- port: number;
28
- ip: string;
29
- dir: string;
30
- tlsEnabled: boolean;
31
- dbImage: IDbImage;
32
- installCommand: string;
33
- buildCommand: string;
34
- startCommand: string;
35
- outputDirectory: string;
36
- user_id: IUser;
37
- monitor_id: string;
38
- nomadJobId: string;
39
- watchPaths: string[];
40
- repo: {
41
- name: string;
42
- full_name: string;
43
- id: number;
44
- branch: string;
45
- installationId: number;
46
- git: GIT_TYPE;
47
- } | null;
48
- rootDir?: string;
49
- team: ITeam;
50
- server: IServer;
51
- isPrivate: boolean;
52
- status: PROJECT_STATUS;
53
- framework: string;
54
- description: string;
55
- logs: Array<ILog>;
56
- log: ILog;
57
- maintenance: boolean;
58
- passwordEnabled: boolean;
59
- disabled: boolean;
60
- authEnabled: boolean;
61
- password: string | null;
62
- deployedInCluster: boolean;
63
- screenshot: {
64
- image: string;
65
- public_id: string;
66
- };
67
- createdAt: Date;
68
- updatedAt: Date;
69
- container_stats_schedule_id: string | null;
70
- lastProcessed: number;
71
- tracking_token: string;
72
- from: string;
73
- previews: IPreview[];
74
- project_environment?: IProjectEnvironment;
75
- inherit_environment_vars: boolean;
76
- replicas: number;
77
- vaultPath: string | null;
78
- vaultToken: string | null;
79
- specs: {
80
- memory: number;
81
- cpu: number;
82
- storage: number;
83
- region: IRegion;
84
- };
85
- last_requested: Date;
86
- isPaused: boolean;
87
- billable: boolean;
88
- serviceType?: ServiceType;
89
- last_backup_url?: string;
90
- last_backup_at?: Date;
91
- replica_ready: boolean;
92
- autoscaling_group?: IAutoScalingGroup;
93
- isPaid: boolean;
94
- hasUpdates?: boolean;
95
- whiteListedIps?: string[];
96
- diskSize?: number;
97
- persistent_mount_path?: string;
98
- volumeMount: string;
99
- volume: IVolume | null;
100
- }
@@ -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 });