@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.
- package/.github/workflows/bump-version.yml +4 -4
- package/.github/workflows/lint-and-build.yml +4 -4
- package/.github/workflows/npm-publish.yml +4 -4
- package/.nvmrc +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +6 -1
- package/build/src/base/businessOperation/businessOperation.d.ts +4 -4
- package/build/src/base/businessOperation/businessOperation.js +4 -4
- package/build/src/base/event/addons/default.d.ts +1 -1
- package/build/src/base/event/addons/index.d.ts +9 -9
- package/build/src/base/event/addons/javascript.d.ts +2 -2
- package/build/src/base/event/addons/php.d.ts +1 -1
- package/build/src/base/event/addons/sentry.js +1 -0
- package/build/src/base/event/backtraceFrame.d.ts +1 -1
- package/build/src/base/event/breadcrumb.d.ts +3 -6
- package/build/src/base/event/event.d.ts +5 -10
- package/build/src/base/integrations/integrationToken.d.ts +1 -1
- package/build/src/catchers/catcher-message.d.ts +30 -9
- package/build/src/dbScheme/businessOperation.d.ts +2 -2
- package/build/src/dbScheme/groupedEvent.d.ts +12 -6
- package/build/src/dbScheme/membership.d.ts +2 -2
- package/build/src/dbScheme/notificationsChannels.d.ts +1 -1
- package/build/src/dbScheme/plan.d.ts +1 -1
- package/build/src/dbScheme/project.d.ts +3 -4
- package/build/src/dbScheme/projectEventGroupingPattern.d.ts +5 -1
- package/build/src/dbScheme/projectNotificationsRule.d.ts +3 -3
- package/build/src/dbScheme/release.d.ts +2 -7
- package/build/src/dbScheme/repetition.d.ts +13 -4
- package/build/src/dbScheme/sourceMap.d.ts +3 -7
- package/build/src/dbScheme/sso.d.ts +77 -0
- package/build/src/dbScheme/sso.js +5 -0
- package/build/src/dbScheme/user.d.ts +23 -3
- package/build/src/dbScheme/userNotifications.d.ts +1 -1
- package/build/src/dbScheme/workspace.d.ts +6 -1
- package/build/src/notifications/createProjectNotifications.d.ts +2 -2
- package/build/src/notifications/receiveTypes.js +1 -1
- package/build/src/notifications/updateProjectNotifications.d.ts +2 -2
- package/build/src/notifications/userNotification.js +1 -1
- package/build/src/utils/index.d.ts +2 -2
- package/eslint.config.mjs +34 -0
- package/index.ts +1 -0
- package/package.json +11 -6
- package/src/auth/tokensPair.ts +9 -9
- package/src/base/businessOperation/businessOperation.ts +8 -8
- package/src/base/event/addons/default.ts +1 -1
- package/src/base/event/addons/index.ts +11 -12
- package/src/base/event/addons/javascript.ts +2 -2
- package/src/base/event/addons/php.ts +1 -1
- package/src/base/event/addons/sentry.ts +3 -1
- package/src/base/event/affectedUser.ts +16 -16
- package/src/base/event/backtraceFrame.ts +25 -25
- package/src/base/event/breadcrumb.ts +5 -9
- package/src/base/event/event.ts +53 -59
- package/src/base/event/sourceCodeLine.ts +8 -8
- package/src/base/performance/performance.ts +1 -1
- package/src/catchers/catcher-message.ts +29 -8
- package/src/dbScheme/businessOperation.ts +26 -26
- package/src/dbScheme/groupedEvent.ts +52 -46
- package/src/dbScheme/membership.ts +24 -27
- package/src/dbScheme/notificationsChannelSettings.ts +12 -12
- package/src/dbScheme/notificationsChannels.ts +25 -25
- package/src/dbScheme/plan.ts +30 -30
- package/src/dbScheme/project.ts +3 -4
- package/src/dbScheme/projectEventGroupingPattern.ts +8 -4
- package/src/dbScheme/projectNotificationsRule.ts +52 -52
- package/src/dbScheme/release.ts +3 -8
- package/src/dbScheme/repetition.ts +39 -30
- package/src/dbScheme/sourceMap.ts +4 -8
- package/src/dbScheme/sso.ts +88 -0
- package/src/dbScheme/user.ts +25 -3
- package/src/dbScheme/userNotifications.ts +9 -9
- package/src/dbScheme/workspace.ts +84 -78
- package/src/notifications/createProjectNotifications.ts +27 -27
- package/src/notifications/receiveTypes.ts +8 -8
- package/src/notifications/updateProjectNotifications.ts +26 -26
- package/src/notifications/userNotification.ts +12 -12
- package/src/utils/index.ts +1 -1
- package/.eslintrc +0 -12
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { ReceiveTypes } from
|
|
2
|
-
import { NotificationsChannelsDBScheme } from
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Allows to disable rule without removing
|
|
10
|
+
*/
|
|
11
|
+
isEnabled: true;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Receive type: 'ALL' or 'ONLY_NEW'
|
|
15
|
+
*/
|
|
16
|
+
whatToReceive: ReceiveTypes;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Only those which contains passed words
|
|
20
|
+
*/
|
|
21
|
+
including: string[];
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Skip those which contains passed words
|
|
25
|
+
*/
|
|
26
|
+
excluding: string[];
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Creator of the rule
|
|
30
|
+
*/
|
|
31
|
+
uidAdded: string;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
/**
|
|
6
|
+
* If event seen more than threshold in thresholdPeriod
|
|
7
|
+
*/
|
|
8
|
+
SEEN_MORE = 'SEEN_MORE',
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Only first occurrence
|
|
12
|
+
*/
|
|
13
|
+
ONLY_NEW = 'ONLY_NEW'
|
|
14
14
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { ReceiveTypes } from
|
|
2
|
-
import { NotificationsChannelsDBScheme } from
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Rule id to update
|
|
10
|
+
*/
|
|
11
|
+
ruleId: string;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Allows to disable rule without removing
|
|
15
|
+
*/
|
|
16
|
+
isEnabled: true;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Receive type: 'ALL' or 'ONLY_NEW'
|
|
20
|
+
*/
|
|
21
|
+
whatToReceive: ReceiveTypes;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Only those which contains passed words
|
|
25
|
+
*/
|
|
26
|
+
including: string[];
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Skip those which contains passed words
|
|
30
|
+
*/
|
|
31
|
+
excluding: string[];
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
/**
|
|
6
|
+
* When user is assigned to the issue (event)
|
|
7
|
+
*/
|
|
8
|
+
IssueAssigning = 'IssueAssigning',
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Regular digest of what happened on the project for the week
|
|
12
|
+
*/
|
|
13
|
+
WeeklyDigest = 'WeeklyDigest',
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Only important messages from Hawk team
|
|
17
|
+
*/
|
|
18
|
+
SystemMessages = 'SystemMessages'
|
|
19
19
|
}
|
package/src/utils/index.ts
CHANGED
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
|
-
}
|