@shopby/shop-sdk 1.45.0 → 1.45.3
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/CHANGELOG.md +21 -0
- package/build/src/domain/promotion/maps/index.d.ts +2 -2
- package/build/src/domain/promotion/maps/index.js +8 -4
- package/build/src/domain/promotion/maps/index.js.map +1 -1
- package/build/src/index.d.ts +5 -5
- package/build/types/domain/index.d.ts +1 -0
- package/build/types/domain/index.js +1 -0
- package/build/types/domain/index.js.map +1 -1
- package/build/types/domain/promotion/index.d.ts +5 -5
- package/build/types/domain/promotion/unions.d.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.45.3](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.45.2...v1.45.3) (2023-02-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* order CouponTypeMap 빌드 오류 수정 ([4cf62a3](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/4cf62a31579b6970ff5f4af2d19fe3289a337963))
|
|
11
|
+
|
|
12
|
+
### [1.45.2](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.45.1...v1.45.2) (2023-02-26)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* 쿠폰 빌드 오류 수정 ([31d9192](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/31d9192383fb5dbe8e2b0b49995f95cc1fea003f))
|
|
18
|
+
|
|
19
|
+
### [1.45.1](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.45.0...v1.45.1) (2023-02-26)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* 쿠폰 다운로드 빌드 오류 수정 ([395bad2](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/395bad212d0b3cdccdccb252cb58cefcdd91b46e))
|
|
25
|
+
|
|
5
26
|
## [1.45.0](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.44.2...v1.45.0) (2023-02-26)
|
|
6
27
|
|
|
7
28
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const PROMOTION_COUPON_TYPE_MAP: {
|
|
2
2
|
readonly PRODUCT: "상품적용 쿠폰";
|
|
3
3
|
readonly CART: "주문적용 쿠폰";
|
|
4
4
|
readonly CART_DELIVERY: "장바구니 배송비 할인";
|
|
5
5
|
};
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const PROMOTION_COUPON_TARGET_TYPE_MAP: {
|
|
7
7
|
readonly ALL_PRODUCT: "전상품";
|
|
8
8
|
readonly PRODUCT: "개별상품";
|
|
9
9
|
readonly BRAND: "브랜드";
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
export var
|
|
1
|
+
export var PROMOTION_COUPON_TYPE_MAP = {
|
|
2
2
|
PRODUCT: '상품적용 쿠폰',
|
|
3
3
|
CART: '주문적용 쿠폰',
|
|
4
|
-
CART_DELIVERY: '장바구니 배송비 할인'
|
|
4
|
+
CART_DELIVERY: '장바구니 배송비 할인',
|
|
5
5
|
};
|
|
6
|
-
export var
|
|
7
|
-
ALL_PRODUCT: '전상품',
|
|
6
|
+
export var PROMOTION_COUPON_TARGET_TYPE_MAP = {
|
|
7
|
+
ALL_PRODUCT: '전상품',
|
|
8
|
+
PRODUCT: '개별상품',
|
|
9
|
+
BRAND: '브랜드',
|
|
10
|
+
CATEGORY: '카테고리',
|
|
11
|
+
PARTNER: '파트너사',
|
|
8
12
|
};
|
|
9
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/promotion/maps/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/promotion/maps/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,yBAAyB,GAAG;IACvC,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,aAAa,EAAE,aAAa;CACpB,CAAC;AAEX,MAAM,CAAC,IAAM,gCAAgC,GAAG;IAC9C,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,MAAM;IACf,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,MAAM;CACP,CAAC"}
|
package/build/src/index.d.ts
CHANGED
|
@@ -265,14 +265,14 @@ export declare const create: ({ baseURL, headerOption, customHttpRequest, versio
|
|
|
265
265
|
getShopbyProductsProductNoUrlShortening(request: any): Promise<import("../types/http").ResponseData<any>>;
|
|
266
266
|
};
|
|
267
267
|
promotion: {
|
|
268
|
-
getCoupons(request: import("../types
|
|
268
|
+
getCoupons(request: import("../types").GetCouponsRequest): Promise<import("../types/http").ResponseData<import("../types").GetCouponsResponse>>;
|
|
269
269
|
getCouponsIssuable(request: any): Promise<import("../types/http").ResponseData<any>>;
|
|
270
270
|
getCouponsSummary(request: any): Promise<import("../types/http").ResponseData<any>>;
|
|
271
|
-
postCouponsRegisterCodePromotionCode(request: import("../types
|
|
272
|
-
postCouponsCouponNoDownload(request: import("../types
|
|
271
|
+
postCouponsRegisterCodePromotionCode(request: import("../types").PostCouponsRegisterCodePromotionCodeRequest): Promise<import("../types/http").ResponseData<import("../types").PostCouponsRegisterCodePromotionCodeResponse>>;
|
|
272
|
+
postCouponsCouponNoDownload(request: import("../types").PostCouponsCouponNoDownloadRequest): Promise<import("../types/http").ResponseData<import("../types").PostCouponsCouponNoDownloadResponse>>;
|
|
273
273
|
postCouponsEventsEventNoDownload(request: any): Promise<import("../types/http").ResponseData<any>>;
|
|
274
|
-
postCouponsProductsProductNoDownload(request: import("../types
|
|
275
|
-
getCouponsProductsProductNoIssuableCoupons(request: import("../types
|
|
274
|
+
postCouponsProductsProductNoDownload(request: import("../types").PostCouponsProductsProductNoDownloadRequest): Promise<import("../types/http").ResponseData<import("../types").PostCouponsProductsProductNoDownloadResponse>>;
|
|
275
|
+
getCouponsProductsProductNoIssuableCoupons(request: import("../types").GetCouponsProductsProductNoIssuableCouponsRequest): Promise<import("../types/http").ResponseData<import("../types").GetCouponsProductsProductNoIssuableCouponsResponse>>;
|
|
276
276
|
};
|
|
277
277
|
storage: {
|
|
278
278
|
postFilesImages(request: import("../types").PostFilesImagesRequest): Promise<import("../types/http").ResponseData<import("../types").PostFilesImagesResponse>>;
|
|
@@ -1 +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
|
+
{"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;AAC1B,cAAc,aAAa,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { Nullable } from "types/common";
|
|
|
2
2
|
import { OptionalAccessTokenRequest } from "../../http";
|
|
3
3
|
import { PlatformType } from "../display";
|
|
4
4
|
import { PayType } from "../order";
|
|
5
|
-
import {
|
|
5
|
+
import { PromotionCouponTargetType, PromotionCouponType } from "./unions";
|
|
6
6
|
export * from './unions';
|
|
7
7
|
export interface GetCouponsRequest extends OptionalAccessTokenRequest {
|
|
8
8
|
queryString: {
|
|
@@ -89,7 +89,7 @@ export interface CouponConstraintInformation {
|
|
|
89
89
|
issuePerPersonLimit: boolean;
|
|
90
90
|
memberGroupNames: Array<string>;
|
|
91
91
|
}
|
|
92
|
-
export interface
|
|
92
|
+
export interface PromotionCouponStatus {
|
|
93
93
|
myIssuedCnt: number;
|
|
94
94
|
totalIssuedCnt: number;
|
|
95
95
|
totalIssuableCnt: number;
|
|
@@ -109,11 +109,11 @@ export interface CouponsProductsProductNoIssuableCoupon {
|
|
|
109
109
|
couponName: string;
|
|
110
110
|
discountInfo: CouponDiscountInformation;
|
|
111
111
|
useConstraint: CouponConstraintInformation;
|
|
112
|
-
couponType:
|
|
113
|
-
couponStatus:
|
|
112
|
+
couponType: PromotionCouponType;
|
|
113
|
+
couponStatus: PromotionCouponStatus;
|
|
114
114
|
dateInfo: CouponDateInformation;
|
|
115
115
|
couponNo: number;
|
|
116
|
-
couponTargetType:
|
|
116
|
+
couponTargetType: PromotionCouponTargetType;
|
|
117
117
|
allianceRefererType: string;
|
|
118
118
|
}
|
|
119
119
|
export declare type GetCouponsProductsProductNoIssuableCouponsResponse = Array<CouponsProductsProductNoIssuableCoupon>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type
|
|
3
|
-
export declare type
|
|
1
|
+
import { PROMOTION_COUPON_TYPE_MAP, PROMOTION_COUPON_TARGET_TYPE_MAP } from '../../../src/domain/promotion';
|
|
2
|
+
export declare type PromotionCouponType = keyof typeof PROMOTION_COUPON_TYPE_MAP;
|
|
3
|
+
export declare type PromotionCouponTargetType = keyof typeof PROMOTION_COUPON_TARGET_TYPE_MAP;
|