trand_common_v1 0.1.36 → 0.1.38
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/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/trand-types/trand-api-response-types.js +2 -0
- package/dist/trand-types/trand-api-response-types.js.map +1 -0
- package/dist/{types/types-db.d.ts → trand-types/trand-db-types.d.ts} +34 -32
- package/dist/trand-types/trand-db-types.js +2 -0
- package/dist/trand-types/trand-db-types.js.map +1 -0
- package/package.json +3 -3
- package/dist/types/type-form.d.ts +0 -15
- package/dist/types/type-form.js +0 -2
- package/dist/types/type-form.js.map +0 -1
- package/dist/types/types-api-response.js +0 -2
- package/dist/types/types-api-response.js.map +0 -1
- package/dist/types/types-db.js +0 -2
- package/dist/types/types-db.js.map +0 -1
- package/dist/types/types-form.d.ts +0 -17
- package/dist/types/types-form.js +0 -2
- package/dist/types/types-form.js.map +0 -1
- package/dist/types/types-response.d.ts +0 -8
- package/dist/types/types-response.js +0 -2
- package/dist/types/types-response.js.map +0 -1
- /package/dist/{types/types-api-response.d.ts → trand-types/trand-api-response-types.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./types/
|
|
2
|
-
export * from "./types/
|
|
1
|
+
export * from "./trand-types/trand-api-response-types.js";
|
|
2
|
+
export * from "./trand-types/trand-db-types.js";
|
|
3
3
|
export * from "./consts/all-countries.js";
|
|
4
4
|
export * from "./consts/all-languages.js";
|
|
5
5
|
export * from "./consts/common.js";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
export * from "./types/
|
|
3
|
-
export * from "./types/
|
|
2
|
+
export * from "./trand-types/trand-api-response-types.js";
|
|
3
|
+
export * from "./trand-types/trand-db-types.js";
|
|
4
4
|
export * from "./consts/all-countries.js";
|
|
5
5
|
export * from "./consts/all-languages.js";
|
|
6
6
|
export * from "./consts/common.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,cAAc
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAEhD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iDAAiD,CAAC;AAChE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,0CAA0C,CAAC;AACzD,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,sCAAsC,CAAC;AACrD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,yDAAyD,CAAC;AACxE,cAAc,iEAAiE,CAAC;AAChF,cAAc,wDAAwD,CAAC;AACvE,cAAc,wCAAwC,CAAC;AACvD,cAAc,uDAAuD,CAAC;AACtE,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sDAAsD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trand-api-response-types.js","sourceRoot":"","sources":["../../src/trand-types/trand-api-response-types.ts"],"names":[],"mappings":""}
|
|
@@ -304,19 +304,49 @@ export type PreContentUpdate = {
|
|
|
304
304
|
city_code: string;
|
|
305
305
|
slug_name: string;
|
|
306
306
|
} & Partial<Omit<PreContent, "country_code" | "city_code" | "slug_name">>;
|
|
307
|
-
export type
|
|
307
|
+
export type FetchedContentListAdmin = {
|
|
308
308
|
country_code: string;
|
|
309
309
|
city_code: string;
|
|
310
310
|
street_code: string | null;
|
|
311
311
|
slug_name: string;
|
|
312
312
|
name: string;
|
|
313
313
|
native: string | null;
|
|
314
|
-
gp_display_name: string | null;
|
|
315
|
-
ta_name: string | null;
|
|
316
|
-
related_content_code: string | null;
|
|
317
314
|
content_type: string | null;
|
|
318
315
|
google_place_id: string | null;
|
|
319
316
|
trip_advisor_location_id: string | null;
|
|
317
|
+
gp_fetched_at: string | null;
|
|
318
|
+
ta_fetched_at: string | null;
|
|
319
|
+
is_free_available: boolean | null;
|
|
320
|
+
naver_map_url: string | null;
|
|
321
|
+
instagram: string | null;
|
|
322
|
+
youtube: string | null;
|
|
323
|
+
google_place_url: string | null;
|
|
324
|
+
trip_advisor_url: string | null;
|
|
325
|
+
facebook: string | null;
|
|
326
|
+
naver_place_url: string | null;
|
|
327
|
+
kakao_place_url: string | null;
|
|
328
|
+
naver_reservation_url: string | null;
|
|
329
|
+
linkedin: string | null;
|
|
330
|
+
visit_korea: string | null;
|
|
331
|
+
is_reservation_required: boolean | null;
|
|
332
|
+
registered_at: string;
|
|
333
|
+
updated_at: string;
|
|
334
|
+
is_admin_checked: boolean;
|
|
335
|
+
admin_checked_by: string | null;
|
|
336
|
+
admin_checked_at: string | null;
|
|
337
|
+
is_ready_for_register: boolean;
|
|
338
|
+
is_register_started: boolean;
|
|
339
|
+
is_register_finished: boolean;
|
|
340
|
+
is_register_succeeded: boolean;
|
|
341
|
+
is_register_failed: boolean;
|
|
342
|
+
register_msg: string | null;
|
|
343
|
+
registered_as_content_at: string | null;
|
|
344
|
+
registered_content_code: string | null;
|
|
345
|
+
};
|
|
346
|
+
export type FetchedContent = FetchedContentListAdmin & {
|
|
347
|
+
gp_display_name: string | null;
|
|
348
|
+
ta_name: string | null;
|
|
349
|
+
related_content_code: string | null;
|
|
320
350
|
description: string | null;
|
|
321
351
|
gp_editorial_summary: string | null;
|
|
322
352
|
ta_description: string | null;
|
|
@@ -357,7 +387,6 @@ export type FetchedContent = {
|
|
|
357
387
|
gp_place_uri: string | null;
|
|
358
388
|
gp_reviews_uri: string | null;
|
|
359
389
|
gp_photos_uri: string | null;
|
|
360
|
-
gp_fetched_at: string | null;
|
|
361
390
|
ta_trip_advisor_url: string | null;
|
|
362
391
|
ta_country_name: string | null;
|
|
363
392
|
ta_country_location_id: string | null;
|
|
@@ -392,7 +421,6 @@ export type FetchedContent = {
|
|
|
392
421
|
ta_trip_types_family: number | null;
|
|
393
422
|
ta_trip_types_friends: number | null;
|
|
394
423
|
ta_awards: JSON | null;
|
|
395
|
-
ta_fetched_at: string | null;
|
|
396
424
|
is_target_for_family: boolean | null;
|
|
397
425
|
is_target_for_children: boolean | null;
|
|
398
426
|
is_target_for_couple: boolean | null;
|
|
@@ -400,21 +428,8 @@ export type FetchedContent = {
|
|
|
400
428
|
is_target_for_solo: boolean | null;
|
|
401
429
|
taking_minutes_start: number | null;
|
|
402
430
|
taking_minutes_end: number | null;
|
|
403
|
-
is_free_available: boolean | null;
|
|
404
431
|
target_age_start: number | null;
|
|
405
432
|
target_age_end: number | null;
|
|
406
|
-
naver_map_url: string | null;
|
|
407
|
-
instagram: string | null;
|
|
408
|
-
youtube: string | null;
|
|
409
|
-
google_place_url: string | null;
|
|
410
|
-
trip_advisor_url: string | null;
|
|
411
|
-
facebook: string | null;
|
|
412
|
-
naver_place_url: string | null;
|
|
413
|
-
kakao_place_url: string | null;
|
|
414
|
-
naver_reservation_url: string | null;
|
|
415
|
-
linkedin: string | null;
|
|
416
|
-
visit_korea: string | null;
|
|
417
|
-
is_reservation_required: boolean | null;
|
|
418
433
|
reservation_guide: string | null;
|
|
419
434
|
reservation_guide_native: string | null;
|
|
420
435
|
ticketing_guide: string | null;
|
|
@@ -434,19 +449,6 @@ export type FetchedContent = {
|
|
|
434
449
|
is_bar: boolean | null;
|
|
435
450
|
is_club: boolean | null;
|
|
436
451
|
content_keywords: JSON | null;
|
|
437
|
-
registered_at: string;
|
|
438
|
-
updated_at: string;
|
|
439
|
-
is_admin_checked: boolean;
|
|
440
|
-
admin_checked_by: string | null;
|
|
441
|
-
admin_checked_at: string | null;
|
|
442
|
-
is_ready_for_register: boolean;
|
|
443
|
-
is_register_started: boolean;
|
|
444
|
-
is_register_finished: boolean;
|
|
445
|
-
is_register_succeeded: boolean;
|
|
446
|
-
is_register_failed: boolean;
|
|
447
|
-
register_msg: string | null;
|
|
448
|
-
registered_as_content_at: string | null;
|
|
449
|
-
registered_content_code: string | null;
|
|
450
452
|
};
|
|
451
453
|
export type FetchedContentInsert = {
|
|
452
454
|
country_code: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trand-db-types.js","sourceRoot":"","sources":["../../src/trand-types/trand-db-types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trand_common_v1",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
4
4
|
"description": "Common modules for Trand API Server and Admin User Frontend",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"trand"
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"author": "Jepil Yun",
|
|
18
18
|
"type": "module",
|
|
19
|
-
"main": "dist/index.js",
|
|
20
|
-
"types": "dist/index.d.ts",
|
|
19
|
+
"main": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
21
|
"files": [
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Category } from "./types-db.js";
|
|
2
|
-
export type CategoryForm = Category & {
|
|
3
|
-
ko: string;
|
|
4
|
-
zh: string;
|
|
5
|
-
ja: string;
|
|
6
|
-
th: string;
|
|
7
|
-
vi: string;
|
|
8
|
-
id: string;
|
|
9
|
-
es: string;
|
|
10
|
-
pt: string;
|
|
11
|
-
fr: string;
|
|
12
|
-
de: string;
|
|
13
|
-
it: string;
|
|
14
|
-
nl: string;
|
|
15
|
-
};
|
package/dist/types/type-form.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-form.js","sourceRoot":"","sources":["../../src/types/type-form.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-api-response.js","sourceRoot":"","sources":["../../src/types/types-api-response.ts"],"names":[],"mappings":""}
|
package/dist/types/types-db.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-db.js","sourceRoot":"","sources":["../../src/types/types-db.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Category } from "./types-db.js";
|
|
2
|
-
export type CategoryForm = Category & {
|
|
3
|
-
i18n: {
|
|
4
|
-
ko: string;
|
|
5
|
-
zh: string;
|
|
6
|
-
ja: string;
|
|
7
|
-
th: string;
|
|
8
|
-
vi: string;
|
|
9
|
-
id: string;
|
|
10
|
-
es: string;
|
|
11
|
-
pt: string;
|
|
12
|
-
fr: string;
|
|
13
|
-
de: string;
|
|
14
|
-
it: string;
|
|
15
|
-
nl: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
package/dist/types/types-form.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-form.js","sourceRoot":"","sources":["../../src/types/types-form.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-response.js","sourceRoot":"","sources":["../../src/types/types-response.ts"],"names":[],"mappings":""}
|
|
File without changes
|