@shakerquiz/utilities 0.3.9 → 0.3.10

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 (45) hide show
  1. package/jsconfig.json +11 -8
  2. package/package.json +1 -4
  3. package/source/city.d.ts +40 -40
  4. package/source/enumerations/backends.d.ts +44 -0
  5. package/source/enumerations/backends.js +60 -0
  6. package/source/enumerations/default.d.ts +1 -0
  7. package/source/enumerations/default.js +1 -0
  8. package/source/enumerations/domains.d.ts +469 -0
  9. package/source/enumerations/domains.js +346 -0
  10. package/source/enumerations/features.d.ts +260 -401
  11. package/source/enumerations/features.js +26 -852
  12. package/source/enumerations/frontends.d.ts +34 -0
  13. package/source/enumerations/frontends.js +48 -0
  14. package/source/enumerations/game-statuses.d.ts +0 -6
  15. package/source/enumerations/game-statuses.js +0 -28
  16. package/source/enumerations/icons.d.ts +326 -0
  17. package/source/enumerations/icons.js +326 -0
  18. package/source/enumerations/kinds.d.ts +2 -2
  19. package/source/enumerations/kinds.js +2 -2
  20. package/source/enumerations/{request-methods.d.ts → methods.d.ts} +1 -1
  21. package/source/enumerations/{request-methods.js → methods.js} +1 -1
  22. package/source/enumerations/procedures.d.ts +74 -0
  23. package/source/enumerations/procedures.js +76 -0
  24. package/source/enumerations/roles.d.ts +2 -4
  25. package/source/enumerations/roles.js +0 -1
  26. package/source/enumerations/services.d.ts +48 -9
  27. package/source/enumerations/services.js +21 -30
  28. package/source/functions/fetch.d.ts +12 -15
  29. package/source/functions/fetch.js +64 -123
  30. package/source/functions/origin.d.ts +213 -1
  31. package/source/functions/origin.js +78 -40
  32. package/source/functions/pathname.d.ts +1 -0
  33. package/source/functions/pathname.js +40 -0
  34. package/source/functions/url.d.ts +1 -0
  35. package/source/functions/url.js +48 -0
  36. package/source/game.d.ts +17 -17
  37. package/source/globals.d.ts +22 -669
  38. package/source/index.d.ts +34 -14
  39. package/source/index.js +20 -1
  40. package/source/registration.d.ts +29 -29
  41. package/source/role.d.ts +3 -3
  42. package/source/rows.d.ts +9 -9
  43. package/source/theme.d.ts +3 -3
  44. package/source/user.d.ts +15 -15
  45. package/source/venue.d.ts +17 -17
package/source/index.d.ts CHANGED
@@ -1,14 +1,34 @@
1
- export * from "./enumerations/constants.js";
2
- export * from "./enumerations/cookies.js";
3
- export * from "./enumerations/features.js";
4
- export * from "./enumerations/game-statuses.js";
5
- export * from "./enumerations/kinds.js";
6
- export * from "./enumerations/networks.js";
7
- export * from "./enumerations/phases.js";
8
- export * from "./enumerations/regexps.js";
9
- export * from "./enumerations/request-methods.js";
10
- export * from "./enumerations/requirements.js";
11
- export * from "./enumerations/roles.js";
12
- export * from "./enumerations/services.js";
13
- export * from "./functions/fetch.js";
14
- export * from "./functions/origin.js";
1
+ /// <reference path='./globals.d.ts' />
2
+
3
+ /// <reference path='./city.d.ts' />
4
+ /// <reference path='./game.d.ts' />
5
+ /// <reference path='./registration.d.ts' />
6
+ /// <reference path='./role.d.ts' />
7
+ /// <reference path='./rows.d.ts' />
8
+ /// <reference path='./theme.d.ts' />
9
+ /// <reference path='./user.d.ts' />
10
+ /// <reference path='./venue.d.ts' />
11
+
12
+ export * from './enumerations/backends.js'
13
+ export * from './enumerations/constants.js'
14
+ export * from './enumerations/cookies.js'
15
+ export * from './enumerations/default.js'
16
+ export * from './enumerations/domains.js'
17
+ export * from './enumerations/features.js'
18
+ export * from './enumerations/frontends.js'
19
+ export * from './enumerations/game-statuses.js'
20
+ export * from './enumerations/icons.js'
21
+ export * from './enumerations/kinds.js'
22
+ export * from './enumerations/methods.js'
23
+ export * from './enumerations/networks.js'
24
+ export * from './enumerations/phases.js'
25
+ export * from './enumerations/procedures.js'
26
+ export * from './enumerations/regexps.js'
27
+ export * from './enumerations/requirements.js'
28
+ export * from './enumerations/roles.js'
29
+ export * from './enumerations/services.js'
30
+
31
+ export * from './functions/fetch.js'
32
+ export * from './functions/origin.js'
33
+ export * from './functions/pathname.js'
34
+ export * from './functions/url.js'
package/source/index.js CHANGED
@@ -1,15 +1,34 @@
1
+ /// <reference path='./globals.d.ts' />
2
+
3
+ /// <reference path='./city.d.ts' />
4
+ /// <reference path='./game.d.ts' />
5
+ /// <reference path='./registration.d.ts' />
6
+ /// <reference path='./role.d.ts' />
7
+ /// <reference path='./rows.d.ts' />
8
+ /// <reference path='./theme.d.ts' />
9
+ /// <reference path='./user.d.ts' />
10
+ /// <reference path='./venue.d.ts' />
11
+
12
+ export * from './enumerations/backends.js'
1
13
  export * from './enumerations/constants.js'
2
14
  export * from './enumerations/cookies.js'
15
+ export * from './enumerations/default.js'
16
+ export * from './enumerations/domains.js'
3
17
  export * from './enumerations/features.js'
18
+ export * from './enumerations/frontends.js'
4
19
  export * from './enumerations/game-statuses.js'
20
+ export * from './enumerations/icons.js'
5
21
  export * from './enumerations/kinds.js'
22
+ export * from './enumerations/methods.js'
6
23
  export * from './enumerations/networks.js'
7
24
  export * from './enumerations/phases.js'
25
+ export * from './enumerations/procedures.js'
8
26
  export * from './enumerations/regexps.js'
9
- export * from './enumerations/request-methods.js'
10
27
  export * from './enumerations/requirements.js'
11
28
  export * from './enumerations/roles.js'
12
29
  export * from './enumerations/services.js'
13
30
 
14
31
  export * from './functions/fetch.js'
15
32
  export * from './functions/origin.js'
33
+ export * from './functions/pathname.js'
34
+ export * from './functions/url.js'
@@ -24,39 +24,39 @@ type RegistrationRow = {
24
24
  /**
25
25
  * @description "boolean"
26
26
  */
27
- is_extensible: Nullable<boolean>
27
+ is_extensible: boolean | null
28
28
  /**
29
29
  * @description "integer"
30
30
  */
31
- people_count: Nullable<number>
31
+ people_count: number | null
32
32
  /**
33
33
  * @description "boolean"
34
34
  */
35
- is_first: Nullable<boolean>
35
+ is_first: boolean | null
36
36
  /**
37
37
  * @description "boolean"
38
38
  */
39
- is_canceled: Nullable<boolean>
39
+ is_canceled: boolean | null
40
40
  /**
41
41
  * @description "boolean"
42
42
  */
43
- is_actual_presence: Nullable<boolean>
43
+ is_actual_presence: boolean | null
44
44
  /**
45
45
  * @description "boolean"
46
46
  */
47
- is_confirm: Nullable<boolean>
47
+ is_confirm: boolean | null
48
48
  /**
49
49
  * @description "integer"
50
50
  */
51
- change_people_count: Nullable<number>
51
+ change_people_count: number | null
52
52
  /**
53
53
  * @description "integer"
54
54
  */
55
- fact_people_count: Nullable<number>
55
+ fact_people_count: number | null
56
56
  /**
57
57
  * @description "boolean"
58
58
  */
59
- is_birthday: Nullable<boolean>
59
+ is_birthday: boolean | null
60
60
  /**
61
61
  * @description "uuid"
62
62
  */
@@ -72,81 +72,81 @@ type RegistrationRow = {
72
72
  /**
73
73
  * @description "timestamp with time zone"
74
74
  */
75
- time_updated: Nullable<string>
75
+ time_updated: string | null
76
76
  /**
77
77
  * @description "boolean"
78
78
  */
79
- is_reserve: Nullable<boolean>
79
+ is_reserve: boolean | null
80
80
  /**
81
81
  * @description "boolean"
82
82
  */
83
- is_alone: Nullable<boolean>
83
+ is_alone: boolean | null
84
84
  /**
85
85
  * @description "character varying"
86
86
  */
87
- utm_campaign: Nullable<string>
87
+ utm_campaign: string | null
88
88
  /**
89
89
  * @description "character varying"
90
90
  */
91
- human_name: Nullable<string>
91
+ human_name: string | null
92
92
  /**
93
93
  * @description "character varying"
94
94
  */
95
- last_broadcast: Nullable<string>
95
+ last_broadcast: string | null
96
96
  /**
97
97
  * @description "character varying"
98
98
  */
99
- email: Nullable<string>
99
+ email: string | null
100
100
  /**
101
101
  * @description "character varying"
102
102
  */
103
- phone: Nullable<string>
103
+ phone: string | null
104
104
  /**
105
105
  * @description "character varying"
106
106
  */
107
- team_name: Nullable<string>
107
+ team_name: string | null
108
108
  /**
109
109
  * @description "character varying"
110
110
  */
111
- ads_from: Nullable<string>
111
+ ads_from: string | null
112
112
  /**
113
113
  * @description "character varying"
114
114
  */
115
- comment: Nullable<string>
115
+ comment: string | null
116
116
  /**
117
117
  * @description "character varying"
118
118
  */
119
- promocode: Nullable<string>
119
+ promocode: string | null
120
120
  /**
121
121
  * @description "character varying"
122
122
  */
123
- channel: Nullable<string>
123
+ channel: string | null
124
124
  /**
125
125
  * @description "character varying"
126
126
  */
127
- vkontakte: Nullable<string>
127
+ vkontakte: string | null
128
128
  /**
129
129
  * @description "character varying"
130
130
  */
131
- telegramBot: Nullable<string>
131
+ telegramBot: string | null
132
132
  /**
133
133
  * @description "character varying"
134
134
  */
135
- chatapp_id: Nullable<string>
135
+ chatapp_id: string | null
136
136
  /**
137
137
  * @description "character varying"
138
138
  */
139
- utm_term: Nullable<string>
139
+ utm_term: string | null
140
140
  /**
141
141
  * @description "character varying"
142
142
  */
143
- utm_source: Nullable<string>
143
+ utm_source: string | null
144
144
  /**
145
145
  * @description "character varying"
146
146
  */
147
- utm_medium: Nullable<string>
147
+ utm_medium: string | null
148
148
  /**
149
149
  * @description "character varying"
150
150
  */
151
- utm_content: Nullable<string>
151
+ utm_content: string | null
152
152
  }
package/source/role.d.ts CHANGED
@@ -10,13 +10,13 @@ type RoleRow = {
10
10
  /**
11
11
  * @description "timestamp with time zone"
12
12
  */
13
- time_updated: Nullable<string>
13
+ time_updated: string | null
14
14
  /**
15
15
  * @description "character varying"
16
16
  */
17
- name: 'admin' | 'manager' | 'default'
17
+ name: 'admin' | 'manager'
18
18
  /**
19
19
  * @description "character varying"
20
20
  */
21
- description: Nullable<string>
21
+ description: string | null
22
22
  }
package/source/rows.d.ts CHANGED
@@ -6,15 +6,15 @@ type ImageMediaRow = {
6
6
  /**
7
7
  * @description "integer"
8
8
  */
9
- width: Nullable<number>
9
+ width: number | null
10
10
  /**
11
11
  * @description "integer"
12
12
  */
13
- height: Nullable<number>
13
+ height: number | null
14
14
  /**
15
15
  * @description "timestamp with time zone"
16
16
  */
17
- time_updated: Nullable<string>
17
+ time_updated: string | null
18
18
  /**
19
19
  * @description "uuid"
20
20
  */
@@ -26,7 +26,7 @@ type ImageMediaRow = {
26
26
  /**
27
27
  * @description "character varying"
28
28
  */
29
- file_format: Nullable<string>
29
+ file_format: string | null
30
30
  }
31
31
 
32
32
  type MediaRow = {
@@ -41,21 +41,21 @@ type MediaRow = {
41
41
  /**
42
42
  * @description "timestamp with time zone"
43
43
  */
44
- time_updated: Nullable<string>
44
+ time_updated: string | null
45
45
  /**
46
46
  * @description "character varying"
47
47
  */
48
- title: Nullable<string>
48
+ title: string | null
49
49
  /**
50
50
  * @description "character varying"
51
51
  */
52
- cached_link: Nullable<string>
52
+ cached_link: string | null
53
53
  /**
54
54
  * @description "character varying"
55
55
  */
56
- description: Nullable<string>
56
+ description: string | null
57
57
  /**
58
58
  * @description "character varying"
59
59
  */
60
- path: Nullable<string>
60
+ path: string | null
61
61
  }
package/source/theme.d.ts CHANGED
@@ -42,13 +42,13 @@ type ThemeRow = {
42
42
  /**
43
43
  * @description "character varying"
44
44
  */
45
- short_description: Nullable<string>
45
+ short_description: string | null
46
46
  /**
47
47
  * @description "character varying"
48
48
  */
49
- description: Nullable<string>
49
+ description: string | null
50
50
  /**
51
51
  * @description "character varying"
52
52
  */
53
- name: Nullable<string>
53
+ name: string | null
54
54
  }
package/source/user.d.ts CHANGED
@@ -53,75 +53,75 @@ type UserRow = {
53
53
  /**
54
54
  * @description "timestamp with time zone"
55
55
  */
56
- time_updated: Nullable<string>
56
+ time_updated: string | null
57
57
 
58
58
  /**
59
59
  * @description "boolean"
60
60
  */
61
- is_active: Nullable<boolean>
61
+ is_active: boolean | null
62
62
 
63
63
  /**
64
64
  * @description "boolean"
65
65
  */
66
- is_superuser: Nullable<boolean>
66
+ is_superuser: boolean | null
67
67
 
68
68
  /**
69
69
  * @description "boolean"
70
70
  */
71
- is_verified: Nullable<boolean>
71
+ is_verified: boolean | null
72
72
 
73
73
  /**
74
74
  * @description "uuid"
75
75
  */
76
- image_id: Nullable<string>
76
+ image_id: string | null
77
77
 
78
78
  /**
79
79
  * @description "character varying"
80
80
  */
81
- mailru_link: Nullable<string>
81
+ mailru_link: string | null
82
82
 
83
83
  /**
84
84
  * @description "character varying"
85
85
  */
86
- telegram_id: Nullable<string>
86
+ telegram_id: string | null
87
87
 
88
88
  /**
89
89
  * @description "character varying"
90
90
  */
91
- hashed_password: Nullable<string>
91
+ hashed_password: string | null
92
92
 
93
93
  /**
94
94
  * @description "character varying"
95
95
  */
96
- telegram_data: Nullable<string>
96
+ telegram_data: string | null
97
97
 
98
98
  /**
99
99
  * @description "character varying"
100
100
  */
101
- third_name: Nullable<string>
101
+ third_name: string | null
102
102
 
103
103
  /**
104
104
  * @description "character varying"
105
105
  */
106
- phone: Nullable<string>
106
+ phone: string | null
107
107
 
108
108
  /**
109
109
  * @description "character varying"
110
110
  */
111
- first_name: Nullable<string>
111
+ first_name: string | null
112
112
 
113
113
  /**
114
114
  * @description "character varying"
115
115
  */
116
- last_name: Nullable<string>
116
+ last_name: string | null
117
117
 
118
118
  /**
119
119
  * @description "character varying"
120
120
  */
121
- email: Nullable<string>
121
+ email: string | null
122
122
 
123
123
  /**
124
124
  * @description "character varying"
125
125
  */
126
- gmail_link: Nullable<string>
126
+ gmail_link: string | null
127
127
  }
package/source/venue.d.ts CHANGED
@@ -35,69 +35,69 @@ type VenueRow = {
35
35
  /**
36
36
  * @description "timestamp with time zone"
37
37
  */
38
- time_updated: Nullable<string>
38
+ time_updated: string | null
39
39
  /**
40
40
  * @description "double precision"
41
41
  */
42
- longitude: Nullable<number>
42
+ longitude: number | null
43
43
  /**
44
44
  * @description "uuid"
45
45
  */
46
- city_id: Nullable<string>
46
+ city_id: string | null
47
47
  /**
48
48
  * @description "double precision"
49
49
  */
50
- latitude: Nullable<number>
50
+ latitude: number | null
51
51
  /**
52
52
  * @description "integer"
53
53
  */
54
- people_capacity: Nullable<number>
54
+ people_capacity: number | null
55
55
  /**
56
56
  * @description "integer"
57
57
  */
58
- team_capacity: Nullable<number>
58
+ team_capacity: number | null
59
59
  /**
60
60
  * @description "boolean"
61
61
  */
62
- is_adult: Nullable<boolean>
62
+ is_adult: boolean | null
63
63
  /**
64
64
  * @description "character varying"
65
65
  */
66
- name: Nullable<string>
66
+ name: string | null
67
67
  /**
68
68
  * @description "character varying"
69
69
  */
70
- house_number: Nullable<string>
70
+ house_number: string | null
71
71
  /**
72
72
  * @description "character varying"
73
73
  */
74
- comment: Nullable<string>
74
+ comment: string | null
75
75
  /**
76
76
  * @description "character varying"
77
77
  */
78
- comment_responsible: Nullable<string>
78
+ comment_responsible: string | null
79
79
  /**
80
80
  * @description "character varying"
81
81
  */
82
- comment_equipment: Nullable<string>
82
+ comment_equipment: string | null
83
83
  /**
84
84
  * @description "character varying"
85
85
  */
86
- street: Nullable<string>
86
+ street: string | null
87
87
  /**
88
88
  * @description "character varying"
89
89
  */
90
- game_time: Nullable<string>
90
+ game_time: string | null
91
91
  /**
92
92
  * @description "character varying"
93
93
  */
94
- floor: Nullable<string>
94
+ floor: string | null
95
95
  /**
96
96
  * @description "character varying"
97
97
  */
98
- metro: Nullable<string>
98
+ metro: string | null
99
99
  /**
100
100
  * @description "character varying"
101
101
  */
102
- location_info: Nullable<string>
102
+ location_info: string | null
103
103
  }