@hawk.so/types 0.1.32-rc.9 → 0.1.33
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.
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { SentryAddons } from "./sentry";
|
|
1
2
|
/**
|
|
2
3
|
* This interface represents data that can be additionally collected by Default Catcher
|
|
3
4
|
*/
|
|
4
5
|
export interface DefaultAddons {
|
|
6
|
+
/**
|
|
7
|
+
* Additional data extracted from the Sentry event addons
|
|
8
|
+
*/
|
|
9
|
+
sentry?: SentryAddons;
|
|
5
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ObjectId } from
|
|
2
|
-
import { UserNotificationsDBScheme } from
|
|
3
|
-
import { BankCard } from
|
|
1
|
+
import { ObjectId } from 'mongodb';
|
|
2
|
+
import { UserNotificationsDBScheme } from '../../index';
|
|
3
|
+
import { BankCard } from './bankCard';
|
|
4
4
|
/**
|
|
5
5
|
* Interface representing how user is stored in DB
|
|
6
6
|
*/
|
|
@@ -42,4 +42,29 @@ export interface UserDBScheme {
|
|
|
42
42
|
* Saved bank cards for one-click payments
|
|
43
43
|
*/
|
|
44
44
|
bankCards?: BankCard[];
|
|
45
|
+
/**
|
|
46
|
+
* UTM parameters from signup - Data form where user went to sign up. Used for analytics purposes
|
|
47
|
+
*/
|
|
48
|
+
utm?: {
|
|
49
|
+
/**
|
|
50
|
+
* UTM source - identifies which site sent the traffic
|
|
51
|
+
*/
|
|
52
|
+
source?: string;
|
|
53
|
+
/**
|
|
54
|
+
* UTM medium - identifies what type of link was used
|
|
55
|
+
*/
|
|
56
|
+
medium?: string;
|
|
57
|
+
/**
|
|
58
|
+
* UTM campaign - identifies a specific product promotion or strategic campaign
|
|
59
|
+
*/
|
|
60
|
+
campaign?: string;
|
|
61
|
+
/**
|
|
62
|
+
* UTM content - identifies what specifically was clicked to bring the user to the site
|
|
63
|
+
*/
|
|
64
|
+
content?: string;
|
|
65
|
+
/**
|
|
66
|
+
* UTM term - identifies search terms
|
|
67
|
+
*/
|
|
68
|
+
term?: string;
|
|
69
|
+
};
|
|
45
70
|
}
|
package/package.json
CHANGED
package/src/dbScheme/user.ts
CHANGED
|
@@ -1,54 +1,84 @@
|
|
|
1
|
-
import { ObjectId } from
|
|
2
|
-
import { UserNotificationsDBScheme } from
|
|
3
|
-
import { BankCard } from
|
|
1
|
+
import { ObjectId } from 'mongodb';
|
|
2
|
+
import { UserNotificationsDBScheme } from '../../index';
|
|
3
|
+
import { BankCard } from './bankCard';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Interface representing how user is stored in DB
|
|
7
7
|
*/
|
|
8
8
|
export interface UserDBScheme {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
/**
|
|
10
|
+
* User's id
|
|
11
|
+
*/
|
|
12
|
+
_id: ObjectId;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
/**
|
|
15
|
+
* User's email
|
|
16
|
+
*/
|
|
17
|
+
email?: string;
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
/**
|
|
20
|
+
* User's password
|
|
21
|
+
*/
|
|
22
|
+
password?: string;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
/**
|
|
25
|
+
* User's image url
|
|
26
|
+
*/
|
|
27
|
+
image?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* User's name
|
|
31
|
+
*/
|
|
32
|
+
name?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* User's GitHub profile id
|
|
36
|
+
*/
|
|
37
|
+
githubId?: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* User's original password (this field appears only after registration).
|
|
41
|
+
* Using to send password to user after registration
|
|
42
|
+
*/
|
|
43
|
+
generatedPassword?: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* User notifications settings
|
|
47
|
+
*/
|
|
48
|
+
notifications?: UserNotificationsDBScheme;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Saved bank cards for one-click payments
|
|
52
|
+
*/
|
|
53
|
+
bankCards?: BankCard[];
|
|
28
54
|
|
|
55
|
+
/**
|
|
56
|
+
* UTM parameters from signup - Data form where user went to sign up. Used for analytics purposes
|
|
57
|
+
*/
|
|
58
|
+
utm?: {
|
|
29
59
|
/**
|
|
30
|
-
*
|
|
60
|
+
* UTM source - identifies which site sent the traffic
|
|
31
61
|
*/
|
|
32
|
-
|
|
62
|
+
source?: string;
|
|
33
63
|
|
|
34
64
|
/**
|
|
35
|
-
*
|
|
65
|
+
* UTM medium - identifies what type of link was used
|
|
36
66
|
*/
|
|
37
|
-
|
|
67
|
+
medium?: string;
|
|
38
68
|
|
|
39
69
|
/**
|
|
40
|
-
*
|
|
41
|
-
* Using to send password to user after registration
|
|
70
|
+
* UTM campaign - identifies a specific product promotion or strategic campaign
|
|
42
71
|
*/
|
|
43
|
-
|
|
72
|
+
campaign?: string;
|
|
44
73
|
|
|
45
74
|
/**
|
|
46
|
-
*
|
|
75
|
+
* UTM content - identifies what specifically was clicked to bring the user to the site
|
|
47
76
|
*/
|
|
48
|
-
|
|
77
|
+
content?: string;
|
|
49
78
|
|
|
50
79
|
/**
|
|
51
|
-
*
|
|
80
|
+
* UTM term - identifies search terms
|
|
52
81
|
*/
|
|
53
|
-
|
|
82
|
+
term?: string;
|
|
83
|
+
};
|
|
54
84
|
}
|