@brimble/models 3.8.175 → 3.8.177
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
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";
|
|
@@ -18,6 +18,12 @@ const loadBalancerPortSchema = new mongoose_1.Schema({
|
|
|
18
18
|
ref: "Project",
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
|
+
member_index: {
|
|
22
|
+
type: Number,
|
|
23
|
+
required: true,
|
|
24
|
+
default: 0,
|
|
25
|
+
min: 0,
|
|
26
|
+
},
|
|
21
27
|
region_id: {
|
|
22
28
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
23
29
|
ref: "Region",
|
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),
|
|
@@ -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;
|