@yolo-croket-dev/amqp-access 0.3.12 → 0.3.14

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.3.12",
3
+ "version": "0.3.14",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -63,6 +63,7 @@ exports.AmqpUserServiceModule = AmqpUserServiceModule = __decorate([
63
63
  services_1.AmqpSellerPortalChannelLinkActualPeriodService,
64
64
  services_1.AmqpInsuranceService,
65
65
  services_1.AmqpBanWordService,
66
+ services_1.AmqpRedisDBListDBService,
66
67
  ],
67
68
  })
68
69
  ], AmqpUserServiceModule);
@@ -1,3 +1,2 @@
1
1
  export * from './push-list-redis-db.dto';
2
2
  export * from './pull-list-redis-db.dto';
3
- export * from './get-list-redis-db.dto';
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./push-list-redis-db.dto"), exports);
18
18
  __exportStar(require("./pull-list-redis-db.dto"), exports);
19
- __exportStar(require("./get-list-redis-db.dto"), exports);
@@ -1 +1,2 @@
1
1
  export * from './get-redis-db.dto';
2
+ export * from './get-list-redis-db.dto';
@@ -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-redis-db.dto"), exports);
18
+ __exportStar(require("./get-list-redis-db.dto"), exports);
@@ -0,0 +1,13 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AmqpManagement } from '@yolo-croket-dev/core/functions';
3
+ import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
4
+ import { PushListRedisDBPayload, PushListRedisDBResult, PullListRedisDBPayload, PullListRedisDBResult } from '../../dto/redis-db/command';
5
+ import { GetListRedisDBPayload } from '../../dto/redis-db/query';
6
+ export declare class AmqpRedisDBListDBService {
7
+ private readonly client;
8
+ protected readonly amqpManager: AmqpManagement;
9
+ constructor(client: ClientProxy);
10
+ pushListRedisDB(payload: PushListRedisDBPayload, param: AbstractParam): Promise<PushListRedisDBResult>;
11
+ pullListRedisDB(payload: PullListRedisDBPayload, param: AbstractParam): Promise<PullListRedisDBResult>;
12
+ getListRedisDB(payload: GetListRedisDBPayload, param: AbstractParam): Promise<string[]>;
13
+ }
@@ -0,0 +1,39 @@
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.AmqpRedisDBListDBService = 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 AmqpRedisDBListDBService = class AmqpRedisDBListDBService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async pushListRedisDB(payload, param) {
25
+ return this.amqpManager.call('Redis DB List DB에 Push 처리', 'redis-db.push-list-redis-db', payload, param, { isErrorThrowing: true });
26
+ }
27
+ async pullListRedisDB(payload, param) {
28
+ return this.amqpManager.call('Redis DB List DB에 Pull 처리', 'redis-db.pull-list-redis-db', payload, param, { isErrorThrowing: true });
29
+ }
30
+ async getListRedisDB(payload, param) {
31
+ return this.amqpManager.call('Redis DB List DB에 list get', 'redis-db.get-list-redis-db', payload, param, { isErrorThrowing: true });
32
+ }
33
+ };
34
+ exports.AmqpRedisDBListDBService = AmqpRedisDBListDBService;
35
+ exports.AmqpRedisDBListDBService = AmqpRedisDBListDBService = __decorate([
36
+ (0, common_1.Injectable)(),
37
+ __param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
38
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
39
+ ], AmqpRedisDBListDBService);
@@ -1 +1,2 @@
1
1
  export * from './amqp.redis-db-app-bulk-push-to-user-ids.service';
2
+ export * from './amqp.redis-db-list-db.service';
@@ -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.redis-db-app-bulk-push-to-user-ids.service"), exports);
18
+ __exportStar(require("./amqp.redis-db-list-db.service"), exports);