@brimble/models 3.6.2 → 3.7.1

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
@@ -33,8 +33,9 @@ export { default as DomainRenewal } from "./domain/renewal";
33
33
  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
- 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";
36
+ export { default as Intention } from "./intention";
37
+ 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, IIntention } from "./types";
38
+ 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
39
  import mongoose from "mongoose";
39
40
  export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
40
41
  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.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;
15
+ 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.Intention = 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.NomadDeploymentStatus = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.BUILD_DISABLED_BY = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = exports.REQUEST_TYPE = 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");
@@ -85,6 +85,8 @@ var webhook_event_1 = require("./webhook-event");
85
85
  Object.defineProperty(exports, "WebhookEvent", { enumerable: true, get: function () { return __importDefault(webhook_event_1).default; } });
86
86
  var webhook_setting_1 = require("./webhook-setting");
87
87
  Object.defineProperty(exports, "WebhookSetting", { enumerable: true, get: function () { return __importDefault(webhook_setting_1).default; } });
88
+ var intention_1 = require("./intention");
89
+ Object.defineProperty(exports, "Intention", { enumerable: true, get: function () { return __importDefault(intention_1).default; } });
88
90
  var enum_1 = require("./enum");
89
91
  Object.defineProperty(exports, "GIT_TYPE", { enumerable: true, get: function () { return enum_1.GIT_TYPE; } });
90
92
  Object.defineProperty(exports, "INTEGRATION_TYPES", { enumerable: true, get: function () { return enum_1.INTEGRATION_TYPES; } });
@@ -109,6 +111,7 @@ Object.defineProperty(exports, "BUILD_DISABLED_BY", { enumerable: true, get: fun
109
111
  Object.defineProperty(exports, "SERVER_PROTOCOL", { enumerable: true, get: function () { return enum_1.SERVER_PROTOCOL; } });
110
112
  Object.defineProperty(exports, "FrameworkApplicationType", { enumerable: true, get: function () { return enum_1.FrameworkApplicationType; } });
111
113
  Object.defineProperty(exports, "DomainRenewalStatus", { enumerable: true, get: function () { return enum_1.DomainRenewalStatus; } });
114
+ Object.defineProperty(exports, "NomadDeploymentStatus", { enumerable: true, get: function () { return enum_1.NomadDeploymentStatus; } });
112
115
  const mongoose_1 = __importDefault(require("mongoose"));
113
116
  const utils_1 = require("@brimble/utils");
114
117
  const connectToMongo = (mongoUrl, config) => __awaiter(void 0, void 0, void 0, function* () {
@@ -0,0 +1,30 @@
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 { IIntention } from "./types";
27
+ declare const _default: import("mongoose").Model<IIntention, {}, {}, {}, import("mongoose").Document<unknown, {}, IIntention> & IIntention & {
28
+ _id: import("mongoose").Types.ObjectId;
29
+ }, any>;
30
+ export default _default;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const intentionSchema = new mongoose_1.Schema({
5
+ project: {
6
+ ref: "Project",
7
+ type: mongoose_1.Schema.Types.ObjectId,
8
+ required: true,
9
+ },
10
+ sourceName: {
11
+ type: String,
12
+ required: true,
13
+ },
14
+ destinationName: {
15
+ type: String,
16
+ required: true,
17
+ },
18
+ sourceNamespace: {
19
+ type: String,
20
+ default: "default",
21
+ },
22
+ destinationNamespace: {
23
+ type: String,
24
+ default: "default",
25
+ },
26
+ action: {
27
+ type: String,
28
+ enum: ["allow", "deny"],
29
+ default: "allow",
30
+ },
31
+ description: {
32
+ type: String,
33
+ required: false,
34
+ },
35
+ }, { timestamps: true });
36
+ exports.default = (0, mongoose_1.model)("Intention", intentionSchema);
@@ -1,37 +1,38 @@
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 { IIntention } from "./intention";
15
+ export type { IJob } from "./job";
16
+ export type { ILicense } from "./license";
17
+ export type { ILoadBalancerPort } from "./load-balancer-port";
18
+ export type { ILog } from "./logs";
19
+ export type { IMember } from "./member";
20
+ export type { IMemberPermission } from "./member-permission";
21
+ export type { IPermission } from "./permission";
22
+ export type { IPlanConfiguration } from "./plan_configuration";
23
+ export type { IProject } from "./project";
24
+ export type { IProjectConnection } from "./project/connection";
25
+ export type { IPreview } from "./project/preview";
26
+ export type { IRegion } from "./region";
27
+ export type { IRole } from "./role";
28
+ export type { IServer } from "./server";
29
+ export type { ISettings } from "./settings";
30
+ export type { ISubscription } from "./subscription";
31
+ export type { ITeam } from "./team";
32
+ export type { IToken } from "./token";
33
+ export type { IUser } from "./user";
34
+ export type { IVolume } from "./volume";
35
+ export type { IWallet } from "./wallet";
36
+ export type { IWebhookCategory } from "./webhook-category";
37
+ export type { IWebhookEvent } from "./webhook-event";
38
+ export type { IWebhookSetting } from "./webhook-setting";
@@ -0,0 +1,13 @@
1
+ import { Document } from "mongoose";
2
+ import { IProject } from "./";
3
+ export interface IIntention extends Document {
4
+ project: IProject;
5
+ sourceName: string;
6
+ destinationName: string;
7
+ sourceNamespace: string;
8
+ destinationNamespace: string;
9
+ action: "allow" | "deny";
10
+ description?: string;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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
@@ -33,6 +33,7 @@ export { default as DomainRenewal } from "./domain/renewal";
33
33
  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
+ export { default as Intention } from "./intention";
36
37
 
37
38
  export {
38
39
  IUser,
@@ -72,7 +73,8 @@ export {
72
73
  IDomainRenewal,
73
74
  IWebhookCategory,
74
75
  IWebhookEvent,
75
- IWebhookSetting
76
+ IWebhookSetting,
77
+ IIntention
76
78
  } from "./types";
77
79
  export {
78
80
  GIT_TYPE,
@@ -97,7 +99,8 @@ export {
97
99
  BUILD_DISABLED_BY,
98
100
  SERVER_PROTOCOL,
99
101
  FrameworkApplicationType,
100
- DomainRenewalStatus
102
+ DomainRenewalStatus,
103
+ NomadDeploymentStatus
101
104
  } from "./enum";
102
105
 
103
106
  import mongoose from "mongoose";
package/intention.ts ADDED
@@ -0,0 +1,40 @@
1
+ import { model, Schema } from "mongoose";
2
+ import { IIntention } from "./types";
3
+
4
+ const intentionSchema = new Schema(
5
+ {
6
+ project: {
7
+ ref: "Project",
8
+ type: Schema.Types.ObjectId,
9
+ required: true,
10
+ },
11
+ sourceName: {
12
+ type: String,
13
+ required: true,
14
+ },
15
+ destinationName: {
16
+ type: String,
17
+ required: true,
18
+ },
19
+ sourceNamespace: {
20
+ type: String,
21
+ default: "default",
22
+ },
23
+ destinationNamespace: {
24
+ type: String,
25
+ default: "default",
26
+ },
27
+ action: {
28
+ type: String,
29
+ enum: ["allow", "deny"],
30
+ default: "allow",
31
+ },
32
+ description: {
33
+ type: String,
34
+ required: false,
35
+ },
36
+ },
37
+ { timestamps: true },
38
+ );
39
+
40
+ export default model<IIntention>("Intention", intentionSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.6.2",
3
+ "version": "3.7.1",
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,38 @@
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 { IIntention } from "./intention";
15
+ export type { IJob } from "./job";
16
+ export type { ILicense } from "./license";
17
+ export type { ILoadBalancerPort } from "./load-balancer-port";
18
+ export type { ILog } from "./logs";
19
+ export type { IMember } from "./member";
20
+ export type { IMemberPermission } from "./member-permission";
21
+ export type { IPermission } from "./permission";
22
+ export type { IPlanConfiguration } from "./plan_configuration";
23
+ export type { IProject } from "./project";
24
+ export type { IProjectConnection } from "./project/connection";
25
+ export type { IPreview } from "./project/preview";
26
+ export type { IRegion } from "./region";
27
+ export type { IRole } from "./role";
28
+ export type { IServer } from "./server";
29
+ export type { ISettings } from "./settings";
30
+ export type { ISubscription } from "./subscription";
31
+ export type { ITeam } from "./team";
32
+ export type { IToken } from "./token";
33
+ export type { IUser } from "./user";
34
+ export type { IVolume } from "./volume";
35
+ export type { IWallet } from "./wallet";
36
+ export type { IWebhookCategory } from "./webhook-category";
37
+ export type { IWebhookEvent } from "./webhook-event";
38
+ export type { IWebhookSetting } from "./webhook-setting";
@@ -0,0 +1,14 @@
1
+ import { Document } from "mongoose";
2
+ import { IProject } from "./";
3
+
4
+ export interface IIntention extends Document {
5
+ project: IProject;
6
+ sourceName: string;
7
+ destinationName: string;
8
+ sourceNamespace: string;
9
+ destinationNamespace: string;
10
+ action: "allow" | "deny";
11
+ description?: string;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ }