@brimble/models 3.6.2 → 3.7.0

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.
@@ -59,10 +59,7 @@ export declare enum PROJECT_STATUS {
59
59
  PENDING = "PENDING",
60
60
  CANCELLED = "CANCELLED",
61
61
  DEGRADED = "DEGRADED",
62
- PAYMENT = "PAYMENT DUE",
63
- NOMAD_SETUP = "nomad_setup",
64
- NOMAD_READY = "nomad_ready",
65
- NOMAD_FAILED = "nomad_failed"
62
+ PAYMENT = "PAYMENT DUE"
66
63
  }
67
64
  export declare enum SUBSCRIPTION_STATUS {
68
65
  ACTIVE = "active",
@@ -164,3 +161,8 @@ export declare enum DomainRenewalStatus {
164
161
  Completed = "completed",
165
162
  Failed = "failed"
166
163
  }
164
+ export declare enum NomadDeploymentStatus {
165
+ NOMAD_SETUP = "nomad_setup",
166
+ NOMAD_READY = "nomad_ready",
167
+ NOMAD_FAILED = "nomad_failed"
168
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DomainRenewalStatus = 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.SERVER_PROTOCOL = exports.GIT_TYPE = void 0;
3
+ exports.NomadDeploymentStatus = exports.DomainRenewalStatus = 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.SERVER_PROTOCOL = exports.GIT_TYPE = void 0;
4
4
  var GIT_TYPE;
5
5
  (function (GIT_TYPE) {
6
6
  GIT_TYPE["GITHUB"] = "GITHUB";
@@ -72,9 +72,6 @@ var PROJECT_STATUS;
72
72
  PROJECT_STATUS["CANCELLED"] = "CANCELLED";
73
73
  PROJECT_STATUS["DEGRADED"] = "DEGRADED";
74
74
  PROJECT_STATUS["PAYMENT"] = "PAYMENT DUE";
75
- PROJECT_STATUS["NOMAD_SETUP"] = "nomad_setup";
76
- PROJECT_STATUS["NOMAD_READY"] = "nomad_ready";
77
- PROJECT_STATUS["NOMAD_FAILED"] = "nomad_failed";
78
75
  })(PROJECT_STATUS = exports.PROJECT_STATUS || (exports.PROJECT_STATUS = {}));
79
76
  var SUBSCRIPTION_STATUS;
80
77
  (function (SUBSCRIPTION_STATUS) {
@@ -192,3 +189,9 @@ var DomainRenewalStatus;
192
189
  DomainRenewalStatus["Completed"] = "completed";
193
190
  DomainRenewalStatus["Failed"] = "failed";
194
191
  })(DomainRenewalStatus = exports.DomainRenewalStatus || (exports.DomainRenewalStatus = {}));
192
+ var NomadDeploymentStatus;
193
+ (function (NomadDeploymentStatus) {
194
+ NomadDeploymentStatus["NOMAD_SETUP"] = "nomad_setup";
195
+ NomadDeploymentStatus["NOMAD_READY"] = "nomad_ready";
196
+ NomadDeploymentStatus["NOMAD_FAILED"] = "nomad_failed";
197
+ })(NomadDeploymentStatus = exports.NomadDeploymentStatus || (exports.NomadDeploymentStatus = {}));
package/dist/index.d.ts CHANGED
@@ -34,7 +34,7 @@ export { default as WebhookCategory } from "./webhook-category";
34
34
  export { default as WebhookEvent } from "./webhook-event";
35
35
  export { default as WebhookSetting } from "./webhook-setting";
36
36
  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, ISettings, ILoadBalancerPort, IDomainRenewal, IWebhookCategory, IWebhookEvent, IWebhookSetting } from "./types";
37
- 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, SERVER_PROTOCOL, FrameworkApplicationType, DomainRenewalStatus } from "./enum";
37
+ 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, SERVER_PROTOCOL, FrameworkApplicationType, DomainRenewalStatus, NomadDeploymentStatus } from "./enum";
38
38
  import mongoose from "mongoose";
39
39
  export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
40
40
  export declare const db: mongoose.Connection;
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  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.WebhookSetting = exports.WebhookEvent = exports.WebhookCategory = exports.DomainRenewal = exports.LoadBalancerPort = exports.Settings = 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.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.BUILD_DISABLED_BY = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = void 0;
16
+ exports.closeMongo = exports.db = exports.connectToMongo = exports.NomadDeploymentStatus = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.BUILD_DISABLED_BY = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = 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");
@@ -109,6 +109,7 @@ Object.defineProperty(exports, "BUILD_DISABLED_BY", { enumerable: true, get: fun
109
109
  Object.defineProperty(exports, "SERVER_PROTOCOL", { enumerable: true, get: function () { return enum_1.SERVER_PROTOCOL; } });
110
110
  Object.defineProperty(exports, "FrameworkApplicationType", { enumerable: true, get: function () { return enum_1.FrameworkApplicationType; } });
111
111
  Object.defineProperty(exports, "DomainRenewalStatus", { enumerable: true, get: function () { return enum_1.DomainRenewalStatus; } });
112
+ Object.defineProperty(exports, "NomadDeploymentStatus", { enumerable: true, get: function () { return enum_1.NomadDeploymentStatus; } });
112
113
  const mongoose_1 = __importDefault(require("mongoose"));
113
114
  const utils_1 = require("@brimble/utils");
114
115
  const connectToMongo = (mongoUrl, config) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1,37 +1,37 @@
1
- export { IUser } from "./user";
2
- export { IGit } from "./git";
3
- export { IFollowing } from "./following";
4
- export { IProject } from "./project";
5
- export { IPreview } from "./project/preview";
6
- export { IProjectConnection } from "./project/connection";
7
- export { IIntegration } from "./integration";
8
- export { IEnv } from "./env";
9
- export { IDomain } from "./domain";
10
- export { IDns } from "./domain/dns";
11
- export { IToken } from "./token";
12
- export { ITeam } from "./team";
13
- export { IMember } from "./member";
14
- export { IInstalledIntegration } from "./installed_integration";
15
- export { ILog } from "./logs";
16
- export { ISubscription } from "./subscription";
17
- export { ICard } from "./card";
18
- export { IServer } from "./server";
19
- export { IPermission } from "./permission";
20
- export { IRole } from "./role";
21
- export { IMemberPermission } from "./member-permission";
22
- export { IWallet } from "./wallet";
23
- export { IDbImage } from "./db-image";
24
- export { IJob } from "./job";
25
- export { ILicense } from "./license";
26
- export { IPlanConfiguration } from "./plan_configuration";
27
- export { IAutoScalingGroup } from "./auto-scaling-group";
28
- export { IComputeChange } from "./compute";
29
- export { IRegion } from "./region";
30
- export { IVolume } from "./volume";
31
- export { IFramework, BrimbleFrameworkType } from "./framework";
32
- export { ISettings } from "./settings";
33
- export { ILoadBalancerPort } from "./load-balancer-port";
34
- export { IDomainRenewal } from "./domain/renewal";
35
- export { IWebhookSetting } from "./webhook-setting";
36
- export { IWebhookEvent } from "./webhook-event";
37
- export { IWebhookCategory } from "./webhook-category";
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 { IEnv } from "./env";
9
+ export type { IFollowing } from "./following";
10
+ export type { BrimbleFrameworkType, IFramework } from "./framework";
11
+ export type { IGit } from "./git";
12
+ export type { IInstalledIntegration } from "./installed_integration";
13
+ export type { IIntegration } from "./integration";
14
+ export type { IJob } from "./job";
15
+ export type { ILicense } from "./license";
16
+ export type { ILoadBalancerPort } from "./load-balancer-port";
17
+ export type { ILog } from "./logs";
18
+ export type { IMember } from "./member";
19
+ export type { IMemberPermission } from "./member-permission";
20
+ export type { IPermission } from "./permission";
21
+ export type { IPlanConfiguration } from "./plan_configuration";
22
+ export type { IProject } from "./project";
23
+ export type { IProjectConnection } from "./project/connection";
24
+ export type { IPreview } from "./project/preview";
25
+ export type { IRegion } from "./region";
26
+ export type { IRole } from "./role";
27
+ export type { IServer } from "./server";
28
+ export type { ISettings } from "./settings";
29
+ export type { ISubscription } from "./subscription";
30
+ export type { ITeam } from "./team";
31
+ export type { IToken } from "./token";
32
+ export type { IUser } from "./user";
33
+ export type { IVolume } from "./volume";
34
+ export type { IWallet } from "./wallet";
35
+ export type { IWebhookCategory } from "./webhook-category";
36
+ export type { IWebhookEvent } from "./webhook-event";
37
+ export type { IWebhookSetting } from "./webhook-setting";
package/enum/index.ts CHANGED
@@ -68,9 +68,6 @@ export enum PROJECT_STATUS {
68
68
  CANCELLED = "CANCELLED",
69
69
  DEGRADED = "DEGRADED",
70
70
  PAYMENT = "PAYMENT DUE",
71
- NOMAD_SETUP = 'nomad_setup',
72
- NOMAD_READY = 'nomad_ready',
73
- NOMAD_FAILED = 'nomad_failed',
74
71
  }
75
72
 
76
73
  export enum SUBSCRIPTION_STATUS {
@@ -187,4 +184,10 @@ export enum DomainRenewalStatus {
187
184
  Pending = "pending",
188
185
  Completed = "completed",
189
186
  Failed = "failed",
187
+ }
188
+
189
+ export enum NomadDeploymentStatus {
190
+ NOMAD_SETUP = 'nomad_setup',
191
+ NOMAD_READY = 'nomad_ready',
192
+ NOMAD_FAILED = 'nomad_failed',
190
193
  }
package/index.ts CHANGED
@@ -97,7 +97,8 @@ export {
97
97
  BUILD_DISABLED_BY,
98
98
  SERVER_PROTOCOL,
99
99
  FrameworkApplicationType,
100
- DomainRenewalStatus
100
+ DomainRenewalStatus,
101
+ NomadDeploymentStatus
101
102
  } from "./enum";
102
103
 
103
104
  import mongoose from "mongoose";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.6.2",
3
+ "version": "3.7.0",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types/index.ts CHANGED
@@ -1,37 +1,37 @@
1
- export { IUser } from "./user";
2
- export { IGit } from "./git";
3
- export { IFollowing } from "./following";
4
- export { IProject } from "./project";
5
- export { IPreview } from "./project/preview";
6
- export { IProjectConnection } from "./project/connection";
7
- export { IIntegration } from "./integration";
8
- export { IEnv } from "./env";
9
- export { IDomain } from "./domain";
10
- export { IDns } from "./domain/dns";
11
- export { IToken } from "./token";
12
- export { ITeam } from "./team";
13
- export { IMember } from "./member";
14
- export { IInstalledIntegration } from "./installed_integration";
15
- export { ILog } from "./logs";
16
- export { ISubscription } from "./subscription";
17
- export { ICard } from "./card";
18
- export { IServer } from "./server";
19
- export { IPermission } from "./permission";
20
- export { IRole } from "./role";
21
- export { IMemberPermission } from "./member-permission";
22
- export { IWallet } from "./wallet";
23
- export { IDbImage } from "./db-image";
24
- export { IJob } from "./job";
25
- export { ILicense } from "./license";
26
- export { IPlanConfiguration } from "./plan_configuration";
27
- export { IAutoScalingGroup } from "./auto-scaling-group";
28
- export { IComputeChange } from "./compute";
29
- export { IRegion } from "./region";
30
- export { IVolume } from "./volume";
31
- export { IFramework, BrimbleFrameworkType } from "./framework";
32
- export { ISettings } from "./settings";
33
- export { ILoadBalancerPort } from "./load-balancer-port";
34
- export { IDomainRenewal } from "./domain/renewal";
35
- export { IWebhookSetting } from "./webhook-setting";
36
- export { IWebhookEvent } from "./webhook-event";
37
- export { IWebhookCategory } from "./webhook-category";
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 { IEnv } from "./env";
9
+ export type { IFollowing } from "./following";
10
+ export type { BrimbleFrameworkType, IFramework } from "./framework";
11
+ export type { IGit } from "./git";
12
+ export type { IInstalledIntegration } from "./installed_integration";
13
+ export type { IIntegration } from "./integration";
14
+ export type { IJob } from "./job";
15
+ export type { ILicense } from "./license";
16
+ export type { ILoadBalancerPort } from "./load-balancer-port";
17
+ export type { ILog } from "./logs";
18
+ export type { IMember } from "./member";
19
+ export type { IMemberPermission } from "./member-permission";
20
+ export type { IPermission } from "./permission";
21
+ export type { IPlanConfiguration } from "./plan_configuration";
22
+ export type { IProject } from "./project";
23
+ export type { IProjectConnection } from "./project/connection";
24
+ export type { IPreview } from "./project/preview";
25
+ export type { IRegion } from "./region";
26
+ export type { IRole } from "./role";
27
+ export type { IServer } from "./server";
28
+ export type { ISettings } from "./settings";
29
+ export type { ISubscription } from "./subscription";
30
+ export type { ITeam } from "./team";
31
+ export type { IToken } from "./token";
32
+ export type { IUser } from "./user";
33
+ export type { IVolume } from "./volume";
34
+ export type { IWallet } from "./wallet";
35
+ export type { IWebhookCategory } from "./webhook-category";
36
+ export type { IWebhookEvent } from "./webhook-event";
37
+ export type { IWebhookSetting } from "./webhook-setting";