@yolo-croket-dev/amqp-access 0.7.388 → 0.7.390
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/order-server/dto/buyma-order/command/buyma-order.dto.d.ts +0 -2
- package/order-server/dto/buyma-order/command/buyma-order.dto.js +0 -11
- package/order-server/dto/buyma-order/query/buyma-order.dto.d.ts +1 -1
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/index.js +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/send-reservation-period-changed-notification.dto.d.ts +12 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/send-reservation-period-changed-notification.dto.js +38 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.d.ts +7 -1
- package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.js +8 -0
- package/package.json +2 -2
|
@@ -53,8 +53,6 @@ export declare class BuymaManualFieldsPayload {
|
|
|
53
53
|
procurementDetails?: BuymaProcurementDetailsPayload;
|
|
54
54
|
internationalShipment?: BuymaInternationalShipmentPayload | null;
|
|
55
55
|
stockSecuredNotified?: boolean | null;
|
|
56
|
-
forwarderDispatchNotified?: boolean | null;
|
|
57
|
-
holdReason?: string | null;
|
|
58
56
|
memo?: string | null;
|
|
59
57
|
slackThreadUrls?: string[];
|
|
60
58
|
}
|
|
@@ -280,17 +280,6 @@ __decorate([
|
|
|
280
280
|
(0, class_validator_1.IsBoolean)(),
|
|
281
281
|
__metadata("design:type", Object)
|
|
282
282
|
], BuymaManualFieldsPayload.prototype, "stockSecuredNotified", void 0);
|
|
283
|
-
__decorate([
|
|
284
|
-
(0, class_validator_1.IsOptional)(),
|
|
285
|
-
(0, class_validator_1.IsBoolean)(),
|
|
286
|
-
__metadata("design:type", Object)
|
|
287
|
-
], BuymaManualFieldsPayload.prototype, "forwarderDispatchNotified", void 0);
|
|
288
|
-
__decorate([
|
|
289
|
-
(0, class_validator_1.IsOptional)(),
|
|
290
|
-
(0, class_validator_1.IsString)(),
|
|
291
|
-
(0, class_validator_1.MaxLength)(2000),
|
|
292
|
-
__metadata("design:type", Object)
|
|
293
|
-
], BuymaManualFieldsPayload.prototype, "holdReason", void 0);
|
|
294
283
|
__decorate([
|
|
295
284
|
(0, class_validator_1.IsOptional)(),
|
|
296
285
|
(0, class_validator_1.IsString)(),
|
|
@@ -37,7 +37,7 @@ export interface BuymaCroketBuyer {
|
|
|
37
37
|
buyerId: string | null;
|
|
38
38
|
username: string | null;
|
|
39
39
|
}
|
|
40
|
-
export interface BuymaOrderListItem extends Pick<BuymaOrderEntity, '_id' | 'buymaAccountId' | 'buymaOrderNumber' | 'buymaOrderUrl' | 'createdAt' | 'quantity' | 'buyer' | 'productRevenue' | 'shippingRevenue' | 'reportedTotalRevenue' | 'orderStatus' | 'procurementWorkStatus' | '
|
|
40
|
+
export interface BuymaOrderListItem extends Pick<BuymaOrderEntity, '_id' | 'buymaAccountId' | 'buymaOrderNumber' | 'buymaOrderUrl' | 'createdAt' | 'quantity' | 'buyer' | 'productRevenue' | 'shippingRevenue' | 'reportedTotalRevenue' | 'orderStatus' | 'procurementWorkStatus' | 'slackThreadUrls'> {
|
|
41
41
|
/** 목록에 표시하는 바이마 수령인명. 전화번호·주소는 상세 응답에서만 제공한다. */
|
|
42
42
|
recipient?: Pick<NonNullable<BuymaOrderEntity['recipient']>, 'name'> | null;
|
|
43
43
|
productSnapshot: Pick<BuymaOrderEntity['productSnapshot'], 'storeName' | 'buymaName' | 'croketName' | 'optionName' | 'croketItemUrl' | 'buymaItemUrl'>;
|
package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/index.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export * from './cancel-reservation-by-admin-bulk.dto';
|
|
|
5
5
|
export * from './change-reservation-card-quota.dto';
|
|
6
6
|
export * from './change-reservation-billing-card.dto';
|
|
7
7
|
export * from './retry-reservation-billing-payment.dto';
|
|
8
|
+
export * from './send-reservation-period-changed-notification.dto';
|
|
@@ -21,3 +21,4 @@ __exportStar(require("./cancel-reservation-by-admin-bulk.dto"), exports);
|
|
|
21
21
|
__exportStar(require("./change-reservation-card-quota.dto"), exports);
|
|
22
22
|
__exportStar(require("./change-reservation-billing-card.dto"), exports);
|
|
23
23
|
__exportStar(require("./retry-reservation-billing-payment.dto"), exports);
|
|
24
|
+
__exportStar(require("./send-reservation-period-changed-notification.dto"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class SendReservationPeriodChangedNotificationPayload {
|
|
2
|
+
itemId: string;
|
|
3
|
+
reservationStartDate: string;
|
|
4
|
+
reservationEndDate: string;
|
|
5
|
+
afterBuyerId?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SendReservationPeriodChangedNotificationResult {
|
|
8
|
+
targetCount: number;
|
|
9
|
+
successCount: number;
|
|
10
|
+
failCount: number;
|
|
11
|
+
nextBuyerId?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SendReservationPeriodChangedNotificationPayload = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* @author jun
|
|
15
|
+
* @description 정식 0.7.389에 공개된 예약 기간 변경 알림 계약을 보존한다.
|
|
16
|
+
* @process 저장 기간 검증 후 구매자별 최대 20명 발송 결과와 다음 구매자 cursor를 반환한다.
|
|
17
|
+
*/
|
|
18
|
+
const class_validator_1 = require("class-validator");
|
|
19
|
+
class SendReservationPeriodChangedNotificationPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.SendReservationPeriodChangedNotificationPayload = SendReservationPeriodChangedNotificationPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsMongoId)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SendReservationPeriodChangedNotificationPayload.prototype, "itemId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsISO8601)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SendReservationPeriodChangedNotificationPayload.prototype, "reservationStartDate", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsISO8601)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SendReservationPeriodChangedNotificationPayload.prototype, "reservationEndDate", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsMongoId)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], SendReservationPeriodChangedNotificationPayload.prototype, "afterBuyerId", void 0);
|
package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { ApproveReservationBillingPaymentBulkPayload, ApproveReservationBillingPaymentBulkResult, CancelReservationByBuyerPayload, CancelReservationResult, CancelReservationByAdminPayload, CancelReservationByAdminBulkPayload, CancelReservationByAdminBulkResult, ChangeReservationCardQuotaPayload, ChangeReservationBillingCardPayload, RetryReservationBillingPaymentPayload, RetryReservationBillingPaymentResult, GetReservationForExcelByAdminPayload, GetReservationForExcelByAdminResult, GetReservationListForAdminPayload, GetReservationListForAdminResult } from '../../dto/purchased-info.modules/purchased-info-reservation';
|
|
3
|
+
import { SendReservationPeriodChangedNotificationPayload, SendReservationPeriodChangedNotificationResult, ApproveReservationBillingPaymentBulkPayload, ApproveReservationBillingPaymentBulkResult, CancelReservationByBuyerPayload, CancelReservationResult, CancelReservationByAdminPayload, CancelReservationByAdminBulkPayload, CancelReservationByAdminBulkResult, ChangeReservationCardQuotaPayload, ChangeReservationBillingCardPayload, RetryReservationBillingPaymentPayload, RetryReservationBillingPaymentResult, GetReservationForExcelByAdminPayload, GetReservationForExcelByAdminResult, GetReservationListForAdminPayload, GetReservationListForAdminResult } from '../../dto/purchased-info.modules/purchased-info-reservation';
|
|
4
4
|
export declare class AmqpPurchasedInfoReservationService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
|
+
/**
|
|
9
|
+
* @author jun
|
|
10
|
+
* @description 정식 0.7.389의 예약 기간 변경 알림 배치 발송 계약을 유지한다.
|
|
11
|
+
* @process order-server의 구매자 중복 제거 및 템플릿 발송 결과를 반환한다.
|
|
12
|
+
*/
|
|
13
|
+
sendReservationPeriodChangedNotification(payload: SendReservationPeriodChangedNotificationPayload, param: AbstractParam): Promise<SendReservationPeriodChangedNotificationResult>;
|
|
8
14
|
/** 예약 상품 일괄 빌링 결제 승인 (확보 처리) */
|
|
9
15
|
approveReservationBillingPaymentBulk(payload: ApproveReservationBillingPaymentBulkPayload, param: AbstractParam): Promise<ApproveReservationBillingPaymentBulkResult>;
|
|
10
16
|
/** 구매자의 예약 취소 */
|
package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.js
CHANGED
|
@@ -26,6 +26,14 @@ let AmqpPurchasedInfoReservationService = class AmqpPurchasedInfoReservationServ
|
|
|
26
26
|
this.client = client;
|
|
27
27
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @author jun
|
|
31
|
+
* @description 정식 0.7.389의 예약 기간 변경 알림 배치 발송 계약을 유지한다.
|
|
32
|
+
* @process order-server의 구매자 중복 제거 및 템플릿 발송 결과를 반환한다.
|
|
33
|
+
*/
|
|
34
|
+
async sendReservationPeriodChangedNotification(payload, param) {
|
|
35
|
+
return this.amqpManager.call('예약 기간 변경 알림 발송', 'purchased-info-reservation.send.period-changed-notification', payload, param, { isErrorThrowing: true });
|
|
36
|
+
}
|
|
29
37
|
/** 예약 상품 일괄 빌링 결제 승인 (확보 처리) */
|
|
30
38
|
async approveReservationBillingPaymentBulk(payload, param) {
|
|
31
39
|
return this.amqpManager.call('예약 상품 일괄 빌링 결제 승인', 'purchased-info-reservation.approve.billing-payment-bulk', payload, param, { isErrorThrowing: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.390",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@yolo-croket-dev/domain": "0.2.50",
|
|
25
25
|
"@yolo-croket-dev/dto-v2": "0.2.35",
|
|
26
26
|
"@yolo-croket-dev/entity": "0.2.110",
|
|
27
|
-
"@yolo-croket-dev/entity-v2": "0.3.
|
|
27
|
+
"@yolo-croket-dev/entity-v2": "0.3.62",
|
|
28
28
|
"class-transformer": "^0.5.1",
|
|
29
29
|
"class-validator": "^0.13.2",
|
|
30
30
|
"dotenv": "^16.3.1"
|