@yolo-croket-dev/amqp-access 0.6.109 → 0.6.110-jun.0

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.
@@ -2,7 +2,7 @@ import { AttributionPlatformEnum } from '@yolo-croket-dev/entity-v2';
2
2
  export declare class CreateAttributionHistoryPayload {
3
3
  pInfoIds: string[];
4
4
  userId: string;
5
- userTrackingId: string;
6
- ip: string;
7
- platform: AttributionPlatformEnum;
5
+ userTrackingId?: string;
6
+ ip?: string;
7
+ platform?: AttributionPlatformEnum;
8
8
  }
@@ -27,13 +27,16 @@ __decorate([
27
27
  ], CreateAttributionHistoryPayload.prototype, "userId", void 0);
28
28
  __decorate([
29
29
  (0, class_validator_1.IsString)(),
30
+ (0, class_validator_1.IsOptional)(),
30
31
  __metadata("design:type", String)
31
32
  ], CreateAttributionHistoryPayload.prototype, "userTrackingId", void 0);
32
33
  __decorate([
33
34
  (0, class_validator_1.IsString)(),
35
+ (0, class_validator_1.IsOptional)(),
34
36
  __metadata("design:type", String)
35
37
  ], CreateAttributionHistoryPayload.prototype, "ip", void 0);
36
38
  __decorate([
37
39
  (0, class_validator_1.IsEnum)(entity_v2_1.AttributionPlatformEnum),
40
+ (0, class_validator_1.IsOptional)(),
38
41
  __metadata("design:type", String)
39
42
  ], CreateAttributionHistoryPayload.prototype, "platform", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.6.109",
3
+ "version": "0.6.110-jun.0",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1,50 @@
1
+ export declare class GetStoryDetailForAdminPayload {
2
+ storyId: string;
3
+ }
4
+ interface RelatedStoreItem {
5
+ id: string;
6
+ itemImg: string;
7
+ clickNums: number;
8
+ }
9
+ interface StoryDetailContentItem {
10
+ imgList: {
11
+ imgUrl: string;
12
+ imgName: string;
13
+ width: string;
14
+ height: string;
15
+ }[];
16
+ storeItemCondition: {
17
+ itemName: string[];
18
+ category: {
19
+ main: string;
20
+ sub: string;
21
+ }[];
22
+ bookNums: number;
23
+ };
24
+ content: {
25
+ raw: string;
26
+ app: unknown[];
27
+ };
28
+ buttonInfo: {
29
+ isExist: boolean;
30
+ text?: string;
31
+ appLink?: string;
32
+ webLink?: string;
33
+ };
34
+ storeItem: RelatedStoreItem[];
35
+ }
36
+ export interface GetStoryDetailForAdminResult {
37
+ storyId: string;
38
+ title: string;
39
+ subTitle: string;
40
+ sort: number;
41
+ mainImg: {
42
+ imgUrl: string;
43
+ imgName: string;
44
+ width: string;
45
+ height: string;
46
+ };
47
+ storyType: string;
48
+ contentList: StoryDetailContentItem[];
49
+ }
50
+ export {};
@@ -0,0 +1,20 @@
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.GetStoryDetailForAdminPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetStoryDetailForAdminPayload {
15
+ }
16
+ exports.GetStoryDetailForAdminPayload = GetStoryDetailForAdminPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], GetStoryDetailForAdminPayload.prototype, "storyId", void 0);
@@ -1 +1,2 @@
1
1
  export * from './get-story-list-for-admin.dto';
2
+ export * from './get-story-detail-for-admin.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-story-list-for-admin.dto"), exports);
18
+ __exportStar(require("./get-story-detail-for-admin.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetStoryListForAdminPayload, GetStoryListForAdminResult } from '../../dto/story.modules';
3
+ import { GetStoryListForAdminPayload, GetStoryListForAdminResult, GetStoryDetailForAdminPayload, GetStoryDetailForAdminResult } from '../../dto/story.modules';
4
4
  /**
5
5
  * @author jun
6
6
  * @description 스토리 관련 AMQP 서비스
@@ -11,4 +11,5 @@ export declare class AmqpStoryService {
11
11
  private readonly amqpManager;
12
12
  constructor(client: ClientProxy);
13
13
  getStoryListForAdmin(payload: GetStoryListForAdminPayload, param: AbstractParam): Promise<GetStoryListForAdminResult>;
14
+ getStoryDetailForAdmin(payload: GetStoryDetailForAdminPayload, param: AbstractParam): Promise<GetStoryDetailForAdminResult>;
14
15
  }
@@ -29,6 +29,9 @@ let AmqpStoryService = class AmqpStoryService {
29
29
  async getStoryListForAdmin(payload, param) {
30
30
  return this.amqpManager.call('관리자용 스토리 목록 조회', 'story.get.story-list-for-admin', payload, param, { isErrorThrowing: true });
31
31
  }
32
+ async getStoryDetailForAdmin(payload, param) {
33
+ return this.amqpManager.call('관리자용 스토리 상세 조회', 'story.get.story-detail-for-admin', payload, param, { isErrorThrowing: true });
34
+ }
32
35
  };
33
36
  exports.AmqpStoryService = AmqpStoryService;
34
37
  exports.AmqpStoryService = AmqpStoryService = __decorate([