dplus_common_v1 0.1.9 → 0.1.10
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,5 +1,80 @@
|
|
|
1
|
+
import { TMapBrandEvent, TMapBrandFolder } from "../db-types/db-brand-types";
|
|
2
|
+
import { TCategoryDetail, TCategoryI18n } from "../db-types/db-category-types";
|
|
3
|
+
import { TMapCelebEvent, TMapCelebFolder } from "../db-types/db-celeb-types";
|
|
4
|
+
import { TCityDetail, TCityI18n, TCityImage, TCityYouTubeVideo } from "../db-types/db-city-types";
|
|
5
|
+
import { TMapCompanyEvent, TMapCompanyFolder } from "../db-types/db-company-types";
|
|
6
|
+
import { TEventDetail, TEventImage, TEventListForAdmin } from "../db-types/db-event-types";
|
|
7
|
+
import { TFolderDetail, TFolderImage } from "../db-types/db-folder-types";
|
|
8
|
+
import { TMapIdolGroupEvent, TMapIdolGroupFolder } from "../db-types/db-idol-group-types";
|
|
9
|
+
import { TMapCategoryEvent, TMapCategoryFolder, TMapCityEvent, TMapCityFolder, TMapStagEvent, TMapStagFolder } from "../db-types/db-map-types";
|
|
10
|
+
import { TMetadataI18nDetail } from "../db-types/db-metadata-types";
|
|
11
|
+
import { TMapPeopleEvent, TMapPeopleFolder } from "../db-types/db-people-types";
|
|
12
|
+
import { TPeventDetail, TPeventImage } from "../db-types/db-pevent-types";
|
|
13
|
+
import { TMapProductEvent, TMapProductFolder } from "../db-types/db-product-types";
|
|
14
|
+
import { TSelectedEventDetail } from "../db-types/db-selected-event-types";
|
|
15
|
+
import { TSelectedFolderDetail } from "../db-types/db-selected-folder-types";
|
|
16
|
+
import { TStagDetail, TStagI18n } from "../db-types/db-stag-types";
|
|
17
|
+
import { TMapTeamEvent, TMapTeamFolder } from "../db-types/db-team-types";
|
|
1
18
|
export type ResponseDBSelect<T> = {
|
|
2
19
|
data: T;
|
|
3
20
|
count?: number;
|
|
4
21
|
apiUrl?: string | null;
|
|
5
22
|
};
|
|
23
|
+
type BaseResponseDetail<TContent, TImage = undefined> = {
|
|
24
|
+
content: TContent;
|
|
25
|
+
metadataI18n?: TMetadataI18nDetail[];
|
|
26
|
+
} & (TImage extends undefined ? object : {
|
|
27
|
+
images?: TImage[];
|
|
28
|
+
});
|
|
29
|
+
type WithSelected = {
|
|
30
|
+
selectedFolder?: TSelectedFolderDetail[];
|
|
31
|
+
selectedEvent?: TSelectedEventDetail[];
|
|
32
|
+
};
|
|
33
|
+
export type ResponseContentDetailForAdmin = BaseResponseDetail<TCityDetail, TCityImage> & WithSelected & {
|
|
34
|
+
videos?: TCityYouTubeVideo[];
|
|
35
|
+
i18n?: TCityI18n[];
|
|
36
|
+
};
|
|
37
|
+
export type ResponseCityDetailForAdmin = BaseResponseDetail<TCityDetail, TCityImage> & WithSelected & {
|
|
38
|
+
videos?: TCityYouTubeVideo[];
|
|
39
|
+
i18n?: TCityI18n[];
|
|
40
|
+
mapCityFolder?: TMapCityFolder[];
|
|
41
|
+
mapCityEvent?: TMapCityEvent[];
|
|
42
|
+
};
|
|
43
|
+
export type ResponseCategoryDetailForAdmin = BaseResponseDetail<TCategoryDetail> & WithSelected & {
|
|
44
|
+
subCategories?: TCategoryDetail[];
|
|
45
|
+
i18n?: TCategoryI18n[];
|
|
46
|
+
mapCategoryFolder?: TMapCategoryFolder[];
|
|
47
|
+
mapCategoryEvent?: TMapCategoryEvent[];
|
|
48
|
+
};
|
|
49
|
+
export type ResponseStagDetailForAdmin = BaseResponseDetail<TStagDetail> & WithSelected & {
|
|
50
|
+
i18n?: TStagI18n[];
|
|
51
|
+
mapStagFolder?: TMapStagFolder[];
|
|
52
|
+
mapStagEvent?: TMapStagEvent[];
|
|
53
|
+
};
|
|
54
|
+
export type ResponseFolderDetailForAdmin = BaseResponseDetail<TFolderDetail, TFolderImage> & {
|
|
55
|
+
mapFolderEvent?: TEventListForAdmin[];
|
|
56
|
+
mapCityFolder?: TMapCityFolder[];
|
|
57
|
+
mapCategoryFolder?: TMapCategoryFolder[];
|
|
58
|
+
mapStagFolder?: TMapStagFolder[];
|
|
59
|
+
mapIdolGroupFolder?: TMapIdolGroupFolder[];
|
|
60
|
+
mapCelebFolder?: TMapCelebFolder[];
|
|
61
|
+
mapPeopleFolder?: TMapPeopleFolder[];
|
|
62
|
+
mapCompanyFolder?: TMapCompanyFolder[];
|
|
63
|
+
mapBrandFolder?: TMapBrandFolder[];
|
|
64
|
+
mapProductFolder?: TMapProductFolder[];
|
|
65
|
+
mapTeamFolder?: TMapTeamFolder[];
|
|
66
|
+
};
|
|
67
|
+
export type ResponseEventDetailForAdmin = BaseResponseDetail<TEventDetail, TEventImage> & {
|
|
68
|
+
mapCityEvent?: TMapCityEvent[];
|
|
69
|
+
mapCategoryEvent?: TMapCategoryEvent[];
|
|
70
|
+
mapStagEvent?: TMapStagEvent[];
|
|
71
|
+
mapIdolGroupEvent?: TMapIdolGroupEvent[];
|
|
72
|
+
mapCelebEvent?: TMapCelebEvent[];
|
|
73
|
+
mapPeopleEvent?: TMapPeopleEvent[];
|
|
74
|
+
mapCompanyEvent?: TMapCompanyEvent[];
|
|
75
|
+
mapBrandEvent?: TMapBrandEvent[];
|
|
76
|
+
mapProductEvent?: TMapProductEvent[];
|
|
77
|
+
mapTeamEvent?: TMapTeamEvent[];
|
|
78
|
+
};
|
|
79
|
+
export type ResponsePeventDetailForAdmin = BaseResponseDetail<TPeventDetail, TPeventImage>;
|
|
80
|
+
export {};
|
|
@@ -1,57 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
// export type ResponseCityForAdmin = {
|
|
3
|
-
// content: City;
|
|
4
|
-
// images?: CityImage[];
|
|
5
|
-
// i18n?: CityI18n[];
|
|
6
|
-
// metadataI18n?: CityMetadataI18n[];
|
|
7
|
-
// };
|
|
8
|
-
// export type ResponseStreetForAdmin = {
|
|
9
|
-
// content: Street;
|
|
10
|
-
// images?: StreetImage[];
|
|
11
|
-
// i18n?: StreetI18n[];
|
|
12
|
-
// metadataI18n?: StreetMetadataI18n[];
|
|
13
|
-
// };
|
|
14
|
-
// export type ResponseCategoryForAdmin = {
|
|
15
|
-
// content: Category;
|
|
16
|
-
// subCategories?: Category[];
|
|
17
|
-
// i18n?: CategoryI18n[];
|
|
18
|
-
// metadataI18n?: CategoryMetadataI18n[];
|
|
19
|
-
// };
|
|
20
|
-
// export type ResponseSpecialTagForAdmin = {
|
|
21
|
-
// content: SpecialTag;
|
|
22
|
-
// images?: SpecialTagImage[];
|
|
23
|
-
// i18n?: SpecialTagI18n[];
|
|
24
|
-
// metadataI18n?: SpecialTagMetadataI18n[];
|
|
25
|
-
// };
|
|
26
|
-
// export type ResponseCompletedYouTubeVideoForAdmin = {
|
|
27
|
-
// content: CompletedYouTubeVideo;
|
|
28
|
-
// mapCompletedYouTubeVideoCity?: MapCompletedYouTubeVideoCity[];
|
|
29
|
-
// mapCompletedYouTubeVideoStreet?: MapCompletedYouTubeVideoStreet[];
|
|
30
|
-
// mapCompletedYouTubeVideoKeyword?: MapCompletedYouTubeVideoKeyword[];
|
|
31
|
-
// mapCompletedYouTubeVideoTimeline?: MapCompletedYouTubeVideoTimeline[];
|
|
32
|
-
// mapYouTubeVideoCompletedContent?: MapYouTubeVideoCompletedContent[];
|
|
33
|
-
// };
|
|
34
|
-
// export type ResponseCompletedContentForAdmin = {
|
|
35
|
-
// content: CompletedContent;
|
|
36
|
-
// showTimetable?: CompletedContentShowTimetable[];
|
|
37
|
-
// price?: CompletedContentPrice[];
|
|
38
|
-
// image?: CompletedContentImage[];
|
|
39
|
-
// i18n?: CompletedContentI18n[];
|
|
40
|
-
// keyword?: CompletedContentKeyword[];
|
|
41
|
-
// gpPhoto?: CompletedContentGPPhoto[];
|
|
42
|
-
// metadataI18n?: CompletedContentMetadataI18n[];
|
|
43
|
-
// mapCategoryContent?: MapCategoryCompletedContent[];
|
|
44
|
-
// mapSpecialTagContent?: MapSpecialTagCompletedContent[];
|
|
45
|
-
// mapYoutubeVideoCompletedContent?: MapYouTubeVideoCompletedContent[];
|
|
46
|
-
// mapTagContent?: MapTagCompletedContent[];
|
|
47
|
-
// };
|
|
48
|
-
// export type ResponseTrandAPI<T> = {
|
|
49
|
-
// success: boolean;
|
|
50
|
-
// alarm?: string | null;
|
|
51
|
-
// status?: string | null;
|
|
52
|
-
// msg?: string | null;
|
|
53
|
-
// dbResponse?: T | null | undefined;
|
|
54
|
-
// error?: string | null;
|
|
55
|
-
// missingFields?: string[] | string | null;
|
|
56
|
-
// };
|
|
57
2
|
//# sourceMappingURL=dplus-response-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dplus-response-types.js","sourceRoot":"","sources":["../../src/dplus-types/dplus-response-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dplus-response-types.js","sourceRoot":"","sources":["../../src/dplus-types/dplus-response-types.ts"],"names":[],"mappings":""}
|