@shopby/shop-sdk 1.75.3 → 1.75.5
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 +14 -0
- package/build/src/domain/auth/index.d.ts +5 -6
- package/build/src/domain/auth/index.js +9 -15
- package/build/src/domain/auth/index.js.map +1 -1
- package/build/src/index.d.ts +4 -5
- package/build/types/domain/auth/index.d.ts +3 -9
- package/build/types/domain/order/index.d.ts +2 -2
- package/package.json +1 -1
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.75.5](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.75.4...v1.75.5) (2024-07-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* oauth2 불필요한 api 제거 및 네이밍 개선, put /oauth2에 useAccessToken 추가 ([36e9165](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/36e9165d3e12e14fa60b7201e980297777b381fe))
|
|
11
|
+
|
|
12
|
+
### [1.75.4](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.75.3...v1.75.4) (2024-07-08)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* 주문서 trackingKey, channelType 타입 nullable 적용 ([b9b2aa4](https://gitlab.e-ncp.com/ncp-client/shop-sdk/commit/b9b2aa422c7d780f55110ee3f7c930eeca59f345))
|
|
18
|
+
|
|
5
19
|
### [1.75.3](https://gitlab.e-ncp.com/ncp-client/shop-sdk/compare/v1.75.2...v1.75.3) (2024-07-08)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestOption, ResponseData } from '../../../types/http';
|
|
2
|
-
import { CaptchaRequest, GetAuthenticationsRequest, KcpIdVerificationResponseRequest, PostAuthenticationsRequest, AuthenticationsBizmall, AuthenticationsBizmallResponse, AuthenticationsEmail, AuthenticationsEmailResponse, AuthenticationsResponse, AuthenticationsSms, CaptchaImage, CaptchaVerifyRequest, GetOpenIdTokenResponse, KcpIdVerificationFormRequest, KcpIdVerificationResponse, OauthBeginRequest, OauthCallbackRequest, OauthLoginUrlRequest, OauthLoginUrlResponse, OauthOpenIdRequest, OauthOpenIdResponse, PostAuthenticationsSms, PostKcpAgeVerificationRequest, PostKcpAgeVerificationResponse, PostOauthTokenRequest, PostOauthTokenResponse, PostOauthOpenIdRequest,
|
|
2
|
+
import { CaptchaRequest, GetAuthenticationsRequest, KcpIdVerificationResponseRequest, PostAuthenticationsRequest, AuthenticationsBizmall, AuthenticationsBizmallResponse, AuthenticationsEmail, AuthenticationsEmailResponse, AuthenticationsResponse, AuthenticationsSms, CaptchaImage, CaptchaVerifyRequest, GetOpenIdTokenResponse, KcpIdVerificationFormRequest, KcpIdVerificationResponse, OauthBeginRequest, OauthCallbackRequest, OauthLoginUrlRequest, OauthLoginUrlResponse, OauthOpenIdRequest, OauthOpenIdResponse, PostAuthenticationsSms, PostKcpAgeVerificationRequest, PostKcpAgeVerificationResponse, PostOauthTokenRequest, PostOauthTokenResponse, PostOauthOpenIdRequest, PostOauth2Request, PostOauth2Response, PutOauth2Response } from '../../../types/domain/auth';
|
|
3
3
|
declare const auth: (httpRequest: Function) => {
|
|
4
4
|
/**
|
|
5
5
|
* Authentication
|
|
@@ -15,11 +15,10 @@ declare const auth: (httpRequest: Function) => {
|
|
|
15
15
|
getOauthOpenId(request: OauthOpenIdRequest): Promise<ResponseData<OauthOpenIdResponse>>;
|
|
16
16
|
postOauthOpenId(request: PostOauthOpenIdRequest): Promise<ResponseData<OauthOpenIdResponse>>;
|
|
17
17
|
postOauthToken(request: PostOauthTokenRequest): Promise<ResponseData<PostOauthTokenResponse>>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
postOauthOpenIdV2(request: PostOauthOpenIdRequest): Promise<ResponseData<OauthTokenResponseV2>>;
|
|
18
|
+
postOauth2(request: PostOauth2Request): Promise<ResponseData<PostOauth2Response>>;
|
|
19
|
+
putOauth2(): Promise<ResponseData<PutOauth2Response>>;
|
|
20
|
+
deleteOauth2(): Promise<ResponseData<void>>;
|
|
21
|
+
postOauth2OpenId(request: PostOauthOpenIdRequest): Promise<ResponseData<PostOauth2Response>>;
|
|
23
22
|
deleteOauthToken(): Promise<ResponseData<void>>;
|
|
24
23
|
getOpenidToken(): Promise<ResponseData<GetOpenIdTokenResponse>>;
|
|
25
24
|
/**
|
|
@@ -101,44 +101,38 @@ var auth = function (httpRequest) { return ({
|
|
|
101
101
|
key: 'postOauthToken',
|
|
102
102
|
});
|
|
103
103
|
},
|
|
104
|
-
|
|
104
|
+
postOauth2: function (request) {
|
|
105
105
|
var requestBody = request.requestBody;
|
|
106
106
|
return httpRequest({
|
|
107
107
|
method: 'POST',
|
|
108
108
|
url: '/oauth2',
|
|
109
109
|
requestBody: requestBody,
|
|
110
|
-
key: '
|
|
110
|
+
key: 'postOauth2',
|
|
111
111
|
});
|
|
112
112
|
},
|
|
113
|
-
|
|
113
|
+
putOauth2: function () {
|
|
114
114
|
return httpRequest({
|
|
115
115
|
method: 'PUT',
|
|
116
116
|
url: '/oauth2',
|
|
117
|
-
key: '
|
|
117
|
+
key: 'putOauth2',
|
|
118
|
+
useAccessToken: true,
|
|
118
119
|
});
|
|
119
120
|
},
|
|
120
|
-
|
|
121
|
+
deleteOauth2: function () {
|
|
121
122
|
return httpRequest({
|
|
122
123
|
method: 'DELETE',
|
|
123
124
|
url: '/oauth2',
|
|
124
|
-
key: '
|
|
125
|
+
key: 'deleteOauth2',
|
|
125
126
|
useAccessToken: true,
|
|
126
127
|
});
|
|
127
128
|
},
|
|
128
|
-
|
|
129
|
-
return httpRequest({
|
|
130
|
-
method: 'GET',
|
|
131
|
-
url: '/oauth2/openid',
|
|
132
|
-
key: 'getOauthOpenIdV2',
|
|
133
|
-
});
|
|
134
|
-
},
|
|
135
|
-
postOauthOpenIdV2: function (request) {
|
|
129
|
+
postOauth2OpenId: function (request) {
|
|
136
130
|
var requestBody = request.requestBody;
|
|
137
131
|
return httpRequest({
|
|
138
132
|
method: 'POST',
|
|
139
133
|
url: '/oauth2/openid',
|
|
140
134
|
requestBody: requestBody,
|
|
141
|
-
key: '
|
|
135
|
+
key: 'postOauth2OpenId',
|
|
142
136
|
});
|
|
143
137
|
},
|
|
144
138
|
deleteOauthToken: function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/auth/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/auth/index.ts"],"names":[],"mappings":"AAkCA,IAAM,IAAI,GAAG,UAAC,WAAqB,IAAK,OAAA,CAAC;IACvC;;OAEG;IACH,kBAAkB,EAAlB,UACE,OAAkC;QAE1B,IAAA,WAAW,GAAK,OAAO,YAAZ,CAAa;QAEhC,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,kBAAkB;YACvB,WAAW,aAAA;YACX,GAAG,EAAE,oBAAoB;SAC1B,CAAC,CAAC;IACL,CAAC;IACD,mBAAmB,EAAnB,UACE,OAAmC;QAE3B,IAAA,WAAW,GAAK,OAAO,YAAZ,CAAa;QAEhC,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,kBAAkB;YACvB,WAAW,aAAA;YACX,GAAG,EAAE,qBAAqB;SAC3B,CAAC,CAAC;IACL,CAAC;IACD,0BAA0B,EAA1B,UACE,OAAoD;QAE5C,IAAA,WAAW,GAAK,OAAO,YAAZ,CAAa;QAEhC,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,0BA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Z,CAAa;QAEhC,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,cAAc;YACnB,WAAW,aAAA;YACX,GAAG,EAAE,eAAe;SACrB,CAAC,CAAC;IACL,CAAC;IACD,gBAAgB,EAAhB,UACE,OAAkD;QAE1C,IAAA,WAAW,GAAK,OAAO,YAAZ,CAAa;QAEhC,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,iBAAiB;YACtB,WAAW,aAAA;YACX,GAAG,EAAE,kBAAkB;SACxB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,eAAe,EAAf,UACE,OAAuB;QAEf,IAAA,WAAW,GAAK,OAAO,YAAZ,CAAa;QAChC,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,gBAAgB;YACrB,WAAW,aAAA;YACX,GAAG,EAAE,iBAAiB;SACvB,CAAC,CAAC;IACL,CAAC;IACD,iBAAiB,EAAjB,UACE,OAA6B;QAErB,IAAA,WAAW,GAAK,OAAO,YAAZ,CAAa;QAEhC,OAAO,WAAW,CAAC;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,iBAAiB;YACtB,WAAW,aAAA;YACX,GAAG,EAAE,mBAAmB;SACzB,CAAC,CAAC;IACL,CAAC;CACF,CAAC,EA/RsC,CA+RtC,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
package/build/src/index.d.ts
CHANGED
|
@@ -18,11 +18,10 @@ export declare const create: ({ baseURL, headerOption, customHttpRequest, versio
|
|
|
18
18
|
getOauthOpenId(request: import("../types").OauthOpenIdRequest): Promise<import("../types/http").ResponseData<import("../types").OauthOpenIdResponse>>;
|
|
19
19
|
postOauthOpenId(request: import("../types").PostOauthOpenIdRequest): Promise<import("../types/http").ResponseData<import("../types").OauthOpenIdResponse>>;
|
|
20
20
|
postOauthToken(request: import("../types").PostOauthTokenRequest): Promise<import("../types/http").ResponseData<import("../types").PostOauthTokenResponse>>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
postOauthOpenIdV2(request: import("../types").PostOauthOpenIdRequest): Promise<import("../types/http").ResponseData<import("../types").OauthTokenResponseV2>>;
|
|
21
|
+
postOauth2(request: import("../types").PostOauth2Request): Promise<import("../types/http").ResponseData<import("../types").PostOauth2Response>>;
|
|
22
|
+
putOauth2(): Promise<import("../types/http").ResponseData<import("../types").PutOauth2Response>>;
|
|
23
|
+
deleteOauth2(): Promise<import("../types/http").ResponseData<void>>;
|
|
24
|
+
postOauth2OpenId(request: import("../types").PostOauthOpenIdRequest): Promise<import("../types/http").ResponseData<import("../types").PostOauth2Response>>;
|
|
26
25
|
deleteOauthToken(): Promise<import("../types/http").ResponseData<void>>;
|
|
27
26
|
getOpenidToken(): Promise<import("../types/http").ResponseData<import("../types").GetOpenIdTokenResponse>>;
|
|
28
27
|
postKcpAgeVerification(request: import("../types").PostKcpAgeVerificationRequest): Promise<import("../types/http").ResponseData<import("../types").PostKcpAgeVerificationResponse>>;
|
|
@@ -116,7 +116,7 @@ export interface PostOauthTokenResponse {
|
|
|
116
116
|
daysFromLastPasswordChange: number;
|
|
117
117
|
passwordChangeRequired: boolean;
|
|
118
118
|
}
|
|
119
|
-
export interface
|
|
119
|
+
export interface PostOauth2Response {
|
|
120
120
|
expireIn: number;
|
|
121
121
|
refreshTokenExpiresIn: number;
|
|
122
122
|
passwordChangeRequired: boolean;
|
|
@@ -127,24 +127,18 @@ export interface OauthTokenResponseV2 {
|
|
|
127
127
|
tokenType: string;
|
|
128
128
|
refreshToken: string;
|
|
129
129
|
}
|
|
130
|
-
export interface
|
|
130
|
+
export interface PutOauth2Response {
|
|
131
131
|
expireIn: number;
|
|
132
132
|
accessToken: string;
|
|
133
133
|
tokenType: string;
|
|
134
134
|
}
|
|
135
|
-
export interface
|
|
135
|
+
export interface PostOauth2Request extends RequestConfig {
|
|
136
136
|
requestBody: {
|
|
137
137
|
password: string;
|
|
138
138
|
keepLogin?: boolean;
|
|
139
139
|
memberId: string;
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
export interface GetOauthOpenIdResponseV2 {
|
|
143
|
-
refreshTokenExpiresAt: string;
|
|
144
|
-
accessToken?: string;
|
|
145
|
-
expiresAt: string;
|
|
146
|
-
refreshToken?: string;
|
|
147
|
-
}
|
|
148
142
|
export interface GetOpenIdTokenResponse {
|
|
149
143
|
expireYmdt?: string;
|
|
150
144
|
accessToken?: string;
|
|
@@ -189,9 +189,9 @@ export interface OrderConfigsNaverPay {
|
|
|
189
189
|
export interface PostOrderSheetsRequest extends OptionalAccessTokenRequest {
|
|
190
190
|
requestBody: {
|
|
191
191
|
productCoupons?: ProductCoupon[];
|
|
192
|
-
trackingKey?: string
|
|
192
|
+
trackingKey?: Nullable<string>;
|
|
193
193
|
cartNos?: number[];
|
|
194
|
-
channelType?: string
|
|
194
|
+
channelType?: Nullable<string>;
|
|
195
195
|
products?: OrderSheetsProduct[];
|
|
196
196
|
};
|
|
197
197
|
}
|