@yolo-croket-dev/amqp-access 0.7.93 → 0.7.95
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/purchased-info.modules/purchased-info-admin/query/get-p-infos-by-yg-type.dto.d.ts +44 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-p-infos-by-yg-type.dto.js +45 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/index.js +1 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.d.ts +2 -1
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PurchasedInfoEntity } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
|
|
2
|
+
import { StoreEntity } from '@yolo-croket-dev/entity/src/store';
|
|
3
|
+
import { StoreItem } from '@yolo-croket-dev/entity/src/store-item';
|
|
4
|
+
import { UserEntity } from '@yolo-croket-dev/entity-v2/user/user.entity';
|
|
5
|
+
export declare class GetPInfosByYgTypePayload {
|
|
6
|
+
/** 필수: inflowInfo.yg_type */
|
|
7
|
+
yg_type: string;
|
|
8
|
+
/** 선택: inflowInfo.yg_method */
|
|
9
|
+
yg_method?: string;
|
|
10
|
+
searchAfterToken?: string;
|
|
11
|
+
searchBeforeToken?: string;
|
|
12
|
+
limit?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class GetPInfosByYgTypeResult {
|
|
15
|
+
allCount: number;
|
|
16
|
+
datas: SearchedPInfoByYgType[];
|
|
17
|
+
}
|
|
18
|
+
export type SearchedStoreByYgType = Pick<StoreEntity, '_id' | 'storeTitle' | 'adminId'>;
|
|
19
|
+
export type SearchedItemInfoByYgType = Pick<StoreItem, '_id' | 'bookNums' | 'itemName'>;
|
|
20
|
+
export type SearchedSellerInfoByYgType = Pick<UserEntity, '_id' | 'username'>;
|
|
21
|
+
export type SearchedPInfoByYgType = Pick<PurchasedInfoEntity, '_id' | 'process' | 'itemId' | 'sellerId' | 'paidPrice' | 'pastName' | 'totalPrice' | 'paymentDate' | 'couponInfo' | 'usedCredit' | 'pOptionInfo' | 'proceedsInfo'> & {
|
|
22
|
+
searchedItemInfo: SearchedItemInfoByYgType;
|
|
23
|
+
searchedSellerInfo: SearchedSellerInfoByYgType;
|
|
24
|
+
searchedStoreInfo: SearchedStoreByYgType;
|
|
25
|
+
paginationToken: string;
|
|
26
|
+
/** @description yg_type (유입 타입) */
|
|
27
|
+
yg_type?: string;
|
|
28
|
+
/** @description yg_method (유입 방식) */
|
|
29
|
+
yg_method?: string;
|
|
30
|
+
/** @description Last_source (마지막 외부 유입 소스) */
|
|
31
|
+
lastSource?: string;
|
|
32
|
+
/** @description Last_medium (마지막 외부 유입 매체) */
|
|
33
|
+
lastMedium?: string;
|
|
34
|
+
/** @description Last_campaign (마지막 외부 유입 캠페인) */
|
|
35
|
+
lastCampaign?: string;
|
|
36
|
+
/** @description 메인 카테고리 */
|
|
37
|
+
mainCategory?: string;
|
|
38
|
+
/** @description 서브 카테고리 */
|
|
39
|
+
subCategory?: string;
|
|
40
|
+
/** @description 브랜드명 */
|
|
41
|
+
brandName?: string;
|
|
42
|
+
/** @description 영문 브랜드명 */
|
|
43
|
+
engBrandName?: string;
|
|
44
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
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.GetPInfosByYgTypeResult = exports.GetPInfosByYgTypePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetPInfosByYgTypePayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetPInfosByYgTypePayload = GetPInfosByYgTypePayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GetPInfosByYgTypePayload.prototype, "yg_type", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], GetPInfosByYgTypePayload.prototype, "yg_method", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], GetPInfosByYgTypePayload.prototype, "searchAfterToken", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GetPInfosByYgTypePayload.prototype, "searchBeforeToken", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.Max)(1000),
|
|
39
|
+
(0, class_validator_1.IsNumber)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], GetPInfosByYgTypePayload.prototype, "limit", void 0);
|
|
43
|
+
class GetPInfosByYgTypeResult {
|
|
44
|
+
}
|
|
45
|
+
exports.GetPInfosByYgTypeResult = GetPInfosByYgTypeResult;
|
|
@@ -2,3 +2,4 @@ export * from './get-purchased-infos-for-admin.dto';
|
|
|
2
2
|
export * from './get-purchased-info-detail-for-admin-edit.dto';
|
|
3
3
|
export * from './get-purchased-info-logs-for-coupon-info.dto';
|
|
4
4
|
export * from './get-delivery-list-for-admin.dto';
|
|
5
|
+
export * from './get-p-infos-by-yg-type.dto';
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./get-purchased-infos-for-admin.dto"), exports);
|
|
|
18
18
|
__exportStar(require("./get-purchased-info-detail-for-admin-edit.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-purchased-info-logs-for-coupon-info.dto"), exports);
|
|
20
20
|
__exportStar(require("./get-delivery-list-for-admin.dto"), exports);
|
|
21
|
+
__exportStar(require("./get-p-infos-by-yg-type.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload, EditPInfoUsedCouponInfoPayload, DeletePInfoUsedCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoResult, UpdateProcessFinishedToCancelledPayload, GetDeliveryListForAdminPayload, GetDeliveryListForAdminResult, UpsertInvoiceForAdminPayload, DeleteInvoiceForAdminPayload, UpsertSplitInvoiceForAdminPayload, DeleteSplitInvoiceForAdminPayload, TransferPInfoSellerPayload } from '../../dto/purchased-info.modules/purchased-info-admin';
|
|
3
|
+
import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload, EditPInfoUsedCouponInfoPayload, DeletePInfoUsedCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoResult, UpdateProcessFinishedToCancelledPayload, GetDeliveryListForAdminPayload, GetDeliveryListForAdminResult, UpsertInvoiceForAdminPayload, DeleteInvoiceForAdminPayload, UpsertSplitInvoiceForAdminPayload, DeleteSplitInvoiceForAdminPayload, TransferPInfoSellerPayload, GetPInfosByYgTypePayload, GetPInfosByYgTypeResult } from '../../dto/purchased-info.modules/purchased-info-admin';
|
|
4
4
|
export declare class AmqpPurchasedInfoAdminService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -23,4 +23,5 @@ export declare class AmqpPurchasedInfoAdminService {
|
|
|
23
23
|
upsertSplitInvoiceForAdmin(payload: UpsertSplitInvoiceForAdminPayload, param: AbstractParam): Promise<void>;
|
|
24
24
|
deleteSplitInvoiceForAdmin(payload: DeleteSplitInvoiceForAdminPayload, param: AbstractParam): Promise<void>;
|
|
25
25
|
transferPInfoSeller(payload: TransferPInfoSellerPayload, param: AbstractParam): Promise<void>;
|
|
26
|
+
getPInfosByYgType(payload: GetPInfosByYgTypePayload, param: AbstractParam): Promise<GetPInfosByYgTypeResult>;
|
|
26
27
|
}
|
|
@@ -75,6 +75,9 @@ let AmqpPurchasedInfoAdminService = class AmqpPurchasedInfoAdminService {
|
|
|
75
75
|
async transferPInfoSeller(payload, param) {
|
|
76
76
|
return this.amqpManager.call('관리자용 결제정보 셀러 변경', 'purchased-info-admin.transfer.seller', payload, param, { isErrorThrowing: true });
|
|
77
77
|
}
|
|
78
|
+
async getPInfosByYgType(payload, param) {
|
|
79
|
+
return this.amqpManager.call('yg_type/yg_method 기반 결제정보 조회 (관리자)', 'purchased-info-admin.get.p-infos-by-yg-type', payload, param, { isErrorThrowing: true });
|
|
80
|
+
}
|
|
78
81
|
};
|
|
79
82
|
exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService;
|
|
80
83
|
exports.AmqpPurchasedInfoAdminService = AmqpPurchasedInfoAdminService = __decorate([
|