trand_common_v1 0.2.80 → 0.2.81
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/dist/response/trand-response.d.ts +228 -35
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
100
|
+
* City Detail - Admin
|
|
71
101
|
*/
|
|
72
102
|
export type ResponseCityDetailForAdmin = {
|
|
73
103
|
content: TCityDetail;
|
|
@@ -79,7 +109,7 @@ export type ResponseCityDetailForAdmin = {
|
|
|
79
109
|
mapCityInstagram?: ResponseItemsFlat<TMapCityInstagram>;
|
|
80
110
|
};
|
|
81
111
|
/**
|
|
82
|
-
*
|
|
112
|
+
* City Detail - Public
|
|
83
113
|
*/
|
|
84
114
|
export type ResponseCityDetailForPublic = {
|
|
85
115
|
content: TCityDetail;
|
|
@@ -94,7 +124,44 @@ export type ResponseCityDetailForPublic = {
|
|
|
94
124
|
mapCityInstagram?: ResponseItemsPaired<TMapCityInstagram, TInstagramContent>;
|
|
95
125
|
};
|
|
96
126
|
/**
|
|
97
|
-
*
|
|
127
|
+
* City Street List - Public
|
|
128
|
+
*/
|
|
129
|
+
export type ResponseStreetListForPublic = {
|
|
130
|
+
cityInfo: CityInfoBase;
|
|
131
|
+
items: TStreetListForCityDetail[];
|
|
132
|
+
} & ResponseListBase;
|
|
133
|
+
/**
|
|
134
|
+
* City YouTube Video List - Public
|
|
135
|
+
*/
|
|
136
|
+
export type ResponseCityYouTubeVideoListForPublic = {
|
|
137
|
+
cityInfo: CityInfoBase;
|
|
138
|
+
items: Array<{
|
|
139
|
+
map: TMapCityYouTubeVideo;
|
|
140
|
+
content: TCompletedYouTubeVideoListForPublicFront;
|
|
141
|
+
}>;
|
|
142
|
+
} & ResponseListBase;
|
|
143
|
+
/**
|
|
144
|
+
* City YouTube Shorts List - Public
|
|
145
|
+
*/
|
|
146
|
+
export type ResponseCityYouTubeVideoShortsListForPublic = {
|
|
147
|
+
cityInfo: CityInfoBase;
|
|
148
|
+
items: Array<{
|
|
149
|
+
map: TMapCityYouTubeVideo;
|
|
150
|
+
content: TCompletedYouTubeVideoListForPublicFront;
|
|
151
|
+
}>;
|
|
152
|
+
} & ResponseListBase;
|
|
153
|
+
/**
|
|
154
|
+
* City Content List - Public
|
|
155
|
+
*/
|
|
156
|
+
export type ResponseCityContentListForPublic = {
|
|
157
|
+
cityInfo: CityInfoBase;
|
|
158
|
+
items: Array<{
|
|
159
|
+
map: TMapCityContent;
|
|
160
|
+
content: TContentDetail;
|
|
161
|
+
}>;
|
|
162
|
+
} & ResponseListBase;
|
|
163
|
+
/**
|
|
164
|
+
* Street Detail - Admin
|
|
98
165
|
*/
|
|
99
166
|
export type ResponseStreetDetailForAdmin = {
|
|
100
167
|
content: TStreetDetail;
|
|
@@ -106,7 +173,7 @@ export type ResponseStreetDetailForAdmin = {
|
|
|
106
173
|
mapStreetInstagram?: ResponseItemsFlat<TMapStreetInstagram>;
|
|
107
174
|
};
|
|
108
175
|
/**
|
|
109
|
-
*
|
|
176
|
+
* Street Detail - Public
|
|
110
177
|
*/
|
|
111
178
|
export type ResponseStreetDetailForPublic = {
|
|
112
179
|
content: TStreetDetail;
|
|
@@ -125,7 +192,40 @@ export type ResponseStreetDetailForPublic = {
|
|
|
125
192
|
mapStreetInstagram?: ResponseItemsPaired<TMapStreetInstagram, TInstagramContent>;
|
|
126
193
|
};
|
|
127
194
|
/**
|
|
128
|
-
*
|
|
195
|
+
* Street YouTube Video List - Public
|
|
196
|
+
*/
|
|
197
|
+
export type ResponseStreetYouTubeVideoListForPublic = {
|
|
198
|
+
cityInfo?: CityInfoBase;
|
|
199
|
+
streetInfo?: StreetInfoBase;
|
|
200
|
+
items: Array<{
|
|
201
|
+
map: TMapStreetYouTubeVideo;
|
|
202
|
+
content: TCompletedYouTubeVideoListForPublicFront;
|
|
203
|
+
}>;
|
|
204
|
+
} & ResponseListBase;
|
|
205
|
+
/**
|
|
206
|
+
* Street YouTube Shorts List - Public
|
|
207
|
+
*/
|
|
208
|
+
export type ResponseStreetYouTubeVideoShortsListForPublic = {
|
|
209
|
+
cityInfo?: CityInfoBase;
|
|
210
|
+
streetInfo?: StreetInfoBase;
|
|
211
|
+
items: Array<{
|
|
212
|
+
map: TMapStreetYouTubeVideo;
|
|
213
|
+
content: TCompletedYouTubeVideoListForPublicFront;
|
|
214
|
+
}>;
|
|
215
|
+
} & ResponseListBase;
|
|
216
|
+
/**
|
|
217
|
+
* Street Content List - Public
|
|
218
|
+
*/
|
|
219
|
+
export type ResponseStreetContentListForPublic = {
|
|
220
|
+
cityInfo?: CityInfoBase;
|
|
221
|
+
streetInfo?: StreetInfoBase;
|
|
222
|
+
items: Array<{
|
|
223
|
+
map: TMapStreetContent;
|
|
224
|
+
content: TContentDetail;
|
|
225
|
+
}>;
|
|
226
|
+
} & ResponseListBase;
|
|
227
|
+
/**
|
|
228
|
+
* Category Detail - Admin
|
|
129
229
|
*/
|
|
130
230
|
export type ResponseCategoryDetailForAdmin = {
|
|
131
231
|
content: TCategoryDetail;
|
|
@@ -137,7 +237,7 @@ export type ResponseCategoryDetailForAdmin = {
|
|
|
137
237
|
mapCategoryInstagram?: ResponseItemsFlat<TMapCategoryInstagram>;
|
|
138
238
|
};
|
|
139
239
|
/**
|
|
140
|
-
*
|
|
240
|
+
* Category Detail - Public
|
|
141
241
|
*/
|
|
142
242
|
export type ResponseCategoryDetailForPublic = {
|
|
143
243
|
content: TCategoryDetail;
|
|
@@ -156,7 +256,40 @@ export type ResponseCategoryDetailForPublic = {
|
|
|
156
256
|
mapCategoryInstagram?: ResponseItemsPaired<TMapCategoryInstagram, TInstagramContent>;
|
|
157
257
|
};
|
|
158
258
|
/**
|
|
159
|
-
*
|
|
259
|
+
* Category YouTube Video List - Public
|
|
260
|
+
*/
|
|
261
|
+
export type ResponseCategoryYouTubeVideoListForPublic = {
|
|
262
|
+
cityInfo?: CityInfoBase;
|
|
263
|
+
categoryInfo?: CategoryInfoBase;
|
|
264
|
+
items: Array<{
|
|
265
|
+
map: TMapCategoryYouTubeVideo;
|
|
266
|
+
content: TCompletedYouTubeVideoListForPublicFront;
|
|
267
|
+
}>;
|
|
268
|
+
} & ResponseListBase;
|
|
269
|
+
/**
|
|
270
|
+
* Category YouTube Shorts List - Public
|
|
271
|
+
*/
|
|
272
|
+
export type ResponseCategoryYouTubeVideoShortsListForPublic = {
|
|
273
|
+
cityInfo?: CityInfoBase;
|
|
274
|
+
categoryInfo?: CategoryInfoBase;
|
|
275
|
+
items: Array<{
|
|
276
|
+
map: TMapCategoryYouTubeVideo;
|
|
277
|
+
content: TCompletedYouTubeVideoListForPublicFront;
|
|
278
|
+
}>;
|
|
279
|
+
} & ResponseListBase;
|
|
280
|
+
/**
|
|
281
|
+
* Category Content List - Public
|
|
282
|
+
*/
|
|
283
|
+
export type ResponseCategoryContentListForPublic = {
|
|
284
|
+
cityInfo?: CityInfoBase;
|
|
285
|
+
categoryInfo?: CategoryInfoBase;
|
|
286
|
+
items: Array<{
|
|
287
|
+
map: TMapCategoryContent;
|
|
288
|
+
content: TContentDetail;
|
|
289
|
+
}>;
|
|
290
|
+
} & ResponseListBase;
|
|
291
|
+
/**
|
|
292
|
+
* Stag Detail - Admin
|
|
160
293
|
*/
|
|
161
294
|
export type ResponseStagDetailForAdmin = {
|
|
162
295
|
content: TStagDetail;
|
|
@@ -168,7 +301,7 @@ export type ResponseStagDetailForAdmin = {
|
|
|
168
301
|
mapStagInstagram?: ResponseItemsFlat<TMapStagInstagram>;
|
|
169
302
|
};
|
|
170
303
|
/**
|
|
171
|
-
*
|
|
304
|
+
* Stag Detail - Public
|
|
172
305
|
*/
|
|
173
306
|
export type ResponseStagDetailForPublic = {
|
|
174
307
|
content: TStagDetail;
|
|
@@ -187,7 +320,40 @@ export type ResponseStagDetailForPublic = {
|
|
|
187
320
|
mapStagInstagram?: ResponseItemsPaired<TMapStagInstagram, TInstagramContent>;
|
|
188
321
|
};
|
|
189
322
|
/**
|
|
190
|
-
*
|
|
323
|
+
* Stag YouTube Video List - Public
|
|
324
|
+
*/
|
|
325
|
+
export type ResponseStagYouTubeVideoListForPublic = {
|
|
326
|
+
cityInfo?: CityInfoBase;
|
|
327
|
+
stagInfo?: StagInfoBase;
|
|
328
|
+
items: Array<{
|
|
329
|
+
map: TMapStagYouTubeVideo;
|
|
330
|
+
content: TCompletedYouTubeVideoListForPublicFront;
|
|
331
|
+
}>;
|
|
332
|
+
} & ResponseListBase;
|
|
333
|
+
/**
|
|
334
|
+
* Stag YouTube Shorts List - Public
|
|
335
|
+
*/
|
|
336
|
+
export type ResponseStagYouTubeVideoShortsListForPublic = {
|
|
337
|
+
cityInfo?: CityInfoBase;
|
|
338
|
+
stagInfo?: StagInfoBase;
|
|
339
|
+
items: Array<{
|
|
340
|
+
map: TMapStagYouTubeVideo;
|
|
341
|
+
content: TCompletedYouTubeVideoListForPublicFront;
|
|
342
|
+
}>;
|
|
343
|
+
} & ResponseListBase;
|
|
344
|
+
/**
|
|
345
|
+
* Stag Content List - Public
|
|
346
|
+
*/
|
|
347
|
+
export type ResponseStagContentListForPublic = {
|
|
348
|
+
cityInfo?: CityInfoBase;
|
|
349
|
+
stagInfo?: StagInfoBase;
|
|
350
|
+
items: Array<{
|
|
351
|
+
map: TMapStagContent;
|
|
352
|
+
content: TContentDetail;
|
|
353
|
+
}>;
|
|
354
|
+
} & ResponseListBase;
|
|
355
|
+
/**
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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;
|