dplus_common_v1 0.1.24 → 0.1.26

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.
@@ -7,7 +7,7 @@ export type TCityOption = {
7
7
  name_native: string | null;
8
8
  name_ko: string | null;
9
9
  };
10
- export type TCityListAdmin = TCityOption & {
10
+ export type TCityListForAdmin = TCityOption & {
11
11
  profile: string | null;
12
12
  official_web: string | null;
13
13
  youtube_ch_id: string | null;
@@ -20,7 +20,7 @@ export type TCityListAdmin = TCityOption & {
20
20
  view_count: number;
21
21
  event_count: number;
22
22
  };
23
- export type TCityDetail = TCityListAdmin & {
23
+ export type TCityDetail = TCityListForAdmin & {
24
24
  thumbnail_square: string | null;
25
25
  thumbnail_horizontal: string | null;
26
26
  thumbnail_vertical: string | null;
@@ -20,34 +20,33 @@ export type ResponseDBSelect<T> = {
20
20
  count?: number;
21
21
  apiUrl?: string | null;
22
22
  };
23
- type BaseResponseDetail<TContent, TImage = undefined> = {
23
+ type BaseResponseDetail<TContent, K> = {
24
24
  content: TContent;
25
25
  metadataI18n?: TMetadataI18nDetail[];
26
- } & (TImage extends undefined ? undefined : {
27
- images?: TImage[];
28
- });
26
+ images?: K;
27
+ };
29
28
  type WithSelected = {
30
29
  selectedFolder?: TSelectedFolderDetail[];
31
30
  selectedEvent?: TSelectedEventDetail[];
32
31
  };
33
- export type ResponseCityDetailForAdmin = BaseResponseDetail<TCityDetail, TCityImage> & WithSelected & {
32
+ export type ResponseCityDetailForAdmin = BaseResponseDetail<TCityDetail, TCityImage[]> & WithSelected & {
34
33
  videos?: TCityYouTubeVideo[];
35
34
  i18n?: TCityI18n[];
36
35
  mapCityFolder?: TMapCityFolder[];
37
36
  mapCityEvent?: TMapCityEvent[];
38
37
  };
39
- export type ResponseCategoryDetailForAdmin = BaseResponseDetail<TCategoryDetail> & WithSelected & {
38
+ export type ResponseCategoryDetailForAdmin = BaseResponseDetail<TCategoryDetail, null> & WithSelected & {
40
39
  subCategories?: TCategoryDetail[];
41
40
  i18n?: TCategoryI18n[];
42
41
  mapCategoryFolder?: TMapCategoryFolder[];
43
42
  mapCategoryEvent?: TMapCategoryEvent[];
44
43
  };
45
- export type ResponseStagDetailForAdmin = BaseResponseDetail<TStagDetail> & WithSelected & {
44
+ export type ResponseStagDetailForAdmin = BaseResponseDetail<TStagDetail, null> & WithSelected & {
46
45
  i18n?: TStagI18n[];
47
46
  mapStagFolder?: TMapStagFolder[];
48
47
  mapStagEvent?: TMapStagEvent[];
49
48
  };
50
- export type ResponseFolderDetailForAdmin = BaseResponseDetail<TFolderDetail, TFolderImage> & {
49
+ export type ResponseFolderDetailForAdmin = BaseResponseDetail<TFolderDetail, TFolderImage[]> & {
51
50
  mapFolderEvent?: TEventListForAdmin[];
52
51
  mapCityFolder?: TMapCityFolder[];
53
52
  mapCategoryFolder?: TMapCategoryFolder[];
@@ -61,7 +60,7 @@ export type ResponseFolderDetailForAdmin = BaseResponseDetail<TFolderDetail, TFo
61
60
  mapProductFolder?: TMapProductFolder[];
62
61
  mapTeamFolder?: TMapTeamFolder[];
63
62
  };
64
- export type ResponseEventDetailForAdmin = BaseResponseDetail<TEventDetail, TEventImage> & {
63
+ export type ResponseEventDetailForAdmin = BaseResponseDetail<TEventDetail, TEventImage[]> & {
65
64
  mapCityEvent?: TMapCityEvent[];
66
65
  mapCategoryEvent?: TMapCategoryEvent[];
67
66
  mapStagEvent?: TMapStagEvent[];
@@ -74,32 +73,32 @@ export type ResponseEventDetailForAdmin = BaseResponseDetail<TEventDetail, TEven
74
73
  mapProductEvent?: TMapProductEvent[];
75
74
  mapTeamEvent?: TMapTeamEvent[];
76
75
  };
77
- export type ResponsePeventDetailForAdmin = BaseResponseDetail<TPeventDetail, TPeventImage>;
78
- export type ResponseIdolGroupDetailForAdmin = BaseResponseDetail<TIdolGroupDetail> & WithSelected & {
76
+ export type ResponsePeventDetailForAdmin = BaseResponseDetail<TPeventDetail, TPeventImage[]>;
77
+ export type ResponseIdolGroupDetailForAdmin = BaseResponseDetail<TIdolGroupDetail, null> & WithSelected & {
79
78
  mapIdolGroupFolder?: TMapIdolGroupFolder[];
80
79
  mapIdolGroupEvent?: TMapIdolGroupEvent[];
81
80
  };
82
- export type ResponseCelebDetailForAdmin = BaseResponseDetail<TCelebDetail> & WithSelected & {
81
+ export type ResponseCelebDetailForAdmin = BaseResponseDetail<TCelebDetail, null> & WithSelected & {
83
82
  mapCelebFolder?: TMapCelebFolder[];
84
83
  mapCelebEvent?: TMapCelebEvent[];
85
84
  };
86
- export type ResponsePeopleDetailForAdmin = BaseResponseDetail<TPeopleDetail> & WithSelected & {
85
+ export type ResponsePeopleDetailForAdmin = BaseResponseDetail<TPeopleDetail, null> & WithSelected & {
87
86
  mapPeopleFolder?: TMapPeopleFolder[];
88
87
  mapPeopleEvent?: TMapPeopleEvent[];
89
88
  };
90
- export type ResponseCompanyDetailForAdmin = BaseResponseDetail<TCompanyDetail> & WithSelected & {
89
+ export type ResponseCompanyDetailForAdmin = BaseResponseDetail<TCompanyDetail, null> & WithSelected & {
91
90
  mapCompanyFolder?: TMapCompanyFolder[];
92
91
  mapCompanyEvent?: TMapCompanyEvent[];
93
92
  };
94
- export type ResponseBrandDetailForAdmin = BaseResponseDetail<TBrandDetail> & WithSelected & {
93
+ export type ResponseBrandDetailForAdmin = BaseResponseDetail<TBrandDetail, null> & WithSelected & {
95
94
  mapBrandFolder?: TMapBrandFolder[];
96
95
  mapBrandEvent?: TMapBrandEvent[];
97
96
  };
98
- export type ResponseProductDetailForAdmin = BaseResponseDetail<TProductDetail> & WithSelected & {
97
+ export type ResponseProductDetailForAdmin = BaseResponseDetail<TProductDetail, null> & WithSelected & {
99
98
  mapProductFolder?: TMapProductFolder[];
100
99
  mapProductEvent?: TMapProductEvent[];
101
100
  };
102
- export type ResponseTeamDetailForAdmin = BaseResponseDetail<TTeamDetail> & WithSelected & {
101
+ export type ResponseTeamDetailForAdmin = BaseResponseDetail<TTeamDetail, null> & WithSelected & {
103
102
  mapTeamFolder?: TMapTeamFolder[];
104
103
  mapTeamEvent?: TMapTeamEvent[];
105
104
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dplus_common_v1",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "Common modules for dplus API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "dplus"