@brimble/models 3.8.173 → 3.8.175

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.
@@ -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),
@@ -313,7 +356,7 @@ const projectSchema = new mongoose_1.Schema({
313
356
  },
314
357
  haCluster: {
315
358
  type: {
316
- replicaSetName: { type: String, required: true },
359
+ clusterName: { type: String, required: true },
317
360
  regions: { type: [mongoose_1.Schema.Types.ObjectId], ref: "Region", default: undefined },
318
361
  members: [
319
362
  {
@@ -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";
@@ -36,10 +36,25 @@ export interface IHaClusterMember {
36
36
  status?: string;
37
37
  }
38
38
  export interface IHaCluster {
39
- replicaSetName: string;
39
+ clusterName: string;
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.173",
3
+ "version": "3.8.175",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",