dplus_common_v1 0.2.21 → 0.2.24

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.
@@ -25,11 +25,13 @@ export declare const DB_TABLE: {
25
25
  folders: string;
26
26
  folder_images: string;
27
27
  folder_metadata: string;
28
+ folder_description: string;
28
29
  folder_view_logs: string;
29
30
  folder_shared_logs: string;
30
31
  events: string;
31
32
  event_images: string;
32
33
  event_metadata: string;
34
+ event_description: string;
33
35
  event_view_logs: string;
34
36
  event_shared_logs: string;
35
37
  event_saved_logs: string;
package/dist/consts/db.js CHANGED
@@ -32,12 +32,14 @@ export const DB_TABLE = {
32
32
  folders: "folders",
33
33
  folder_images: "folder_images",
34
34
  folder_metadata: "folder_metadata",
35
+ folder_description: "folder_description",
35
36
  folder_view_logs: "folder_view_logs",
36
37
  folder_shared_logs: "folder_shared_logs",
37
38
  // Events
38
39
  events: "events",
39
40
  event_images: "event_images",
40
41
  event_metadata: "event_metadata",
42
+ event_description: "event_description",
41
43
  event_view_logs: "event_view_logs",
42
44
  event_shared_logs: "event_shared_logs",
43
45
  event_saved_logs: "event_saved_logs",
@@ -1 +1 @@
1
- {"version":3,"file":"db.js","sourceRoot":"","sources":["../../src/consts/db.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,wCAAwC;IACxC,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,iBAAiB,EAAE,mBAAmB;IACtC,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAE9C,SAAS;IACT,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,mBAAmB,EAAE,qBAAqB;IAC1C,SAAS,EAAE,WAAW;IACtB,kBAAkB,EAAE,oBAAoB;IACxC,cAAc,EAAE,gBAAgB;IAEhC,aAAa;IACb,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,eAAe;IAC9B,sBAAsB,E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,iBAAiB,EAAE,mBAAmB;IACtC,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;IACtC,gBAAgB,EAAE,kBAAkB;IAEpC,SAAS;IACT,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;IAEtC,iBAAiB;IACjB,cAAc,EAAE,gBAAgB;IAEhC,QAAQ;IACR,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,mBAAmB,EAAE,qBAAqB;IAC1C,yBAAyB,EAAE,2BAA2B;IACtD,2BAA2B,EAAE,6BAA6B;IAE1D,SAAS;IACT,MAAM,EAAE,QAAQ;IAEhB,MAAM;IACN,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,kBAAkB,EAAE,oBAAoB;IACxC,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;CACjC,CAAC"}
@@ -1,23 +1,23 @@
1
1
  import { TMetadataTagItem } from "../types/t-metadata-tag-set";
2
- import { TCategoryDetail, TCategoryInfoForCountryDetail, TCategoryLabelInfo } from "../types/types-category/t-category";
3
- import { TCategoryI18n } from "../types/types-category/t-category-i18n";
4
- import { TCategoryMetadataI18nDetail } from "../types/types-category/t-category-metadata-i18n";
5
- import { TCityDetail, TCityInfoForCountryDetail, TCityLabelInfo } from "../types/types-city/t-city";
6
- import { TCityI18n } from "../types/types-city/t-city-i18n";
2
+ import { TCategoryDetail, TCategoryDetailInsert, TCategoryDetailUpdate, TCategoryInfoForCountryDetail, TCategoryLabelInfo } from "../types/types-category/t-category";
3
+ import { TCategoryI18n, TCategoryI18nInsert, TCategoryI18nUpdate } from "../types/types-category/t-category-i18n";
4
+ import { TCategoryMetadataI18nDetail, TCategoryMetadataI18nDetailInsert, TCategoryMetadataI18nDetailUpdate } from "../types/types-category/t-category-metadata-i18n";
5
+ import { TCityDetail, TCityDetailInsert, TCityDetailUpdate, TCityInfoForCountryDetail, TCityLabelInfo } from "../types/types-city/t-city";
6
+ import { TCityI18n, TCityI18nInsert, TCityI18nUpdate } from "../types/types-city/t-city-i18n";
7
7
  import { TCityImage } from "../types/types-city/t-city-image";
8
- import { TCityMetadataI18nDetail } from "../types/types-city/t-city-metadata-i18n";
8
+ import { TCityMetadataI18nDetail, TCityMetadataI18nDetailInsert, TCityMetadataI18nDetailUpdate } from "../types/types-city/t-city-metadata-i18n";
9
9
  import { TCityYouTubeVideo } from "../types/types-city/t-city-youtube-video";
10
- import { TEventCard, TEventDetail } from "../types/types-event/t-event";
11
- import { TEventDescription } from "../types/types-event/t-event-description";
10
+ import { TEventCard, TEventDetail, TEventDetailInsert, TEventDetailUpdate } from "../types/types-event/t-event";
11
+ import { TEventDescription, TEventDescriptionInsert, TEventDescriptionUpdate } from "../types/types-event/t-event-description";
12
12
  import { TEventImage } from "../types/types-event/t-event-image";
13
- import { TEventMetadataDetail } from "../types/types-event/t-event-metadata";
14
- import { TFolderDetail, TFolderSummaryInfo } from "../types/types-folder/t-folder";
15
- import { TFolderDescription } from "../types/types-folder/t-folder-description";
13
+ import { TEventMetadataDetail, TEventMetadataDetailInsert, TEventMetadataDetailUpdate } from "../types/types-event/t-event-metadata";
14
+ import { TFolderDetail, TFolderDetailInsert, TFolderDetailUpdate, TFolderSummaryInfo } from "../types/types-folder/t-folder";
15
+ import { TFolderDescription, TFolderDescriptionInsert, TFolderDescriptionUpdate } from "../types/types-folder/t-folder-description";
16
16
  import { TFolderImage } from "../types/types-folder/t-folder-image";
17
- import { TFolderMetadataDetail } from "../types/types-folder/t-folder-metadata";
18
- import { TGroupDetail, TGroupLabelInfo } from "../types/types-group/t-group";
17
+ import { TFolderMetadataDetail, TFolderMetadataDetailInsert, TFolderMetadataDetailUpdate } from "../types/types-folder/t-folder-metadata";
18
+ import { TGroupDetail, TGroupDetailInsert, TGroupDetailUpdate, TGroupLabelInfo } from "../types/types-group/t-group";
19
19
  import { TGroupImage } from "../types/types-group/t-group-image";
20
- import { TGroupMetadataDetail } from "../types/types-group/t-group-metadata";
20
+ import { TGroupMetadataDetail, TGroupMetadataDetailInsert, TGroupMetadataDetailUpdate } from "../types/types-group/t-group-metadata";
21
21
  import { TCountryDetail } from "../types/types-i18n/t-country";
22
22
  import { TCountryMetadataI18nDetail } from "../types/types-i18n/t-country-metadata-i18n";
23
23
  import { TMapCategoryEventWithCategoryInfo, TMapCategoryEventWithEventInfo } from "../types/types-map/t-map-category-event";
@@ -33,10 +33,10 @@ import { TMapStagEventWithEventInfo, TMapStagEventWithStagInfo } from "../types/
33
33
  import { TMapStagFolderWithFolderInfo, TMapStagFolderWithStagInfo } from "../types/types-map/t-map-stag-folder";
34
34
  import { TMapTagEventWithEventInfo, TMapTagEventWithTagInfo } from "../types/types-map/t-map-tag-event";
35
35
  import { TMapTagFolderWithFolderInfo, TMapTagFolderWithTagInfo } from "../types/types-map/t-map-tag-folder";
36
- import { TStagDetail, TStagInfoForCountryDetail, TStagLabelInfo } from "../types/types-stag/t-stag";
37
- import { TStagI18n } from "../types/types-stag/t-stag-i18n";
36
+ import { TStagDetail, TStagDetailInsert, TStagDetailUpdate, TStagInfoForCountryDetail, TStagLabelInfo } from "../types/types-stag/t-stag";
37
+ import { TStagI18n, TStagI18nInsert, TStagI18nUpdate } from "../types/types-stag/t-stag-i18n";
38
38
  import { TStagImage } from "../types/types-stag/t-stag-image";
39
- import { TStagMetadataDetail } from "../types/types-stag/t-stag-metadata";
39
+ import { TStagMetadataDetail, TStagMetadataDetailInsert, TStagMetadataDetailUpdate } from "../types/types-stag/t-stag-metadata";
40
40
  import { TTag, TTagLabelInfo } from "../types/types-tag/t-tag";
41
41
  export type ResponseDBSelect<T> = {
42
42
  data: T;
@@ -54,12 +54,15 @@ type BaseResponseDetail<T, K> = {
54
54
  * 폴더 상세 응답 타입 For Admin
55
55
  */
56
56
  export type ResponseFolderDetailForAdmin = BaseResponseDetail<TFolderImage, null> & {
57
- folder: TFolderDetail & {
58
- target_country_native: string | null;
59
- target_city_native: string | null;
57
+ folderDetail: {
58
+ folderInfo: TFolderDetail & {
59
+ target_country_native: string | null;
60
+ target_city_native: string | null;
61
+ };
62
+ description: TFolderDescription;
63
+ metadata: TFolderMetadataDetail;
64
+ images: TFolderImage[];
60
65
  };
61
- description: TFolderDescription;
62
- metadata: TFolderMetadataDetail;
63
66
  mapCityFolder?: DplusGetListDataResponse<TMapCityFolderWithCityInfo>;
64
67
  mapCategoryFolder?: DplusGetListDataResponse<TMapCategoryFolderWithCategoryInfo>;
65
68
  mapStagFolder?: DplusGetListDataResponse<TMapStagFolderWithStagInfo>;
@@ -67,16 +70,35 @@ export type ResponseFolderDetailForAdmin = BaseResponseDetail<TFolderImage, null
67
70
  mapGroupFolder?: DplusGetListDataResponse<TMapGroupFolderWithGroupInfo>;
68
71
  folderEvent?: DplusGetListDataResponse<TMapFolderEventWithEventInfo>;
69
72
  };
73
+ export type TFolderAdminCreateForm = {
74
+ folderInfo: TFolderDetailInsert;
75
+ description: Partial<Omit<TFolderDescriptionInsert, "folder_code">>;
76
+ metadata: Partial<Omit<TFolderMetadataDetailInsert, "folder_code">>;
77
+ files: Record<string, File | null>;
78
+ images: File[];
79
+ };
80
+ export type TFolderAdminUpdateForm = {
81
+ folderInfo: TFolderDetailUpdate;
82
+ description: TFolderDescriptionUpdate;
83
+ metadata: TFolderMetadataDetailUpdate;
84
+ files: Record<string, File | null>;
85
+ images: File[];
86
+ deletedImageKeys: Set<string>;
87
+ deletedImageHashes: Set<string>;
88
+ };
70
89
  /**
71
90
  * 폴더 상세 응답 타입 For User Front
72
91
  */
73
92
  export type ResponseFolderDetailForUserFront = BaseResponseDetail<TFolderImage, null> & {
74
- folder: TFolderDetail & {
75
- target_country_native: string | null;
76
- target_city_native: string | null;
93
+ folderDetail: {
94
+ folderInfo: TFolderDetail & {
95
+ target_country_native: string | null;
96
+ target_city_native: string | null;
97
+ };
98
+ description: TFolderDescription;
99
+ metadata: TFolderMetadataDetail;
100
+ images: TFolderImage[];
77
101
  };
78
- description: TFolderDescription;
79
- metadata: TFolderMetadataDetail;
80
102
  mapCityFolder?: DplusGetListDataResponse<TMapCityFolderWithCityInfo>;
81
103
  mapCategoryFolder?: DplusGetListDataResponse<TMapCategoryFolderWithCategoryInfo>;
82
104
  mapStagFolder?: DplusGetListDataResponse<TMapStagFolderWithStagInfo>;
@@ -88,12 +110,15 @@ export type ResponseFolderDetailForUserFront = BaseResponseDetail<TFolderImage,
88
110
  * 이벤트 상세 응답 타입 For Admin
89
111
  */
90
112
  export type ResponseEventDetailForAdmin = BaseResponseDetail<TEventImage, null> & {
91
- event: TEventDetail & {
92
- target_country_native: string | null;
93
- target_city_native: string | null;
113
+ eventDetail: {
114
+ eventInfo: TEventDetail & {
115
+ target_country_native: string | null;
116
+ target_city_native: string | null;
117
+ };
118
+ description: TEventDescription | null;
119
+ metadata: TEventMetadataDetail | null;
120
+ images: TEventImage[];
94
121
  };
95
- description: TEventDescription;
96
- metadata: TEventMetadataDetail;
97
122
  mapFolderEvent?: DplusGetListDataResponse<TMapFolderEventWithFolderInfo>;
98
123
  mapCityEvent?: DplusGetListDataResponse<TMapCityEventWithCityInfo>;
99
124
  mapCategoryEvent?: DplusGetListDataResponse<TMapCategoryEventWithCategoryInfo>;
@@ -101,16 +126,36 @@ export type ResponseEventDetailForAdmin = BaseResponseDetail<TEventImage, null>
101
126
  mapTagEvent?: DplusGetListDataResponse<TMapTagEventWithTagInfo>;
102
127
  mapGroupEvent?: DplusGetListDataResponse<TMapGroupEventWithGroupInfo>;
103
128
  };
129
+ export type TEventAdminCreateForm = {
130
+ eventInfo: TEventDetailInsert;
131
+ description: Partial<Omit<TEventDescriptionInsert, "event_code">>;
132
+ metadata: Partial<Omit<TEventMetadataDetailInsert, "event_code">>;
133
+ files: Record<string, File | null>;
134
+ images: File[];
135
+ categories: string[];
136
+ };
137
+ export type TEventAdminUpdateForm = {
138
+ eventInfo: TEventDetailUpdate;
139
+ description: TEventDescriptionUpdate;
140
+ metadata: TEventMetadataDetailUpdate;
141
+ files: Record<string, File | null>;
142
+ images: File[];
143
+ deletedImageKeys: Set<string>;
144
+ deletedImageHashes: Set<string>;
145
+ };
104
146
  /**
105
147
  * 이벤트 상세 응답 타입 For User Front
106
148
  */
107
149
  export type ResponseEventDetailForUserFront = BaseResponseDetail<TEventImage, null> & {
108
- event: TEventDetail & {
109
- target_country_native: string | null;
110
- target_city_native: string | null;
150
+ eventDetail: {
151
+ eventInfo: TEventDetail & {
152
+ target_country_native: string | null;
153
+ target_city_native: string | null;
154
+ };
155
+ description: TEventDescription;
156
+ metadata: TEventMetadataDetail;
157
+ images: TEventImage[];
111
158
  };
112
- description: TEventDescription;
113
- metadata: TEventMetadataDetail;
114
159
  mapFolderEvent?: DplusGetListDataResponse<TMapFolderEventWithFolderInfo>;
115
160
  mapCityEvent?: DplusGetListDataResponse<TMapCityEventWithCityInfo>;
116
161
  mapCategoryEvent?: DplusGetListDataResponse<TMapCategoryEventWithCategoryInfo>;
@@ -122,8 +167,10 @@ export type ResponseEventDetailForUserFront = BaseResponseDetail<TEventImage, nu
122
167
  * 국가 상세 응답 타입 For Admin
123
168
  */
124
169
  export type ResponseCountryDetailForAdmin = {
125
- country: TCountryDetail;
126
- metadataI18n: DplusGetListDataResponse<TCountryMetadataI18nDetail>;
170
+ countryDetail: {
171
+ countryInfo: TCountryDetail;
172
+ metadataI18n: DplusGetListDataResponse<TCountryMetadataI18nDetail>;
173
+ };
127
174
  cities: DplusGetListDataResponse<TCityInfoForCountryDetail>;
128
175
  categories: DplusGetListDataResponse<TCategoryInfoForCountryDetail>;
129
176
  stags?: DplusGetListDataResponse<TStagInfoForCountryDetail>;
@@ -134,8 +181,10 @@ export type ResponseCountryDetailForAdmin = {
134
181
  * 국가 상세 응답 타입 For User Front
135
182
  */
136
183
  export type ResponseCountryDetailForUserFront = {
137
- country: TCountryDetail;
138
- metadataI18n: TCountryMetadataI18nDetail[];
184
+ countryDetail: {
185
+ countryInfo: TCountryDetail;
186
+ metadataI18n: TCountryMetadataI18nDetail[];
187
+ };
139
188
  cities: DplusGetListDataResponse<TCityInfoForCountryDetail>;
140
189
  categories: DplusGetListDataResponse<TCategoryInfoForCountryDetail>;
141
190
  stags?: DplusGetListDataResponse<TStagInfoForCountryDetail>;
@@ -146,21 +195,46 @@ export type ResponseCountryDetailForUserFront = {
146
195
  * 도시 상세 응답 타입 For Admin
147
196
  */
148
197
  export type ResponseCityDetailForAdmin = {
149
- city: TCityDetail;
150
- images?: TCityImage[];
151
- metadataI18n?: DplusGetListDataResponse<TCityMetadataI18nDetail>;
152
- i18n?: DplusGetListDataResponse<TCityI18n>;
153
- videos?: TCityYouTubeVideo[];
198
+ cityDetail: {
199
+ cityInfo: TCityDetail;
200
+ images?: TCityImage[];
201
+ metadataI18n?: DplusGetListDataResponse<TCityMetadataI18nDetail>;
202
+ i18n?: DplusGetListDataResponse<TCityI18n>;
203
+ videos?: TCityYouTubeVideo[];
204
+ };
154
205
  mapCityFolder?: DplusGetListDataResponse<TMapCityFolderWithCityInfo>;
155
206
  mapCityEvent?: DplusGetListDataResponse<TMapCityEventWithCityInfo>;
156
207
  };
208
+ export type TCityAdminCreateForm = {
209
+ cityInfo: TCityDetailInsert;
210
+ metadataI18n: Partial<Omit<TCityMetadataI18nDetailInsert, "city_code" | "lang_code">>[];
211
+ i18n: Partial<Omit<TCityI18nInsert, "city_code" | "lang_code">>[];
212
+ files: Record<string, File | null>;
213
+ images: File[];
214
+ videos: Partial<Omit<TCityYouTubeVideo, "city_code">>[];
215
+ };
216
+ export type TCityAdminUpdateForm = {
217
+ cityInfo: TCityDetailUpdate;
218
+ metadataI18n: Partial<TCityMetadataI18nDetailUpdate>[];
219
+ i18n: Partial<TCityI18nUpdate>[];
220
+ files: Record<string, File | null>;
221
+ images: File[];
222
+ deletedImageKeys: Set<string>;
223
+ deletedImageHashes: Set<string>;
224
+ videos: Partial<TCityYouTubeVideo>[];
225
+ deletedVideoIds: Set<string>;
226
+ };
157
227
  /**
158
228
  * 도시 상세 응답 타입 For User Front
159
229
  */
160
230
  export type ResponseCityDetailForUserFront = BaseResponseDetail<TCityImage, TCityMetadataI18nDetail> & {
161
- city: TCityDetail;
162
- i18n?: TCityI18n[];
163
- videos?: TCityYouTubeVideo[];
231
+ cityDetail: {
232
+ cityInfo: TCityDetail;
233
+ images?: TCityImage[];
234
+ metadataI18n?: TCityMetadataI18nDetail[];
235
+ i18n?: TCityI18n[];
236
+ videos?: TCityYouTubeVideo[];
237
+ };
164
238
  mapCityFolder?: DplusGetListDataResponse<TMapCityFolderWithFolderInfo>;
165
239
  mapCityEvent?: DplusGetListDataResponse<TMapCityEventWithEventInfo>;
166
240
  };
@@ -168,20 +242,38 @@ export type ResponseCityDetailForUserFront = BaseResponseDetail<TCityImage, TCit
168
242
  * 카테고리 상세 응답 타입 For Admin
169
243
  */
170
244
  export type ResponseCategoryDetailForAdmin = {
171
- category: TCategoryDetail;
172
- metadataI18n?: DplusGetListDataResponse<TCategoryMetadataI18nDetail>;
173
- subCategories?: TCategoryDetail[];
174
- i18n?: DplusGetListDataResponse<TCategoryI18n>;
245
+ categoryDetail: {
246
+ categoryInfo: TCategoryDetail;
247
+ metadataI18n?: DplusGetListDataResponse<TCategoryMetadataI18nDetail>;
248
+ subCategories?: TCategoryDetail[];
249
+ i18n?: DplusGetListDataResponse<TCategoryI18n>;
250
+ };
175
251
  mapCategoryFolder?: DplusGetListDataResponse<TMapCategoryFolderWithCategoryInfo>;
176
252
  mapCategoryEvent?: DplusGetListDataResponse<TMapCategoryEventWithCategoryInfo>;
177
253
  };
254
+ export type TCategoryAdminCreateForm = {
255
+ categoryInfo: TCategoryDetailInsert;
256
+ metadataI18n: Partial<Omit<TCategoryMetadataI18nDetailInsert, "category_code" | "lang_code">>[];
257
+ i18n: Partial<Omit<TCategoryI18nInsert, "category_code" | "lang_code">>[];
258
+ files: Record<string, File | null>;
259
+ };
260
+ export type TCategoryAdminUpdateForm = {
261
+ categoryInfo: TCategoryDetailUpdate;
262
+ metadataI18n: Partial<TCategoryMetadataI18nDetailUpdate>[];
263
+ i18n: Partial<TCategoryI18nUpdate>[];
264
+ files: Record<string, File | null>;
265
+ deletedImageKeys: Set<string>;
266
+ };
178
267
  /**
179
268
  * 카테고리 상세 응답 타입 For User Front
180
269
  */
181
270
  export type ResponseCategoryDetailForUserFront = BaseResponseDetail<null, TCategoryMetadataI18nDetail> & {
182
- category: TCategoryDetail;
183
- subCategories?: TCategoryDetail[];
184
- i18n?: TCategoryI18n;
271
+ categoryDetail: {
272
+ categoryInfo: TCategoryDetail;
273
+ metadataI18n?: TCategoryMetadataI18nDetail[];
274
+ subCategories?: TCategoryDetail[];
275
+ i18n?: TCategoryI18n[];
276
+ };
185
277
  mapCategoryFolder?: DplusGetListDataResponse<TMapCategoryFolderWithFolderInfo>;
186
278
  mapCategoryEvent?: DplusGetListDataResponse<TMapCategoryEventWithEventInfo>;
187
279
  };
@@ -189,21 +281,41 @@ export type ResponseCategoryDetailForUserFront = BaseResponseDetail<null, TCateg
189
281
  * Stag 상세 응답 타입 For Admin
190
282
  */
191
283
  export type ResponseStagDetailForAdmin = {
192
- stag: TStagDetail;
193
- stagImages?: TStagImage[];
194
- i18n?: DplusGetListDataResponse<TStagI18n>;
195
- metadata: TStagMetadataDetail;
284
+ stagDetail: {
285
+ stagInfo: TStagDetail;
286
+ images?: TStagImage[];
287
+ i18n?: DplusGetListDataResponse<TStagI18n>;
288
+ metadata: TStagMetadataDetail;
289
+ };
196
290
  mapStagFolder?: DplusGetListDataResponse<TMapStagFolderWithStagInfo>;
197
291
  mapStagEvent?: DplusGetListDataResponse<TMapStagEventWithStagInfo>;
198
292
  };
293
+ export type TStagAdminCreateForm = {
294
+ stagInfo: TStagDetailInsert;
295
+ metadata: Partial<Omit<TStagMetadataDetailInsert, "stag_code">>;
296
+ i18n: Partial<Omit<TStagI18nInsert, "stag_code" | "lang_code">>[];
297
+ files: Record<string, File | null>;
298
+ images: File[];
299
+ };
300
+ export type TStagAdminUpdateForm = {
301
+ stagInfo: TStagDetailUpdate;
302
+ metadata: TStagMetadataDetailUpdate;
303
+ i18n: Partial<TStagI18nUpdate>[];
304
+ files: Record<string, File | null>;
305
+ images: File[];
306
+ deletedImageKeys: Set<string>;
307
+ deletedImageHashes: Set<string>;
308
+ };
199
309
  /**
200
310
  * Stag 상세 응답 타입 For User Front
201
311
  */
202
312
  export type ResponseStagDetailForUserFront = BaseResponseDetail<null, null> & {
203
- stag: TStagDetail;
204
- i18n?: TStagI18n[];
205
- stagImages?: TStagImage[];
206
- metadata: TStagMetadataDetail;
313
+ stagDetail: {
314
+ stagInfo: TStagDetail;
315
+ images?: TStagImage[];
316
+ i18n?: TStagI18n[];
317
+ metadata: TStagMetadataDetail;
318
+ };
207
319
  mapStagFolder?: DplusGetListDataResponse<TMapStagFolderWithFolderInfo>;
208
320
  mapStagEvent?: DplusGetListDataResponse<TMapStagEventWithEventInfo>;
209
321
  };
@@ -227,18 +339,37 @@ export type ResponseTagDetailForUserFront = BaseResponseDetail<null, null> & {
227
339
  * Group 상세 응답 타입 For Admin
228
340
  */
229
341
  export type ResponseGroupDetailForAdmin = {
230
- images?: TGroupImage[];
231
- metadata?: TGroupMetadataDetail;
232
- group: TGroupDetail;
342
+ groupDetail: {
343
+ groupInfo: TGroupDetail;
344
+ images?: TGroupImage[];
345
+ metadata: TGroupMetadataDetail;
346
+ };
233
347
  mapGroupFolder?: DplusGetListDataResponse<TMapGroupFolderWithGroupInfo>;
234
348
  mapGroupEvent?: DplusGetListDataResponse<TMapGroupEventWithGroupInfo>;
235
349
  };
350
+ export type TGroupAdminCreateForm = {
351
+ groupInfo: TGroupDetailInsert;
352
+ metadata: Partial<Omit<TGroupMetadataDetailInsert, "group_code">>;
353
+ files: Record<string, File | null>;
354
+ images: File[];
355
+ };
356
+ export type TGroupAdminUpdateForm = {
357
+ groupInfo: TGroupDetailUpdate;
358
+ metadata: TGroupMetadataDetailUpdate;
359
+ files: Record<string, File | null>;
360
+ images: File[];
361
+ deletedImageKeys: Set<string>;
362
+ deletedImageHashes: Set<string>;
363
+ };
236
364
  /**
237
- * 카테고리 상세 응답 타입 For User Front
365
+ * Group 상세 응답 타입 For User Front
238
366
  */
239
367
  export type ResponseGroupDetailForUserFront = BaseResponseDetail<TGroupImage, null> & {
240
- group: TGroupDetail;
241
- metadata: TGroupMetadataDetail;
368
+ groupDetail: {
369
+ groupInfo: TGroupDetail;
370
+ images?: TGroupImage[];
371
+ metadata: TGroupMetadataDetail;
372
+ };
242
373
  mapGroupFolder?: DplusGetListDataResponse<TMapGroupFolderWithFolderInfo>;
243
374
  mapGroupEvent?: DplusGetListDataResponse<TMapGroupEventWithEventInfo>;
244
375
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dplus_common_v1",
3
- "version": "0.2.21",
3
+ "version": "0.2.24",
4
4
  "description": "Common modules for dplus API Server and Admin User Frontend",
5
5
  "keywords": [
6
6
  "dplus"