@yolo-croket-dev/amqp-access 0.4.91 → 0.4.92
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.module.js +2 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/get-analytics-aggregation-uniq-transaction-user.dto.d.ts +12 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/get-analytics-aggregation-uniq-transaction-user.dto.js +24 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/index.js +17 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-analytics-aggregation.service.d.ts +9 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-analytics-aggregation.service.js +33 -0
- package/order-server/services/purchased-info.modules/index.d.ts +1 -0
- package/order-server/services/purchased-info.modules/index.js +1 -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
|
@@ -30,6 +30,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
30
30
|
services_1.AmqpPurchaseReceiptService,
|
|
31
31
|
services_1.AmqpPurchasedInfoAdminService,
|
|
32
32
|
services_1.AmqpChangedPurchasedOptionLogService,
|
|
33
|
+
services_1.AmqpPurchasedInfoAnalyticsAggregationService,
|
|
33
34
|
],
|
|
34
35
|
exports: [
|
|
35
36
|
amqp_order_server_provider_1.OrderServerProvider,
|
|
@@ -45,6 +46,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
45
46
|
services_1.AmqpPurchaseReceiptService,
|
|
46
47
|
services_1.AmqpPurchasedInfoAdminService,
|
|
47
48
|
services_1.AmqpChangedPurchasedOptionLogService,
|
|
49
|
+
services_1.AmqpPurchasedInfoAnalyticsAggregationService,
|
|
48
50
|
],
|
|
49
51
|
})
|
|
50
52
|
], AmqpOrderServerModule);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class GetAnalyticsAggregationUniqTransactionUserPayload {
|
|
2
|
+
/** 조회 시작 시간 */
|
|
3
|
+
startedAt: string;
|
|
4
|
+
/** 조회 끝 시간 */
|
|
5
|
+
endedAt: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GetAnalyticsAggregationUniqTransactionUserResult {
|
|
8
|
+
/** 구매자 수 */
|
|
9
|
+
totalUniqueBuyerCount: number;
|
|
10
|
+
/** 1건이라도 판매한 셀러 수 */
|
|
11
|
+
totalUniqueSellerCount: number;
|
|
12
|
+
}
|
|
@@ -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.GetAnalyticsAggregationUniqTransactionUserPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetAnalyticsAggregationUniqTransactionUserPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetAnalyticsAggregationUniqTransactionUserPayload = GetAnalyticsAggregationUniqTransactionUserPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetAnalyticsAggregationUniqTransactionUserPayload.prototype, "startedAt", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsDateString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GetAnalyticsAggregationUniqTransactionUserPayload.prototype, "endedAt", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-analytics-aggregation-uniq-transaction-user.dto';
|
package/order-server/dto/purchased-info.modules/purchased-info-analytics-aggregation/query/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
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("./get-analytics-aggregation-uniq-transaction-user.dto"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { GetAnalyticsAggregationUniqTransactionUserPayload, GetAnalyticsAggregationUniqTransactionUserResult } from '../../dto/purchased-info.modules/purchased-info-analytics-aggregation/query';
|
|
4
|
+
export declare class AmqpPurchasedInfoAnalyticsAggregationService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
getUniqTransactionUser(payload: GetAnalyticsAggregationUniqTransactionUserPayload, param: AbstractParam): Promise<GetAnalyticsAggregationUniqTransactionUserResult>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.AmqpPurchasedInfoAnalyticsAggregationService = 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 AmqpPurchasedInfoAnalyticsAggregationService = class AmqpPurchasedInfoAnalyticsAggregationService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async getUniqTransactionUser(payload, param) {
|
|
25
|
+
return this.amqpManager.call('구매자, 셀러 유니크 수 조회', 'purchased-info-analytics-aggregation.get.uniq-transaction-user', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AmqpPurchasedInfoAnalyticsAggregationService = AmqpPurchasedInfoAnalyticsAggregationService;
|
|
29
|
+
exports.AmqpPurchasedInfoAnalyticsAggregationService = AmqpPurchasedInfoAnalyticsAggregationService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpPurchasedInfoAnalyticsAggregationService);
|
|
@@ -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("./amqp.purchased-info-admin.service"), exports);
|
|
18
|
+
__exportStar(require("./amqp.purchased-info-analytics-aggregation.service"), exports);
|
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);
|