@brimble/models 2.7.4 → 2.7.6

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/index.d.ts CHANGED
@@ -26,7 +26,7 @@ export { default as ComputeChange } from "./compute";
26
26
  export { default as Region } from "./region";
27
27
  export { default as Volume } from "./volume";
28
28
  export { IUser, IGit, IProject, IPreview, 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";
29
- 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, } from "./enum";
29
+ 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";
30
30
  import mongoose from "mongoose";
31
31
  export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
32
32
  export declare const db: mongoose.Connection;
package/dist/index.js CHANGED
@@ -12,7 +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.closeMongo = exports.db = exports.connectToMongo = 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.Preview = exports.DeletedProject = exports.Project = exports.User = void 0;
15
+ exports.db = 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.Preview = exports.DeletedProject = exports.Project = exports.User = void 0;
16
+ exports.closeMongo = void 0;
16
17
  var user_1 = require("./user");
17
18
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(user_1).default; } });
18
19
  var project_1 = require("./project");
@@ -88,6 +89,7 @@ Object.defineProperty(exports, "DatabaseEngine", { enumerable: true, get: functi
88
89
  Object.defineProperty(exports, "JobStatus", { enumerable: true, get: function () { return enum_1.JobStatus; } });
89
90
  Object.defineProperty(exports, "LicenseStatus", { enumerable: true, get: function () { return enum_1.LicenseStatus; } });
90
91
  Object.defineProperty(exports, "REGION_CONTINENT", { enumerable: true, get: function () { return enum_1.REGION_CONTINENT; } });
92
+ Object.defineProperty(exports, "BUILD_DISABLED_BY", { enumerable: true, get: function () { return enum_1.BUILD_DISABLED_BY; } });
91
93
  const mongoose_1 = __importDefault(require("mongoose"));
92
94
  const utils_1 = require("@brimble/utils");
93
95
  const connectToMongo = (mongoUrl, config) => __awaiter(void 0, void 0, void 0, function* () {
@@ -27,6 +27,10 @@ const projectSchema = new mongoose_1.Schema({
27
27
  type: String,
28
28
  required: false
29
29
  },
30
+ buildCacheEnabled: {
31
+ type: Boolean,
32
+ default: false,
33
+ },
30
34
  domains: [
31
35
  {
32
36
  ref: "Domain",
@@ -14,6 +14,7 @@ export interface IProject extends Document {
14
14
  healthCheckPath?: string;
15
15
  preStartCommand?: string;
16
16
  backupEnabled: boolean;
17
+ buildCacheEnabled?: boolean;
17
18
  domains: Array<IDomain>;
18
19
  environments: Array<IEnv>;
19
20
  uuid: number;
package/index.ts CHANGED
@@ -77,6 +77,7 @@ export {
77
77
  JobStatus,
78
78
  LicenseStatus,
79
79
  REGION_CONTINENT,
80
+ BUILD_DISABLED_BY,
80
81
  } from "./enum";
81
82
 
82
83
  import mongoose from "mongoose";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.7.4",
3
+ "version": "2.7.6",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/project/index.ts CHANGED
@@ -27,6 +27,10 @@ const projectSchema = new Schema(
27
27
  type: String,
28
28
  required: false
29
29
  },
30
+ buildCacheEnabled: {
31
+ type: Boolean,
32
+ default: false,
33
+ },
30
34
  domains: [
31
35
  {
32
36
  ref: "Domain",
@@ -15,6 +15,7 @@ export interface IProject extends Document {
15
15
  healthCheckPath?: string;
16
16
  preStartCommand?: string;
17
17
  backupEnabled: boolean;
18
+ buildCacheEnabled?: boolean;
18
19
  domains: Array<IDomain>;
19
20
  environments: Array<IEnv>;
20
21
  uuid: number;
@@ -1 +0,0 @@
1
- $ rm -rf dist && tsc -p .
package/brimble.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "project": {}
3
- }