dplus_common_v1 0.2.45 → 0.2.47

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.
@@ -10,25 +10,6 @@ export type BaseResponseDetail<T, K> = {
10
10
  images?: T[];
11
11
  metadataI18n?: K[];
12
12
  };
13
- /**
14
- * 장소 검색 결과 타입
15
- */
16
- export type TPlaceSearchItem = {
17
- place_id: number;
18
- name_en: string;
19
- name_native: string | null;
20
- target_country_code: string;
21
- target_city_code: string | null;
22
- latitude: number | null;
23
- longitude: number | null;
24
- address_eng: string | null;
25
- address_native: string | null;
26
- google_map_url: string | null;
27
- score: number;
28
- distance_m: number | null;
29
- created_at: string;
30
- updated_at: string;
31
- };
32
13
  /**
33
14
  * 메타데이터 응답 타입 For User Front
34
15
  * - DB NULL 가능성을 반영하여 대부분 string | null
@@ -93,8 +93,11 @@ export type TEventDetailInsert = {
93
93
  utc_minutes: number;
94
94
  title: string;
95
95
  target_country_code: string;
96
+ should_save_to_places?: boolean;
96
97
  } & Partial<Omit<TEventDetail, "event_code" | "date" | "tz" | "utc_minutes" | "title" | "target_country_code" | "created_at" | "updated_at" | "start_at_utc" | "end_at_utc" | "location" | "target_country_native" | "target_city_native">>;
97
- export type TEventDetailUpdate = Partial<Omit<TEventDetail, "event_code" | "created_at" | "created_by" | "updated_at" | "start_at_utc" | "end_at_utc" | "location" | "target_country_native" | "target_city_native">>;
98
+ export type TEventDetailUpdate = {
99
+ should_save_to_places?: boolean;
100
+ } & Partial<Omit<TEventDetail, "event_code" | "created_at" | "created_by" | "updated_at" | "start_at_utc" | "end_at_utc" | "location" | "target_country_native" | "target_city_native">>;
98
101
  export declare const KEYS_EVENT_STR: string[];
99
102
  export declare const KEYS_EVENT_NUM: string[];
100
103
  export declare const KEYS_EVENT_BOOL: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"t-event.js","sourceRoot":"","sources":["../../../src/types/types-event/t-event.ts"],"names":[],"mappings":"AAsFA;;8CAE8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gBAAgB,GAAG;IAC9B,yBAAyB;IACzB,6BAA6B;IAC7B,2BAA2B;CAC5B,CAAC"}
1
+ {"version":3,"file":"t-event.js","sourceRoot":"","sources":["../../../src/types/types-event/t-event.ts"],"names":[],"mappings":"AAsFA;;8CAE8C;AAC9C,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,YAAY;IACZ,MAAM;IACN,MAAM;IACN,UAAU;IACV,UAAU;IACV,IAAI;IACJ,aAAa;IACb,UAAU;IACV,cAAc;IACd,YAAY;IACZ,oBAAoB;IACpB,OAAO;IACP,mBAAmB;IACnB,UAAU;IACV,UAAU;IACV,qBAAqB;IACrB,kBAAkB;IAClB,UAAU;IACV,YAAY;IACZ,aAAa;IACb,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,cAAc;IACd,aAAa;IACb,gBAAgB;IAChB,WAAW;IACX,YAAY;IACZ,kBAAkB;IAClB,iBAAiB;IACjB,YAAY;IACZ,YAAY;CACb,CAAC;AAwFF;;8CAE8C;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,YAAY;IACZ,MAAM;IACN,MAAM;IACN,UAAU;IACV,UAAU;IACV,IAAI;IACJ,OAAO;IACP,mBAAmB;IACnB,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,sBAAsB;IACtB,oBAAoB;IACpB,qBAAqB;IACrB,kBAAkB;IAClB,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,YAAY;CACb,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,aAAa;IACb,UAAU;IACV,UAAU;IACV,UAAU;IACV,WAAW;IACX,UAAU;IACV,YAAY;IACZ,aAAa;IACb,cAAc;IACd,aAAa;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,oBAAoB;IACpB,kBAAkB;IAClB,WAAW;IACX,aAAa;IACb,gBAAgB;IAChB,WAAW;IACX,YAAY;CACb,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,yBAAyB;IACzB,6BAA6B;IAC7B,2BAA2B;CAC5B,CAAC"}
@@ -17,6 +17,22 @@ export type TPlace = {
17
17
  created_by: string | null;
18
18
  updated_at: string;
19
19
  };
20
+ export type TPlaceSearchResult = {
21
+ place_id: number;
22
+ name_en: string;
23
+ name_native: string | null;
24
+ target_country_code: string;
25
+ target_city_code: string | null;
26
+ latitude: number | null;
27
+ longitude: number | null;
28
+ address_eng: string | null;
29
+ address_native: string | null;
30
+ google_map_url: string | null;
31
+ score: number;
32
+ distance_m: number | null;
33
+ created_at?: Date;
34
+ updated_at?: Date;
35
+ };
20
36
  type TPlaceInsertBase = Omit<TPlace, "place_id" | "location" | "created_at" | "created_by" | "updated_at">;
21
37
  export type TPlaceInsert = Required<Pick<TPlaceInsertBase, "name_en" | "target_country_code">> & Partial<Omit<TPlaceInsertBase, "name_en" | "target_country_code">>;
22
38
  export type TPlaceUpdate = Partial<Omit<TPlace, "place_id" | "location" | "created_at" | "created_by" | "updated_at">>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dplus_common_v1",
3
- "version": "0.2.45",
3
+ "version": "0.2.47",
4
4
  "description": "Common modules for dplus API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "dplus"