@shopby/shop-sdk 1.27.24 → 1.27.26

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.27.26](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.27.25...v1.27.26) (2022-11-29)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * myz meno api modify ([3b58f28](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/3b58f282517fa51795ff9bbc4ff8c64ca735b2d0))
11
+
12
+ ### [1.27.25](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.27.24...v1.27.25) (2022-11-24)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * myz meno api modify ([f26425d](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/f26425d85f3b40eba89bcd2b7f128e6e5f88c4fc))
18
+
5
19
  ### [1.27.24](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.27.23...v1.27.24) (2022-11-16)
6
20
 
7
21
  ### [1.27.23](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.27.22...v1.27.23) (2022-11-16)
@@ -1,12 +1,13 @@
1
1
  import { ResponseData } from '../../../types/http';
2
+ import { GetCouponsRequest, GetCouponsResponse, PostCouponsRegisterCodePromotionCodeRequest, PostCouponsRegisterCodePromotionCodeResponse } from "../../../types/domain/promotion";
2
3
  declare const promotion: (httpRequest: Function) => {
3
4
  /**
4
5
  * Coupon
5
6
  */
6
- getCoupons(request: any): Promise<ResponseData<any>>;
7
+ getCoupons(request: GetCouponsRequest): Promise<ResponseData<GetCouponsResponse>>;
7
8
  getCouponsIssuable(request: any): Promise<ResponseData<any>>;
8
9
  getCouponsSummary(request: any): Promise<ResponseData<any>>;
9
- postCouponsRegisterCodePromotionCode(request: any): Promise<ResponseData<void>>;
10
+ postCouponsRegisterCodePromotionCode(request: PostCouponsRegisterCodePromotionCodeRequest): Promise<ResponseData<PostCouponsRegisterCodePromotionCodeResponse>>;
10
11
  postCouponsCouponNoDownload(request: any): Promise<ResponseData<any>>;
11
12
  postCouponsEventsEventNoDownload(request: any): Promise<ResponseData<any>>;
12
13
  postCouponsProductsProductNoDownload(request: any): Promise<ResponseData<any>>;
@@ -8,6 +8,7 @@ var promotion = function (httpRequest) { return ({
8
8
  method: 'GET',
9
9
  url: '/coupons',
10
10
  queryString: queryString,
11
+ useAccessToken: true,
11
12
  });
12
13
  },
13
14
  getCouponsIssuable: function (request) {
@@ -25,11 +26,11 @@ var promotion = function (httpRequest) { return ({
25
26
  });
26
27
  },
27
28
  postCouponsRegisterCodePromotionCode: function (request) {
28
- var promotionCode = request.pathVariable.promotionCode, requestBody = request.requestBody;
29
+ var promotionCode = request.pathVariable.promotionCode;
29
30
  return httpRequest({
30
31
  method: 'POST',
31
32
  url: "/coupons/register-code/".concat(promotionCode),
32
- requestBody: requestBody,
33
+ useAccessToken: true,
33
34
  });
34
35
  },
35
36
  postCouponsCouponNoDownload: function (request) {
@@ -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,UAAW,OAAY;QACd,IAAA,WAAW,GAAI,OAAO,YAAX,CAAY;QAE9B,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,UAAU;YACf,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IACD,kBAAkB,EAAlB,UAAmB,OAAY;QAC7B,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mBAAmB;SACzB,CAAC,CAAC;IACL,CAAC;IACD,iBAAi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mB;YACtD,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;CACF,CAAC,EA1F2C,CA0F3C,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/promotion/index.ts"],"names":[],"mappings":"AAQA,IAAM,SAAS,GAAG,UAAC,WAAqB,IAAK,OAAA,CAAC;IAC5C;;OAEG;IACH,UAAU,EAAV,UAAW,OAA0B;QAC5B,IAAA,WAAW,GAAI,OAAO,YAAX,CAAY;QAE9B,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,UAAU;YACf,WAAW,aAAA;YACX,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;IACD,kBAAkB,EAAlB,UAAmB,OAAY;QAC7B,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mBAAmB;SACzB,CAAC,CAAC;IACL,CAAC;IACD,iBAAiB,EAAjB,UAAkB,OAAY;QACrB,IAAA,WAAW,GAAI,OAAO,YAAX,CAAY;QAE9B,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,kBAAkB;YACvB,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IACD,oCAAoC,EAApC,UACE,OAAoD;QAGnC,IAAA,aAAa,GAC1B,OAAO,2BADmB,CAClB;QAEZ,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,iCAA0B,aAAa,CAAE;YAC9C,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;IACD,2BAA2B,EAA3B,UAA4B,OAAY;QAErB,IAAA,QAAQ,GAErB,OAAO,sBAFc,EACvB,WAAW,GACT,OAAO,YADE,CACD;QAEZ,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,mBAAY,QAAQ,cAAW;YACpC,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IACD,gCAAgC,EAAhC,UAAiC,OAAY;QAE1B,IAAA,OAAO,GACpB,OAAO,qBADa,CACZ;QAEZ,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,0BAAmB,OAAO,cAAW;SAC3C,CAAC,CAAC;IACL,CAAC;IACD,oCAAoC,EAApC,UACE,OAAY;QAGK,IAAA,SAAS,GACtB,OAAO,uBADe,CACd;QAEZ,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,4BAAqB,SAAS,cAAW;SAC/C,CAAC,CAAC;IACL,CAAC;IACD,0CAA0C,EAA1C,UACE,OAAY;QAGK,IAAA,SAAS,GAEtB,OAAO,uBAFe,EACxB,WAAW,GACT,OAAO,YADE,CACD;QAEZ,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,4BAAqB,SAAS,sBAAmB;YACtD,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;CACF,CAAC,EA1F2C,CA0F3C,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -266,10 +266,10 @@ export declare const create: ({ baseURL, headerOption, customHttpRequest, versio
266
266
  getShopbyProductsProductNoUrlShortening(request: any): Promise<import("../types/http").ResponseData<any>>;
267
267
  };
268
268
  promotion: {
269
- getCoupons(request: any): Promise<import("../types/http").ResponseData<any>>;
269
+ getCoupons(request: import("../types/domain/promotion").GetCouponsRequest): Promise<import("../types/http").ResponseData<import("../types/domain/promotion").GetCouponsResponse>>;
270
270
  getCouponsIssuable(request: any): Promise<import("../types/http").ResponseData<any>>;
271
271
  getCouponsSummary(request: any): Promise<import("../types/http").ResponseData<any>>;
272
- postCouponsRegisterCodePromotionCode(request: any): Promise<import("../types/http").ResponseData<void>>;
272
+ postCouponsRegisterCodePromotionCode(request: import("../types/domain/promotion").PostCouponsRegisterCodePromotionCodeRequest): Promise<import("../types/http").ResponseData<import("../types/domain/promotion").PostCouponsRegisterCodePromotionCodeResponse>>;
273
273
  postCouponsCouponNoDownload(request: any): Promise<import("../types/http").ResponseData<any>>;
274
274
  postCouponsEventsEventNoDownload(request: any): Promise<import("../types/http").ResponseData<any>>;
275
275
  postCouponsProductsProductNoDownload(request: any): Promise<import("../types/http").ResponseData<any>>;
@@ -14,4 +14,5 @@ export interface SpaceMappingResult {
14
14
  spaceName?: string;
15
15
  isMapping: boolean;
16
16
  productNo: number;
17
+ description?: string;
17
18
  }
@@ -0,0 +1,57 @@
1
+ import { OptionalAccessTokenRequest } from "../../http";
2
+ import { PayType } from "../order";
3
+ export interface GetCouponsRequest extends OptionalAccessTokenRequest {
4
+ queryString: {
5
+ desc?: string;
6
+ endYmd?: string;
7
+ pageNumber?: string;
8
+ pageSize?: string;
9
+ startYmd: string;
10
+ usable: string;
11
+ };
12
+ }
13
+ export interface GetCouponsResponse {
14
+ totalCount: number;
15
+ items: CouponItems[];
16
+ }
17
+ export interface CouponItems {
18
+ reason: string;
19
+ discountRate: number;
20
+ discountAmt: number;
21
+ couponName: string;
22
+ couponIssueNo: number;
23
+ minSalePrice: number;
24
+ freeDelivery: boolean;
25
+ maxDiscountAmt: number;
26
+ used: boolean;
27
+ useEndYmdt: string;
28
+ cartCouponUsable: boolean;
29
+ couponType: string;
30
+ productCouponUsable: boolean;
31
+ issueYmdt: string;
32
+ fixedAmt: boolean;
33
+ limitPayTypes: PayType[];
34
+ limitPayType: PayType;
35
+ useYmdt: string;
36
+ couponNo: number;
37
+ couponTargetType: string;
38
+ skipsAccumulation: boolean;
39
+ otherCouponUsable: boolean;
40
+ usablePlatforms: string;
41
+ minDeliveryAmt: number;
42
+ maxSalePrice: number;
43
+ fiexdAmt: boolean;
44
+ memberGradeNames: string;
45
+ memberGroupNames: string;
46
+ }
47
+ export interface PostCouponsRegisterCodePromotionCodeRequest extends OptionalAccessTokenRequest {
48
+ pathVariable: {
49
+ promotionCode: string;
50
+ };
51
+ }
52
+ export interface PostCouponsRegisterCodePromotionCodeResponse {
53
+ couponName: string;
54
+ couponIssueNo: number;
55
+ couponNo: number;
56
+ useEndYmdt: string;
57
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/promotion/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopby/shop-sdk",
3
- "version": "1.27.24",
3
+ "version": "1.27.26",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/types/index.d.ts",