@yolo-croket-dev/amqp-access 0.0.93-jun.16 → 0.0.93-jun.18
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/pay-try-test-log/index.d.ts +1 -0
- package/order-server/dto/pay-try-test-log/index.js +1 -0
- package/order-server/dto/pay-try-test-log/query/get-pay-try-test-log-by-id.dto.d.ts +7 -0
- package/order-server/dto/pay-try-test-log/query/get-pay-try-test-log-by-id.dto.js +23 -0
- package/order-server/dto/pay-try-test-log/query/index.d.ts +1 -0
- package/order-server/dto/pay-try-test-log/query/index.js +17 -0
- package/order-server/services/amqp.pay-try-test-log.service.d.ts +2 -1
- package/order-server/services/amqp.pay-try-test-log.service.js +5 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
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.GetPayTryTestLogByIdResult = exports.GetPayTryTestLogByIdPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetPayTryTestLogByIdPayload {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_validator_1.IsMongoId)(),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], GetPayTryTestLogByIdPayload.prototype, "payTryLogId", void 0);
|
|
20
|
+
exports.GetPayTryTestLogByIdPayload = GetPayTryTestLogByIdPayload;
|
|
21
|
+
class GetPayTryTestLogByIdResult {
|
|
22
|
+
}
|
|
23
|
+
exports.GetPayTryTestLogByIdResult = GetPayTryTestLogByIdResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-pay-try-test-log-by-id.dto';
|
|
@@ -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-pay-try-test-log-by-id.dto"), exports);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreatePayTryTestLogPayload, CreatePayTryTestLogResult } from '../dto/pay-try-test-log';
|
|
3
|
+
import { CreatePayTryTestLogPayload, CreatePayTryTestLogResult, GetPayTryTestLogByIdPayload, GetPayTryTestLogByIdResult } from '../dto/pay-try-test-log';
|
|
4
4
|
export declare class AmqpPayTryLogTestService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
createPayTryTestLog(payload: CreatePayTryTestLogPayload, param: AbstractParam): Promise<CreatePayTryTestLogResult>;
|
|
9
|
+
getPayTryTestLogById(payload: GetPayTryTestLogByIdPayload, param: AbstractParam): Promise<GetPayTryTestLogByIdResult>;
|
|
9
10
|
}
|
|
@@ -23,7 +23,11 @@ let AmqpPayTryLogTestService = class AmqpPayTryLogTestService {
|
|
|
23
23
|
}
|
|
24
24
|
async createPayTryTestLog(payload, param) {
|
|
25
25
|
// eslint-disable-next-line max-len
|
|
26
|
-
return this.amqpManager.call('
|
|
26
|
+
return this.amqpManager.call('테스트 결제 로그 생성', 'pay-try-test-log.create', payload, param, { isErrorThrowing: true });
|
|
27
|
+
}
|
|
28
|
+
async getPayTryTestLogById(payload, param) {
|
|
29
|
+
// eslint-disable-next-line max-len
|
|
30
|
+
return this.amqpManager.call('테스트 결제 로그 조회 by id', 'pay-try-test-log.get.by-id', payload, param, { isErrorThrowing: true });
|
|
27
31
|
}
|
|
28
32
|
};
|
|
29
33
|
AmqpPayTryLogTestService = __decorate([
|