dplus_common_v1 0.1.61 → 0.1.62

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.
@@ -1,18 +1,18 @@
1
- import { TCategoryDetail } from "../types/types-category/t-category";
1
+ import { TCategoryDetail, TCategoryLabelInfo } from "../types/types-category/t-category";
2
2
  import { TCategoryI18n } from "../types/types-category/t-category-i18n";
3
3
  import { TCategoryMetadataI18nDetail } from "../types/types-category/t-category-metadata-i18n";
4
- import { TCityDetail } from "../types/types-city/t-city";
4
+ import { TCityDetail, TCityLabelInfo } from "../types/types-city/t-city";
5
5
  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 } from "../types/types-event/t-event";
9
+ import { TEventCard, TEventDetail } from "../types/types-event/t-event";
10
10
  import { TEventImage } from "../types/types-event/t-event-image";
11
11
  import { TEventMetadataI18nDetail } from "../types/types-event/t-event-metadata-i18n";
12
- import { TFolderDetail } from "../types/types-folder/t-folder";
12
+ import { TFolderDetail, TFolderSummaryInfo } from "../types/types-folder/t-folder";
13
13
  import { TFolderImage } from "../types/types-folder/t-folder-image";
14
14
  import { TFolderMetadataI18nDetail } from "../types/types-folder/t-folder-metadata-i18n";
15
- import { TGroupDetail } from "../types/types-group/t-group";
15
+ import { TGroupDetail, TGroupLabelInfo } from "../types/types-group/t-group";
16
16
  import { TGroupImage } from "../types/types-group/t-group-image";
17
17
  import { TGroupMetadataI18nDetail } from "../types/types-group/t-group-metadata-i18n";
18
18
  import { TMapCategoryEventWithCategoryInfo, TMapCategoryEventWithEventInfo } from "../types/types-map/t-map-category-event";
@@ -26,10 +26,10 @@ import { TMapStagEventWithEventInfo, TMapStagEventWithStagInfo } from "../types/
26
26
  import { TMapStagFolderWithFolderInfo, TMapStagFolderWithStagInfo } from "../types/types-map/t-map-stag-folder";
27
27
  import { TMapTagEventWithEventInfo, TMapTagEventWithTagInfo } from "../types/types-map/t-map-tag-event";
28
28
  import { TMapTagFolderWithFolderInfo, TMapTagFolderWithTagInfo } from "../types/types-map/t-map-tag-folder";
29
- import { TStagDetail } from "../types/types-stag/t-stag";
29
+ import { TStagDetail, TStagLabelInfo } from "../types/types-stag/t-stag";
30
30
  import { TStagI18n } from "../types/types-stag/t-stag-i18n";
31
31
  import { TStagMetadataI18nDetail } from "../types/types-stag/t-stag-metadata-i18n";
32
- import { TTag } from "../types/types-tag/t-tag";
32
+ import { TTag, TTagLabelInfo } from "../types/types-tag/t-tag";
33
33
  export type ResponseDBSelect<T> = {
34
34
  data: T;
35
35
  count?: number;
@@ -190,6 +190,98 @@ export type ResponseGroupDetailForUserFront = BaseResponseDetail<TGroupImage, TG
190
190
  mapGroupFolder?: TMapGroupFolderWithFolderInfo[];
191
191
  mapGroupEvent?: TMapGroupEventWithEventInfo[];
192
192
  };
193
+ /**
194
+ * 날짜 상세 응답 타입 For Admin
195
+ */
196
+ export type ResponseDateDetailForAdmin = {
197
+ date: string;
198
+ events: TEventCard & {
199
+ folders: TFolderSummaryInfo[];
200
+ cities: TCityLabelInfo[];
201
+ categories: TCategoryLabelInfo[];
202
+ stags: TStagLabelInfo[];
203
+ tags: TTagLabelInfo[];
204
+ groups: TGroupLabelInfo[];
205
+ }[];
206
+ };
207
+ /**
208
+ * 날짜 상세 응답 타입 For User Front
209
+ */
210
+ export type ResponseDateDetailForUserFront = {
211
+ date: string;
212
+ events: TEventCard & {
213
+ folders: TFolderSummaryInfo[];
214
+ cities: TCityLabelInfo[];
215
+ categories: TCategoryLabelInfo[];
216
+ stags: TStagLabelInfo[];
217
+ tags: TTagLabelInfo[];
218
+ groups: TGroupLabelInfo[];
219
+ }[];
220
+ };
221
+ /**
222
+ * 오늘 날짜 상세 응답 타입 For Admin
223
+ */
224
+ export type ResponseTodayDetailForAdmin = {
225
+ today: string;
226
+ events: TEventCard & {
227
+ folders: TFolderSummaryInfo[];
228
+ cities: TCityLabelInfo[];
229
+ categories: TCategoryLabelInfo[];
230
+ stags: TStagLabelInfo[];
231
+ tags: TTagLabelInfo[];
232
+ groups: TGroupLabelInfo[];
233
+ }[];
234
+ };
235
+ /**
236
+ * 오늘 날짜 상세 응답 타입 For User Front
237
+ */
238
+ export type ResponseTodayDetailForUserFront = {
239
+ today: string;
240
+ events: TEventCard & {
241
+ folders: TFolderSummaryInfo[];
242
+ cities: TCityLabelInfo[];
243
+ categories: TCategoryLabelInfo[];
244
+ stags: TStagLabelInfo[];
245
+ tags: TTagLabelInfo[];
246
+ groups: TGroupLabelInfo[];
247
+ }[];
248
+ };
249
+ /**
250
+ * 주변 날짜 상세 응답 타입 For Admin
251
+ */
252
+ export type ResponseNearbyDetailForAdmin = {
253
+ nearby: {
254
+ latitude: number;
255
+ longitude: number;
256
+ distance_km: number;
257
+ };
258
+ events: TEventCard & {
259
+ folders: TFolderSummaryInfo[];
260
+ cities: TCityLabelInfo[];
261
+ categories: TCategoryLabelInfo[];
262
+ stags: TStagLabelInfo[];
263
+ tags: TTagLabelInfo[];
264
+ groups: TGroupLabelInfo[];
265
+ }[];
266
+ };
267
+ /**
268
+ * 주변 날짜 상세 응답 타입 For User Front
269
+ */
270
+ export type ResponseNearbyDetailForUserFront = {
271
+ nearby: {
272
+ latitude: number;
273
+ longitude: number;
274
+ distance_km: number;
275
+ };
276
+ events: TEventCard & {
277
+ folders: TFolderSummaryInfo[];
278
+ cities: TCityLabelInfo[];
279
+ categories: TCategoryLabelInfo[];
280
+ stags: TStagLabelInfo[];
281
+ tags: TTagLabelInfo[];
282
+ groups: TGroupLabelInfo[];
283
+ }[];
284
+ };
193
285
  export type ResponseDplusAPI<T> = {
194
286
  success: boolean;
195
287
  alarm?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dplus_common_v1",
3
- "version": "0.1.61",
3
+ "version": "0.1.62",
4
4
  "description": "Common modules for dplus API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "dplus"