@brimble/models 3.1.3 → 3.1.4

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.
@@ -0,0 +1 @@
1
+ $ rm -rf dist && tsc -p .
package/brimble.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "project": {}
3
+ }
@@ -105,6 +105,7 @@ export declare enum REGION_CONTINENT {
105
105
  export declare enum ServiceType {
106
106
  Database = "database",
107
107
  WebService = "web-service",
108
+ Static = "static",
108
109
  Mcp = "mcp",
109
110
  Liscense = "liscense",
110
111
  Worker = "worker"
@@ -142,9 +143,3 @@ export declare enum SCALING_METRIC {
142
143
  ResponseTime = "RESPONSE_TIME",
143
144
  CustomMetric = "CUSTOM_METRIC"
144
145
  }
145
- export declare enum FrameworkApplicationType {
146
- Spa = "spa",
147
- Ssr = "ssr",
148
- Static = "static",
149
- Backend = "backend"
150
- }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FrameworkApplicationType = 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;
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";
@@ -125,6 +125,7 @@ var ServiceType;
125
125
  (function (ServiceType) {
126
126
  ServiceType["Database"] = "database";
127
127
  ServiceType["WebService"] = "web-service";
128
+ ServiceType["Static"] = "static";
128
129
  ServiceType["Mcp"] = "mcp";
129
130
  ServiceType["Liscense"] = "liscense";
130
131
  ServiceType["Worker"] = "worker";
@@ -167,10 +168,3 @@ var SCALING_METRIC;
167
168
  SCALING_METRIC["ResponseTime"] = "RESPONSE_TIME";
168
169
  SCALING_METRIC["CustomMetric"] = "CUSTOM_METRIC";
169
170
  })(SCALING_METRIC = exports.SCALING_METRIC || (exports.SCALING_METRIC = {}));
170
- var FrameworkApplicationType;
171
- (function (FrameworkApplicationType) {
172
- FrameworkApplicationType["Spa"] = "spa";
173
- FrameworkApplicationType["Ssr"] = "ssr";
174
- FrameworkApplicationType["Static"] = "static";
175
- FrameworkApplicationType["Backend"] = "backend";
176
- })(FrameworkApplicationType = exports.FrameworkApplicationType || (exports.FrameworkApplicationType = {}));
package/dist/framework.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const mongoose_1 = require("mongoose");
4
- const enum_1 = require("./enum");
5
4
  const frameworkSchema = new mongoose_1.Schema({
6
5
  name: {
7
6
  type: String,
@@ -19,11 +18,6 @@ const frameworkSchema = new mongoose_1.Schema({
19
18
  type: String,
20
19
  required: true,
21
20
  },
22
- supported: {
23
- type: Boolean,
24
- required: false,
25
- default: true
26
- },
27
21
  tagline: {
28
22
  type: String,
29
23
  required: false,
@@ -44,15 +38,6 @@ const frameworkSchema = new mongoose_1.Schema({
44
38
  type: String,
45
39
  required: true,
46
40
  },
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
41
  settings: {
57
42
  installCommand: {
58
43
  type: String,
@@ -66,14 +51,6 @@ const frameworkSchema = new mongoose_1.Schema({
66
51
  type: String,
67
52
  required: true,
68
53
  },
69
- manager: {
70
- type: String,
71
- required: false,
72
- },
73
- startCommand: {
74
- type: String,
75
- required: false,
76
- },
77
54
  },
78
55
  }, { timestamps: true });
79
56
  exports.default = (0, mongoose_1.model)("Framework", frameworkSchema, "frameworks");
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 { default as Framework } from "./framework";
30
- 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, IFramework, BrimbleFrameworkType } from "./types";
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, IFramework, } 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.Framework = 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 = exports.connectToMongo = exports.FrameworkApplicationType = void 0;
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* () {
@@ -1,38 +1,19 @@
1
1
  import { Document } from "mongoose";
2
- import { FrameworkApplicationType } from "../enum";
3
2
  export interface IFramework extends Document {
4
3
  name: string;
5
4
  slug: string;
6
5
  demo?: string;
7
6
  logo: string;
8
7
  tagline?: string;
9
- supported: boolean;
10
8
  description?: string;
11
9
  website: string;
12
10
  envPrefix?: string;
13
11
  detector: string;
14
- file_detectors: string[];
15
- type: FrameworkApplicationType;
16
12
  settings: {
17
13
  installCommand?: string;
18
- startCommand?: string;
19
14
  buildCommand: string;
20
15
  outputDirectory: string;
21
- manager?: string;
22
16
  };
23
17
  createdAt?: Date;
24
18
  updatedAt?: Date;
25
19
  }
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
- };
@@ -28,4 +28,4 @@ export { IAutoScalingGroup } from "./auto-scaling-group";
28
28
  export { IComputeChange } from "./compute";
29
29
  export { IRegion } from "./region";
30
30
  export { IVolume } from "./volume";
31
- export { IFramework, BrimbleFrameworkType } from "./framework";
31
+ export { IFramework } from "./framework";
package/enum/index.ts CHANGED
@@ -121,6 +121,7 @@ export enum REGION_CONTINENT {
121
121
  export enum ServiceType {
122
122
  Database = "database",
123
123
  WebService = "web-service",
124
+ Static = "static",
124
125
  Mcp = "mcp",
125
126
  Liscense = "liscense",
126
127
  Worker = "worker",
@@ -163,10 +164,3 @@ export enum SCALING_METRIC {
163
164
  ResponseTime = "RESPONSE_TIME",
164
165
  CustomMetric = "CUSTOM_METRIC",
165
166
  }
166
-
167
- export enum FrameworkApplicationType {
168
- Spa = 'spa',
169
- Ssr = 'ssr',
170
- Static = 'static',
171
- Backend = 'backend'
172
- }
package/framework.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { model, Schema } from "mongoose";
2
2
  import { IFramework } from "./types";
3
- import { FrameworkApplicationType } from "./enum";
4
3
 
5
4
  const frameworkSchema: Schema = new Schema(
6
5
  {
@@ -20,11 +19,6 @@ const frameworkSchema: Schema = new Schema(
20
19
  type: String,
21
20
  required: true,
22
21
  },
23
- supported: {
24
- type: Boolean,
25
- required: false,
26
- default: true
27
- },
28
22
  tagline: {
29
23
  type: String,
30
24
  required: false,
@@ -45,15 +39,6 @@ const frameworkSchema: Schema = new Schema(
45
39
  type: String,
46
40
  required: true,
47
41
  },
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
42
  settings: {
58
43
  installCommand: {
59
44
  type: String,
@@ -67,14 +52,6 @@ const frameworkSchema: Schema = new Schema(
67
52
  type: String,
68
53
  required: true,
69
54
  },
70
- manager: {
71
- type: String,
72
- required: false,
73
- },
74
- startCommand: {
75
- type: String,
76
- required: false,
77
- },
78
55
  },
79
56
  },
80
57
  { timestamps: true },
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,
@@ -60,7 +59,6 @@ export {
60
59
  IRegion,
61
60
  IVolume,
62
61
  IFramework,
63
- BrimbleFrameworkType
64
62
  } from "./types";
65
63
  export {
66
64
  GIT_TYPE,
@@ -83,7 +81,6 @@ export {
83
81
  LicenseStatus,
84
82
  REGION_CONTINENT,
85
83
  BUILD_DISABLED_BY,
86
- FrameworkApplicationType
87
84
  } from "./enum";
88
85
 
89
86
  import mongoose from "mongoose";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,4 @@
1
1
  import { Document } from "mongoose";
2
- import { FrameworkApplicationType } from "../enum";
3
2
 
4
3
  export interface IFramework extends Document {
5
4
  name: string;
@@ -7,34 +6,15 @@ export interface IFramework extends Document {
7
6
  demo?: string;
8
7
  logo: string;
9
8
  tagline?: string;
10
- supported: boolean;
11
9
  description?: string;
12
10
  website: string;
13
11
  envPrefix?: string;
14
12
  detector: string;
15
- file_detectors: string[];
16
- type: FrameworkApplicationType;
17
13
  settings: {
18
14
  installCommand?: string;
19
- startCommand?: string;
20
15
  buildCommand: string;
21
16
  outputDirectory: string;
22
- manager?: string;
23
17
  };
24
18
  createdAt?: Date;
25
19
  updatedAt?: Date;
26
20
  }
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
- };
package/types/index.ts CHANGED
@@ -28,4 +28,4 @@ export { IAutoScalingGroup } from "./auto-scaling-group";
28
28
  export { IComputeChange } from "./compute";
29
29
  export { IRegion } from "./region";
30
30
  export { IVolume } from "./volume";
31
- export { IFramework, BrimbleFrameworkType } from "./framework";
31
+ export { IFramework } from "./framework";