@brimble/models 3.8.85 → 3.8.88

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/coupon.js CHANGED
@@ -23,6 +23,7 @@ const couponSchema = new mongoose_1.Schema({
23
23
  redemption_count: { type: Number, default: 0 },
24
24
  min_purchase_amount: { type: Number, default: null },
25
25
  allowed_tlds: { type: [String], default: [] },
26
+ allowed_user_ids: { type: [mongoose_1.Schema.Types.ObjectId], ref: "User", default: [] },
26
27
  max_duration_years: { type: Number, default: null },
27
28
  allow_below_cost: { type: Boolean, default: false },
28
29
  starts_at: { type: Date, default: null },
@@ -19,6 +19,11 @@ const projectSchema = new mongoose_1.Schema({
19
19
  type: String,
20
20
  required: false,
21
21
  },
22
+ http2: {
23
+ type: Boolean,
24
+ default: false,
25
+ required: false
26
+ },
22
27
  healthCheckPath: {
23
28
  type: String,
24
29
  required: false,
@@ -1,4 +1,4 @@
1
- import { Document } from "mongoose";
1
+ import { Document, Types } from "mongoose";
2
2
  import { CouponDiscountType, CouponScope } from "../enum";
3
3
  export interface ICoupon extends Document {
4
4
  code: string;
@@ -12,6 +12,7 @@ export interface ICoupon extends Document {
12
12
  redemption_count: number;
13
13
  min_purchase_amount?: number | null;
14
14
  allowed_tlds: string[];
15
+ allowed_user_ids: Types.ObjectId[];
15
16
  max_duration_years?: number | null;
16
17
  allow_below_cost: boolean;
17
18
  starts_at?: Date | null;
@@ -17,6 +17,7 @@ export interface IProject extends Document {
17
17
  healthCheckPath?: string;
18
18
  preStartCommand?: string;
19
19
  backupEnabled: boolean;
20
+ http2: boolean;
20
21
  free_tier_expires_at?: Date | null;
21
22
  free_tier_expiry_notified_at?: Date | null;
22
23
  buildCacheEnabled?: boolean;
@@ -9,6 +9,7 @@ export interface IPreview extends Document {
9
9
  pid: number;
10
10
  port: number;
11
11
  ip: string;
12
+ http2: boolean;
12
13
  dir: string;
13
14
  branch: string;
14
15
  server: IServer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.85",
3
+ "version": "3.8.88",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",