@brimble/models 2.3.6 → 2.3.8

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.
@@ -33,6 +33,7 @@ const subscriptionSchema = new mongoose_1.Schema({
33
33
  enum: Object.values(enum_1.SUBSCRIPTION_STATUS),
34
34
  default: enum_1.SUBSCRIPTION_STATUS.ACTIVE,
35
35
  },
36
+ grafana_org_id: String,
36
37
  specifications: {
37
38
  type: Object,
38
39
  default: {},
@@ -16,6 +16,7 @@ export interface ISubscription extends Document {
16
16
  start_date: string;
17
17
  expiry_date: string;
18
18
  reminder_date: string;
19
+ grafana_org_id: string;
19
20
  job_identifier: string;
20
21
  trigger_created: boolean;
21
22
  trigger_created_at: string;
@@ -25,6 +25,8 @@ export interface IUser extends Document {
25
25
  is_waitlist: boolean;
26
26
  build_disabled: boolean;
27
27
  spending_limit: number;
28
+ disabled: boolean;
29
+ disabled_at: Date;
28
30
  notifications: {
29
31
  email: boolean;
30
32
  mute: boolean;
package/dist/user.js CHANGED
@@ -39,6 +39,8 @@ const userSchema = new mongoose_1.Schema({
39
39
  is_waitlist: { type: Boolean, default: true },
40
40
  spending_limit: { type: Number },
41
41
  notifications: Object,
42
+ disabled: Boolean,
43
+ disabled_at: Date
42
44
  }, {
43
45
  timestamps: {
44
46
  createdAt: "created_at",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/subscription.ts CHANGED
@@ -34,6 +34,7 @@ const subscriptionSchema: Schema = new Schema(
34
34
  enum: Object.values(SUBSCRIPTION_STATUS),
35
35
  default: SUBSCRIPTION_STATUS.ACTIVE,
36
36
  },
37
+ grafana_org_id: String,
37
38
  specifications: {
38
39
  type: Object,
39
40
  default: {},
@@ -17,6 +17,7 @@ export interface ISubscription extends Document {
17
17
  start_date: string;
18
18
  expiry_date: string;
19
19
  reminder_date: string;
20
+ grafana_org_id: string;
20
21
  job_identifier: string;
21
22
  trigger_created: boolean;
22
23
  trigger_created_at: string;
package/types/user.ts CHANGED
@@ -26,6 +26,8 @@ export interface IUser extends Document {
26
26
  is_waitlist: boolean;
27
27
  build_disabled: boolean;
28
28
  spending_limit: number;
29
+ disabled: boolean;
30
+ disabled_at: Date;
29
31
  notifications: {
30
32
  email: boolean;
31
33
  mute: boolean;
package/user.ts CHANGED
@@ -41,6 +41,8 @@ const userSchema: Schema = new Schema(
41
41
  is_waitlist: { type: Boolean, default: true },
42
42
  spending_limit: { type: Number },
43
43
  notifications: Object,
44
+ disabled: Boolean,
45
+ disabled_at: Date
44
46
  },
45
47
  {
46
48
  timestamps: {