@brimble/models 3.8.174 → 3.8.176

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.
@@ -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",
@@ -162,6 +162,49 @@ const projectSchema = new mongoose_1.Schema({
162
162
  type: String,
163
163
  default: null,
164
164
  },
165
+ tlsProvisioning: {
166
+ type: Boolean,
167
+ default: false,
168
+ },
169
+ tlsClaimedAt: {
170
+ type: Date,
171
+ default: null,
172
+ },
173
+ tlsMigration: {
174
+ type: {
175
+ phase: { type: String, enum: ["allow", "prefer"], required: false },
176
+ interruptedJobId: { type: String, required: false },
177
+ },
178
+ default: null,
179
+ },
180
+ pendingMqEvent: {
181
+ type: {
182
+ event: { type: String, required: true },
183
+ data: { type: mongoose_1.Schema.Types.Mixed, required: true },
184
+ messageId: { type: String, required: false },
185
+ createdAt: { type: Date, required: true },
186
+ },
187
+ default: null,
188
+ },
189
+ passwordRotation: {
190
+ type: {
191
+ applied: { type: Boolean, default: false },
192
+ vaultSynced: { type: Boolean, default: false },
193
+ },
194
+ default: null,
195
+ },
196
+ rolloutInterruptedJobId: {
197
+ type: String,
198
+ default: null,
199
+ },
200
+ activeOperationMessageId: {
201
+ type: String,
202
+ default: null,
203
+ },
204
+ lastCompletedMessageId: {
205
+ type: String,
206
+ default: null,
207
+ },
165
208
  status: {
166
209
  type: String,
167
210
  enum: Object.values(enum_1.PROJECT_STATUS),
@@ -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, IPgBouncerConfig, IProject } from "./project";
28
+ export type { 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";
@@ -6,6 +6,7 @@ export interface ILoadBalancerPort extends Document {
6
6
  port: number;
7
7
  server_id: IServer;
8
8
  project_id: IProject;
9
+ member_index: number;
9
10
  region_id: IRegion;
10
11
  createdAt: Date;
11
12
  updatedAt: Date;
@@ -40,6 +40,21 @@ export interface IHaCluster {
40
40
  regions?: Array<Types.ObjectId | IRegion>;
41
41
  members: IHaClusterMember[];
42
42
  }
43
+ export type TlsMigrationPhase = "allow" | "prefer";
44
+ export interface ITlsMigration {
45
+ phase?: TlsMigrationPhase | null;
46
+ interruptedJobId?: string | null;
47
+ }
48
+ export interface IPendingMqEvent {
49
+ event: string;
50
+ data: Record<string, unknown>;
51
+ messageId?: string;
52
+ createdAt: Date;
53
+ }
54
+ export interface IPasswordRotation {
55
+ applied?: boolean;
56
+ vaultSynced?: boolean;
57
+ }
43
58
  export interface IProject extends Document {
44
59
  name: string;
45
60
  healthCheckPath?: string;
@@ -70,6 +85,14 @@ export interface IProject extends Document {
70
85
  tlsHost?: string | null;
71
86
  tlsPort?: number | null;
72
87
  tlsSslModeHint?: string | null;
88
+ tlsProvisioning?: boolean;
89
+ tlsClaimedAt?: Date | null;
90
+ tlsMigration?: ITlsMigration | null;
91
+ pendingMqEvent?: IPendingMqEvent | null;
92
+ passwordRotation?: IPasswordRotation | null;
93
+ rolloutInterruptedJobId?: string | null;
94
+ activeOperationMessageId?: string | null;
95
+ lastCompletedMessageId?: string | null;
73
96
  dbImage: IDbImage;
74
97
  ha: boolean;
75
98
  haCluster?: IHaCluster | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.174",
3
+ "version": "3.8.176",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",