@shopby/shop-sdk 1.78.65 → 1.78.67
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.
|
@@ -3,7 +3,7 @@ import { ProductFreeGiftCondition, ProductStickerInfo } from './core/index';
|
|
|
3
3
|
import { ShippingAreaType, DeliveryConditionType, PayType } from './../order/unions';
|
|
4
4
|
import { BrandNameType, ProductSalePeriodType, ProductType, SaleStatus } from './core/unions/index';
|
|
5
5
|
import { OptionalAccessTokenRequest, RequestConfig } from '../../http';
|
|
6
|
-
import { OptionSelectType, OptionType } from './option/unions';
|
|
6
|
+
import { OptionInputMatchingType, OptionSelectType, OptionType } from './option/unions';
|
|
7
7
|
import { ProductFlatOption, ProductMultiLevelOption, ProductOptionInput } from './option';
|
|
8
8
|
import { ProductReservation } from './reservation';
|
|
9
9
|
import { RentalInfo } from './rental';
|
|
@@ -347,22 +347,48 @@ export interface Price {
|
|
|
347
347
|
couponDiscountInfo: CouponDiscountInfo;
|
|
348
348
|
additionalDiscountInfo: AdditionalDiscountInfo;
|
|
349
349
|
}
|
|
350
|
-
export interface
|
|
350
|
+
export interface ExtraProductFlatOption {
|
|
351
|
+
isRequiredOption: boolean;
|
|
351
352
|
optionNo: number;
|
|
352
353
|
optionName: string;
|
|
353
354
|
optionValue: string;
|
|
354
355
|
addPrice: number;
|
|
355
356
|
stockCnt: number;
|
|
356
357
|
}
|
|
358
|
+
export interface ExtraProductMultiLevelOptionBase {
|
|
359
|
+
label: string;
|
|
360
|
+
value: string;
|
|
361
|
+
isRequiredOption: boolean;
|
|
362
|
+
}
|
|
363
|
+
export interface ExtraProductMultiLevelOption extends ExtraProductMultiLevelOptionBase {
|
|
364
|
+
children: ExtraProductMultiLevelOption[] | null;
|
|
365
|
+
}
|
|
366
|
+
export interface ExtraProductInput {
|
|
367
|
+
inputMatchingType: OptionInputMatchingType;
|
|
368
|
+
inputLabel: string;
|
|
369
|
+
required: boolean;
|
|
370
|
+
inputNo: number;
|
|
371
|
+
}
|
|
372
|
+
export interface OptionInfo {
|
|
373
|
+
optionType: OptionType;
|
|
374
|
+
optionSelectType: OptionSelectType;
|
|
375
|
+
flatOptions: ExtraProductFlatOption[];
|
|
376
|
+
multiOptions: ExtraProductMultiLevelOption[];
|
|
377
|
+
inputs: ExtraProductInput[];
|
|
378
|
+
}
|
|
357
379
|
export interface ExtraProduct {
|
|
358
380
|
productNo: number;
|
|
381
|
+
productName: string;
|
|
359
382
|
price: Price;
|
|
360
383
|
paymentMeans: PayType[];
|
|
361
384
|
imageUrl: string;
|
|
362
385
|
minorPurchaseYn: Yn;
|
|
363
|
-
|
|
386
|
+
optionInfo: OptionInfo;
|
|
364
387
|
}
|
|
365
|
-
export declare type GetProductsProductNoExtraProductResponse =
|
|
388
|
+
export declare type GetProductsProductNoExtraProductResponse = {
|
|
389
|
+
extraProductTitle: string;
|
|
390
|
+
extraProducts: Array<ExtraProduct>;
|
|
391
|
+
};
|
|
366
392
|
export declare type StickerType = 'IMAGE' | 'TEXT';
|
|
367
393
|
export declare type Sticker = {
|
|
368
394
|
type: StickerType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/product/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/domain/product/index.ts"],"names":[],"mappings":"AAmDA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
|