@yolo-croket-dev/amqp-access 0.7.389 → 0.7.391
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/send-reservation-period-changed-notification.dto.js +3 -3
- package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.d.ts +3 -3
- package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.js +3 -3
- package/package.json +3 -3
- package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/user-service/services/amqp.store-business.service.d.ts +4 -1
- package/user-service/services/amqp.store-business.service.js +7 -0
|
@@ -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'>;
|
|
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SendReservationPeriodChangedNotificationPayload = void 0;
|
|
13
13
|
/**
|
|
14
|
-
* @author
|
|
15
|
-
* @description
|
|
16
|
-
* @process
|
|
14
|
+
* @author jun
|
|
15
|
+
* @description 정식 0.7.389에 공개된 예약 기간 변경 알림 계약을 보존한다.
|
|
16
|
+
* @process 저장 기간 검증 후 구매자별 최대 20명 발송 결과와 다음 구매자 cursor를 반환한다.
|
|
17
17
|
*/
|
|
18
18
|
const class_validator_1 = require("class-validator");
|
|
19
19
|
class SendReservationPeriodChangedNotificationPayload {
|
package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ export declare class AmqpPurchasedInfoReservationService {
|
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
/**
|
|
9
|
-
* @author
|
|
10
|
-
* @description 예약 기간 변경 알림 배치 발송
|
|
11
|
-
* @process order-server의 구매자 중복 제거 및 템플릿 발송
|
|
9
|
+
* @author jun
|
|
10
|
+
* @description 정식 0.7.389의 예약 기간 변경 알림 배치 발송 계약을 유지한다.
|
|
11
|
+
* @process order-server의 구매자 중복 제거 및 템플릿 발송 결과를 반환한다.
|
|
12
12
|
*/
|
|
13
13
|
sendReservationPeriodChangedNotification(payload: SendReservationPeriodChangedNotificationPayload, param: AbstractParam): Promise<SendReservationPeriodChangedNotificationResult>;
|
|
14
14
|
/** 예약 상품 일괄 빌링 결제 승인 (확보 처리) */
|
package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.js
CHANGED
|
@@ -27,9 +27,9 @@ let AmqpPurchasedInfoReservationService = class AmqpPurchasedInfoReservationServ
|
|
|
27
27
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* @author
|
|
31
|
-
* @description 예약 기간 변경 알림 배치 발송
|
|
32
|
-
* @process order-server의 구매자 중복 제거 및 템플릿 발송
|
|
30
|
+
* @author jun
|
|
31
|
+
* @description 정식 0.7.389의 예약 기간 변경 알림 배치 발송 계약을 유지한다.
|
|
32
|
+
* @process order-server의 구매자 중복 제거 및 템플릿 발송 결과를 반환한다.
|
|
33
33
|
*/
|
|
34
34
|
async sendReservationPeriodChangedNotification(payload, param) {
|
|
35
35
|
return this.amqpManager.call('예약 기간 변경 알림 발송', 'purchased-info-reservation.send.period-changed-notification', 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.391",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"@nestjs/mapped-types": "2.0.2",
|
|
23
23
|
"@yolo-croket-dev/core": "1.10.2",
|
|
24
24
|
"@yolo-croket-dev/domain": "0.2.50",
|
|
25
|
-
"@yolo-croket-dev/dto-v2": "0.2.
|
|
25
|
+
"@yolo-croket-dev/dto-v2": "0.2.36",
|
|
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"
|
package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
|
|
2
2
|
import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
|
|
3
|
-
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common/interfaces").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
4
4
|
/** 구글 시트용 광고센터정산 데이터 */
|
|
5
5
|
export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
|
|
6
6
|
storeInfo: {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
|
|
3
|
-
|
|
3
|
+
/** @author jun @description 사업자정보 RPC client. @process 공용 계약과 추적 정보를 user-service로 전달한다. */
|
|
4
|
+
import { GetZeroRateVatSellersPayload, GetZeroRateVatSellersResult, GetStoreBusinessTaxBillingRequiredSellersPayload } from '@yolo-croket-dev/dto-v2/user-service/store/business-info/query';
|
|
4
5
|
import { GetStoreBusinessInfoChangeHistoryPayload, GetStoreBusinessInfoChangeHistoryResult } from '../dto/store-business';
|
|
5
6
|
export declare class AmqpStoreBusinessService {
|
|
6
7
|
private readonly client;
|
|
7
8
|
private readonly amqpManager;
|
|
8
9
|
constructor(client: ClientProxy);
|
|
10
|
+
/** @description 결산 영세율 셀러 JSON을 조회한다. @param payload 한국 날짜 범위 @param param 요청 문맥 @returns 셀러와 확인 필요 목록 */
|
|
11
|
+
getZeroRateVatSellers(payload: GetZeroRateVatSellersPayload, param: AbstractParam): Promise<GetZeroRateVatSellersResult>;
|
|
9
12
|
getStoreBusinessTaxBillingRequiredSellers(payload: GetStoreBusinessTaxBillingRequiredSellersPayload, param: AbstractParam): Promise<any>;
|
|
10
13
|
getStoreBusinessInfoChangeHistory(payload: GetStoreBusinessInfoChangeHistoryPayload, param: AbstractParam): Promise<GetStoreBusinessInfoChangeHistoryResult>;
|
|
11
14
|
}
|
|
@@ -21,6 +21,13 @@ let AmqpStoreBusinessService = class AmqpStoreBusinessService {
|
|
|
21
21
|
this.client = client;
|
|
22
22
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
23
|
}
|
|
24
|
+
/** @description 결산 영세율 셀러 JSON을 조회한다. @param payload 한국 날짜 범위 @param param 요청 문맥 @returns 셀러와 확인 필요 목록 */
|
|
25
|
+
async getZeroRateVatSellers(payload, param) {
|
|
26
|
+
return this.amqpManager.call('getZeroRateVatSellers', 'store-business.get.zero-rate-vat-sellers', payload, {
|
|
27
|
+
...param,
|
|
28
|
+
timeout: 200000,
|
|
29
|
+
}, { isErrorThrowing: true });
|
|
30
|
+
}
|
|
24
31
|
async getStoreBusinessTaxBillingRequiredSellers(payload, param) {
|
|
25
32
|
return this.amqpManager.call('getStoreBusinessTaxBillingRequiredSellers', 'store-business.get.tax-billing-required-sellers', payload, param, { isErrorThrowing: true });
|
|
26
33
|
}
|