@yolo-croket-dev/amqp-access 0.5.78 → 0.5.79
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/user-service/dto/insurance/query/get-insurance-except-category.dto.d.ts +11 -0
- package/user-service/dto/insurance/query/get-insurance-except-category.dto.js +21 -0
- package/user-service/dto/insurance/query/index.d.ts +1 -0
- package/user-service/dto/insurance/query/index.js +1 -0
- package/user-service/services/amqp.insurance.service.d.ts +2 -1
- package/user-service/services/amqp.insurance.service.js +3 -0
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class GetInsuranceExceptCategoryPayload {
|
|
2
|
+
regDate?: Date;
|
|
3
|
+
}
|
|
4
|
+
export interface InsuranceExceptCategoryInfo {
|
|
5
|
+
mainCategory: string;
|
|
6
|
+
subCategory: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetInsuranceExceptCategoryResult {
|
|
9
|
+
message: string;
|
|
10
|
+
data: InsuranceExceptCategoryInfo[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.GetInsuranceExceptCategoryPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetInsuranceExceptCategoryPayload {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_validator_1.IsDateString)(),
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
__metadata("design:type", Date)
|
|
20
|
+
], GetInsuranceExceptCategoryPayload.prototype, "regDate", void 0);
|
|
21
|
+
exports.GetInsuranceExceptCategoryPayload = GetInsuranceExceptCategoryPayload;
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-insurance-item-price.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-insurance-pricing-policy.dto"), exports);
|
|
19
|
+
__exportStar(require("./get-insurance-except-category.dto"), exports);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetInsuranceItemPricePayload, GetInsuranceItemPriceResult, getInsurancePricingPolicyPayload, GetInsurancePricingPolicyResult } from '../dto/insurance';
|
|
3
|
+
import { GetInsuranceExceptCategoryPayload, GetInsuranceExceptCategoryResult, GetInsuranceItemPricePayload, GetInsuranceItemPriceResult, getInsurancePricingPolicyPayload, GetInsurancePricingPolicyResult } from '../dto/insurance';
|
|
4
4
|
export declare class AmqpInsuranceService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
getInsuranceItemPrice(payload: GetInsuranceItemPricePayload, param: AbstractParam): Promise<GetInsuranceItemPriceResult>;
|
|
9
9
|
getInsurancePricingPolicy(payload: getInsurancePricingPolicyPayload, param: AbstractParam): Promise<GetInsurancePricingPolicyResult>;
|
|
10
|
+
getInsuranceExceptCategory(payload: GetInsuranceExceptCategoryPayload, param: AbstractParam): Promise<GetInsuranceExceptCategoryResult>;
|
|
10
11
|
}
|
|
@@ -27,6 +27,9 @@ let AmqpInsuranceService = class AmqpInsuranceService {
|
|
|
27
27
|
async getInsurancePricingPolicy(payload, param) {
|
|
28
28
|
return this.amqpManager.call('보험 가격 정책 조회', 'GET_INSURANCE_PRICING_POLICY', payload, param, { isErrorThrowing: true });
|
|
29
29
|
}
|
|
30
|
+
async getInsuranceExceptCategory(payload, param) {
|
|
31
|
+
return this.amqpManager.call('보험 카테고리 제외 조회', 'GET_INSURANCE_EXCEPT_CATEGORY', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
30
33
|
};
|
|
31
34
|
AmqpInsuranceService = __decorate([
|
|
32
35
|
(0, common_1.Injectable)(),
|