@shopby/shop-sdk 1.7.16 → 1.8.2
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/build/src/{admin.d.ts → domain/admin.d.ts} +2 -2
- package/build/src/{admin.js → domain/admin.js} +0 -0
- package/build/src/domain/admin.js.map +1 -0
- package/build/src/{auth.d.ts → domain/auth.d.ts} +2 -2
- package/build/src/{auth.js → domain/auth.js} +0 -0
- package/build/src/domain/auth.js.map +1 -0
- package/build/src/{claim.d.ts → domain/claim.d.ts} +2 -2
- package/build/src/{claim.js → domain/claim.js} +0 -0
- package/build/src/domain/claim.js.map +1 -0
- package/build/src/{display.d.ts → domain/display.d.ts} +1 -2
- package/build/src/{display.js → domain/display.js} +0 -0
- package/build/src/domain/display.js.map +1 -0
- package/build/src/{manage.d.ts → domain/manage.d.ts} +2 -2
- package/build/src/{manage.js → domain/manage.js} +0 -0
- package/build/src/domain/manage.js.map +1 -0
- package/build/src/{marketing.d.ts → domain/marketing.d.ts} +1 -1
- package/build/src/{marketing.js → domain/marketing.js} +1 -1
- package/build/src/domain/marketing.js.map +1 -0
- package/build/src/{member.d.ts → domain/member.d.ts} +1 -2
- package/build/src/{member.js → domain/member.js} +0 -0
- package/build/src/domain/member.js.map +1 -0
- package/build/src/{order.d.ts → domain/order.d.ts} +2 -1
- package/build/src/{order.js → domain/order.js} +0 -0
- package/build/src/domain/order.js.map +1 -0
- package/build/src/{product.d.ts → domain/product.d.ts} +4 -4
- package/build/src/{product.js → domain/product.js} +0 -0
- package/build/src/domain/product.js.map +1 -0
- package/build/src/{promotion.d.ts → domain/promotion.d.ts} +1 -1
- package/build/src/{promotion.js → domain/promotion.js} +0 -0
- package/build/src/domain/promotion.js.map +1 -0
- package/build/src/index.d.ts +276 -2
- package/build/src/index.js +13 -13
- package/build/src/index.js.map +1 -1
- package/build/src/middlewares/index.d.ts +1 -1
- package/build/src/{storage.d.ts → storage/image.d.ts} +4 -4
- package/build/src/{storage.js → storage/image.js} +3 -3
- package/build/src/storage/image.js.map +1 -0
- package/build/types/common/country/index.d.ts +2 -0
- package/build/types/common/country/index.js +3 -0
- package/build/types/common/country/index.js.map +1 -0
- package/build/types/common/country/maps/index.d.ts +87 -0
- package/build/types/common/country/maps/index.js +88 -0
- package/build/types/common/country/maps/index.js.map +1 -0
- package/build/types/common/country/unions/index.d.ts +2 -0
- package/build/types/common/country/unions/index.js +2 -0
- package/build/types/common/country/unions/index.js.map +1 -0
- package/build/types/common/index.d.ts +5 -0
- package/build/types/common/index.js +6 -0
- package/build/types/common/index.js.map +1 -0
- package/build/types/common/maps.d.ts +46 -0
- package/build/types/common/maps.js +48 -0
- package/build/types/common/maps.js.map +1 -0
- package/build/types/common/period/index.d.ts +7 -0
- package/build/types/common/period/index.js +3 -0
- package/build/types/common/period/index.js.map +1 -0
- package/build/types/common/period/maps/index.d.ts +9 -0
- package/build/types/common/period/maps/index.js +10 -0
- package/build/types/common/period/maps/index.js.map +1 -0
- package/build/types/common/period/unions/index.d.ts +2 -0
- package/build/types/common/period/unions/index.js +2 -0
- package/build/types/common/period/unions/index.js.map +1 -0
- package/build/types/common/types/index.d.ts +2 -0
- package/build/types/common/types/index.js +3 -0
- package/build/types/common/types/index.js.map +1 -0
- package/build/types/common/types/literal.d.ts +4 -0
- package/build/types/common/types/literal.js +2 -0
- package/build/types/common/types/literal.js.map +1 -0
- package/build/types/common/types/specific.d.ts +12 -0
- package/build/types/common/types/specific.js +2 -0
- package/build/types/common/types/specific.js.map +1 -0
- package/build/types/{enum.d.ts → common/unions.d.ts} +1 -3
- package/build/types/common/unions.js +2 -0
- package/build/types/common/unions.js.map +1 -0
- package/build/types/{admin.d.ts → domain/admin/index.d.ts} +0 -0
- package/build/types/domain/admin/index.js +2 -0
- package/build/types/domain/admin/index.js.map +1 -0
- package/build/types/{auth.d.ts → domain/auth/index.d.ts} +1 -1
- package/build/types/domain/auth/index.js +2 -0
- package/build/types/domain/auth/index.js.map +1 -0
- package/build/types/{claim.d.ts → domain/claim/index.d.ts} +0 -0
- package/build/types/domain/claim/index.js +2 -0
- package/build/types/domain/claim/index.js.map +1 -0
- package/build/types/{display.d.ts → domain/display/index.d.ts} +2 -1
- package/build/types/domain/display/index.js +2 -0
- package/build/types/domain/display/index.js.map +1 -0
- package/build/types/{root.js → domain/index.d.ts} +0 -6
- package/build/types/domain/index.js +9 -0
- package/build/types/domain/index.js.map +1 -0
- package/build/types/{manage.d.ts → domain/manage/index.d.ts} +2 -2
- package/build/types/domain/manage/index.js +2 -0
- package/build/types/domain/manage/index.js.map +1 -0
- package/build/types/{member.d.ts → domain/member/index.d.ts} +0 -0
- package/build/types/domain/member/index.js +2 -0
- package/build/types/domain/member/index.js.map +1 -0
- package/build/types/{order.d.ts → domain/order/index.d.ts} +3 -3
- package/build/types/domain/order/index.js +2 -0
- package/build/types/domain/order/index.js.map +1 -0
- package/build/types/domain/product/amount/index.d.ts +21 -0
- package/build/types/domain/product/amount/index.js +2 -0
- package/build/types/domain/product/amount/index.js.map +1 -0
- package/build/types/domain/product/amount/maps/index.d.ts +11 -0
- package/build/types/domain/product/amount/maps/index.js +12 -0
- package/build/types/domain/product/amount/maps/index.js.map +1 -0
- package/build/types/domain/product/amount/unions/index.d.ts +6 -0
- package/build/types/domain/product/amount/unions/index.js +2 -0
- package/build/types/domain/product/amount/unions/index.js.map +1 -0
- package/build/types/domain/product/category/index.d.ts +9 -0
- package/build/types/domain/product/category/index.js +2 -0
- package/build/types/domain/product/category/index.js.map +1 -0
- package/build/types/domain/product/core/index.d.ts +113 -0
- package/build/types/domain/product/core/index.js +2 -0
- package/build/types/domain/product/core/index.js.map +1 -0
- package/build/types/domain/product/core/maps/index.d.ts +53 -0
- package/build/types/domain/product/core/maps/index.js +54 -0
- package/build/types/domain/product/core/maps/index.js.map +1 -0
- package/build/types/domain/product/core/unions/index.d.ts +11 -0
- package/build/types/domain/product/core/unions/index.js +2 -0
- package/build/types/domain/product/core/unions/index.js.map +1 -0
- package/build/types/domain/product/delivery/index.d.ts +46 -0
- package/build/types/domain/product/delivery/index.js +2 -0
- package/build/types/domain/product/delivery/index.js.map +1 -0
- package/build/types/domain/product/delivery/maps/index.d.ts +12 -0
- package/build/types/domain/product/delivery/maps/index.js +13 -0
- package/build/types/domain/product/delivery/maps/index.js.map +1 -0
- package/build/types/domain/product/delivery/unions/index.d.ts +3 -0
- package/build/types/domain/product/delivery/unions/index.js +2 -0
- package/build/types/domain/product/delivery/unions/index.js.map +1 -0
- package/build/types/domain/product/index.d.ts +76 -0
- package/build/types/domain/product/index.js +2 -0
- package/build/types/domain/product/index.js.map +1 -0
- package/build/types/domain/product/option/index.d.ts +37 -0
- package/build/types/domain/product/option/index.js +2 -0
- package/build/types/domain/product/option/index.js.map +1 -0
- package/build/types/domain/product/option/unions/index.d.ts +4 -0
- package/build/types/domain/product/option/unions/index.js +2 -0
- package/build/types/domain/product/option/unions/index.js.map +1 -0
- package/build/types/domain/product/partner/index.d.ts +11 -0
- package/build/types/domain/product/partner/index.js +2 -0
- package/build/types/domain/product/partner/index.js.map +1 -0
- package/build/types/domain/product/rental/index.d.ts +5 -0
- package/build/types/domain/product/rental/index.js +2 -0
- package/build/types/domain/product/rental/index.js.map +1 -0
- package/build/types/domain/product/reservation/index.d.ts +7 -0
- package/build/types/domain/product/reservation/index.js +2 -0
- package/build/types/domain/product/reservation/index.js.map +1 -0
- package/build/types/http/index.d.ts +30 -0
- package/build/types/http/index.js +2 -0
- package/build/types/http/index.js.map +1 -0
- package/build/types/index.d.ts +6 -0
- package/build/types/index.js +7 -0
- package/build/types/index.js.map +1 -0
- package/build/types/{storage.d.ts → storage/image/index.d.ts} +1 -1
- package/build/types/storage/image/index.js +2 -0
- package/build/types/storage/image/index.js.map +1 -0
- package/build/types/storage/index.d.ts +1 -0
- package/build/types/storage/index.js +2 -0
- package/build/types/storage/index.js.map +1 -0
- package/package.json +2 -2
- package/build/src/admin.js.map +0 -1
- package/build/src/auth.js.map +0 -1
- package/build/src/claim.js.map +0 -1
- package/build/src/display.js.map +0 -1
- package/build/src/manage.js.map +0 -1
- package/build/src/marketing.js.map +0 -1
- package/build/src/member.js.map +0 -1
- package/build/src/order.js.map +0 -1
- package/build/src/product.js.map +0 -1
- package/build/src/promotion.js.map +0 -1
- package/build/src/storage.js.map +0 -1
- package/build/types/admin.js +0 -2
- package/build/types/admin.js.map +0 -1
- package/build/types/auth.js +0 -2
- package/build/types/auth.js.map +0 -1
- package/build/types/claim.js +0 -2
- package/build/types/claim.js.map +0 -1
- package/build/types/design.d.ts +0 -4
- package/build/types/design.js +0 -2
- package/build/types/design.js.map +0 -1
- package/build/types/display.js +0 -2
- package/build/types/display.js.map +0 -1
- package/build/types/enum.js +0 -2
- package/build/types/enum.js.map +0 -1
- package/build/types/manage.js +0 -3
- package/build/types/manage.js.map +0 -1
- package/build/types/map.d.ts +0 -142
- package/build/types/map.js +0 -2
- package/build/types/map.js.map +0 -1
- package/build/types/member.js +0 -2
- package/build/types/member.js.map +0 -1
- package/build/types/order.js +0 -2
- package/build/types/order.js.map +0 -1
- package/build/types/product.d.ts +0 -30
- package/build/types/product.js +0 -2
- package/build/types/product.js.map +0 -1
- package/build/types/root.d.ts +0 -325
- package/build/types/root.js.map +0 -1
- package/build/types/storage.js +0 -2
- package/build/types/storage.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RequestConfig } from '../../http';
|
|
2
|
+
import { DirectionTypes, InquiryStatus, PageTypes, SearchTypes } from '../../common/unions';
|
|
3
3
|
export interface PostBoardsBoardNoArticlesRequest {
|
|
4
4
|
pathVariable: {
|
|
5
5
|
boardNo: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/manage/index.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/member/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddressType, AgreementType, CashReceiptIssuePurposeType, CountryCode,
|
|
1
|
+
import { AddressType, AgreementType, CashReceiptIssuePurposeType, CountryCode, Week, DeliveryConditionType, DeliveryPayType, GroupDeliveryAmtType, OptionType, OrderChannelType, PayType, PgType, RecurringCycle, RecurringCycleType, ShippingAreaType, Yn } from '../../common';
|
|
2
2
|
/**
|
|
3
3
|
* path: /order-configs
|
|
4
4
|
*/
|
|
@@ -60,7 +60,7 @@ export interface GetOrderSheetsOrderSheetNoResponse {
|
|
|
60
60
|
appliedCoupons: AppliedCoupon;
|
|
61
61
|
availablePayTypes: Array<{
|
|
62
62
|
payType: PayType;
|
|
63
|
-
pgTypes: PgType;
|
|
63
|
+
pgTypes: PgType[];
|
|
64
64
|
}>;
|
|
65
65
|
tradeBankAccountInfos: TradeBankAccountInfo[];
|
|
66
66
|
invalidProducts: OrderProduct[];
|
|
@@ -207,7 +207,7 @@ export interface DeliveryDate {
|
|
|
207
207
|
startYmdt: string;
|
|
208
208
|
endYmdy: string;
|
|
209
209
|
};
|
|
210
|
-
daysOfWeek:
|
|
210
|
+
daysOfWeek: Week;
|
|
211
211
|
daysAfterPurchase: number;
|
|
212
212
|
}
|
|
213
213
|
export interface OrderProductOption {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/order/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DiscountUnit } from './unions';
|
|
2
|
+
export interface ProductPrice {
|
|
3
|
+
unitPrice: number;
|
|
4
|
+
immediateDiscountAmt: number;
|
|
5
|
+
unitName: string;
|
|
6
|
+
accumulationAmtWhenBuyConfirm: number;
|
|
7
|
+
salePrice: number;
|
|
8
|
+
minSalePrice: number;
|
|
9
|
+
immediateDiscountUnitType: DiscountUnit;
|
|
10
|
+
contentsIfPausing: string;
|
|
11
|
+
accumulationRate: number;
|
|
12
|
+
additionDiscountUnitType: DiscountUnit;
|
|
13
|
+
additionDiscountValue: number;
|
|
14
|
+
unitNameType: string;
|
|
15
|
+
maxAdditionDiscountAmt: number;
|
|
16
|
+
maxSalePrice: number;
|
|
17
|
+
maxCouponAmt: number;
|
|
18
|
+
couponDiscountAmt: number;
|
|
19
|
+
maxDiscountAmount: number;
|
|
20
|
+
additionDiscountAmt: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../types/domain/product/amount/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../types/domain/product/amount/maps/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,IAAM,iBAAiB,GAAG;IAC/B,GAAG,EAAE,IAAI;IACT,IAAI,EAAE,IAAI;CACX,CAAC;AAEF,MAAM,CAAC,IAAM,sBAAsB,GAAG;IACpC,MAAM,EAAE,GAAG;IACX,OAAO,EAAE,GAAG;CACb,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DISCOUNT_UNIT_MAP, DISCOUNT_UNIT_TYPE_MAP } from '../maps';
|
|
2
|
+
/**
|
|
3
|
+
* WARN: SHOP API 에서 정액/정률 을 표현하는 방식이 2가지가 존재.
|
|
4
|
+
*/
|
|
5
|
+
export declare type DiscountUnit = keyof typeof DISCOUNT_UNIT_MAP;
|
|
6
|
+
export declare type DiscountUnitType = keyof typeof DISCOUNT_UNIT_TYPE_MAP;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../types/domain/product/amount/unions/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../types/domain/product/category/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { DateYmdt, HTMLString, JSONString, URLString, Yn, ShippingAreaType } from '../../../common';
|
|
2
|
+
import { ProductType, ProductCertificationType, ProductStickerType, ProductSalePeriodType, ProductGroup, BrandNameType, CertificationNo, ProductClassType, SaleStatus } from './unions';
|
|
3
|
+
import { DiscountUnitType } from '../amount/unions';
|
|
4
|
+
export interface ProductBaseInfo {
|
|
5
|
+
productType: ProductType;
|
|
6
|
+
productName: string;
|
|
7
|
+
productNameEn: string;
|
|
8
|
+
productNo: number;
|
|
9
|
+
registerYmdt: DateYmdt;
|
|
10
|
+
expirationYmdt: DateYmdt;
|
|
11
|
+
saleStartYmdt: DateYmdt;
|
|
12
|
+
saleEndYmdt: DateYmdt;
|
|
13
|
+
productManagementCd: string;
|
|
14
|
+
content: string;
|
|
15
|
+
placeOriginEtcLabel: string;
|
|
16
|
+
dutyInfo: JSONString;
|
|
17
|
+
contentHeader: string;
|
|
18
|
+
optionImageViewable: boolean;
|
|
19
|
+
deliveryCustomerInfo: string;
|
|
20
|
+
customPropertise: ProductCustomProperties[];
|
|
21
|
+
usableRestockNoti: number;
|
|
22
|
+
contentFooter: HTMLString;
|
|
23
|
+
certificationType: ProductCertificationType;
|
|
24
|
+
manufactureYmdt: DateYmdt;
|
|
25
|
+
accumulationUseYn: Yn;
|
|
26
|
+
stickerLabels: string[];
|
|
27
|
+
certifications: ProductCertification[];
|
|
28
|
+
promotionText: string;
|
|
29
|
+
salePeriodType: ProductSalePeriodType;
|
|
30
|
+
stickerInfos: ProductStickerInfo[];
|
|
31
|
+
hsCode: string;
|
|
32
|
+
productGroup: ProductGroup;
|
|
33
|
+
imageUrls: URLString[];
|
|
34
|
+
placeOriginLabel: string;
|
|
35
|
+
purchaseGuide: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ProductCustomProperties {
|
|
38
|
+
propValueNo: number;
|
|
39
|
+
multipleSelectionYn: Yn;
|
|
40
|
+
propValue: string;
|
|
41
|
+
propName: string;
|
|
42
|
+
propNo: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ProductCertification {
|
|
45
|
+
date: string;
|
|
46
|
+
no: CertificationNo;
|
|
47
|
+
code: string;
|
|
48
|
+
organization: string;
|
|
49
|
+
type: string;
|
|
50
|
+
target: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ProductStickerInfo {
|
|
53
|
+
name: string;
|
|
54
|
+
label: string;
|
|
55
|
+
type: ProductStickerType;
|
|
56
|
+
}
|
|
57
|
+
export interface ProductShippingInfo {
|
|
58
|
+
shippingConfig: ProductShippingConfig;
|
|
59
|
+
shippingAvailable: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface ProductShippingConfig {
|
|
62
|
+
templateNo: number;
|
|
63
|
+
shippingAreaPartnerNo: number;
|
|
64
|
+
shippingAreaType: ShippingAreaType;
|
|
65
|
+
internationalShippingAvailable: boolean;
|
|
66
|
+
combinable: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface ProductStock {
|
|
69
|
+
saleCnt: number;
|
|
70
|
+
mainStockCnt: number;
|
|
71
|
+
stockCnt: number;
|
|
72
|
+
}
|
|
73
|
+
export interface ProductBrand {
|
|
74
|
+
nameType: BrandNameType;
|
|
75
|
+
name: string;
|
|
76
|
+
nameEn: string;
|
|
77
|
+
brandNo: number;
|
|
78
|
+
logoImageUrl: URLString;
|
|
79
|
+
}
|
|
80
|
+
export interface ProductLimitation {
|
|
81
|
+
minBuyCnt: number;
|
|
82
|
+
maxBuyTimeCnt: number;
|
|
83
|
+
maxBuyDays: number;
|
|
84
|
+
maxBuyPeriodCnt: number;
|
|
85
|
+
maxBuyPersonCnt: number;
|
|
86
|
+
refundable: boolean;
|
|
87
|
+
naverPayHandling: boolean;
|
|
88
|
+
memberOnly: boolean;
|
|
89
|
+
canAddToCart: boolean;
|
|
90
|
+
}
|
|
91
|
+
export interface ProductRegularDelivery {
|
|
92
|
+
discount: ProductDiscount;
|
|
93
|
+
}
|
|
94
|
+
export interface ProductDiscount {
|
|
95
|
+
type: DiscountUnitType;
|
|
96
|
+
value: number;
|
|
97
|
+
}
|
|
98
|
+
export interface ProductCounter {
|
|
99
|
+
myInquiryCnt: number;
|
|
100
|
+
inquiryCnt: number;
|
|
101
|
+
likeCnt: number;
|
|
102
|
+
reviewCnt: number;
|
|
103
|
+
}
|
|
104
|
+
export interface ProductPartnerNotice {
|
|
105
|
+
title: string;
|
|
106
|
+
content: string;
|
|
107
|
+
}
|
|
108
|
+
export interface ProductStatus {
|
|
109
|
+
productClassType: ProductClassType;
|
|
110
|
+
display: boolean;
|
|
111
|
+
soldout: boolean;
|
|
112
|
+
saleStatusType: SaleStatus;
|
|
113
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../types/domain/product/core/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const CERTIFICATION_NO_MAP: {
|
|
2
|
+
1: string;
|
|
3
|
+
2: string;
|
|
4
|
+
3: string;
|
|
5
|
+
4: string;
|
|
6
|
+
5: string;
|
|
7
|
+
6: string;
|
|
8
|
+
7: string;
|
|
9
|
+
8: string;
|
|
10
|
+
9: string;
|
|
11
|
+
10: string;
|
|
12
|
+
11: string;
|
|
13
|
+
12: string;
|
|
14
|
+
13: string;
|
|
15
|
+
14: string;
|
|
16
|
+
15: string;
|
|
17
|
+
16: string;
|
|
18
|
+
17: string;
|
|
19
|
+
18: string;
|
|
20
|
+
19: string;
|
|
21
|
+
20: string;
|
|
22
|
+
21: string;
|
|
23
|
+
22: string;
|
|
24
|
+
23: string;
|
|
25
|
+
24: string;
|
|
26
|
+
25: string;
|
|
27
|
+
26: string;
|
|
28
|
+
27: string;
|
|
29
|
+
28: string;
|
|
30
|
+
29: string;
|
|
31
|
+
30: string;
|
|
32
|
+
31: string;
|
|
33
|
+
32: string;
|
|
34
|
+
33: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const BRAND_NAME_TYPE_MAP: {
|
|
37
|
+
NAME_KO: string;
|
|
38
|
+
NAME_EN: string;
|
|
39
|
+
NONE: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const PRODUCT_CLASS_TYPE_MAP: {
|
|
42
|
+
DEFAULT: string;
|
|
43
|
+
EVENT: string;
|
|
44
|
+
OFFLINE: string;
|
|
45
|
+
RENTAL: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const SALE_STATUS_MAP: {
|
|
48
|
+
READY: string;
|
|
49
|
+
ONSALE: string;
|
|
50
|
+
FINISHED: string;
|
|
51
|
+
STOP: string;
|
|
52
|
+
PROHIBITION: string;
|
|
53
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export var CERTIFICATION_NO_MAP = {
|
|
2
|
+
1: '공산품 안전인증공산품 안전인증',
|
|
3
|
+
2: '공산품 자율안전확인',
|
|
4
|
+
3: '공산품 어린이보호포장',
|
|
5
|
+
4: '공산품 안전품질표기',
|
|
6
|
+
5: '전기용품 안전인증',
|
|
7
|
+
6: '전기용품 자율안전확인',
|
|
8
|
+
7: '전기용품 공급자적합성',
|
|
9
|
+
8: '방송통신기자재 적합인증',
|
|
10
|
+
9: '방송통신기자재 적합등록',
|
|
11
|
+
10: '방송통신기자재 잠정인증',
|
|
12
|
+
11: '어린이제품 안전인증',
|
|
13
|
+
12: '어린이제품 안전확인',
|
|
14
|
+
13: '어린이제품 공급자적합성 확인',
|
|
15
|
+
14: '친환경농산물인증 - 유기농산물',
|
|
16
|
+
15: '친환경농산물인증 - 유기농축산물',
|
|
17
|
+
16: '친환경농산물인증 - 무농약농산물',
|
|
18
|
+
17: '친환경농산물인증 - 무항생제축산물',
|
|
19
|
+
18: '친환경농산물인증 - 저농약농산물',
|
|
20
|
+
19: '농산물우수관리인증(GAP)',
|
|
21
|
+
20: '이력추적관리농산물',
|
|
22
|
+
21: '가공식품산업표준KS인증',
|
|
23
|
+
22: '전통식품품질인증',
|
|
24
|
+
23: '유기가공식품인증',
|
|
25
|
+
24: '수산물품질인증',
|
|
26
|
+
25: '수산특산품질인증',
|
|
27
|
+
26: '수산전통식품품질인증',
|
|
28
|
+
27: 'HACCP',
|
|
29
|
+
28: '축산물등급판정확인서',
|
|
30
|
+
29: '도축검사증명서',
|
|
31
|
+
30: 'GMP - 우수건강기능식품제조기준',
|
|
32
|
+
31: '건강기능식품 광고사전심의',
|
|
33
|
+
32: '술품질인증 - 가형',
|
|
34
|
+
33: '술품질인증 - 나형',
|
|
35
|
+
};
|
|
36
|
+
export var BRAND_NAME_TYPE_MAP = {
|
|
37
|
+
NAME_KO: '한글',
|
|
38
|
+
NAME_EN: '영문',
|
|
39
|
+
NONE: '없음',
|
|
40
|
+
};
|
|
41
|
+
export var PRODUCT_CLASS_TYPE_MAP = {
|
|
42
|
+
DEFAULT: '일반상품',
|
|
43
|
+
EVENT: '이벤트상품',
|
|
44
|
+
OFFLINE: '오프라인상품',
|
|
45
|
+
RENTAL: '렌탈상품',
|
|
46
|
+
};
|
|
47
|
+
export var SALE_STATUS_MAP = {
|
|
48
|
+
READY: '판매대기',
|
|
49
|
+
ONSALE: '판매중',
|
|
50
|
+
FINISHED: '판매종료',
|
|
51
|
+
STOP: '판매중지',
|
|
52
|
+
PROHIBITION: '판매금지',
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../types/domain/product/core/maps/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,oBAAoB,GAAG;IAClC,CAAC,EAAE,kBAAkB;IACrB,CAAC,EAAE,YAAY;IACf,CAAC,EAAE,aAAa;IAChB,CAAC,EAAE,YAAY;IACf,CAAC,EAAE,WAAW;IACd,CAAC,EAAE,aAAa;IAChB,CAAC,EAAE,aAAa;IAChB,CAAC,EAAE,cAAc;IACjB,CAAC,EAAE,cAAc;IACjB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,kBAAkB;IACtB,EAAE,EAAE,mBAAmB;IACvB,EAAE,EAAE,mBAAmB;IACvB,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,mBAAmB;IACvB,EAAE,EAAE,gBAAgB;IACpB,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,YAAY;CACjB,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,IAAI;CACX,CAAC;AAEF,MAAM,CAAC,IAAM,sBAAsB,GAAG;IACpC,OAAO,EAAE,MAAM;IACf,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,MAAM;CACf,CAAC;AAEF,MAAM,CAAC,IAAM,eAAe,GAAG;IAC7B,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,MAAM;CACpB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BRAND_NAME_TYPE_MAP, CERTIFICATION_NO_MAP, PRODUCT_CLASS_TYPE_MAP, SALE_STATUS_MAP } from '../maps';
|
|
2
|
+
export declare type ProductType = 'DEFAULT' | 'EVENT' | 'OFFLINE' | 'RENTAL';
|
|
3
|
+
export declare type ProductCertificationType = 'TARGET' | 'NOT_TARGET' | 'DETAIL_PAGE';
|
|
4
|
+
export declare type ProductSalePeriodType = 'REGULAR' | 'PERIOD';
|
|
5
|
+
export declare type ProductStickerType = 'TEXT' | 'IMAGE';
|
|
6
|
+
export declare type ProductGroup = 'DELIVERY' | 'SERVICE';
|
|
7
|
+
export declare type ProductSaleMethodType = 'PURCHASE' | 'CONSIGNMENT';
|
|
8
|
+
export declare type BrandNameType = keyof typeof BRAND_NAME_TYPE_MAP;
|
|
9
|
+
export declare type CertificationNo = keyof typeof CERTIFICATION_NO_MAP;
|
|
10
|
+
export declare type ProductClassType = keyof typeof PRODUCT_CLASS_TYPE_MAP;
|
|
11
|
+
export declare type SaleStatus = keyof typeof SALE_STATUS_MAP;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../types/domain/product/core/unions/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CountryCode, Period, Week, Yn } from '../../../common';
|
|
2
|
+
import { DeliveryCondition, DeliveryType } from './unions';
|
|
3
|
+
export interface ProductDeliveryDate {
|
|
4
|
+
period: Period;
|
|
5
|
+
daysOfWeek: Week;
|
|
6
|
+
daysAfterPurchase: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ProductDeliveryFee {
|
|
9
|
+
deliveryConditionType: DeliveryCondition;
|
|
10
|
+
aboveDeliveryAmt: number;
|
|
11
|
+
deliveryCompanyTypeLabel: string;
|
|
12
|
+
deliveryType: DeliveryType;
|
|
13
|
+
deliveryCompanyType: string;
|
|
14
|
+
defaultDeliveryConditionLabel: string;
|
|
15
|
+
remoteDeliveryAreaFees: RemoteDeliveryAreaFees;
|
|
16
|
+
deliveryAmtLabels: string[];
|
|
17
|
+
deliveryAmt: number;
|
|
18
|
+
deliveryPrePayment: boolean;
|
|
19
|
+
deliveryConditionDetails: DeliveryConditionDetail[];
|
|
20
|
+
perOrderCnt: number;
|
|
21
|
+
deliveryCustomerInfo: string;
|
|
22
|
+
returnDeliveryAmt: number;
|
|
23
|
+
returnWarehouse: ReturnWarehouse;
|
|
24
|
+
}
|
|
25
|
+
export interface RemoteDeliveryAreaFees {
|
|
26
|
+
address: string;
|
|
27
|
+
extraDeliveryAmt: number;
|
|
28
|
+
}
|
|
29
|
+
export interface DeliveryConditionDetail {
|
|
30
|
+
deliveryAmt: number;
|
|
31
|
+
below: number;
|
|
32
|
+
aboveOrEqual: number;
|
|
33
|
+
}
|
|
34
|
+
export interface ReturnWarehouse {
|
|
35
|
+
warehouseAddressType: 'ADDRESS' | 'SUBSTITUTION';
|
|
36
|
+
partnerNo: number;
|
|
37
|
+
addressStr: string;
|
|
38
|
+
address: string;
|
|
39
|
+
defaultReleaseWarehouseYn: Yn;
|
|
40
|
+
countryCd: CountryCode;
|
|
41
|
+
defaultReturnWarehouseYn: Yn;
|
|
42
|
+
detailAddress: string;
|
|
43
|
+
zipCd: string;
|
|
44
|
+
warehouseName: string;
|
|
45
|
+
warehouseNo: number;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../types/domain/product/delivery/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const DELIVERY_CONDITION_TYPE_MAP: {
|
|
2
|
+
FREE: string;
|
|
3
|
+
CONDITIONAL: string;
|
|
4
|
+
FIXED_FEE: string;
|
|
5
|
+
QUANTITY_PROPOSITIONAL_FEE: string;
|
|
6
|
+
PRICE_FEE: string;
|
|
7
|
+
QUANTITY_FEE: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const DELIVERY_TYPE_MAP: {
|
|
10
|
+
PARCEL_DELIVERY: string;
|
|
11
|
+
DIRECT_DELIVERY: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var DELIVERY_CONDITION_TYPE_MAP = {
|
|
2
|
+
FREE: '무료',
|
|
3
|
+
CONDITIONAL: '조건부 무료',
|
|
4
|
+
FIXED_FEE: '유료(고정 배송비)',
|
|
5
|
+
QUANTITY_PROPOSITIONAL_FEE: '수량 비례',
|
|
6
|
+
PRICE_FEE: '금액별 차등',
|
|
7
|
+
QUANTITY_FEE: '수량별 차등',
|
|
8
|
+
};
|
|
9
|
+
export var DELIVERY_TYPE_MAP = {
|
|
10
|
+
PARCEL_DELIVERY: '택배/등기/소포',
|
|
11
|
+
DIRECT_DELIVERY: '직접 배달(화물배송)',
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../types/domain/product/delivery/maps/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,2BAA2B,GAAG;IACzC,IAAI,EAAE,IAAI;IACV,WAAW,EAAE,QAAQ;IACrB,SAAS,EAAE,YAAY;IACvB,0BAA0B,EAAE,OAAO;IACnC,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,QAAQ;CACvB,CAAC;AAEF,MAAM,CAAC,IAAM,iBAAiB,GAAG;IAC/B,eAAe,EAAE,UAAU;IAC3B,eAAe,EAAE,aAAa;CAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../types/domain/product/delivery/unions/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { RequestConfig } from '../../http';
|
|
2
|
+
import { OptionSelectType, OptionType } from './option/unions';
|
|
3
|
+
import { ProductFlatOption, ProductMultiLevelOption, ProductOptionInput } from './option';
|
|
4
|
+
import { ProductReservation } from './reservation';
|
|
5
|
+
import { RentalInfo } from './rental';
|
|
6
|
+
import { ProductPartnerNotice, ProductBaseInfo, ProductBrand, ProductCounter, ProductLimitation, ProductRegularDelivery, ProductShippingInfo, ProductStock, ProductStatus } from './core';
|
|
7
|
+
import { HTMLString } from '../../common';
|
|
8
|
+
import { ProductSaleMethodType } from './core/unions';
|
|
9
|
+
import { ProductPrice } from './amount';
|
|
10
|
+
import { ProductNestingCategory } from './category';
|
|
11
|
+
import { ProductDeliveryDate, ProductDeliveryFee } from './delivery';
|
|
12
|
+
import { Partner } from './partner';
|
|
13
|
+
export interface GetProductsProductNoRequest {
|
|
14
|
+
pathVariable: {
|
|
15
|
+
productNo: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface GetProductsProductNoResponse {
|
|
19
|
+
rentalInfos: RentalInfo[];
|
|
20
|
+
reservationData: ProductReservation;
|
|
21
|
+
baseInfo: ProductBaseInfo;
|
|
22
|
+
groupManagementCodeName: string;
|
|
23
|
+
shippingInfo: ProductShippingInfo;
|
|
24
|
+
deliveryGuide?: HTMLString;
|
|
25
|
+
groupManagementCode: string;
|
|
26
|
+
relatedProductNos: number[];
|
|
27
|
+
liked: boolean;
|
|
28
|
+
saleMethodType: ProductSaleMethodType;
|
|
29
|
+
exchangeGuide?: HTMLString;
|
|
30
|
+
refundGuide?: HTMLString;
|
|
31
|
+
price: ProductPrice;
|
|
32
|
+
categories: ProductNestingCategory[];
|
|
33
|
+
stock: ProductStock;
|
|
34
|
+
deliveryDate: ProductDeliveryDate;
|
|
35
|
+
brand: ProductBrand;
|
|
36
|
+
limitations: ProductLimitation[];
|
|
37
|
+
mainBestProductYn: boolean;
|
|
38
|
+
regularDelivery: ProductRegularDelivery;
|
|
39
|
+
counter: ProductCounter;
|
|
40
|
+
partnerNotice: ProductPartnerNotice;
|
|
41
|
+
afterServiceGuide?: HTMLString;
|
|
42
|
+
deliveryFee: ProductDeliveryFee;
|
|
43
|
+
partner: Partner;
|
|
44
|
+
liquorDelegationGuide: HTMLString;
|
|
45
|
+
displayableStock: boolean;
|
|
46
|
+
status: ProductStatus;
|
|
47
|
+
}
|
|
48
|
+
export interface GetProductsProductNoOptionsRequest {
|
|
49
|
+
pathVariable: {
|
|
50
|
+
productNo: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export interface GetProductsProductNoOptionsResponse {
|
|
54
|
+
flatOptions: ProductFlatOption[];
|
|
55
|
+
inputs: ProductOptionInput[];
|
|
56
|
+
multiLevelOptions: ProductMultiLevelOption[];
|
|
57
|
+
selectType: OptionSelectType;
|
|
58
|
+
displayableStock: boolean;
|
|
59
|
+
type: OptionType;
|
|
60
|
+
labels: string[];
|
|
61
|
+
}
|
|
62
|
+
export interface GetGuestRecentProductsRequest {
|
|
63
|
+
queryString: {
|
|
64
|
+
mallProductNos: string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export declare type GetGuestRecentProductsResponse = any;
|
|
68
|
+
export interface PostProfileLikeProductsRequest extends RequestConfig {
|
|
69
|
+
requestBody: {
|
|
70
|
+
productNos: number[];
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export interface PostProfileLikeProductsResponse {
|
|
74
|
+
result: boolean;
|
|
75
|
+
productNo: number;
|
|
76
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/product/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { OptionInputMatchingType, OptionSaleType } from './unions';
|
|
2
|
+
import { RentalInfo } from '../rental';
|
|
3
|
+
interface ProductOptionBase {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ProductOptionImage {
|
|
8
|
+
main: boolean;
|
|
9
|
+
url: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ProductOption extends ProductOptionBase {
|
|
12
|
+
buyPrice: number;
|
|
13
|
+
images: ProductOptionImage[];
|
|
14
|
+
saleType: OptionSaleType;
|
|
15
|
+
main: boolean;
|
|
16
|
+
addPrice: 10000;
|
|
17
|
+
rentalInfo: RentalInfo[];
|
|
18
|
+
saleCnt: number;
|
|
19
|
+
reservationStockCnt: number;
|
|
20
|
+
stockCnt: number;
|
|
21
|
+
optionManagementCd: string;
|
|
22
|
+
optionNo: number;
|
|
23
|
+
forcedSoldOut: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface ProductNestingOption extends ProductOption {
|
|
26
|
+
children: ProductOption;
|
|
27
|
+
}
|
|
28
|
+
export declare type ProductFlatOption = ProductOption;
|
|
29
|
+
export interface ProductMultiLevelOption extends ProductOptionBase, ProductNestingOption {
|
|
30
|
+
}
|
|
31
|
+
export interface ProductOptionInput {
|
|
32
|
+
inputMatchingType: OptionInputMatchingType;
|
|
33
|
+
inputLabel: string;
|
|
34
|
+
required: boolean;
|
|
35
|
+
inputNo: number;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../types/domain/product/option/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare type OptionType = 'STANDARD' | 'COMBINATION' | 'DEFAULT' | 'MAPPING';
|
|
2
|
+
export declare type OptionSelectType = 'FLAT' | 'MULTI';
|
|
3
|
+
export declare type OptionInputMatchingType = 'OPTION' | 'PRODUCT' | 'AMOUNT';
|
|
4
|
+
export declare type OptionSaleType = 'AVAILABLE' | 'SOLD_OUT';
|