@yolo-croket-dev/amqp-access 0.7.48-sj2 → 0.7.48-sj4

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.7.48-sj2",
3
+ "version": "0.7.48-sj4",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -22,7 +22,7 @@
22
22
  "@yolo-croket-dev/domain": "^0.2.27",
23
23
  "@yolo-croket-dev/dto-v2": "0.2.15",
24
24
  "@yolo-croket-dev/entity": "0.2.66",
25
- "@yolo-croket-dev/entity-v2": "0.2.125-sj",
25
+ "@yolo-croket-dev/entity-v2": "0.2.125-sj2",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -6,4 +6,6 @@ export declare class CreateCampaignInfluencerForAdminPayload {
6
6
  itemId: string;
7
7
  phoneNumber: string;
8
8
  email: string;
9
+ memo?: string;
10
+ receivedOptionInfo?: string;
9
11
  }
@@ -43,3 +43,13 @@ __decorate([
43
43
  (0, class_validator_1.IsEmail)(),
44
44
  __metadata("design:type", String)
45
45
  ], CreateCampaignInfluencerForAdminPayload.prototype, "email", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.IsString)(),
49
+ __metadata("design:type", String)
50
+ ], CreateCampaignInfluencerForAdminPayload.prototype, "memo", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsOptional)(),
53
+ (0, class_validator_1.IsString)(),
54
+ __metadata("design:type", String)
55
+ ], CreateCampaignInfluencerForAdminPayload.prototype, "receivedOptionInfo", void 0);
@@ -6,4 +6,6 @@ export declare class UpdateCampaignInfluencerForAdminPayload {
6
6
  itemId?: string;
7
7
  phoneNumber?: string;
8
8
  email?: string;
9
+ memo?: string;
10
+ receivedOptionInfo?: string;
9
11
  }
@@ -48,3 +48,13 @@ __decorate([
48
48
  (0, class_validator_1.IsEmail)(),
49
49
  __metadata("design:type", String)
50
50
  ], UpdateCampaignInfluencerForAdminPayload.prototype, "email", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsOptional)(),
53
+ (0, class_validator_1.IsString)(),
54
+ __metadata("design:type", String)
55
+ ], UpdateCampaignInfluencerForAdminPayload.prototype, "memo", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsOptional)(),
58
+ (0, class_validator_1.IsString)(),
59
+ __metadata("design:type", String)
60
+ ], UpdateCampaignInfluencerForAdminPayload.prototype, "receivedOptionInfo", void 0);
@@ -1,13 +1,17 @@
1
1
  import { CampaignInfluencerEntity } from '@yolo-croket-dev/entity-v2';
2
2
  export declare class GetCampaignInfluencersForAdminPayload {
3
3
  lastId?: string;
4
+ userId?: string;
4
5
  influencerName?: string;
5
6
  }
6
- export interface GetCampaignInfluencersForAdminResultItem extends Pick<CampaignInfluencerEntity, '_id' | 'userId' | 'influencerName' | 'channelUrl' | 'uploadPostUrl' | 'itemId' | 'phoneNumber' | 'email' | 'participationCode' | 'regDate'> {
7
+ export interface GetCampaignInfluencersForAdminResultItem extends Pick<CampaignInfluencerEntity, '_id' | 'userId' | 'influencerName' | 'channelUrl' | 'uploadPostUrl' | 'itemId' | 'phoneNumber' | 'email' | 'memo' | 'receivedOptionInfo' | 'regDate'> {
7
8
  userInfo: {
8
9
  username: string;
9
10
  phoneNumber: string;
10
11
  };
12
+ storeItem: {
13
+ itemName: string;
14
+ };
11
15
  }
12
16
  export interface GetCampaignInfluencersForAdminResult {
13
17
  items: GetCampaignInfluencersForAdminResultItem[];
@@ -19,6 +19,11 @@ __decorate([
19
19
  (0, class_validator_1.IsMongoId)(),
20
20
  __metadata("design:type", String)
21
21
  ], GetCampaignInfluencersForAdminPayload.prototype, "lastId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsOptional)(),
24
+ (0, class_validator_1.IsMongoId)(),
25
+ __metadata("design:type", String)
26
+ ], GetCampaignInfluencersForAdminPayload.prototype, "userId", void 0);
22
27
  __decorate([
23
28
  (0, class_validator_1.IsOptional)(),
24
29
  (0, class_validator_1.IsString)(),
@@ -1,3 +1,4 @@
1
1
  export * from './bulk-create-campaign-store-item-for-admin.dto';
2
2
  export * from './delete-campaign-store-item-for-admin.dto';
3
3
  export * from './update-campaign-store-item-is-show-for-admin.dto';
4
+ export * from './update-campaign-store-item-display-order-for-admin.dto';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./bulk-create-campaign-store-item-for-admin.dto"), exports);
18
18
  __exportStar(require("./delete-campaign-store-item-for-admin.dto"), exports);
19
19
  __exportStar(require("./update-campaign-store-item-is-show-for-admin.dto"), exports);
20
+ __exportStar(require("./update-campaign-store-item-display-order-for-admin.dto"), exports);
@@ -0,0 +1,4 @@
1
+ export declare class UpdateCampaignStoreItemDisplayOrderForAdminPayload {
2
+ campaignStoreItemId: string;
3
+ displayOrder: number | null;
4
+ }
@@ -0,0 +1,26 @@
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.UpdateCampaignStoreItemDisplayOrderForAdminPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class UpdateCampaignStoreItemDisplayOrderForAdminPayload {
15
+ }
16
+ exports.UpdateCampaignStoreItemDisplayOrderForAdminPayload = UpdateCampaignStoreItemDisplayOrderForAdminPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], UpdateCampaignStoreItemDisplayOrderForAdminPayload.prototype, "campaignStoreItemId", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsOptional)(),
23
+ (0, class_validator_1.IsNumber)(),
24
+ (0, class_validator_1.Min)(1),
25
+ __metadata("design:type", Object)
26
+ ], UpdateCampaignStoreItemDisplayOrderForAdminPayload.prototype, "displayOrder", void 0);
@@ -7,6 +7,7 @@ export declare class GetCampaignStoreItemsForAdminResultItem {
7
7
  _id: string;
8
8
  itemId: string;
9
9
  isShow: boolean;
10
+ displayOrder?: number;
10
11
  regDate: Date;
11
12
  storeItem: {
12
13
  itemName: string;
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { BulkCreateCampaignStoreItemForAdminPayload, BulkCreateCampaignStoreItemForAdminResult, DeleteCampaignStoreItemForAdminPayload, UpdateCampaignStoreItemIsShowForAdminPayload, GetCampaignStoreItemsForAdminPayload, GetCampaignStoreItemsForAdminResult, GetCampaignStoreItemsForBuyerPayload, GetCampaignStoreItemsForBuyerResult } from '../dto/campaign-store-item';
3
+ import { BulkCreateCampaignStoreItemForAdminPayload, BulkCreateCampaignStoreItemForAdminResult, DeleteCampaignStoreItemForAdminPayload, UpdateCampaignStoreItemIsShowForAdminPayload, UpdateCampaignStoreItemDisplayOrderForAdminPayload, GetCampaignStoreItemsForAdminPayload, GetCampaignStoreItemsForAdminResult, GetCampaignStoreItemsForBuyerPayload, GetCampaignStoreItemsForBuyerResult } from '../dto/campaign-store-item';
4
4
  export declare class AmqpCampaignStoreItemService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -11,6 +11,8 @@ export declare class AmqpCampaignStoreItemService {
11
11
  deleteCampaignStoreItemForAdmin(payload: DeleteCampaignStoreItemForAdminPayload, param: AbstractParam): Promise<void>;
12
12
  /** @description [관리자] 체험단 상품 노출 여부 수정 */
13
13
  updateCampaignStoreItemIsShowForAdmin(payload: UpdateCampaignStoreItemIsShowForAdminPayload, param: AbstractParam): Promise<void>;
14
+ /** @description [관리자] 체험단 상품 노출 순서 수정 */
15
+ updateCampaignStoreItemDisplayOrderForAdmin(payload: UpdateCampaignStoreItemDisplayOrderForAdminPayload, param: AbstractParam): Promise<void>;
14
16
  /** @description [관리자] 체험단 상품 리스트 조회 */
15
17
  getCampaignStoreItemsForAdmin(payload: GetCampaignStoreItemsForAdminPayload, param: AbstractParam): Promise<GetCampaignStoreItemsForAdminResult>;
16
18
  /** @description [구매자] 체험단 상품 리스트 조회 */
@@ -33,6 +33,10 @@ let AmqpCampaignStoreItemService = class AmqpCampaignStoreItemService {
33
33
  async updateCampaignStoreItemIsShowForAdmin(payload, param) {
34
34
  return this.amqpManager.call('[관리자] 체험단 상품 노출 여부 수정', 'campaign-store-item.patch.is-show', payload, param, { isErrorThrowing: true });
35
35
  }
36
+ /** @description [관리자] 체험단 상품 노출 순서 수정 */
37
+ async updateCampaignStoreItemDisplayOrderForAdmin(payload, param) {
38
+ return this.amqpManager.call('[관리자] 체험단 상품 노출 순서 수정', 'campaign-store-item.patch.display-order', payload, param, { isErrorThrowing: true });
39
+ }
36
40
  /** @description [관리자] 체험단 상품 리스트 조회 */
37
41
  async getCampaignStoreItemsForAdmin(payload, param) {
38
42
  return this.amqpManager.call('[관리자] 체험단 상품 리스트 조회', 'campaign-store-item.get.list', payload, param, { isErrorThrowing: true });