@hawk.so/types 0.2.0 → 0.4.0

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.
Files changed (78) hide show
  1. package/.github/workflows/bump-version.yml +4 -4
  2. package/.github/workflows/lint-and-build.yml +4 -4
  3. package/.github/workflows/npm-publish.yml +4 -4
  4. package/.nvmrc +1 -0
  5. package/build/index.d.ts +1 -0
  6. package/build/index.js +6 -1
  7. package/build/src/base/businessOperation/businessOperation.d.ts +4 -4
  8. package/build/src/base/businessOperation/businessOperation.js +4 -4
  9. package/build/src/base/event/addons/default.d.ts +1 -1
  10. package/build/src/base/event/addons/index.d.ts +9 -9
  11. package/build/src/base/event/addons/javascript.d.ts +2 -2
  12. package/build/src/base/event/addons/php.d.ts +1 -1
  13. package/build/src/base/event/addons/sentry.js +1 -0
  14. package/build/src/base/event/backtraceFrame.d.ts +1 -1
  15. package/build/src/base/event/breadcrumb.d.ts +3 -6
  16. package/build/src/base/event/event.d.ts +5 -10
  17. package/build/src/base/integrations/integrationToken.d.ts +1 -1
  18. package/build/src/catchers/catcher-message.d.ts +30 -9
  19. package/build/src/dbScheme/businessOperation.d.ts +2 -2
  20. package/build/src/dbScheme/groupedEvent.d.ts +12 -6
  21. package/build/src/dbScheme/membership.d.ts +2 -2
  22. package/build/src/dbScheme/notificationsChannels.d.ts +1 -1
  23. package/build/src/dbScheme/plan.d.ts +1 -1
  24. package/build/src/dbScheme/project.d.ts +3 -4
  25. package/build/src/dbScheme/projectEventGroupingPattern.d.ts +5 -1
  26. package/build/src/dbScheme/projectNotificationsRule.d.ts +3 -3
  27. package/build/src/dbScheme/release.d.ts +2 -7
  28. package/build/src/dbScheme/repetition.d.ts +13 -4
  29. package/build/src/dbScheme/sourceMap.d.ts +3 -7
  30. package/build/src/dbScheme/sso.d.ts +77 -0
  31. package/build/src/dbScheme/sso.js +5 -0
  32. package/build/src/dbScheme/user.d.ts +23 -3
  33. package/build/src/dbScheme/userNotifications.d.ts +1 -1
  34. package/build/src/dbScheme/workspace.d.ts +6 -1
  35. package/build/src/notifications/createProjectNotifications.d.ts +2 -2
  36. package/build/src/notifications/receiveTypes.js +1 -1
  37. package/build/src/notifications/updateProjectNotifications.d.ts +2 -2
  38. package/build/src/notifications/userNotification.js +1 -1
  39. package/build/src/utils/index.d.ts +2 -2
  40. package/eslint.config.mjs +34 -0
  41. package/index.ts +1 -0
  42. package/package.json +11 -6
  43. package/src/auth/tokensPair.ts +9 -9
  44. package/src/base/businessOperation/businessOperation.ts +8 -8
  45. package/src/base/event/addons/default.ts +1 -1
  46. package/src/base/event/addons/index.ts +11 -12
  47. package/src/base/event/addons/javascript.ts +2 -2
  48. package/src/base/event/addons/php.ts +1 -1
  49. package/src/base/event/addons/sentry.ts +3 -1
  50. package/src/base/event/affectedUser.ts +16 -16
  51. package/src/base/event/backtraceFrame.ts +25 -25
  52. package/src/base/event/breadcrumb.ts +5 -9
  53. package/src/base/event/event.ts +53 -59
  54. package/src/base/event/sourceCodeLine.ts +8 -8
  55. package/src/base/performance/performance.ts +1 -1
  56. package/src/catchers/catcher-message.ts +29 -8
  57. package/src/dbScheme/businessOperation.ts +26 -26
  58. package/src/dbScheme/groupedEvent.ts +52 -46
  59. package/src/dbScheme/membership.ts +24 -27
  60. package/src/dbScheme/notificationsChannelSettings.ts +12 -12
  61. package/src/dbScheme/notificationsChannels.ts +25 -25
  62. package/src/dbScheme/plan.ts +30 -30
  63. package/src/dbScheme/project.ts +3 -4
  64. package/src/dbScheme/projectEventGroupingPattern.ts +8 -4
  65. package/src/dbScheme/projectNotificationsRule.ts +52 -52
  66. package/src/dbScheme/release.ts +3 -8
  67. package/src/dbScheme/repetition.ts +39 -30
  68. package/src/dbScheme/sourceMap.ts +4 -8
  69. package/src/dbScheme/sso.ts +88 -0
  70. package/src/dbScheme/user.ts +25 -3
  71. package/src/dbScheme/userNotifications.ts +9 -9
  72. package/src/dbScheme/workspace.ts +84 -78
  73. package/src/notifications/createProjectNotifications.ts +27 -27
  74. package/src/notifications/receiveTypes.ts +8 -8
  75. package/src/notifications/updateProjectNotifications.ts +26 -26
  76. package/src/notifications/userNotification.ts +12 -12
  77. package/src/utils/index.ts +1 -1
  78. package/.eslintrc +0 -12
@@ -1,37 +1,37 @@
1
- import { ReceiveTypes } from "../../index";
2
- import { NotificationsChannelsDBScheme } from "../dbScheme/notificationsChannels";
1
+ import type { ReceiveTypes } from '../../index.ts';
2
+ import type { NotificationsChannelsDBScheme } from '../dbScheme/notificationsChannels.ts';
3
3
 
4
4
  /**
5
5
  * Payload for creating new notification rule
6
6
  */
7
7
  export interface CreateProjectNotificationsRulePayload {
8
- /**
9
- * Allows to disable rule without removing
10
- */
11
- isEnabled: true;
8
+ /**
9
+ * Allows to disable rule without removing
10
+ */
11
+ isEnabled: true;
12
12
 
13
- /**
14
- * Receive type: 'ALL' or 'ONLY_NEW'
15
- */
16
- whatToReceive: ReceiveTypes;
13
+ /**
14
+ * Receive type: 'ALL' or 'ONLY_NEW'
15
+ */
16
+ whatToReceive: ReceiveTypes;
17
17
 
18
- /**
19
- * Only those which contains passed words
20
- */
21
- including: string[];
18
+ /**
19
+ * Only those which contains passed words
20
+ */
21
+ including: string[];
22
22
 
23
- /**
24
- * Skip those which contains passed words
25
- */
26
- excluding: string[];
23
+ /**
24
+ * Skip those which contains passed words
25
+ */
26
+ excluding: string[];
27
27
 
28
- /**
29
- * Creator of the rule
30
- */
31
- uidAdded: string;
28
+ /**
29
+ * Creator of the rule
30
+ */
31
+ uidAdded: string;
32
32
 
33
- /**
34
- * Available channels to receive
35
- */
36
- channels: NotificationsChannelsDBScheme;
37
- }
33
+ /**
34
+ * Available channels to receive
35
+ */
36
+ channels: NotificationsChannelsDBScheme;
37
+ }
@@ -2,13 +2,13 @@
2
2
  * Available options of 'What to receive'
3
3
  */
4
4
  export enum ReceiveTypes {
5
- /**
6
- * If event seen more than threshold in thresholdPeriod
7
- */
8
- SEEN_MORE = 'SEEN_MORE',
5
+ /**
6
+ * If event seen more than threshold in thresholdPeriod
7
+ */
8
+ SEEN_MORE = 'SEEN_MORE',
9
9
 
10
- /**
11
- * Only first occurrence
12
- */
13
- ONLY_NEW = 'ONLY_NEW',
10
+ /**
11
+ * Only first occurrence
12
+ */
13
+ ONLY_NEW = 'ONLY_NEW'
14
14
  }
@@ -1,37 +1,37 @@
1
- import { ReceiveTypes } from "../../index";
2
- import { NotificationsChannelsDBScheme } from "../dbScheme/notificationsChannels";
1
+ import type { ReceiveTypes } from '../../index.ts';
2
+ import type { NotificationsChannelsDBScheme } from '../dbScheme/notificationsChannels.ts';
3
3
 
4
4
  /**
5
5
  * Payload for updating existing notifications rule
6
6
  */
7
7
  export interface UpdateProjectNotificationsRulePayload {
8
- /**
9
- * Rule id to update
10
- */
11
- ruleId: string;
8
+ /**
9
+ * Rule id to update
10
+ */
11
+ ruleId: string;
12
12
 
13
- /**
14
- * Allows to disable rule without removing
15
- */
16
- isEnabled: true;
13
+ /**
14
+ * Allows to disable rule without removing
15
+ */
16
+ isEnabled: true;
17
17
 
18
- /**
19
- * Receive type: 'ALL' or 'ONLY_NEW'
20
- */
21
- whatToReceive: ReceiveTypes;
18
+ /**
19
+ * Receive type: 'ALL' or 'ONLY_NEW'
20
+ */
21
+ whatToReceive: ReceiveTypes;
22
22
 
23
- /**
24
- * Only those which contains passed words
25
- */
26
- including: string[];
23
+ /**
24
+ * Only those which contains passed words
25
+ */
26
+ including: string[];
27
27
 
28
- /**
29
- * Skip those which contains passed words
30
- */
31
- excluding: string[];
28
+ /**
29
+ * Skip those which contains passed words
30
+ */
31
+ excluding: string[];
32
32
 
33
- /**
34
- * Available channels to receive
35
- */
36
- channels: NotificationsChannelsDBScheme;
33
+ /**
34
+ * Available channels to receive
35
+ */
36
+ channels: NotificationsChannelsDBScheme;
37
37
  }
@@ -2,18 +2,18 @@
2
2
  * Available options of 'What to receive'
3
3
  */
4
4
  export enum UserNotificationType {
5
- /**
6
- * When user is assigned to the issue (event)
7
- */
8
- IssueAssigning = 'IssueAssigning',
5
+ /**
6
+ * When user is assigned to the issue (event)
7
+ */
8
+ IssueAssigning = 'IssueAssigning',
9
9
 
10
- /**
11
- * Regular digest of what happened on the project for the week
12
- */
13
- WeeklyDigest = 'WeeklyDigest',
10
+ /**
11
+ * Regular digest of what happened on the project for the week
12
+ */
13
+ WeeklyDigest = 'WeeklyDigest',
14
14
 
15
- /**
16
- * Only important messages from Hawk team
17
- */
18
- SystemMessages = 'SystemMessages',
15
+ /**
16
+ * Only important messages from Hawk team
17
+ */
18
+ SystemMessages = 'SystemMessages'
19
19
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Represents simple JSON-like document
3
3
  */
4
- export type Json = {[key: string]: JsonNode};
4
+ export type Json = { [key: string]: JsonNode };
5
5
 
6
6
  /**
7
7
  * Represents possible field values in Dict
package/.eslintrc DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "parser": "@typescript-eslint/parser",
3
- "plugins": ["@typescript-eslint"],
4
- "extends": [
5
- "eslint:recommended",
6
- "plugin:@typescript-eslint/recommended"
7
- ],
8
- "rules": {
9
- "object-curly-spacing": ["error", "always"],
10
- "@typescript-eslint/no-empty-interface": ["off"]
11
- }
12
- }