@yolo-croket-dev/amqp-access 0.2.17 → 0.2.19

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.
@@ -1 +1,2 @@
1
1
  export * from './update-related-ids.dto';
2
+ export * from './pull-related-ids.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("./update-related-ids.dto"), exports);
18
+ __exportStar(require("./pull-related-ids.dto"), exports);
@@ -0,0 +1,9 @@
1
+ import { RelatedIdTypeEnum } from '@yolo-croket-dev/entity-v2/image-log/image-log.entity';
2
+ export declare class PullRelatedIdsPayload {
3
+ url: string;
4
+ type: RelatedIdTypeEnum;
5
+ id: string;
6
+ }
7
+ export declare class PullRelatedIdsResult {
8
+ isSuccess: boolean;
9
+ }
@@ -0,0 +1,32 @@
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.PullRelatedIdsResult = exports.PullRelatedIdsPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const image_log_entity_1 = require("@yolo-croket-dev/entity-v2/image-log/image-log.entity");
15
+ class PullRelatedIdsPayload {
16
+ }
17
+ exports.PullRelatedIdsPayload = PullRelatedIdsPayload;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], PullRelatedIdsPayload.prototype, "url", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsEnum)(image_log_entity_1.RelatedIdTypeEnum),
24
+ __metadata("design:type", String)
25
+ ], PullRelatedIdsPayload.prototype, "type", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsMongoId)(),
28
+ __metadata("design:type", String)
29
+ ], PullRelatedIdsPayload.prototype, "id", void 0);
30
+ class PullRelatedIdsResult {
31
+ }
32
+ exports.PullRelatedIdsResult = PullRelatedIdsResult;
@@ -1,9 +1,10 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { UpdateRelatedIdsPayload } from '../dto/image-log';
3
+ import { UpdateRelatedIdsPayload, PullRelatedIdsPayload } from '../dto/image-log';
4
4
  export declare class AmqpImageLogService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
8
  updateRelatedIdsOnlyPub(payload: UpdateRelatedIdsPayload, param: AbstractParam): Promise<boolean>;
9
+ pullRelatedIdsOnlyPub(payload: PullRelatedIdsPayload, param: AbstractParam): Promise<boolean>;
9
10
  }
@@ -24,6 +24,9 @@ let AmqpImageLogService = class AmqpImageLogService {
24
24
  async updateRelatedIdsOnlyPub(payload, param) {
25
25
  return this.amqpManager.onlyPublish('관련 ids 업데이트', 'image-log.update.related-ids', payload, param);
26
26
  }
27
+ async pullRelatedIdsOnlyPub(payload, param) {
28
+ return this.amqpManager.onlyPublish('관련 ids pull', 'image-log.pull.related-ids', payload, param);
29
+ }
27
30
  };
28
31
  exports.AmqpImageLogService = AmqpImageLogService;
29
32
  exports.AmqpImageLogService = AmqpImageLogService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",