trand_common_v1 0.1.51 → 0.1.53

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.
@@ -16,14 +16,14 @@ export type CountryLanguage = {
16
16
  country_code: string;
17
17
  lang_code: string;
18
18
  };
19
- export type City = {
19
+ export type CityOption = {
20
20
  country_code: string;
21
21
  city_code: string;
22
22
  name: string;
23
- native: string | null;
24
23
  name_ko: string;
25
- description: string | null;
26
- description_ko: string | null;
24
+ native: string | null;
25
+ };
26
+ export type CityListAdmin = CityOption & {
27
27
  official_web: string | null;
28
28
  official_web_tour: string | null;
29
29
  youtube_official: string | null;
@@ -32,6 +32,15 @@ export type City = {
32
32
  tiktok_tour: string | null;
33
33
  instagram_official: string | null;
34
34
  instagram_tour: string | null;
35
+ google_map_url: string;
36
+ naver_map_url: string | null;
37
+ is_active: boolean;
38
+ is_display: boolean;
39
+ content_count: number;
40
+ };
41
+ export type City = CityListAdmin & {
42
+ description: string | null;
43
+ description_ko: string | null;
35
44
  instagram_tags: string | null;
36
45
  location: string;
37
46
  latitude: number | null;
@@ -39,12 +48,7 @@ export type City = {
39
48
  radius_m: number | null;
40
49
  address: string;
41
50
  address_native: string;
42
- google_map_url: string;
43
- naver_map_url: string | null;
44
51
  etc: string | null;
45
- is_active: boolean;
46
- is_display: boolean;
47
- content_count: number;
48
52
  thumbnail_main_1: string | null;
49
53
  thumbnail_main_2: string | null;
50
54
  thumbnail_main_3: string | null;
@@ -76,13 +80,6 @@ export type CityInsert = {
76
80
  export type CityUpdate = {
77
81
  city_code: string;
78
82
  } & Partial<Omit<City, "city_code">>;
79
- export type CityList = {
80
- city_code: string;
81
- name: string;
82
- country_code: string;
83
- name_ko: string;
84
- native: string | null;
85
- };
86
83
  export type CityImage = {
87
84
  city_code: string;
88
85
  order_num: number;
@@ -97,30 +94,34 @@ export type CityImageUpdate = {
97
94
  city_code: string;
98
95
  order_num: number;
99
96
  } & Partial<Omit<CityImage, "city_code" | "order_num">>;
100
- export type Street = {
97
+ export type StreetOption = {
101
98
  country_code: string;
102
99
  city_code: string;
103
100
  street_code: string;
104
101
  name: string;
105
102
  native: string | null;
106
103
  name_ko: string;
104
+ };
105
+ export type StreetListAdmin = StreetOption & {
107
106
  url: string | null;
108
107
  url_native: string | null;
109
- description: string | null;
110
- description_ko: string | null;
111
108
  youtube: string | null;
112
109
  instagram: string | null;
113
110
  instagram_tags: string | null;
111
+ google_map_url: string;
112
+ naver_map_url: string;
113
+ is_active: boolean;
114
+ is_display: boolean;
115
+ };
116
+ export type Street = StreetListAdmin & {
117
+ description: string | null;
118
+ description_ko: string | null;
114
119
  location: string;
115
120
  latitude: number | null;
116
121
  longitude: number | null;
117
122
  radius_m: number | null;
118
123
  address: string;
119
124
  address_native: string;
120
- google_map_url: string;
121
- naver_map_url: string;
122
- is_active: boolean;
123
- is_display: boolean;
124
125
  content_count: number;
125
126
  thumbnail_main_1: string | null;
126
127
  thumbnail_main_2: string | null;
@@ -168,30 +169,36 @@ export type StreetImageUpdate = {
168
169
  street_code: string;
169
170
  order_num: number;
170
171
  } & Partial<Omit<StreetImage, "street_code" | "order_num">>;
171
- export type Category = {
172
+ export type CategoryOption = {
172
173
  target_country_code: string;
173
174
  upper_category_code: string | null;
174
175
  category_code: string;
175
176
  order_num: number;
176
177
  name: string;
177
178
  name_ko: string | null;
179
+ is_active: boolean;
180
+ is_display: boolean;
181
+ };
182
+ export type CategoryListAdmin = CategoryOption & {
183
+ is_open_always: boolean;
184
+ icon_url: string | null;
185
+ img_url: string | null;
186
+ content_count: number;
187
+ is_active: boolean;
188
+ is_display: boolean;
189
+ deactivated_at: string | null;
190
+ deactivated_by: string | null;
191
+ };
192
+ export type Category = CategoryListAdmin & {
178
193
  description: string | null;
179
194
  description_ko: string | null;
180
- is_open_always: boolean;
181
195
  start_month: number;
182
196
  start_day: number;
183
197
  end_month: number;
184
198
  end_day: number;
185
- icon_url: string | null;
186
- img_url: string | null;
187
- content_count: number;
188
199
  created_at: string;
189
200
  created_by: string | null;
190
201
  updated_at: string;
191
- is_active: boolean;
192
- is_display: boolean;
193
- deactivated_at: string | null;
194
- deactivated_by: string | null;
195
202
  thumbnail_main_1: string | null;
196
203
  thumbnail_main_2: string | null;
197
204
  thumbnail_main_3: string | null;
@@ -207,16 +214,6 @@ export type Category = {
207
214
  thumbnail_8: string | null;
208
215
  thumbnail_9: string | null;
209
216
  };
210
- export type CategoryOption = {
211
- target_country_code: string;
212
- upper_category_code: string | null;
213
- category_code: string;
214
- order_num: number;
215
- name: string;
216
- name_ko: string | null;
217
- is_active: boolean;
218
- is_display: boolean;
219
- };
220
217
  export type CategoryInsert = {
221
218
  target_country_code: string;
222
219
  category_code: string;
@@ -243,17 +240,21 @@ export type CategoryI18nUpdate = {
243
240
  lang_code: string;
244
241
  } & Partial<Omit<CategoryI18n, "category_code" | "lang_code">>;
245
242
  export type CategoryI18nMap = Record<string, string>;
246
- export type SpecialTag = {
243
+ export type SpecialTagOption = {
247
244
  target_country_code: string;
248
245
  special_tag: string;
249
246
  name: string;
250
247
  native: string | null;
251
- img_url: string | null;
252
- description: string | null;
253
- url: string | null;
248
+ };
249
+ export type SpecialTagListAdmin = SpecialTagOption & {
254
250
  is_active: boolean;
255
251
  is_display: boolean;
256
252
  content_count: number;
253
+ };
254
+ export type SpecialTag = SpecialTagListAdmin & {
255
+ img_url: string | null;
256
+ description: string | null;
257
+ url: string | null;
257
258
  thumbnail_main_1: string | null;
258
259
  thumbnail_main_2: string | null;
259
260
  thumbnail_main_3: string | null;
@@ -372,7 +373,7 @@ export type PreYouTubeVideoInsert = {
372
373
  export type PreYouTubeVideoUpdate = {
373
374
  video_id: string;
374
375
  } & Partial<Omit<PreYouTubeVideo, "video_id">>;
375
- export type YouTubeVideo = {
376
+ export type YouTubeVideoListAdmin = {
376
377
  video_id: string;
377
378
  lang_code: string | null;
378
379
  youtube_url: string;
@@ -381,6 +382,14 @@ export type YouTubeVideo = {
381
382
  street_codes: string[] | null;
382
383
  content_codes: string[] | null;
383
384
  title: string | null;
385
+ duration: string | null;
386
+ view_count: number;
387
+ like_count: number;
388
+ comment_count: number;
389
+ is_admin_recommended: boolean;
390
+ is_display: boolean;
391
+ };
392
+ export type YouTubeVideo = YouTubeVideoListAdmin & {
384
393
  thumbnail_default: string | null;
385
394
  thumbnail_medium: string | null;
386
395
  thumbnail_high: string | null;
@@ -389,15 +398,9 @@ export type YouTubeVideo = {
389
398
  thumbnails: JSON | null;
390
399
  published_at: string | null;
391
400
  description: string | null;
392
- duration: string | null;
393
401
  tags: string[] | null;
394
- view_count: number;
395
- like_count: number;
396
- comment_count: number;
397
402
  keywords: string[] | null;
398
403
  timelines: JSON[] | null;
399
- is_admin_recommended: boolean;
400
- is_display: boolean;
401
404
  };
402
405
  export type YouTubeVideoInsert = {
403
406
  video_id: string;
@@ -509,40 +512,42 @@ export type PreYouTubeChannelInsert = {
509
512
  export type PreYouTubeChannelUpdate = {
510
513
  channel_id: string;
511
514
  } & Partial<Omit<PreYouTubeChannel, "channel_id">>;
512
- export type YouTubeChannel = {
515
+ export type YouTubeChannelListAdmin = {
513
516
  channel_id: string;
514
517
  country_code: string;
515
518
  lang_code: string | null;
519
+ title: string;
520
+ ver: number | null;
521
+ country_info: string | null;
522
+ target_country_codes: string[];
523
+ name: string | null;
524
+ email: string | null;
525
+ tiktok: string | null;
526
+ facebook: string | null;
527
+ instagram: string | null;
528
+ is_active: boolean;
529
+ is_deactivated: boolean;
530
+ deactivated_at: string | null;
531
+ deactivated_by: string | null;
532
+ };
533
+ export type YouTubeChannel = YouTubeChannelListAdmin & {
516
534
  api_url: string;
517
535
  response_etag: string;
518
536
  item_etag: string;
519
537
  published_at: string | null;
520
- title: string;
521
538
  description: string | null;
522
539
  privacy_status: string;
523
- ver: number | null;
524
540
  thumbnail_default: string | null;
525
541
  thumbnail_medium: string | null;
526
542
  thumbnail_high: string | null;
527
543
  thumbnails: JSON | null;
528
544
  banner: string | null;
529
- country_info: string | null;
530
- target_country_codes: string[];
531
545
  keywords: string[];
532
- name: string | null;
533
- email: string | null;
534
- tiktok: string | null;
535
- facebook: string | null;
536
- instagram: string | null;
537
- is_active: boolean;
538
546
  registered_at: string;
539
547
  updated_at: string;
540
548
  api_checked_at: string;
541
549
  is_public: boolean;
542
550
  last_fetched_at: string;
543
- is_deactivated: boolean;
544
- deactivated_at: string | null;
545
- deactivated_by: string | null;
546
551
  };
547
552
  export type YouTubeChannelInsert = {
548
553
  channel_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trand_common_v1",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "description": "Common modules for Trand API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "trand"