@yolo-croket-dev/amqp-access 0.0.54 → 0.0.55
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/elastic-service/services/amqp.es-store-item.service.d.ts +18 -0
- package/elastic-service/services/amqp.es-store-item.service.js +60 -0
- package/order-server/amqp.order-server.service.d.ts +3 -1
- package/order-server/amqp.order-server.service.js +4 -0
- package/order-server/dto/purchasedinfos/query/get-p-infos-for-manage-buyer.dto.d.ts +23 -0
- package/order-server/dto/purchasedinfos/query/get-p-infos-for-manage-buyer.dto.js +69 -0
- package/order-server/dto/purchasedinfos/query/index.d.ts +1 -0
- package/order-server/dto/purchasedinfos/query/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { ESStoreItemSearchDataPayload, ESStoreItemSearchDataResult, ESStoreItemCountGroupPayloadDto, ESStoreItemCountGroupResultDto, ESStoreItemRandomSearchDataPayload, ESStoreItemRandomSearchDataResult, ESStoreItemDeleteDataPayloadDto, ESStoreItemDeleteDataResultDto, ESStoreItemUpdateDataByItemNamePayloadDto, ESStoreItemUpdateDataByItemNameResultDto, ESStoreItemCreateDataPayload, ESStoreItemCreateDataResult, ESStoreItemUpdateDataPayload, ESStoreItemUpdateDataResult, ESStoreItemCreateAndUpdateDataBulkPayload } from '../dto/es-store-item-v1';
|
|
4
|
+
export declare class AmqpEsStoreItemV2Service {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
refreshIndex(payload: void, param: AbstractParam): Promise<void>;
|
|
9
|
+
refreshAllDataOnlyPublish(payload: void, param: AbstractParam): Promise<void>;
|
|
10
|
+
searchData(payload: ESStoreItemSearchDataPayload, param: AbstractParam): Promise<ESStoreItemSearchDataResult>;
|
|
11
|
+
countGroup(payload: ESStoreItemCountGroupPayloadDto, param: AbstractParam): Promise<ESStoreItemCountGroupResultDto>;
|
|
12
|
+
createData(payload: ESStoreItemCreateDataPayload, param: AbstractParam): Promise<ESStoreItemCreateDataResult>;
|
|
13
|
+
createAndUpdateBulk(payload: ESStoreItemCreateAndUpdateDataBulkPayload, param: AbstractParam): Promise<void>;
|
|
14
|
+
deleteData(payload: ESStoreItemDeleteDataPayloadDto, param: AbstractParam): Promise<ESStoreItemDeleteDataResultDto>;
|
|
15
|
+
updateData(payload: ESStoreItemUpdateDataPayload, param: AbstractParam): Promise<ESStoreItemUpdateDataResult>;
|
|
16
|
+
updateDataByItemName(payload: ESStoreItemUpdateDataByItemNamePayloadDto, param: AbstractParam): Promise<ESStoreItemUpdateDataByItemNameResultDto>;
|
|
17
|
+
searchRandomData(payload: ESStoreItemRandomSearchDataPayload, param: AbstractParam): Promise<ESStoreItemRandomSearchDataResult>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AmqpEsStoreItemV2Service = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
18
|
+
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
19
|
+
let AmqpEsStoreItemV2Service = class AmqpEsStoreItemV2Service {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async refreshIndex(payload, param) {
|
|
25
|
+
return this.amqpManager.call('es store item v1 index 갱신', 'ES_STORE_ITEM_REFRESH_INDEX', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
async refreshAllDataOnlyPublish(payload, param) {
|
|
28
|
+
this.amqpManager.onlyPublish('es store item v1 전체 데이터 갱신', 'ES_STORE_ITEM_REFRESH_DATA_SUCCESS', payload, param);
|
|
29
|
+
}
|
|
30
|
+
async searchData(payload, param) {
|
|
31
|
+
return this.amqpManager.call('es store item v1 상품 검색', 'ES_STORE_ITEM_SEARCH_DATA', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
async countGroup(payload, param) {
|
|
34
|
+
return this.amqpManager.call('es store item v1 상품 개수 group 검색', 'ES_STORE_ITEM_COUNT_GROUP', payload, param, { isErrorThrowing: true });
|
|
35
|
+
}
|
|
36
|
+
async createData(payload, param) {
|
|
37
|
+
return this.amqpManager.call('es store item v1 상품 생성', 'ES_STORE_ITEM_CREATE_DATA', payload, param, { isErrorThrowing: true });
|
|
38
|
+
}
|
|
39
|
+
async createAndUpdateBulk(payload, param) {
|
|
40
|
+
return this.amqpManager.call('es store item v1 데이터 대량 업데이트', 'ES_STORE_ITEM_CREATE_AND_UPDATE_BULK', payload, param, { isErrorThrowing: true });
|
|
41
|
+
}
|
|
42
|
+
async deleteData(payload, param) {
|
|
43
|
+
return this.amqpManager.call('es store item v1 데이터 삭제', 'ES_STORE_ITEM_DELETE_DATA', payload, param, { isErrorThrowing: true });
|
|
44
|
+
}
|
|
45
|
+
async updateData(payload, param) {
|
|
46
|
+
return this.amqpManager.call('es store item v1 데이터 업데이트', 'ES_STORE_ITEM_UPDATE_DATA', payload, param, { isErrorThrowing: true });
|
|
47
|
+
}
|
|
48
|
+
async updateDataByItemName(payload, param) {
|
|
49
|
+
return this.amqpManager.call('es store item v1 상품명으로 부터 데이터 업데이트', 'ES_STORE_ITEM_UPDATE_DATA_BY_ITEM_NAME', payload, param, { isErrorThrowing: true });
|
|
50
|
+
}
|
|
51
|
+
async searchRandomData(payload, param) {
|
|
52
|
+
return this.amqpManager.call('es store item v1 랜덤 검색', 'ES_STORE_ITEM_RANDOM_SEARCH_DATA', payload, param, { isErrorThrowing: true });
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.AmqpEsStoreItemV2Service = AmqpEsStoreItemV2Service;
|
|
56
|
+
exports.AmqpEsStoreItemV2Service = AmqpEsStoreItemV2Service = __decorate([
|
|
57
|
+
(0, common_1.Injectable)(),
|
|
58
|
+
__param(0, (0, common_1.Inject)('ELASTIC_SERVICE_PROVIDER')),
|
|
59
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
60
|
+
], AmqpEsStoreItemV2Service);
|
|
@@ -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 } from './dto';
|
|
5
|
+
import { SearchSellerTransactionHistoryByProcessPayload, SearchSellerTransactionHistoryByProcessResult, GetPInfosForManageBuyerPayload, GetPInfosForManageBuyerResult } from './dto';
|
|
6
6
|
export declare class AmqpOrderServer {
|
|
7
7
|
private readonly client;
|
|
8
8
|
private readonly amqpManager;
|
|
@@ -11,4 +11,6 @@ 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>;
|
|
14
16
|
}
|
|
@@ -32,6 +32,10 @@ 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
|
+
}
|
|
35
39
|
};
|
|
36
40
|
exports.AmqpOrderServer = AmqpOrderServer;
|
|
37
41
|
exports.AmqpOrderServer = AmqpOrderServer = __decorate([
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
selectPInfoProcessList?: PurchasedProcessEnum[];
|
|
9
|
+
sellerId: string;
|
|
10
|
+
paymentSDate?: Date;
|
|
11
|
+
paymentEDate?: Date;
|
|
12
|
+
searchText?: string;
|
|
13
|
+
limit: number;
|
|
14
|
+
sortType: GetPInfosForManageBuyerSortTypeEnum;
|
|
15
|
+
/** 다음 페이징 토큰 */
|
|
16
|
+
searchAfter?: string;
|
|
17
|
+
/** 이전 페이징 토큰 */
|
|
18
|
+
searchBefore?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class GetPInfosForManageBuyerResult {
|
|
21
|
+
allCount: number;
|
|
22
|
+
datas: PurchasedInfoForSeller[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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, { each: true }),
|
|
26
|
+
(0, class_validator_1.IsArray)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], GetPInfosForManageBuyerPayload.prototype, "selectPInfoProcessList", 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, "limit", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsEnum)(GetPInfosForManageBuyerSortTypeEnum),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], GetPInfosForManageBuyerPayload.prototype, "sortType", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], GetPInfosForManageBuyerPayload.prototype, "searchAfter", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], GetPInfosForManageBuyerPayload.prototype, "searchBefore", void 0);
|
|
67
|
+
class GetPInfosForManageBuyerResult {
|
|
68
|
+
}
|
|
69
|
+
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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
}
|