@lemoncloud/ssocio-kiosk-api 0.25.423
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.
- package/README.md +4 -0
- package/dist/cores/types.d.ts +116 -0
- package/dist/lib/types.d.ts +36 -0
- package/dist/modules/cart/model.d.ts +125 -0
- package/dist/modules/cart/types.d.ts +35 -0
- package/dist/modules/cart/views.d.ts +53 -0
- package/dist/modules/category/categories-types.d.ts +33 -0
- package/dist/modules/category/model.d.ts +85 -0
- package/dist/modules/category/types.d.ts +47 -0
- package/dist/modules/category/views.d.ts +32 -0
- package/dist/modules/goods/model.d.ts +635 -0
- package/dist/modules/goods/types.d.ts +331 -0
- package/dist/modules/goods/views.d.ts +210 -0
- package/dist/modules/mock/model.d.ts +97 -0
- package/dist/modules/mock/types.d.ts +39 -0
- package/dist/modules/mock/views.d.ts +50 -0
- package/dist/modules/option/model.d.ts +185 -0
- package/dist/modules/option/options-types.d.ts +364 -0
- package/dist/modules/option/types.d.ts +112 -0
- package/dist/modules/shipping/model.d.ts +54 -0
- package/dist/modules/shipping/types.d.ts +26 -0
- package/dist/modules/shipping/views.d.ts +28 -0
- package/dist/modules/stock/model.d.ts +85 -0
- package/dist/modules/stock/stocks-types.d.ts +90 -0
- package/dist/modules/stock/types.d.ts +45 -0
- package/dist/modules/stock/views.d.ts +40 -0
- package/dist/service/backend-types.d.ts +65 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/view/types.d.ts +16 -0
- package/package.json +24 -0
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `mock/model.ts`
|
|
3
|
+
* - model definitions per account data
|
|
4
|
+
*
|
|
5
|
+
* @author Steve <steve@lemoncloud.io>
|
|
6
|
+
* @date 2022-08-29 initial version.
|
|
7
|
+
*
|
|
8
|
+
* @author Aiden <aiden@lemoncloud.io>
|
|
9
|
+
* @date 2024-07-31 refactoring for product service.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (C) 2020 LemonCloud Co Ltd. - All Rights Reserved.
|
|
12
|
+
*/
|
|
13
|
+
import { CoreModel } from 'lemon-model';
|
|
14
|
+
import { ModelType } from '../../service/backend-types';
|
|
15
|
+
import { AgreedType, CancelConditionType, CurrencyType, DeliveryFeeType, DeliveryMethodType, DeliveryStereo, InputType, NoticeStereo, PolicyStereo, PriceInfo, ProdStereo, ShowBadgeType } from './types';
|
|
16
|
+
import { CategoryHead } from '../category/model';
|
|
17
|
+
import { CategoryNode } from '../category/categories-types';
|
|
18
|
+
import { StockModel } from '../stock/model';
|
|
19
|
+
import { OptionHead } from '../option/model';
|
|
20
|
+
export { ModelType };
|
|
21
|
+
/**
|
|
22
|
+
* type: `Model`: common model
|
|
23
|
+
*/
|
|
24
|
+
export declare type Model = CoreModel<ModelType>;
|
|
25
|
+
/**
|
|
26
|
+
* type: boolean style number.
|
|
27
|
+
*/
|
|
28
|
+
export declare type BoolFlag = 0 | 1;
|
|
29
|
+
/**
|
|
30
|
+
* Type: `ProductHead`
|
|
31
|
+
*/
|
|
32
|
+
export interface ProductHead {
|
|
33
|
+
/** auto sequence */
|
|
34
|
+
id?: string;
|
|
35
|
+
/** 제품 이름 */
|
|
36
|
+
name?: string;
|
|
37
|
+
/** stereo type */
|
|
38
|
+
stereo?: ProdStereo;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* type: `ProductModel` (상품)
|
|
42
|
+
* - 상품 판매 구성과 관련된 내용
|
|
43
|
+
*/
|
|
44
|
+
export interface ProductModel extends Model, ProductHead {
|
|
45
|
+
/** stereo type */
|
|
46
|
+
stereo?: ProdStereo;
|
|
47
|
+
/** product name */
|
|
48
|
+
name?: string;
|
|
49
|
+
/** thumb image (in small-size) in list */
|
|
50
|
+
thumb?: string;
|
|
51
|
+
/** (optional) 간단한 설명 */
|
|
52
|
+
summary?: string;
|
|
53
|
+
/** 숨기기 설정 (검색조건 not_exists(isHidden) and isHidden=0) */
|
|
54
|
+
isHidden?: BoolFlag;
|
|
55
|
+
/** 목록 노출 여부 (must be isDisplay=1) */
|
|
56
|
+
isDisplay?: BoolFlag;
|
|
57
|
+
/** 지정된 카테고리 ID (list) */
|
|
58
|
+
categoryIds?: string[];
|
|
59
|
+
/** 지정된 카테고리 Head (list) */
|
|
60
|
+
category$?: CategoryHead[];
|
|
61
|
+
/** main image url (top) */
|
|
62
|
+
imageMain?: string;
|
|
63
|
+
/** additional images in main (추가 이미지들) */
|
|
64
|
+
imageAdds?: string[];
|
|
65
|
+
/** detailed images - from origin-url */
|
|
66
|
+
images?: string[];
|
|
67
|
+
/** 상세 내용 (in html) - 사용자 수정 */
|
|
68
|
+
detailHtml?: string;
|
|
69
|
+
/** 기본 금액 '~' 기능 사용 여부 */
|
|
70
|
+
usePriceRange?: BoolFlag;
|
|
71
|
+
/** 통화 타입 */
|
|
72
|
+
currencyType?: CurrencyType;
|
|
73
|
+
/** 상품 가격 */
|
|
74
|
+
price?: number;
|
|
75
|
+
/** (optional) 통화에 따른 금액 상세 정보 (자동설정) */
|
|
76
|
+
price$?: PriceInfo;
|
|
77
|
+
/** 상품 할인 비율 */
|
|
78
|
+
discount?: number;
|
|
79
|
+
/** 원 상품 가격 */
|
|
80
|
+
originPrice?: number;
|
|
81
|
+
/** 할인된 금액 */
|
|
82
|
+
savingPrice?: number;
|
|
83
|
+
/** 최종 판매가 */
|
|
84
|
+
salesPrice?: number;
|
|
85
|
+
/** id of catalog-model */
|
|
86
|
+
catalogId?: string;
|
|
87
|
+
/** head of catalog-model */
|
|
88
|
+
catalog$?: CatalogHead;
|
|
89
|
+
/** id of brand-model */
|
|
90
|
+
brandId?: string;
|
|
91
|
+
/** head of brand-model */
|
|
92
|
+
brand$?: BrandHead;
|
|
93
|
+
/** 재고 갯수 */
|
|
94
|
+
stocks?: number;
|
|
95
|
+
/** (optional) id of stock-model */
|
|
96
|
+
stockId?: string;
|
|
97
|
+
/** 판매 설정 관리 id */
|
|
98
|
+
salesId?: string;
|
|
99
|
+
/** 판매 설정 모델 */
|
|
100
|
+
sales$?: SalesHead;
|
|
101
|
+
/** list of option-id (as option-roots) */
|
|
102
|
+
optionIds?: string[];
|
|
103
|
+
/** list of option-name (as option-roots) */
|
|
104
|
+
option$?: OptionHead[];
|
|
105
|
+
/** 상품고시(Product Notice) ID */
|
|
106
|
+
noticeId?: string;
|
|
107
|
+
/** 상품고시(Product Notice) Name */
|
|
108
|
+
notice$?: NoticeHead;
|
|
109
|
+
/** 상품고시 항목들 (기본외의 변경된 값들) */
|
|
110
|
+
notices?: InputElement[];
|
|
111
|
+
/**
|
|
112
|
+
* 이용안내 (Usage Guide) 모델 Id
|
|
113
|
+
*/
|
|
114
|
+
guideId?: string;
|
|
115
|
+
/** 이용 안내 모델 */
|
|
116
|
+
guide$?: UsageGuideHead;
|
|
117
|
+
/** 이용안내 입력 항목들 (기본설정외에 추가 변경값들) */
|
|
118
|
+
guides?: InputElement[];
|
|
119
|
+
/** 옵션 이미지 항목들. */
|
|
120
|
+
/** 약관 관리 id */
|
|
121
|
+
agreedIds?: string[];
|
|
122
|
+
/** 약관 관리 모델 */
|
|
123
|
+
agreed$?: AgreedHead[];
|
|
124
|
+
/** 취소 관리 id */
|
|
125
|
+
cancelId?: string;
|
|
126
|
+
/** 취소 관리 모델 */
|
|
127
|
+
cancel$?: CancelHead;
|
|
128
|
+
/**
|
|
129
|
+
* 배송정책(Delivery Policy) ID
|
|
130
|
+
* - 배송방법: 방문수령, 퀵서비스, 택배, 직접배송
|
|
131
|
+
* - 각 배송방법에 따라서 상세 내용이 달라짐
|
|
132
|
+
*/
|
|
133
|
+
deliveryId?: string;
|
|
134
|
+
/** name of delivery-id */
|
|
135
|
+
delivery$?: DeliveryHead;
|
|
136
|
+
/** 배송정책 입력 항목들 (기본설정외에 추가 변경값들) */
|
|
137
|
+
deliveries?: InputElement[];
|
|
138
|
+
/**
|
|
139
|
+
* 반품/교환(Return and Exchange) 정책ID
|
|
140
|
+
* - 배송방법: 택배(기본)
|
|
141
|
+
* - 각 배송방법에 따라서 설정값이 달라짐
|
|
142
|
+
*
|
|
143
|
+
* TODO - 다중 정책에 대한 처리 방법 개선하기 @230720
|
|
144
|
+
*/
|
|
145
|
+
policyId?: string;
|
|
146
|
+
/** name of exchange-id */
|
|
147
|
+
policy$?: PolicyHead;
|
|
148
|
+
/** 배송정책 입력 항목들 (기본설정외에 추가 변경값들) */
|
|
149
|
+
policies?: InputElement[];
|
|
150
|
+
/**
|
|
151
|
+
* (optional) 노출 관리 id
|
|
152
|
+
* - `displayId`가 비어 있는 경우, `display$` 만 저장됨
|
|
153
|
+
* - `displayId`가 존재하는 경우, `DisplayModel`를 참고해서 `display$`를 채워줌.
|
|
154
|
+
*/
|
|
155
|
+
displayId?: string;
|
|
156
|
+
/** 노출 관리 모델 */
|
|
157
|
+
display$?: DisplayHead;
|
|
158
|
+
/**
|
|
159
|
+
* (internal) the linked cancel model.
|
|
160
|
+
*/
|
|
161
|
+
readonly $cancel?: CancelModel;
|
|
162
|
+
/**
|
|
163
|
+
* (internal) the linked sales model.
|
|
164
|
+
*/
|
|
165
|
+
readonly $sales?: SalesModel;
|
|
166
|
+
/**
|
|
167
|
+
* (internal) the linked notice model.
|
|
168
|
+
*/
|
|
169
|
+
readonly $notice?: NoticeModel;
|
|
170
|
+
/**
|
|
171
|
+
* (internal) the linked display model.
|
|
172
|
+
*/
|
|
173
|
+
readonly $display?: DisplayModel;
|
|
174
|
+
/**
|
|
175
|
+
* (internal) the linked delivery model.
|
|
176
|
+
*/
|
|
177
|
+
readonly $delivery?: DeliveryModel;
|
|
178
|
+
/**
|
|
179
|
+
* (internal) the linked policy model.
|
|
180
|
+
*/
|
|
181
|
+
readonly $policy?: PolicyModel;
|
|
182
|
+
/**
|
|
183
|
+
* (internal) the linked stock model.
|
|
184
|
+
*/
|
|
185
|
+
readonly $stock?: StockModel;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Type: `CatalogHead`
|
|
189
|
+
*/
|
|
190
|
+
export interface CatalogHead {
|
|
191
|
+
/** auto sequence */
|
|
192
|
+
id?: string;
|
|
193
|
+
/** 카탈로그 이름 */
|
|
194
|
+
name?: string;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* type: `CatalogModel` (카탈로그)
|
|
198
|
+
* - 카탈로그 모델
|
|
199
|
+
*/
|
|
200
|
+
export interface CatalogModel extends Model, CategoryNode, CatalogHead {
|
|
201
|
+
/** 상위 부모의 ID */
|
|
202
|
+
parent?: string;
|
|
203
|
+
/** 상위 부모의 Name */
|
|
204
|
+
parentName?: string;
|
|
205
|
+
/** 카탈로그 이름 */
|
|
206
|
+
name?: string;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Type: `BrandHead`
|
|
210
|
+
*/
|
|
211
|
+
export interface BrandHead {
|
|
212
|
+
/** auto sequence */
|
|
213
|
+
id?: string;
|
|
214
|
+
/** 브랜드 이름 */
|
|
215
|
+
name?: string;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* 브랜드(Brand) 정보.
|
|
219
|
+
* - 이름별로 고유한 인덱스값을 가짐 (using md5 hash)
|
|
220
|
+
*/
|
|
221
|
+
export interface BrandModel extends Model, CategoryNode, BrandHead {
|
|
222
|
+
/**
|
|
223
|
+
* (UNIQUE) string name.
|
|
224
|
+
*/
|
|
225
|
+
name?: string;
|
|
226
|
+
/**
|
|
227
|
+
* hidden(숨김) flag
|
|
228
|
+
*/
|
|
229
|
+
hidden?: BoolFlag;
|
|
230
|
+
/**
|
|
231
|
+
* (unique) hash code of name
|
|
232
|
+
*/
|
|
233
|
+
hash?: string;
|
|
234
|
+
/**
|
|
235
|
+
* some description.
|
|
236
|
+
*/
|
|
237
|
+
desc?: string;
|
|
238
|
+
/**
|
|
239
|
+
* 브랜드 이미지
|
|
240
|
+
*/
|
|
241
|
+
image?: string;
|
|
242
|
+
/**
|
|
243
|
+
* 메이커이름.
|
|
244
|
+
*/
|
|
245
|
+
maker?: string;
|
|
246
|
+
/**
|
|
247
|
+
* found some error.
|
|
248
|
+
*/
|
|
249
|
+
error?: string;
|
|
250
|
+
/**
|
|
251
|
+
* 브랜드_영문
|
|
252
|
+
*/
|
|
253
|
+
nameEn?: string;
|
|
254
|
+
/**
|
|
255
|
+
* 브랜드_상세이미지
|
|
256
|
+
*/
|
|
257
|
+
imageDetail?: string;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Type: `NoticeHead`
|
|
261
|
+
*/
|
|
262
|
+
export interface NoticeHead {
|
|
263
|
+
/** auto sequence */
|
|
264
|
+
id?: string;
|
|
265
|
+
/** 고시(관리) 이름 */
|
|
266
|
+
name?: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* type: `NoticeModel` (고시/안내 등)
|
|
270
|
+
* - 상품고시등 정보 관리
|
|
271
|
+
*/
|
|
272
|
+
export interface NoticeModel extends Model, NoticeHead {
|
|
273
|
+
/**
|
|
274
|
+
* 고시ID (auto)
|
|
275
|
+
*/
|
|
276
|
+
id?: string;
|
|
277
|
+
/**
|
|
278
|
+
* stereo types.
|
|
279
|
+
*/
|
|
280
|
+
stereo?: NoticeStereo;
|
|
281
|
+
/** name of model */
|
|
282
|
+
name?: string;
|
|
283
|
+
/** 지정된 카테고리 ID (list) */
|
|
284
|
+
categoryIds?: string[];
|
|
285
|
+
/** 지정된 카테고리 Name (list) */
|
|
286
|
+
categoryNames?: string[];
|
|
287
|
+
/** 지정된 카테고리 Path (list) */
|
|
288
|
+
categoryPaths?: string[];
|
|
289
|
+
/** 상품고시 항목들 (기본 값들) */
|
|
290
|
+
notices?: InputElement[];
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Type: `DeliveryHead`
|
|
294
|
+
*/
|
|
295
|
+
export interface DeliveryHead extends UseAddressBasic {
|
|
296
|
+
/** 배송ID (auto) */
|
|
297
|
+
id?: string;
|
|
298
|
+
/** 배송(관리) 이름 */
|
|
299
|
+
name?: string;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* type: `DeliveryModel` (배송)
|
|
303
|
+
* - 배송방법(업체)와 관련한 데이터 정리
|
|
304
|
+
* - 스테레오: 배송방법(method) / 택배사(company)
|
|
305
|
+
*/
|
|
306
|
+
export interface DeliveryModel extends Model, DeliveryHead {
|
|
307
|
+
/**
|
|
308
|
+
* stereo types.
|
|
309
|
+
*/
|
|
310
|
+
stereo?: DeliveryStereo;
|
|
311
|
+
/** 배송 방법 타입 */
|
|
312
|
+
deliveryType?: DeliveryMethodType;
|
|
313
|
+
/** 배송 요금 타입 */
|
|
314
|
+
feeType?: DeliveryFeeType;
|
|
315
|
+
/** (optional) 배송안내 */
|
|
316
|
+
notice?: string;
|
|
317
|
+
/** (optional) 택배사명 */
|
|
318
|
+
company?: string;
|
|
319
|
+
/** (optional) 기본 배송비 */
|
|
320
|
+
deliveryDefaultFee?: number;
|
|
321
|
+
/** (optional) 기본 배송비 상세 정보 (자동설정) */
|
|
322
|
+
defaultPrice$?: PriceInfo;
|
|
323
|
+
/** (optional) 무료배송 충족 조건 */
|
|
324
|
+
deliveryFreeFee?: number;
|
|
325
|
+
/** (optional) 무료배송 충족 조건 (자동설정) */
|
|
326
|
+
minFreePrice$?: PriceInfo;
|
|
327
|
+
/** id of owner (mp) (linked `ssocio2-backend-api`) */
|
|
328
|
+
ownerId?: string;
|
|
329
|
+
/** name of owner (mp) (linked `ssocio2-backend-api`) */
|
|
330
|
+
ownerName?: string;
|
|
331
|
+
/** (linked) id of proudct */
|
|
332
|
+
prodId?: string;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Type: `PolicyHead`
|
|
336
|
+
*/
|
|
337
|
+
export interface PolicyHead {
|
|
338
|
+
/** auto sequence */
|
|
339
|
+
id?: string;
|
|
340
|
+
/** 정책(관리) 이름 */
|
|
341
|
+
name?: string;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* type: `PolicyModel` (정책)
|
|
345
|
+
* - 정책 관련 정보를 저장함.
|
|
346
|
+
*/
|
|
347
|
+
export interface PolicyModel extends Model, UseAddressBasic, PolicyHead {
|
|
348
|
+
/**
|
|
349
|
+
* 정책ID (auto)
|
|
350
|
+
*/
|
|
351
|
+
id?: string;
|
|
352
|
+
/**
|
|
353
|
+
* stereo types.
|
|
354
|
+
*/
|
|
355
|
+
stereo?: PolicyStereo;
|
|
356
|
+
/** name of model */
|
|
357
|
+
name?: string;
|
|
358
|
+
/**
|
|
359
|
+
* 배송방법ID
|
|
360
|
+
*/
|
|
361
|
+
deliveryMethodId?: string;
|
|
362
|
+
/** 배송방법 이름 (복제) */
|
|
363
|
+
deliveryMethodName?: string;
|
|
364
|
+
/**
|
|
365
|
+
* 배송회사ID
|
|
366
|
+
*/
|
|
367
|
+
deliveryCompanyId?: string;
|
|
368
|
+
/** 배송회사 이름 (복제) */
|
|
369
|
+
deliveryCompanyName?: string;
|
|
370
|
+
/**
|
|
371
|
+
* 반품회사ID
|
|
372
|
+
*/
|
|
373
|
+
returnCompanyId?: string;
|
|
374
|
+
/** 반품회사 이름 (복제) */
|
|
375
|
+
returnCompanyName?: string;
|
|
376
|
+
/** 반품 (편도) */
|
|
377
|
+
returnFee?: number;
|
|
378
|
+
/**
|
|
379
|
+
* 교환회사ID
|
|
380
|
+
*/
|
|
381
|
+
exchangeCompanyId?: string;
|
|
382
|
+
/** 교환회사 이름 (복제) */
|
|
383
|
+
exchangeCompanyName?: string;
|
|
384
|
+
/** 교환 (왕복) */
|
|
385
|
+
exchangeFee?: number;
|
|
386
|
+
/**
|
|
387
|
+
* 무료 배송 여부
|
|
388
|
+
*/
|
|
389
|
+
isFree?: number;
|
|
390
|
+
/**
|
|
391
|
+
* 조건부 무료 설정 여부
|
|
392
|
+
*/
|
|
393
|
+
hasFreeCondition?: number;
|
|
394
|
+
/**
|
|
395
|
+
* 기본 배송비 (ex: 2000)
|
|
396
|
+
*/
|
|
397
|
+
deliveryFee?: number;
|
|
398
|
+
/**
|
|
399
|
+
* 무료 배송 최소 구매액
|
|
400
|
+
* - 유효조건: `isFree && hasCondition`
|
|
401
|
+
*/
|
|
402
|
+
minFreePrice?: number;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Type: `SalesHead`
|
|
406
|
+
* - 판매 및 할인 정보
|
|
407
|
+
*/
|
|
408
|
+
export interface SalesHead {
|
|
409
|
+
/** auto sequence */
|
|
410
|
+
id?: string;
|
|
411
|
+
/** 할인 이름 */
|
|
412
|
+
name?: string;
|
|
413
|
+
/** 할인 금액 */
|
|
414
|
+
salePrice?: number;
|
|
415
|
+
/** (optional) 할인 금액 정보 (자동설정) */
|
|
416
|
+
salePrice$?: PriceInfo;
|
|
417
|
+
/** (optional) 세일 기간 설정 사용여부 */
|
|
418
|
+
usePeriod?: BoolFlag;
|
|
419
|
+
/** (optional) 세일 기간 시작 (timestamp) */
|
|
420
|
+
periodT1?: number;
|
|
421
|
+
/** (optional) 세일 기간 종료 (timestamp) */
|
|
422
|
+
periodT2?: number;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Type: `SalesModel`
|
|
426
|
+
* - 판매 및 할인 관리 모델
|
|
427
|
+
*/
|
|
428
|
+
export interface SalesModel extends SalesHead, Model {
|
|
429
|
+
/** auto sequence */
|
|
430
|
+
id?: string;
|
|
431
|
+
/** (optional) 판매 시작 시각 (timestamp) */
|
|
432
|
+
salesFrom?: number;
|
|
433
|
+
/** (optional) 판매 종료 시각 (timestamp) */
|
|
434
|
+
salesTo?: number;
|
|
435
|
+
/** (optional) 취소 기간 사용 여부 */
|
|
436
|
+
useCancelPeriod?: BoolFlag;
|
|
437
|
+
/** (optional) 취소 시작 시각 (timestamp) */
|
|
438
|
+
cancelFrom?: number;
|
|
439
|
+
/** (optional) 취소 종료 시각 (timestamp) */
|
|
440
|
+
cancelTo?: number;
|
|
441
|
+
/** (optional) 최소 주문 수량 */
|
|
442
|
+
minOrderQuantity?: number;
|
|
443
|
+
/** (optional) 최대 주문 수량 */
|
|
444
|
+
maxOrderQuantity?: number;
|
|
445
|
+
/** (linked) id of proudct */
|
|
446
|
+
prodId?: string;
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Type: `AgreedHead`
|
|
450
|
+
*/
|
|
451
|
+
export interface AgreedHead {
|
|
452
|
+
/** auto sequence */
|
|
453
|
+
id?: string;
|
|
454
|
+
/** 약관 정책 이름 */
|
|
455
|
+
name?: string;
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Type : `AgreedModel`
|
|
459
|
+
* - 약정 모델
|
|
460
|
+
*/
|
|
461
|
+
export interface AgreedModel extends Model, AgreedHead {
|
|
462
|
+
/** id: <auto-seq> */
|
|
463
|
+
id?: string;
|
|
464
|
+
/** 카테고리 ids */
|
|
465
|
+
categoryId?: string;
|
|
466
|
+
/** name of parent Category */
|
|
467
|
+
categoryName?: string;
|
|
468
|
+
/** path of parent Category */
|
|
469
|
+
categoryPath?: string;
|
|
470
|
+
/** 약관명 */
|
|
471
|
+
name?: string;
|
|
472
|
+
/** type of agrees */
|
|
473
|
+
agreedType?: AgreedType;
|
|
474
|
+
/** agreement text */
|
|
475
|
+
text?: string;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Type: `CancelHead`
|
|
479
|
+
*/
|
|
480
|
+
export interface CancelHead {
|
|
481
|
+
/** auto sequence */
|
|
482
|
+
id?: string;
|
|
483
|
+
/** 취소 정책 이름 */
|
|
484
|
+
name?: string;
|
|
485
|
+
/** 취소 허용 여부 */
|
|
486
|
+
useCancel?: BoolFlag;
|
|
487
|
+
/** 취소 사유 */
|
|
488
|
+
reasons?: string[];
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Type: `CancelModel`
|
|
492
|
+
* - 취소 관리 모델
|
|
493
|
+
*/
|
|
494
|
+
export interface CancelModel extends Model, CancelHead {
|
|
495
|
+
/** 취소 조건 사용 여부 */
|
|
496
|
+
hasCondition?: BoolFlag;
|
|
497
|
+
/** 취소 조건 타입 */
|
|
498
|
+
condition?: CancelConditionType;
|
|
499
|
+
/** 취소 허용 시작 시각 */
|
|
500
|
+
from?: number;
|
|
501
|
+
/** 취소 허용 종료 시각 */
|
|
502
|
+
to?: number;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Type: `DisplayHead`
|
|
506
|
+
*/
|
|
507
|
+
export interface DisplayHead {
|
|
508
|
+
/** auto-sequence */
|
|
509
|
+
id?: string;
|
|
510
|
+
/** 취소 정책 이름 */
|
|
511
|
+
name?: string;
|
|
512
|
+
/** 노출 상태 (1: 노출, 0: 노출안함 )*/
|
|
513
|
+
isDisplay?: BoolFlag;
|
|
514
|
+
/** 대분류 카테고리 ID */
|
|
515
|
+
majorCategoryId?: string;
|
|
516
|
+
/** 중분류 카테고리 */
|
|
517
|
+
minorCategoryId?: string;
|
|
518
|
+
/** 목록 노출 시작 일자 (timestamp) */
|
|
519
|
+
startedAt?: number;
|
|
520
|
+
/** 목록 노출 종료 일자 (timestamp) */
|
|
521
|
+
expiredAt?: number;
|
|
522
|
+
/** 상품뱃지타입 */
|
|
523
|
+
showBadgeType?: ShowBadgeType;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Type: `DisplayModel`
|
|
527
|
+
* - 노출 관리 모델
|
|
528
|
+
*/
|
|
529
|
+
export interface DisplayModel extends Model, DisplayHead {
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Type: `UsageGuideHead`
|
|
533
|
+
*/
|
|
534
|
+
export interface UsageGuideHead {
|
|
535
|
+
/** id of model (auto-seq) */
|
|
536
|
+
id?: string;
|
|
537
|
+
/** name of model */
|
|
538
|
+
name?: string;
|
|
539
|
+
/** 이용 안내 항목들 */
|
|
540
|
+
guides?: InputElement[];
|
|
541
|
+
}
|
|
542
|
+
export interface UsageGuideModel extends Model, UsageGuideHead {
|
|
543
|
+
}
|
|
544
|
+
/** about each input-element */
|
|
545
|
+
export interface InputElement {
|
|
546
|
+
/** name of notice (ex: 제품색상) */
|
|
547
|
+
name?: string;
|
|
548
|
+
/** stereo type */
|
|
549
|
+
type?: InputType;
|
|
550
|
+
/** placeholder help text (ex: 색상을 입력해주세요.) */
|
|
551
|
+
help?: string;
|
|
552
|
+
/** the input value in string (ex: 빨강,파랑) */
|
|
553
|
+
value?: string;
|
|
554
|
+
/** 필수 항목 */
|
|
555
|
+
required?: number;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* 주소입력 지원
|
|
559
|
+
*/
|
|
560
|
+
export interface UseAddressBasic {
|
|
561
|
+
/** 주소(우편번호) */
|
|
562
|
+
addrPost?: string;
|
|
563
|
+
/** 주소(거리=우편번호매칭) */
|
|
564
|
+
addrStreet?: string;
|
|
565
|
+
/** 주소(상세) */
|
|
566
|
+
addrDetail?: string;
|
|
567
|
+
/** 주소(추가) */
|
|
568
|
+
addrExtra?: string;
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* extract field names from models
|
|
572
|
+
* - only fields start with lowercase, or all upper.
|
|
573
|
+
*/
|
|
574
|
+
export declare const filterFields: (fields: string[], base?: string[]) => string[];
|
|
575
|
+
/** field names from head */
|
|
576
|
+
export declare const $HEAD: {
|
|
577
|
+
product: string[];
|
|
578
|
+
catalog: string[];
|
|
579
|
+
category: string[];
|
|
580
|
+
brand: string[];
|
|
581
|
+
notice: string[];
|
|
582
|
+
delivery: string[];
|
|
583
|
+
policy: string[];
|
|
584
|
+
sales: string[];
|
|
585
|
+
agreed: string[];
|
|
586
|
+
cancel: string[];
|
|
587
|
+
display: string[];
|
|
588
|
+
guide: string[];
|
|
589
|
+
};
|
|
590
|
+
export declare const $FIELD: {
|
|
591
|
+
product: string[];
|
|
592
|
+
catalog: string[];
|
|
593
|
+
brand: string[];
|
|
594
|
+
notice: string[];
|
|
595
|
+
delivery: string[];
|
|
596
|
+
policy: string[];
|
|
597
|
+
sales: string[];
|
|
598
|
+
agreed: string[];
|
|
599
|
+
cancel: string[];
|
|
600
|
+
display: string[];
|
|
601
|
+
guide: string[];
|
|
602
|
+
mock: string[];
|
|
603
|
+
};
|
|
604
|
+
/** must export default as below */
|
|
605
|
+
declare const _default: {
|
|
606
|
+
$HEAD: {
|
|
607
|
+
product: string[];
|
|
608
|
+
catalog: string[];
|
|
609
|
+
category: string[];
|
|
610
|
+
brand: string[];
|
|
611
|
+
notice: string[];
|
|
612
|
+
delivery: string[];
|
|
613
|
+
policy: string[];
|
|
614
|
+
sales: string[];
|
|
615
|
+
agreed: string[];
|
|
616
|
+
cancel: string[];
|
|
617
|
+
display: string[];
|
|
618
|
+
guide: string[];
|
|
619
|
+
};
|
|
620
|
+
$FIELD: {
|
|
621
|
+
product: string[];
|
|
622
|
+
catalog: string[];
|
|
623
|
+
brand: string[];
|
|
624
|
+
notice: string[];
|
|
625
|
+
delivery: string[];
|
|
626
|
+
policy: string[];
|
|
627
|
+
sales: string[];
|
|
628
|
+
agreed: string[];
|
|
629
|
+
cancel: string[];
|
|
630
|
+
display: string[];
|
|
631
|
+
guide: string[];
|
|
632
|
+
mock: string[];
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
export default _default;
|