@shopby/shop-sdk 1.56.13 → 1.56.15

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 CHANGED
@@ -2,6 +2,20 @@
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.15](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.56.14...v1.56.15) (2023-03-30)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * domain/promotion 쿠폰번호 대상 조회 추가 ([fa7d4ef](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/fa7d4ef9b3a2a15b7bc79b49c2116f395f25864e))
11
+
12
+ ### [1.56.14](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.56.13...v1.56.14) (2023-03-30)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 쿠폰조회 response 타입 수정 ([9c19ebc](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/9c19ebc93e0b66e802e12d9d0df367b7210e5e35))
18
+
5
19
  ### [1.56.13](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.56.12...v1.56.13) (2023-03-30)
6
20
 
7
21
 
@@ -1,5 +1,5 @@
1
1
  import { ResponseData } from '../../../types/http';
2
- import { GetCouponsIssuableResponse, GetCouponsProductsProductNoIssuableCouponsRequest, GetCouponsProductsProductNoIssuableCouponsResponse, GetCouponsRequest, GetCouponsResponse, GetCouponsSummaryRequest, GetCouponsSummaryResponse, PostCouponsCouponNoDownloadRequest, PostCouponsCouponNoDownloadResponse, PostCouponsProductsProductNoDownloadRequest, PostCouponsProductsProductNoDownloadResponse, PostCouponsRegisterCodePromotionCodeRequest, PostCouponsRegisterCodePromotionCodeResponse } from "../../../types/domain/promotion";
2
+ import { 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
+ getCouponsCouponNoTargets(request: GetCouponsCouponNoTargetsRequest): Promise<ResponseData<GetCouponsCouponNoTargetsResponse>>;
12
13
  postCouponsEventsEventNoDownload(request: any): Promise<ResponseData<any>>;
13
14
  postCouponsProductsProductNoDownload(request: PostCouponsProductsProductNoDownloadRequest): Promise<ResponseData<PostCouponsProductsProductNoDownloadResponse>>;
14
15
  getCouponsProductsProductNoIssuableCoupons(request: GetCouponsProductsProductNoIssuableCouponsRequest): Promise<ResponseData<GetCouponsProductsProductNoIssuableCouponsResponse>>;
@@ -49,6 +49,16 @@ var promotion = function (httpRequest) { return ({
49
49
  useAccessToken: true,
50
50
  });
51
51
  },
52
+ getCouponsCouponNoTargets: function (request) {
53
+ var couponNo = request.pathVariable.couponNo, queryString = request.queryString;
54
+ return httpRequest({
55
+ method: 'GET',
56
+ url: "/coupons/".concat(couponNo, "/targets"),
57
+ queryString: queryString,
58
+ useAccessToken: true,
59
+ key: 'getCouponsCouponNoTargets',
60
+ });
61
+ },
52
62
  postCouponsEventsEventNoDownload: function (request) {
53
63
  var eventNo = request.pathVariable.eventNo;
54
64
  return httpRequest({
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/promotion/index.ts"],"names":[],"mappings":"AAeA,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,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,kBAAkB;YACvB,WAAW,aAAA;YACX,GAAG,EAAE,mBAAmB;YACxB,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;IACD,oCAAoC,EAApC,UACE,OAAoD;QAGlC,IAAA,aAAa,GAC3B,OAAO,2BADoB,CACnB;QAEZ,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,iCAA0B,aAAa,CAAE;YAC9C,cAAc,EAAE,IAAI;YACpB,GAAG,EAAE,sCAAsC;SAC5C,CAAC,CAAC;IACL,CAAC;IACD,2BAA2B,EAA3B,UAA4B,OAA2C;QAEnD,IAAA,QAAQ,GAEtB,OAAO,sBAFe,EACxB,WAAW,GACT,OAAO,YADE,CACD;QAEZ,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,mBAAY,QAAQ,cAAW;YACpC,WAAW,aAAA;YACX,GAAG,EAAE,6BAA6B;YAClC,cAAc,EAAE,IAAI;SACrB,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,EA9G2C,CA8G3C,CAAC;AAEH,eAAe,SAAS,CAAC;AAEzB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/promotion/index.ts"],"names":[],"mappings":"AAiBA,IAAM,S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AAC"}
@@ -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
+ getCouponsCouponNoTargets(request: import("../types").GetCouponsCouponNoTargetsRequest): Promise<import("../types/http").ResponseData<import("../types").GetCouponsCouponNoTargetsResponse>>;
279
280
  postCouponsEventsEventNoDownload(request: any): Promise<import("../types/http").ResponseData<any>>;
280
281
  postCouponsProductsProductNoDownload(request: import("../types").PostCouponsProductsProductNoDownloadRequest): Promise<import("../types/http").ResponseData<import("../types").PostCouponsProductsProductNoDownloadResponse>>;
281
282
  getCouponsProductsProductNoIssuableCoupons(request: import("../types").GetCouponsProductsProductNoIssuableCouponsRequest): Promise<import("../types/http").ResponseData<import("../types").GetCouponsProductsProductNoIssuableCouponsResponse>>;
@@ -16,9 +16,9 @@ export interface GetCouponsRequest extends OptionalAccessTokenRequest {
16
16
  }
17
17
  export interface GetCouponsResponse {
18
18
  totalCount: number;
19
- items: CouponItems[];
19
+ items: CouponItem[];
20
20
  }
21
- export interface CouponItems {
21
+ export interface CouponItem {
22
22
  reason: string;
23
23
  discountRate: number;
24
24
  discountAmt: number;
@@ -30,7 +30,7 @@ export interface CouponItems {
30
30
  used: boolean;
31
31
  useEndYmdt: string;
32
32
  cartCouponUsable: boolean;
33
- couponType: string;
33
+ couponType: PromotionCouponType;
34
34
  productCouponUsable: boolean;
35
35
  issueYmdt: string;
36
36
  fixedAmt: boolean;
@@ -38,14 +38,14 @@ export interface CouponItems {
38
38
  limitPayType: PayType;
39
39
  useYmdt: string;
40
40
  couponNo: number;
41
- couponTargetType: string;
41
+ couponTargetType: PromotionCouponTargetType;
42
42
  skipsAccumulation: boolean;
43
43
  otherCouponUsable: boolean;
44
- usablePlatforms: string;
44
+ usablePlatforms: 'PC' | 'MOBILE_WEB' | 'MOBILE_APP';
45
45
  minDeliveryAmt: number;
46
46
  maxSalePrice: number;
47
- memberGradeNames: string;
48
- memberGroupNames: string;
47
+ memberGradeNames: Array<string>;
48
+ memberGroupNames: Array<string>;
49
49
  }
50
50
  export declare type GetCouponsIssuableResponse = Array<CouponsIssuable>;
51
51
  export interface CouponsIssuable {
@@ -188,3 +188,21 @@ export interface PostCouponsProductsProductNoDownloadResponse {
188
188
  issueFailCoupons: Array<IssueFailCoupon>;
189
189
  issuedCoupons: Array<IssuedCoupon>;
190
190
  }
191
+ export interface GetCouponsCouponNoTargetsRequest extends OptionalAccessTokenRequest {
192
+ pathVariable: {
193
+ couponNo: string;
194
+ };
195
+ queryString: {
196
+ pageNumber: string;
197
+ pageSize: string;
198
+ };
199
+ }
200
+ export interface GetCouponsCouponNoTargetsResponse {
201
+ totalCount: number;
202
+ items: CouponTargetsItem[];
203
+ }
204
+ export interface CouponTargetsItem {
205
+ targetName: string;
206
+ targetType: string;
207
+ targetNo: number;
208
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopby/shop-sdk",
3
- "version": "1.56.13",
3
+ "version": "1.56.15",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/types/index.d.ts",