@shopby/shop-sdk 1.3.5 → 1.4.0
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/build/src/admin.d.ts +1 -1
- package/build/src/admin.js +4 -4
- package/build/src/admin.js.map +1 -1
- package/build/src/auth.d.ts +1 -1
- package/build/src/auth.js +20 -20
- package/build/src/auth.js.map +1 -1
- package/build/src/claim.d.ts +1 -1
- package/build/src/claim.js +27 -27
- package/build/src/claim.js.map +1 -1
- package/build/src/display.d.ts +1 -1
- package/build/src/display.js +38 -38
- package/build/src/display.js.map +1 -1
- package/build/src/index.d.ts +4 -4
- package/build/src/index.js +23 -25
- package/build/src/index.js.map +1 -1
- package/build/src/manage.d.ts +1 -1
- package/build/src/manage.js +25 -25
- package/build/src/manage.js.map +1 -1
- package/build/src/marketing.d.ts +1 -1
- package/build/src/marketing.js +2 -2
- package/build/src/marketing.js.map +1 -1
- package/build/src/member.d.ts +1 -1
- package/build/src/member.js +34 -34
- package/build/src/member.js.map +1 -1
- package/build/src/middlewares/requestMiddleware.d.ts +4 -0
- package/build/src/middlewares/requestMiddleware.js +12 -0
- package/build/src/middlewares/requestMiddleware.js.map +1 -0
- package/build/src/order.d.ts +10 -10
- package/build/src/order.js +62 -62
- package/build/src/order.js.map +1 -1
- package/build/src/product.d.ts +1 -1
- package/build/src/product.js +22 -22
- package/build/src/product.js.map +1 -1
- package/build/src/promotion.d.ts +1 -1
- package/build/src/promotion.js +9 -9
- package/build/src/promotion.js.map +1 -1
- package/build/src/storage.d.ts +1 -1
- package/build/src/storage.js +2 -2
- package/build/src/storage.js.map +1 -1
- package/build/types/admin.d.ts +0 -3
- package/build/types/enum.d.ts +7 -0
- package/build/types/map.d.ts +96 -0
- package/build/types/map.js +2 -0
- package/build/types/map.js.map +1 -0
- package/build/types/order.d.ts +161 -87
- package/build/types/root.d.ts +4 -0
- package/build/types/root.js.map +1 -1
- package/package.json +2 -2
package/build/types/order.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AddressType, CashReceiptIssuePurposeType, CountryCode, PayType, PgType, Yn } from './enum';
|
|
1
2
|
export interface CartCalculate {
|
|
2
3
|
buyAmt?: number;
|
|
3
4
|
discountAmt?: number;
|
|
@@ -508,124 +509,197 @@ export interface PaymentsNaverValidate {
|
|
|
508
509
|
export interface PaymentsNaverWishList {
|
|
509
510
|
productNo?: number;
|
|
510
511
|
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
512
|
+
/**
|
|
513
|
+
* path: /payments/reserve
|
|
514
|
+
*/
|
|
515
|
+
export interface PostPaymentsReserveRequest {
|
|
516
|
+
requestBody: {
|
|
517
|
+
clientParams?: {
|
|
518
|
+
description?: string;
|
|
519
|
+
};
|
|
520
|
+
extraData?: {
|
|
521
|
+
description?: string;
|
|
522
|
+
};
|
|
523
|
+
orderMemo?: string;
|
|
524
|
+
bankAccountToDeposit?: BankAccountToDeposit;
|
|
525
|
+
payType: PayType;
|
|
526
|
+
clientReturnUrl?: string;
|
|
527
|
+
coupons?: Coupons;
|
|
528
|
+
useDefaultAddress?: boolean;
|
|
529
|
+
member: boolean;
|
|
530
|
+
inAppYn?: Yn;
|
|
531
|
+
applyCashReceipt?: boolean;
|
|
532
|
+
orderTitle?: string;
|
|
533
|
+
tempPassword?: string;
|
|
534
|
+
saveAddressBook: boolean;
|
|
535
|
+
updateMember: boolean;
|
|
536
|
+
orderSheetNo: string;
|
|
537
|
+
pgType?: PgType;
|
|
538
|
+
remitter?: string;
|
|
539
|
+
deliveryMemo?: string;
|
|
540
|
+
orderer?: Orderer;
|
|
541
|
+
paymentAmtForVerification: number;
|
|
542
|
+
shippingAddress?: ShippingAddress;
|
|
543
|
+
savesLastPayType?: boolean;
|
|
544
|
+
subPayAmt: number;
|
|
545
|
+
cashReceipt?: CashReceipt;
|
|
546
|
+
shippingAddresses?: ShippingAddressesItem[];
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
export interface PostPaymentsReserveResponse {
|
|
550
|
+
orderSheetNo: string;
|
|
551
|
+
pgType: string;
|
|
552
|
+
extraData: {
|
|
553
|
+
description: string;
|
|
554
|
+
};
|
|
555
|
+
clientReturnUrl: string;
|
|
516
556
|
confirmUrl?: string;
|
|
517
557
|
returnUrl?: string;
|
|
518
558
|
key?: string;
|
|
519
559
|
}
|
|
520
|
-
export interface
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
bankAccountToDeposit?: PaymentsReserveBankAccountToDeposit;
|
|
525
|
-
rentalInfo?: PaymentsReserveRentalInfo;
|
|
526
|
-
payType?: string;
|
|
527
|
-
clientReturnUrl?: string;
|
|
528
|
-
coupons?: PaymentsReserveCoupons;
|
|
529
|
-
useDefaultAddress?: boolean;
|
|
530
|
-
member?: boolean;
|
|
531
|
-
inAppYn?: string;
|
|
532
|
-
applyCashReceipt?: boolean;
|
|
533
|
-
orderTitle?: string;
|
|
534
|
-
tempPassword?: string;
|
|
535
|
-
useLastPayType?: boolean;
|
|
536
|
-
saveAddressBook?: boolean;
|
|
537
|
-
updateMember?: boolean;
|
|
538
|
-
orderSheetNo?: string;
|
|
539
|
-
pgType?: string;
|
|
540
|
-
remitter?: string;
|
|
541
|
-
deliveryMemo?: string;
|
|
542
|
-
orderer?: PaymentsReserveOrderer;
|
|
543
|
-
paymentAmtForVerification?: number;
|
|
544
|
-
shippingAddress?: PaymentsReserveShippingAddress;
|
|
545
|
-
subPayAmt?: number;
|
|
546
|
-
cashReceipt?: PaymentsReserveCashReceipt;
|
|
547
|
-
shippingAddresses?: Array<PaymentsReserveShippingAddresses>;
|
|
560
|
+
export interface BankAccountToDeposit {
|
|
561
|
+
bankAccount: string;
|
|
562
|
+
bankCode: string;
|
|
563
|
+
bankDepositorName: string;
|
|
548
564
|
}
|
|
549
|
-
export interface
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
bankDepositorName?: string;
|
|
565
|
+
export interface CashReceipt {
|
|
566
|
+
cashReceiptKey: string;
|
|
567
|
+
cashReceiptIssuePurposeType: CashReceiptIssuePurposeType;
|
|
553
568
|
}
|
|
554
|
-
export interface
|
|
555
|
-
|
|
556
|
-
cashReceiptIssuePurposeType?: string;
|
|
557
|
-
}
|
|
558
|
-
export interface PaymentsReserveCoupons {
|
|
559
|
-
productCoupons?: Array<PaymentsReserveCouponsProductCoupons>;
|
|
569
|
+
export interface Coupons {
|
|
570
|
+
productCoupons?: Array<ProductCoupons>;
|
|
560
571
|
cartCouponIssueNo?: number;
|
|
561
572
|
promotionCode?: string;
|
|
562
573
|
}
|
|
563
|
-
export interface
|
|
564
|
-
couponIssueNo
|
|
574
|
+
export interface ProductCoupons {
|
|
575
|
+
couponIssueNo: number;
|
|
576
|
+
productNo: number;
|
|
565
577
|
promotionCode?: string;
|
|
566
|
-
productNo?: number;
|
|
567
578
|
}
|
|
568
|
-
export interface
|
|
579
|
+
export interface Orderer {
|
|
569
580
|
ordererEmail?: string;
|
|
570
|
-
ordererContact1
|
|
581
|
+
ordererContact1: string;
|
|
571
582
|
ordererContact2?: string;
|
|
572
|
-
ordererName
|
|
583
|
+
ordererName: string;
|
|
573
584
|
}
|
|
574
|
-
export interface
|
|
575
|
-
mallOptionNo
|
|
585
|
+
export interface PayProductParams {
|
|
586
|
+
mallOptionNo: number;
|
|
576
587
|
channelType?: string;
|
|
577
|
-
orderCnt
|
|
578
|
-
optionInputs
|
|
579
|
-
mallProductNo
|
|
588
|
+
orderCnt: number;
|
|
589
|
+
optionInputs: OptionInputs;
|
|
590
|
+
mallProductNo: number;
|
|
580
591
|
}
|
|
581
|
-
export interface
|
|
582
|
-
inputValue
|
|
583
|
-
inputLabel
|
|
584
|
-
}
|
|
585
|
-
export interface PaymentsReserveRentalInfo {
|
|
586
|
-
monthlyRentalAmount?: number;
|
|
587
|
-
rentalPeriod?: number;
|
|
592
|
+
export interface OptionInputs {
|
|
593
|
+
inputValue: string;
|
|
594
|
+
inputLabel: string;
|
|
588
595
|
}
|
|
589
|
-
export interface
|
|
590
|
-
receiverJibunAddress
|
|
596
|
+
export interface ShippingAddress {
|
|
597
|
+
receiverJibunAddress: string;
|
|
591
598
|
requestShippingDate?: string;
|
|
592
599
|
usesShippingInfoLaterInput?: boolean;
|
|
593
|
-
receiverName
|
|
600
|
+
receiverName: string;
|
|
594
601
|
customsIdNumber?: string;
|
|
595
|
-
countryCd
|
|
596
|
-
receiverZipCd
|
|
597
|
-
receiverDetailAddress
|
|
598
|
-
receiverAddress
|
|
599
|
-
addressNo
|
|
602
|
+
countryCd: CountryCode;
|
|
603
|
+
receiverZipCd: string;
|
|
604
|
+
receiverDetailAddress: string;
|
|
605
|
+
receiverAddress: string;
|
|
606
|
+
addressNo: number;
|
|
600
607
|
addressName?: string;
|
|
601
608
|
shippingInfoLaterInputContact?: string;
|
|
602
|
-
receiverContact1
|
|
603
|
-
receiverContact2?: string;
|
|
604
|
-
}
|
|
605
|
-
export interface PaymentsReserveShippingAddress1 {
|
|
606
|
-
receiverAddress?: string;
|
|
607
|
-
receiverJibunAddress?: string;
|
|
608
|
-
addressNo?: number;
|
|
609
|
-
receiverName?: string;
|
|
610
|
-
customsIdNumber?: string;
|
|
611
|
-
countryCd?: string;
|
|
612
|
-
addressName?: string;
|
|
613
|
-
receiverZipCd?: string;
|
|
614
|
-
receiverDetailAddress?: string;
|
|
615
|
-
receiverContact1?: string;
|
|
609
|
+
receiverContact1: string;
|
|
616
610
|
receiverContact2?: string;
|
|
617
611
|
}
|
|
618
|
-
export interface
|
|
619
|
-
payProductParams
|
|
612
|
+
export interface ShippingAddressesItem {
|
|
613
|
+
payProductParams: PayProductParams;
|
|
620
614
|
requestShippingDate?: string;
|
|
621
|
-
addressNo
|
|
615
|
+
addressNo: number;
|
|
622
616
|
usesShippingInfoLaterInput?: boolean;
|
|
623
617
|
useDefaultAddress?: boolean;
|
|
624
|
-
shippingAddress?:
|
|
618
|
+
shippingAddress?: ShippingAddress;
|
|
625
619
|
addressName?: string;
|
|
626
620
|
shippingInfoLaterInputContact?: string;
|
|
627
621
|
saveAddressBook?: boolean;
|
|
628
622
|
}
|
|
623
|
+
/**
|
|
624
|
+
* path: /profile/shipping-addresses
|
|
625
|
+
*/
|
|
626
|
+
export declare type GetProfileShippingAddressesResponse = Record<'recentAddresses' | 'recurringPaymentAddresses' | 'bookedAddresses' | 'defaultAddress', AddressDetail[]>;
|
|
627
|
+
export interface PostProfileShippingAddressesRequest {
|
|
628
|
+
requestBody: AddressPayload;
|
|
629
|
+
}
|
|
630
|
+
export declare type PostProfileShippingAddressesResponse = AddressDetail;
|
|
631
|
+
export interface AddressPayload {
|
|
632
|
+
receiverAddress: string;
|
|
633
|
+
receiverJibunAddress?: string;
|
|
634
|
+
defaultYn: Yn;
|
|
635
|
+
receiverName: string;
|
|
636
|
+
addressType: AddressType;
|
|
637
|
+
customsIdNumber?: string;
|
|
638
|
+
countryCd: CountryCode;
|
|
639
|
+
receiverZipCd: string;
|
|
640
|
+
addressName?: string;
|
|
641
|
+
receiverDetailAddress?: string;
|
|
642
|
+
receiverContact1: string;
|
|
643
|
+
receiverContact2?: string;
|
|
644
|
+
}
|
|
645
|
+
export interface AddressDetail {
|
|
646
|
+
lastName?: string;
|
|
647
|
+
receiverJibunAddress?: string;
|
|
648
|
+
defaultYn: Yn;
|
|
649
|
+
city?: string;
|
|
650
|
+
receiverName: string;
|
|
651
|
+
addressType: AddressType;
|
|
652
|
+
customsIdNumber?: string;
|
|
653
|
+
lastUseYmdt?: string;
|
|
654
|
+
countryCd?: CountryCode;
|
|
655
|
+
externalMemberNo?: string;
|
|
656
|
+
receiverZipCd: string;
|
|
657
|
+
receiverDetailAddress?: string;
|
|
658
|
+
receiverAddress: string;
|
|
659
|
+
firstName?: string;
|
|
660
|
+
memberNo: number;
|
|
661
|
+
addressNo: number;
|
|
662
|
+
addressName: string;
|
|
663
|
+
state?: string;
|
|
664
|
+
mallNo: number;
|
|
665
|
+
receiverContact1: string;
|
|
666
|
+
receiverContact2?: string;
|
|
667
|
+
registerYmdy?: string;
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* path: /profile/shipping-addresses/recent
|
|
671
|
+
*/
|
|
672
|
+
export declare type GetProfileShippingAddressesRecentResponse = AddressDetail[];
|
|
673
|
+
/**
|
|
674
|
+
* path: /profile/shipping-addresses/{addressNo}
|
|
675
|
+
*/
|
|
676
|
+
export interface GetProfileShippingAddressesAddressNoRequest {
|
|
677
|
+
pathVariable: {
|
|
678
|
+
addressNo: string;
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
export declare type GetProfileShippingAddressesAddressNoResponse = AddressDetail[];
|
|
682
|
+
export interface PutProfileShippingAddressesAddressNoRequest {
|
|
683
|
+
pathVariable: {
|
|
684
|
+
addressNo: string;
|
|
685
|
+
};
|
|
686
|
+
requestBody: AddressPayload;
|
|
687
|
+
}
|
|
688
|
+
export declare type PutProfileShippingAddressesAddressNoResponse = AddressDetail;
|
|
689
|
+
export interface DeleteProfileShippingAddressesAddressNoRequest {
|
|
690
|
+
pathVariable: {
|
|
691
|
+
addressNo: string;
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* path: /profile/shipping-addresses/{addressNo}/default
|
|
696
|
+
*/
|
|
697
|
+
export interface PutProfileShippingAddressesAddressNoDefaultRequest {
|
|
698
|
+
pathVariable: {
|
|
699
|
+
addressNo: string;
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
export declare type PutProfileShippingAddressesAddressNoDefaultResponse = AddressDetail;
|
|
629
703
|
export interface ProfileOrders {
|
|
630
704
|
totalCount?: number;
|
|
631
705
|
items?: Array<ProfileOrdersItems>;
|
package/build/types/root.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface RequestOption<QueryStringType, BodyType, PathType = null> {
|
|
|
20
20
|
url?: string;
|
|
21
21
|
queryString?: QueryStringType;
|
|
22
22
|
requestBody?: BodyType;
|
|
23
|
+
body?: BodyInit;
|
|
23
24
|
pathVariable: PathType;
|
|
24
25
|
useAccessToken?: boolean;
|
|
25
26
|
}
|
|
@@ -30,6 +31,9 @@ export interface RequestConfig {
|
|
|
30
31
|
export interface ResponseData<T> extends Response {
|
|
31
32
|
data: T;
|
|
32
33
|
}
|
|
34
|
+
export interface RequestWithQuery {
|
|
35
|
+
queryString: string;
|
|
36
|
+
}
|
|
33
37
|
export interface CreatedOutput {
|
|
34
38
|
marketing: {
|
|
35
39
|
getMarketingFacebookPixel(request: any): any;
|
package/build/types/root.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","sourceRoot":"","sources":["../../types/root.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"root.js","sourceRoot":"","sources":["../../types/root.ts"],"names":[],"mappings":"AA2IA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopby/shop-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"types": "build/types/root.d.ts",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"author": "nhn-commerce",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@types/lodash.curry": "^4.1.6",
|
|
29
30
|
"lodash.curry": "^4.1.1"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"@commitlint/cli": "15.0.0",
|
|
33
34
|
"@commitlint/config-conventional": "15.0.0",
|
|
34
|
-
"@types/lodash.curry": "^4.1.6",
|
|
35
35
|
"@types/node": "^16.11.10",
|
|
36
36
|
"gts": "^3.1.0",
|
|
37
37
|
"husky": "7.0.4",
|