@shopby/shop-sdk 1.57.6 → 1.58.1

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.58.1](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.58.0...v1.58.1) (2023-04-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * build error ([b752404](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/b75240464395d2750c0a701b82cc8091afda041a))
11
+
12
+ ## [1.58.0](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.57.6...v1.58.0) (2023-04-07)
13
+
14
+
15
+ ### Features
16
+
17
+ * 디자인 팝업 타입 정의 ([#253](https://gitlab.e-ncp.com/ncp-client/shop-sdk/issues/253)) ([0978d3c](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/0978d3cd20157a9ba7e5b7333ab62f12b99a14f2))
18
+
5
19
  ### [1.57.6](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.57.5...v1.57.6) (2023-04-07)
6
20
 
7
21
 
@@ -27,7 +27,7 @@ declare const display: (httpRequest: Function) => {
27
27
  /**
28
28
  * Design Popup
29
29
  */
30
- postDesignPopups(request: PostDesignPopupsRequest): Promise<ResponseData<PostDesignPopupsResponse>>;
30
+ postDesignPopups(request: PostDesignPopupsRequest): Promise<ResponseData<Array<PostDesignPopupsResponse>>>;
31
31
  /**
32
32
  * Event
33
33
  */
@@ -78,3 +78,20 @@ export declare const DISPLAY_OPTION_TYPE_MAP: {
78
78
  readonly NORMAL_OPTION: "일반 옵션";
79
79
  readonly ADDITIONAL_PRODUCT: "추가 옵션";
80
80
  };
81
+ export declare const SLIDE_DIRECTION_TYPE_MAP: {
82
+ readonly FIXED: "이동하지 않음";
83
+ readonly RIGHT: "오른쪽에서 왼쪽으로 이동";
84
+ readonly LEFT: "왼쪽에서 오른쪽으로 이동";
85
+ readonly UP: "아래쪽에서 위쪽으로 이동";
86
+ readonly DOWN: "위쪽에서 아래쪽으로 이동";
87
+ };
88
+ export declare const SCREEN_TYPE_MAP: {
89
+ readonly FIXED: "고정 레이어창";
90
+ readonly FIXED_TOP: "상단 고정 레이어창";
91
+ readonly LAYER: "이동 레이어창";
92
+ readonly WINDOW: "윈도우 팝업창";
93
+ };
94
+ export declare const POPUP_DESIGN_TYPE_MAP: {
95
+ readonly NORMAL: "일반 팝업";
96
+ readonly MULTI: "멀티 팝업";
97
+ };
@@ -76,6 +76,22 @@ export var SCREEN_SIZE_UNIT_TYPE_MAP = {
76
76
  };
77
77
  export var DISPLAY_OPTION_TYPE_MAP = {
78
78
  NORMAL_OPTION: '일반 옵션',
79
- ADDITIONAL_PRODUCT: '추가 옵션'
79
+ ADDITIONAL_PRODUCT: '추가 옵션',
80
+ };
81
+ export var SLIDE_DIRECTION_TYPE_MAP = {
82
+ FIXED: '이동하지 않음',
83
+ RIGHT: '오른쪽에서 왼쪽으로 이동',
84
+ LEFT: '왼쪽에서 오른쪽으로 이동',
85
+ UP: '아래쪽에서 위쪽으로 이동',
86
+ DOWN: '위쪽에서 아래쪽으로 이동',
87
+ };
88
+ export var SCREEN_TYPE_MAP = {
89
+ FIXED: '고정 레이어창',
90
+ FIXED_TOP: '상단 고정 레이어창',
91
+ LAYER: '이동 레이어창',
92
+ WINDOW: '윈도우 팝업창',
93
+ };
94
+ export var POPUP_DESIGN_TYPE_MAP = {
95
+ NORMAL: '일반 팝업', MULTI: '멀티 팝업'
80
96
  };
81
97
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/display/maps/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,wBAAwB,GAAG;IACtC,OAAO,EAAE,IAAI;IACb,QAAQ,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AAU,EAAE,KAAK;IACjB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;CACnB,CAAC;AAEF,MAAM,CAAC,IAAM,yBAAyB,GAAG;IACvC,OAAO,EAAE,GAAG;IACZ,KAAK,EAAE,OAAO;CACf,CAAC;AAEF,MAAM,CAAC,IAAM,uBAAuB,GAAG;IACrC,aAAa,EAAE,OAAO;IACtB,kBAAkB,EAAE,OAAO;CACnB,CAAC;AAEX,MAAM,CAAC,IAAM,wBAAwB,GAAG;IACtC,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE,eAAe;IACrB,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,eAAe;CACb,CAAC;AAEX,MAAM,CAAC,IAAM,eAAe,GAAG;IAC7B,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;CACT,CAAC;AAEX,MAAM,CAAC,IAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO;CACvB,CAAC"}
@@ -77,7 +77,7 @@ export declare const create: ({ baseURL, headerOption, customHttpRequest, versio
77
77
  postProductsProductNoProductReviewsReviewNoReport(request: import("../types").PostProductsProductNoProductReviewsReviewNoReport): Promise<import("../types/http").ResponseData<void>>;
78
78
  getProfileProductReviews(request: import("../types").GetProfileProductReviewsRequest): Promise<import("../types/http").ResponseData<import("../types").GetProfileProductReviewsResponse>>;
79
79
  getProfileOrderOptionsProductReviewable(request: import("../types").GetProfileOrderOptionsProductReviewableRequest): Promise<import("../types/http").ResponseData<import("../types").GetProfileOrderOptionsProductReviewableResponse>>;
80
- postDesignPopups(request: import("../types").PostDesignPopupsRequest): Promise<import("../types/http").ResponseData<import("../types").PostDesignPopupsResponse>>;
80
+ postDesignPopups(request: import("../types").PostDesignPopupsRequest): Promise<import("../types/http").ResponseData<import("../types").PostDesignPopupsResponse[]>>;
81
81
  getDisplayEvents(request: any): Promise<import("../types/http").ResponseData<any>>;
82
82
  getDisplayEventsV2(request: import("../types").GetDisplayEventsRequest): Promise<import("../types/http").ResponseData<import("../types").GetDisplayEventsResponse>>;
83
83
  getDisplayEventsSearchByNos(request: import("../types").GetDisplayEventsSearchByNosRequest): Promise<import("../types/http").ResponseData<import("../types").GetDisplayEventsSearchByNosResponse>>;
@@ -4,7 +4,7 @@ import { EventCouponType } from './../promotion/unions';
4
4
  import { BrandNameType, ProductSalePeriodType, SaleStatus } from './../product/core/unions/index';
5
5
  import { OptionalAccessTokenRequest, RequestConfig } from '../../http';
6
6
  import { OrderByType, SaleStatusType, SectionDisplayType, Yn } from '../../common/unions';
7
- import { ProductInquiryType, ProviderType, DisplayStatusType, SearchType, ReviewOrderByType, ReviewOrderDirectionType, BestReviewType, PlatformType, BoardType, BoardImageType, PhotoReviewDisplayType, InquiryBoardType, InquiryBoardImageType, SlideCountType, ScreenSizeUnitType, PopupPageType, EventUrlType, EventProgressStatus, EventOrderBy, DiscountUnitType, EventNoOrderBy, DisplayOptionType } from './unions';
7
+ import { ProductInquiryType, ProviderType, DisplayStatusType, SearchType, ReviewOrderByType, ReviewOrderDirectionType, BestReviewType, PlatformType, BoardType, BoardImageType, PhotoReviewDisplayType, InquiryBoardType, InquiryBoardImageType, SlideCountType, ScreenSizeUnitType, PopupPageType, EventUrlType, EventProgressStatus, EventOrderBy, DiscountUnitType, EventNoOrderBy, DisplayOptionType, SlideDirectionType, ScreenType, PopupDesignType } from "./unions";
8
8
  import { Space, SpaceMappingResult } from './space';
9
9
  import { DateYmdt, Nullable } from 'types/common';
10
10
  import { ClaimStatusType, DefaultOrderStatusType, OrderOptionType } from 'types';
@@ -1461,35 +1461,37 @@ interface SlideImage {
1461
1461
  mainImageUrl: string;
1462
1462
  thumbImageUrl: string;
1463
1463
  }
1464
+ export interface DesignPopupSlideInformation {
1465
+ slideSpeed: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
1466
+ slideMinWidth: number;
1467
+ slideMaxWidth: number;
1468
+ resizable: boolean;
1469
+ slideMinHeight: number;
1470
+ slideDirection: SlideDirectionType;
1471
+ slideImages: Array<SlideImage>;
1472
+ slideCount: SlideCountType;
1473
+ slideMaxHeight: number;
1474
+ }
1475
+ export interface DesignPopupDetailInformation {
1476
+ screenWidthUnit: ScreenSizeUnitType;
1477
+ screenWidth: number;
1478
+ bgColor: string;
1479
+ resizable: boolean;
1480
+ screenTopPosition: number;
1481
+ screenHeight: number;
1482
+ screenType: ScreenType;
1483
+ screenLeftPosition: number;
1484
+ screenHeightUnit: ScreenSizeUnitType;
1485
+ }
1464
1486
  export interface PostDesignPopupsResponse {
1465
- popupSlideInfo: {
1466
- slideSpeed: Array<string>;
1467
- slideMinWidth: number;
1468
- slideMaxWidth: number;
1469
- resizable: boolean;
1470
- slideMinHeight: number;
1471
- slideDirection: 'FIXED' | 'RIGHT' | 'LEFT' | 'UP' | 'DOWN';
1472
- slideImages: Array<SlideImage>;
1473
- slideCount: SlideCountType;
1474
- slideMaxHeight: number;
1475
- };
1476
- detailInfo: {
1477
- screenWidthUnit: ScreenSizeUnitType;
1478
- screenWidth: number;
1479
- bgColor: string;
1480
- resizable: boolean;
1481
- screenTopPosition: number;
1482
- screenHeight: number;
1483
- screenType: 'FIXED' | 'FIXED_TOP' | 'LAYER' | 'WINDOW';
1484
- screenLeftPosition: number;
1485
- screenHeightUnit: ScreenSizeUnitType;
1486
- };
1487
+ popupSlideInfo: DesignPopupSlideInformation;
1488
+ detailInfo: DesignPopupDetailInformation;
1487
1489
  popupNo: number;
1488
1490
  title: string;
1489
1491
  mallNo: number;
1490
1492
  content: string;
1491
1493
  visibleToday: boolean;
1492
- popupDesignType: 'NORMAL' | 'MULTI';
1494
+ popupDesignType: PopupDesignType;
1493
1495
  }
1494
1496
  export interface GetDisplayPopupsRequest {
1495
1497
  queryString: {
@@ -1,4 +1,4 @@
1
- import { PRODUCT_INQUIRY_TYPE_MAP, PROVIDER_TYPE_MAP, DISPLAY_STATUS_TYPE_MAP, SEARCH_TYPE_MAP, BEST_REVIEW_MAP, REVIEW_ORDER_DIRECTION_MAP, REVIEW_ORDER_BY_MAP, PLATFORM_TYPE_MAP, BOARD_TYPE_MAP, BOARD_IMAGE_TYPE_MAP, PHOTO_REVIEW_DISPLAY_TYPE_MAP, INQUIRY_BOARD_TYPE_MAP, INQUIRY_BOARD_IMAGE_TYPE_MAP, SLIDECOUNT_TYPE_MAP, SCREEN_SIZE_UNIT_TYPE_MAP, DISPLAY_OPTION_TYPE_MAP } from "../../../src";
1
+ import { PRODUCT_INQUIRY_TYPE_MAP, PROVIDER_TYPE_MAP, DISPLAY_STATUS_TYPE_MAP, SEARCH_TYPE_MAP, BEST_REVIEW_MAP, REVIEW_ORDER_DIRECTION_MAP, REVIEW_ORDER_BY_MAP, PLATFORM_TYPE_MAP, BOARD_TYPE_MAP, BOARD_IMAGE_TYPE_MAP, PHOTO_REVIEW_DISPLAY_TYPE_MAP, INQUIRY_BOARD_TYPE_MAP, INQUIRY_BOARD_IMAGE_TYPE_MAP, SLIDECOUNT_TYPE_MAP, SCREEN_SIZE_UNIT_TYPE_MAP, DISPLAY_OPTION_TYPE_MAP, SLIDE_DIRECTION_TYPE_MAP, SCREEN_TYPE_MAP, POPUP_DESIGN_TYPE_MAP } from "../../../src";
2
2
  export declare type ProductInquiryType = keyof typeof PRODUCT_INQUIRY_TYPE_MAP;
3
3
  export declare type ProviderType = keyof typeof PROVIDER_TYPE_MAP;
4
4
  export declare type DisplayStatusType = keyof typeof DISPLAY_STATUS_TYPE_MAP;
@@ -15,6 +15,9 @@ export declare type InquiryBoardImageType = keyof typeof INQUIRY_BOARD_IMAGE_TYP
15
15
  export declare type SlideCountType = keyof typeof SLIDECOUNT_TYPE_MAP;
16
16
  export declare type ScreenSizeUnitType = keyof typeof SCREEN_SIZE_UNIT_TYPE_MAP;
17
17
  export declare type DisplayOptionType = keyof typeof DISPLAY_OPTION_TYPE_MAP;
18
+ export declare type SlideDirectionType = keyof typeof SLIDE_DIRECTION_TYPE_MAP;
19
+ export declare type ScreenType = keyof typeof SCREEN_TYPE_MAP;
20
+ export declare type PopupDesignType = keyof typeof POPUP_DESIGN_TYPE_MAP;
18
21
  export declare type PopupPageType = 'MAIN' | 'CATEGORY' | 'EVENT' | 'PRODUCT';
19
22
  export declare type DiscountUnitType = 'WON' | 'RATE';
20
23
  export declare type EventUrlType = 'EVENT_NUMBER' | 'DIRECT';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopby/shop-sdk",
3
- "version": "1.57.6",
3
+ "version": "1.58.1",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/types/index.d.ts",