@shakerquiz/utilities 0.3.31 → 0.3.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakerquiz/utilities",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "author": "yurkimus <yurkimus@gmail.com>",
5
5
  "license": "ISC",
6
6
  "scripts": {
@@ -67,6 +67,18 @@ type Lineup = keyof typeof import('./enumerations/lineups.js').Lineups
67
67
  type Affilation =
68
68
  keyof typeof import('./enumerations/affilations.js').Affilations
69
69
 
70
+ /**
71
+ * Schemas
72
+ */
73
+
74
+ type CityColumn = keyof typeof import('./schemas/city.js').CityColumns
75
+ type GameColumn = keyof typeof import('./schemas/game.js').GameColumns
76
+ type RegistrationColumn =
77
+ keyof typeof import('./schemas/registration.js').RegistrationColumns
78
+ type ThemeColumn = keyof typeof import('./schemas/theme.js').ThemeColumns
79
+ type UserColumn = keyof typeof import('./schemas/user.js').UserColumns
80
+ type VenueColumn = keyof typeof import('./schemas/venue.js').VenueColumns
81
+
70
82
  /**
71
83
  * Misc
72
84
  */
package/source/index.d.ts CHANGED
@@ -36,3 +36,10 @@ export * from './functions/fetch.js'
36
36
  export * from './functions/origin.js'
37
37
  export * from './functions/pathname.js'
38
38
  export * from './functions/url.js'
39
+
40
+ export * from './schemas/city.js'
41
+ export * from './schemas/game.js'
42
+ export * from './schemas/registration.js'
43
+ export * from './schemas/theme.js'
44
+ export * from './schemas/user.js'
45
+ export * from './schemas/venue.js'
package/source/index.js CHANGED
@@ -36,3 +36,10 @@ export * from './functions/fetch.js'
36
36
  export * from './functions/origin.js'
37
37
  export * from './functions/pathname.js'
38
38
  export * from './functions/url.js'
39
+
40
+ export * from './schemas/city.js'
41
+ export * from './schemas/game.js'
42
+ export * from './schemas/registration.js'
43
+ export * from './schemas/theme.js'
44
+ export * from './schemas/user.js'
45
+ export * from './schemas/venue.js'
@@ -0,0 +1,44 @@
1
+ export namespace CityColumns {
2
+ let address: "address";
3
+ let alias: "alias";
4
+ let chatapp_category: "chatapp_category";
5
+ let chatapp_legacy: "chatapp_legacy";
6
+ let chatapp_line: "chatapp_line";
7
+ let chatapp_tag: "chatapp_tag";
8
+ let chatapp_user: "chatapp_user";
9
+ let country: "country";
10
+ let currency: "currency";
11
+ let custom_html: "custom_html";
12
+ let custom_script: "custom_script";
13
+ let description: "description";
14
+ let email: "email";
15
+ let game_time: "game_time";
16
+ let id: "id";
17
+ let inst_comment: "inst_comment";
18
+ let inst_link: "inst_link";
19
+ let inst_login: "inst_login";
20
+ let inst_password: "inst_password";
21
+ let is_default: "is_default";
22
+ let is_franchise: "is_franchise";
23
+ let max_members_count: "max_members_count";
24
+ let meta_description: "meta_description";
25
+ let meta_title: "meta_title";
26
+ let min_members_count: "min_members_count";
27
+ let name: "name";
28
+ let phone: "phone";
29
+ let price: "price";
30
+ let region: "region";
31
+ let telegram_chat_id: "telegram_chat_id";
32
+ let tg_comment: "tg_comment";
33
+ let tg_link: "tg_link";
34
+ let tg_login: "tg_login";
35
+ let tg_password: "tg_password";
36
+ let time_created: "time_created";
37
+ let time_updated: "time_updated";
38
+ let timezone: "timezone";
39
+ let title: "title";
40
+ let vk_comment: "vk_comment";
41
+ let vk_group_id: "vk_group_id";
42
+ let vk_link: "vk_link";
43
+ let yandex_metrica: "yandex_metrica";
44
+ }
@@ -0,0 +1,44 @@
1
+ export var CityColumns = /** @type {const} */ ({
2
+ address: 'address',
3
+ alias: 'alias',
4
+ chatapp_category: 'chatapp_category',
5
+ chatapp_legacy: 'chatapp_legacy',
6
+ chatapp_line: 'chatapp_line',
7
+ chatapp_tag: 'chatapp_tag',
8
+ chatapp_user: 'chatapp_user',
9
+ country: 'country',
10
+ currency: 'currency',
11
+ custom_html: 'custom_html',
12
+ custom_script: 'custom_script',
13
+ description: 'description',
14
+ email: 'email',
15
+ game_time: 'game_time',
16
+ id: 'id',
17
+ inst_comment: 'inst_comment',
18
+ inst_link: 'inst_link',
19
+ inst_login: 'inst_login',
20
+ inst_password: 'inst_password',
21
+ is_default: 'is_default',
22
+ is_franchise: 'is_franchise',
23
+ max_members_count: 'max_members_count',
24
+ meta_description: 'meta_description',
25
+ meta_title: 'meta_title',
26
+ min_members_count: 'min_members_count',
27
+ name: 'name',
28
+ phone: 'phone',
29
+ price: 'price',
30
+ region: 'region',
31
+ telegram_chat_id: 'telegram_chat_id',
32
+ tg_comment: 'tg_comment',
33
+ tg_link: 'tg_link',
34
+ tg_login: 'tg_login',
35
+ tg_password: 'tg_password',
36
+ time_created: 'time_created',
37
+ time_updated: 'time_updated',
38
+ timezone: 'timezone',
39
+ title: 'title',
40
+ vk_comment: 'vk_comment',
41
+ vk_group_id: 'vk_group_id',
42
+ vk_link: 'vk_link',
43
+ yandex_metrica: 'yandex_metrica',
44
+ })
@@ -0,0 +1,26 @@
1
+ export namespace GameColumns {
2
+ let alias: "alias";
3
+ let city_id: "city_id";
4
+ let created_by_id: "created_by_id";
5
+ let currency: "currency";
6
+ let description: "description";
7
+ let event_time: "event_time";
8
+ let game_pack_id: "game_pack_id";
9
+ let id: "id";
10
+ let image_id: "image_id";
11
+ let location_id: "location_id";
12
+ let max_members_count: "max_members_count";
13
+ let min_members_count: "min_members_count";
14
+ let name: "name";
15
+ let number: "number";
16
+ let owner_id: "owner_id";
17
+ let personal_comment: "personal_comment";
18
+ let price: "price";
19
+ let short_description: "short_description";
20
+ let status: "status";
21
+ let theme_id: "theme_id";
22
+ let time_created: "time_created";
23
+ let time_updated: "time_updated";
24
+ let timezone: "timezone";
25
+ let weekday: "weekday";
26
+ }
@@ -0,0 +1,26 @@
1
+ export var GameColumns = /** @type {const} */ ({
2
+ alias: 'alias',
3
+ city_id: 'city_id',
4
+ created_by_id: 'created_by_id',
5
+ currency: 'currency',
6
+ description: 'description',
7
+ event_time: 'event_time',
8
+ game_pack_id: 'game_pack_id',
9
+ id: 'id',
10
+ image_id: 'image_id',
11
+ location_id: 'location_id',
12
+ max_members_count: 'max_members_count',
13
+ min_members_count: 'min_members_count',
14
+ name: 'name',
15
+ number: 'number',
16
+ owner_id: 'owner_id',
17
+ personal_comment: 'personal_comment',
18
+ price: 'price',
19
+ short_description: 'short_description',
20
+ status: 'status',
21
+ theme_id: 'theme_id',
22
+ time_created: 'time_created',
23
+ time_updated: 'time_updated',
24
+ timezone: 'timezone',
25
+ weekday: 'weekday',
26
+ })
@@ -0,0 +1,34 @@
1
+ export namespace RegistrationColumns {
2
+ let ads_from: "ads_from";
3
+ let change_people_count: "change_people_count";
4
+ let channel: "channel";
5
+ let chatapp_id: "chatapp_id";
6
+ let comment: "comment";
7
+ let email: "email";
8
+ let event_id: "event_id";
9
+ let fact_people_count: "fact_people_count";
10
+ let human_name: "human_name";
11
+ let id: "id";
12
+ let is_actual_presence: "is_actual_presence";
13
+ let is_alone: "is_alone";
14
+ let is_birthday: "is_birthday";
15
+ let is_canceled: "is_canceled";
16
+ let is_confirm: "is_confirm";
17
+ let is_extensible: "is_extensible";
18
+ let is_first: "is_first";
19
+ let is_reserve: "is_reserve";
20
+ let last_broadcast: "last_broadcast";
21
+ let people_count: "people_count";
22
+ let phone: "phone";
23
+ let promocode: "promocode";
24
+ let team_name: "team_name";
25
+ let telegramBot: "telegramBot";
26
+ let time_created: "time_created";
27
+ let time_updated: "time_updated";
28
+ let utm_campaign: "utm_campaign";
29
+ let utm_content: "utm_content";
30
+ let utm_medium: "utm_medium";
31
+ let utm_source: "utm_source";
32
+ let utm_term: "utm_term";
33
+ let vkontakte: "vkontakte";
34
+ }
@@ -0,0 +1,34 @@
1
+ export var RegistrationColumns = /** @type {const} */ ({
2
+ ads_from: 'ads_from',
3
+ change_people_count: 'change_people_count',
4
+ channel: 'channel',
5
+ chatapp_id: 'chatapp_id',
6
+ comment: 'comment',
7
+ email: 'email',
8
+ event_id: 'event_id',
9
+ fact_people_count: 'fact_people_count',
10
+ human_name: 'human_name',
11
+ id: 'id',
12
+ is_actual_presence: 'is_actual_presence',
13
+ is_alone: 'is_alone',
14
+ is_birthday: 'is_birthday',
15
+ is_canceled: 'is_canceled',
16
+ is_confirm: 'is_confirm',
17
+ is_extensible: 'is_extensible',
18
+ is_first: 'is_first',
19
+ is_reserve: 'is_reserve',
20
+ last_broadcast: 'last_broadcast',
21
+ people_count: 'people_count',
22
+ phone: 'phone',
23
+ promocode: 'promocode',
24
+ team_name: 'team_name',
25
+ telegramBot: 'telegramBot',
26
+ time_created: 'time_created',
27
+ time_updated: 'time_updated',
28
+ utm_campaign: 'utm_campaign',
29
+ utm_content: 'utm_content',
30
+ utm_medium: 'utm_medium',
31
+ utm_source: 'utm_source',
32
+ utm_term: 'utm_term',
33
+ vkontakte: 'vkontakte',
34
+ })
@@ -0,0 +1,9 @@
1
+ export namespace ThemeColumns {
2
+ let description: "description";
3
+ let id: "id";
4
+ let image_id: "image_id";
5
+ let name: "name";
6
+ let short_description: "short_description";
7
+ let time_created: "time_created";
8
+ let time_updated: "time_updated";
9
+ }
@@ -0,0 +1,9 @@
1
+ export var ThemeColumns = /** @type {const} */ ({
2
+ description: 'description',
3
+ id: 'id',
4
+ image_id: 'image_id',
5
+ name: 'name',
6
+ short_description: 'short_description',
7
+ time_created: 'time_created',
8
+ time_updated: 'time_updated',
9
+ })
@@ -0,0 +1,20 @@
1
+ export namespace UserColumns {
2
+ let email: "email";
3
+ let first_name: "first_name";
4
+ let gmail_link: "gmail_link";
5
+ let hashed_password: "hashed_password";
6
+ let id: "id";
7
+ let image_id: "image_id";
8
+ let is_active: "is_active";
9
+ let is_superuser: "is_superuser";
10
+ let is_verified: "is_verified";
11
+ let last_name: "last_name";
12
+ let mailru_link: "mailru_link";
13
+ let phone: "phone";
14
+ let role_id: "role_id";
15
+ let telegram_data: "telegram_data";
16
+ let telegram_id: "telegram_id";
17
+ let third_name: "third_name";
18
+ let time_created: "time_created";
19
+ let time_updated: "time_updated";
20
+ }
@@ -0,0 +1,20 @@
1
+ export var UserColumns = /** @type {const} */ ({
2
+ email: 'email',
3
+ first_name: 'first_name',
4
+ gmail_link: 'gmail_link',
5
+ hashed_password: 'hashed_password',
6
+ id: 'id',
7
+ image_id: 'image_id',
8
+ is_active: 'is_active',
9
+ is_superuser: 'is_superuser',
10
+ is_verified: 'is_verified',
11
+ last_name: 'last_name',
12
+ mailru_link: 'mailru_link',
13
+ phone: 'phone',
14
+ role_id: 'role_id',
15
+ telegram_data: 'telegram_data',
16
+ telegram_id: 'telegram_id',
17
+ third_name: 'third_name',
18
+ time_created: 'time_created',
19
+ time_updated: 'time_updated',
20
+ })
@@ -0,0 +1,21 @@
1
+ export namespace VenueColumns {
2
+ let city_id: "city_id";
3
+ let comment: "comment";
4
+ let comment_equipment: "comment_equipment";
5
+ let comment_responsible: "comment_responsible";
6
+ let floor: "floor";
7
+ let game_time: "game_time";
8
+ let house_number: "house_number";
9
+ let id: "id";
10
+ let is_adult: "is_adult";
11
+ let latitude: "latitude";
12
+ let location_info: "location_info";
13
+ let longitude: "longitude";
14
+ let metro: "metro";
15
+ let name: "name";
16
+ let people_capacity: "people_capacity";
17
+ let street: "street";
18
+ let team_capacity: "team_capacity";
19
+ let time_created: "time_created";
20
+ let time_updated: "time_updated";
21
+ }
@@ -0,0 +1,21 @@
1
+ export var VenueColumns = /** @type {const} */ ({
2
+ city_id: 'city_id',
3
+ comment: 'comment',
4
+ comment_equipment: 'comment_equipment',
5
+ comment_responsible: 'comment_responsible',
6
+ floor: 'floor',
7
+ game_time: 'game_time',
8
+ house_number: 'house_number',
9
+ id: 'id',
10
+ is_adult: 'is_adult',
11
+ latitude: 'latitude',
12
+ location_info: 'location_info',
13
+ longitude: 'longitude',
14
+ metro: 'metro',
15
+ name: 'name',
16
+ people_capacity: 'people_capacity',
17
+ street: 'street',
18
+ team_capacity: 'team_capacity',
19
+ time_created: 'time_created',
20
+ time_updated: 'time_updated',
21
+ })