trand_common_v1 0.1.19 → 0.1.20

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  import { APIResponse } from "./types/types-api-response.js";
2
- import { Language, Country, CountryLanguage, City, CityInsert, CityUpdate, CityList, Street, StreetInsert, StreetUpdate, StreetImage, StreetImageInsert, StreetImageUpdate, Category, CategoryInsert, CategoryUpdate, CategoryI18n, CategoryI18nInsert, CategoryI18nUpdate, SpecialTag, SpecialTagInsert, SpecialTagUpdate, Tag, TagInsert, TagUpdate, PreContent, PreContentInsert, PreContentUpdate, FetchedContent, FetchedContentInsert, FetchedContentUpdate, Content, ContentInsert, ContentUpdate, FoodBeverageContent, FoodBeverageContentInsert, FoodBeverageContentUpdate, ContentShowTimetable, ContentShowTimetableInsert, ContentShowTimetableUpdate, ContentPrice, ContentPriceInsert, ContentPriceUpdate, ContentImage, ContentImageInsert, ContentImageUpdate, ContentYouTubeVideo, ContentYouTubeVideoInsert, ContentYouTubeVideoUpdate, ContentI18nDescription, ContentI18nDescriptionInsert, ContentI18nDescriptionUpdate, ContentKeyword, ContentGPPhoto, MapCategoryContent, MapSpecialTagContent, MapTagContent, MapYouTubeVideoContent, YouTubeVideoSearchKeyword, YouTubeVideoSearchKeywordInsert, YouTubeVideoSearchKeywordUpdate, YouTubeVideoSearchKeywordHistory, YouTubeVideoSearchResult, YouTubeVideoSearchResultInsert, YouTubeVideoSearchResultUpdate, PreYouTubeVideo, PreYouTubeVideoInsert, PreYouTubeVideoUpdate, YouTubeVideo, YouTubeVideoInsert, YouTubeVideoUpdate, MapYouTubeCity, MapYouTubeStreet, MapYouTubeKeyword, MapYouTubeTimeline, YouTubeChannelSearchKeyword, YouTubeChannelSearchKeywordInsert, YouTubeChannelSearchResult, YouTubeChannelSearchResultInsert, YouTubeChannelSearchResultUpdate, PreYouTubeChannel, PreYouTubeChannelInsert, PreYouTubeChannelUpdate, YouTubeChannel, YouTubeChannelInsert, YouTubeChannelUpdate, MapYouTubeChannelTargetCountry, User, UserInsert, UserUpdate, Admin, AdminInsert, AdminUpdate, YouTubeChannelSearchKeywordUpdate } from "./types/types-db.js";
2
+ import { Language, Country, CountryLanguage, City, CityInsert, CityUpdate, CityList, Street, StreetInsert, StreetUpdate, StreetImage, StreetImageInsert, StreetImageUpdate, Category, CategoryInsert, CategoryUpdate, CategoryI18n, CategoryI18nInsert, CategoryI18nUpdate, SpecialTag, SpecialTagInsert, SpecialTagUpdate, Tag, TagInsert, TagUpdate, PreContentListAdmin, PreContent, PreContentInsert, PreContentUpdate, FetchedContent, FetchedContentInsert, FetchedContentUpdate, Content, ContentInsert, ContentUpdate, FoodBeverageContent, FoodBeverageContentInsert, FoodBeverageContentUpdate, ContentShowTimetable, ContentShowTimetableInsert, ContentShowTimetableUpdate, ContentPrice, ContentPriceInsert, ContentPriceUpdate, ContentImage, ContentImageInsert, ContentImageUpdate, ContentYouTubeVideo, ContentYouTubeVideoInsert, ContentYouTubeVideoUpdate, ContentI18nDescription, ContentI18nDescriptionInsert, ContentI18nDescriptionUpdate, ContentKeyword, ContentGPPhoto, MapCategoryContent, MapSpecialTagContent, MapTagContent, MapYouTubeVideoContent, YouTubeVideoSearchKeyword, YouTubeVideoSearchKeywordInsert, YouTubeVideoSearchKeywordUpdate, YouTubeVideoSearchKeywordHistory, YouTubeVideoSearchResult, YouTubeVideoSearchResultInsert, YouTubeVideoSearchResultUpdate, PreYouTubeVideo, PreYouTubeVideoInsert, PreYouTubeVideoUpdate, YouTubeVideo, YouTubeVideoInsert, YouTubeVideoUpdate, MapYouTubeCity, MapYouTubeStreet, MapYouTubeKeyword, MapYouTubeTimeline, YouTubeChannelSearchKeyword, YouTubeChannelSearchKeywordInsert, YouTubeChannelSearchResult, YouTubeChannelSearchResultInsert, YouTubeChannelSearchResultUpdate, PreYouTubeChannel, PreYouTubeChannelInsert, PreYouTubeChannelUpdate, YouTubeChannel, YouTubeChannelInsert, YouTubeChannelUpdate, MapYouTubeChannelTargetCountry, User, UserInsert, UserUpdate, Admin, AdminInsert, AdminUpdate, YouTubeChannelSearchKeywordUpdate } from "./types/types-db.js";
3
3
  import { LIST_LIMIT, COOKIE_NAME, SUPPORT_LANGUAGES, SUPPORT_COUNTRIES, SUPPORT_LANG_CODES, SUPPORT_LANG_CODE_TYPE } from "./consts/common.js";
4
4
  import { DB_TABLE } from "./consts/db.js";
5
5
  import { ALL_LANGUAGES } from "./consts/all-languages.js";
6
6
  import { ALL_COUNTRIES } from "./consts/all-countries.js";
7
7
  import { CategoryForm } from "./types/types-form.js";
8
- export { APIResponse, Language, Country, CountryLanguage, City, CityInsert, CityUpdate, CityList, Street, StreetInsert, StreetUpdate, StreetImage, StreetImageInsert, StreetImageUpdate, Category, CategoryInsert, CategoryUpdate, CategoryI18n, CategoryI18nInsert, CategoryI18nUpdate, SpecialTag, SpecialTagInsert, SpecialTagUpdate, Tag, TagInsert, TagUpdate, PreContent, PreContentInsert, PreContentUpdate, FetchedContent, FetchedContentInsert, FetchedContentUpdate, Content, ContentInsert, ContentUpdate, FoodBeverageContent, FoodBeverageContentInsert, FoodBeverageContentUpdate, ContentShowTimetable, ContentShowTimetableInsert, ContentShowTimetableUpdate, ContentPrice, ContentPriceInsert, ContentPriceUpdate, ContentImage, ContentImageInsert, ContentImageUpdate, ContentYouTubeVideo, ContentYouTubeVideoInsert, ContentYouTubeVideoUpdate, ContentI18nDescription, ContentI18nDescriptionInsert, ContentI18nDescriptionUpdate, ContentKeyword, ContentGPPhoto, MapCategoryContent, MapSpecialTagContent, MapTagContent, MapYouTubeVideoContent, YouTubeVideoSearchKeyword, YouTubeVideoSearchKeywordInsert, YouTubeVideoSearchKeywordUpdate, YouTubeVideoSearchKeywordHistory, YouTubeVideoSearchResult, YouTubeVideoSearchResultInsert, YouTubeVideoSearchResultUpdate, PreYouTubeVideo, PreYouTubeVideoInsert, PreYouTubeVideoUpdate, YouTubeVideo, YouTubeVideoInsert, YouTubeVideoUpdate, MapYouTubeCity, MapYouTubeStreet, MapYouTubeKeyword, MapYouTubeTimeline, YouTubeChannelSearchKeyword, YouTubeChannelSearchKeywordInsert, YouTubeChannelSearchKeywordUpdate, YouTubeChannelSearchResult, YouTubeChannelSearchResultInsert, YouTubeChannelSearchResultUpdate, PreYouTubeChannel, PreYouTubeChannelInsert, PreYouTubeChannelUpdate, YouTubeChannel, YouTubeChannelInsert, YouTubeChannelUpdate, MapYouTubeChannelTargetCountry, User, UserInsert, UserUpdate, Admin, AdminInsert, AdminUpdate, LIST_LIMIT, COOKIE_NAME, SUPPORT_LANGUAGES, SUPPORT_COUNTRIES, SUPPORT_LANG_CODES, SUPPORT_LANG_CODE_TYPE, DB_TABLE, ALL_LANGUAGES, ALL_COUNTRIES, CategoryForm, };
8
+ export { APIResponse, Language, Country, CountryLanguage, City, CityInsert, CityUpdate, CityList, Street, StreetInsert, StreetUpdate, StreetImage, StreetImageInsert, StreetImageUpdate, Category, CategoryInsert, CategoryUpdate, CategoryI18n, CategoryI18nInsert, CategoryI18nUpdate, SpecialTag, SpecialTagInsert, SpecialTagUpdate, Tag, TagInsert, TagUpdate, PreContentListAdmin, PreContent, PreContentInsert, PreContentUpdate, FetchedContent, FetchedContentInsert, FetchedContentUpdate, Content, ContentInsert, ContentUpdate, FoodBeverageContent, FoodBeverageContentInsert, FoodBeverageContentUpdate, ContentShowTimetable, ContentShowTimetableInsert, ContentShowTimetableUpdate, ContentPrice, ContentPriceInsert, ContentPriceUpdate, ContentImage, ContentImageInsert, ContentImageUpdate, ContentYouTubeVideo, ContentYouTubeVideoInsert, ContentYouTubeVideoUpdate, ContentI18nDescription, ContentI18nDescriptionInsert, ContentI18nDescriptionUpdate, ContentKeyword, ContentGPPhoto, MapCategoryContent, MapSpecialTagContent, MapTagContent, MapYouTubeVideoContent, YouTubeVideoSearchKeyword, YouTubeVideoSearchKeywordInsert, YouTubeVideoSearchKeywordUpdate, YouTubeVideoSearchKeywordHistory, YouTubeVideoSearchResult, YouTubeVideoSearchResultInsert, YouTubeVideoSearchResultUpdate, PreYouTubeVideo, PreYouTubeVideoInsert, PreYouTubeVideoUpdate, YouTubeVideo, YouTubeVideoInsert, YouTubeVideoUpdate, MapYouTubeCity, MapYouTubeStreet, MapYouTubeKeyword, MapYouTubeTimeline, YouTubeChannelSearchKeyword, YouTubeChannelSearchKeywordInsert, YouTubeChannelSearchKeywordUpdate, YouTubeChannelSearchResult, YouTubeChannelSearchResultInsert, YouTubeChannelSearchResultUpdate, PreYouTubeChannel, PreYouTubeChannelInsert, PreYouTubeChannelUpdate, YouTubeChannel, YouTubeChannelInsert, YouTubeChannelUpdate, MapYouTubeChannelTargetCountry, User, UserInsert, UserUpdate, Admin, AdminInsert, AdminUpdate, LIST_LIMIT, COOKIE_NAME, SUPPORT_LANGUAGES, SUPPORT_COUNTRIES, SUPPORT_LANG_CODES, SUPPORT_LANG_CODE_TYPE, DB_TABLE, ALL_LANGUAGES, ALL_COUNTRIES, CategoryForm, };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiGA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,EAA0B,MAAM,oBAAoB,CAAC;AAC/I,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,OAAO,EAgGL,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAElB,QAAQ,EACR,aAAa,EACb,aAAa,GAEd,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAkGA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,EAA0B,MAAM,oBAAoB,CAAC;AAC/I,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,OAAO,EAiGL,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAElB,QAAQ,EACR,aAAa,EACb,aAAa,GAEd,CAAC"}
@@ -206,16 +206,44 @@ export type TagInsert = {
206
206
  export type TagUpdate = {
207
207
  tag: string;
208
208
  } & Partial<Omit<Tag, "tag">>;
209
- export type PreContent = {
209
+ export type PreContentListAdmin = {
210
210
  country_code: string;
211
211
  city_code: string;
212
212
  street_code: string | null;
213
213
  name: string;
214
214
  native: string | null;
215
- name_ko: string | null;
216
- native_ko: string | null;
217
215
  related_content_code: string | null;
218
216
  content_type: string | null;
217
+ naver_map_url: string | null;
218
+ instagram: string | null;
219
+ youtube: string | null;
220
+ google_place_url: string | null;
221
+ trip_advisor_url: string | null;
222
+ facebook: string | null;
223
+ naver_place_url: string | null;
224
+ kakao_place_url: string | null;
225
+ naver_reservation_url: string | null;
226
+ linkedin: string | null;
227
+ visit_korea: string | null;
228
+ registered_at: string;
229
+ registered_by: string | null;
230
+ confirmed_google_place_id: string | null;
231
+ google_place_id_checked_at: string | null;
232
+ confirmed_trip_advisor_id: string | null;
233
+ trip_advisor_id_checked_at: string | null;
234
+ is_admin_checked: boolean | null;
235
+ admin_checked_at: string | null;
236
+ admin_checked_by: string | null;
237
+ is_decided_to_hold: boolean | null;
238
+ is_decided_to_reject: boolean | null;
239
+ is_decided_to_fetch: boolean | null;
240
+ is_registered_to_fetched_contents: boolean | null;
241
+ registered_to_fetched_content_at: string | null;
242
+ registered_as_content_at: string | null;
243
+ registered_content_code: string | null;
244
+ };
245
+ export type PreContent = PreContentListAdmin & {
246
+ name_ko: string | null;
219
247
  description: string | null;
220
248
  description_ko: string | null;
221
249
  is_target_for_family: boolean | null;
@@ -229,17 +257,6 @@ export type PreContent = {
229
257
  target_age_start: number | null;
230
258
  target_age_end: number | null;
231
259
  radius_m: number | null;
232
- naver_map_url: string | null;
233
- instagram: string | null;
234
- youtube: string | null;
235
- google_place_url: string | null;
236
- trip_advisor_url: string | null;
237
- facebook: string | null;
238
- naver_place_url: string | null;
239
- kakao_place_url: string | null;
240
- naver_reservation_url: string | null;
241
- linkedin: string | null;
242
- visit_korea: string | null;
243
260
  is_reservation_required: boolean | null;
244
261
  reservation_guide: string | null;
245
262
  reservation_guide_native: string | null;
@@ -259,23 +276,9 @@ export type PreContent = {
259
276
  is_dinner: boolean | null;
260
277
  is_bar: boolean | null;
261
278
  is_club: boolean | null;
262
- registered_at: string;
263
- registered_by: string | null;
264
- confirmed_google_place_id: string | null;
265
279
  possible_google_place_ids: string | null;
266
- google_place_id_checked_at: string | null;
267
- confirmed_trip_advisor_id: string | null;
268
280
  possible_trip_advisor_ids: string | null;
269
- trip_advisor_id_checked_at: string | null;
270
- is_admin_checked: boolean | null;
271
- admin_checked_at: string | null;
272
- admin_checked_by: string | null;
273
- is_decided_to_hold: boolean | null;
274
- is_decided_to_reject: boolean | null;
275
- is_decided_to_fetch: boolean | null;
276
281
  admin_memo: string | null;
277
- is_registered_to_fetched_contents: boolean | null;
278
- registered_to_fetched_content_at: string | null;
279
282
  is_gp_api_fetch_started: boolean | null;
280
283
  is_gp_api_fetch_finished: boolean | null;
281
284
  is_gp_api_fetch_succeeded: boolean | null;
@@ -286,8 +289,6 @@ export type PreContent = {
286
289
  is_ta_api_fetch_succeeded: boolean | null;
287
290
  is_ta_api_fetch_failed: boolean | null;
288
291
  ta_api_fetch_msg: string | null;
289
- registered_as_content_at: string | null;
290
- registered_content_code: string | null;
291
292
  };
292
293
  export type PreContentInsert = {
293
294
  country_code: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trand_common_v1",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Common modules for Trand API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "trand"