@brimble/models 3.8.176 → 3.8.178
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 +30 -0
- package/dist/enum/index.js +36 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -3
- package/dist/project/index.js +32 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/project/index.d.ts +10 -1
- package/package.json +1 -1
package/dist/enum/index.d.ts
CHANGED
|
@@ -80,6 +80,36 @@ export declare enum PROJECT_STATUS {
|
|
|
80
80
|
NOMAD_READY = "NOMAD_READY",
|
|
81
81
|
NOMAD_FAILED = "NOMAD_FAILED"
|
|
82
82
|
}
|
|
83
|
+
export declare enum DatabaseProvisionPhase {
|
|
84
|
+
Preparing = "preparing",
|
|
85
|
+
Provisioning = "provisioning",
|
|
86
|
+
Ready = "ready",
|
|
87
|
+
Failed = "failed"
|
|
88
|
+
}
|
|
89
|
+
export declare enum DatabaseProvisionOperation {
|
|
90
|
+
Create = "create",
|
|
91
|
+
Retry = "retry",
|
|
92
|
+
Refresh = "refresh"
|
|
93
|
+
}
|
|
94
|
+
export declare enum DatabaseProvisionStep {
|
|
95
|
+
Queued = "queued",
|
|
96
|
+
SavingCredentials = "saving-credentials",
|
|
97
|
+
ChoosingHost = "choosing-host",
|
|
98
|
+
ReservingPort = "reserving-port",
|
|
99
|
+
CreatingStorage = "creating-storage",
|
|
100
|
+
CheckingCapacity = "checking-capacity",
|
|
101
|
+
HandingOff = "handing-off",
|
|
102
|
+
ApplyingConfig = "applying-config",
|
|
103
|
+
PreparingRuntime = "preparing-runtime",
|
|
104
|
+
RegisteringJob = "registering-job",
|
|
105
|
+
WaitingHealthy = "waiting-healthy",
|
|
106
|
+
PreparingCluster = "preparing-cluster",
|
|
107
|
+
RegisteringMember = "registering-member",
|
|
108
|
+
WaitingMember = "waiting-member",
|
|
109
|
+
InitializingReplicaSet = "initializing-replica-set",
|
|
110
|
+
Ready = "ready",
|
|
111
|
+
Failed = "failed"
|
|
112
|
+
}
|
|
83
113
|
export declare enum AlertMetric {
|
|
84
114
|
CpuUsagePercent = "cpu_usage_percent",
|
|
85
115
|
MemoryUsagePercent = "memory_usage_percent",
|
package/dist/enum/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.AGENT_DESIGN_SKILL_VERDICT = void 0;
|
|
3
|
+
exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SCALING_SOURCE = exports.SCALING_METRIC = exports.SCALING_STRATEGY = exports.LicenseStatus = exports.JobStatus = exports.EmailDeadLetterStatus = exports.DatabaseInsightsScope = exports.HaMemberRole = exports.DatabasePasswordMode = exports.DatabasePasswordChangeMode = exports.DatabaseEngine = exports.ServiceType = exports.VOLUME_BACKEND = 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.DatabaseProvisionStep = exports.DatabaseProvisionOperation = exports.DatabaseProvisionPhase = exports.PROJECT_STATUS = exports.CARD_TYPES = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.CONFIG_FILE_VISIBILITY = exports.ENVIRONMENT = exports.REQUEST_TYPE = exports.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.SERVER_PROTOCOL = exports.GIT_TYPE = void 0;
|
|
4
|
+
exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.DatabaseUserStatus = exports.DatabaseUserPermission = 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.PlatformApiKeyStatus = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.RESTORE_STATUS = exports.WorkerRunTrigger = exports.WorkerRunStatus = exports.BACKUP_STATUS = 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 = void 0;
|
|
5
|
+
exports.AGENT_DESIGN_SKILL_VERDICT = exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = void 0;
|
|
6
6
|
var GIT_TYPE;
|
|
7
7
|
(function (GIT_TYPE) {
|
|
8
8
|
GIT_TYPE["GITHUB"] = "GITHUB";
|
|
@@ -97,6 +97,39 @@ var PROJECT_STATUS;
|
|
|
97
97
|
PROJECT_STATUS["NOMAD_READY"] = "NOMAD_READY";
|
|
98
98
|
PROJECT_STATUS["NOMAD_FAILED"] = "NOMAD_FAILED";
|
|
99
99
|
})(PROJECT_STATUS || (exports.PROJECT_STATUS = PROJECT_STATUS = {}));
|
|
100
|
+
var DatabaseProvisionPhase;
|
|
101
|
+
(function (DatabaseProvisionPhase) {
|
|
102
|
+
DatabaseProvisionPhase["Preparing"] = "preparing";
|
|
103
|
+
DatabaseProvisionPhase["Provisioning"] = "provisioning";
|
|
104
|
+
DatabaseProvisionPhase["Ready"] = "ready";
|
|
105
|
+
DatabaseProvisionPhase["Failed"] = "failed";
|
|
106
|
+
})(DatabaseProvisionPhase || (exports.DatabaseProvisionPhase = DatabaseProvisionPhase = {}));
|
|
107
|
+
var DatabaseProvisionOperation;
|
|
108
|
+
(function (DatabaseProvisionOperation) {
|
|
109
|
+
DatabaseProvisionOperation["Create"] = "create";
|
|
110
|
+
DatabaseProvisionOperation["Retry"] = "retry";
|
|
111
|
+
DatabaseProvisionOperation["Refresh"] = "refresh";
|
|
112
|
+
})(DatabaseProvisionOperation || (exports.DatabaseProvisionOperation = DatabaseProvisionOperation = {}));
|
|
113
|
+
var DatabaseProvisionStep;
|
|
114
|
+
(function (DatabaseProvisionStep) {
|
|
115
|
+
DatabaseProvisionStep["Queued"] = "queued";
|
|
116
|
+
DatabaseProvisionStep["SavingCredentials"] = "saving-credentials";
|
|
117
|
+
DatabaseProvisionStep["ChoosingHost"] = "choosing-host";
|
|
118
|
+
DatabaseProvisionStep["ReservingPort"] = "reserving-port";
|
|
119
|
+
DatabaseProvisionStep["CreatingStorage"] = "creating-storage";
|
|
120
|
+
DatabaseProvisionStep["CheckingCapacity"] = "checking-capacity";
|
|
121
|
+
DatabaseProvisionStep["HandingOff"] = "handing-off";
|
|
122
|
+
DatabaseProvisionStep["ApplyingConfig"] = "applying-config";
|
|
123
|
+
DatabaseProvisionStep["PreparingRuntime"] = "preparing-runtime";
|
|
124
|
+
DatabaseProvisionStep["RegisteringJob"] = "registering-job";
|
|
125
|
+
DatabaseProvisionStep["WaitingHealthy"] = "waiting-healthy";
|
|
126
|
+
DatabaseProvisionStep["PreparingCluster"] = "preparing-cluster";
|
|
127
|
+
DatabaseProvisionStep["RegisteringMember"] = "registering-member";
|
|
128
|
+
DatabaseProvisionStep["WaitingMember"] = "waiting-member";
|
|
129
|
+
DatabaseProvisionStep["InitializingReplicaSet"] = "initializing-replica-set";
|
|
130
|
+
DatabaseProvisionStep["Ready"] = "ready";
|
|
131
|
+
DatabaseProvisionStep["Failed"] = "failed";
|
|
132
|
+
})(DatabaseProvisionStep || (exports.DatabaseProvisionStep = DatabaseProvisionStep = {}));
|
|
100
133
|
var AlertMetric;
|
|
101
134
|
(function (AlertMetric) {
|
|
102
135
|
AlertMetric["CpuUsagePercent"] = "cpu_usage_percent";
|
package/dist/index.d.ts
CHANGED
|
@@ -106,8 +106,8 @@ export { default as AgentWebsiteSnapshot } from "./agent-website-snapshot";
|
|
|
106
106
|
export { default as AgentWebsiteFileOverlay } from "./agent-website-file-overlay";
|
|
107
107
|
export { default as AgentDesignSkill } from "./agent-design-skill";
|
|
108
108
|
export { default as AgentDesignSkillRevision } from "./agent-design-skill-revision";
|
|
109
|
-
export { IUser, IGit, IOrigin, IProject, IProjectAnalytics, IPreview, IProjectConnection, IProjectNetworkSettings, IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IPlatformApiKey, 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, ISandboxSize, ISandboxSnapshot, IBackupHistory, IDatabaseUser, IRestoreHistory, IWorkerRun, 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, ITicket, ICareerRole, IBlogPost, IChangelogEntry, IChangelogCampaign, ChangelogEmailPayloadEntry, IAgentChat, IAgentChatMessage, IAgentChatFile, IAgentChatModel, IAgentWebsite, IAgentWebsiteSnapshot, IAgentWebsiteFileOverlay, IAgentDesignSkill, IAgentDesignSkillRevision, IAgentDesignSkillFile, IAgentDesignSkillInspection, IAgentDesignSkillLicense, } from "./types";
|
|
110
|
-
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, DatabasePasswordChangeMode, DatabasePasswordMode, HaMemberRole, DatabaseInsightsScope, EmailDeadLetterStatus, JobStatus, LicenseStatus, REGION_CONTINENT, VOLUME_BACKEND, BUILD_DISABLED_BY, PROJECT_DISABLED_BY, SPENDING_LIMIT_ACTION, 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, BACKUP_STATUS, DatabaseUserPermission, DatabaseUserStatus, WorkerRunStatus, WorkerRunTrigger, RESTORE_STATUS, StorageBucketStatus, StorageUploadStatus, StorageTokenStatus, PlatformApiKeyStatus, 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, AGENT_CHAT_STATUS, AGENT_CHAT_MESSAGE_ROLE, AGENT_WEBSITE_STATUS, AGENT_WEBSITE_SNAPSHOT_STATUS, AGENT_DESIGN_SKILL_STATUS, AGENT_DESIGN_SKILL_TRUST_LEVEL, AGENT_DESIGN_SKILL_VERDICT, } from "./enum";
|
|
109
|
+
export { IUser, IGit, IOrigin, IProject, IDatabaseProvisionProgress, IProjectAnalytics, IPreview, IProjectConnection, IProjectNetworkSettings, IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IPlatformApiKey, 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, ISandboxSize, ISandboxSnapshot, IBackupHistory, IDatabaseUser, IRestoreHistory, IWorkerRun, 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, ITicket, ICareerRole, IBlogPost, IChangelogEntry, IChangelogCampaign, ChangelogEmailPayloadEntry, IAgentChat, IAgentChatMessage, IAgentChatFile, IAgentChatModel, IAgentWebsite, IAgentWebsiteSnapshot, IAgentWebsiteFileOverlay, IAgentDesignSkill, IAgentDesignSkillRevision, IAgentDesignSkillFile, IAgentDesignSkillInspection, IAgentDesignSkillLicense, } from "./types";
|
|
110
|
+
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, DatabasePasswordChangeMode, DatabasePasswordMode, HaMemberRole, DatabaseInsightsScope, DatabaseProvisionPhase, DatabaseProvisionOperation, DatabaseProvisionStep, EmailDeadLetterStatus, JobStatus, LicenseStatus, REGION_CONTINENT, VOLUME_BACKEND, BUILD_DISABLED_BY, PROJECT_DISABLED_BY, SPENDING_LIMIT_ACTION, 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, BACKUP_STATUS, DatabaseUserPermission, DatabaseUserStatus, WorkerRunStatus, WorkerRunTrigger, RESTORE_STATUS, StorageBucketStatus, StorageUploadStatus, StorageTokenStatus, PlatformApiKeyStatus, 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, AGENT_CHAT_STATUS, AGENT_CHAT_MESSAGE_ROLE, AGENT_WEBSITE_STATUS, AGENT_WEBSITE_SNAPSHOT_STATUS, AGENT_DESIGN_SKILL_STATUS, AGENT_DESIGN_SKILL_TRUST_LEVEL, AGENT_DESIGN_SKILL_VERDICT, } from "./enum";
|
|
111
111
|
import mongoose from "mongoose";
|
|
112
112
|
export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
|
|
113
113
|
export declare const db: mongoose.Connection;
|
package/dist/index.js
CHANGED
|
@@ -14,9 +14,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
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.EmailDeadLetter = 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.PlatformApiKey = 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
16
|
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.WorkerRun = exports.RestoreHistory = exports.DatabaseUser = exports.BackupHistory = exports.SandboxSnapshot = exports.SandboxWarmPoolMember = exports.SandboxWarmPool = exports.SandboxSize = 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 = exports.CollabPushSubscription = exports.CollabShareToken = void 0;
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.AGENT_DESIGN_SKILL_VERDICT = exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CONFIG_FILE_VISIBILITY = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.WorkbenchMode = exports.QUEST_TARGETLESS_REQUIREMENTS = void 0;
|
|
17
|
+
exports.EmailDeadLetterStatus = exports.DatabaseProvisionStep = exports.DatabaseProvisionOperation = exports.DatabaseProvisionPhase = exports.DatabaseInsightsScope = exports.HaMemberRole = exports.DatabasePasswordMode = exports.DatabasePasswordChangeMode = 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 = 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.AgentDesignSkillRevision = exports.AgentDesignSkill = exports.AgentWebsiteFileOverlay = exports.AgentWebsiteSnapshot = exports.AgentWebsite = exports.AgentChatModel = exports.AgentChatFile = exports.AgentChatMessage = exports.AgentChat = exports.ChangelogCampaign = exports.ChangelogEntry = exports.BlogPost = exports.CareerRole = exports.Ticket = void 0;
|
|
18
|
+
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.PlatformApiKeyStatus = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.RESTORE_STATUS = exports.WorkerRunTrigger = exports.WorkerRunStatus = exports.DatabaseUserStatus = exports.DatabaseUserPermission = exports.BACKUP_STATUS = 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.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = void 0;
|
|
19
|
+
exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.AGENT_DESIGN_SKILL_VERDICT = exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CONFIG_FILE_VISIBILITY = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.WorkbenchMode = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.QuestRequirementType = exports.QuestEntity = void 0;
|
|
20
20
|
var user_1 = require("./user");
|
|
21
21
|
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(user_1).default; } });
|
|
22
22
|
var project_1 = require("./project");
|
|
@@ -272,6 +272,9 @@ Object.defineProperty(exports, "DatabasePasswordChangeMode", { enumerable: true,
|
|
|
272
272
|
Object.defineProperty(exports, "DatabasePasswordMode", { enumerable: true, get: function () { return enum_1.DatabasePasswordMode; } });
|
|
273
273
|
Object.defineProperty(exports, "HaMemberRole", { enumerable: true, get: function () { return enum_1.HaMemberRole; } });
|
|
274
274
|
Object.defineProperty(exports, "DatabaseInsightsScope", { enumerable: true, get: function () { return enum_1.DatabaseInsightsScope; } });
|
|
275
|
+
Object.defineProperty(exports, "DatabaseProvisionPhase", { enumerable: true, get: function () { return enum_1.DatabaseProvisionPhase; } });
|
|
276
|
+
Object.defineProperty(exports, "DatabaseProvisionOperation", { enumerable: true, get: function () { return enum_1.DatabaseProvisionOperation; } });
|
|
277
|
+
Object.defineProperty(exports, "DatabaseProvisionStep", { enumerable: true, get: function () { return enum_1.DatabaseProvisionStep; } });
|
|
275
278
|
Object.defineProperty(exports, "EmailDeadLetterStatus", { enumerable: true, get: function () { return enum_1.EmailDeadLetterStatus; } });
|
|
276
279
|
Object.defineProperty(exports, "JobStatus", { enumerable: true, get: function () { return enum_1.JobStatus; } });
|
|
277
280
|
Object.defineProperty(exports, "LicenseStatus", { enumerable: true, get: function () { return enum_1.LicenseStatus; } });
|
package/dist/project/index.js
CHANGED
|
@@ -205,6 +205,38 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
205
205
|
type: String,
|
|
206
206
|
default: null,
|
|
207
207
|
},
|
|
208
|
+
provisionProgress: {
|
|
209
|
+
type: {
|
|
210
|
+
phase: {
|
|
211
|
+
type: String,
|
|
212
|
+
enum: Object.values(enum_1.DatabaseProvisionPhase),
|
|
213
|
+
required: true,
|
|
214
|
+
},
|
|
215
|
+
message: {
|
|
216
|
+
type: String,
|
|
217
|
+
required: true,
|
|
218
|
+
},
|
|
219
|
+
step: {
|
|
220
|
+
type: String,
|
|
221
|
+
enum: Object.values(enum_1.DatabaseProvisionStep),
|
|
222
|
+
required: true,
|
|
223
|
+
},
|
|
224
|
+
operation: {
|
|
225
|
+
type: String,
|
|
226
|
+
enum: Object.values(enum_1.DatabaseProvisionOperation),
|
|
227
|
+
required: true,
|
|
228
|
+
},
|
|
229
|
+
memberIndex: {
|
|
230
|
+
type: Number,
|
|
231
|
+
required: false,
|
|
232
|
+
},
|
|
233
|
+
updatedAt: {
|
|
234
|
+
type: Date,
|
|
235
|
+
required: true,
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
default: null,
|
|
239
|
+
},
|
|
208
240
|
status: {
|
|
209
241
|
type: String,
|
|
210
242
|
enum: Object.values(enum_1.PROJECT_STATUS),
|
package/dist/types/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export type { IPermission } from "./permission";
|
|
|
25
25
|
export type { IPaymentMethod } from "./payment-method";
|
|
26
26
|
export type { IPlanConfiguration } from "./plan_configuration";
|
|
27
27
|
export type { IProvider } from "./provider";
|
|
28
|
-
export type { IHaCluster, IHaClusterMember, IPasswordRotation, IPendingMqEvent, IPgBouncerConfig, IProject, ITlsMigration, TlsMigrationPhase } from "./project";
|
|
28
|
+
export type { IDatabaseProvisionProgress, IHaCluster, IHaClusterMember, IPasswordRotation, IPendingMqEvent, IPgBouncerConfig, IProject, ITlsMigration, TlsMigrationPhase, } from "./project";
|
|
29
29
|
export type { IProjectAnalytics } from "./project_analytics";
|
|
30
30
|
export type { IProjectConnection } from "./project/connection";
|
|
31
31
|
export type { IProjectNetworkSettings } from "./project-network-settings";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Document, Types } from "mongoose";
|
|
2
|
-
import { GIT_TYPE, HaMemberRole, PROJECT_DISABLED_BY, PROJECT_STATUS, ServiceType } from "../../enum";
|
|
2
|
+
import { DatabaseProvisionOperation, DatabaseProvisionPhase, DatabaseProvisionStep, GIT_TYPE, HaMemberRole, PROJECT_DISABLED_BY, PROJECT_STATUS, ServiceType } from "../../enum";
|
|
3
3
|
import { IDomain } from "../domain";
|
|
4
4
|
import { IEnv } from "../env";
|
|
5
5
|
import { ILog } from "../logs";
|
|
@@ -55,6 +55,14 @@ export interface IPasswordRotation {
|
|
|
55
55
|
applied?: boolean;
|
|
56
56
|
vaultSynced?: boolean;
|
|
57
57
|
}
|
|
58
|
+
export interface IDatabaseProvisionProgress {
|
|
59
|
+
phase: DatabaseProvisionPhase;
|
|
60
|
+
message: string;
|
|
61
|
+
step: DatabaseProvisionStep;
|
|
62
|
+
operation: DatabaseProvisionOperation;
|
|
63
|
+
memberIndex?: number;
|
|
64
|
+
updatedAt: Date;
|
|
65
|
+
}
|
|
58
66
|
export interface IProject extends Document {
|
|
59
67
|
name: string;
|
|
60
68
|
healthCheckPath?: string;
|
|
@@ -93,6 +101,7 @@ export interface IProject extends Document {
|
|
|
93
101
|
rolloutInterruptedJobId?: string | null;
|
|
94
102
|
activeOperationMessageId?: string | null;
|
|
95
103
|
lastCompletedMessageId?: string | null;
|
|
104
|
+
provisionProgress?: IDatabaseProvisionProgress | null;
|
|
96
105
|
dbImage: IDbImage;
|
|
97
106
|
ha: boolean;
|
|
98
107
|
haCluster?: IHaCluster | null;
|