trand_common_v1 0.2.46 → 0.2.48

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.
@@ -51,6 +51,21 @@ export type ResponseDBSelect<T> = {
51
51
  count?: number;
52
52
  apiUrl?: string | null;
53
53
  };
54
+ type ResponseListBase = {
55
+ start: number;
56
+ limit: number;
57
+ total: number;
58
+ hasMore: boolean;
59
+ };
60
+ export type ResponseItemsPaired<TMap, TContent> = {
61
+ items: Array<{
62
+ map: TMap;
63
+ content: TContent;
64
+ }>;
65
+ } & ResponseListBase;
66
+ export type ResponseItemsFlat<TContent> = {
67
+ items: TContent[];
68
+ } & ResponseListBase;
54
69
  /**
55
70
  * Response City Detail For Admin
56
71
  */
@@ -59,27 +74,9 @@ export type ResponseCityDetailForAdmin = {
59
74
  images?: TCityImage[];
60
75
  i18n?: TCityI18n[];
61
76
  metadataI18n?: TCityMetadataI18n[];
62
- mapCityContent?: {
63
- items: TMapCityContent[];
64
- start: number;
65
- limit: number;
66
- total: number;
67
- hasMore: boolean;
68
- };
69
- mapCityYouTubeVideo?: {
70
- items: TMapCityYouTubeVideo[];
71
- start: number;
72
- limit: number;
73
- total: number;
74
- hasMore: boolean;
75
- };
76
- mapCityInstagram?: {
77
- items: TMapCityInstagram[];
78
- start: number;
79
- limit: number;
80
- total: number;
81
- hasMore: boolean;
82
- };
77
+ mapCityContent?: ResponseItemsFlat<TMapCityContent>;
78
+ mapCityYouTubeVideo?: ResponseItemsFlat<TMapCityYouTubeVideo>;
79
+ mapCityInstagram?: ResponseItemsFlat<TMapCityInstagram>;
83
80
  };
84
81
  /**
85
82
  * Response City For Public
@@ -91,36 +88,9 @@ export type ResponseCityDetailForPublic = {
91
88
  metadataI18n?: TCityMetadataI18n;
92
89
  categories?: TCategoryListForPublic[];
93
90
  streets?: TStreetListForCityDetail[];
94
- mapCityContent?: {
95
- items: {
96
- map: TMapCityContent;
97
- content: TContentDetail;
98
- }[];
99
- start: number;
100
- limit: number;
101
- total: number;
102
- hasMore: boolean;
103
- };
104
- mapCityYouTubeVideo?: {
105
- items: {
106
- map: TMapCityYouTubeVideo;
107
- content: TCompletedYouTubeVideoListForPublicFront;
108
- }[];
109
- start: number;
110
- limit: number;
111
- total: number;
112
- hasMore: boolean;
113
- };
114
- mapCityInstagram?: {
115
- items: {
116
- map: TMapCityInstagram;
117
- content: TInstagramContent;
118
- }[];
119
- start: number;
120
- limit: number;
121
- total: number;
122
- hasMore: boolean;
123
- }[];
91
+ mapCityContent?: ResponseItemsPaired<TMapCityContent, TContentDetail>;
92
+ mapCityYouTubeVideo?: ResponseItemsPaired<TMapCityYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
93
+ mapCityInstagram?: ResponseItemsPaired<TMapCityInstagram, TInstagramContent>;
124
94
  };
125
95
  /**
126
96
  * Response Street Detail For Admin
@@ -130,27 +100,9 @@ export type ResponseStreetDetailForAdmin = {
130
100
  images?: TStreetImage[];
131
101
  i18n?: TStreetI18n[];
132
102
  metadataI18n?: TStreetMetadataI18n[];
133
- mapStreetContent?: {
134
- items: TMapStreetContent[];
135
- start: number;
136
- limit: number;
137
- total: number;
138
- hasMore: boolean;
139
- };
140
- mapStreetYouTubeVideo?: {
141
- items: TMapStreetYouTubeVideo[];
142
- start: number;
143
- limit: number;
144
- total: number;
145
- hasMore: boolean;
146
- };
147
- mapStreetInstagram?: {
148
- items: TMapStreetInstagram[];
149
- start: number;
150
- limit: number;
151
- total: number;
152
- hasMore: boolean;
153
- };
103
+ mapStreetContent?: ResponseItemsFlat<TMapStreetContent>;
104
+ mapStreetYouTubeVideo?: ResponseItemsFlat<TMapStreetYouTubeVideo>;
105
+ mapStreetInstagram?: ResponseItemsFlat<TMapStreetInstagram>;
154
106
  };
155
107
  /**
156
108
  * Response Street Detail For Public
@@ -166,36 +118,9 @@ export type ResponseStreetDetailForPublic = {
166
118
  images?: TStreetImage[];
167
119
  i18n?: TStreetI18n;
168
120
  metadataI18n?: TStreetMetadataI18n;
169
- mapStreetContent?: {
170
- items: {
171
- map: TMapStreetContent;
172
- content: TContentDetail;
173
- }[];
174
- start: number;
175
- limit: number;
176
- total: number;
177
- hasMore: boolean;
178
- };
179
- mapStreetYouTubeVideo?: {
180
- items: {
181
- map: TMapStreetYouTubeVideo;
182
- content: TCompletedYouTubeVideoListForPublicFront;
183
- }[];
184
- start: number;
185
- limit: number;
186
- total: number;
187
- hasMore: boolean;
188
- };
189
- mapStreetInstagram?: {
190
- items: {
191
- map: TMapStreetInstagram;
192
- content: TInstagramContent;
193
- }[];
194
- start: number;
195
- limit: number;
196
- total: number;
197
- hasMore: boolean;
198
- };
121
+ mapStreetContent?: ResponseItemsPaired<TMapStreetContent, TContentDetail>;
122
+ mapStreetYouTubeVideo?: ResponseItemsPaired<TMapStreetYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
123
+ mapStreetInstagram?: ResponseItemsPaired<TMapStreetInstagram, TInstagramContent>;
199
124
  };
200
125
  /**
201
126
  * Response Category Detail For Admin
@@ -205,27 +130,9 @@ export type ResponseCategoryDetailForAdmin = {
205
130
  subCategories?: TCategoryDetail[];
206
131
  i18n?: TCategoryI18n[];
207
132
  metadataI18n?: TCategoryMetadataI18n[];
208
- mapCategoryContent?: {
209
- items: TMapCategoryContent[];
210
- start: number;
211
- limit: number;
212
- total: number;
213
- hasMore: boolean;
214
- };
215
- mapCategoryYouTubeVideo?: {
216
- items: TMapCategoryYouTubeVideo[];
217
- start: number;
218
- limit: number;
219
- total: number;
220
- hasMore: boolean;
221
- };
222
- mapCategoryInstagram?: {
223
- items: TMapCategoryInstagram[];
224
- start: number;
225
- limit: number;
226
- total: number;
227
- hasMore: boolean;
228
- };
133
+ mapCategoryContent?: ResponseItemsFlat<TMapCategoryContent>;
134
+ mapCategoryYouTubeVideo?: ResponseItemsFlat<TMapCategoryYouTubeVideo>;
135
+ mapCategoryInstagram?: ResponseItemsFlat<TMapCategoryInstagram>;
229
136
  };
230
137
  /**
231
138
  * Response Category Detail For Public
@@ -241,36 +148,9 @@ export type ResponseCategoryDetailForPublic = {
241
148
  subCategories?: TCategoryDetail[];
242
149
  i18n?: TCategoryI18n;
243
150
  metadataI18n?: TCategoryMetadataI18n;
244
- mapCategoryContent?: {
245
- items: {
246
- map: TMapCategoryContent;
247
- content: TContentDetail;
248
- }[];
249
- start: number;
250
- limit: number;
251
- total: number;
252
- hasMore: boolean;
253
- };
254
- mapCategoryYouTubeVideo?: {
255
- items: {
256
- map: TMapCategoryYouTubeVideo;
257
- content: TCompletedYouTubeVideoListForPublicFront;
258
- }[];
259
- start: number;
260
- limit: number;
261
- total: number;
262
- hasMore: boolean;
263
- };
264
- mapCategoryInstagram?: {
265
- items: {
266
- map: TMapCategoryInstagram;
267
- content: TInstagramContent;
268
- }[];
269
- start: number;
270
- limit: number;
271
- total: number;
272
- hasMore: boolean;
273
- };
151
+ mapCategoryContent?: ResponseItemsPaired<TMapCategoryContent, TContentDetail>;
152
+ mapCategoryYouTubeVideo?: ResponseItemsPaired<TMapCategoryYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
153
+ mapCategoryInstagram?: ResponseItemsPaired<TMapCategoryInstagram, TInstagramContent>;
274
154
  };
275
155
  /**
276
156
  * Response Stag Detail For Admin
@@ -280,27 +160,9 @@ export type ResponseStagDetailForAdmin = {
280
160
  images?: TStagImage[];
281
161
  i18n?: TStagI18n[];
282
162
  metadataI18n?: TStagMetadataI18n[];
283
- mapStagContent?: {
284
- items: TMapStagContent[];
285
- start: number;
286
- limit: number;
287
- total: number;
288
- hasMore: boolean;
289
- };
290
- mapStagYouTubeVideo?: {
291
- items: TMapStagYouTubeVideo[];
292
- start: number;
293
- limit: number;
294
- total: number;
295
- hasMore: boolean;
296
- };
297
- mapStagInstagram?: {
298
- items: TMapStagInstagram[];
299
- start: number;
300
- limit: number;
301
- total: number;
302
- hasMore: boolean;
303
- };
163
+ mapStagContent?: ResponseItemsFlat<TMapStagContent>;
164
+ mapStagYouTubeVideo?: ResponseItemsFlat<TMapStagYouTubeVideo>;
165
+ mapStagInstagram?: ResponseItemsFlat<TMapStagInstagram>;
304
166
  };
305
167
  /**
306
168
  * Response Stag Detail For Public
@@ -316,36 +178,9 @@ export type ResponseStagDetailForPublic = {
316
178
  images?: TStagImage[];
317
179
  i18n?: TStagI18n;
318
180
  metadataI18n?: TStagMetadataI18n;
319
- mapStagContent?: {
320
- items: {
321
- map: TMapStagContent;
322
- content: TContentDetail;
323
- }[];
324
- start: number;
325
- limit: number;
326
- total: number;
327
- hasMore: boolean;
328
- };
329
- mapStagYouTubeVideo?: {
330
- items: {
331
- map: TMapStagYouTubeVideo;
332
- content: TCompletedYouTubeVideoListForPublicFront;
333
- }[];
334
- start: number;
335
- limit: number;
336
- total: number;
337
- hasMore: boolean;
338
- };
339
- mapStagInstagram?: {
340
- items: {
341
- map: TMapStagInstagram;
342
- content: TInstagramContent;
343
- }[];
344
- start: number;
345
- limit: number;
346
- total: number;
347
- hasMore: boolean;
348
- };
181
+ mapStagContent?: ResponseItemsPaired<TMapStagContent, TContentDetail>;
182
+ mapStagYouTubeVideo?: ResponseItemsPaired<TMapStagYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
183
+ mapStagInstagram?: ResponseItemsPaired<TMapStagInstagram, TInstagramContent>;
349
184
  };
350
185
  /**
351
186
  * Response Content Detail For Admin
@@ -413,46 +248,10 @@ export type ResponseContentDetailForPublic = {
413
248
  name: string;
414
249
  };
415
250
  }[];
416
- mapContentInstagram?: {
417
- items: {
418
- map: TMapContentInstagram;
419
- content: TInstagramContent;
420
- }[];
421
- start: number;
422
- limit: number;
423
- total: number;
424
- hasMore: boolean;
425
- };
426
- mapContentYouTubeVideo?: {
427
- items: {
428
- map: TMapContentYouTubeVideo;
429
- content: TCompletedYouTubeVideoListForPublicFront;
430
- }[];
431
- start: number;
432
- limit: number;
433
- total: number;
434
- hasMore: boolean;
435
- };
436
- mapContentStag?: {
437
- items: {
438
- map: TMapStagContent;
439
- content: TStagListForContentDetail;
440
- }[];
441
- start: number;
442
- limit: number;
443
- total: number;
444
- hasMore: boolean;
445
- };
446
- mapContentTag?: {
447
- items: {
448
- map: TMapTagContent;
449
- content: TTag;
450
- }[];
451
- start: number;
452
- limit: number;
453
- total: number;
454
- hasMore: boolean;
455
- }[];
251
+ mapContentInstagram?: ResponseItemsPaired<TMapContentInstagram, TInstagramContent>;
252
+ mapContentYouTubeVideo?: ResponseItemsPaired<TMapContentYouTubeVideo, TCompletedYouTubeVideoListForPublicFront>;
253
+ mapContentStag?: ResponseItemsPaired<TMapStagContent, TStagListForContentDetail>;
254
+ mapContentTag?: ResponseItemsPaired<TMapTagContent, TTag>;
456
255
  };
457
256
  /**
458
257
  * Response Completed YouTube Video Detail For Admin
@@ -514,3 +313,4 @@ export type ResponseTrandAPI<T> = {
514
313
  error?: string | null;
515
314
  missingFields?: string[] | string | null;
516
315
  };
316
+ export {};
@@ -29,6 +29,10 @@ export const DB_COLUMNS_STREET_LIST_FOR_ADMIN = [
29
29
  * FormData Parsing 할 때 사용
30
30
  */
31
31
  export const KEYS_STREET_STR = [
32
+ "old_country_code",
33
+ "old_city_code",
34
+ "new_country_code",
35
+ "new_city_code",
32
36
  "country_code",
33
37
  "city_code",
34
38
  "street_code",
@@ -1 +1 @@
1
- {"version":3,"file":"t-street.js","sourceRoot":"","sources":["../../src/types/t-street.ts"],"names":[],"mappings":"AA2HA;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;AAE7I;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,cAAc;IACd,WAAW;IACX,aAAa;IACb,MAAM;IACN,QAAQ;IACR,SAAS;IACT,WAAW;IACX,KAAK;IACL,YAAY;IACZ,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,WAAW;IACX,YAAY;IACZ,eAAe;CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,cAAc;IACd,WAAW;IACX,aAAa;IACb,MAAM;IACN,QAAQ;IACR,SAAS;IACT,KAAK;IACL,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,cAAc;IACd,qBAAqB;IACrB,iBAAiB;IACjB,oBAAoB;IACpB,gBAAgB;IAChB,uBAAuB;IACvB,mBAAmB;IACnB,UAAU;IACV,SAAS;IACT,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,gBAAgB;IAChB,sBAAsB;IACtB,mBAAmB;IACnB,yBAAyB;IACzB,mBAAmB;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;AAEnG;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"t-street.js","sourceRoot":"","sources":["../../src/types/t-street.ts"],"names":[],"mappings":"AA2HA;;GAEG;AACH,MAAM,CAAC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AGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;AAEnG;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trand_common_v1",
3
- "version": "0.2.46",
3
+ "version": "0.2.48",
4
4
  "description": "Common modules for Trand API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "trand"