@brimble/models 3.8.73 → 3.8.75
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/enum/index.d.ts +2 -1
- package/dist/enum/index.js +1 -0
- package/dist/team.js +12 -0
- package/dist/types/team.d.ts +3 -0
- package/enum/index.ts +1 -0
- package/package.json +1 -1
- package/team.ts +12 -0
- package/types/team.ts +3 -0
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var BUILD_DISABLED_BY;
|
|
|
20
20
|
(function (BUILD_DISABLED_BY) {
|
|
21
21
|
BUILD_DISABLED_BY["System"] = "system";
|
|
22
22
|
BUILD_DISABLED_BY["User"] = "user";
|
|
23
|
+
BUILD_DISABLED_BY["Payment"] = "payment_failure";
|
|
23
24
|
})(BUILD_DISABLED_BY = exports.BUILD_DISABLED_BY || (exports.BUILD_DISABLED_BY = {}));
|
|
24
25
|
var REQUEST_TYPE;
|
|
25
26
|
(function (REQUEST_TYPE) {
|
package/dist/team.js
CHANGED
|
@@ -25,6 +25,18 @@ const teamSchema = new mongoose_1.Schema({
|
|
|
25
25
|
image: {
|
|
26
26
|
type: String,
|
|
27
27
|
},
|
|
28
|
+
build_minutes: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 0,
|
|
31
|
+
},
|
|
32
|
+
build_minutes_last_reset_at: {
|
|
33
|
+
type: Date,
|
|
34
|
+
default: null,
|
|
35
|
+
},
|
|
36
|
+
build_minutes_cycle_anchor: {
|
|
37
|
+
type: Date,
|
|
38
|
+
default: null,
|
|
39
|
+
},
|
|
28
40
|
build_disabled: {
|
|
29
41
|
type: Boolean,
|
|
30
42
|
default: false,
|
package/dist/types/team.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export interface ITeam extends Document {
|
|
|
9
9
|
projects: IProject[];
|
|
10
10
|
image: string;
|
|
11
11
|
isCreator: boolean;
|
|
12
|
+
build_minutes: number;
|
|
13
|
+
build_minutes_last_reset_at: Date | null;
|
|
14
|
+
build_minutes_cycle_anchor: Date | null;
|
|
12
15
|
build_disabled: boolean;
|
|
13
16
|
build_disabled_by: BUILD_DISABLED_BY;
|
|
14
17
|
subscription: ISubscription;
|
package/enum/index.ts
CHANGED
package/package.json
CHANGED
package/team.ts
CHANGED
|
@@ -26,6 +26,18 @@ const teamSchema: Schema = new Schema(
|
|
|
26
26
|
image: {
|
|
27
27
|
type: String,
|
|
28
28
|
},
|
|
29
|
+
build_minutes: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: 0,
|
|
32
|
+
},
|
|
33
|
+
build_minutes_last_reset_at: {
|
|
34
|
+
type: Date,
|
|
35
|
+
default: null,
|
|
36
|
+
},
|
|
37
|
+
build_minutes_cycle_anchor: {
|
|
38
|
+
type: Date,
|
|
39
|
+
default: null,
|
|
40
|
+
},
|
|
29
41
|
build_disabled: {
|
|
30
42
|
type: Boolean,
|
|
31
43
|
default: false,
|
package/types/team.ts
CHANGED
|
@@ -10,6 +10,9 @@ export interface ITeam extends Document {
|
|
|
10
10
|
projects: IProject[];
|
|
11
11
|
image: string;
|
|
12
12
|
isCreator: boolean;
|
|
13
|
+
build_minutes: number;
|
|
14
|
+
build_minutes_last_reset_at: Date | null;
|
|
15
|
+
build_minutes_cycle_anchor: Date | null;
|
|
13
16
|
build_disabled: boolean;
|
|
14
17
|
build_disabled_by: BUILD_DISABLED_BY;
|
|
15
18
|
subscription: ISubscription;
|