@shopby/shop-sdk 1.40.3 → 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,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.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
+
5
12
  ### [1.40.3](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.40.2...v1.40.3) (2023-02-11)
6
13
 
7
14
 
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopby/shop-sdk",
3
- "version": "1.40.3",
3
+ "version": "1.40.4",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/types/index.d.ts",