@yolo-croket-dev/amqp-access 0.0.181 → 0.0.183

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.
@@ -8,6 +8,8 @@ export declare enum PatchProcessV2ToCheckingStockResultStatusEnum {
8
8
  NOT_FOUND = "NOT_FOUND",
9
9
  /** @description process가 waitingOrder 가 아님 */
10
10
  INVALID_PROCESS = "INVALID_PROCESS",
11
+ /** @description process_v2가 이미 재고확인중 */
12
+ ALREADY_PROCESS = "ALREADY_PROCESS",
11
13
  /** @description 예기치 못한 오류 */
12
14
  SERVER_ERROR = "SERVER_ERROR"
13
15
  }
@@ -26,6 +26,8 @@ var PatchProcessV2ToCheckingStockResultStatusEnum;
26
26
  PatchProcessV2ToCheckingStockResultStatusEnum["NOT_FOUND"] = "NOT_FOUND";
27
27
  /** @description process가 waitingOrder 가 아님 */
28
28
  PatchProcessV2ToCheckingStockResultStatusEnum["INVALID_PROCESS"] = "INVALID_PROCESS";
29
+ /** @description process_v2가 이미 재고확인중 */
30
+ PatchProcessV2ToCheckingStockResultStatusEnum["ALREADY_PROCESS"] = "ALREADY_PROCESS";
29
31
  /** @description 예기치 못한 오류 */
30
32
  PatchProcessV2ToCheckingStockResultStatusEnum["SERVER_ERROR"] = "SERVER_ERROR";
31
33
  })(PatchProcessV2ToCheckingStockResultStatusEnum || (exports.PatchProcessV2ToCheckingStockResultStatusEnum = PatchProcessV2ToCheckingStockResultStatusEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.181",
3
+ "version": "0.0.183",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1,12 @@
1
+ import { BusinessInfo } from '@yolo-croket-dev/entity-v2/store';
2
+ export declare class GetStoreBusinessInfoChangeHistoryPayload {
3
+ targetMonth: string;
4
+ }
5
+ export interface GetStoreBusinessInfoChangeHistoryResult {
6
+ changeHistories: GetStoreBusinessInfoChangeHistory[];
7
+ }
8
+ export interface GetStoreBusinessInfoChangeHistory {
9
+ businessInfo?: BusinessInfo;
10
+ storeTitle: string;
11
+ userId: string;
12
+ }
@@ -0,0 +1,21 @@
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.GetStoreBusinessInfoChangeHistoryPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetStoreBusinessInfoChangeHistoryPayload {
15
+ }
16
+ exports.GetStoreBusinessInfoChangeHistoryPayload = GetStoreBusinessInfoChangeHistoryPayload;
17
+ __decorate([
18
+ (0, class_validator_1.MaxLength)(10),
19
+ (0, class_validator_1.IsDateString)(),
20
+ __metadata("design:type", String)
21
+ ], GetStoreBusinessInfoChangeHistoryPayload.prototype, "targetMonth", void 0);
@@ -0,0 +1 @@
1
+ export * from './get-store-business-info-change-history.dto';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-store-business-info-change-history.dto"), exports);
@@ -1,9 +1,11 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
3
3
  import { GetStoreBusinessTaxBillingRequiredSellersPayload } from '@yolo-croket-dev/dto-v2/user-service/store/business-info/query';
4
+ import { GetStoreBusinessInfoChangeHistoryPayload, GetStoreBusinessInfoChangeHistoryResult } from '../dto/store-business';
4
5
  export declare class AmqpStoreBusinessService {
5
6
  private readonly client;
6
7
  private readonly amqpManager;
7
8
  constructor(client: ClientProxy);
8
9
  getStoreBusinessTaxBillingRequiredSellers(payload: GetStoreBusinessTaxBillingRequiredSellersPayload, param: AbstractParam): Promise<any>;
10
+ getStoreBusinessInfoChangeHistory(payload: GetStoreBusinessInfoChangeHistoryPayload, param: AbstractParam): Promise<GetStoreBusinessInfoChangeHistoryResult>;
9
11
  }
@@ -24,6 +24,9 @@ let AmqpStoreBusinessService = class AmqpStoreBusinessService {
24
24
  async getStoreBusinessTaxBillingRequiredSellers(payload, param) {
25
25
  return this.amqpManager.call('getStoreBusinessTaxBillingRequiredSellers', 'store-business.get.tax-billing-required-sellers', payload, param, { isErrorThrowing: true });
26
26
  }
27
+ async getStoreBusinessInfoChangeHistory(payload, param) {
28
+ return this.amqpManager.call('getStoreBusinessInfoChangeHistory', 'store-business.get.info-change-history', payload, param, { isErrorThrowing: true });
29
+ }
27
30
  };
28
31
  exports.AmqpStoreBusinessService = AmqpStoreBusinessService;
29
32
  exports.AmqpStoreBusinessService = AmqpStoreBusinessService = __decorate([