@brimble/models 3.8.78 → 3.8.79
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/activity-log.d.ts +6 -27
- package/dist/alert-event.d.ts +9 -0
- package/dist/alert-event.js +78 -0
- package/dist/alert-rule-state.d.ts +9 -0
- package/dist/alert-rule-state.js +49 -0
- package/dist/alert-rule.d.ts +9 -0
- package/dist/alert-rule.js +77 -0
- package/dist/app-message.d.ts +6 -27
- package/dist/app-message.js +2 -2
- package/dist/auto-scaling.d.ts +6 -27
- package/dist/card.d.ts +6 -27
- package/dist/cashier_subscription.d.ts +6 -27
- package/dist/cashier_subscription_item.d.ts +6 -27
- package/dist/collab-annotation.d.ts +6 -27
- package/dist/collab-comment.d.ts +6 -27
- package/dist/collab-integration.d.ts +6 -27
- package/dist/collab-push-subscription.d.ts +6 -27
- package/dist/collab-settings.d.ts +6 -27
- package/dist/collab-share-token.d.ts +6 -27
- package/dist/compute.d.ts +6 -27
- package/dist/compute.js +6 -0
- package/dist/db-image.d.ts +6 -27
- package/dist/db-image.js +19 -0
- package/dist/domain/dns-changelog.d.ts +9 -0
- package/dist/domain/dns-changelog.js +82 -0
- package/dist/domain/dns.d.ts +6 -27
- package/dist/domain/index.d.ts +6 -27
- package/dist/domain/index.js +4 -0
- package/dist/domain/renewal.d.ts +6 -27
- package/dist/domain/transfer.d.ts +6 -27
- package/dist/enum/index.d.ts +184 -0
- package/dist/enum/index.js +273 -37
- package/dist/env.d.ts +6 -27
- package/dist/environment-variable.d.ts +6 -27
- package/dist/environment-variable.js +8 -0
- package/dist/follower.d.ts +6 -27
- package/dist/following.d.ts +6 -27
- package/dist/framework.d.ts +6 -27
- package/dist/idempotency.d.ts +9 -0
- package/dist/idempotency.js +17 -0
- package/dist/index.d.ts +25 -2
- package/dist/index.js +92 -3
- package/dist/integration.d.ts +6 -27
- package/dist/intention.d.ts +6 -27
- package/dist/invoice.d.ts +6 -27
- package/dist/job.d.ts +6 -2
- package/dist/job.js +17 -7
- package/dist/license.d.ts +6 -27
- package/dist/load-balancer-port.d.ts +6 -27
- package/dist/logs.d.ts +6 -27
- package/dist/logs.js +0 -2
- package/dist/member-permission.d.ts +6 -27
- package/dist/member.d.ts +6 -27
- package/dist/object-storage-usage-segment.d.ts +9 -0
- package/dist/object-storage-usage-segment.js +46 -0
- package/dist/ownership-transfer.d.ts +6 -27
- package/dist/permission.d.ts +6 -27
- package/dist/plan_configuration.d.ts +6 -2
- package/dist/plan_configuration.js +20 -0
- package/dist/project/connection.d.ts +6 -27
- package/dist/project/index.d.ts +12 -29
- package/dist/project/index.js +29 -0
- package/dist/project/preview.d.ts +6 -27
- package/dist/project-environment.d.ts +6 -27
- package/dist/project-network-settings.d.ts +9 -0
- package/dist/project-network-settings.js +34 -0
- package/dist/project-tag-assignment.d.ts +6 -27
- package/dist/project_analytics.d.ts +6 -27
- package/dist/provider.d.ts +6 -27
- package/dist/provider.js +1 -0
- package/dist/quest-campaign.d.ts +9 -0
- package/dist/quest-campaign.js +39 -0
- package/dist/quest-participation.d.ts +9 -0
- package/dist/quest-participation.js +21 -0
- package/dist/quest-reward-issuance.d.ts +9 -0
- package/dist/quest-reward-issuance.js +19 -0
- package/dist/ratelimit.d.ts +9 -0
- package/dist/ratelimit.js +36 -0
- package/dist/region.d.ts +7 -28
- package/dist/role.d.ts +6 -27
- package/dist/sandbox-activity.d.ts +9 -0
- package/dist/sandbox-activity.js +49 -0
- package/dist/sandbox-image.d.ts +9 -0
- package/dist/sandbox-image.js +31 -0
- package/dist/sandbox-snapshot-usage-segment.d.ts +9 -0
- package/dist/sandbox-snapshot-usage-segment.js +49 -0
- package/dist/sandbox-snapshot.d.ts +9 -0
- package/dist/sandbox-snapshot.js +51 -0
- package/dist/sandbox-usage-segment.d.ts +9 -0
- package/dist/sandbox-usage-segment.js +57 -0
- package/dist/sandbox.d.ts +9 -0
- package/dist/sandbox.js +142 -0
- package/dist/server.d.ts +6 -27
- package/dist/settings.d.ts +6 -27
- package/dist/storage.d.ts +43 -0
- package/dist/storage.js +118 -0
- package/dist/streak-day.d.ts +9 -0
- package/dist/streak-day.js +11 -0
- package/dist/streak-event.d.ts +9 -0
- package/dist/streak-event.js +18 -0
- package/dist/streak-milestone.d.ts +9 -0
- package/dist/streak-milestone.js +11 -0
- package/dist/streak.d.ts +9 -0
- package/dist/streak.js +17 -0
- package/dist/subscription.d.ts +6 -27
- package/dist/tag.d.ts +6 -27
- package/dist/team.d.ts +6 -27
- package/dist/team.js +26 -0
- package/dist/token.d.ts +6 -27
- package/dist/types/alert-event.d.ts +23 -0
- package/dist/types/alert-event.js +2 -0
- package/dist/types/alert-rule-state.d.ts +13 -0
- package/dist/types/alert-rule-state.js +2 -0
- package/dist/types/alert-rule.d.ts +21 -0
- package/dist/types/alert-rule.js +2 -0
- package/dist/types/app-message.d.ts +2 -2
- package/dist/types/auto-scaling-group.d.ts +1 -1
- package/dist/types/compute.d.ts +3 -1
- package/dist/types/db-image.d.ts +5 -1
- package/dist/types/domain/dns-changelog.d.ts +20 -0
- package/dist/types/domain/dns-changelog.js +2 -0
- package/dist/types/domain/index.d.ts +1 -0
- package/dist/types/environment-variable.d.ts +2 -0
- package/dist/types/idempotency.d.ts +10 -0
- package/dist/types/idempotency.js +2 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/object-storage-usage-segment.d.ts +23 -0
- package/dist/types/object-storage-usage-segment.js +2 -0
- package/dist/types/plan_configuration.d.ts +20 -0
- package/dist/types/project/index.d.ts +7 -0
- package/dist/types/project-network-settings.d.ts +28 -0
- package/dist/types/project-network-settings.js +2 -0
- package/dist/types/provider.d.ts +1 -0
- package/dist/types/quest-campaign.d.ts +38 -0
- package/dist/types/quest-campaign.js +2 -0
- package/dist/types/quest-participation.d.ts +19 -0
- package/dist/types/quest-participation.js +2 -0
- package/dist/types/quest-reward-issuance.d.ts +17 -0
- package/dist/types/quest-reward-issuance.js +2 -0
- package/dist/types/ratelimit.d.ts +41 -0
- package/dist/types/ratelimit.js +2 -0
- package/dist/types/region.d.ts +2 -2
- package/dist/types/sandbox-activity.d.ts +14 -0
- package/dist/types/sandbox-activity.js +2 -0
- package/dist/types/sandbox-image.d.ts +9 -0
- package/dist/types/sandbox-image.js +2 -0
- package/dist/types/sandbox-snapshot-usage-segment.d.ts +16 -0
- package/dist/types/sandbox-snapshot-usage-segment.js +2 -0
- package/dist/types/sandbox-snapshot.d.ts +16 -0
- package/dist/types/sandbox-snapshot.js +2 -0
- package/dist/types/sandbox-usage-segment.d.ts +25 -0
- package/dist/types/sandbox-usage-segment.js +2 -0
- package/dist/types/sandbox.d.ts +46 -0
- package/dist/types/sandbox.js +2 -0
- package/dist/types/storage.d.ts +131 -0
- package/dist/types/storage.js +2 -0
- package/dist/types/streak-day.d.ts +9 -0
- package/dist/types/streak-day.js +2 -0
- package/dist/types/streak-event.d.ts +13 -0
- package/dist/types/streak-event.js +2 -0
- package/dist/types/streak-milestone.d.ts +10 -0
- package/dist/types/streak-milestone.js +2 -0
- package/dist/types/streak.d.ts +17 -0
- package/dist/types/streak.js +2 -0
- package/dist/types/team.d.ts +8 -2
- package/dist/types/user.d.ts +4 -0
- package/dist/types/volume-usage-segment.d.ts +16 -0
- package/dist/types/volume-usage-segment.js +2 -0
- package/dist/types/volume.d.ts +9 -3
- package/dist/types/wallet.d.ts +1 -0
- package/dist/user.d.ts +6 -27
- package/dist/user.js +14 -0
- package/dist/volume-usage-segment.d.ts +9 -0
- package/dist/volume-usage-segment.js +46 -0
- package/dist/volume.d.ts +6 -27
- package/dist/volume.js +21 -4
- package/dist/wallet.d.ts +6 -27
- package/dist/wallet.js +4 -0
- package/dist/webhook-category.d.ts +6 -27
- package/dist/webhook-event.d.ts +6 -27
- package/dist/webhook-setting.d.ts +6 -27
- package/package.json +9 -5
- package/.claude/settings.local.json +0 -7
- package/.eslintrc.js +0 -26
- package/.prettierrc +0 -4
- package/activity-log.ts +0 -66
- package/app-message.ts +0 -18
- package/auto-scaling.ts +0 -72
- package/card.ts +0 -45
- package/cashier_subscription.ts +0 -35
- package/cashier_subscription_item.ts +0 -25
- package/collab-annotation.ts +0 -36
- package/collab-comment.ts +0 -27
- package/collab-integration.ts +0 -21
- package/collab-push-subscription.ts +0 -19
- package/collab-settings.ts +0 -29
- package/collab-share-token.ts +0 -15
- package/compute.ts +0 -88
- package/db-image.ts +0 -66
- package/domain/dns.ts +0 -34
- package/domain/index.ts +0 -109
- package/domain/renewal.ts +0 -25
- package/domain/transfer.ts +0 -112
- package/enum/index.ts +0 -257
- package/env.ts +0 -38
- package/environment-variable.ts +0 -21
- package/follower.ts +0 -19
- package/following.ts +0 -19
- package/framework.ts +0 -88
- package/index.ts +0 -199
- package/integration.ts +0 -39
- package/intention.ts +0 -40
- package/invoice.ts +0 -36
- package/job.ts +0 -30
- package/load-balancer-port.ts +0 -31
- package/logs.ts +0 -47
- package/member-permission.ts +0 -13
- package/member.ts +0 -44
- package/ownership-transfer.ts +0 -42
- package/permission.ts +0 -13
- package/plan_configuration.ts +0 -50
- package/project/connection.ts +0 -21
- package/project/index.ts +0 -238
- package/project/preview.ts +0 -41
- package/project-environment.ts +0 -18
- package/project-tag-assignment.ts +0 -40
- package/project_analytics.ts +0 -26
- package/provider.ts +0 -11
- package/region.ts +0 -18
- package/role.ts +0 -12
- package/server.ts +0 -105
- package/settings.ts +0 -53
- package/subscription.ts +0 -86
- package/tag.ts +0 -34
- package/team.ts +0 -60
- package/token.ts +0 -40
- package/tsconfig.json +0 -14
- package/types/activity-log.ts +0 -19
- package/types/app-message.ts +0 -16
- package/types/auto-scaling-group.ts +0 -21
- package/types/card.ts +0 -20
- package/types/cashier_subscription.ts +0 -29
- package/types/collab-annotation.ts +0 -28
- package/types/collab-comment.ts +0 -22
- package/types/collab-integration.ts +0 -14
- package/types/collab-push-subscription.ts +0 -10
- package/types/collab-settings.ts +0 -17
- package/types/collab-share-token.ts +0 -13
- package/types/compute.ts +0 -51
- package/types/db-image.ts +0 -18
- package/types/domain/dns.ts +0 -13
- package/types/domain/index.ts +0 -35
- package/types/domain/renewal.ts +0 -11
- package/types/domain/transfer.ts +0 -32
- package/types/env.ts +0 -14
- package/types/environment-variable.ts +0 -13
- package/types/following.ts +0 -6
- package/types/framework.ts +0 -41
- package/types/git.ts +0 -15
- package/types/index.ts +0 -56
- package/types/installed_integration.ts +0 -9
- package/types/integration.ts +0 -24
- package/types/intention.ts +0 -14
- package/types/invoice.ts +0 -16
- package/types/job.ts +0 -20
- package/types/license.ts +0 -19
- package/types/load-balancer-port.ts +0 -13
- package/types/logs.ts +0 -36
- package/types/member-permission.ts +0 -11
- package/types/member.ts +0 -19
- package/types/ownership-transfer.ts +0 -13
- package/types/permission.ts +0 -19
- package/types/plan_configuration.ts +0 -37
- package/types/project/connection.ts +0 -7
- package/types/project/index.ts +0 -96
- package/types/project/preview.ts +0 -22
- package/types/project-environment.ts +0 -14
- package/types/project-tag-assignment.ts +0 -14
- package/types/project_analytics.ts +0 -12
- package/types/provider.ts +0 -8
- package/types/region.ts +0 -16
- package/types/role.ts +0 -13
- package/types/server.ts +0 -59
- package/types/settings.ts +0 -19
- package/types/subscription.ts +0 -34
- package/types/tag.ts +0 -12
- package/types/team.ts +0 -19
- package/types/token.ts +0 -12
- package/types/user.ts +0 -41
- package/types/volume.ts +0 -15
- package/types/wallet.ts +0 -8
- package/types/webhook-category.ts +0 -5
- package/types/webhook-event.ts +0 -8
- package/types/webhook-setting.ts +0 -17
- package/user.ts +0 -61
- package/volume.ts +0 -36
- package/wallet.ts +0 -23
- package/webhook-category.ts +0 -11
- package/webhook-event.ts +0 -20
- package/webhook-setting.ts +0 -48
package/types/framework.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { FrameworkApplicationType } from "../enum";
|
|
3
|
-
|
|
4
|
-
export interface IFramework extends Document {
|
|
5
|
-
name: string;
|
|
6
|
-
slug: string;
|
|
7
|
-
demo?: string;
|
|
8
|
-
logo: string;
|
|
9
|
-
tagline?: string;
|
|
10
|
-
supported: boolean;
|
|
11
|
-
description?: string;
|
|
12
|
-
website: string;
|
|
13
|
-
port: number;
|
|
14
|
-
envPrefix?: string;
|
|
15
|
-
detector: string;
|
|
16
|
-
file_detectors: string[];
|
|
17
|
-
type: FrameworkApplicationType;
|
|
18
|
-
settings: {
|
|
19
|
-
installCommand?: string;
|
|
20
|
-
startCommand?: string;
|
|
21
|
-
buildCommand: string;
|
|
22
|
-
outputDirectory: string;
|
|
23
|
-
manager?: string;
|
|
24
|
-
};
|
|
25
|
-
createdAt?: Date;
|
|
26
|
-
updatedAt?: Date;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type BrimbleFrameworkType = {
|
|
30
|
-
name: string;
|
|
31
|
-
slug: string;
|
|
32
|
-
logo: string;
|
|
33
|
-
installCommand: string;
|
|
34
|
-
buildCommand: string;
|
|
35
|
-
startCommand: string;
|
|
36
|
-
outputDirectory: string;
|
|
37
|
-
manager: string | null;
|
|
38
|
-
envPrefix: string;
|
|
39
|
-
supported: boolean;
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
package/types/git.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
|
|
3
|
-
export interface IGit extends Document {
|
|
4
|
-
git_id?: number;
|
|
5
|
-
installation_ids?: number[];
|
|
6
|
-
access_token: string;
|
|
7
|
-
token_type: string;
|
|
8
|
-
scope?: string;
|
|
9
|
-
refresh_token?: string;
|
|
10
|
-
created_at?: number;
|
|
11
|
-
state?: string;
|
|
12
|
-
expires_in?: number;
|
|
13
|
-
expires_at?: number;
|
|
14
|
-
scopes?: string;
|
|
15
|
-
}
|
package/types/index.ts
DELETED
|
@@ -1,56 +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";
|
package/types/integration.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { INTEGRATION_PROVIDERS, INTEGRATION_TYPES } from "../enum";
|
|
3
|
-
|
|
4
|
-
export interface IIntegration extends Document {
|
|
5
|
-
user_id: string;
|
|
6
|
-
|
|
7
|
-
team_id?: string;
|
|
8
|
-
|
|
9
|
-
app_id?: string;
|
|
10
|
-
|
|
11
|
-
name: INTEGRATION_PROVIDERS;
|
|
12
|
-
|
|
13
|
-
scope_description?: string[];
|
|
14
|
-
|
|
15
|
-
hook?: string;
|
|
16
|
-
|
|
17
|
-
reference?: string;
|
|
18
|
-
|
|
19
|
-
token?: string;
|
|
20
|
-
|
|
21
|
-
type: INTEGRATION_TYPES;
|
|
22
|
-
|
|
23
|
-
extra?: any;
|
|
24
|
-
}
|
package/types/intention.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IProject } from "./";
|
|
3
|
-
|
|
4
|
-
export interface IIntention extends Document {
|
|
5
|
-
project: IProject;
|
|
6
|
-
sourceName: string;
|
|
7
|
-
destinationName: string;
|
|
8
|
-
sourceNamespace: string;
|
|
9
|
-
destinationNamespace: string;
|
|
10
|
-
action: "allow" | "deny";
|
|
11
|
-
description?: string;
|
|
12
|
-
createdAt: Date;
|
|
13
|
-
updatedAt: Date;
|
|
14
|
-
}
|
package/types/invoice.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { INVOICE_STATUS, INVOICE_PAYMENT_STATUS, INVOICE_TYPE } from "../enum";
|
|
3
|
-
|
|
4
|
-
export interface IInvoice extends Document {
|
|
5
|
-
ref: string;
|
|
6
|
-
user_id: string;
|
|
7
|
-
subscription_id: string;
|
|
8
|
-
total_amount: number;
|
|
9
|
-
due: boolean;
|
|
10
|
-
type: INVOICE_TYPE;
|
|
11
|
-
status: INVOICE_STATUS;
|
|
12
|
-
payment_status: INVOICE_PAYMENT_STATUS;
|
|
13
|
-
billing_period: string;
|
|
14
|
-
created_at: Date;
|
|
15
|
-
updated_at: Date;
|
|
16
|
-
}
|
package/types/job.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { JobStatus } from "../enum";
|
|
3
|
-
|
|
4
|
-
export interface IJob extends Document {
|
|
5
|
-
title: string;
|
|
6
|
-
jobId: string;
|
|
7
|
-
url: string;
|
|
8
|
-
method: string;
|
|
9
|
-
schedule: string;
|
|
10
|
-
headers?: Map<string, string>;
|
|
11
|
-
maxAttempts?: number;
|
|
12
|
-
attempts?: number;
|
|
13
|
-
isRecurring: boolean;
|
|
14
|
-
lastRun?: Date;
|
|
15
|
-
nextRun?: Date;
|
|
16
|
-
body?: any;
|
|
17
|
-
status?: JobStatus;
|
|
18
|
-
createdAt?: Date;
|
|
19
|
-
updatedAt?: Date;
|
|
20
|
-
}
|
package/types/license.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import mongoose, { Document } from "mongoose";
|
|
2
|
-
import { LicenseStatus } from "../enum";
|
|
3
|
-
|
|
4
|
-
export interface ILicense extends Document {
|
|
5
|
-
licenseKey: string;
|
|
6
|
-
infisicalIdentity: string;
|
|
7
|
-
userId: mongoose.Types.ObjectId;
|
|
8
|
-
teamId: mongoose.Types.ObjectId;
|
|
9
|
-
status: LicenseStatus;
|
|
10
|
-
tag: string;
|
|
11
|
-
subscriptionId: mongoose.Types.ObjectId;
|
|
12
|
-
devices: Array<{
|
|
13
|
-
deviceId: string;
|
|
14
|
-
hostname: string;
|
|
15
|
-
lastSeen: Date;
|
|
16
|
-
isActive: boolean;
|
|
17
|
-
}>;
|
|
18
|
-
maxDevices: number;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IProject } from "./project";
|
|
3
|
-
import { IRegion } from "./region";
|
|
4
|
-
import { IServer } from "./server";
|
|
5
|
-
|
|
6
|
-
export interface ILoadBalancerPort extends Document {
|
|
7
|
-
port: number;
|
|
8
|
-
server_id: IServer;
|
|
9
|
-
project_id: IProject;
|
|
10
|
-
region_id: IRegion;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
updatedAt: Date;
|
|
13
|
-
}
|
package/types/logs.ts
DELETED
|
@@ -1,36 +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
|
-
|
|
8
|
-
export interface ILog extends Document {
|
|
9
|
-
name: string;
|
|
10
|
-
key: string;
|
|
11
|
-
commit: {
|
|
12
|
-
sha: string;
|
|
13
|
-
branch: string;
|
|
14
|
-
message: string;
|
|
15
|
-
committer: {
|
|
16
|
-
name: string;
|
|
17
|
-
email: string;
|
|
18
|
-
username: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
status: PROJECT_STATUS;
|
|
22
|
-
project: IProject;
|
|
23
|
-
user?: IUser;
|
|
24
|
-
team?: ITeam;
|
|
25
|
-
jobs: {
|
|
26
|
-
id: number;
|
|
27
|
-
name: string;
|
|
28
|
-
}[];
|
|
29
|
-
environment: ENVIRONMENT;
|
|
30
|
-
preview: IPreview;
|
|
31
|
-
startTime: Date | string;
|
|
32
|
-
endTime: Date | string;
|
|
33
|
-
createdAt: Date | string;
|
|
34
|
-
updatedAt: Date | string;
|
|
35
|
-
deleted: boolean;
|
|
36
|
-
}
|
package/types/member.ts
DELETED
|
@@ -1,19 +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
|
-
|
|
7
|
-
export interface IMember extends Document {
|
|
8
|
-
user: IUser;
|
|
9
|
-
team: ITeam;
|
|
10
|
-
role: ROLES;
|
|
11
|
-
accepted: boolean;
|
|
12
|
-
invitedBy: IUser;
|
|
13
|
-
email: string;
|
|
14
|
-
featureOnboarded: boolean;
|
|
15
|
-
permissions: IMemberPermission[];
|
|
16
|
-
project_environments: IProjectEnvironment[];
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
updatedAt: Date;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { ITeam } from "./team";
|
|
3
|
-
import { IUser } from "./user";
|
|
4
|
-
|
|
5
|
-
export interface IOwnershipTransfer extends Document {
|
|
6
|
-
team: ITeam;
|
|
7
|
-
from_user: IUser;
|
|
8
|
-
to_user: IUser;
|
|
9
|
-
status: "pending" | "accepted" | "denied" | "expired";
|
|
10
|
-
expires_at: Date;
|
|
11
|
-
created_at: Date;
|
|
12
|
-
updated_at: Date;
|
|
13
|
-
}
|
package/types/permission.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IRole } from "./role";
|
|
3
|
-
import { PERMISSION_TYPE, REQUEST_TYPE } from "../enum";
|
|
4
|
-
|
|
5
|
-
export interface IPermission extends Document {
|
|
6
|
-
title: string;
|
|
7
|
-
|
|
8
|
-
role: IRole[];
|
|
9
|
-
|
|
10
|
-
type: PERMISSION_TYPE;
|
|
11
|
-
|
|
12
|
-
request: {
|
|
13
|
-
route: string;
|
|
14
|
-
|
|
15
|
-
type: REQUEST_TYPE;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
enabled: boolean;
|
|
19
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { SUBSCRIPTION_PLAN_TYPE } from "../enum";
|
|
3
|
-
import { IRegion } from "./region";
|
|
4
|
-
|
|
5
|
-
export interface IPlanConfiguration extends Document {
|
|
6
|
-
tag: string;
|
|
7
|
-
price: number;
|
|
8
|
-
region: IRegion;
|
|
9
|
-
slack_support: boolean;
|
|
10
|
-
autoscaling_enabled: boolean;
|
|
11
|
-
concurrent_builds: number;
|
|
12
|
-
project_limit: number;
|
|
13
|
-
deploy_private_organization: boolean;
|
|
14
|
-
preview_comments: 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
|
-
memory: number;
|
|
25
|
-
build_timeout: number;
|
|
26
|
-
storage: number;
|
|
27
|
-
cpu: number;
|
|
28
|
-
tokens: number;
|
|
29
|
-
hierarchy: number;
|
|
30
|
-
view_metrics: boolean;
|
|
31
|
-
token_request: number;
|
|
32
|
-
custom_domain: boolean;
|
|
33
|
-
unlimited_projects: boolean;
|
|
34
|
-
webhook_enabled: boolean;
|
|
35
|
-
can_deploy_all_applications: boolean;
|
|
36
|
-
stripe_prices?: Record<string, string>;
|
|
37
|
-
}
|
package/types/project/index.ts
DELETED
|
@@ -1,96 +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
|
-
|
|
15
|
-
export interface IProject extends Document {
|
|
16
|
-
name: string;
|
|
17
|
-
healthCheckPath?: string;
|
|
18
|
-
preStartCommand?: string;
|
|
19
|
-
backupEnabled: boolean;
|
|
20
|
-
buildCacheEnabled?: boolean;
|
|
21
|
-
domains: Array<IDomain>;
|
|
22
|
-
environments: Array<IEnv>;
|
|
23
|
-
uuid: number;
|
|
24
|
-
pid: number;
|
|
25
|
-
port: number;
|
|
26
|
-
ip: string;
|
|
27
|
-
dir: string;
|
|
28
|
-
tlsEnabled: boolean;
|
|
29
|
-
dbImage: IDbImage;
|
|
30
|
-
installCommand: string;
|
|
31
|
-
buildCommand: string;
|
|
32
|
-
startCommand: string;
|
|
33
|
-
outputDirectory: string;
|
|
34
|
-
user_id: IUser;
|
|
35
|
-
monitor_id: string;
|
|
36
|
-
nomadJobId: string;
|
|
37
|
-
watchPaths: string[];
|
|
38
|
-
repo: {
|
|
39
|
-
name: string;
|
|
40
|
-
full_name: string;
|
|
41
|
-
id: number;
|
|
42
|
-
branch: string;
|
|
43
|
-
installationId: number;
|
|
44
|
-
git: GIT_TYPE;
|
|
45
|
-
} | null;
|
|
46
|
-
rootDir?: string;
|
|
47
|
-
team: ITeam;
|
|
48
|
-
server: IServer;
|
|
49
|
-
isPrivate: boolean;
|
|
50
|
-
status: PROJECT_STATUS;
|
|
51
|
-
framework: string;
|
|
52
|
-
description: string;
|
|
53
|
-
logs: Array<ILog>;
|
|
54
|
-
log: ILog;
|
|
55
|
-
maintenance: boolean;
|
|
56
|
-
passwordEnabled: boolean;
|
|
57
|
-
disabled: boolean;
|
|
58
|
-
authEnabled: boolean;
|
|
59
|
-
password: string | null;
|
|
60
|
-
deployedInCluster: boolean;
|
|
61
|
-
screenshot: {
|
|
62
|
-
image: string;
|
|
63
|
-
public_id: string;
|
|
64
|
-
};
|
|
65
|
-
createdAt: Date;
|
|
66
|
-
updatedAt: Date;
|
|
67
|
-
container_stats_schedule_id: string | null;
|
|
68
|
-
lastProcessed: number;
|
|
69
|
-
tracking_token: string;
|
|
70
|
-
from: string;
|
|
71
|
-
previews: IPreview[];
|
|
72
|
-
project_environment?: IProjectEnvironment;
|
|
73
|
-
inherit_environment_vars: boolean;
|
|
74
|
-
replicas: number;
|
|
75
|
-
vaultPath: string | null;
|
|
76
|
-
vaultToken: string | null;
|
|
77
|
-
specs: {
|
|
78
|
-
memory: number;
|
|
79
|
-
cpu: number;
|
|
80
|
-
storage: number;
|
|
81
|
-
region: IRegion;
|
|
82
|
-
};
|
|
83
|
-
last_requested: Date;
|
|
84
|
-
isPaused: boolean;
|
|
85
|
-
billable: boolean;
|
|
86
|
-
serviceType?: ServiceType;
|
|
87
|
-
last_backup_url?: string;
|
|
88
|
-
last_backup_at?: Date;
|
|
89
|
-
replica_ready: boolean;
|
|
90
|
-
autoscaling_group?: IAutoScalingGroup;
|
|
91
|
-
isPaid: boolean;
|
|
92
|
-
hasUpdates?: boolean;
|
|
93
|
-
whiteListedIps?: string[];
|
|
94
|
-
diskSize?: number;
|
|
95
|
-
volumeMount: string;
|
|
96
|
-
}
|
package/types/project/preview.ts
DELETED
|
@@ -1,22 +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
|
-
|
|
7
|
-
export interface IPreview extends Document {
|
|
8
|
-
name: string;
|
|
9
|
-
healthCheckPath?: string;
|
|
10
|
-
pid: number;
|
|
11
|
-
port: number;
|
|
12
|
-
ip: string;
|
|
13
|
-
dir: string;
|
|
14
|
-
branch: string;
|
|
15
|
-
server: IServer;
|
|
16
|
-
project: IProject;
|
|
17
|
-
issue_comment_id: number;
|
|
18
|
-
status: PROJECT_STATUS;
|
|
19
|
-
log: ILog;
|
|
20
|
-
last_requested: Date;
|
|
21
|
-
isPaused: boolean;
|
|
22
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { ITeam } from "./team";
|
|
3
|
-
import { IUser } from "./user";
|
|
4
|
-
|
|
5
|
-
export interface IProjectEnvironment extends Document {
|
|
6
|
-
name: string;
|
|
7
|
-
slug: string;
|
|
8
|
-
owner: IUser;
|
|
9
|
-
team?: ITeam;
|
|
10
|
-
inherit_from?: IProjectEnvironment;
|
|
11
|
-
isDefault: boolean;
|
|
12
|
-
createdAt: Date;
|
|
13
|
-
updatedAt: Date;
|
|
14
|
-
}
|
|
@@ -1,14 +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
|
-
|
|
7
|
-
export interface IProjectTagAssignment extends Document {
|
|
8
|
-
tagId: ITag;
|
|
9
|
-
projectId: IProject;
|
|
10
|
-
teamId: ITeam;
|
|
11
|
-
assignedBy: IUser;
|
|
12
|
-
createdAt: Date;
|
|
13
|
-
updatedAt: Date;
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Document, Types } from "mongoose";
|
|
2
|
-
|
|
3
|
-
export interface IProjectAnalytics extends Document {
|
|
4
|
-
project: Types.ObjectId;
|
|
5
|
-
provider: "umami";
|
|
6
|
-
websiteId: string;
|
|
7
|
-
shareId?: string | null;
|
|
8
|
-
domain: string;
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
createdAt: Date;
|
|
11
|
-
updatedAt: Date;
|
|
12
|
-
}
|
package/types/provider.ts
DELETED
package/types/region.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Schema } from "mongoose";
|
|
2
|
-
import { REGION_CONTINENT } from "../enum";
|
|
3
|
-
|
|
4
|
-
export interface IRegion extends Document {
|
|
5
|
-
_id: Schema.Types.ObjectId;
|
|
6
|
-
name: string;
|
|
7
|
-
country: string;
|
|
8
|
-
continent?: REGION_CONTINENT;
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
dbVolumePath: string;
|
|
11
|
-
is_paid: boolean;
|
|
12
|
-
provider: string;
|
|
13
|
-
provider_identifier: string;
|
|
14
|
-
storage_pricing_factor: number;
|
|
15
|
-
floating_ip?: string;
|
|
16
|
-
}
|
package/types/role.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { ROLES } from "../enum";
|
|
3
|
-
import { IPermission } from "./permission";
|
|
4
|
-
|
|
5
|
-
export interface IRole extends Document {
|
|
6
|
-
type: ROLES;
|
|
7
|
-
|
|
8
|
-
description?: string;
|
|
9
|
-
|
|
10
|
-
is_custom?: boolean;
|
|
11
|
-
|
|
12
|
-
permissions: IPermission[];
|
|
13
|
-
}
|
package/types/server.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import mongoose, { Document } from "mongoose";
|
|
2
|
-
import { SERVER_STATUS, SERVER_PROTOCOL } from "../enum";
|
|
3
|
-
import { IRegion } from "./region";
|
|
4
|
-
|
|
5
|
-
export interface IServer extends Document {
|
|
6
|
-
name: string;
|
|
7
|
-
|
|
8
|
-
url: string;
|
|
9
|
-
|
|
10
|
-
grpc_address?: string;
|
|
11
|
-
|
|
12
|
-
ipv6?: string;
|
|
13
|
-
|
|
14
|
-
domain?: string;
|
|
15
|
-
|
|
16
|
-
userId: mongoose.Types.ObjectId;
|
|
17
|
-
|
|
18
|
-
teamId?: mongoose.Types.ObjectId;
|
|
19
|
-
|
|
20
|
-
ip_address: string;
|
|
21
|
-
|
|
22
|
-
private_ip_address: string;
|
|
23
|
-
|
|
24
|
-
tunnel_token: string;
|
|
25
|
-
|
|
26
|
-
type: string;
|
|
27
|
-
|
|
28
|
-
protocol: SERVER_PROTOCOL;
|
|
29
|
-
|
|
30
|
-
status: SERVER_STATUS;
|
|
31
|
-
|
|
32
|
-
default: boolean;
|
|
33
|
-
|
|
34
|
-
tag: string;
|
|
35
|
-
|
|
36
|
-
region: IRegion;
|
|
37
|
-
|
|
38
|
-
webhook_url?: string;
|
|
39
|
-
|
|
40
|
-
is_custom_provision: boolean;
|
|
41
|
-
|
|
42
|
-
firewall_id?: string;
|
|
43
|
-
|
|
44
|
-
specifications: Record<any, any>;
|
|
45
|
-
|
|
46
|
-
plugin_id?: string;
|
|
47
|
-
|
|
48
|
-
provider: string;
|
|
49
|
-
|
|
50
|
-
provider_location?: string;
|
|
51
|
-
|
|
52
|
-
provider_identifier?: string;
|
|
53
|
-
|
|
54
|
-
topology_path?: string;
|
|
55
|
-
|
|
56
|
-
cert_storage_path?: string | null;
|
|
57
|
-
|
|
58
|
-
meta: Record<any, any>;
|
|
59
|
-
}
|
package/types/settings.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
|
|
3
|
-
export interface ISettings extends Document {
|
|
4
|
-
vaultEnabled: boolean;
|
|
5
|
-
|
|
6
|
-
maintenanceMode: boolean;
|
|
7
|
-
|
|
8
|
-
buildsEnabled: boolean;
|
|
9
|
-
|
|
10
|
-
minimumBuildMinutes: number;
|
|
11
|
-
|
|
12
|
-
enableSecretRotation: boolean;
|
|
13
|
-
|
|
14
|
-
domainPromoEnabled: boolean;
|
|
15
|
-
|
|
16
|
-
postHogEnabled: boolean;
|
|
17
|
-
|
|
18
|
-
metaSettings: Record<string, any>;
|
|
19
|
-
}
|