@yolo-croket-dev/amqp-access 0.0.145 → 0.0.147
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 +1 -3
- package/order-server/amqp.order-server.service.js +0 -4
- package/order-server/dto/purchasedinfos/query/atlas/get-facet-p-infos-for-manage-buyer-by-atlas.dto.d.ts +15 -0
- package/order-server/dto/purchasedinfos/query/atlas/get-facet-p-infos-for-manage-buyer-by-atlas.dto.js +42 -0
- package/order-server/dto/purchasedinfos/query/{get-p-infos-for-manage-buyer.dto.d.ts → atlas/get-p-infos-for-manage-buyer-by-atlas.dto.d.ts} +4 -5
- package/order-server/dto/purchasedinfos/query/{get-p-infos-for-manage-buyer.dto.js → atlas/get-p-infos-for-manage-buyer-by-atlas.dto.js} +21 -25
- package/order-server/dto/purchasedinfos/query/atlas/index.d.ts +2 -0
- package/order-server/dto/purchasedinfos/query/atlas/index.js +2 -0
- package/order-server/dto/purchasedinfos/query/index.d.ts +0 -1
- package/order-server/dto/purchasedinfos/query/index.js +0 -1
- package/order-server/services/amqp.purchased-info.service.d.ts +3 -1
- package/order-server/services/amqp.purchased-info.service.js +6 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ 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
|
|
5
|
+
import { SearchSellerTransactionHistoryByProcessPayload, SearchSellerTransactionHistoryByProcessResult } from './dto';
|
|
6
6
|
export declare class AmqpOrderServer {
|
|
7
7
|
private readonly client;
|
|
8
8
|
private readonly amqpManager;
|
|
@@ -11,6 +11,4 @@ export declare class AmqpOrderServer {
|
|
|
11
11
|
getPurchasedInfosForBulkNoti(payload: GetPurchasedInfosForBulkNotiPayload, param: AbstractParam): Promise<GetPurchasedInfosForBulkNotiResult>;
|
|
12
12
|
/** 셀러 거래 내역 추출 (엑셀 생성에 쓰임) */
|
|
13
13
|
searchSellerTransactionHistoryByProcess(payload: SearchSellerTransactionHistoryByProcessPayload, param: AbstractParam): Promise<SearchSellerTransactionHistoryByProcessResult[]>;
|
|
14
|
-
/** 구매자 관리 조회 api */
|
|
15
|
-
getPInfosForManageBuyer(payload: GetPInfosForManageBuyerPayload, param: AbstractParam): Promise<GetPInfosForManageBuyerResult>;
|
|
16
14
|
}
|
|
@@ -32,10 +32,6 @@ let AmqpOrderServer = class AmqpOrderServer {
|
|
|
32
32
|
async searchSellerTransactionHistoryByProcess(payload, param) {
|
|
33
33
|
return this.amqpManager.call('셀러 거래 내역 데이터 조회', 'purchasedinfos.get.seller-transaction-history-by-process', payload, param, { isErrorThrowing: true });
|
|
34
34
|
}
|
|
35
|
-
/** 구매자 관리 조회 api */
|
|
36
|
-
async getPInfosForManageBuyer(payload, param) {
|
|
37
|
-
return this.amqpManager.call('셀러 거래 내역 데이터 조회', 'purchased-info.get.p-infos-for-manage-buyer', payload, param, { isErrorThrowing: true });
|
|
38
|
-
}
|
|
39
35
|
};
|
|
40
36
|
AmqpOrderServer = __decorate([
|
|
41
37
|
(0, common_1.Injectable)(),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PurchasedProcessEnum } from '@yolo-croket-dev/entity/src/purchased-info/purchased-info.entity';
|
|
2
|
+
export interface FacetPInfo {
|
|
3
|
+
process: string;
|
|
4
|
+
count: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class GetFacetPInfosForManageBuyerByAtlasPayload {
|
|
7
|
+
selectPInfoProcessList?: PurchasedProcessEnum[];
|
|
8
|
+
paymentSDate?: Date;
|
|
9
|
+
paymentEDate?: Date;
|
|
10
|
+
searchText?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class GetFacetPInfosForManageBuyerByAtlasResult {
|
|
13
|
+
allCount: number;
|
|
14
|
+
facets: FacetPInfo[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.GetFacetPInfosForManageBuyerByAtlasResult = exports.GetFacetPInfosForManageBuyerByAtlasPayload = 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
|
+
class GetFacetPInfosForManageBuyerByAtlasPayload {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsEnum)(purchased_info_entity_1.PurchasedProcessEnum, { each: true }),
|
|
20
|
+
(0, class_validator_1.IsArray)(),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], GetFacetPInfosForManageBuyerByAtlasPayload.prototype, "selectPInfoProcessList", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsDateString)(),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], GetFacetPInfosForManageBuyerByAtlasPayload.prototype, "paymentSDate", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsDateString)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], GetFacetPInfosForManageBuyerByAtlasPayload.prototype, "paymentEDate", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], GetFacetPInfosForManageBuyerByAtlasPayload.prototype, "searchText", void 0);
|
|
39
|
+
exports.GetFacetPInfosForManageBuyerByAtlasPayload = GetFacetPInfosForManageBuyerByAtlasPayload;
|
|
40
|
+
class GetFacetPInfosForManageBuyerByAtlasResult {
|
|
41
|
+
}
|
|
42
|
+
exports.GetFacetPInfosForManageBuyerByAtlasResult = GetFacetPInfosForManageBuyerByAtlasResult;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { PurchasedProcessEnum } from '@yolo-croket-dev/entity/src/purchased-info/purchased-info.entity';
|
|
2
2
|
import { PurchasedInfoForSeller } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info-for-seller.entity';
|
|
3
|
-
export declare enum
|
|
3
|
+
export declare enum GetPInfosForManageBuyerByAtlasSortTypeEnum {
|
|
4
4
|
'최신순' = "\uCD5C\uC2E0\uC21C",
|
|
5
5
|
'구매자 이름순' = "\uAD6C\uB9E4\uC790 \uC774\uB984\uC21C",
|
|
6
6
|
'상품명순' = "\uC0C1\uD488\uBA85\uC21C",
|
|
7
7
|
'진행 상태순' = "\uC9C4\uD589 \uC0C1\uD0DC\uC21C"
|
|
8
8
|
}
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class GetPInfosForManageBuyerByAtlasPayload {
|
|
10
10
|
selectPInfoProcessList?: PurchasedProcessEnum[];
|
|
11
|
-
sellerId: string;
|
|
12
11
|
paymentSDate?: Date;
|
|
13
12
|
paymentEDate?: Date;
|
|
14
13
|
searchText?: string;
|
|
15
14
|
limit: number;
|
|
16
|
-
sortType:
|
|
15
|
+
sortType: GetPInfosForManageBuyerByAtlasSortTypeEnum;
|
|
17
16
|
/** 다음 페이징 토큰 */
|
|
18
17
|
searchAfter?: string;
|
|
19
18
|
/** 이전 페이징 토큰 */
|
|
20
19
|
searchBefore?: string;
|
|
21
20
|
}
|
|
22
|
-
export declare class
|
|
21
|
+
export declare class GetPInfosForManageBuyerByAtlasResult {
|
|
23
22
|
allCount: number;
|
|
24
23
|
datas: PurchasedInfoForSeller[];
|
|
25
24
|
}
|
|
@@ -9,63 +9,59 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.GetPInfosForManageBuyerByAtlasResult = exports.GetPInfosForManageBuyerByAtlasPayload = exports.GetPInfosForManageBuyerByAtlasSortTypeEnum = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
// @entity
|
|
15
15
|
const purchased_info_entity_1 = require("@yolo-croket-dev/entity/src/purchased-info/purchased-info.entity");
|
|
16
|
-
var
|
|
17
|
-
(function (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})(
|
|
23
|
-
class
|
|
16
|
+
var GetPInfosForManageBuyerByAtlasSortTypeEnum;
|
|
17
|
+
(function (GetPInfosForManageBuyerByAtlasSortTypeEnum) {
|
|
18
|
+
GetPInfosForManageBuyerByAtlasSortTypeEnum["\uCD5C\uC2E0\uC21C"] = "\uCD5C\uC2E0\uC21C";
|
|
19
|
+
GetPInfosForManageBuyerByAtlasSortTypeEnum["\uAD6C\uB9E4\uC790 \uC774\uB984\uC21C"] = "\uAD6C\uB9E4\uC790 \uC774\uB984\uC21C";
|
|
20
|
+
GetPInfosForManageBuyerByAtlasSortTypeEnum["\uC0C1\uD488\uBA85\uC21C"] = "\uC0C1\uD488\uBA85\uC21C";
|
|
21
|
+
GetPInfosForManageBuyerByAtlasSortTypeEnum["\uC9C4\uD589 \uC0C1\uD0DC\uC21C"] = "\uC9C4\uD589 \uC0C1\uD0DC\uC21C";
|
|
22
|
+
})(GetPInfosForManageBuyerByAtlasSortTypeEnum = exports.GetPInfosForManageBuyerByAtlasSortTypeEnum || (exports.GetPInfosForManageBuyerByAtlasSortTypeEnum = {}));
|
|
23
|
+
class GetPInfosForManageBuyerByAtlasPayload {
|
|
24
24
|
}
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.IsEnum)(purchased_info_entity_1.PurchasedProcessEnum, { each: true }),
|
|
27
27
|
(0, class_validator_1.IsArray)(),
|
|
28
28
|
(0, class_validator_1.IsOptional)(),
|
|
29
29
|
__metadata("design:type", Array)
|
|
30
|
-
],
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, class_validator_1.IsMongoId)(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], GetPInfosForManageBuyerPayload.prototype, "sellerId", void 0);
|
|
30
|
+
], GetPInfosForManageBuyerByAtlasPayload.prototype, "selectPInfoProcessList", void 0);
|
|
35
31
|
__decorate([
|
|
36
32
|
(0, class_validator_1.IsDateString)(),
|
|
37
33
|
(0, class_validator_1.IsOptional)(),
|
|
38
34
|
__metadata("design:type", Date)
|
|
39
|
-
],
|
|
35
|
+
], GetPInfosForManageBuyerByAtlasPayload.prototype, "paymentSDate", void 0);
|
|
40
36
|
__decorate([
|
|
41
37
|
(0, class_validator_1.IsDateString)(),
|
|
42
38
|
(0, class_validator_1.IsOptional)(),
|
|
43
39
|
__metadata("design:type", Date)
|
|
44
|
-
],
|
|
40
|
+
], GetPInfosForManageBuyerByAtlasPayload.prototype, "paymentEDate", void 0);
|
|
45
41
|
__decorate([
|
|
46
42
|
(0, class_validator_1.IsString)(),
|
|
47
43
|
(0, class_validator_1.IsOptional)(),
|
|
48
44
|
__metadata("design:type", String)
|
|
49
|
-
],
|
|
45
|
+
], GetPInfosForManageBuyerByAtlasPayload.prototype, "searchText", void 0);
|
|
50
46
|
__decorate([
|
|
51
47
|
(0, class_validator_1.IsNumber)(),
|
|
52
48
|
__metadata("design:type", Number)
|
|
53
|
-
],
|
|
49
|
+
], GetPInfosForManageBuyerByAtlasPayload.prototype, "limit", void 0);
|
|
54
50
|
__decorate([
|
|
55
|
-
(0, class_validator_1.IsEnum)(
|
|
51
|
+
(0, class_validator_1.IsEnum)(GetPInfosForManageBuyerByAtlasSortTypeEnum),
|
|
56
52
|
__metadata("design:type", String)
|
|
57
|
-
],
|
|
53
|
+
], GetPInfosForManageBuyerByAtlasPayload.prototype, "sortType", void 0);
|
|
58
54
|
__decorate([
|
|
59
55
|
(0, class_validator_1.IsString)(),
|
|
60
56
|
(0, class_validator_1.IsOptional)(),
|
|
61
57
|
__metadata("design:type", String)
|
|
62
|
-
],
|
|
58
|
+
], GetPInfosForManageBuyerByAtlasPayload.prototype, "searchAfter", void 0);
|
|
63
59
|
__decorate([
|
|
64
60
|
(0, class_validator_1.IsString)(),
|
|
65
61
|
(0, class_validator_1.IsOptional)(),
|
|
66
62
|
__metadata("design:type", String)
|
|
67
|
-
],
|
|
68
|
-
exports.
|
|
69
|
-
class
|
|
63
|
+
], GetPInfosForManageBuyerByAtlasPayload.prototype, "searchBefore", void 0);
|
|
64
|
+
exports.GetPInfosForManageBuyerByAtlasPayload = GetPInfosForManageBuyerByAtlasPayload;
|
|
65
|
+
class GetPInfosForManageBuyerByAtlasResult {
|
|
70
66
|
}
|
|
71
|
-
exports.
|
|
67
|
+
exports.GetPInfosForManageBuyerByAtlasResult = GetPInfosForManageBuyerByAtlasResult;
|
|
@@ -4,3 +4,5 @@ export * from './get-p-info-all-settle-amount-by-atlas.dto';
|
|
|
4
4
|
export * from './get-p-info-done-settle-amount-by-atlas.dto';
|
|
5
5
|
export * from './get-p-info-expect-settle-amount-by-atlas.dto';
|
|
6
6
|
export * from './get-p-info-accumulated-settle-amount-by-atlas.dto';
|
|
7
|
+
export * from './get-p-infos-for-manage-buyer-by-atlas.dto';
|
|
8
|
+
export * from './get-facet-p-infos-for-manage-buyer-by-atlas.dto';
|
|
@@ -20,3 +20,5 @@ __exportStar(require("./get-p-info-all-settle-amount-by-atlas.dto"), exports);
|
|
|
20
20
|
__exportStar(require("./get-p-info-done-settle-amount-by-atlas.dto"), exports);
|
|
21
21
|
__exportStar(require("./get-p-info-expect-settle-amount-by-atlas.dto"), exports);
|
|
22
22
|
__exportStar(require("./get-p-info-accumulated-settle-amount-by-atlas.dto"), exports);
|
|
23
|
+
__exportStar(require("./get-p-infos-for-manage-buyer-by-atlas.dto"), exports);
|
|
24
|
+
__exportStar(require("./get-facet-p-infos-for-manage-buyer-by-atlas.dto"), exports);
|
|
@@ -15,6 +15,5 @@ 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);
|
|
19
18
|
__exportStar(require("./atlas"), exports);
|
|
20
19
|
__exportStar(require("./get-partial-refund-processes-by-public-ids.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult } from '../dto/purchasedinfos';
|
|
3
|
+
import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult } from '../dto/purchasedinfos';
|
|
4
4
|
export declare class AmqpPurchasedInfoService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -12,4 +12,6 @@ export declare class AmqpPurchasedInfoService {
|
|
|
12
12
|
getPInfoExpectSettleAmountByAtlas(payload: GetPInfoExpectSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetPInfoExpectSettleAmountByAtlasResult>;
|
|
13
13
|
getPInfoAccumulatedSettleAmountByAtlas(payload: GetPInfoAccumulatedSettleAmountByAtlasPayload, param: AbstractParam): Promise<GetPInfoAccumulatedSettleAmountByAtlasResult>;
|
|
14
14
|
getPartialRefundProcessesByPublicIds(payload: GetPartialRefundProcessesByPublicIdsPayload, param: AbstractParam): Promise<GetPartialRefundProcessesByPublicIdsResult>;
|
|
15
|
+
getPInfosForManageBuyerByAtlas(payload: GetPInfosForManageBuyerByAtlasPayload, param: AbstractParam): Promise<GetPInfosForManageBuyerByAtlasResult>;
|
|
16
|
+
getFacetPInfosForManageBuyerByAtlas(payload: GetFacetPInfosForManageBuyerByAtlasPayload, param: AbstractParam): Promise<GetFacetPInfosForManageBuyerByAtlasResult>;
|
|
15
17
|
}
|
|
@@ -42,6 +42,12 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
|
|
|
42
42
|
async getPartialRefundProcessesByPublicIds(payload, param) {
|
|
43
43
|
return this.amqpManager.call('결제 정보 - 부분환불 프로세스 리스트 조회 - 결제 아이디들로', 'purchased-info.get.partial-refund-processes-by-public-ids', payload, param, { isErrorThrowing: true });
|
|
44
44
|
}
|
|
45
|
+
async getPInfosForManageBuyerByAtlas(payload, param) {
|
|
46
|
+
return this.amqpManager.call('셀러의 구매자 관리 데이터 조회 api (atlas)', 'purchased-info.get.p-infos-for-manage-buyer-by-atlas', payload, param, { isErrorThrowing: true });
|
|
47
|
+
}
|
|
48
|
+
async getFacetPInfosForManageBuyerByAtlas(payload, param) {
|
|
49
|
+
return this.amqpManager.call('셀러의 구매자 관리 facet 조회 api (atlas)', 'purchased-info.get.facet-p-infos-for-manage-buyer-by-atlas', payload, param, { isErrorThrowing: true });
|
|
50
|
+
}
|
|
45
51
|
};
|
|
46
52
|
AmqpPurchasedInfoService = __decorate([
|
|
47
53
|
(0, common_1.Injectable)(),
|