@yolo-croket-dev/amqp-access 0.5.77 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.5.77",
3
+ "version": "0.5.79",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -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;
@@ -0,0 +1,11 @@
1
+ export declare class getInsurancePricingPolicyPayload {
2
+ regDate?: Date;
3
+ }
4
+ export interface InsurancePricingPolicy {
5
+ minPrice: number;
6
+ maxPrice: number;
7
+ unitPrice: number;
8
+ }
9
+ export interface GetInsurancePricingPolicyResult {
10
+ insurancePricingPolicyList: InsurancePricingPolicy[];
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.getInsurancePricingPolicyPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class getInsurancePricingPolicyPayload {
15
+ }
16
+ __decorate([
17
+ (0, class_validator_1.IsDateString)(),
18
+ (0, class_validator_1.IsOptional)(),
19
+ __metadata("design:type", Date)
20
+ ], getInsurancePricingPolicyPayload.prototype, "regDate", void 0);
21
+ exports.getInsurancePricingPolicyPayload = getInsurancePricingPolicyPayload;
@@ -1 +1,3 @@
1
1
  export * from './get-insurance-item-price.dto';
2
+ export * from './get-insurance-pricing-policy.dto';
3
+ export * from './get-insurance-except-category.dto';
@@ -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-insurance-item-price.dto"), exports);
18
+ __exportStar(require("./get-insurance-pricing-policy.dto"), exports);
19
+ __exportStar(require("./get-insurance-except-category.dto"), exports);
@@ -1,9 +1,11 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetInsuranceItemPricePayload, GetInsuranceItemPriceResult } 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
+ getInsurancePricingPolicy(payload: getInsurancePricingPolicyPayload, param: AbstractParam): Promise<GetInsurancePricingPolicyResult>;
10
+ getInsuranceExceptCategory(payload: GetInsuranceExceptCategoryPayload, param: AbstractParam): Promise<GetInsuranceExceptCategoryResult>;
9
11
  }
@@ -24,6 +24,12 @@ let AmqpInsuranceService = class AmqpInsuranceService {
24
24
  async getInsuranceItemPrice(payload, param) {
25
25
  return this.amqpManager.call('보험 상품 가격 조회', 'GET_INSURANCE_ITEM_PRICE', payload, param, { isErrorThrowing: true });
26
26
  }
27
+ async getInsurancePricingPolicy(payload, param) {
28
+ return this.amqpManager.call('보험 가격 정책 조회', 'GET_INSURANCE_PRICING_POLICY', payload, param, { isErrorThrowing: true });
29
+ }
30
+ async getInsuranceExceptCategory(payload, param) {
31
+ return this.amqpManager.call('보험 카테고리 제외 조회', 'GET_INSURANCE_EXCEPT_CATEGORY', payload, param, { isErrorThrowing: true });
32
+ }
27
33
  };
28
34
  AmqpInsuranceService = __decorate([
29
35
  (0, common_1.Injectable)(),