@yolo-croket-dev/amqp-access 0.4.93 → 0.4.94
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-analytics-aggregation/query/get-analytics-aggregation-refunding-rate-seller-top3.dto.d.ts +17 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/get-analytics-aggregation-refunding-rate-seller-top3.dto.js +24 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/get-analytics-aggregation-transaction-top3.dto.d.ts +21 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/get-analytics-aggregation-transaction-top3.dto.js +24 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/index.d.ts +2 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/index.js +2 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-analytics-aggregation.service.d.ts +3 -1
- package/order-server/services/purchased-info.modules/amqp.purchased-info-analytics-aggregation.service.js +6 -0
- package/package.json +1 -1
- package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +3 -0
- package/user-service/dto/redis-db/command/pull-redis-db.dto.js +7 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +4 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.js +26 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class GetAnalyticsAggregationRefundingRateSellerTop3Payload {
|
|
2
|
+
/** 조회 시작 시간 */
|
|
3
|
+
startedAt: string;
|
|
4
|
+
/** 조회 끝 시간 */
|
|
5
|
+
endedAt: string;
|
|
6
|
+
}
|
|
7
|
+
/** 환불율 인터페이스 */
|
|
8
|
+
export interface RefundingRate {
|
|
9
|
+
sellerId: string;
|
|
10
|
+
storeTitle: string;
|
|
11
|
+
refundingRate: number;
|
|
12
|
+
storeId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetAnalyticsAggregationRefundingRateSellerTop3Result {
|
|
15
|
+
/** 환불율 높은 셀러 Top 3 */
|
|
16
|
+
refundingRateSellerTop3: RefundingRate[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.GetAnalyticsAggregationRefundingRateSellerTop3Payload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetAnalyticsAggregationRefundingRateSellerTop3Payload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetAnalyticsAggregationRefundingRateSellerTop3Payload = GetAnalyticsAggregationRefundingRateSellerTop3Payload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetAnalyticsAggregationRefundingRateSellerTop3Payload.prototype, "startedAt", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsDateString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GetAnalyticsAggregationRefundingRateSellerTop3Payload.prototype, "endedAt", void 0);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class GetAnalyticsAggregationTransactionTop3Payload {
|
|
2
|
+
/** 조회 시작 시간 */
|
|
3
|
+
startedAt: string;
|
|
4
|
+
/** 조회 끝 시간 */
|
|
5
|
+
endedAt: string;
|
|
6
|
+
}
|
|
7
|
+
/** 집계 상품 인터페이스 */
|
|
8
|
+
export interface AggregationProduct {
|
|
9
|
+
/** 상품 아이디 */
|
|
10
|
+
storeItemId: string;
|
|
11
|
+
/** 해당하는 건수 (환불 요청, 구매 등) */
|
|
12
|
+
count: string;
|
|
13
|
+
/** 상품 이름 */
|
|
14
|
+
itemName: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GetAnalyticsAggregationTransactionTop3Result {
|
|
17
|
+
/** 구매가 가장 많은 Top 3 상품 */
|
|
18
|
+
trendingTopProducts: AggregationProduct[];
|
|
19
|
+
/** 환불 요청이 가장 많은 Top 3 상품 */
|
|
20
|
+
refundingTopProducts: AggregationProduct[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.GetAnalyticsAggregationTransactionTop3Payload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetAnalyticsAggregationTransactionTop3Payload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetAnalyticsAggregationTransactionTop3Payload = GetAnalyticsAggregationTransactionTop3Payload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetAnalyticsAggregationTransactionTop3Payload.prototype, "startedAt", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsDateString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GetAnalyticsAggregationTransactionTop3Payload.prototype, "endedAt", void 0);
|
package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/index.js
CHANGED
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-analytics-aggregation-uniq-transaction-user.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-analytics-aggregation-transaction-top3.dto"), exports);
|
|
19
|
+
__exportStar(require("./get-analytics-aggregation-refunding-rate-seller-top3.dto"), exports);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetAnalyticsAggregationUniqTransactionUserPayload, GetAnalyticsAggregationUniqTransactionUserResult } from '../../dto/purchased-info.modules/purchased-info-analytics-aggregation/query';
|
|
3
|
+
import { GetAnalyticsAggregationUniqTransactionUserPayload, GetAnalyticsAggregationUniqTransactionUserResult, GetAnalyticsAggregationTransactionTop3Payload, GetAnalyticsAggregationTransactionTop3Result, GetAnalyticsAggregationRefundingRateSellerTop3Payload, GetAnalyticsAggregationRefundingRateSellerTop3Result } from '../../dto/purchased-info.modules/purchased-info-analytics-aggregation/query';
|
|
4
4
|
export declare class AmqpPurchasedInfoAnalyticsAggregationService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
getUniqTransactionUser(payload: GetAnalyticsAggregationUniqTransactionUserPayload, param: AbstractParam): Promise<GetAnalyticsAggregationUniqTransactionUserResult>;
|
|
9
|
+
getTransactionTop3(payload: GetAnalyticsAggregationTransactionTop3Payload, param: AbstractParam): Promise<GetAnalyticsAggregationTransactionTop3Result>;
|
|
10
|
+
getRefundingRateSellerTop3(payload: GetAnalyticsAggregationRefundingRateSellerTop3Payload, param: AbstractParam): Promise<GetAnalyticsAggregationRefundingRateSellerTop3Result>;
|
|
9
11
|
}
|
|
@@ -24,6 +24,12 @@ let AmqpPurchasedInfoAnalyticsAggregationService = class AmqpPurchasedInfoAnalyt
|
|
|
24
24
|
async getUniqTransactionUser(payload, param) {
|
|
25
25
|
return this.amqpManager.call('구매자, 셀러 유니크 수 조회', 'purchased-info-analytics-aggregation.get.uniq-transaction-user', payload, param, { isErrorThrowing: true });
|
|
26
26
|
}
|
|
27
|
+
async getTransactionTop3(payload, param) {
|
|
28
|
+
return this.amqpManager.call('구매가 가장 많은, 환불요청이 가장 많은 top3 상품 조회', 'purchased-info-analytics-aggregation.get.transaction-top3', payload, param);
|
|
29
|
+
}
|
|
30
|
+
async getRefundingRateSellerTop3(payload, param) {
|
|
31
|
+
return this.amqpManager.call('환불율 높은 셀러 Top 3 조회', 'purchased-info-analytics-aggregation.get.refunding-rate-seller-top3', payload, param);
|
|
32
|
+
}
|
|
27
33
|
};
|
|
28
34
|
exports.AmqpPurchasedInfoAnalyticsAggregationService = AmqpPurchasedInfoAnalyticsAggregationService;
|
|
29
35
|
exports.AmqpPurchasedInfoAnalyticsAggregationService = AmqpPurchasedInfoAnalyticsAggregationService = __decorate([
|
package/package.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PullRedisDBPayload = void 0;
|
|
4
|
+
const push_redis_db_dto_1 = require("./push-redis-db.dto");
|
|
5
|
+
class PullRedisDBPayload extends push_redis_db_dto_1.PushRedisDBPayload {
|
|
6
|
+
}
|
|
7
|
+
exports.PullRedisDBPayload = PullRedisDBPayload;
|
|
@@ -0,0 +1,26 @@
|
|
|
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.PushRedisDBPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class PushRedisDBPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.PushRedisDBPayload = PushRedisDBPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MinLength)(1),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], PushRedisDBPayload.prototype, "redisDBKey", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MinLength)(1),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PushRedisDBPayload.prototype, "value", void 0);
|