@brimble/models 3.1.8 → 3.1.9
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/.turbo/turbo-build.log +1 -0
- package/compute.ts +4 -1
- package/db-image.ts +4 -8
- package/dist/compute.js +4 -1
- package/dist/db-image.js +4 -8
- package/dist/domain/index.js +0 -9
- package/dist/enum/index.d.ts +0 -8
- package/dist/enum/index.js +1 -10
- package/dist/env.js +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -5
- package/dist/plan_configuration.js +1 -5
- package/dist/project/index.js +2 -2
- package/dist/region.js +0 -1
- package/dist/server.js +0 -20
- package/dist/subscription.js +1 -1
- package/dist/token.js +1 -1
- package/dist/types/compute.d.ts +1 -1
- package/dist/types/db-image.d.ts +1 -5
- package/dist/types/domain/index.d.ts +0 -4
- package/dist/types/index.d.ts +0 -1
- package/dist/types/plan_configuration.d.ts +1 -5
- package/dist/types/region.d.ts +0 -1
- package/dist/types/server.d.ts +0 -5
- package/domain/index.ts +0 -9
- package/enum/index.ts +3 -12
- package/env.ts +1 -1
- package/index.ts +0 -4
- package/package.json +1 -1
- package/plan_configuration.ts +1 -5
- package/project/index.ts +2 -2
- package/region.ts +0 -1
- package/server.ts +0 -20
- package/subscription.ts +1 -1
- package/token.ts +1 -1
- package/types/compute.ts +1 -1
- package/types/db-image.ts +2 -3
- package/types/domain/index.ts +0 -4
- package/types/index.ts +0 -1
- package/types/plan_configuration.ts +1 -5
- package/types/region.ts +0 -1
- package/types/server.ts +0 -10
- package/dist/framework.d.ts +0 -30
- package/dist/framework.js +0 -79
- package/dist/types/framework.d.ts +0 -38
- package/dist/types/framework.js +0 -2
- package/framework.ts +0 -83
- package/types/framework.ts +0 -40
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ rm -rf dist && tsc -p .
|
package/compute.ts
CHANGED
|
@@ -60,11 +60,14 @@ const ComputeChangeSchema = new Schema({
|
|
|
60
60
|
persistentStorageCost: { type: Number, default: 0 },
|
|
61
61
|
totalCost: { type: Number, default: 0 },
|
|
62
62
|
},
|
|
63
|
+
project_deleted_at: {
|
|
64
|
+
type: Date,
|
|
65
|
+
required: false,
|
|
66
|
+
},
|
|
63
67
|
billed: {
|
|
64
68
|
type: Boolean,
|
|
65
69
|
default: false,
|
|
66
70
|
},
|
|
67
|
-
storage_pricing_factor: { type: Number, required: false, default: 1 },
|
|
68
71
|
});
|
|
69
72
|
|
|
70
73
|
export default model<IComputeChange>(
|
package/db-image.ts
CHANGED
|
@@ -39,22 +39,18 @@ const dbImageSchema = new Schema(
|
|
|
39
39
|
},
|
|
40
40
|
port: {
|
|
41
41
|
type: Number,
|
|
42
|
-
required: true
|
|
42
|
+
required: true
|
|
43
43
|
},
|
|
44
44
|
volumePath: {
|
|
45
45
|
type: String,
|
|
46
46
|
required: true,
|
|
47
|
-
default: "/data"
|
|
47
|
+
default: "/data"
|
|
48
48
|
},
|
|
49
49
|
recommendations: {
|
|
50
50
|
required: false,
|
|
51
51
|
type: Array,
|
|
52
|
-
default: []
|
|
53
|
-
}
|
|
54
|
-
protocol: {
|
|
55
|
-
required: true,
|
|
56
|
-
type: String,
|
|
57
|
-
},
|
|
52
|
+
default: []
|
|
53
|
+
}
|
|
58
54
|
},
|
|
59
55
|
{ timestamps: true },
|
|
60
56
|
);
|
package/dist/compute.js
CHANGED
|
@@ -60,10 +60,13 @@ const ComputeChangeSchema = new mongoose_1.Schema({
|
|
|
60
60
|
persistentStorageCost: { type: Number, default: 0 },
|
|
61
61
|
totalCost: { type: Number, default: 0 },
|
|
62
62
|
},
|
|
63
|
+
project_deleted_at: {
|
|
64
|
+
type: Date,
|
|
65
|
+
required: false,
|
|
66
|
+
},
|
|
63
67
|
billed: {
|
|
64
68
|
type: Boolean,
|
|
65
69
|
default: false,
|
|
66
70
|
},
|
|
67
|
-
storage_pricing_factor: { type: Number, required: false, default: 1 },
|
|
68
71
|
});
|
|
69
72
|
exports.default = (0, mongoose_1.model)("ComputeChange", ComputeChangeSchema, "compute_changes");
|
package/dist/db-image.js
CHANGED
|
@@ -38,21 +38,17 @@ const dbImageSchema = new mongoose_1.Schema({
|
|
|
38
38
|
},
|
|
39
39
|
port: {
|
|
40
40
|
type: Number,
|
|
41
|
-
required: true
|
|
41
|
+
required: true
|
|
42
42
|
},
|
|
43
43
|
volumePath: {
|
|
44
44
|
type: String,
|
|
45
45
|
required: true,
|
|
46
|
-
default: "/data"
|
|
46
|
+
default: "/data"
|
|
47
47
|
},
|
|
48
48
|
recommendations: {
|
|
49
49
|
required: false,
|
|
50
50
|
type: Array,
|
|
51
|
-
default: []
|
|
52
|
-
}
|
|
53
|
-
protocol: {
|
|
54
|
-
required: true,
|
|
55
|
-
type: String,
|
|
56
|
-
},
|
|
51
|
+
default: []
|
|
52
|
+
}
|
|
57
53
|
}, { timestamps: true });
|
|
58
54
|
exports.default = (0, mongoose_1.model)("DbImage", dbImageSchema);
|
package/dist/domain/index.js
CHANGED
|
@@ -25,15 +25,6 @@ const domainSchema = new mongoose_1.Schema({
|
|
|
25
25
|
type: Boolean,
|
|
26
26
|
default: false,
|
|
27
27
|
},
|
|
28
|
-
provider: {
|
|
29
|
-
type: String,
|
|
30
|
-
required: true,
|
|
31
|
-
},
|
|
32
|
-
renewal_duration: {
|
|
33
|
-
type: Number,
|
|
34
|
-
required: false,
|
|
35
|
-
default: 1,
|
|
36
|
-
},
|
|
37
28
|
is_discounted: {
|
|
38
29
|
type: Boolean,
|
|
39
30
|
default: false,
|
package/dist/enum/index.d.ts
CHANGED
|
@@ -64,7 +64,6 @@ export declare enum SUBSCRIPTION_PLAN_TYPE {
|
|
|
64
64
|
DeveloperPlan = "DEVELOPER_PLAN",
|
|
65
65
|
TeamPlan = "TEAM_PLAN",
|
|
66
66
|
DomainPlan = "DOMAIN_PLAN",
|
|
67
|
-
HackerPlan = "HACKER_PLAN",
|
|
68
67
|
LiscensePlan = "LISCENSE_PLAN"
|
|
69
68
|
}
|
|
70
69
|
export declare enum OAUTH_PERMISSIONS {
|
|
@@ -106,7 +105,6 @@ export declare enum REGION_CONTINENT {
|
|
|
106
105
|
export declare enum ServiceType {
|
|
107
106
|
Database = "database",
|
|
108
107
|
WebService = "web-service",
|
|
109
|
-
Static = "static",
|
|
110
108
|
Mcp = "mcp",
|
|
111
109
|
Liscense = "liscense",
|
|
112
110
|
Worker = "worker"
|
|
@@ -144,9 +142,3 @@ export declare enum SCALING_METRIC {
|
|
|
144
142
|
ResponseTime = "RESPONSE_TIME",
|
|
145
143
|
CustomMetric = "CUSTOM_METRIC"
|
|
146
144
|
}
|
|
147
|
-
export declare enum FrameworkApplicationType {
|
|
148
|
-
Spa = "spa",
|
|
149
|
-
Ssr = "ssr",
|
|
150
|
-
Static = "static",
|
|
151
|
-
Backend = "backend"
|
|
152
|
-
}
|
package/dist/enum/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SCALING_METRIC = exports.SCALING_STRATEGY = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = exports.REGION_CONTINENT = exports.PERMISSION_TYPE = exports.ROLES = exports.DNS_TYPE = exports.SERVER_STATUS = exports.OAUTH_PERMISSIONS = exports.SUBSCRIPTION_PLAN_TYPE = exports.SUBSCRIPTION_STATUS = exports.PROJECT_STATUS = exports.CARD_TYPES = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.ENVIRONMENT = exports.REQUEST_TYPE = exports.BUILD_DISABLED_BY = exports.GIT_TYPE = void 0;
|
|
4
4
|
var GIT_TYPE;
|
|
5
5
|
(function (GIT_TYPE) {
|
|
6
6
|
GIT_TYPE["GITHUB"] = "GITHUB";
|
|
@@ -77,7 +77,6 @@ var SUBSCRIPTION_PLAN_TYPE;
|
|
|
77
77
|
SUBSCRIPTION_PLAN_TYPE["DeveloperPlan"] = "DEVELOPER_PLAN";
|
|
78
78
|
SUBSCRIPTION_PLAN_TYPE["TeamPlan"] = "TEAM_PLAN";
|
|
79
79
|
SUBSCRIPTION_PLAN_TYPE["DomainPlan"] = "DOMAIN_PLAN";
|
|
80
|
-
SUBSCRIPTION_PLAN_TYPE["HackerPlan"] = "HACKER_PLAN";
|
|
81
80
|
SUBSCRIPTION_PLAN_TYPE["LiscensePlan"] = "LISCENSE_PLAN";
|
|
82
81
|
})(SUBSCRIPTION_PLAN_TYPE = exports.SUBSCRIPTION_PLAN_TYPE || (exports.SUBSCRIPTION_PLAN_TYPE = {}));
|
|
83
82
|
var OAUTH_PERMISSIONS;
|
|
@@ -126,7 +125,6 @@ var ServiceType;
|
|
|
126
125
|
(function (ServiceType) {
|
|
127
126
|
ServiceType["Database"] = "database";
|
|
128
127
|
ServiceType["WebService"] = "web-service";
|
|
129
|
-
ServiceType["Static"] = "static";
|
|
130
128
|
ServiceType["Mcp"] = "mcp";
|
|
131
129
|
ServiceType["Liscense"] = "liscense";
|
|
132
130
|
ServiceType["Worker"] = "worker";
|
|
@@ -169,10 +167,3 @@ var SCALING_METRIC;
|
|
|
169
167
|
SCALING_METRIC["ResponseTime"] = "RESPONSE_TIME";
|
|
170
168
|
SCALING_METRIC["CustomMetric"] = "CUSTOM_METRIC";
|
|
171
169
|
})(SCALING_METRIC = exports.SCALING_METRIC || (exports.SCALING_METRIC = {}));
|
|
172
|
-
var FrameworkApplicationType;
|
|
173
|
-
(function (FrameworkApplicationType) {
|
|
174
|
-
FrameworkApplicationType["Spa"] = "spa";
|
|
175
|
-
FrameworkApplicationType["Ssr"] = "ssr";
|
|
176
|
-
FrameworkApplicationType["Static"] = "static";
|
|
177
|
-
FrameworkApplicationType["Backend"] = "backend";
|
|
178
|
-
})(FrameworkApplicationType = exports.FrameworkApplicationType || (exports.FrameworkApplicationType = {}));
|
package/dist/env.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -26,9 +26,8 @@ export { default as AutoScalingGroup } from "./auto-scaling";
|
|
|
26
26
|
export { default as ComputeChange } from "./compute";
|
|
27
27
|
export { default as Region } from "./region";
|
|
28
28
|
export { default as Volume } from "./volume";
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, DatabaseEngine, JobStatus, LicenseStatus, REGION_CONTINENT, BUILD_DISABLED_BY, FrameworkApplicationType } from "./enum";
|
|
29
|
+
export { IUser, IGit, IProject, IPreview, IProjectConnection, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IDns, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, } from "./types";
|
|
30
|
+
export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, DatabaseEngine, JobStatus, LicenseStatus, REGION_CONTINENT, BUILD_DISABLED_BY, } from "./enum";
|
|
32
31
|
import mongoose from "mongoose";
|
|
33
32
|
export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
|
|
34
33
|
export declare const db: mongoose.Connection;
|
package/dist/index.js
CHANGED
|
@@ -12,8 +12,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.BUILD_DISABLED_BY = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.PROJECT_STATUS = exports.SUBSCRIPTION_PLAN_TYPE = exports.ROLES = exports.SERVER_STATUS = exports.ENVIRONMENT = exports.OAUTH_PERMISSIONS = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.GIT_TYPE = exports.
|
|
16
|
-
exports.closeMongo = exports.db =
|
|
15
|
+
exports.connectToMongo = exports.BUILD_DISABLED_BY = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.PROJECT_STATUS = exports.SUBSCRIPTION_PLAN_TYPE = exports.ROLES = exports.SERVER_STATUS = exports.ENVIRONMENT = exports.OAUTH_PERMISSIONS = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.GIT_TYPE = exports.Volume = exports.Region = exports.ComputeChange = exports.AutoScalingGroup = exports.PlanConfiguration = exports.Liscense = exports.Job = exports.DbImage = exports.Wallet = exports.Server = exports.Card = exports.Subscription = exports.Log = exports.Role = exports.MemberPermission = exports.Permission = exports.Member = exports.Team = exports.Token = exports.Env = exports.Dns = exports.Domain = exports.Integration = exports.Following = exports.ProjectConnection = exports.Preview = exports.DeletedProject = exports.Project = exports.User = void 0;
|
|
16
|
+
exports.closeMongo = exports.db = void 0;
|
|
17
17
|
var user_1 = require("./user");
|
|
18
18
|
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(user_1).default; } });
|
|
19
19
|
var project_1 = require("./project");
|
|
@@ -71,8 +71,6 @@ var region_1 = require("./region");
|
|
|
71
71
|
Object.defineProperty(exports, "Region", { enumerable: true, get: function () { return __importDefault(region_1).default; } });
|
|
72
72
|
var volume_1 = require("./volume");
|
|
73
73
|
Object.defineProperty(exports, "Volume", { enumerable: true, get: function () { return __importDefault(volume_1).default; } });
|
|
74
|
-
var framework_1 = require("./framework");
|
|
75
|
-
Object.defineProperty(exports, "Framework", { enumerable: true, get: function () { return __importDefault(framework_1).default; } });
|
|
76
74
|
var enum_1 = require("./enum");
|
|
77
75
|
Object.defineProperty(exports, "GIT_TYPE", { enumerable: true, get: function () { return enum_1.GIT_TYPE; } });
|
|
78
76
|
Object.defineProperty(exports, "INTEGRATION_TYPES", { enumerable: true, get: function () { return enum_1.INTEGRATION_TYPES; } });
|
|
@@ -94,7 +92,6 @@ Object.defineProperty(exports, "JobStatus", { enumerable: true, get: function ()
|
|
|
94
92
|
Object.defineProperty(exports, "LicenseStatus", { enumerable: true, get: function () { return enum_1.LicenseStatus; } });
|
|
95
93
|
Object.defineProperty(exports, "REGION_CONTINENT", { enumerable: true, get: function () { return enum_1.REGION_CONTINENT; } });
|
|
96
94
|
Object.defineProperty(exports, "BUILD_DISABLED_BY", { enumerable: true, get: function () { return enum_1.BUILD_DISABLED_BY; } });
|
|
97
|
-
Object.defineProperty(exports, "FrameworkApplicationType", { enumerable: true, get: function () { return enum_1.FrameworkApplicationType; } });
|
|
98
95
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
99
96
|
const utils_1 = require("@brimble/utils");
|
|
100
97
|
const connectToMongo = (mongoUrl, config) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -11,12 +11,11 @@ const PlanConfigurationSchema = new mongoose_1.Schema({
|
|
|
11
11
|
preview_comments: { type: Boolean, default: false },
|
|
12
12
|
analytics: { type: Boolean, default: false },
|
|
13
13
|
build_minutes: { type: Number, required: true },
|
|
14
|
-
pull_request_preview: { type: Boolean, default: false, required: false },
|
|
15
14
|
log_retention: { type: Number, required: true },
|
|
16
15
|
bandwidth: { type: Number, required: true },
|
|
17
16
|
price: { type: Number, required: true },
|
|
18
|
-
autoscaling_enabled: { type: Boolean, default: false, required: false },
|
|
19
17
|
region: { type: mongoose_1.Schema.Types.ObjectId, ref: "Region", required: false },
|
|
18
|
+
multi_region: { type: Boolean, default: false },
|
|
20
19
|
plan_type: {
|
|
21
20
|
type: String,
|
|
22
21
|
enum: Object.values(enum_1.SUBSCRIPTION_PLAN_TYPE),
|
|
@@ -28,8 +27,5 @@ const PlanConfigurationSchema = new mongoose_1.Schema({
|
|
|
28
27
|
cpu: { type: Number, required: true },
|
|
29
28
|
tokens: { type: Number, required: false },
|
|
30
29
|
token_request: { type: Number, required: false },
|
|
31
|
-
view_metrics: { type: Boolean, required: false, default: false },
|
|
32
|
-
custom_domain: { type: Boolean, required: true, default: false },
|
|
33
|
-
can_deploy_all_applications: { type: Boolean, required: true, default: false },
|
|
34
30
|
}, { timestamps: true });
|
|
35
31
|
exports.default = (0, mongoose_1.model)("PlanConfigurations", PlanConfigurationSchema, "plan_configurations");
|
package/dist/project/index.js
CHANGED
|
@@ -25,7 +25,7 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
25
25
|
},
|
|
26
26
|
preStartCommand: {
|
|
27
27
|
type: String,
|
|
28
|
-
required: false
|
|
28
|
+
required: false
|
|
29
29
|
},
|
|
30
30
|
buildCacheEnabled: {
|
|
31
31
|
type: Boolean,
|
|
@@ -112,7 +112,7 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
112
112
|
},
|
|
113
113
|
hasUpdates: {
|
|
114
114
|
type: Boolean,
|
|
115
|
-
default: false
|
|
115
|
+
default: false
|
|
116
116
|
},
|
|
117
117
|
lastProcessed: Number,
|
|
118
118
|
tracking_token: String,
|
package/dist/region.js
CHANGED
|
@@ -11,6 +11,5 @@ const regionSchema = new mongoose_1.Schema({
|
|
|
11
11
|
is_paid: { type: Boolean, default: false },
|
|
12
12
|
provider: { type: String, required: true },
|
|
13
13
|
provider_identifier: { type: String, required: true },
|
|
14
|
-
storage_pricing_factor: { type: Number, required: true, default: 0.25 },
|
|
15
14
|
});
|
|
16
15
|
exports.default = (0, mongoose_1.model)("Region", regionSchema, "regions");
|
package/dist/server.js
CHANGED
|
@@ -54,30 +54,10 @@ const serverSchema = new mongoose_1.Schema({
|
|
|
54
54
|
required: true,
|
|
55
55
|
},
|
|
56
56
|
tag: String,
|
|
57
|
-
plugin_id: {
|
|
58
|
-
type: String,
|
|
59
|
-
required: false,
|
|
60
|
-
},
|
|
61
57
|
firewall_id: {
|
|
62
58
|
required: false,
|
|
63
59
|
type: String,
|
|
64
60
|
},
|
|
65
|
-
provider: {
|
|
66
|
-
type: String,
|
|
67
|
-
required: true,
|
|
68
|
-
},
|
|
69
|
-
provider_location: {
|
|
70
|
-
type: String,
|
|
71
|
-
required: false,
|
|
72
|
-
},
|
|
73
|
-
provider_identifier: {
|
|
74
|
-
type: String,
|
|
75
|
-
required: false,
|
|
76
|
-
},
|
|
77
|
-
topology_path: {
|
|
78
|
-
type: String,
|
|
79
|
-
required: false,
|
|
80
|
-
},
|
|
81
61
|
specifications: {
|
|
82
62
|
type: Object,
|
|
83
63
|
default: {},
|
package/dist/subscription.js
CHANGED
package/dist/token.js
CHANGED
package/dist/types/compute.d.ts
CHANGED
package/dist/types/db-image.d.ts
CHANGED
|
@@ -4,17 +4,13 @@ export interface IDbImage extends Document {
|
|
|
4
4
|
name: DatabaseEngine;
|
|
5
5
|
image_url: string;
|
|
6
6
|
version: string;
|
|
7
|
-
envs:
|
|
8
|
-
value: string;
|
|
9
|
-
type: string;
|
|
10
|
-
}>;
|
|
7
|
+
envs: string[];
|
|
11
8
|
is_available: boolean;
|
|
12
9
|
is_default: boolean;
|
|
13
10
|
image: string;
|
|
14
11
|
has_port: boolean;
|
|
15
12
|
port: number;
|
|
16
13
|
volumePath: string;
|
|
17
|
-
protocol: string;
|
|
18
14
|
recommendations?: Array<{
|
|
19
15
|
cpu: string;
|
|
20
16
|
memory: string;
|
|
@@ -8,10 +8,8 @@ export interface IDomain extends Document {
|
|
|
8
8
|
team_id?: ITeam;
|
|
9
9
|
primary: boolean;
|
|
10
10
|
preview: IPreview;
|
|
11
|
-
provider: string;
|
|
12
11
|
subscription: ISubscription;
|
|
13
12
|
auto_renewal: boolean;
|
|
14
|
-
renewal_duration: number;
|
|
15
13
|
is_discounted: boolean;
|
|
16
14
|
purchased: boolean;
|
|
17
15
|
privacy_enabled: boolean;
|
|
@@ -27,6 +25,4 @@ export interface IDomain extends Document {
|
|
|
27
25
|
url: string;
|
|
28
26
|
status?: 301 | 302 | 307 | 308;
|
|
29
27
|
};
|
|
30
|
-
createdAt: Date;
|
|
31
|
-
updatedAt: Date;
|
|
32
28
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export interface IPlanConfiguration extends Document {
|
|
|
6
6
|
price: number;
|
|
7
7
|
region: IRegion;
|
|
8
8
|
slack_support: boolean;
|
|
9
|
-
autoscaling_enabled: boolean;
|
|
10
9
|
concurrent_builds: number;
|
|
11
10
|
project_limit: number;
|
|
12
11
|
deploy_private_organization: boolean;
|
|
@@ -14,16 +13,13 @@ export interface IPlanConfiguration extends Document {
|
|
|
14
13
|
analytics: boolean;
|
|
15
14
|
build_minutes: number;
|
|
16
15
|
log_retention: number;
|
|
16
|
+
multi_region: boolean;
|
|
17
17
|
bandwidth: number;
|
|
18
|
-
pull_request_preview: boolean;
|
|
19
18
|
plan_type: SUBSCRIPTION_PLAN_TYPE;
|
|
20
19
|
memory: number;
|
|
21
20
|
build_timeout: number;
|
|
22
21
|
storage: number;
|
|
23
22
|
cpu: number;
|
|
24
23
|
tokens: number;
|
|
25
|
-
view_metrics: boolean;
|
|
26
24
|
token_request: number;
|
|
27
|
-
custom_domain: boolean;
|
|
28
|
-
can_deploy_all_applications: boolean;
|
|
29
25
|
}
|
package/dist/types/region.d.ts
CHANGED
package/dist/types/server.d.ts
CHANGED
|
@@ -21,10 +21,5 @@ export interface IServer extends Document {
|
|
|
21
21
|
is_custom_provision: boolean;
|
|
22
22
|
firewall_id?: string;
|
|
23
23
|
specifications: Record<any, any>;
|
|
24
|
-
plugin_id?: string;
|
|
25
|
-
provider: string;
|
|
26
|
-
provider_location?: string;
|
|
27
|
-
provider_identifier?: string;
|
|
28
|
-
topology_path?: string;
|
|
29
24
|
meta: Record<any, any>;
|
|
30
25
|
}
|
package/domain/index.ts
CHANGED
|
@@ -26,15 +26,6 @@ const domainSchema = new Schema(
|
|
|
26
26
|
type: Boolean,
|
|
27
27
|
default: false,
|
|
28
28
|
},
|
|
29
|
-
provider: {
|
|
30
|
-
type: String,
|
|
31
|
-
required: true,
|
|
32
|
-
},
|
|
33
|
-
renewal_duration: {
|
|
34
|
-
type: Number,
|
|
35
|
-
required: false,
|
|
36
|
-
default: 1,
|
|
37
|
-
},
|
|
38
29
|
is_discounted: {
|
|
39
30
|
type: Boolean,
|
|
40
31
|
default: false,
|
package/enum/index.ts
CHANGED
|
@@ -3,12 +3,12 @@ export enum GIT_TYPE {
|
|
|
3
3
|
GITLAB = "GITLAB",
|
|
4
4
|
BITBUCKET = "BITBUCKET",
|
|
5
5
|
DOCKER = "DOCKER",
|
|
6
|
-
HUGGING_FACE = "HUGGINGFACE"
|
|
6
|
+
HUGGING_FACE = "HUGGINGFACE"
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export enum BUILD_DISABLED_BY {
|
|
10
10
|
System = "system",
|
|
11
|
-
User = "user"
|
|
11
|
+
User = "user"
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export enum REQUEST_TYPE {
|
|
@@ -60,7 +60,7 @@ export enum PROJECT_STATUS {
|
|
|
60
60
|
PENDING = "PENDING",
|
|
61
61
|
CANCELLED = "CANCELLED",
|
|
62
62
|
DEGRADED = "DEGRADED",
|
|
63
|
-
PAYMENT = "PAYMENT DUE"
|
|
63
|
+
PAYMENT = "PAYMENT DUE"
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export enum SUBSCRIPTION_STATUS {
|
|
@@ -73,7 +73,6 @@ export enum SUBSCRIPTION_PLAN_TYPE {
|
|
|
73
73
|
DeveloperPlan = "DEVELOPER_PLAN",
|
|
74
74
|
TeamPlan = "TEAM_PLAN",
|
|
75
75
|
DomainPlan = "DOMAIN_PLAN",
|
|
76
|
-
HackerPlan = "HACKER_PLAN",
|
|
77
76
|
LiscensePlan = "LISCENSE_PLAN",
|
|
78
77
|
}
|
|
79
78
|
|
|
@@ -122,7 +121,6 @@ export enum REGION_CONTINENT {
|
|
|
122
121
|
export enum ServiceType {
|
|
123
122
|
Database = "database",
|
|
124
123
|
WebService = "web-service",
|
|
125
|
-
Static = "static",
|
|
126
124
|
Mcp = "mcp",
|
|
127
125
|
Liscense = "liscense",
|
|
128
126
|
Worker = "worker",
|
|
@@ -165,10 +163,3 @@ export enum SCALING_METRIC {
|
|
|
165
163
|
ResponseTime = "RESPONSE_TIME",
|
|
166
164
|
CustomMetric = "CUSTOM_METRIC",
|
|
167
165
|
}
|
|
168
|
-
|
|
169
|
-
export enum FrameworkApplicationType {
|
|
170
|
-
Spa = 'spa',
|
|
171
|
-
Ssr = 'ssr',
|
|
172
|
-
Static = 'static',
|
|
173
|
-
Backend = 'backend'
|
|
174
|
-
}
|
package/env.ts
CHANGED
package/index.ts
CHANGED
|
@@ -26,7 +26,6 @@ export { default as AutoScalingGroup } from "./auto-scaling";
|
|
|
26
26
|
export { default as ComputeChange } from "./compute";
|
|
27
27
|
export { default as Region } from "./region";
|
|
28
28
|
export { default as Volume } from "./volume";
|
|
29
|
-
export { default as Framework } from "./framework";
|
|
30
29
|
|
|
31
30
|
export {
|
|
32
31
|
IUser,
|
|
@@ -59,8 +58,6 @@ export {
|
|
|
59
58
|
IComputeChange,
|
|
60
59
|
IRegion,
|
|
61
60
|
IVolume,
|
|
62
|
-
IFramework,
|
|
63
|
-
BrimbleFrameworkType
|
|
64
61
|
} from "./types";
|
|
65
62
|
export {
|
|
66
63
|
GIT_TYPE,
|
|
@@ -83,7 +80,6 @@ export {
|
|
|
83
80
|
LicenseStatus,
|
|
84
81
|
REGION_CONTINENT,
|
|
85
82
|
BUILD_DISABLED_BY,
|
|
86
|
-
FrameworkApplicationType
|
|
87
83
|
} from "./enum";
|
|
88
84
|
|
|
89
85
|
import mongoose from "mongoose";
|
package/package.json
CHANGED
package/plan_configuration.ts
CHANGED
|
@@ -12,12 +12,11 @@ const PlanConfigurationSchema = new Schema<IPlanConfiguration>(
|
|
|
12
12
|
preview_comments: { type: Boolean, default: false },
|
|
13
13
|
analytics: { type: Boolean, default: false },
|
|
14
14
|
build_minutes: { type: Number, required: true },
|
|
15
|
-
pull_request_preview: { type: Boolean, default: false, required: false },
|
|
16
15
|
log_retention: { type: Number, required: true },
|
|
17
16
|
bandwidth: { type: Number, required: true },
|
|
18
17
|
price: { type: Number, required: true },
|
|
19
|
-
autoscaling_enabled: { type: Boolean, default: false, required: false },
|
|
20
18
|
region: { type: Schema.Types.ObjectId, ref: "Region", required: false },
|
|
19
|
+
multi_region: { type: Boolean, default: false },
|
|
21
20
|
plan_type: {
|
|
22
21
|
type: String,
|
|
23
22
|
enum: Object.values(SUBSCRIPTION_PLAN_TYPE),
|
|
@@ -29,9 +28,6 @@ const PlanConfigurationSchema = new Schema<IPlanConfiguration>(
|
|
|
29
28
|
cpu: { type: Number, required: true },
|
|
30
29
|
tokens: { type: Number, required: false },
|
|
31
30
|
token_request: { type: Number, required: false },
|
|
32
|
-
view_metrics: { type: Boolean, required: false, default: false },
|
|
33
|
-
custom_domain: { type: Boolean, required: true, default: false },
|
|
34
|
-
can_deploy_all_applications: { type: Boolean, required: true, default: false },
|
|
35
31
|
},
|
|
36
32
|
{ timestamps: true },
|
|
37
33
|
);
|
package/project/index.ts
CHANGED
|
@@ -25,7 +25,7 @@ const projectSchema = new Schema(
|
|
|
25
25
|
},
|
|
26
26
|
preStartCommand: {
|
|
27
27
|
type: String,
|
|
28
|
-
required: false
|
|
28
|
+
required: false
|
|
29
29
|
},
|
|
30
30
|
buildCacheEnabled: {
|
|
31
31
|
type: Boolean,
|
|
@@ -112,7 +112,7 @@ const projectSchema = new Schema(
|
|
|
112
112
|
},
|
|
113
113
|
hasUpdates: {
|
|
114
114
|
type: Boolean,
|
|
115
|
-
default: false
|
|
115
|
+
default: false
|
|
116
116
|
},
|
|
117
117
|
lastProcessed: Number,
|
|
118
118
|
tracking_token: String,
|
package/region.ts
CHANGED
|
@@ -11,7 +11,6 @@ const regionSchema = new Schema({
|
|
|
11
11
|
is_paid: { type: Boolean, default: false },
|
|
12
12
|
provider: { type: String, required: true },
|
|
13
13
|
provider_identifier: { type: String, required: true },
|
|
14
|
-
storage_pricing_factor: { type: Number, required: true, default: 0.25 },
|
|
15
14
|
});
|
|
16
15
|
|
|
17
16
|
export default model<IRegion>("Region", regionSchema, "regions");
|
package/server.ts
CHANGED
|
@@ -55,30 +55,10 @@ const serverSchema = new Schema(
|
|
|
55
55
|
required: true,
|
|
56
56
|
},
|
|
57
57
|
tag: String,
|
|
58
|
-
plugin_id: {
|
|
59
|
-
type: String,
|
|
60
|
-
required: false,
|
|
61
|
-
},
|
|
62
58
|
firewall_id: {
|
|
63
59
|
required: false,
|
|
64
60
|
type: String,
|
|
65
61
|
},
|
|
66
|
-
provider: {
|
|
67
|
-
type: String,
|
|
68
|
-
required: true,
|
|
69
|
-
},
|
|
70
|
-
provider_location: {
|
|
71
|
-
type: String,
|
|
72
|
-
required: false,
|
|
73
|
-
},
|
|
74
|
-
provider_identifier: {
|
|
75
|
-
type: String,
|
|
76
|
-
required: false,
|
|
77
|
-
},
|
|
78
|
-
topology_path: {
|
|
79
|
-
type: String,
|
|
80
|
-
required: false,
|
|
81
|
-
},
|
|
82
62
|
specifications: {
|
|
83
63
|
type: Object,
|
|
84
64
|
default: {},
|
package/subscription.ts
CHANGED
package/token.ts
CHANGED
package/types/compute.ts
CHANGED
package/types/db-image.ts
CHANGED
|
@@ -5,13 +5,12 @@ export interface IDbImage extends Document {
|
|
|
5
5
|
name: DatabaseEngine;
|
|
6
6
|
image_url: string;
|
|
7
7
|
version: string;
|
|
8
|
-
envs:
|
|
8
|
+
envs: string[];
|
|
9
9
|
is_available: boolean;
|
|
10
10
|
is_default: boolean;
|
|
11
11
|
image: string;
|
|
12
12
|
has_port: boolean;
|
|
13
13
|
port: number;
|
|
14
14
|
volumePath: string;
|
|
15
|
-
|
|
16
|
-
recommendations?: Array<{ cpu: string; memory: string; storage: string }>;
|
|
15
|
+
recommendations?: Array<{ cpu: string; memory: string; storage: string; }>
|
|
17
16
|
}
|
package/types/domain/index.ts
CHANGED
|
@@ -9,10 +9,8 @@ export interface IDomain extends Document {
|
|
|
9
9
|
team_id?: ITeam;
|
|
10
10
|
primary: boolean;
|
|
11
11
|
preview: IPreview;
|
|
12
|
-
provider: string;
|
|
13
12
|
subscription: ISubscription;
|
|
14
13
|
auto_renewal: boolean;
|
|
15
|
-
renewal_duration: number;
|
|
16
14
|
is_discounted: boolean;
|
|
17
15
|
purchased: boolean;
|
|
18
16
|
privacy_enabled: boolean;
|
|
@@ -28,6 +26,4 @@ export interface IDomain extends Document {
|
|
|
28
26
|
url: string;
|
|
29
27
|
status?: 301 | 302 | 307 | 308;
|
|
30
28
|
};
|
|
31
|
-
createdAt: Date;
|
|
32
|
-
updatedAt: Date;
|
|
33
29
|
}
|
package/types/index.ts
CHANGED
|
@@ -7,7 +7,6 @@ export interface IPlanConfiguration extends Document {
|
|
|
7
7
|
price: number;
|
|
8
8
|
region: IRegion;
|
|
9
9
|
slack_support: boolean;
|
|
10
|
-
autoscaling_enabled: boolean;
|
|
11
10
|
concurrent_builds: number;
|
|
12
11
|
project_limit: number;
|
|
13
12
|
deploy_private_organization: boolean;
|
|
@@ -15,16 +14,13 @@ export interface IPlanConfiguration extends Document {
|
|
|
15
14
|
analytics: boolean;
|
|
16
15
|
build_minutes: number;
|
|
17
16
|
log_retention: number;
|
|
17
|
+
multi_region: boolean;
|
|
18
18
|
bandwidth: number;
|
|
19
|
-
pull_request_preview: boolean;
|
|
20
19
|
plan_type: SUBSCRIPTION_PLAN_TYPE;
|
|
21
20
|
memory: number;
|
|
22
21
|
build_timeout: number;
|
|
23
22
|
storage: number;
|
|
24
23
|
cpu: number;
|
|
25
24
|
tokens: number;
|
|
26
|
-
view_metrics: boolean;
|
|
27
25
|
token_request: number;
|
|
28
|
-
custom_domain: boolean;
|
|
29
|
-
can_deploy_all_applications: boolean;
|
|
30
26
|
}
|
package/types/region.ts
CHANGED
package/types/server.ts
CHANGED
|
@@ -41,15 +41,5 @@ export interface IServer extends Document {
|
|
|
41
41
|
|
|
42
42
|
specifications: Record<any, any>;
|
|
43
43
|
|
|
44
|
-
plugin_id?: string;
|
|
45
|
-
|
|
46
|
-
provider: string;
|
|
47
|
-
|
|
48
|
-
provider_location?: string;
|
|
49
|
-
|
|
50
|
-
provider_identifier?: string;
|
|
51
|
-
|
|
52
|
-
topology_path?: string;
|
|
53
|
-
|
|
54
44
|
meta: Record<any, any>;
|
|
55
45
|
}
|
package/dist/framework.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
|
-
import { IFramework } from "./types";
|
|
27
|
-
declare const _default: import("mongoose").Model<IFramework, {}, {}, {}, import("mongoose").Document<unknown, {}, IFramework> & IFramework & {
|
|
28
|
-
_id: import("mongoose").Types.ObjectId;
|
|
29
|
-
}, any>;
|
|
30
|
-
export default _default;
|
package/dist/framework.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const enum_1 = require("./enum");
|
|
5
|
-
const frameworkSchema = new mongoose_1.Schema({
|
|
6
|
-
name: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: true,
|
|
9
|
-
},
|
|
10
|
-
slug: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: true,
|
|
13
|
-
},
|
|
14
|
-
demo: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: false,
|
|
17
|
-
},
|
|
18
|
-
logo: {
|
|
19
|
-
type: String,
|
|
20
|
-
required: true,
|
|
21
|
-
},
|
|
22
|
-
supported: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
required: false,
|
|
25
|
-
default: true
|
|
26
|
-
},
|
|
27
|
-
tagline: {
|
|
28
|
-
type: String,
|
|
29
|
-
required: false,
|
|
30
|
-
},
|
|
31
|
-
description: {
|
|
32
|
-
type: String,
|
|
33
|
-
required: false,
|
|
34
|
-
},
|
|
35
|
-
website: {
|
|
36
|
-
type: String,
|
|
37
|
-
required: true,
|
|
38
|
-
},
|
|
39
|
-
envPrefix: {
|
|
40
|
-
type: String,
|
|
41
|
-
required: false,
|
|
42
|
-
},
|
|
43
|
-
detector: {
|
|
44
|
-
type: String,
|
|
45
|
-
required: true,
|
|
46
|
-
},
|
|
47
|
-
file_detectors: {
|
|
48
|
-
type: Array,
|
|
49
|
-
required: false
|
|
50
|
-
},
|
|
51
|
-
type: {
|
|
52
|
-
type: String,
|
|
53
|
-
enum: Object.values(enum_1.FrameworkApplicationType),
|
|
54
|
-
required: true,
|
|
55
|
-
},
|
|
56
|
-
settings: {
|
|
57
|
-
installCommand: {
|
|
58
|
-
type: String,
|
|
59
|
-
required: false,
|
|
60
|
-
},
|
|
61
|
-
buildCommand: {
|
|
62
|
-
type: String,
|
|
63
|
-
required: true,
|
|
64
|
-
},
|
|
65
|
-
outputDirectory: {
|
|
66
|
-
type: String,
|
|
67
|
-
required: true,
|
|
68
|
-
},
|
|
69
|
-
manager: {
|
|
70
|
-
type: String,
|
|
71
|
-
required: false,
|
|
72
|
-
},
|
|
73
|
-
startCommand: {
|
|
74
|
-
type: String,
|
|
75
|
-
required: false,
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
}, { timestamps: true });
|
|
79
|
-
exports.default = (0, mongoose_1.model)("Framework", frameworkSchema, "frameworks");
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { FrameworkApplicationType } from "../enum";
|
|
3
|
-
export interface IFramework extends Document {
|
|
4
|
-
name: string;
|
|
5
|
-
slug: string;
|
|
6
|
-
demo?: string;
|
|
7
|
-
logo: string;
|
|
8
|
-
tagline?: string;
|
|
9
|
-
supported: boolean;
|
|
10
|
-
description?: string;
|
|
11
|
-
website: string;
|
|
12
|
-
envPrefix?: string;
|
|
13
|
-
detector: string;
|
|
14
|
-
file_detectors: string[];
|
|
15
|
-
type: FrameworkApplicationType;
|
|
16
|
-
settings: {
|
|
17
|
-
installCommand?: string;
|
|
18
|
-
startCommand?: string;
|
|
19
|
-
buildCommand: string;
|
|
20
|
-
outputDirectory: string;
|
|
21
|
-
manager?: string;
|
|
22
|
-
};
|
|
23
|
-
createdAt?: Date;
|
|
24
|
-
updatedAt?: Date;
|
|
25
|
-
}
|
|
26
|
-
export type BrimbleFrameworkType = {
|
|
27
|
-
name: string;
|
|
28
|
-
slug: string;
|
|
29
|
-
logo: string;
|
|
30
|
-
installCommand: string;
|
|
31
|
-
buildCommand: string;
|
|
32
|
-
startCommand: string;
|
|
33
|
-
outputDirectory: string;
|
|
34
|
-
manager: string | null;
|
|
35
|
-
envPrefix: string;
|
|
36
|
-
supported: boolean;
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
package/dist/types/framework.js
DELETED
package/framework.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { IFramework } from "./types";
|
|
3
|
-
import { FrameworkApplicationType } from "./enum";
|
|
4
|
-
|
|
5
|
-
const frameworkSchema: Schema = new Schema(
|
|
6
|
-
{
|
|
7
|
-
name: {
|
|
8
|
-
type: String,
|
|
9
|
-
required: true,
|
|
10
|
-
},
|
|
11
|
-
slug: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
demo: {
|
|
16
|
-
type: String,
|
|
17
|
-
required: false,
|
|
18
|
-
},
|
|
19
|
-
logo: {
|
|
20
|
-
type: String,
|
|
21
|
-
required: true,
|
|
22
|
-
},
|
|
23
|
-
supported: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
required: false,
|
|
26
|
-
default: true
|
|
27
|
-
},
|
|
28
|
-
tagline: {
|
|
29
|
-
type: String,
|
|
30
|
-
required: false,
|
|
31
|
-
},
|
|
32
|
-
description: {
|
|
33
|
-
type: String,
|
|
34
|
-
required: false,
|
|
35
|
-
},
|
|
36
|
-
website: {
|
|
37
|
-
type: String,
|
|
38
|
-
required: true,
|
|
39
|
-
},
|
|
40
|
-
envPrefix: {
|
|
41
|
-
type: String,
|
|
42
|
-
required: false,
|
|
43
|
-
},
|
|
44
|
-
detector: {
|
|
45
|
-
type: String,
|
|
46
|
-
required: true,
|
|
47
|
-
},
|
|
48
|
-
file_detectors: {
|
|
49
|
-
type: Array,
|
|
50
|
-
required: false
|
|
51
|
-
},
|
|
52
|
-
type: {
|
|
53
|
-
type: String,
|
|
54
|
-
enum: Object.values(FrameworkApplicationType),
|
|
55
|
-
required: true,
|
|
56
|
-
},
|
|
57
|
-
settings: {
|
|
58
|
-
installCommand: {
|
|
59
|
-
type: String,
|
|
60
|
-
required: false,
|
|
61
|
-
},
|
|
62
|
-
buildCommand: {
|
|
63
|
-
type: String,
|
|
64
|
-
required: true,
|
|
65
|
-
},
|
|
66
|
-
outputDirectory: {
|
|
67
|
-
type: String,
|
|
68
|
-
required: true,
|
|
69
|
-
},
|
|
70
|
-
manager: {
|
|
71
|
-
type: String,
|
|
72
|
-
required: false,
|
|
73
|
-
},
|
|
74
|
-
startCommand: {
|
|
75
|
-
type: String,
|
|
76
|
-
required: false,
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
{ timestamps: true },
|
|
81
|
-
);
|
|
82
|
-
|
|
83
|
-
export default model<IFramework>("Framework", frameworkSchema, "frameworks");
|
package/types/framework.ts
DELETED
|
@@ -1,40 +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
|
-
envPrefix?: string;
|
|
14
|
-
detector: string;
|
|
15
|
-
file_detectors: string[];
|
|
16
|
-
type: FrameworkApplicationType;
|
|
17
|
-
settings: {
|
|
18
|
-
installCommand?: string;
|
|
19
|
-
startCommand?: string;
|
|
20
|
-
buildCommand: string;
|
|
21
|
-
outputDirectory: string;
|
|
22
|
-
manager?: string;
|
|
23
|
-
};
|
|
24
|
-
createdAt?: Date;
|
|
25
|
-
updatedAt?: Date;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type BrimbleFrameworkType = {
|
|
29
|
-
name: string;
|
|
30
|
-
slug: string;
|
|
31
|
-
logo: string;
|
|
32
|
-
installCommand: string;
|
|
33
|
-
buildCommand: string;
|
|
34
|
-
startCommand: string;
|
|
35
|
-
outputDirectory: string;
|
|
36
|
-
manager: string | null;
|
|
37
|
-
envPrefix: string;
|
|
38
|
-
supported: boolean;
|
|
39
|
-
type: string;
|
|
40
|
-
};
|