@yolo-croket-dev/amqp-access 0.4.34-slowquery.2 → 0.4.35

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.
@@ -45,6 +45,4 @@ export declare class SendTemplateNotificationPayload {
45
45
  notificationActivityParam?: ActivityParam;
46
46
  /** 테스트용으로 사용, 활동 저장하지 않기 */
47
47
  isNotAcitivtySave?: boolean;
48
- /** 활동내역만 저장하고, 이후 프로세스 하지 않기 */
49
- isOnlyActivitySave?: boolean;
50
48
  }
@@ -58,10 +58,3 @@ __decorate([
58
58
  ,
59
59
  __metadata("design:type", Boolean)
60
60
  ], SendTemplateNotificationPayload.prototype, "isNotAcitivtySave", void 0);
61
- __decorate([
62
- (0, class_validator_1.IsOptional)(),
63
- (0, class_validator_1.IsBoolean)()
64
- /** 활동내역만 저장하고, 이후 프로세스 하지 않기 */
65
- ,
66
- __metadata("design:type", Boolean)
67
- ], SendTemplateNotificationPayload.prototype, "isOnlyActivitySave", void 0);
@@ -1,10 +1,9 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { SendTemplateNotificationPayload, SendTemplateNotificationBulkPayload, SendTemplateNotificationBulkResult } from '../dto/notification';
3
+ import { SendTemplateNotificationPayload } from '../dto/notification';
4
4
  export declare class AmqpSendNotificationService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
8
  sendTemplateNotification(payload: SendTemplateNotificationPayload, param: AbstractParam): Promise<boolean>;
9
- sendTemplateNotificationBulk(payload: SendTemplateNotificationBulkPayload, param: AbstractParam): Promise<SendTemplateNotificationBulkResult>;
10
9
  }
@@ -24,9 +24,6 @@ let AmqpSendNotificationService = class AmqpSendNotificationService {
24
24
  async sendTemplateNotification(payload, param) {
25
25
  return this.amqpManager.call('알림 보내기', 'notification.template.send', payload, param, { isErrorThrowing: true });
26
26
  }
27
- async sendTemplateNotificationBulk(payload, param) {
28
- return this.amqpManager.call('알림 보내기 Bulk', 'notification.template.bulk-send', payload, param, { isErrorThrowing: true });
29
- }
30
27
  };
31
28
  exports.AmqpSendNotificationService = AmqpSendNotificationService;
32
29
  exports.AmqpSendNotificationService = AmqpSendNotificationService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.34-slowquery.2",
3
+ "version": "0.4.35",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -8,7 +8,6 @@ interface StoreItemPrice {
8
8
  result?: {
9
9
  calulatedItemPrice?: number;
10
10
  itemPriceForBuyer: number;
11
- itemName: string;
12
11
  };
13
12
  error?: string;
14
13
  }
@@ -0,0 +1,6 @@
1
+ export declare class GetStoreIdBySellerIdPayload {
2
+ sellerId: string;
3
+ }
4
+ export declare class GetStoreIdBySellerIdResult {
5
+ storeId?: string;
6
+ }
@@ -9,18 +9,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PushRedisDBPayload = void 0;
12
+ exports.GetStoreIdBySellerIdResult = exports.GetStoreIdBySellerIdPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class PushRedisDBPayload {
14
+ class GetStoreIdBySellerIdPayload {
15
15
  }
16
- exports.PushRedisDBPayload = PushRedisDBPayload;
16
+ exports.GetStoreIdBySellerIdPayload = GetStoreIdBySellerIdPayload;
17
17
  __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.MinLength)(1),
18
+ (0, class_validator_1.IsMongoId)(),
20
19
  __metadata("design:type", String)
21
- ], PushRedisDBPayload.prototype, "redisDBKey", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.MinLength)(1),
25
- __metadata("design:type", String)
26
- ], PushRedisDBPayload.prototype, "value", void 0);
20
+ ], GetStoreIdBySellerIdPayload.prototype, "sellerId", void 0);
21
+ class GetStoreIdBySellerIdResult {
22
+ }
23
+ exports.GetStoreIdBySellerIdResult = GetStoreIdBySellerIdResult;
@@ -7,3 +7,4 @@ export * from './get-store-titles-by-store-ids.dto';
7
7
  export * from './check-show-ad-center-inflow.dto';
8
8
  export * from './get-store-titles-by-seller-ids.dto';
9
9
  export * from './get-stores-by-seller-ids.dto';
10
+ export * from './get-store-id-by-seller-id.dto';
@@ -23,3 +23,4 @@ __exportStar(require("./get-store-titles-by-store-ids.dto"), exports);
23
23
  __exportStar(require("./check-show-ad-center-inflow.dto"), exports);
24
24
  __exportStar(require("./get-store-titles-by-seller-ids.dto"), exports);
25
25
  __exportStar(require("./get-stores-by-seller-ids.dto"), exports);
26
+ __exportStar(require("./get-store-id-by-seller-id.dto"), exports);
@@ -1,7 +1,7 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  import { DomesticAccountStoreEntity, StoreForTossPaymentEntity } from '@yolo-croket-dev/entity-v2';
4
- import { GetDomesticAccountStoreInfoPayload, GetDomesticAccountStoresPayload, MigrationTossPaymentsSettlementProxySellerIdResult, UpdatePrivateSellerInfoSellerAddressPayload, GetUserIdsByStoreTitlePayload, GetUserIdsByStoreTitleResult, GetStoreIdsByStoreTitlePayload, GetStoreIdsByStoreTitleResult, GetStoreTitlesByStoreIdsPayload, GetStoreTitlesByStoreIdsResult, GetStoreIdsByAtlasPayload, GetStoreIdsByAtlasResult, CheckShowAdCenterInflowPayload, GetStoreTitlesBySellerIdsPayload, GetStoreTitlesBySellerIdsResult, UpdateLastActivityDatePayload, GetStoresBySellerIdsPayload, StoreBySellerId } from '../dto/store';
4
+ import { GetDomesticAccountStoreInfoPayload, GetDomesticAccountStoresPayload, MigrationTossPaymentsSettlementProxySellerIdResult, UpdatePrivateSellerInfoSellerAddressPayload, GetUserIdsByStoreTitlePayload, GetUserIdsByStoreTitleResult, GetStoreIdsByStoreTitlePayload, GetStoreIdsByStoreTitleResult, GetStoreTitlesByStoreIdsPayload, GetStoreTitlesByStoreIdsResult, GetStoreIdsByAtlasPayload, GetStoreIdsByAtlasResult, CheckShowAdCenterInflowPayload, GetStoreTitlesBySellerIdsPayload, GetStoreTitlesBySellerIdsResult, UpdateLastActivityDatePayload, GetStoresBySellerIdsPayload, StoreBySellerId, GetStoreIdBySellerIdPayload, GetStoreIdBySellerIdResult } from '../dto/store';
5
5
  import { GetStoresForTossPaymentPayload } from '../dto/store/query/get-stores-for-toss-payment.dto';
6
6
  export declare class AmqpStoreService {
7
7
  private readonly client;
@@ -20,4 +20,5 @@ export declare class AmqpStoreService {
20
20
  getStoreTitlesBySellerIds(payload: GetStoreTitlesBySellerIdsPayload, param: AbstractParam): Promise<GetStoreTitlesBySellerIdsResult>;
21
21
  updateLastActivityDate(payload: UpdateLastActivityDatePayload, param: AbstractParam): Promise<void>;
22
22
  getStoresBySellerIds(payload: GetStoresBySellerIdsPayload, param: AbstractParam): Promise<StoreBySellerId[]>;
23
+ getStoreIdBySellerId(payload: GetStoreIdBySellerIdPayload, param: AbstractParam): Promise<GetStoreIdBySellerIdResult>;
23
24
  }
@@ -60,6 +60,9 @@ let AmqpStoreService = class AmqpStoreService {
60
60
  async getStoresBySellerIds(payload, param) {
61
61
  return this.amqpManager.call('판매자 아이디로 스토어 리스트 출력', 'store.get.by-seller-ids', payload, param, { isErrorThrowing: true });
62
62
  }
63
+ async getStoreIdBySellerId(payload, param) {
64
+ return this.amqpManager.call('판매자 아이디로 스토어 아이디 출력', 'store.get.store-id-by-seller-id', payload, param, { isErrorThrowing: true });
65
+ }
63
66
  };
64
67
  exports.AmqpStoreService = AmqpStoreService;
65
68
  exports.AmqpStoreService = AmqpStoreService = __decorate([
@@ -1,3 +0,0 @@
1
- import { PushRedisDBPayload } from './push-redis-db.dto';
2
- export declare class PullRedisDBPayload extends PushRedisDBPayload {
3
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PullRedisDBPayload = void 0;
4
- const push_redis_db_dto_1 = require("./push-redis-db.dto");
5
- class PullRedisDBPayload extends push_redis_db_dto_1.PushRedisDBPayload {
6
- }
7
- exports.PullRedisDBPayload = PullRedisDBPayload;
@@ -1,4 +0,0 @@
1
- export declare class PushRedisDBPayload {
2
- redisDBKey: string;
3
- value: string;
4
- }