@hawk.so/types 0.1.27-rc.4 → 0.1.27-rc.6

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,7 +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/projectPattern";
25
+ export * from "./src/dbScheme/projectEventGroupingPattern";
26
26
  export * from "./src/notifications/createProjectNotifications";
27
27
  export * from "./src/notifications/receiveTypes";
28
28
  export * from "./src/notifications/updateProjectNotifications";
package/build/index.js CHANGED
@@ -34,7 +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/projectPattern"), exports);
37
+ __exportStar(require("./src/dbScheme/projectEventGroupingPattern"), exports);
38
38
  __exportStar(require("./src/notifications/createProjectNotifications"), exports);
39
39
  __exportStar(require("./src/notifications/receiveTypes"), exports);
40
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
  */
@@ -45,5 +46,5 @@ export interface ProjectDBScheme {
45
46
  /**
46
47
  * Patterns for manual event grouping
47
48
  */
48
- patterns: string[];
49
+ eventGroupingPatterns: ProjectEventGroupingPatternsDBScheme[];
49
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 });
package/index.ts CHANGED
@@ -27,7 +27,7 @@ export * from "./src/dbScheme/user";
27
27
  export * from "./src/dbScheme/userNotifications";
28
28
  export * from "./src/dbScheme/workspace";
29
29
  export * from "./src/dbScheme/bankCard";
30
- export * from "./src/dbScheme/projectPattern";
30
+ export * from "./src/dbScheme/projectEventGroupingPattern";
31
31
 
32
32
  export * from "./src/notifications/createProjectNotifications";
33
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-rc.4",
3
+ "version": "0.1.27-rc.6",
4
4
  "description": "TypeScript definitions for Hawk",
5
5
  "types": "build/index.d.ts",
6
6
  "main": "build/index.js",
@@ -1,6 +1,6 @@
1
1
  import { ObjectId } from 'mongodb';
2
2
  import { ProjectNotificationsRuleDBScheme } from '../../index';
3
- import { ProjectPatternDBScheme } from '../../index';
3
+ import { ProjectEventGroupingPatternsDBScheme } from '../../index';
4
4
 
5
5
  /**
6
6
  * Structure represents a Project in DataBase
@@ -56,5 +56,5 @@ export interface ProjectDBScheme {
56
56
  /**
57
57
  * Patterns for manual event grouping
58
58
  */
59
- patterns: ProjectPatternDBScheme[];
59
+ eventGroupingPatterns: ProjectEventGroupingPatternsDBScheme[];
60
60
  }
@@ -1,6 +1,6 @@
1
1
  import { ObjectId } from "mongodb";
2
2
 
3
- export interface ProjectPatternDBScheme {
3
+ export interface ProjectEventGroupingPatternsDBScheme {
4
4
  /**
5
5
  * If of the pattern
6
6
  */