@yolo-croket-dev/amqp-access 0.4.70 → 0.4.71
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/package.json +1 -1
- package/payment-service/amqp.payment-service.service.d.ts +3 -1
- package/payment-service/amqp.payment-service.service.js +4 -0
- package/payment-service/dto/purchased-info/query/get-purchased-infos.dto.d.ts +11 -0
- package/payment-service/dto/purchased-info/query/get-purchased-infos.dto.js +51 -0
- package/payment-service/dto/purchased-info/query/index.d.ts +1 -0
- package/payment-service/dto/purchased-info/query/index.js +1 -0
- 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
- package/user-service/dto/user/query/get-users.dto.js +1 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { ClientProxy } from '@nestjs/microservices';
|
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
|
|
3
3
|
import { GetAskUserAndCountByDatePayload, GetAskUserAndCountByDateResult } from '@yolo-croket-dev/dto-v2/payment-service/ask/query';
|
|
4
4
|
import { GetPurchasedInfoUserAndCountByDatePayload, GetPurchasedInfoUserAndCountByDateResult } from '@yolo-croket-dev/dto-v2/payment-service/purchased-info/query';
|
|
5
|
-
import { DeleteSettlesPayload, DeleteSettlesResult, GetLastSteadyStateTransactionPayload, GetLastSteadyStateTransactionResult } from './dto';
|
|
5
|
+
import { DeleteSettlesPayload, DeleteSettlesResult, GetLastSteadyStateTransactionPayload, GetLastSteadyStateTransactionResult, GetPurchasedInfosPayload, GetPurchasedInfosResult } from './dto';
|
|
6
6
|
export declare class AmqpPaymentService {
|
|
7
7
|
private readonly client;
|
|
8
8
|
private readonly amqpManager;
|
|
@@ -15,4 +15,6 @@ export declare class AmqpPaymentService {
|
|
|
15
15
|
deleteSettles(payload: DeleteSettlesPayload, param: AbstractParam): Promise<DeleteSettlesResult>;
|
|
16
16
|
/** 유저의 가장 마지막 정상 상태의 거래건 조회 */
|
|
17
17
|
getLastSteadyStateTransaction(payload: GetLastSteadyStateTransactionPayload, param: AbstractParam): Promise<GetLastSteadyStateTransactionResult | null>;
|
|
18
|
+
/** PurchasedInfo 필터에 맞게 목록 조회 */
|
|
19
|
+
getPurchasedInfos<PurchasedInfoEntityGenericType>(payload: GetPurchasedInfosPayload, param: AbstractParam): Promise<GetPurchasedInfosResult<PurchasedInfoEntityGenericType>>;
|
|
18
20
|
}
|
|
@@ -37,6 +37,10 @@ let AmqpPaymentService = class AmqpPaymentService {
|
|
|
37
37
|
async getLastSteadyStateTransaction(payload, param) {
|
|
38
38
|
return this.amqpManager.call('유저의 가장 마지막 정상 상태의 거래건 조회', 'purchasedinfos.get.last-steady-state-transaction', payload, param, { isErrorThrowing: true });
|
|
39
39
|
}
|
|
40
|
+
/** PurchasedInfo 필터에 맞게 목록 조회 */
|
|
41
|
+
async getPurchasedInfos(payload, param) {
|
|
42
|
+
return this.amqpManager.call('PurchasedInfo 필터에 맞게 목록 조회', 'purchasedinfos.get', payload, param, { isErrorThrowing: true });
|
|
43
|
+
}
|
|
40
44
|
};
|
|
41
45
|
exports.AmqpPaymentService = AmqpPaymentService;
|
|
42
46
|
exports.AmqpPaymentService = AmqpPaymentService = __decorate([
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PurchasedInfoEntity } from '@yolo-croket-dev/entity-v2/purchased-info';
|
|
2
|
+
import { FilterQuery } from '../../../../user-service/dto';
|
|
3
|
+
export declare class GetPurchasedInfosPayload {
|
|
4
|
+
query?: FilterQuery[];
|
|
5
|
+
projection?: string[];
|
|
6
|
+
lastId?: string;
|
|
7
|
+
sort?: number;
|
|
8
|
+
order?: string;
|
|
9
|
+
limit: number;
|
|
10
|
+
}
|
|
11
|
+
export type GetPurchasedInfosResult<T> = Partial<PurchasedInfoEntity[]> | T[];
|
|
@@ -0,0 +1,51 @@
|
|
|
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.GetPurchasedInfosPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const dto_1 = require("../../../../user-service/dto");
|
|
16
|
+
class GetPurchasedInfosPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.GetPurchasedInfosPayload = GetPurchasedInfosPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
22
|
+
(0, class_transformer_1.Type)(() => dto_1.FilterQuery),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], GetPurchasedInfosPayload.prototype, "query", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], GetPurchasedInfosPayload.prototype, "projection", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsMongoId)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], GetPurchasedInfosPayload.prototype, "lastId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsIn)([
|
|
38
|
+
1,
|
|
39
|
+
-1,
|
|
40
|
+
]),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], GetPurchasedInfosPayload.prototype, "sort", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], GetPurchasedInfosPayload.prototype, "order", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsNumber)(),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], GetPurchasedInfosPayload.prototype, "limit", void 0);
|
|
@@ -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("./get-purchased-info-for-partial-refund.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-purchased-infos.dto"), exports);
|
|
@@ -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);
|
|
@@ -39,6 +39,7 @@ __decorate([
|
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], FilterQuery.prototype, "operator", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
43
|
(0, class_validator_1.IsString)()
|
|
43
44
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
45
|
,
|