dplus_common_v1 0.1.58 → 0.1.60

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.
@@ -6,114 +6,189 @@ import { TCityI18n } from "../types/types-city/t-city-i18n";
6
6
  import { TCityImage } from "../types/types-city/t-city-image";
7
7
  import { TCityMetadataI18nDetail } from "../types/types-city/t-city-metadata-i18n";
8
8
  import { TCityYouTubeVideo } from "../types/types-city/t-city-youtube-video";
9
- import { TEventDetail, TEventListForAdmin } from "../types/types-event/t-event";
9
+ import { TEventDetail } from "../types/types-event/t-event";
10
10
  import { TEventImage } from "../types/types-event/t-event-image";
11
+ import { TEventMetadataI18nDetail } from "../types/types-event/t-event-metadata-i18n";
11
12
  import { TFolderDetail } from "../types/types-folder/t-folder";
12
13
  import { TFolderImage } from "../types/types-folder/t-folder-image";
14
+ import { TFolderMetadataI18nDetail } from "../types/types-folder/t-folder-metadata-i18n";
13
15
  import { TGroupDetail } from "../types/types-group/t-group";
16
+ import { TGroupImage } from "../types/types-group/t-group-image";
14
17
  import { TGroupMetadataI18nDetail } from "../types/types-group/t-group-metadata-i18n";
15
- import { TMapCategoryEvent } from "../types/types-map/t-map-category-event";
16
- import { TMapCategoryFolder } from "../types/types-map/t-map-category-folder";
17
- import { TMapCityEvent } from "../types/types-map/t-map-city-event";
18
- import { TMapCityFolder } from "../types/types-map/t-map-city-folder";
19
- import { TMapGroupEvent } from "../types/types-map/t-map-group-event";
20
- import { TMapGroupFolder } from "../types/types-map/t-map-group-folder";
21
- import { TMapStagEvent } from "../types/types-map/t-map-stag-event";
22
- import { TMapStagFolder } from "../types/types-map/t-map-stag-folder";
23
- import { TMapTagEvent } from "../types/types-map/t-map-tag-event";
24
- import { TMapTagFolder } from "../types/types-map/t-map-tag-folder";
18
+ import { TMapCategoryEventWithCategoryInfo, TMapCategoryEventWithEventInfo } from "../types/types-map/t-map-category-event";
19
+ import { TMapCategoryFolderWithCategoryInfo, TMapCategoryFolderWithFolderInfo } from "../types/types-map/t-map-category-folder";
20
+ import { TMapCityEventWithCityInfo, TMapCityEventWithEventInfo } from "../types/types-map/t-map-city-event";
21
+ import { TMapCityFolderWithCityInfo, TMapCityFolderWithFolderInfo } from "../types/types-map/t-map-city-folder";
22
+ import { TMapFolderEventWithEventInfo, TMapFolderEventWithFolderInfo } from "../types/types-map/t-map-folder-event";
23
+ import { TMapGroupEventWithEventInfo, TMapGroupEventWithGroupInfo } from "../types/types-map/t-map-group-event";
24
+ import { TMapGroupFolderWithFolderInfo, TMapGroupFolderWithGroupInfo } from "../types/types-map/t-map-group-folder";
25
+ import { TMapStagEventWithEventInfo, TMapStagEventWithStagInfo } from "../types/types-map/t-map-stag-event";
26
+ import { TMapStagFolderWithFolderInfo, TMapStagFolderWithStagInfo } from "../types/types-map/t-map-stag-folder";
27
+ import { TMapTagEventWithEventInfo, TMapTagEventWithTagInfo } from "../types/types-map/t-map-tag-event";
28
+ import { TMapTagFolderWithFolderInfo, TMapTagFolderWithTagInfo } from "../types/types-map/t-map-tag-folder";
25
29
  import { TStagDetail } from "../types/types-stag/t-stag";
26
30
  import { TStagI18n } from "../types/types-stag/t-stag-i18n";
27
31
  import { TStagMetadataI18nDetail } from "../types/types-stag/t-stag-metadata-i18n";
32
+ import { TTag } from "../types/types-tag/t-tag";
28
33
  export type ResponseDBSelect<T> = {
29
34
  data: T;
30
35
  count?: number;
31
36
  apiUrl?: string | null;
32
37
  };
33
- type BaseResponseDetail<TContent, K> = {
34
- content: TContent;
35
- metadataI18n?: TCityMetadataI18nDetail[] | TCategoryMetadataI18nDetail[] | TStagMetadataI18nDetail[] | TGroupMetadataI18nDetail[];
36
- images?: K;
38
+ /**
39
+ * 공통 타입 정의
40
+ */
41
+ type BaseResponseDetail<T, K> = {
42
+ images?: T[];
43
+ metadataI18n?: K[];
44
+ };
45
+ /**
46
+ * 폴더 상세 응답 타입 For Admin
47
+ */
48
+ export type ResponseFolderDetailForAdmin = BaseResponseDetail<TFolderImage, TFolderMetadataI18nDetail> & {
49
+ folder: TFolderDetail;
50
+ mapCityFolder?: TMapCityFolderWithCityInfo[];
51
+ mapCategoryFolder?: TMapCategoryFolderWithCategoryInfo[];
52
+ mapStagFolder?: TMapStagFolderWithStagInfo[];
53
+ mapTagFolder?: TMapTagFolderWithTagInfo[];
54
+ mapGroupFolder?: TMapGroupFolderWithGroupInfo[];
55
+ folderEvent?: TMapFolderEventWithEventInfo[];
56
+ };
57
+ /**
58
+ * 폴더 상세 응답 타입 For User Front
59
+ */
60
+ export type ResponseFolderDetailForUserFront = BaseResponseDetail<TFolderImage, TFolderMetadataI18nDetail> & {
61
+ folder: TFolderDetail;
62
+ mapCityFolder?: TMapCityFolderWithCityInfo[];
63
+ mapCategoryFolder?: TMapCategoryFolderWithCategoryInfo[];
64
+ mapStagFolder?: TMapStagFolderWithStagInfo[];
65
+ mapTagFolder?: TMapTagFolderWithTagInfo[];
66
+ mapGroupFolder?: TMapGroupFolderWithGroupInfo[];
67
+ folderEvent?: TMapFolderEventWithEventInfo[];
37
68
  };
38
- type WithSelected = {
39
- selectedFolder?: TFolderDetail[];
40
- selectedEvent?: TEventDetail[];
69
+ /**
70
+ * 이벤트 상세 응답 타입 For Admin
71
+ */
72
+ export type ResponseEventDetailForAdmin = BaseResponseDetail<TEventImage, TEventMetadataI18nDetail> & {
73
+ event: TEventDetail & {
74
+ country_name: string | null;
75
+ country_name_native: string | null;
76
+ city_name: string | null;
77
+ city_name_native: string | null;
78
+ };
79
+ mapFolderEvent?: TMapFolderEventWithFolderInfo[];
80
+ mapCityEvent?: TMapCityEventWithCityInfo[];
81
+ mapCategoryEvent?: TMapCategoryEventWithCategoryInfo[];
82
+ mapStagEvent?: TMapStagEventWithStagInfo[];
83
+ mapTagEvent?: TMapTagEventWithTagInfo[];
84
+ mapGroupEvent?: TMapGroupEventWithGroupInfo[];
41
85
  };
42
- export type ResponseCityDetailForAdmin = BaseResponseDetail<TCityDetail, TCityImage[]> & WithSelected & {
86
+ /**
87
+ * 이벤트 상세 응답 타입 For User Front
88
+ */
89
+ export type ResponseEventDetailForUserFront = BaseResponseDetail<TEventImage, TEventMetadataI18nDetail> & {
90
+ event: TEventDetail & {
91
+ country_name: string | null;
92
+ country_name_native: string | null;
93
+ city_name: string | null;
94
+ city_name_native: string | null;
95
+ };
96
+ mapFolderEvent?: TMapFolderEventWithFolderInfo[];
97
+ mapCityEvent?: TMapCityEventWithCityInfo[];
98
+ mapCategoryEvent?: TMapCategoryEventWithCategoryInfo[];
99
+ mapStagEvent?: TMapStagEventWithStagInfo[];
100
+ mapTagEvent?: TMapTagEventWithTagInfo[];
101
+ mapGroupEvent?: TMapGroupEventWithGroupInfo[];
102
+ };
103
+ /**
104
+ * 도시 상세 응답 타입 For Admin
105
+ */
106
+ export type ResponseCityDetailForAdmin = BaseResponseDetail<TCityImage, TCityMetadataI18nDetail> & {
107
+ city: TCityDetail;
108
+ i18n?: TCityI18n[];
43
109
  videos?: TCityYouTubeVideo[];
110
+ mapCityFolder?: TMapCityFolderWithCityInfo[];
111
+ mapCityEvent?: TMapCityEventWithCityInfo[];
112
+ };
113
+ /**
114
+ * 도시 상세 응답 타입 For User Front
115
+ */
116
+ export type ResponseCityDetailForUserFront = BaseResponseDetail<TCityImage, TCityMetadataI18nDetail> & {
117
+ city: TCityDetail;
44
118
  i18n?: TCityI18n[];
45
- mapCityFolder?: TMapCityFolder[];
46
- mapCityEvent?: TMapCityEvent[];
119
+ videos?: TCityYouTubeVideo[];
120
+ mapCityFolder?: TMapCityFolderWithFolderInfo[];
121
+ mapCityEvent?: TMapCityEventWithEventInfo[];
47
122
  };
48
- export type ResponseCategoryDetailForAdmin = BaseResponseDetail<TCategoryDetail, null> & WithSelected & {
123
+ /**
124
+ * 카테고리 상세 응답 타입 For Admin
125
+ */
126
+ export type ResponseCategoryDetailForAdmin = BaseResponseDetail<null, TCategoryMetadataI18nDetail> & {
127
+ category: TCategoryDetail;
49
128
  subCategories?: TCategoryDetail[];
50
129
  i18n?: TCategoryI18n[];
51
- mapCategoryFolder?: TMapCategoryFolder[];
52
- mapCategoryEvent?: TMapCategoryEvent[];
130
+ mapCategoryFolder?: TMapCategoryFolderWithCategoryInfo[];
131
+ mapCategoryEvent?: TMapCategoryEventWithCategoryInfo[];
53
132
  };
54
- export type ResponseStagDetailForAdmin = BaseResponseDetail<TStagDetail, null> & WithSelected & {
133
+ /**
134
+ * 카테고리 상세 응답 타입 For User Front
135
+ */
136
+ export type ResponseCategoryDetailForUserFront = BaseResponseDetail<null, TCategoryMetadataI18nDetail> & {
137
+ category: TCategoryDetail;
138
+ subCategories?: TCategoryDetail[];
139
+ i18n?: TCategoryI18n[];
140
+ mapCategoryFolder?: TMapCategoryFolderWithFolderInfo[];
141
+ mapCategoryEvent?: TMapCategoryEventWithEventInfo[];
142
+ };
143
+ /**
144
+ * Stag 상세 응답 타입 For Admin
145
+ */
146
+ export type ResponseStagDetailForAdmin = BaseResponseDetail<null, TStagMetadataI18nDetail> & {
147
+ stag: TStagDetail;
55
148
  i18n?: TStagI18n[];
56
- mapStagFolder?: TMapStagFolder[];
57
- mapStagEvent?: TMapStagEvent[];
58
- };
59
- export type ResponseEventDetailForAdmin = BaseResponseDetail<TEventDetail, TEventImage[]> & {
60
- mapCityEvent?: TMapCityEvent[];
61
- mapCategoryEvent?: TMapCategoryEvent[];
62
- mapStagEvent?: TMapStagEvent[];
63
- mapTagEvent?: TMapTagEvent[];
64
- mapGroupEvent?: TMapGroupEvent[];
65
- };
66
- type TEventContentExtras = {
67
- target_country_name?: string | null;
68
- target_country_native?: string | null;
69
- target_city_name?: string | null;
70
- target_city_name_native?: string | null;
71
- };
72
- export type MapCityEventExtra = {
73
- city_name?: string | null;
74
- city_name_native?: string | null;
75
- city_name_i18n?: string | null;
76
- };
77
- export type MapCategoryEventExtra = {
78
- category_name?: string | null;
79
- category_name_i18n?: string | null;
80
- };
81
- export type MapStagEventExtra = {
82
- stag?: string | null;
83
- stag_native?: string | null;
84
- stag_name_i18n?: string | null;
85
- };
86
- export type MapGroupEventExtra = {
87
- group_name?: string | null;
88
- group_name_native?: string | null;
89
- group_type?: string | null;
90
- };
91
- export type ResponseEventDetailForUserFront = BaseResponseDetail<TEventDetail & TEventContentExtras, TEventImage[]> & {
92
- mapCityEvent?: Array<TMapCityEvent & MapCityEventExtra>;
93
- mapCategoryEvent?: Array<TMapCategoryEvent & MapCategoryEventExtra>;
94
- mapStagEvent?: Array<TMapStagEvent & MapStagEventExtra>;
95
- mapTagEvent?: TMapTagEvent[];
96
- mapGroupEvent?: Array<TMapGroupEvent & MapGroupEventExtra>;
97
- };
98
- export type ResponseFolderDetailForAdmin = BaseResponseDetail<TFolderDetail, TFolderImage[]> & {
99
- folderEvent?: TEventListForAdmin[];
100
- mapCityFolder?: TMapCityFolder[];
101
- mapCategoryFolder?: TMapCategoryFolder[];
102
- mapStagFolder?: TMapStagFolder[];
103
- mapTagFolder?: TMapTagFolder[];
104
- mapGroupFolder?: TMapGroupFolder[];
105
- };
106
- export type ResponseFolderDetailForUserFront = BaseResponseDetail<TFolderDetail, TFolderImage[]> & {
107
- folderEvent?: TEventListForAdmin[];
108
- mapCityFolder?: TMapCityFolder[];
109
- mapCategoryFolder?: TMapCategoryFolder[];
110
- mapStagFolder?: TMapStagFolder[];
111
- mapTagFolder?: TMapTagFolder[];
112
- mapGroupFolder?: TMapGroupFolder[];
113
- };
114
- export type ResponseGroupDetailForAdmin = BaseResponseDetail<TGroupDetail, null> & WithSelected & {
115
- mapGroupFolder?: TMapGroupFolder[];
116
- mapGroupEvent?: TMapGroupEvent[];
149
+ mapStagFolder?: TMapStagFolderWithStagInfo[];
150
+ mapStagEvent?: TMapStagEventWithStagInfo[];
151
+ };
152
+ /**
153
+ * Stag 상세 응답 타입 For User Front
154
+ */
155
+ export type ResponseStagDetailForUserFront = BaseResponseDetail<null, TStagMetadataI18nDetail> & {
156
+ stag: TStagDetail;
157
+ i18n?: TStagI18n[];
158
+ mapStagFolder?: TMapStagFolderWithFolderInfo[];
159
+ mapStagEvent?: TMapStagEventWithEventInfo[];
160
+ };
161
+ /**
162
+ * Tag 상세 응답 타입 For Admin
163
+ */
164
+ export type ResponseTagDetailForAdmin = BaseResponseDetail<null, null> & {
165
+ tag: TTag;
166
+ mapTagFolder?: TMapTagFolderWithTagInfo[];
167
+ mapTagEvent?: TMapTagEventWithTagInfo[];
168
+ };
169
+ /**
170
+ * Tag 상세 응답 타입 For User Front
171
+ */
172
+ export type ResponseTagDetailForUserFront = BaseResponseDetail<null, null> & {
173
+ tag: TTag;
174
+ mapTagFolder?: TMapTagFolderWithFolderInfo[];
175
+ mapTagEvent?: TMapTagEventWithEventInfo[];
176
+ };
177
+ /**
178
+ * Group 상세 응답 타입 For Admin
179
+ */
180
+ export type ResponseGroupDetailForAdmin = BaseResponseDetail<TGroupImage, TGroupMetadataI18nDetail> & {
181
+ group: TGroupDetail;
182
+ mapGroupFolder?: TMapGroupFolderWithGroupInfo[];
183
+ mapGroupEvent?: TMapGroupEventWithGroupInfo[];
184
+ };
185
+ /**
186
+ * 카테고리 상세 응답 타입 For User Front
187
+ */
188
+ export type ResponseGroupDetailForUserFront = BaseResponseDetail<TGroupImage, TGroupMetadataI18nDetail> & {
189
+ group: TGroupDetail;
190
+ mapGroupFolder?: TMapGroupFolderWithFolderInfo[];
191
+ mapGroupEvent?: TMapGroupEventWithEventInfo[];
117
192
  };
118
193
  export type ResponseDplusAPI<T> = {
119
194
  success: boolean;
@@ -1,3 +1,20 @@
1
+ export type TEventCard = {
2
+ event_code: string | null;
3
+ date: string | null;
4
+ time: string | null;
5
+ utc_minutes: number | null;
6
+ duration: number | null;
7
+ is_repeat_annually: boolean | null;
8
+ title: string | null;
9
+ bg_color: string | null;
10
+ fg_color: string | null;
11
+ thumbnail_square: string | null;
12
+ thumbnail_horizontal: string | null;
13
+ thumbnail_vertical: string | null;
14
+ profile: string | null;
15
+ description: string | null;
16
+ url: string | null;
17
+ };
1
18
  export type TEventListForAdmin = {
2
19
  event_id: string;
3
20
  event_code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"t-event.js","sourceRoot":"","sources":["../../../src/types/types-event/t-event.ts"],"names":[],"mappings":"AA4BA;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,UAAU;IACV,YAAY;IACZ,MAAM;IACN,MAAM;IACN,IAAI;IACJ,UAAU;IACV,aAAa;IACb,oBAAoB;IACpB,OAAO;IACP,UAAU;IACV,UAAU;IACV,qBAAqB;IACrB,kBAAkB;IAClB,WAAW;IACX,YAAY;IACZ,aAAa;IACb,cAAc;IACd,aAAa;IACb,gBAAgB;IAChB,WAAW;IACX,YAAY;IACZ,kBAAkB;IAClB,YAAY;IACZ,YAAY;CACb,CAAC;AA8EF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,UAAU;IACV,YAAY;IACZ,MAAM;IACN,MAAM;IACN,IAAI;IACJ,OAAO;IACP,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,sBAAsB;IACtB,oBAAoB;IACpB,SAAS;IACT,aAAa;IACb,qBAAqB;IACrB,kBAAkB;IAClB,UAAU;IACV,WAAW;IACX,KAAK;IACL,OAAO;IACP,oBAAoB;IACpB,OAAO;IACP,eAAe;IACf,cAAc;IACd,WAAW;IACX,YAAY;IACZ,iBAAiB;IACjB,aAAa;IACb,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,uBAAuB;IACvB,uBAAuB;IACvB,uBAAuB;IACvB,uBAAuB;IACvB,uBAAuB;IACvB,gBAAgB;IAChB,sBAAsB;IACtB,mBAAmB;IACnB,yBAAyB;IACzB,mBAAmB;IACnB,YAAY;IACZ,YAAY;IACZ,YAAY;CACb,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,aAAa;IACb,UAAU;IACV,UAAU;IACV,UAAU;IACV,WAAW;IACX,UAAU;IACV,aAAa;IACb,cAAc;IACd,aAAa;IACb,kBAAkB;IAClB,gBAAgB;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,oBAAoB;IACpB,kBAAkB;IAClB,WAAW;IACX,aAAa;IACb,YAAY;IACZ,sBAAsB;IACtB,sBAAsB;IACtB,wBAAwB;IACxB,sBAAsB;IACtB,wBAAwB;IACxB,gBAAgB;IAChB,WAAW;IACX,YAAY;CACb,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"t-event.js","sourceRoot":"","sources":["../../../src/types/types-event/t-event.ts"],"names":[],"mappings":"AA+CA;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,UAAU;IACV,YAAY;IACZ,MAAM;IACN,MAAM;IACN,IAAI;IACJ,UAAU;IACV,aAAa;IACb,oBAAoB;IACpB,OAAO;IACP,UAAU;IACV,UAAU;IACV,qBAAqB;IACrB,kBAAkB;IAClB,WAAW;IACX,YAAY;IACZ,aAAa;IACb,cAAc;IACd,aAAa;IACb,gBAAgB;IAChB,WAAW;IACX,YAAY;IACZ,kBAAkB;IAClB,YAAY;IACZ,YAAY;CACb,CAAC;AA8EF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,UAAU;IACV,YAAY;IACZ,MAAM;IACN,MAAM;IACN,IAAI;IACJ,OAAO;IACP,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,sBAAsB;IACtB,oBAAoB;IACpB,SAAS;IACT,aAAa;IACb,qBAAqB;IACrB,kBAAkB;IAClB,UAAU;IACV,WAAW;IACX,KAAK;IACL,OAAO;IACP,oBAAoB;IACpB,OAAO;IACP,eAAe;IACf,cAAc;IACd,WAAW;IACX,YAAY;IACZ,iBAAiB;IACjB,aAAa;IACb,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,uBAAuB;IACvB,uBAAuB;IACvB,uBAAuB;IACvB,uBAAuB;IACvB,uBAAuB;IACvB,gBAAgB;IAChB,sBAAsB;IACtB,mBAAmB;IACnB,yBAAyB;IACzB,mBAAmB;IACnB,YAAY;IACZ,YAAY;IACZ,YAAY;CACb,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,aAAa;IACb,UAAU;IACV,UAAU;IACV,UAAU;IACV,WAAW;IACX,UAAU;IACV,aAAa;IACb,cAAc;IACd,aAAa;IACb,kBAAkB;IAClB,gBAAgB;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,oBAAoB;IACpB,kBAAkB;IAClB,WAAW;IACX,aAAa;IACb,YAAY;IACZ,sBAAsB;IACtB,sBAAsB;IACtB,wBAAwB;IACxB,sBAAsB;IACtB,wBAAwB;IACxB,gBAAgB;IAChB,WAAW;IACX,YAAY;CACb,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,mBAAmB,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { TEventCard } from "../types-event/t-event";
1
2
  export type TMapCategoryEvent = {
2
3
  category_code: string;
3
4
  event_id: string;
@@ -14,3 +15,15 @@ export type TMapCategoryEventUpdate = {
14
15
  category_code: string;
15
16
  event_id: string;
16
17
  } & Partial<Omit<TMapCategoryEvent, "category_code" | "event_id">>;
18
+ export type TMapCategoryEventWithCategoryInfo = TMapCategoryEvent & {
19
+ category_info: {
20
+ category_code: string;
21
+ order_num: number | null;
22
+ target_country_code: string | null;
23
+ upper_category_code: string | null;
24
+ name: string | null;
25
+ } | null;
26
+ };
27
+ export type TMapCategoryEventWithEventInfo = TMapCategoryEvent & {
28
+ event_info: TEventCard | null;
29
+ };
@@ -15,3 +15,22 @@ export type TMapCategoryFolderUpdate = {
15
15
  category_code: string;
16
16
  folder_id: string;
17
17
  } & Partial<Omit<TMapCategoryFolder, "category_code" | "folder_id">>;
18
+ export type TMapCategoryFolderWithCategoryInfo = TMapCategoryFolder & {
19
+ category_info: {
20
+ category_code: string;
21
+ order_num: number | null;
22
+ target_country_code: string | null;
23
+ upper_category_code: string | null;
24
+ name: string | null;
25
+ } | null;
26
+ };
27
+ export type TMapCategoryFolderWithFolderInfo = TMapCategoryFolder & {
28
+ folder_info: {
29
+ folder_id: string;
30
+ folder_code: string | null;
31
+ title: string | null;
32
+ is_public: boolean | null;
33
+ is_active: boolean | null;
34
+ is_display: boolean | null;
35
+ } | null;
36
+ };
@@ -1,3 +1,4 @@
1
+ import { TEventCard } from "../types-event/t-event";
1
2
  export type TMapCityEvent = {
2
3
  city_code: string;
3
4
  event_id: string;
@@ -14,3 +15,14 @@ export type TMapCityEventUpdate = {
14
15
  city_code: string;
15
16
  event_id: string;
16
17
  } & Partial<Omit<TMapCityEvent, "city_code" | "event_id">>;
18
+ export type TMapCityEventWithCityInfo = TMapCityEvent & {
19
+ city_info: {
20
+ city_code: string;
21
+ country_code: string;
22
+ name: string;
23
+ name_native: string;
24
+ } | null;
25
+ };
26
+ export type TMapCityEventWithEventInfo = TMapCityEvent & {
27
+ event_info: TEventCard | null;
28
+ };
@@ -15,3 +15,21 @@ export type TMapCityFolderUpdate = {
15
15
  city_code: string;
16
16
  folder_id: string;
17
17
  } & Partial<Omit<TMapCityFolder, "city_code" | "folder_id">>;
18
+ export type TMapCityFolderWithCityInfo = TMapCityFolder & {
19
+ city_info: {
20
+ city_code: string;
21
+ country_code: string;
22
+ name: string;
23
+ name_native: string;
24
+ } | null;
25
+ };
26
+ export type TMapCityFolderWithFolderInfo = TMapCityFolder & {
27
+ folder_info: {
28
+ folder_id: string;
29
+ folder_code: string | null;
30
+ title: string | null;
31
+ is_public: boolean | null;
32
+ is_active: boolean | null;
33
+ is_display: boolean | null;
34
+ } | null;
35
+ };
@@ -1,3 +1,4 @@
1
+ import { TEventCard } from "../types-event/t-event";
1
2
  export type TMapFolderEvent = {
2
3
  folder_id: string;
3
4
  event_id: string;
@@ -14,3 +15,16 @@ export type TMapFolderEventUpdate = {
14
15
  folder_id: string;
15
16
  event_id: string;
16
17
  } & Partial<Omit<TMapFolderEvent, "folder_id" | "event_id">>;
18
+ export type TMapFolderEventWithFolderInfo = TMapFolderEvent & {
19
+ folder_info: {
20
+ folder_id: string;
21
+ folder_code: string | null;
22
+ title: string | null;
23
+ is_public: boolean | null;
24
+ is_active: boolean | null;
25
+ is_display: boolean | null;
26
+ } | null;
27
+ };
28
+ export type TMapFolderEventWithEventInfo = TMapFolderEvent & {
29
+ event_info: TEventCard | null;
30
+ };
@@ -1,3 +1,4 @@
1
+ import { TEventCard } from "../types-event/t-event";
1
2
  export type TMapGroupEvent = {
2
3
  group_code: string;
3
4
  event_id: string;
@@ -14,3 +15,15 @@ export type TMapGroupEventUpdate = {
14
15
  group_code: string;
15
16
  event_id: string;
16
17
  } & Partial<Omit<TMapGroupEvent, "group_code" | "event_id">>;
18
+ export type TMapGroupEventWithGroupInfo = TMapGroupEvent & {
19
+ group_info: {
20
+ group_code: string;
21
+ group_type: string;
22
+ name: string;
23
+ name_native: string;
24
+ related_group_code: string;
25
+ } | null;
26
+ };
27
+ export type TMapGroupEventWithEventInfo = TMapGroupEvent & {
28
+ event_info: TEventCard | null;
29
+ };
@@ -15,3 +15,22 @@ export type TMapGroupFolderUpdate = {
15
15
  group_code: string;
16
16
  folder_id: string;
17
17
  } & Partial<Omit<TMapGroupFolder, "group_code" | "folder_id">>;
18
+ export type TMapGroupFolderWithGroupInfo = TMapGroupFolder & {
19
+ group_info: {
20
+ group_code: string;
21
+ group_type: string;
22
+ name: string;
23
+ name_native: string;
24
+ related_group_code: string;
25
+ } | null;
26
+ };
27
+ export type TMapGroupFolderWithFolderInfo = TMapGroupFolder & {
28
+ folder_info: {
29
+ folder_id: string;
30
+ folder_code: string | null;
31
+ title: string | null;
32
+ is_public: boolean | null;
33
+ is_active: boolean | null;
34
+ is_display: boolean | null;
35
+ } | null;
36
+ };
@@ -1,3 +1,4 @@
1
+ import { TEventCard } from "../types-event/t-event";
1
2
  export type TMapStagEvent = {
2
3
  stag_code: string;
3
4
  event_id: string;
@@ -14,3 +15,14 @@ export type TMapStagEventUpdate = {
14
15
  stag_code: string;
15
16
  event_id: string;
16
17
  } & Partial<Omit<TMapStagEvent, "stag_code" | "event_id">>;
18
+ export type TMapStagEventWithStagInfo = TMapStagEvent & {
19
+ stag_info: {
20
+ stag_code: string;
21
+ target_country_code: number | null;
22
+ stag: string | null;
23
+ stag_native: string | null;
24
+ } | null;
25
+ };
26
+ export type TMapStagEventWithEventInfo = TMapStagEvent & {
27
+ event_info: TEventCard | null;
28
+ };
@@ -15,3 +15,21 @@ export type TMapStagFolderUpdate = {
15
15
  stag_code: string;
16
16
  folder_id: string;
17
17
  } & Partial<Omit<TMapStagFolder, "stag_code" | "folder_id">>;
18
+ export type TMapStagFolderWithStagInfo = TMapStagFolder & {
19
+ stag_info: {
20
+ stag_code: string;
21
+ target_country_code: number | null;
22
+ stag: string | null;
23
+ stag_native: string | null;
24
+ } | null;
25
+ };
26
+ export type TMapStagFolderWithFolderInfo = TMapStagFolder & {
27
+ folder_info: {
28
+ folder_id: string;
29
+ folder_code: string | null;
30
+ title: string | null;
31
+ is_public: boolean | null;
32
+ is_active: boolean | null;
33
+ is_display: boolean | null;
34
+ } | null;
35
+ };
@@ -1,3 +1,4 @@
1
+ import { TEventCard } from "../types-event/t-event";
1
2
  export type TMapTagEvent = {
2
3
  tag_id: number;
3
4
  event_id: string;
@@ -14,3 +15,14 @@ export type TMapTagEventUpdate = {
14
15
  tag_id: number;
15
16
  event_id: string;
16
17
  } & Partial<Omit<TMapTagEvent, "tag_id" | "event_id">>;
18
+ export type TMapTagEventWithTagInfo = TMapTagEvent & {
19
+ tag_info: {
20
+ tag_id: number;
21
+ tag_code: string | null;
22
+ tag: string | null;
23
+ event_count: number | null;
24
+ } | null;
25
+ };
26
+ export type TMapTagEventWithEventInfo = TMapTagEvent & {
27
+ event_info: TEventCard | null;
28
+ };
@@ -15,3 +15,21 @@ export type TMapTagFolderUpdate = {
15
15
  tag_id: number;
16
16
  folder_id: string;
17
17
  } & Partial<Omit<TMapTagFolder, "tag_id" | "folder_id">>;
18
+ export type TMapTagFolderWithTagInfo = TMapTagFolder & {
19
+ tag_info: {
20
+ tag_id: number;
21
+ tag_code: string | null;
22
+ tag: string | null;
23
+ event_count: number | null;
24
+ } | null;
25
+ };
26
+ export type TMapTagFolderWithFolderInfo = TMapTagFolder & {
27
+ folder_info: {
28
+ folder_id: string;
29
+ folder_code: string | null;
30
+ title: string | null;
31
+ is_public: boolean | null;
32
+ is_active: boolean | null;
33
+ is_display: boolean | null;
34
+ } | null;
35
+ };
@@ -1,3 +1,4 @@
1
+ import { TEventCard } from "../types-event/t-event";
1
2
  export type TMapUserEvent = {
2
3
  user_id: string;
3
4
  event_id: string;
@@ -14,3 +15,17 @@ export type TMapUserEventUpdate = {
14
15
  user_id: string;
15
16
  event_id: string;
16
17
  } & Partial<Omit<TMapUserEvent, "user_id" | "event_id">>;
18
+ export type TMapUserEventWithUserInfo = TMapUserEvent & {
19
+ user_info: {
20
+ user_id: string;
21
+ user_name: string | null;
22
+ country_code: string | null;
23
+ lang_code: string | null;
24
+ name: string | null;
25
+ avatar_url: string | null;
26
+ timezone: string | null;
27
+ } | null;
28
+ };
29
+ export type TMapUserEventWithEventInfo = TMapUserEvent & {
30
+ event_info: TEventCard | null;
31
+ };
@@ -15,3 +15,24 @@ export type TMapUserFolderUpdate = {
15
15
  user_id: string;
16
16
  folder_id: string;
17
17
  } & Partial<Omit<TMapUserFolder, "user_id" | "folder_id">>;
18
+ export type TMapUserFolderWithUserInfo = TMapUserFolder & {
19
+ user_info: {
20
+ user_id: string;
21
+ user_name: string | null;
22
+ country_code: string | null;
23
+ lang_code: string | null;
24
+ name: string | null;
25
+ avatar_url: string | null;
26
+ timezone: string | null;
27
+ } | null;
28
+ };
29
+ export type TMapUserFolderWithFolderInfo = TMapUserFolder & {
30
+ folder_info: {
31
+ folder_id: string;
32
+ folder_code: string | null;
33
+ title: string | null;
34
+ is_public: boolean | null;
35
+ is_active: boolean | null;
36
+ is_display: boolean | null;
37
+ } | null;
38
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dplus_common_v1",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "description": "Common modules for dplus API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "dplus"