@brimble/models 3.8.101 → 3.8.103
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 +4 -0
- package/dist/enum/index.js +7 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +6 -3
- package/dist/project-config-file.d.ts +9 -0
- package/dist/project-config-file.js +43 -0
- package/dist/region.js +2 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/project-config-file.d.ts +13 -0
- package/dist/types/project-config-file.js +2 -0
- package/dist/types/region.d.ts +3 -0
- package/package.json +1 -1
package/dist/enum/index.d.ts
CHANGED
|
@@ -32,6 +32,10 @@ export declare enum ENVIRONMENT {
|
|
|
32
32
|
PREVIEW = "PREVIEW",
|
|
33
33
|
PRODUCTION = "PRODUCTION"
|
|
34
34
|
}
|
|
35
|
+
export declare enum CONFIG_FILE_VISIBILITY {
|
|
36
|
+
Public = "public",
|
|
37
|
+
Secret = "secret"
|
|
38
|
+
}
|
|
35
39
|
export declare enum INTEGRATION_TYPES {
|
|
36
40
|
Messaging = "MESSAGING",
|
|
37
41
|
ErrorTracking = "ERROR_TRACKING",
|
package/dist/enum/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.WorkbenchMode = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = void 0;
|
|
3
|
+
exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.NomadDeploymentStatus = exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SCALING_SOURCE = exports.SCALING_METRIC = exports.SCALING_STRATEGY = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = exports.REGION_CONTINENT = exports.PERMISSION_TYPE = exports.ROLES = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = exports.DNS_TYPE = exports.SERVER_STATUS = exports.OAUTH_PERMISSIONS = exports.SUBSCRIPTION_PLAN_TYPE = exports.SUBSCRIPTION_STATUS = exports.DrainEventType = exports.LogSource = exports.DrainStatus = exports.DrainType = exports.AlertEventStatus = exports.AlertChannelMode = exports.AlertRuleState = exports.AlertCondition = exports.AlertMetric = exports.PROJECT_STATUS = exports.CARD_TYPES = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.CONFIG_FILE_VISIBILITY = exports.ENVIRONMENT = exports.REQUEST_TYPE = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.SERVER_PROTOCOL = exports.GIT_TYPE = void 0;
|
|
4
|
+
exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.WorkbenchMode = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = void 0;
|
|
5
5
|
var GIT_TYPE;
|
|
6
6
|
(function (GIT_TYPE) {
|
|
7
7
|
GIT_TYPE["GITHUB"] = "GITHUB";
|
|
@@ -42,6 +42,11 @@ var ENVIRONMENT;
|
|
|
42
42
|
ENVIRONMENT["PREVIEW"] = "PREVIEW";
|
|
43
43
|
ENVIRONMENT["PRODUCTION"] = "PRODUCTION";
|
|
44
44
|
})(ENVIRONMENT || (exports.ENVIRONMENT = ENVIRONMENT = {}));
|
|
45
|
+
var CONFIG_FILE_VISIBILITY;
|
|
46
|
+
(function (CONFIG_FILE_VISIBILITY) {
|
|
47
|
+
CONFIG_FILE_VISIBILITY["Public"] = "public";
|
|
48
|
+
CONFIG_FILE_VISIBILITY["Secret"] = "secret";
|
|
49
|
+
})(CONFIG_FILE_VISIBILITY || (exports.CONFIG_FILE_VISIBILITY = CONFIG_FILE_VISIBILITY = {}));
|
|
45
50
|
var INTEGRATION_TYPES;
|
|
46
51
|
(function (INTEGRATION_TYPES) {
|
|
47
52
|
INTEGRATION_TYPES["Messaging"] = "MESSAGING";
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export { default as CashierSubscription } from "./cashier_subscription";
|
|
|
55
55
|
export { default as CashierSubscriptionItem } from "./cashier_subscription_item";
|
|
56
56
|
export { default as ProjectEnvironment } from "./project-environment";
|
|
57
57
|
export { default as EnvironmentVariable } from "./environment-variable";
|
|
58
|
+
export { default as ProjectConfigFile } from "./project-config-file";
|
|
58
59
|
export { default as ActivityLog } from "./activity-log";
|
|
59
60
|
export { default as AlertRule } from "./alert-rule";
|
|
60
61
|
export { default as AlertRuleStateModel } from "./alert-rule-state";
|
|
@@ -82,8 +83,8 @@ export { default as QuestParticipation } from "./quest-participation";
|
|
|
82
83
|
export { default as QuestRewardIssuance } from "./quest-reward-issuance";
|
|
83
84
|
export { default as Coupon } from "./coupon";
|
|
84
85
|
export { default as CouponRedemption } from "./coupon-redemption";
|
|
85
|
-
export { IUser, IGit, IProject, IProjectAnalytics, IPreview, IProjectConnection, IProjectNetworkSettings, IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IPaymentMethod, IDns, IDnsChangeLog, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, ICollabAnnotation, ICollabComment, ICollabAttachment, ICollabIntegration, ICollabSettings, ICollabShareToken, ICollabPushSubscription, IAppMessage, IInvoice, ITag, IProjectTagAssignment, ICashierSubscription, ICashierSubscriptionItem, IProjectEnvironment, IEnvironmentVariable, IActivityLog, IAlertRule, IAlertRuleState, IAlertEvent, IAlertNotificationResult, IDrain, IProjectDrainSubscription, IOwnershipTransfer, ISandbox, ISandboxSpecs, ISandboxActivity, ISandboxImage, ISandboxSnapshot, ISandboxSnapshotUsageSegment, ISandboxSnapshotUsageSegmentCosts, ISandboxUsageSegment, ISandboxUsageSegmentCurrent, ISandboxUsageSegmentCosts, IVolumeUsageSegment, IVolumeUsageSegmentCosts, IPgBouncerUsageSegment, IPgBouncerUsageSegmentCosts, IObjectStorageUsageSegment, IObjectStorageUsageSegmentCosts, IObjectStorageUsageUnitsSummary, IIdempotencyRecord, IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition, IStreak, IStreakMilestoneRef, IStreakEvent, IStreakDay, IStreakMilestone, IQuestCampaign, IQuestCriterion, IQuestRequirement, IQuestReward, IQuestParticipation, IQuestCriterionProgress, IQuestRewardIssuance, IQuestIssuedReward, ICoupon, ICouponRedemption, } from "./types";
|
|
86
|
-
export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, AlertMetric, AlertCondition, AlertRuleState, AlertChannelMode, AlertEventStatus, DrainType, DrainStatus, LogSource, DrainEventType, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, DNS_CHANGE_TYPE, DNS_CHANGE_SOURCE, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, SCALING_SOURCE, DatabaseEngine, JobStatus, LicenseStatus, REGION_CONTINENT, BUILD_DISABLED_BY, PROJECT_DISABLED_BY, SERVER_PROTOCOL, FrameworkApplicationType, DomainRenewalStatus, DomainTransferProvider, DomainTransferDirection, DomainTransferStatus, NomadDeploymentStatus, COLLAB_ANNOTATION_STATUS, COLLAB_INTEGRATION_TYPE, COLLAB_THEME, COLLAB_TOOLBAR_POSITION, INVOICE_STATUS, INVOICE_PAYMENT_STATUS, INVOICE_TYPE, SANDBOX_TEMPLATE, SANDBOX_STATUS, SANDBOX_DESTROY_REASON, SANDBOX_EGRESS_MODE, SANDBOX_SNAPSHOT_STATUS, StorageBucketStatus, StorageUploadStatus, StorageTokenStatus, StorageCredentialRole, StorageCredentialStatus, StorageMigrationStatus, XFrameOptions, XContentTypeOptions, XRobotsTag, QualifyingActionType, MilestoneType, QUEST_COUNTABLE_MILESTONES, ACTION_TO_MILESTONE, EligibilityType, RewardType, QuestRewardStatus, QuestCriterionType, QuestEntity, QuestRequirementType, QUEST_CLAIM_REQUIREMENTS, QUEST_TARGETLESS_REQUIREMENTS, WorkbenchMode, CouponDiscountType, CouponScope, CouponRedemptionStatus } from "./enum";
|
|
86
|
+
export { IUser, IGit, IProject, IProjectAnalytics, IPreview, IProjectConnection, IProjectNetworkSettings, IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IPaymentMethod, IDns, IDnsChangeLog, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, ICollabAnnotation, ICollabComment, ICollabAttachment, ICollabIntegration, ICollabSettings, ICollabShareToken, ICollabPushSubscription, IAppMessage, IInvoice, ITag, IProjectTagAssignment, ICashierSubscription, ICashierSubscriptionItem, IProjectEnvironment, IEnvironmentVariable, IProjectConfigFile, IActivityLog, IAlertRule, IAlertRuleState, IAlertEvent, IAlertNotificationResult, IDrain, IProjectDrainSubscription, IOwnershipTransfer, ISandbox, ISandboxSpecs, ISandboxActivity, ISandboxImage, ISandboxSnapshot, ISandboxSnapshotUsageSegment, ISandboxSnapshotUsageSegmentCosts, ISandboxUsageSegment, ISandboxUsageSegmentCurrent, ISandboxUsageSegmentCosts, IVolumeUsageSegment, IVolumeUsageSegmentCosts, IPgBouncerUsageSegment, IPgBouncerUsageSegmentCosts, IObjectStorageUsageSegment, IObjectStorageUsageSegmentCosts, IObjectStorageUsageUnitsSummary, IIdempotencyRecord, IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition, IStreak, IStreakMilestoneRef, IStreakEvent, IStreakDay, IStreakMilestone, IQuestCampaign, IQuestCriterion, IQuestRequirement, IQuestReward, IQuestParticipation, IQuestCriterionProgress, IQuestRewardIssuance, IQuestIssuedReward, ICoupon, ICouponRedemption, } from "./types";
|
|
87
|
+
export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, AlertMetric, AlertCondition, AlertRuleState, AlertChannelMode, AlertEventStatus, DrainType, DrainStatus, LogSource, DrainEventType, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, DNS_CHANGE_TYPE, DNS_CHANGE_SOURCE, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, SCALING_SOURCE, DatabaseEngine, JobStatus, LicenseStatus, REGION_CONTINENT, BUILD_DISABLED_BY, PROJECT_DISABLED_BY, SERVER_PROTOCOL, FrameworkApplicationType, DomainRenewalStatus, DomainTransferProvider, DomainTransferDirection, DomainTransferStatus, NomadDeploymentStatus, COLLAB_ANNOTATION_STATUS, COLLAB_INTEGRATION_TYPE, COLLAB_THEME, COLLAB_TOOLBAR_POSITION, INVOICE_STATUS, INVOICE_PAYMENT_STATUS, INVOICE_TYPE, SANDBOX_TEMPLATE, SANDBOX_STATUS, SANDBOX_DESTROY_REASON, SANDBOX_EGRESS_MODE, SANDBOX_SNAPSHOT_STATUS, StorageBucketStatus, StorageUploadStatus, StorageTokenStatus, StorageCredentialRole, StorageCredentialStatus, StorageMigrationStatus, XFrameOptions, XContentTypeOptions, XRobotsTag, QualifyingActionType, MilestoneType, QUEST_COUNTABLE_MILESTONES, ACTION_TO_MILESTONE, EligibilityType, RewardType, QuestRewardStatus, QuestCriterionType, QuestEntity, QuestRequirementType, QUEST_CLAIM_REQUIREMENTS, QUEST_TARGETLESS_REQUIREMENTS, WorkbenchMode, CouponDiscountType, CouponScope, CouponRedemptionStatus, CONFIG_FILE_VISIBILITY, } from "./enum";
|
|
87
88
|
import mongoose from "mongoose";
|
|
88
89
|
export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
|
|
89
90
|
export declare const db: mongoose.Connection;
|
package/dist/index.js
CHANGED
|
@@ -13,9 +13,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.CollabPushSubscription = exports.CollabShareToken = exports.CollabSettings = exports.CollabIntegration = exports.CollabComment = exports.CollabAnnotation = exports.Provider = exports.Intention = exports.WebhookSetting = exports.WebhookEvent = exports.WebhookCategory = exports.DomainTransfer = 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.PaymentMethod = exports.Permission = exports.Member = exports.Team = exports.Token = exports.Env = exports.DnsChangeLog = exports.Dns = exports.Domain = exports.Integration = exports.Following = exports.Ratelimit = exports.ProjectNetworkSettings = exports.ProjectConnection = exports.Preview = exports.ProjectAnalytics = exports.DeletedProject = exports.Project = exports.User = void 0;
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.WorkbenchMode = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = void 0;
|
|
16
|
+
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.CouponRedemption = exports.Coupon = exports.QuestRewardIssuance = exports.QuestParticipation = exports.QuestCampaign = exports.StreakMilestone = exports.StreakDay = exports.StreakEvent = exports.Streak = exports.StorageMigration = exports.StorageCredential = exports.StorageToken = exports.StorageUpload = exports.StorageObject = exports.StorageBucket = exports.IdempotencyRecord = exports.ObjectStorageUsageSegment = exports.PgBouncerUsageSegment = exports.VolumeUsageSegment = exports.SandboxUsageSegment = exports.SandboxSnapshotUsageSegment = exports.SandboxSnapshot = exports.SandboxImage = exports.SandboxActivity = exports.Sandbox = exports.OwnershipTransfer = exports.ProjectDrainSubscription = exports.Drain = exports.AlertEvent = exports.AlertRuleStateModel = exports.AlertRule = exports.ActivityLog = exports.ProjectConfigFile = exports.EnvironmentVariable = exports.ProjectEnvironment = exports.CashierSubscriptionItem = exports.CashierSubscription = exports.ProjectTagAssignment = exports.Tag = exports.Invoice = exports.AppMessage = void 0;
|
|
17
|
+
exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.NomadDeploymentStatus = exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.SCALING_SOURCE = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.DrainEventType = exports.LogSource = exports.DrainStatus = exports.DrainType = exports.AlertEventStatus = exports.AlertChannelMode = exports.AlertRuleState = exports.AlertCondition = exports.AlertMetric = void 0;
|
|
18
|
+
exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.CONFIG_FILE_VISIBILITY = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.WorkbenchMode = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = void 0;
|
|
19
19
|
var user_1 = require("./user");
|
|
20
20
|
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(user_1).default; } });
|
|
21
21
|
var project_1 = require("./project");
|
|
@@ -131,6 +131,8 @@ var project_environment_1 = require("./project-environment");
|
|
|
131
131
|
Object.defineProperty(exports, "ProjectEnvironment", { enumerable: true, get: function () { return __importDefault(project_environment_1).default; } });
|
|
132
132
|
var environment_variable_1 = require("./environment-variable");
|
|
133
133
|
Object.defineProperty(exports, "EnvironmentVariable", { enumerable: true, get: function () { return __importDefault(environment_variable_1).default; } });
|
|
134
|
+
var project_config_file_1 = require("./project-config-file");
|
|
135
|
+
Object.defineProperty(exports, "ProjectConfigFile", { enumerable: true, get: function () { return __importDefault(project_config_file_1).default; } });
|
|
134
136
|
var activity_log_1 = require("./activity-log");
|
|
135
137
|
Object.defineProperty(exports, "ActivityLog", { enumerable: true, get: function () { return __importDefault(activity_log_1).default; } });
|
|
136
138
|
var alert_rule_1 = require("./alert-rule");
|
|
@@ -268,6 +270,7 @@ Object.defineProperty(exports, "WorkbenchMode", { enumerable: true, get: functio
|
|
|
268
270
|
Object.defineProperty(exports, "CouponDiscountType", { enumerable: true, get: function () { return enum_1.CouponDiscountType; } });
|
|
269
271
|
Object.defineProperty(exports, "CouponScope", { enumerable: true, get: function () { return enum_1.CouponScope; } });
|
|
270
272
|
Object.defineProperty(exports, "CouponRedemptionStatus", { enumerable: true, get: function () { return enum_1.CouponRedemptionStatus; } });
|
|
273
|
+
Object.defineProperty(exports, "CONFIG_FILE_VISIBILITY", { enumerable: true, get: function () { return enum_1.CONFIG_FILE_VISIBILITY; } });
|
|
271
274
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
272
275
|
const utils_1 = require("@brimble/utils");
|
|
273
276
|
const connectToMongo = (mongoUrl, config) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IProjectConfigFile } from "./types";
|
|
2
|
+
declare const _default: import("mongoose").Model<IProjectConfigFile, {}, {}, {}, import("mongoose").Document<unknown, {}, IProjectConfigFile, {}, import("mongoose").DefaultSchemaOptions> & IProjectConfigFile & Required<{
|
|
3
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IProjectConfigFile>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const enum_1 = require("./enum");
|
|
5
|
+
const projectConfigFileSchema = new mongoose_1.Schema({
|
|
6
|
+
project: {
|
|
7
|
+
ref: "Project",
|
|
8
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
9
|
+
required: true,
|
|
10
|
+
index: true,
|
|
11
|
+
},
|
|
12
|
+
name: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true,
|
|
15
|
+
trim: true,
|
|
16
|
+
maxlength: 64,
|
|
17
|
+
},
|
|
18
|
+
mount_path: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: true,
|
|
21
|
+
trim: true,
|
|
22
|
+
maxlength: 512,
|
|
23
|
+
},
|
|
24
|
+
visibility: {
|
|
25
|
+
type: String,
|
|
26
|
+
enum: Object.values(enum_1.CONFIG_FILE_VISIBILITY),
|
|
27
|
+
default: enum_1.CONFIG_FILE_VISIBILITY.Secret,
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
size: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 0,
|
|
33
|
+
required: true,
|
|
34
|
+
min: 0,
|
|
35
|
+
},
|
|
36
|
+
user: {
|
|
37
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
38
|
+
ref: "User",
|
|
39
|
+
required: true,
|
|
40
|
+
},
|
|
41
|
+
}, { timestamps: true });
|
|
42
|
+
projectConfigFileSchema.index({ project: 1, mount_path: 1 }, { unique: true });
|
|
43
|
+
exports.default = (0, mongoose_1.model)("ProjectConfigFile", projectConfigFileSchema);
|
package/dist/region.js
CHANGED
|
@@ -14,5 +14,7 @@ const regionSchema = new mongoose_1.Schema({
|
|
|
14
14
|
provider_identifier: { type: String, required: true },
|
|
15
15
|
storage_pricing_factor: { type: Number, required: true, default: 0.25 },
|
|
16
16
|
floating_ip: { type: String },
|
|
17
|
+
type: { type: String, enum: ["web", "database", "sandbox"], required: false },
|
|
18
|
+
ceph_cluster_id: { type: String, required: false },
|
|
17
19
|
});
|
|
18
20
|
exports.default = (0, mongoose_1.model)("Region", regionSchema, "regions");
|
package/dist/types/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export type { IProjectConnection } from "./project/connection";
|
|
|
30
30
|
export type { IProjectNetworkSettings } from "./project-network-settings";
|
|
31
31
|
export type { IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, } from "./ratelimit";
|
|
32
32
|
export type { IPreview } from "./project/preview";
|
|
33
|
-
export type { IRegion } from "./region";
|
|
33
|
+
export type { IRegion, RegionType } from "./region";
|
|
34
34
|
export type { IRole } from "./role";
|
|
35
35
|
export type { IServer } from "./server";
|
|
36
36
|
export type { ISettings } from "./settings";
|
|
@@ -56,6 +56,7 @@ export type { ITag } from "./tag";
|
|
|
56
56
|
export type { ICashierSubscription, ICashierSubscriptionItem } from "./cashier_subscription";
|
|
57
57
|
export type { IProjectEnvironment } from "./project-environment";
|
|
58
58
|
export type { IEnvironmentVariable } from "./environment-variable";
|
|
59
|
+
export type { IProjectConfigFile } from "./project-config-file";
|
|
59
60
|
export type { IActivityLog } from "./activity-log";
|
|
60
61
|
export type { IAlertRule } from "./alert-rule";
|
|
61
62
|
export type { IAlertRuleState } from "./alert-rule-state";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
|
+
import { CONFIG_FILE_VISIBILITY } from "../enum";
|
|
3
|
+
import { IProject, IUser } from "./";
|
|
4
|
+
export interface IProjectConfigFile extends Document {
|
|
5
|
+
project: IProject | string;
|
|
6
|
+
name: string;
|
|
7
|
+
mount_path: string;
|
|
8
|
+
visibility: CONFIG_FILE_VISIBILITY | "public" | "secret";
|
|
9
|
+
size: number;
|
|
10
|
+
user: IUser | string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|
package/dist/types/region.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Types, Document } from "mongoose";
|
|
2
2
|
import { REGION_CONTINENT } from "../enum";
|
|
3
|
+
export type RegionType = "web" | "database" | "sandbox";
|
|
3
4
|
export interface IRegion extends Document {
|
|
4
5
|
_id: Types.ObjectId;
|
|
5
6
|
name: string;
|
|
@@ -13,4 +14,6 @@ export interface IRegion extends Document {
|
|
|
13
14
|
provider_identifier: string;
|
|
14
15
|
storage_pricing_factor: number;
|
|
15
16
|
floating_ip?: string;
|
|
17
|
+
type?: RegionType;
|
|
18
|
+
ceph_cluster_id?: string;
|
|
16
19
|
}
|