@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.
- package/dist/enum/index.d.ts +6 -4
- package/dist/enum/index.js +7 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/types/index.d.ts +37 -37
- package/enum/index.ts +6 -3
- package/index.ts +2 -1
- package/package.json +1 -1
- package/types/index.ts +37 -37
package/dist/enum/index.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/dist/enum/index.js
CHANGED
|
@@ -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* () {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export { IEnv } from "./env";
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export { IWebhookEvent } from "./webhook-event";
|
|
37
|
-
export {
|
|
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
package/package.json
CHANGED
package/types/index.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export { IEnv } from "./env";
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export { IWebhookEvent } from "./webhook-event";
|
|
37
|
-
export {
|
|
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";
|