@shopby/shop-sdk 1.40.2 → 1.40.4

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.40.4](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.40.3...v1.40.4) (2023-02-11)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * terms, termsHistory 응답값 api 스펙에 맞게 수정 ([b8b7694](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/b8b76948978cc7cd8847923698fe94e856588d6a))
11
+
12
+ ### [1.40.3](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.40.2...v1.40.3) (2023-02-11)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * terms history 유니온 타입 추가 ([2df19e7](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/2df19e75b98206083ba85486979ebcdba5dfdfa2))
18
+
5
19
  ### [1.40.2](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.40.1...v1.40.2) (2023-02-11)
6
20
 
7
21
 
@@ -20,3 +20,10 @@ export declare const TERMS_TYPE: {
20
20
  readonly PI_LIQUOR_PURCHASE_PROVISION: "주류구매 개인정보 제공 동의";
21
21
  readonly PI_RESTOCK_NOTICE: "상품 재입고 알림 동의";
22
22
  };
23
+ export declare const TERMS_HISTORY_TYPE: {
24
+ readonly USE: "이용약관";
25
+ readonly E_COMMERCE: "전자금융거래 이용약관";
26
+ readonly PI_PROCESS: "개인정보처리방침";
27
+ readonly REGULAR_PAYMENT_USE: "정기결제(배송) 이용약관";
28
+ readonly AUTO_APPROVAL_USE: "자동 승인 이용약관";
29
+ };
@@ -20,4 +20,11 @@ export var TERMS_TYPE = {
20
20
  PI_LIQUOR_PURCHASE_PROVISION: '주류구매 개인정보 제공 동의',
21
21
  PI_RESTOCK_NOTICE: '상품 재입고 알림 동의'
22
22
  };
23
+ export var TERMS_HISTORY_TYPE = {
24
+ USE: '이용약관',
25
+ E_COMMERCE: '전자금융거래 이용약관',
26
+ PI_PROCESS: '개인정보처리방침',
27
+ REGULAR_PAYMENT_USE: '정기결제(배송) 이용약관',
28
+ AUTO_APPROVAL_USE: '자동 승인 이용약관'
29
+ };
23
30
  //# sourceMappingURL=terms.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"terms.js","sourceRoot":"","sources":["../../../../../src/domain/manage/maps/terms.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,UAAU,GAAG;IACxB,iBAAiB,EAAE,WAAW;IAC9B,GAAG,EAAE,MAAM;IACX,UAAU,EAAE,aAAa;IACzB,UAAU,EAAE,UAAU;IACtB,8BAA8B,EAAE,sBAAsB;IACtD,8BAA8B,EAAE,sBAAsB;IACtD,sBAAsB,EAAE,YAAY;IACpC,wBAAwB,EAAE,aAAa;IACvC,0CAA0C,EAAE,4BAA4B;IACxE,YAAY,EAAE,MAAM;IACpB,gBAAgB,EAAE,MAAM;IACxB,mBAAmB,EAAE,aAAa;IAClC,8BAA8B,EAAE,mBAAmB;IACnD,gBAAgB,EAAE,SAAS;IAC3B,iCAAiC,EAAE,YAAY;IAC/C,cAAc,EAAE,cAAc;IAC9B,mBAAmB,EAAE,eAAe;IACpC,iBAAiB,EAAE,YAAY;IAC/B,4BAA4B,EAAE,iBAAiB;IAC/C,iBAAiB,EAAE,cAAc;CACzB,CAAC"}
1
+ {"version":3,"file":"terms.js","sourceRoot":"","sources":["../../../../../src/domain/manage/maps/terms.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,UAAU,GAAG;IACxB,iBAAiB,EAAE,WAAW;IAC9B,GAAG,EAAE,MAAM;IACX,UAAU,EAAE,aAAa;IACzB,UAAU,EAAE,UAAU;IACtB,8BAA8B,EAAE,sBAAsB;IACtD,8BAA8B,EAAE,sBAAsB;IACtD,sBAAsB,EAAE,YAAY;IACpC,wBAAwB,EAAE,aAAa;IACvC,0CAA0C,EAAE,4BAA4B;IACxE,YAAY,EAAE,MAAM;IACpB,gBAAgB,EAAE,MAAM;IACxB,mBAAmB,EAAE,aAAa;IAClC,8BAA8B,EAAE,mBAAmB;IACnD,gBAAgB,EAAE,SAAS;IAC3B,iCAAiC,EAAE,YAAY;IAC/C,cAAc,EAAE,cAAc;IAC9B,mBAAmB,EAAE,eAAe;IACpC,iBAAiB,EAAE,YAAY;IAC/B,4BAA4B,EAAE,iBAAiB;IAC/C,iBAAiB,EAAE,cAAc;CACzB,CAAC;AAEX,MAAM,CAAC,IAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,MAAM;IACX,UAAU,EAAE,aAAa;IACzB,UAAU,EAAE,UAAU;IACtB,mBAAmB,EAAE,eAAe;IACpC,iBAAiB,EAAE,YAAY;CACvB,CAAC"}
@@ -3,7 +3,7 @@ import { InquiryStatus, PageType, InquirySearchType } from '../../common/unions'
3
3
  import { DateYmd, DateYmdt } from '../../common';
4
4
  import { AccumulationReasonType, ProfileAccumulationsItems } from './accumulation';
5
5
  import { OptionalAccessTokenRequest } from '../../http';
6
- import { ManageSearchType, DirectionType, RegisterType, ModifierType } from './unions';
6
+ import { ManageSearchType, DirectionType, RegisterType, ModifierType, TermsType } from './unions';
7
7
  export * from './unions';
8
8
  export * from './accumulation';
9
9
  export interface PostBoardsBoardNoArticlesRequest {
@@ -443,9 +443,9 @@ export interface GetTermsRequest extends RequestConfig {
443
443
  termsTypes: string;
444
444
  };
445
445
  }
446
- export interface GetTermsResponse {
447
- [key: string]: TermsKey;
448
- }
446
+ export declare type GetTermsResponse = {
447
+ [key in TermsType]: TermsKey;
448
+ };
449
449
  export interface TermsKey {
450
450
  contents: string;
451
451
  enforcementDate: string;
@@ -453,15 +453,15 @@ export interface TermsKey {
453
453
  }
454
454
  export interface PostTermsRequest extends RequestConfig {
455
455
  requestBody: {
456
- termsTypes: string | string[];
456
+ termsTypes: TermsType | Array<TermsType>;
457
457
  replacementPhrase?: {
458
458
  [key: string]: string;
459
459
  };
460
460
  };
461
461
  }
462
- export interface PostTermsResponse {
463
- [key: string]: TermsKey;
464
- }
462
+ export declare type PostTermsResponse = {
463
+ [key in TermsType]: TermsKey;
464
+ };
465
465
  export interface GetTermsTermsNoRequest {
466
466
  pathVariable: {
467
467
  termsNo: string;
@@ -478,7 +478,9 @@ export interface GetTermsHistoryRequest extends RequestConfig {
478
478
  futureDaysToShow?: string;
479
479
  };
480
480
  }
481
- export interface GetTermsHistoryResponse {
481
+ export interface TermsHistory {
482
482
  termsNo: number;
483
483
  enforcementDate: string;
484
+ termsEnforcementStatusLabel: string;
484
485
  }
486
+ export declare type GetTermsHistoryResponse = Array<TermsHistory>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/manage/index.ts"],"names":[],"mappings":"AAmBA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/manage/index.ts"],"names":[],"mappings":"AAoBA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
@@ -1,6 +1,7 @@
1
- import { REGISTER_TYPE_MAP, MANAGE_SEARCH_TYPE_MAP, DIRECTION_MAP, TERMS_TYPE } from '../../../src';
1
+ import { REGISTER_TYPE_MAP, MANAGE_SEARCH_TYPE_MAP, DIRECTION_MAP, TERMS_TYPE, TERMS_HISTORY_TYPE } from '../../../src';
2
2
  export declare type RegisterType = keyof typeof REGISTER_TYPE_MAP;
3
3
  export declare type ModifierType = keyof typeof REGISTER_TYPE_MAP;
4
4
  export declare type ManageSearchType = keyof typeof MANAGE_SEARCH_TYPE_MAP;
5
5
  export declare type DirectionType = keyof typeof DIRECTION_MAP;
6
6
  export declare type TermsType = keyof typeof TERMS_TYPE;
7
+ export declare type TermsHistoryType = keyof typeof TERMS_HISTORY_TYPE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopby/shop-sdk",
3
- "version": "1.40.2",
3
+ "version": "1.40.4",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/types/index.d.ts",