trand_common_v1 0.2.134 → 0.2.135

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.
@@ -78,13 +78,14 @@ export type TCityAdminCreateForm = {
78
78
  cityInfo: TCityDetailInsert;
79
79
  description: TCityDescriptionInsert;
80
80
  files: Record<string, File | null>;
81
- images: TCityImageAdminInput[];
81
+ imagesMetadata: TCityImageAdminInput[];
82
82
  };
83
83
  export type TCityAdminUpdateForm = {
84
84
  cityInfo: TCityDetailUpdate;
85
85
  description: TCityDescriptionUpdate;
86
86
  files: Record<string, File | null>;
87
- images: TCityImageAdminInput[];
87
+ imagesMetadata: TCityImageAdminInput[];
88
+ updatedImagesMetadata: Map<string, Partial<TCityImage>>;
88
89
  deletedThumbnails: Map<string, string>;
89
90
  deletedImages: Map<string, string>;
90
91
  };
@@ -138,23 +138,32 @@ export type ResponseContentYouTubeVideoShortsListForPublic = {
138
138
  content: TCompletedYouTubeVideoListForPublicFront;
139
139
  }>;
140
140
  } & ResponseListBase;
141
+ /**
142
+ * Content Admin Create Form
143
+ * - 새로운 Content를 생성할 때 사용하는 Form 데이터 구조
144
+ */
141
145
  export type TContentAdminCreateForm = {
142
146
  contentInfo: TContentDetailInsert;
143
147
  description: TContentDescriptionInsert;
144
148
  targets: TContentTargetInsert;
145
149
  businessHours: Partial<Omit<TContentBusinessHours, "content_code">>[];
146
150
  files: Record<string, File | null>;
147
- images: TContentImageAdminInput[];
151
+ imagesMetadata: TContentImageAdminInput[];
148
152
  google_place_id: string | null;
149
153
  trip_advisor_location_id: string | null;
150
154
  };
155
+ /**
156
+ * Content Admin Update Form
157
+ * - 기존 Content를 수정할 때 사용하는 Form 데이터 구조
158
+ */
151
159
  export type TContentAdminUpdateForm = {
152
160
  contentInfo: TContentDetailUpdate;
153
161
  description: TContentDescriptionUpdate;
154
162
  targets: TContentTargetUpdate;
155
163
  businessHours: Partial<Omit<TContentBusinessHours, "content_code">>[];
156
164
  files: Record<string, File | null>;
157
- images: TContentImageAdminInput[];
165
+ imagesMetadata: TContentImageAdminInput[];
166
+ updatedImagesMetadata: Map<string, Partial<TContentImage>>;
158
167
  deletedThumbnails: Map<string, string>;
159
168
  deletedImages: Map<string, string>;
160
169
  };
@@ -83,13 +83,14 @@ export type TStagAdminCreateForm = {
83
83
  stagInfo: TStagDetailInsert;
84
84
  description: TStagDescriptionInsert;
85
85
  files: Record<string, File | null>;
86
- images: TStagImageAdminInput[];
86
+ imagesMetadata: TStagImageAdminInput[];
87
87
  };
88
88
  export type TStagAdminUpdateForm = {
89
89
  stagInfo: TStagDetailUpdate;
90
90
  description: TStagDescriptionUpdate;
91
91
  files: Record<string, File | null>;
92
- images: TStagImageAdminInput[];
92
+ imagesMetadata: TStagImageAdminInput[];
93
+ updatedImagesMetadata: Map<string, Partial<TStagImage>>;
93
94
  deletedThumbnails: Map<string, string>;
94
95
  deletedImages: Map<string, string>;
95
96
  };
@@ -91,13 +91,14 @@ export type TStreetAdminCreateForm = {
91
91
  streetInfo: TStreetDetailInsert;
92
92
  description: TStreetDescriptionInsert;
93
93
  files: Record<string, File | null>;
94
- images: TStreetImageAdminInput[];
94
+ imagesMetadata: TStreetImageAdminInput[];
95
95
  };
96
96
  export type TStreetAdminUpdateForm = {
97
97
  streetInfo: TStreetDetailUpdate;
98
98
  description: TStreetDescriptionUpdate;
99
99
  files: Record<string, File | null>;
100
- images: TStreetImageAdminInput[];
100
+ imagesMetadata: TStreetImageAdminInput[];
101
+ updatedImagesMetadata: Map<string, Partial<TStreetImage>>;
101
102
  deletedThumbnails: Map<string, string>;
102
103
  deletedImages: Map<string, string>;
103
104
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trand_common_v1",
3
- "version": "0.2.134",
3
+ "version": "0.2.135",
4
4
  "description": "Common modules for Trand API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "trand"