@yolo-croket-dev/amqp-access 0.0.53 → 0.0.54-jun.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/order-server/amqp.order-server.service.d.ts +3 -0
- package/order-server/amqp.order-server.service.js +4 -0
- package/order-server/dto/index.d.ts +1 -0
- package/order-server/dto/index.js +1 -0
- package/order-server/dto/purchasedinfos/query/get-p-infos-for-manage-buyer.dto.d.ts +24 -0
- package/order-server/dto/purchasedinfos/query/get-p-infos-for-manage-buyer.dto.js +73 -0
- package/{payment-service → order-server}/dto/purchasedinfos/query/index.d.ts +1 -0
- package/{payment-service → order-server}/dto/purchasedinfos/query/index.js +1 -0
- package/{payment-service → order-server}/dto/purchasedinfos/query/search-seller-transaction-history-by-process.dto.d.ts +10 -6
- package/{payment-service → order-server}/dto/purchasedinfos/query/search-seller-transaction-history-by-process.dto.js +8 -0
- package/package.json +1 -1
- package/payment-service/amqp.payment-service.service.d.ts +0 -3
- package/payment-service/amqp.payment-service.service.js +0 -4
- package/user-service/services/amqp.user-entity.service.d.ts +1 -1
- package/user-service/services/amqp.user-entity.service.js +1 -1
- package/payment-service/dto/index.d.ts +0 -1
- package/payment-service/dto/index.js +0 -17
- /package/{payment-service → order-server}/dto/purchasedinfos/index.d.ts +0 -0
- /package/{payment-service → order-server}/dto/purchasedinfos/index.js +0 -0
|
@@ -2,10 +2,13 @@ import { ClientProxy } from '@nestjs/microservices';
|
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { GetPurchasedInfoByIdsPayload, GetPurchasedInfosForBulkNotiPayload, GetPurchasedInfosForBulkNotiResult } from '@yolo-croket-dev/dto-v2/order-server';
|
|
4
4
|
import { PurchasedInfoEntity } from '@yolo-croket-dev/entity/src/purchased-info';
|
|
5
|
+
import { SearchSellerTransactionHistoryByProcessPayload, SearchSellerTransactionHistoryByProcessResult } from './dto';
|
|
5
6
|
export declare class AmqpOrderServer {
|
|
6
7
|
private readonly client;
|
|
7
8
|
private readonly amqpManager;
|
|
8
9
|
constructor(client: ClientProxy);
|
|
9
10
|
getPurchasedInfosByIds(payload: GetPurchasedInfoByIdsPayload, param: AbstractParam): Promise<PurchasedInfoEntity[]>;
|
|
10
11
|
getPurchasedInfosForBulkNoti(payload: GetPurchasedInfosForBulkNotiPayload, param: AbstractParam): Promise<GetPurchasedInfosForBulkNotiResult>;
|
|
12
|
+
/** 셀러 거래 내역 추출 (엑셀 생성에 쓰임) */
|
|
13
|
+
searchSellerTransactionHistoryByProcess(payload: SearchSellerTransactionHistoryByProcessPayload, param: AbstractParam): Promise<SearchSellerTransactionHistoryByProcessResult[]>;
|
|
11
14
|
}
|
|
@@ -28,6 +28,10 @@ let AmqpOrderServer = class AmqpOrderServer {
|
|
|
28
28
|
async getPurchasedInfosForBulkNoti(payload, param) {
|
|
29
29
|
return this.amqpManager.call('결제 아이디로 bulk noti를 위한 결제 정보 리스트를 조회합니다.', 'purchased-info.get.for-bulk-noti', payload, param, { isErrorThrowing: true });
|
|
30
30
|
}
|
|
31
|
+
/** 셀러 거래 내역 추출 (엑셀 생성에 쓰임) */
|
|
32
|
+
async searchSellerTransactionHistoryByProcess(payload, param) {
|
|
33
|
+
return this.amqpManager.call('셀러 거래 내역 데이터 조회', 'purchasedinfos.get.seller-transaction-history-by-process', payload, param, { isErrorThrowing: true });
|
|
34
|
+
}
|
|
31
35
|
};
|
|
32
36
|
exports.AmqpOrderServer = AmqpOrderServer;
|
|
33
37
|
exports.AmqpOrderServer = AmqpOrderServer = __decorate([
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PurchasedProcessEnum } from '@yolo-croket-dev/entity/src/purchased-info/purchased-info.entity';
|
|
2
|
+
import { PurchasedInfoForSeller } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info-for-seller.entity';
|
|
3
|
+
export declare enum GetPInfosForManageBuyerSortTypeEnum {
|
|
4
|
+
'최신순' = "\uCD5C\uC2E0\uC21C",
|
|
5
|
+
'구매자 이름순' = "\uAD6C\uB9E4\uC790 \uC774\uB984\uC21C"
|
|
6
|
+
}
|
|
7
|
+
export declare class GetPInfosForManageBuyerPayload {
|
|
8
|
+
selectPInfoProcess?: PurchasedProcessEnum[];
|
|
9
|
+
sellerId: string;
|
|
10
|
+
paymentSDate?: Date;
|
|
11
|
+
paymentEDate?: Date;
|
|
12
|
+
searchText?: string;
|
|
13
|
+
page: number;
|
|
14
|
+
limit: number;
|
|
15
|
+
sortType: GetPInfosForManageBuyerSortTypeEnum;
|
|
16
|
+
/** 다음 페이징 토큰 */
|
|
17
|
+
searchAfter?: string;
|
|
18
|
+
/** 이전 페이징 토큰 */
|
|
19
|
+
searchBefore?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class GetPInfosForManageBuyerResult {
|
|
22
|
+
allCount: number;
|
|
23
|
+
datas: PurchasedInfoForSeller[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.GetPInfosForManageBuyerResult = exports.GetPInfosForManageBuyerPayload = exports.GetPInfosForManageBuyerSortTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
// @entity
|
|
15
|
+
const purchased_info_entity_1 = require("@yolo-croket-dev/entity/src/purchased-info/purchased-info.entity");
|
|
16
|
+
var GetPInfosForManageBuyerSortTypeEnum;
|
|
17
|
+
(function (GetPInfosForManageBuyerSortTypeEnum) {
|
|
18
|
+
GetPInfosForManageBuyerSortTypeEnum["\uCD5C\uC2E0\uC21C"] = "\uCD5C\uC2E0\uC21C";
|
|
19
|
+
GetPInfosForManageBuyerSortTypeEnum["\uAD6C\uB9E4\uC790 \uC774\uB984\uC21C"] = "\uAD6C\uB9E4\uC790 \uC774\uB984\uC21C";
|
|
20
|
+
})(GetPInfosForManageBuyerSortTypeEnum || (exports.GetPInfosForManageBuyerSortTypeEnum = GetPInfosForManageBuyerSortTypeEnum = {}));
|
|
21
|
+
class GetPInfosForManageBuyerPayload {
|
|
22
|
+
}
|
|
23
|
+
exports.GetPInfosForManageBuyerPayload = GetPInfosForManageBuyerPayload;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsEnum)(purchased_info_entity_1.PurchasedProcessEnum),
|
|
26
|
+
(0, class_validator_1.IsArray)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], GetPInfosForManageBuyerPayload.prototype, "selectPInfoProcess", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsMongoId)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], GetPInfosForManageBuyerPayload.prototype, "sellerId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsDateString)(),
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], GetPInfosForManageBuyerPayload.prototype, "paymentSDate", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsDateString)(),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], GetPInfosForManageBuyerPayload.prototype, "paymentEDate", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], GetPInfosForManageBuyerPayload.prototype, "searchText", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsNumber)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], GetPInfosForManageBuyerPayload.prototype, "page", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsNumber)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], GetPInfosForManageBuyerPayload.prototype, "limit", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsEnum)(GetPInfosForManageBuyerSortTypeEnum),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], GetPInfosForManageBuyerPayload.prototype, "sortType", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], GetPInfosForManageBuyerPayload.prototype, "searchAfter", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], GetPInfosForManageBuyerPayload.prototype, "searchBefore", void 0);
|
|
71
|
+
class GetPInfosForManageBuyerResult {
|
|
72
|
+
}
|
|
73
|
+
exports.GetPInfosForManageBuyerResult = GetPInfosForManageBuyerResult;
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./search-seller-transaction-history-by-process.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-p-infos-for-manage-buyer.dto"), exports);
|
|
@@ -4,6 +4,10 @@ export declare class SearchSellerTransactionHistoryByProcessPayload {
|
|
|
4
4
|
startDate: string;
|
|
5
5
|
/** 끝 날짜 */
|
|
6
6
|
endDate: string;
|
|
7
|
+
/** 페이지 */
|
|
8
|
+
page: number;
|
|
9
|
+
/** 제한 갯수 */
|
|
10
|
+
limit: number;
|
|
7
11
|
/** 주문 진행 상태 */
|
|
8
12
|
purchasedProcess: PurchasedProcessEnum[];
|
|
9
13
|
}
|
|
@@ -11,7 +15,7 @@ export declare class SellerTransactionHistory {
|
|
|
11
15
|
/** 주문번호 */
|
|
12
16
|
publicId: string;
|
|
13
17
|
/** 배송 방법 */
|
|
14
|
-
|
|
18
|
+
isAbroad?: string;
|
|
15
19
|
/** 택배사 */
|
|
16
20
|
SCompany?: string;
|
|
17
21
|
/** 송장번호 */
|
|
@@ -27,7 +31,7 @@ export declare class SellerTransactionHistory {
|
|
|
27
31
|
/** 상품 옵션 */
|
|
28
32
|
optionName: string;
|
|
29
33
|
/** 구매 개수 */
|
|
30
|
-
optionNumber:
|
|
34
|
+
optionNumber: string;
|
|
31
35
|
/** 개당 상품가 */
|
|
32
36
|
itemPrice: number;
|
|
33
37
|
/** 총 결제 상품가 */
|
|
@@ -55,7 +59,7 @@ export declare class SellerTransactionHistory {
|
|
|
55
59
|
/** 개인통관 고유 부호 */
|
|
56
60
|
PCCC?: string;
|
|
57
61
|
/** 우편번호 */
|
|
58
|
-
|
|
62
|
+
postCode?: string;
|
|
59
63
|
/** 수령인 주소 */
|
|
60
64
|
receiverAddress?: string;
|
|
61
65
|
/** 요청 사항 */
|
|
@@ -67,7 +71,7 @@ export declare class SellerTransactionHistory {
|
|
|
67
71
|
/** 플랫폼 수수료 부가세액 */
|
|
68
72
|
VAT: number;
|
|
69
73
|
/** 정산 예정 금액 */
|
|
70
|
-
|
|
74
|
+
expectedProceeds?: number;
|
|
71
75
|
/** 거래 완료일 */
|
|
72
76
|
recTime?: string;
|
|
73
77
|
/** 해외 송금 시작일 */
|
|
@@ -77,9 +81,9 @@ export declare class SellerTransactionHistory {
|
|
|
77
81
|
/** 상품 링크 */
|
|
78
82
|
itemUrl: string;
|
|
79
83
|
/** 특이사항 */
|
|
80
|
-
selectionLargeTitles
|
|
84
|
+
selectionLargeTitles?: string;
|
|
81
85
|
/** 비고 */
|
|
82
|
-
note
|
|
86
|
+
note?: string;
|
|
83
87
|
}
|
|
84
88
|
export declare class SearchSellerTransactionHistoryByProcessResult {
|
|
85
89
|
sellerTransactionHistories: SellerTransactionHistory[];
|
|
@@ -26,6 +26,14 @@ __decorate([
|
|
|
26
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], SearchSellerTransactionHistoryByProcessPayload.prototype, "endDate", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsNumber)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], SearchSellerTransactionHistoryByProcessPayload.prototype, "page", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsNumber)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], SearchSellerTransactionHistoryByProcessPayload.prototype, "limit", void 0);
|
|
29
37
|
__decorate([
|
|
30
38
|
(0, class_validator_1.IsArray)(),
|
|
31
39
|
(0, class_validator_1.ArrayNotEmpty)(),
|
package/package.json
CHANGED
|
@@ -2,7 +2,6 @@ import { ClientProxy } from '@nestjs/microservices';
|
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
|
|
3
3
|
import { GetAskUserAndCountByDatePayload, GetAskUserAndCountByDateResult } from '@yolo-croket-dev/dto-v2/payment-service/ask/query';
|
|
4
4
|
import { GetPurchasedInfoUserAndCountByDatePayload, GetPurchasedInfoUserAndCountByDateResult } from '@yolo-croket-dev/dto-v2/payment-service/purchased-info/query';
|
|
5
|
-
import { SearchSellerTransactionHistoryByProcessPayload, SearchSellerTransactionHistoryByProcessResult } from './dto';
|
|
6
5
|
export declare class AmqpPaymentService {
|
|
7
6
|
private readonly client;
|
|
8
7
|
private readonly amqpManager;
|
|
@@ -11,6 +10,4 @@ export declare class AmqpPaymentService {
|
|
|
11
10
|
getAskUserAndCountByDate(payload: GetAskUserAndCountByDatePayload, param: AbstractParam): Promise<GetAskUserAndCountByDateResult[]>;
|
|
12
11
|
/** 지난달 스토어 결제 중 거래종료 상태가 된 결제목록을 유저 아이디 그룹핑하여 가져오기 */
|
|
13
12
|
getStoreUserAndCountByDate(payload: GetPurchasedInfoUserAndCountByDatePayload, param: AbstractParam): Promise<GetPurchasedInfoUserAndCountByDateResult[]>;
|
|
14
|
-
/** 셀러 거래 내역 추출 (엑셀) */
|
|
15
|
-
searchSellerTransactionHistoryByProcess(payload: SearchSellerTransactionHistoryByProcessPayload, param: AbstractParam): Promise<SearchSellerTransactionHistoryByProcessResult[]>;
|
|
16
13
|
}
|
|
@@ -29,10 +29,6 @@ let AmqpPaymentService = class AmqpPaymentService {
|
|
|
29
29
|
async getStoreUserAndCountByDate(payload, param) {
|
|
30
30
|
return this.amqpManager.call('지난달 스토어 결제 중 거래종료 상태가 된 결제목록을 유저 아이디 그룹핑하여 가져오기', 'purchasedinfos.get.purchase-count-by-date', payload, param, { isErrorThrowing: true });
|
|
31
31
|
}
|
|
32
|
-
/** 셀러 거래 내역 추출 (엑셀) */
|
|
33
|
-
async searchSellerTransactionHistoryByProcess(payload, param) {
|
|
34
|
-
return this.amqpManager.call('셀러 거래 내역 엑셀 추출을 위한 데이터 조회', 'purchasedinfos.get.seller-transaction-history-by-process', payload, param, { isErrorThrowing: true });
|
|
35
|
-
}
|
|
36
32
|
};
|
|
37
33
|
exports.AmqpPaymentService = AmqpPaymentService;
|
|
38
34
|
exports.AmqpPaymentService = AmqpPaymentService = __decorate([
|
|
@@ -7,5 +7,5 @@ export declare class AmqpUserEntityService {
|
|
|
7
7
|
private readonly client;
|
|
8
8
|
private readonly amqpManager;
|
|
9
9
|
constructor(client: ClientProxy);
|
|
10
|
-
|
|
10
|
+
decodePhoneNumbers(payload: DecodePhoneNumbersPayload, param: AbstractParam): Promise<PhoneDecodedData[]>;
|
|
11
11
|
}
|
|
@@ -22,7 +22,7 @@ let AmqpUserEntityService = class AmqpUserEntityService {
|
|
|
22
22
|
this.client = client;
|
|
23
23
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
24
24
|
}
|
|
25
|
-
async
|
|
25
|
+
async decodePhoneNumbers(payload, param) {
|
|
26
26
|
return this.amqpManager.call('휴대폰 번호들 decode', 'user.decode.phone-numbers', payload, param, { isErrorThrowing: true });
|
|
27
27
|
}
|
|
28
28
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './purchasedinfos';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./purchasedinfos"), exports);
|
|
File without changes
|
|
File without changes
|