@brimble/models 3.8.179 → 3.8.182

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/db-image.js CHANGED
@@ -44,6 +44,10 @@ const dbImageSchema = new mongoose_1.Schema({
44
44
  type: Boolean,
45
45
  default: true,
46
46
  },
47
+ pgbouncer_supported: {
48
+ type: Boolean,
49
+ default: false,
50
+ },
47
51
  manage_user: {
48
52
  type: Boolean,
49
53
  default: false,
@@ -205,6 +205,10 @@ const projectSchema = new mongoose_1.Schema({
205
205
  type: String,
206
206
  default: null,
207
207
  },
208
+ lastFailedMessageId: {
209
+ type: String,
210
+ default: null,
211
+ },
208
212
  provisionProgress: {
209
213
  type: {
210
214
  phase: {
@@ -371,6 +375,24 @@ const projectSchema = new mongoose_1.Schema({
371
375
  required: true,
372
376
  },
373
377
  },
378
+ desiredSpecs: {
379
+ type: {
380
+ memory: { type: Number, required: true },
381
+ cpu: { type: Number, required: true },
382
+ storage: { type: Number, required: true },
383
+ region: { type: mongoose_1.Schema.Types.ObjectId, ref: "Region", required: true },
384
+ },
385
+ default: null,
386
+ },
387
+ currentSpecs: {
388
+ type: {
389
+ memory: { type: Number, required: true },
390
+ cpu: { type: Number, required: true },
391
+ storage: { type: Number, required: true },
392
+ region: { type: mongoose_1.Schema.Types.ObjectId, ref: "Region", required: true },
393
+ },
394
+ default: null,
395
+ },
374
396
  last_requested: mongoose_1.Schema.Types.Date,
375
397
  isPaused: Boolean,
376
398
  paused_by: {
@@ -413,6 +435,8 @@ const projectSchema = new mongoose_1.Schema({
413
435
  internalHost: { type: String, required: true },
414
436
  nomadJobId: { type: String, required: false },
415
437
  csiVolumeId: { type: String, required: false },
438
+ serverId: { type: String, required: false },
439
+ appliedStorage: { type: Number, required: false },
416
440
  status: { type: String, required: false },
417
441
  },
418
442
  ],
@@ -12,6 +12,7 @@ export interface IDbImage extends Document {
12
12
  is_default: boolean;
13
13
  backup_supported: boolean;
14
14
  restore_supported: boolean;
15
+ pgbouncer_supported: boolean;
15
16
  manage_user: boolean;
16
17
  image: string;
17
18
  ha_image?: string;
@@ -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 { IDatabaseProvisionProgress, IHaCluster, IHaClusterMember, IPasswordRotation, IPendingMqEvent, IPgBouncerConfig, IProject, ITlsMigration, TlsMigrationPhase, } from "./project";
28
+ export type { IDatabaseProvisionProgress, IHaCluster, IHaClusterMember, IPasswordRotation, IPendingMqEvent, IPgBouncerConfig, IProject, IProjectSpecs, 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";
@@ -33,8 +33,16 @@ export interface IHaClusterMember {
33
33
  internalHost: string;
34
34
  nomadJobId?: string;
35
35
  csiVolumeId?: string;
36
+ serverId?: string;
37
+ appliedStorage?: number;
36
38
  status?: string;
37
39
  }
40
+ export interface IProjectSpecs {
41
+ memory: number;
42
+ cpu: number;
43
+ storage: number;
44
+ region: IRegion;
45
+ }
38
46
  export interface IHaCluster {
39
47
  clusterName: string;
40
48
  regions?: Array<Types.ObjectId | IRegion>;
@@ -101,6 +109,7 @@ export interface IProject extends Document {
101
109
  rolloutInterruptedJobId?: string | null;
102
110
  activeOperationMessageId?: string | null;
103
111
  lastCompletedMessageId?: string | null;
112
+ lastFailedMessageId?: string | null;
104
113
  provisionProgress?: IDatabaseProvisionProgress | null;
105
114
  dbImage: IDbImage;
106
115
  ha: boolean;
@@ -161,12 +170,9 @@ export interface IProject extends Document {
161
170
  replicas: number;
162
171
  vaultPath: string | null;
163
172
  vaultToken: string | null;
164
- specs: {
165
- memory: number;
166
- cpu: number;
167
- storage: number;
168
- region: IRegion;
169
- };
173
+ specs: IProjectSpecs;
174
+ desiredSpecs?: IProjectSpecs | null;
175
+ currentSpecs?: IProjectSpecs | null;
170
176
  last_requested: Date;
171
177
  isPaused: boolean;
172
178
  paused_by: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.179",
3
+ "version": "3.8.182",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",