@brimble/models 3.8.227 → 3.8.229

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.
@@ -70,6 +70,14 @@ const domainSchema = new mongoose_1.Schema({
70
70
  type: Array,
71
71
  required: false,
72
72
  },
73
+ nameservers_next_check_at: {
74
+ type: Date,
75
+ default: null,
76
+ },
77
+ registration_next_check_at: {
78
+ type: Date,
79
+ default: null,
80
+ },
73
81
  purchased: {
74
82
  type: Boolean,
75
83
  default: false,
@@ -126,4 +134,6 @@ const domainSchema = new mongoose_1.Schema({
126
134
  status: Number,
127
135
  },
128
136
  }, { timestamps: true });
137
+ domainSchema.index({ nameservers_next_check_at: 1 }, { partialFilterExpression: { purchased: false } });
138
+ domainSchema.index({ registration_next_check_at: 1 }, { partialFilterExpression: { purchased: true } });
129
139
  exports.default = (0, mongoose_1.model)("Domain", domainSchema);
@@ -24,6 +24,8 @@ export interface IDomain extends Document {
24
24
  trigger_created: boolean;
25
25
  trigger_created_at: string;
26
26
  nameservers: string[];
27
+ nameservers_next_check_at?: Date | null;
28
+ registration_next_check_at?: Date | null;
27
29
  dns: IDns[];
28
30
  project_environment?: IProjectEnvironment;
29
31
  is_pending_verification: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.227",
3
+ "version": "3.8.229",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",