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 { Content, ContentGPPhoto, ContentI18nDescription, ContentImage, ContentKeyword, ContentPrice, ContentShowTimetable, MapCategoryContent, MapSpecialTagContent, MapTagContent, MapYouTubeVideoContent } from "./trand-db-types.js";
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: Content;
8
- showTimetable: ContentShowTimetable[];
9
- price: ContentPrice[];
10
- image: ContentImage[];
11
- i18nDescription: ContentI18nDescription[];
12
- keyword: ContentKeyword[];
13
- gpPhoto: ContentGPPhoto[];
14
- mapCategoryContent: MapCategoryContent[];
15
- mapSpecialTagContent: MapSpecialTagContent[];
16
- mapYoutubeVideoContent: MapYouTubeVideoContent[];
17
- mapTagContent: 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 ContentListAdmin = {
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 Content = ContentListAdmin & {
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 ContentInsert = {
1056
+ export type CompletedContentInsert = {
1057
1057
  country_code: string;
1058
1058
  content_code: string;
1059
- } & Partial<Omit<Content, "country_code" | "content_code">>;
1060
- export type ContentUpdate = {
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<Content, "country_code" | "content_code">>;
1064
- export type ContentShowTimetable = {
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 ContentShowTimetableInsert = {
1073
+ export type CompletedContentShowTimetableInsert = {
1074
1074
  content_code: string;
1075
- } & Partial<Omit<ContentShowTimetable, "content_code">>;
1076
- export type ContentShowTimetableUpdate = {
1075
+ } & Partial<Omit<CompletedContentShowTimetable, "content_code">>;
1076
+ export type CompletedContentShowTimetableUpdate = {
1077
1077
  content_code: string;
1078
- } & Partial<Omit<ContentShowTimetable, "content_code">>;
1079
- export type ContentPrice = {
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 ContentPriceInsert = {
1089
+ export type CompletedContentPriceInsert = {
1090
1090
  content_code: string;
1091
1091
  title: string;
1092
1092
  price: number | null;
1093
- } & Partial<Omit<ContentPrice, "content_code" | "title" | "price">>;
1094
- export type ContentPriceUpdate = {
1093
+ } & Partial<Omit<CompletedContentPrice, "content_code" | "title" | "price">>;
1094
+ export type CompletedContentPriceUpdate = {
1095
1095
  content_code: string;
1096
1096
  title: string;
1097
- } & Partial<Omit<ContentPrice, "content_code" | "title">>;
1098
- export type ContentImage = {
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 ContentImageInsert = {
1103
+ export type CompletedContentImageInsert = {
1104
1104
  content_code: string;
1105
- } & Partial<Omit<ContentImage, "content_code">>;
1106
- export type ContentImageUpdate = {
1105
+ } & Partial<Omit<CompletedContentImage, "content_code">>;
1106
+ export type CompletedContentImageUpdate = {
1107
1107
  content_code: string;
1108
1108
  order_num: number;
1109
- } & Partial<Omit<ContentImage, "content_code" | "order_num">>;
1110
- export type ContentI18nDescription = {
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 ContentI18nDescriptionInsert = {
1115
+ export type CompletedContentI18nDescriptionInsert = {
1116
1116
  content_code: string;
1117
1117
  lang_code: string;
1118
- } & Partial<Omit<ContentI18nDescription, "content_code" | "lang_code">>;
1119
- export type ContentI18nDescriptionUpdate = {
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<ContentI18nDescription, "content_code" | "lang_code">>;
1123
- export type ContentKeyword = {
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 ContentGPPhoto = {
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 MapCategoryContent = {
1133
+ export type MapCategoryCompletedContent = {
1134
1134
  category_code: string;
1135
1135
  content_code: string;
1136
1136
  };
1137
- export type MapSpecialTagContent = {
1137
+ export type MapSpecialTagCompletedContent = {
1138
1138
  special_tag: string;
1139
1139
  content_code: string;
1140
1140
  };
1141
- export type MapTagContent = {
1141
+ export type MapTagCompletedContent = {
1142
1142
  tag: string;
1143
1143
  content_code: string;
1144
1144
  };
1145
- export type MapYouTubeVideoContent = {
1145
+ export type MapYouTubeVideoCompletedContent = {
1146
1146
  video_id: string;
1147
1147
  content_code: string;
1148
1148
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trand_common_v1",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
4
  "description": "Common modules for Trand API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "trand"