@shopby/shop-sdk 1.56.17 → 1.56.18
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 +7 -0
- package/build/src/domain/promotion/index.d.ts +2 -1
- package/build/src/domain/promotion/index.js +10 -0
- package/build/src/domain/promotion/index.js.map +1 -1
- package/build/src/index.d.ts +1 -0
- package/build/types/domain/promotion/index.d.ts +13 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.56.18](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.56.17...v1.56.18) (2023-03-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* domain/promotion 쿠폰번호 제외 대상 조회 추가 ([2c8b21f](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/2c8b21fe20aba468c54915bee580e73a05e70983))
|
|
11
|
+
|
|
5
12
|
### [1.56.17](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.56.16...v1.56.17) (2023-03-31)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ResponseData } from '../../../types/http';
|
|
2
|
-
import { GetCouponsCouponNoTargetsRequest, GetCouponsCouponNoTargetsResponse, GetCouponsIssuableResponse, GetCouponsProductsProductNoIssuableCouponsRequest, GetCouponsProductsProductNoIssuableCouponsResponse, GetCouponsRequest, GetCouponsResponse, GetCouponsSummaryRequest, GetCouponsSummaryResponse, PostCouponsCouponNoDownloadRequest, PostCouponsCouponNoDownloadResponse, PostCouponsProductsProductNoDownloadRequest, PostCouponsProductsProductNoDownloadResponse, PostCouponsRegisterCodePromotionCodeRequest, PostCouponsRegisterCodePromotionCodeResponse } from "../../../types/domain/promotion";
|
|
2
|
+
import { GetCouponsCouponNoExcludeTargetsRequest, GetCouponsCouponNoExcludeTargetsResponse, GetCouponsCouponNoTargetsRequest, GetCouponsCouponNoTargetsResponse, GetCouponsIssuableResponse, GetCouponsProductsProductNoIssuableCouponsRequest, GetCouponsProductsProductNoIssuableCouponsResponse, GetCouponsRequest, GetCouponsResponse, GetCouponsSummaryRequest, GetCouponsSummaryResponse, PostCouponsCouponNoDownloadRequest, PostCouponsCouponNoDownloadResponse, PostCouponsProductsProductNoDownloadRequest, PostCouponsProductsProductNoDownloadResponse, PostCouponsRegisterCodePromotionCodeRequest, PostCouponsRegisterCodePromotionCodeResponse } from "../../../types/domain/promotion";
|
|
3
3
|
declare const promotion: (httpRequest: Function) => {
|
|
4
4
|
/**
|
|
5
5
|
* Coupon
|
|
@@ -9,6 +9,7 @@ declare const promotion: (httpRequest: Function) => {
|
|
|
9
9
|
getCouponsSummary(request: GetCouponsSummaryRequest): Promise<ResponseData<GetCouponsSummaryResponse>>;
|
|
10
10
|
postCouponsRegisterCodePromotionCode(request: PostCouponsRegisterCodePromotionCodeRequest): Promise<ResponseData<PostCouponsRegisterCodePromotionCodeResponse>>;
|
|
11
11
|
postCouponsCouponNoDownload(request: PostCouponsCouponNoDownloadRequest): Promise<ResponseData<PostCouponsCouponNoDownloadResponse>>;
|
|
12
|
+
getCouponsCouponNoExcludeTargets(request: GetCouponsCouponNoExcludeTargetsRequest): Promise<ResponseData<GetCouponsCouponNoExcludeTargetsResponse>>;
|
|
12
13
|
getCouponsCouponNoTargets(request: GetCouponsCouponNoTargetsRequest): Promise<ResponseData<GetCouponsCouponNoTargetsResponse>>;
|
|
13
14
|
postCouponsEventsEventNoDownload(request: any): Promise<ResponseData<any>>;
|
|
14
15
|
postCouponsProductsProductNoDownload(request: PostCouponsProductsProductNoDownloadRequest): Promise<ResponseData<PostCouponsProductsProductNoDownloadResponse>>;
|
|
@@ -49,6 +49,16 @@ var promotion = function (httpRequest) { return ({
|
|
|
49
49
|
useAccessToken: true,
|
|
50
50
|
});
|
|
51
51
|
},
|
|
52
|
+
getCouponsCouponNoExcludeTargets: function (request) {
|
|
53
|
+
var couponNo = request.pathVariable.couponNo, queryString = request.queryString;
|
|
54
|
+
return httpRequest({
|
|
55
|
+
method: 'GET',
|
|
56
|
+
url: "/coupons/".concat(couponNo, "/exclude-targets"),
|
|
57
|
+
queryString: queryString,
|
|
58
|
+
useAccessToken: true,
|
|
59
|
+
key: 'getCouponsCouponNoExcludeTargets',
|
|
60
|
+
});
|
|
61
|
+
},
|
|
52
62
|
getCouponsCouponNoTargets: function (request) {
|
|
53
63
|
var couponNo = request.pathVariable.couponNo, queryString = request.queryString;
|
|
54
64
|
return httpRequest({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/promotion/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/promotion/index.ts"],"names":[],"mappings":"AAmBA,IAAM,SAAS,GAAG,UAAC,WAAqB,IAAK,OAAA,CAAC;IAC5C;;OAEG;IACH,UAAU,EAAV,UACE,OAA0B;QAElB,IAAA,WAAW,GAAK,OAAO,YAAZ,CAAa;QAEhC,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,UAAU;YACf,WAAW,aAAA;YACX,cAAc,EAAE,IAAI;YACpB,GAAG,EAAE,YAAY;SAClB,CAAC,CAAC;IACL,CAAC;IACD,kBAAkB,EAAlB,UAAmB,OAAY;QAC7B,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mBAAmB;YACxB,GAAG,EAAE,oBAAoB;YACzB,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;IACD,iBAAiB,EAAjB,UACE,OAAiC;QAEzB,IAAA,WAAW,GAAK,OAAO,YAAZ,CAAa;QAEhC,OAAO,W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ACpB,GAAG,EAAE,2BAA2B;SACjC,CAAC,CAAC;IACL,CAAC;IACD,gCAAgC,EAAhC,UAAiC,OAAY;QAEzB,IAAA,OAAO,GACrB,OAAO,qBADc,CACb;QAEZ,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,0BAAmB,OAAO,cAAW;YAC1C,GAAG,EAAE,kCAAkC;YACvC,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;IACD,oCAAoC,EAApC,UACE,OAAoD;QAGlC,IAAA,SAAS,GAEvB,OAAO,uBAFgB,EACzB,WAAW,GACT,OAAO,YADE,CACD;QAEZ,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,4BAAqB,SAAS,cAAW;YAC9C,WAAW,aAAA;YACX,GAAG,EAAE,sCAAsC;YAC3C,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;IACD,0CAA0C,EAA1C,UACE,OAA0D;QAGxC,IAAA,SAAS,GAEvB,OAAO,uBAFgB,EACzB,WAAW,GACT,OAAO,YADE,CACD;QAEZ,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,4BAAqB,SAAS,sBAAmB;YACtD,WAAW,aAAA;YACX,GAAG,EAAE,4CAA4C;YACjD,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;CACF,CAAC,EAxI2C,CAwI3C,CAAC;AAEH,eAAe,SAAS,CAAC;AAEzB,cAAc,QAAQ,CAAC"}
|
package/build/src/index.d.ts
CHANGED
|
@@ -276,6 +276,7 @@ export declare const create: ({ baseURL, headerOption, customHttpRequest, versio
|
|
|
276
276
|
getCouponsSummary(request: import("../types").GetCouponsSummaryRequest): Promise<import("../types/http").ResponseData<import("../types").GetCouponsSummaryResponse>>;
|
|
277
277
|
postCouponsRegisterCodePromotionCode(request: import("../types").PostCouponsRegisterCodePromotionCodeRequest): Promise<import("../types/http").ResponseData<import("../types").PostCouponsRegisterCodePromotionCodeResponse>>;
|
|
278
278
|
postCouponsCouponNoDownload(request: import("../types").PostCouponsCouponNoDownloadRequest): Promise<import("../types/http").ResponseData<import("../types").PostCouponsCouponNoDownloadResponse>>;
|
|
279
|
+
getCouponsCouponNoExcludeTargets(request: import("../types").GetCouponsCouponNoExcludeTargetsRequest): Promise<import("../types/http").ResponseData<import("../types").GetCouponsCouponNoExcludeTargetsResponse>>;
|
|
279
280
|
getCouponsCouponNoTargets(request: import("../types").GetCouponsCouponNoTargetsRequest): Promise<import("../types/http").ResponseData<import("../types").GetCouponsCouponNoTargetsResponse>>;
|
|
280
281
|
postCouponsEventsEventNoDownload(request: any): Promise<import("../types/http").ResponseData<any>>;
|
|
281
282
|
postCouponsProductsProductNoDownload(request: import("../types").PostCouponsProductsProductNoDownloadRequest): Promise<import("../types/http").ResponseData<import("../types").PostCouponsProductsProductNoDownloadResponse>>;
|
|
@@ -201,6 +201,19 @@ export interface GetCouponsCouponNoTargetsResponse {
|
|
|
201
201
|
totalCount: number;
|
|
202
202
|
items: CouponTargetsItem[];
|
|
203
203
|
}
|
|
204
|
+
export interface GetCouponsCouponNoExcludeTargetsRequest {
|
|
205
|
+
pathVariable: {
|
|
206
|
+
couponNo: number;
|
|
207
|
+
};
|
|
208
|
+
queryString: {
|
|
209
|
+
pageNumber: number;
|
|
210
|
+
pageSize: number;
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
export interface GetCouponsCouponNoExcludeTargetsResponse {
|
|
214
|
+
totalCount: number;
|
|
215
|
+
items: CouponTargetsItem[];
|
|
216
|
+
}
|
|
204
217
|
export interface CouponTargetsItem {
|
|
205
218
|
targetName: string;
|
|
206
219
|
targetType: PromotionCouponTargetType;
|