trand_common_v1 0.1.75 → 0.1.76
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,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompletedContent, CompletedContentGPPhoto, CompletedContentI18nDescription, CompletedContentImage, CompletedContentKeyword, CompletedContentPrice, CompletedContentShowTimetable, MapCategoryCompletedContent, MapSpecialTagCompletedContent, MapTagCompletedContent, MapYouTubeVideoCompletedContent } from "./trand-db-types.js";
|
|
2
2
|
export type DBSelectResponse<T> = {
|
|
3
3
|
data: T;
|
|
4
4
|
count?: number;
|
|
5
5
|
};
|
|
6
6
|
export type AdminContentResponse = {
|
|
7
|
-
content:
|
|
8
|
-
showTimetable:
|
|
9
|
-
price:
|
|
10
|
-
image:
|
|
11
|
-
i18nDescription:
|
|
12
|
-
keyword:
|
|
13
|
-
gpPhoto:
|
|
14
|
-
mapCategoryContent:
|
|
15
|
-
mapSpecialTagContent:
|
|
16
|
-
mapYoutubeVideoContent:
|
|
17
|
-
mapTagContent:
|
|
7
|
+
content: CompletedContent;
|
|
8
|
+
showTimetable: CompletedContentShowTimetable[];
|
|
9
|
+
price: CompletedContentPrice[];
|
|
10
|
+
image: CompletedContentImage[];
|
|
11
|
+
i18nDescription: CompletedContentI18nDescription[];
|
|
12
|
+
keyword: CompletedContentKeyword[];
|
|
13
|
+
gpPhoto: CompletedContentGPPhoto[];
|
|
14
|
+
mapCategoryContent: MapCategoryCompletedContent[];
|
|
15
|
+
mapSpecialTagContent: MapSpecialTagCompletedContent[];
|
|
16
|
+
mapYoutubeVideoContent: MapYouTubeVideoCompletedContent[];
|
|
17
|
+
mapTagContent: MapTagCompletedContent[];
|
|
18
18
|
};
|
|
19
19
|
export type APIResponse<T> = {
|
|
20
20
|
success: boolean;
|
|
@@ -872,7 +872,7 @@ export type FetchedContentUpdate = {
|
|
|
872
872
|
city_code: string;
|
|
873
873
|
slug_name: string;
|
|
874
874
|
} & Partial<Omit<FetchedContent, "country_code" | "city_code" | "slug_name">>;
|
|
875
|
-
export type
|
|
875
|
+
export type CompletedContentListAdmin = {
|
|
876
876
|
country_code: string;
|
|
877
877
|
city_code: string | null;
|
|
878
878
|
street_code: string | null;
|
|
@@ -911,7 +911,7 @@ export type ContentListAdmin = {
|
|
|
911
911
|
is_temporarily_unoperational: boolean | null;
|
|
912
912
|
is_closed: boolean | null;
|
|
913
913
|
};
|
|
914
|
-
export type
|
|
914
|
+
export type CompletedContent = CompletedContentListAdmin & {
|
|
915
915
|
related_content_code: string | null;
|
|
916
916
|
description: string | null;
|
|
917
917
|
thumbnail_main_1: string | null;
|
|
@@ -1053,15 +1053,15 @@ export type Content = ContentListAdmin & {
|
|
|
1053
1053
|
closed_at: string | null;
|
|
1054
1054
|
closed_by: string | null;
|
|
1055
1055
|
};
|
|
1056
|
-
export type
|
|
1056
|
+
export type CompletedContentInsert = {
|
|
1057
1057
|
country_code: string;
|
|
1058
1058
|
content_code: string;
|
|
1059
|
-
} & Partial<Omit<
|
|
1060
|
-
export type
|
|
1059
|
+
} & Partial<Omit<CompletedContent, "country_code" | "content_code">>;
|
|
1060
|
+
export type CompletedContentUpdate = {
|
|
1061
1061
|
country_code: string;
|
|
1062
1062
|
content_code: string;
|
|
1063
|
-
} & Partial<Omit<
|
|
1064
|
-
export type
|
|
1063
|
+
} & Partial<Omit<CompletedContent, "country_code" | "content_code">>;
|
|
1064
|
+
export type CompletedContentShowTimetable = {
|
|
1065
1065
|
content_code: string;
|
|
1066
1066
|
date: string;
|
|
1067
1067
|
time_start: string;
|
|
@@ -1070,13 +1070,13 @@ export type ContentShowTimetable = {
|
|
|
1070
1070
|
title_native: string | null;
|
|
1071
1071
|
description: string | null;
|
|
1072
1072
|
};
|
|
1073
|
-
export type
|
|
1073
|
+
export type CompletedContentShowTimetableInsert = {
|
|
1074
1074
|
content_code: string;
|
|
1075
|
-
} & Partial<Omit<
|
|
1076
|
-
export type
|
|
1075
|
+
} & Partial<Omit<CompletedContentShowTimetable, "content_code">>;
|
|
1076
|
+
export type CompletedContentShowTimetableUpdate = {
|
|
1077
1077
|
content_code: string;
|
|
1078
|
-
} & Partial<Omit<
|
|
1079
|
-
export type
|
|
1078
|
+
} & Partial<Omit<CompletedContentShowTimetable, "content_code">>;
|
|
1079
|
+
export type CompletedContentPrice = {
|
|
1080
1080
|
content_code: string;
|
|
1081
1081
|
title: string;
|
|
1082
1082
|
title_native: string | null;
|
|
@@ -1086,63 +1086,63 @@ export type ContentPrice = {
|
|
|
1086
1086
|
url: string | null;
|
|
1087
1087
|
description: string | null;
|
|
1088
1088
|
};
|
|
1089
|
-
export type
|
|
1089
|
+
export type CompletedContentPriceInsert = {
|
|
1090
1090
|
content_code: string;
|
|
1091
1091
|
title: string;
|
|
1092
1092
|
price: number | null;
|
|
1093
|
-
} & Partial<Omit<
|
|
1094
|
-
export type
|
|
1093
|
+
} & Partial<Omit<CompletedContentPrice, "content_code" | "title" | "price">>;
|
|
1094
|
+
export type CompletedContentPriceUpdate = {
|
|
1095
1095
|
content_code: string;
|
|
1096
1096
|
title: string;
|
|
1097
|
-
} & Partial<Omit<
|
|
1098
|
-
export type
|
|
1097
|
+
} & Partial<Omit<CompletedContentPrice, "content_code" | "title">>;
|
|
1098
|
+
export type CompletedContentImage = {
|
|
1099
1099
|
content_code: string;
|
|
1100
1100
|
order_num: number;
|
|
1101
1101
|
url: string;
|
|
1102
1102
|
};
|
|
1103
|
-
export type
|
|
1103
|
+
export type CompletedContentImageInsert = {
|
|
1104
1104
|
content_code: string;
|
|
1105
|
-
} & Partial<Omit<
|
|
1106
|
-
export type
|
|
1105
|
+
} & Partial<Omit<CompletedContentImage, "content_code">>;
|
|
1106
|
+
export type CompletedContentImageUpdate = {
|
|
1107
1107
|
content_code: string;
|
|
1108
1108
|
order_num: number;
|
|
1109
|
-
} & Partial<Omit<
|
|
1110
|
-
export type
|
|
1109
|
+
} & Partial<Omit<CompletedContentImage, "content_code" | "order_num">>;
|
|
1110
|
+
export type CompletedContentI18nDescription = {
|
|
1111
1111
|
content_code: string;
|
|
1112
1112
|
lang_code: string;
|
|
1113
1113
|
content: string | null;
|
|
1114
1114
|
};
|
|
1115
|
-
export type
|
|
1115
|
+
export type CompletedContentI18nDescriptionInsert = {
|
|
1116
1116
|
content_code: string;
|
|
1117
1117
|
lang_code: string;
|
|
1118
|
-
} & Partial<Omit<
|
|
1119
|
-
export type
|
|
1118
|
+
} & Partial<Omit<CompletedContentI18nDescription, "content_code" | "lang_code">>;
|
|
1119
|
+
export type CompletedContentI18nDescriptionUpdate = {
|
|
1120
1120
|
content_code: string;
|
|
1121
1121
|
lang_code: string;
|
|
1122
|
-
} & Partial<Omit<
|
|
1123
|
-
export type
|
|
1122
|
+
} & Partial<Omit<CompletedContentI18nDescription, "content_code" | "lang_code">>;
|
|
1123
|
+
export type CompletedContentKeyword = {
|
|
1124
1124
|
content_code: string;
|
|
1125
1125
|
keyword: string;
|
|
1126
1126
|
};
|
|
1127
|
-
export type
|
|
1127
|
+
export type CompletedContentGPPhoto = {
|
|
1128
1128
|
content_code: string;
|
|
1129
1129
|
photo_uri: string;
|
|
1130
1130
|
google_maps_uri: string | null;
|
|
1131
1131
|
display_name: string | null;
|
|
1132
1132
|
};
|
|
1133
|
-
export type
|
|
1133
|
+
export type MapCategoryCompletedContent = {
|
|
1134
1134
|
category_code: string;
|
|
1135
1135
|
content_code: string;
|
|
1136
1136
|
};
|
|
1137
|
-
export type
|
|
1137
|
+
export type MapSpecialTagCompletedContent = {
|
|
1138
1138
|
special_tag: string;
|
|
1139
1139
|
content_code: string;
|
|
1140
1140
|
};
|
|
1141
|
-
export type
|
|
1141
|
+
export type MapTagCompletedContent = {
|
|
1142
1142
|
tag: string;
|
|
1143
1143
|
content_code: string;
|
|
1144
1144
|
};
|
|
1145
|
-
export type
|
|
1145
|
+
export type MapYouTubeVideoCompletedContent = {
|
|
1146
1146
|
video_id: string;
|
|
1147
1147
|
content_code: string;
|
|
1148
1148
|
};
|