@hawk.so/types 0.1.27 → 0.1.29

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/build/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export * from "./src/dbScheme/user";
22
22
  export * from "./src/dbScheme/userNotifications";
23
23
  export * from "./src/dbScheme/workspace";
24
24
  export * from "./src/dbScheme/bankCard";
25
+ export * from "./src/dbScheme/projectEventGroupingPattern";
25
26
  export * from "./src/notifications/createProjectNotifications";
26
27
  export * from "./src/notifications/receiveTypes";
27
28
  export * from "./src/notifications/updateProjectNotifications";
package/build/index.js CHANGED
@@ -34,6 +34,7 @@ __exportStar(require("./src/dbScheme/user"), exports);
34
34
  __exportStar(require("./src/dbScheme/userNotifications"), exports);
35
35
  __exportStar(require("./src/dbScheme/workspace"), exports);
36
36
  __exportStar(require("./src/dbScheme/bankCard"), exports);
37
+ __exportStar(require("./src/dbScheme/projectEventGroupingPattern"), exports);
37
38
  __exportStar(require("./src/notifications/createProjectNotifications"), exports);
38
39
  __exportStar(require("./src/notifications/receiveTypes"), exports);
39
40
  __exportStar(require("./src/notifications/updateProjectNotifications"), exports);
@@ -1,5 +1,6 @@
1
1
  import { ObjectId } from 'mongodb';
2
2
  import { ProjectNotificationsRuleDBScheme } from '../../index';
3
+ import { ProjectEventGroupingPatternsDBScheme } from '../../index';
3
4
  /**
4
5
  * Structure represents a Project in DataBase
5
6
  */
@@ -42,4 +43,8 @@ export interface ProjectDBScheme {
42
43
  * Project notifications settings
43
44
  */
44
45
  notifications: ProjectNotificationsRuleDBScheme[];
46
+ /**
47
+ * Patterns for manual event grouping
48
+ */
49
+ eventGroupingPatterns: ProjectEventGroupingPatternsDBScheme[];
45
50
  }
@@ -0,0 +1,11 @@
1
+ import { ObjectId } from "mongodb";
2
+ export interface ProjectEventGroupingPatternsDBScheme {
3
+ /**
4
+ * If of the pattern
5
+ */
6
+ _id: ObjectId;
7
+ /**
8
+ * String that represents regular expression pattern
9
+ */
10
+ pattern: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { ObjectId } from "mongodb";
2
+ export interface ProjectPatternDBScheme {
3
+ /**
4
+ * If of the pattern
5
+ */
6
+ _id: ObjectId;
7
+ /**
8
+ * String that represents regular expression pattern
9
+ */
10
+ pattern: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -39,6 +39,11 @@ export interface WorkspaceDBScheme {
39
39
  * Date when workspace was charged last time
40
40
  */
41
41
  lastChargeDate: Date;
42
+ /**
43
+ * Date when subscription will be expired
44
+ * Used for pre-paid plans for several months
45
+ */
46
+ paidUntil?: Date;
42
47
  /**
43
48
  * Total number of errors since the last charge date
44
49
  */
package/index.ts CHANGED
@@ -26,7 +26,8 @@ export * from "./src/dbScheme/sourceMap";
26
26
  export * from "./src/dbScheme/user";
27
27
  export * from "./src/dbScheme/userNotifications";
28
28
  export * from "./src/dbScheme/workspace";
29
- export * from "./src/dbScheme/bankCard"
29
+ export * from "./src/dbScheme/bankCard";
30
+ export * from "./src/dbScheme/projectEventGroupingPattern";
30
31
 
31
32
  export * from "./src/notifications/createProjectNotifications";
32
33
  export * from "./src/notifications/receiveTypes";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawk.so/types",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "description": "TypeScript definitions for Hawk",
5
5
  "types": "build/index.d.ts",
6
6
  "main": "build/index.js",
@@ -1,5 +1,6 @@
1
1
  import { ObjectId } from 'mongodb';
2
2
  import { ProjectNotificationsRuleDBScheme } from '../../index';
3
+ import { ProjectEventGroupingPatternsDBScheme } from '../../index';
3
4
 
4
5
  /**
5
6
  * Structure represents a Project in DataBase
@@ -51,4 +52,9 @@ export interface ProjectDBScheme {
51
52
  * Project notifications settings
52
53
  */
53
54
  notifications: ProjectNotificationsRuleDBScheme[];
55
+
56
+ /**
57
+ * Patterns for manual event grouping
58
+ */
59
+ eventGroupingPatterns: ProjectEventGroupingPatternsDBScheme[];
54
60
  }
@@ -0,0 +1,13 @@
1
+ import { ObjectId } from "mongodb";
2
+
3
+ export interface ProjectEventGroupingPatternsDBScheme {
4
+ /**
5
+ * If of the pattern
6
+ */
7
+ _id: ObjectId,
8
+
9
+ /**
10
+ * String that represents regular expression pattern
11
+ */
12
+ pattern: string,
13
+ }
@@ -49,6 +49,12 @@ export interface WorkspaceDBScheme {
49
49
  */
50
50
  lastChargeDate: Date;
51
51
 
52
+ /**
53
+ * Date when subscription will be expired
54
+ * Used for pre-paid plans for several months
55
+ */
56
+ paidUntil?: Date;
57
+
52
58
  /**
53
59
  * Total number of errors since the last charge date
54
60
  */