trand_common_v1 0.2.80 → 0.2.82

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.
@@ -66,8 +66,38 @@ export type ResponseItemsPaired<TMap, TContent> = {
66
66
  export type ResponseItemsFlat<TContent> = {
67
67
  items: TContent[];
68
68
  } & ResponseListBase;
69
+ type CityInfoBase = {
70
+ city_code: string;
71
+ name: string;
72
+ native: string;
73
+ name_ko: string;
74
+ name_i18n: string;
75
+ description_i18n: string;
76
+ };
77
+ type StreetInfoBase = {
78
+ street_code: string;
79
+ name: string;
80
+ native: string;
81
+ name_ko: string;
82
+ name_i18n: string;
83
+ description_i18n: string;
84
+ };
85
+ type CategoryInfoBase = {
86
+ category_code: string;
87
+ name: string;
88
+ name_ko: string;
89
+ name_i18n: string;
90
+ description_i18n: string;
91
+ };
92
+ type StagInfoBase = {
93
+ stag_code: string;
94
+ name: string;
95
+ native: string;
96
+ name_i18n: string;
97
+ description_i18n: string;
98
+ };
69
99
  /**
70
- * Response City Detail For Admin
100
+ * City Detail - Admin
71
101
  */
72
102
  export type ResponseCityDetailForAdmin = {
73
103
  content: TCityDetail;
@@ -79,7 +109,44 @@ export type ResponseCityDetailForAdmin = {
79
109
  mapCityInstagram?: ResponseItemsFlat<TMapCityInstagram>;
80
110
  };
81
111
  /**
82
- * Response City For Public
112
+ * City Street List - Public
113
+ */
114
+ export type ResponseStreetListForPublic = {
115
+ cityInfo: CityInfoBase;
116
+ items: TStreetListForCityDetail[];
117
+ } & ResponseListBase;
118
+ /**
119
+ * City YouTube Video List - Public
120
+ */
121
+ export type ResponseCityYouTubeVideoListForPublic = {
122
+ cityInfo: CityInfoBase;
123
+ items: Array<{
124
+ map: TMapCityYouTubeVideo;
125
+ content: TCompletedYouTubeVideoListForPublicFront;
126
+ }>;
127
+ } & ResponseListBase;
128
+ /**
129
+ * City YouTube Shorts List - Public
130
+ */
131
+ export type ResponseCityYouTubeVideoShortsListForPublic = {
132
+ cityInfo: CityInfoBase;
133
+ items: Array<{
134
+ map: TMapCityYouTubeVideo;
135
+ content: TCompletedYouTubeVideoListForPublicFront;
136
+ }>;
137
+ } & ResponseListBase;
138
+ /**
139
+ * City Content List - Public
140
+ */
141
+ export type ResponseCityContentListForPublic = {
142
+ cityInfo: CityInfoBase;
143
+ items: Array<{
144
+ map: TMapCityContent;
145
+ content: TContentDetail;
146
+ }>;
147
+ } & ResponseListBase;
148
+ /**
149
+ * City Detail - Public
83
150
  */
84
151
  export type ResponseCityDetailForPublic = {
85
152
  content: TCityDetail;
@@ -87,14 +154,14 @@ export type ResponseCityDetailForPublic = {
87
154
  i18n?: TCityI18n;
88
155
  metadataI18n?: TCityMetadataI18n;
89
156
  categories?: TCategoryListForPublic[];
90
- streets?: TStreetListForCityDetail[];
91
- mapCityContent?: ResponseItemsPaired<TMapCityContent, TContentDetail>;
92
- mapCityYouTubeVideo?: ResponseItemsPaired<TMapCityYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
93
- mapCityYouTubeVideoShorts?: ResponseItemsPaired<TMapCityYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
157
+ streets?: ResponseStreetListForPublic;
158
+ mapCityContent?: ResponseCityContentListForPublic;
159
+ mapCityYouTubeVideo?: ResponseCityYouTubeVideoListForPublic;
160
+ mapCityYouTubeVideoShorts?: ResponseCityYouTubeVideoShortsListForPublic;
94
161
  mapCityInstagram?: ResponseItemsPaired<TMapCityInstagram, TInstagramContent>;
95
162
  };
96
163
  /**
97
- * Response Street Detail For Admin
164
+ * Street Detail - Admin
98
165
  */
99
166
  export type ResponseStreetDetailForAdmin = {
100
167
  content: TStreetDetail;
@@ -106,7 +173,40 @@ export type ResponseStreetDetailForAdmin = {
106
173
  mapStreetInstagram?: ResponseItemsFlat<TMapStreetInstagram>;
107
174
  };
108
175
  /**
109
- * Response Street Detail For Public
176
+ * Street YouTube Video List - Public
177
+ */
178
+ export type ResponseStreetYouTubeVideoListForPublic = {
179
+ cityInfo?: CityInfoBase;
180
+ streetInfo?: StreetInfoBase;
181
+ items: Array<{
182
+ map: TMapStreetYouTubeVideo;
183
+ content: TCompletedYouTubeVideoListForPublicFront;
184
+ }>;
185
+ } & ResponseListBase;
186
+ /**
187
+ * Street YouTube Shorts List - Public
188
+ */
189
+ export type ResponseStreetYouTubeVideoShortsListForPublic = {
190
+ cityInfo?: CityInfoBase;
191
+ streetInfo?: StreetInfoBase;
192
+ items: Array<{
193
+ map: TMapStreetYouTubeVideo;
194
+ content: TCompletedYouTubeVideoListForPublicFront;
195
+ }>;
196
+ } & ResponseListBase;
197
+ /**
198
+ * Street Content List - Public
199
+ */
200
+ export type ResponseStreetContentListForPublic = {
201
+ cityInfo?: CityInfoBase;
202
+ streetInfo?: StreetInfoBase;
203
+ items: Array<{
204
+ map: TMapStreetContent;
205
+ content: TContentDetail;
206
+ }>;
207
+ } & ResponseListBase;
208
+ /**
209
+ * Street Detail - Public
110
210
  */
111
211
  export type ResponseStreetDetailForPublic = {
112
212
  content: TStreetDetail;
@@ -119,13 +219,13 @@ export type ResponseStreetDetailForPublic = {
119
219
  images?: TStreetImage[];
120
220
  i18n?: TStreetI18n;
121
221
  metadataI18n?: TStreetMetadataI18n;
122
- mapStreetContent?: ResponseItemsPaired<TMapStreetContent, TContentDetail>;
123
- mapStreetYouTubeVideo?: ResponseItemsPaired<TMapStreetYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
124
- mapStreetYouTubeVideoShorts?: ResponseItemsPaired<TMapStreetYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
222
+ mapStreetContent?: ResponseStreetContentListForPublic;
223
+ mapStreetYouTubeVideo?: ResponseStreetYouTubeVideoListForPublic;
224
+ mapStreetYouTubeVideoShorts?: ResponseStreetYouTubeVideoShortsListForPublic;
125
225
  mapStreetInstagram?: ResponseItemsPaired<TMapStreetInstagram, TInstagramContent>;
126
226
  };
127
227
  /**
128
- * Response Category Detail For Admin
228
+ * Category Detail - Admin
129
229
  */
130
230
  export type ResponseCategoryDetailForAdmin = {
131
231
  content: TCategoryDetail;
@@ -137,7 +237,40 @@ export type ResponseCategoryDetailForAdmin = {
137
237
  mapCategoryInstagram?: ResponseItemsFlat<TMapCategoryInstagram>;
138
238
  };
139
239
  /**
140
- * Response Category Detail For Public
240
+ * Category YouTube Video List - Public
241
+ */
242
+ export type ResponseCategoryYouTubeVideoListForPublic = {
243
+ cityInfo?: CityInfoBase;
244
+ categoryInfo?: CategoryInfoBase;
245
+ items: Array<{
246
+ map: TMapCategoryYouTubeVideo;
247
+ content: TCompletedYouTubeVideoListForPublicFront;
248
+ }>;
249
+ } & ResponseListBase;
250
+ /**
251
+ * Category YouTube Shorts List - Public
252
+ */
253
+ export type ResponseCategoryYouTubeVideoShortsListForPublic = {
254
+ cityInfo?: CityInfoBase;
255
+ categoryInfo?: CategoryInfoBase;
256
+ items: Array<{
257
+ map: TMapCategoryYouTubeVideo;
258
+ content: TCompletedYouTubeVideoListForPublicFront;
259
+ }>;
260
+ } & ResponseListBase;
261
+ /**
262
+ * Category Content List - Public
263
+ */
264
+ export type ResponseCategoryContentListForPublic = {
265
+ cityInfo?: CityInfoBase;
266
+ categoryInfo?: CategoryInfoBase;
267
+ items: Array<{
268
+ map: TMapCategoryContent;
269
+ content: TContentDetail;
270
+ }>;
271
+ } & ResponseListBase;
272
+ /**
273
+ * Category Detail - Public
141
274
  */
142
275
  export type ResponseCategoryDetailForPublic = {
143
276
  content: TCategoryDetail;
@@ -150,13 +283,13 @@ export type ResponseCategoryDetailForPublic = {
150
283
  subCategories?: TCategoryDetail[];
151
284
  i18n?: TCategoryI18n;
152
285
  metadataI18n?: TCategoryMetadataI18n;
153
- mapCategoryContent?: ResponseItemsPaired<TMapCategoryContent, TContentDetail>;
154
- mapCategoryYouTubeVideo?: ResponseItemsPaired<TMapCategoryYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
155
- mapCategoryYouTubeVideoShorts?: ResponseItemsPaired<TMapCategoryYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
286
+ mapCategoryContent?: ResponseCategoryContentListForPublic;
287
+ mapCategoryYouTubeVideo?: ResponseCategoryYouTubeVideoListForPublic;
288
+ mapCategoryYouTubeVideoShorts?: ResponseCategoryYouTubeVideoShortsListForPublic;
156
289
  mapCategoryInstagram?: ResponseItemsPaired<TMapCategoryInstagram, TInstagramContent>;
157
290
  };
158
291
  /**
159
- * Response Stag Detail For Admin
292
+ * Stag Detail - Admin
160
293
  */
161
294
  export type ResponseStagDetailForAdmin = {
162
295
  content: TStagDetail;
@@ -168,7 +301,40 @@ export type ResponseStagDetailForAdmin = {
168
301
  mapStagInstagram?: ResponseItemsFlat<TMapStagInstagram>;
169
302
  };
170
303
  /**
171
- * Response Stag Detail For Public
304
+ * Stag YouTube Video List - Public
305
+ */
306
+ export type ResponseStagYouTubeVideoListForPublic = {
307
+ cityInfo?: CityInfoBase;
308
+ stagInfo?: StagInfoBase;
309
+ items: Array<{
310
+ map: TMapStagYouTubeVideo;
311
+ content: TCompletedYouTubeVideoListForPublicFront;
312
+ }>;
313
+ } & ResponseListBase;
314
+ /**
315
+ * Stag YouTube Shorts List - Public
316
+ */
317
+ export type ResponseStagYouTubeVideoShortsListForPublic = {
318
+ cityInfo?: CityInfoBase;
319
+ stagInfo?: StagInfoBase;
320
+ items: Array<{
321
+ map: TMapStagYouTubeVideo;
322
+ content: TCompletedYouTubeVideoListForPublicFront;
323
+ }>;
324
+ } & ResponseListBase;
325
+ /**
326
+ * Stag Content List - Public
327
+ */
328
+ export type ResponseStagContentListForPublic = {
329
+ cityInfo?: CityInfoBase;
330
+ stagInfo?: StagInfoBase;
331
+ items: Array<{
332
+ map: TMapStagContent;
333
+ content: TContentDetail;
334
+ }>;
335
+ } & ResponseListBase;
336
+ /**
337
+ * Stag Detail - Public
172
338
  */
173
339
  export type ResponseStagDetailForPublic = {
174
340
  content: TStagDetail;
@@ -181,13 +347,13 @@ export type ResponseStagDetailForPublic = {
181
347
  images?: TStagImage[];
182
348
  i18n?: TStagI18n;
183
349
  metadataI18n?: TStagMetadataI18n;
184
- mapStagContent?: ResponseItemsPaired<TMapStagContent, TContentDetail>;
185
- mapStagYouTubeVideo?: ResponseItemsPaired<TMapStagYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
186
- mapStagYouTubeVideoShorts?: ResponseItemsPaired<TMapStagYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
350
+ mapStagContent?: ResponseStagContentListForPublic;
351
+ mapStagYouTubeVideo?: ResponseStagYouTubeVideoListForPublic;
352
+ mapStagYouTubeVideoShorts?: ResponseStagYouTubeVideoShortsListForPublic;
187
353
  mapStagInstagram?: ResponseItemsPaired<TMapStagInstagram, TInstagramContent>;
188
354
  };
189
355
  /**
190
- * Response Content Detail For Admin
356
+ * Content Detail - Admin
191
357
  */
192
358
  export type ResponseContentDetailForAdmin = {
193
359
  content: TContentDetail;
@@ -209,7 +375,7 @@ export type ResponseContentDetailForAdmin = {
209
375
  mapContentTag?: TMapTagContent[];
210
376
  };
211
377
  /**
212
- * Response Content Detail For Public
378
+ * Content Detail - Public
213
379
  */
214
380
  export type ResponseContentDetailForPublic = {
215
381
  content: TContentDetail;
@@ -226,7 +392,7 @@ export type ResponseContentDetailForPublic = {
226
392
  metadataI18n?: TContentMetadataI18n;
227
393
  keyword?: TContentKeyword[];
228
394
  gpPhoto?: TContentGPPhoto[];
229
- mapContentCity?: {
395
+ mapContentCity?: Array<{
230
396
  map: TMapCityContent;
231
397
  city: {
232
398
  city_code: string;
@@ -237,8 +403,8 @@ export type ResponseContentDetailForPublic = {
237
403
  saved_count: number;
238
404
  shared_count: number;
239
405
  };
240
- }[];
241
- mapContentStreet?: {
406
+ }>;
407
+ mapContentStreet?: Array<{
242
408
  map: TMapStreetContent;
243
409
  street: {
244
410
  city_code: string;
@@ -250,8 +416,8 @@ export type ResponseContentDetailForPublic = {
250
416
  saved_count: number;
251
417
  shared_count: number;
252
418
  };
253
- }[];
254
- mapContentCategory?: {
419
+ }>;
420
+ mapContentCategory?: Array<{
255
421
  map: TMapCategoryContent;
256
422
  category: {
257
423
  target_country_code: string;
@@ -263,7 +429,7 @@ export type ResponseContentDetailForPublic = {
263
429
  saved_count: number;
264
430
  shared_count: number;
265
431
  };
266
- }[];
432
+ }>;
267
433
  mapContentInstagram?: ResponseItemsPaired<TMapContentInstagram, TInstagramContent>;
268
434
  mapContentYouTubeVideo?: ResponseItemsPaired<TMapContentYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
269
435
  mapContentYouTubeVideoShorts?: ResponseItemsPaired<TMapContentYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
@@ -271,7 +437,43 @@ export type ResponseContentDetailForPublic = {
271
437
  mapContentTag?: ResponseItemsPaired<TMapTagContent, TTag>;
272
438
  };
273
439
  /**
274
- * Response Completed YouTube Video Detail For Admin
440
+ * Content YouTube Video List - Public
441
+ */
442
+ export type ResponseContentYouTubeVideoListForPublic = {
443
+ cityInfo?: CityInfoBase;
444
+ streetInfo?: StreetInfoBase;
445
+ contentInfo?: {
446
+ content_code: string;
447
+ name: string;
448
+ native: string;
449
+ name_i18n: string;
450
+ description_i18n: string;
451
+ };
452
+ items: Array<{
453
+ map: TMapContentYouTubeVideo;
454
+ content: TCompletedYouTubeVideoListForPublicFront;
455
+ }>;
456
+ } & ResponseListBase;
457
+ /**
458
+ * Content YouTube Shorts List - Public
459
+ */
460
+ export type ResponseContentYouTubeVideoShortsListForPublic = {
461
+ cityInfo?: CityInfoBase;
462
+ streetInfo?: StreetInfoBase;
463
+ contentInfo?: {
464
+ content_code: string;
465
+ name: string;
466
+ native: string;
467
+ name_i18n: string;
468
+ description_i18n: string;
469
+ };
470
+ items: Array<{
471
+ map: TMapContentYouTubeVideo;
472
+ content: TCompletedYouTubeVideoListForPublicFront;
473
+ }>;
474
+ } & ResponseListBase;
475
+ /**
476
+ * YouTube Video Detail - Admin
275
477
  */
276
478
  export type ResponseCompletedYouTubeVideoDetailForAdmin = {
277
479
  content: TCompletedYouTubeVideoDetail;
@@ -284,14 +486,14 @@ export type ResponseCompletedYouTubeVideoDetailForAdmin = {
284
486
  mapYouTubeVideoStag?: TMapStagYouTubeVideo[];
285
487
  };
286
488
  /**
287
- * Response Completed YouTube Channel Detail For Admin
489
+ * YouTube Channel Detail - Admin
288
490
  */
289
491
  export type ResponseCompletedYouTubeChannelDetailForAdmin = {
290
492
  content: TCompletedYouTubeChannelDetail;
291
493
  mapYouTubeChannelCountry?: TMapCompletedYouTubeChannelAndCountry[];
292
494
  };
293
495
  /**
294
- * Response Tag Detail For Public
496
+ * Tag Detail - Public
295
497
  */
296
498
  export type ResponseTagDetailForPublic = {
297
499
  cityDetail: {
@@ -301,14 +503,13 @@ export type ResponseTagDetailForPublic = {
301
503
  name_ko: string;
302
504
  };
303
505
  tag: TTag;
304
- mapTagContent?: {
506
+ mapTagContent?: Array<{
305
507
  map: TMapTagContent;
306
508
  content: TContentDetail;
307
- }[];
509
+ }>;
308
510
  };
309
511
  /**
310
- * Response Metadata For Public HTML head
311
- * Street, Stag, Content
512
+ * Metadata for HTML head (City, Street, Category, Stag, Content)
312
513
  */
313
514
  export type ResponseMetadata = {
314
515
  cityDetail?: {
@@ -322,19 +523,8 @@ export type ResponseMetadata = {
322
523
  metadataI18n?: TCityMetadataI18n | TStreetMetadataI18n | TCategoryMetadataI18n | TStagMetadataI18n | TContentMetadataI18n;
323
524
  };
324
525
  /**
325
- * Response Street List By City For Public
526
+ * Search Result - Public
326
527
  */
327
- export type ResponseStreetListForPublic = {
328
- cityInfo: {
329
- city_code: string;
330
- name: string;
331
- native: string;
332
- name_ko: string;
333
- name_i18n: string;
334
- description_i18n: string;
335
- };
336
- items: TStreetListForCityDetail[];
337
- } & ResponseListBase;
338
528
  export type ResponseSearchResult = {
339
529
  q: string;
340
530
  start: number;
@@ -344,6 +534,9 @@ export type ResponseSearchResult = {
344
534
  streets: ResponseItemsFlat<TStreetDetail>;
345
535
  contents: ResponseItemsFlat<TContentDetail>;
346
536
  };
537
+ /**
538
+ * Generic Trand API Response Wrapper
539
+ */
347
540
  export type ResponseTrandAPI<T> = {
348
541
  success: boolean;
349
542
  alarm?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trand_common_v1",
3
- "version": "0.2.80",
3
+ "version": "0.2.82",
4
4
  "description": "Common modules for Trand API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "trand"