@yolo-croket-dev/amqp-access 0.7.378-sj → 0.7.378
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/notification-service/services/amqp.send-notification.service.d.ts +5 -1
- package/notification-service/services/amqp.send-notification.service.js +9 -2
- package/package.json +2 -2
- package/user-service/amqp.user-service.service.d.ts +10 -2
- package/user-service/amqp.user-service.service.js +10 -2
|
@@ -7,6 +7,10 @@ export declare class AmqpSendNotificationService {
|
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
sendTemplateNotification(payload: SendTemplateNotificationPayload, param: AbstractParam): Promise<boolean>;
|
|
9
9
|
sendTemplateNotificationBulk(payload: SendTemplateNotificationBulkPayload, param: AbstractParam): Promise<SendTemplateNotificationBulkResult>;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @author sj
|
|
12
|
+
* @description 해외 휴대폰 인증 문자 발송
|
|
13
|
+
* @process 고정 목적의 인증 문자만 notification-service에 위임한다.
|
|
14
|
+
* */
|
|
11
15
|
sendSellerOverseasPhoneVerificationSms(payload: SendSellerOverseasPhoneVerificationSmsPayload, param: AbstractParam): Promise<SendSellerOverseasPhoneVerificationSmsResult>;
|
|
12
16
|
}
|
|
@@ -27,9 +27,16 @@ let AmqpSendNotificationService = class AmqpSendNotificationService {
|
|
|
27
27
|
async sendTemplateNotificationBulk(payload, param) {
|
|
28
28
|
return this.amqpManager.call('알림 보내기 Bulk', 'notification.template.bulk-send', payload, param, { isErrorThrowing: true });
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* @author sj
|
|
32
|
+
* @description 해외 휴대폰 인증 문자 발송
|
|
33
|
+
* @process 고정 목적의 인증 문자만 notification-service에 위임한다.
|
|
34
|
+
* */
|
|
31
35
|
async sendSellerOverseasPhoneVerificationSms(payload, param) {
|
|
32
|
-
return this.amqpManager.call('승인 셀러 해외 휴대폰 인증 문자 발송', 'notification.send.seller-overseas-phone-verification-sms', payload, param, {
|
|
36
|
+
return this.amqpManager.call('승인 셀러 해외 휴대폰 인증 문자 발송', 'notification.send.seller-overseas-phone-verification-sms', payload, param, {
|
|
37
|
+
isErrorThrowing: true,
|
|
38
|
+
isInternal: true,
|
|
39
|
+
});
|
|
33
40
|
}
|
|
34
41
|
};
|
|
35
42
|
exports.AmqpSendNotificationService = AmqpSendNotificationService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.378
|
|
3
|
+
"version": "0.7.378",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
"class-validator": "^0.13.2",
|
|
30
30
|
"dotenv": "^16.3.1"
|
|
31
31
|
}
|
|
32
|
-
}
|
|
32
|
+
}
|
|
@@ -50,8 +50,16 @@ export declare class AmqpUserService {
|
|
|
50
50
|
* @process 인증 token 소비와 User 생성을 user-service 단일 경계에서 처리한다.
|
|
51
51
|
* */
|
|
52
52
|
createEmailSignup(payload: CreateEmailSignupPayload, param: AbstractParam): Promise<CreateEmailSignupResult>;
|
|
53
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* @author sj
|
|
55
|
+
* @description 승인 셀러 해외 인증번호 발송
|
|
56
|
+
* @process user-service가 승인 상태와 OTP 상태를 검증한다.
|
|
57
|
+
* */
|
|
54
58
|
requestSellerOverseasPhoneVerification(payload: RequestSellerOverseasPhoneVerificationPayload, param: AbstractParam): Promise<RequestSellerOverseasPhoneVerificationResult>;
|
|
55
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* @author sj
|
|
61
|
+
* @description 승인 셀러 해외 인증번호 확인
|
|
62
|
+
* @process 성공 시 계정 전화번호를 저장한다.
|
|
63
|
+
* */
|
|
56
64
|
confirmSellerOverseasPhoneVerification(payload: ConfirmSellerOverseasPhoneVerificationPayload, param: AbstractParam): Promise<ConfirmSellerOverseasPhoneVerificationResult>;
|
|
57
65
|
}
|
|
@@ -108,11 +108,19 @@ let AmqpUserService = class AmqpUserService {
|
|
|
108
108
|
async createEmailSignup(payload, param) {
|
|
109
109
|
return this.amqpManager.call('이메일 전용 회원가입', 'user.email-signup.create', payload, param, { isErrorThrowing: true });
|
|
110
110
|
}
|
|
111
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* @author sj
|
|
113
|
+
* @description 승인 셀러 해외 인증번호 발송
|
|
114
|
+
* @process user-service가 승인 상태와 OTP 상태를 검증한다.
|
|
115
|
+
* */
|
|
112
116
|
async requestSellerOverseasPhoneVerification(payload, param) {
|
|
113
117
|
return this.amqpManager.call('승인 셀러 해외 휴대폰 인증번호 발송', 'user.seller.request-overseas-phone-verification', payload, param, { isErrorThrowing: true });
|
|
114
118
|
}
|
|
115
|
-
/**
|
|
119
|
+
/**
|
|
120
|
+
* @author sj
|
|
121
|
+
* @description 승인 셀러 해외 인증번호 확인
|
|
122
|
+
* @process 성공 시 계정 전화번호를 저장한다.
|
|
123
|
+
* */
|
|
116
124
|
async confirmSellerOverseasPhoneVerification(payload, param) {
|
|
117
125
|
return this.amqpManager.call('승인 셀러 해외 휴대폰 인증번호 확인', 'user.seller.confirm-overseas-phone-verification', payload, param, { isErrorThrowing: true });
|
|
118
126
|
}
|