@yolo-croket-dev/amqp-access 0.4.39 → 0.4.40-sj1

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.4.39",
3
+ "version": "0.4.40-sj1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1,21 @@
1
+ import { StoreItemOptionInfo, StoreItemSellingInfo } from '@yolo-croket-dev/entity/src/store-item';
2
+ export declare class StaleStoreItem {
3
+ _id: string;
4
+ itemName: string;
5
+ itemPrice: number;
6
+ isSelling: boolean;
7
+ mainCategory: string;
8
+ subCategory: string;
9
+ regDate: Date;
10
+ lastModifyDate: Date;
11
+ sellingInfo: StoreItemSellingInfo;
12
+ optionInfo: StoreItemOptionInfo;
13
+ paymentDate?: Date;
14
+ }
15
+ export declare class GetStaleStoreItemsForExcelPayload {
16
+ sellerId: string;
17
+ }
18
+ export declare class GetStaleStoreItemsForExcelResult {
19
+ storeItems: StaleStoreItem[];
20
+ storeTitle: string;
21
+ }
@@ -0,0 +1,27 @@
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.GetStaleStoreItemsForExcelResult = exports.GetStaleStoreItemsForExcelPayload = exports.StaleStoreItem = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class StaleStoreItem {
15
+ }
16
+ exports.StaleStoreItem = StaleStoreItem;
17
+ class GetStaleStoreItemsForExcelPayload {
18
+ }
19
+ exports.GetStaleStoreItemsForExcelPayload = GetStaleStoreItemsForExcelPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsMongoId)(),
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ __metadata("design:type", String)
24
+ ], GetStaleStoreItemsForExcelPayload.prototype, "sellerId", void 0);
25
+ class GetStaleStoreItemsForExcelResult {
26
+ }
27
+ exports.GetStaleStoreItemsForExcelResult = GetStaleStoreItemsForExcelResult;
@@ -12,3 +12,4 @@ export * from './get-store-items-for-update-brand.dto';
12
12
  export * from './get-store-item-info-by-ids.dto';
13
13
  export * from './search-store-items-for-seduce-add-cart.dto';
14
14
  export * from './get-store-item-bind-issued-coupon-for-payment.dto';
15
+ export * from './get-stale-store-items-for-excel.dto';
@@ -28,3 +28,4 @@ __exportStar(require("./get-store-items-for-update-brand.dto"), exports);
28
28
  __exportStar(require("./get-store-item-info-by-ids.dto"), exports);
29
29
  __exportStar(require("./search-store-items-for-seduce-add-cart.dto"), exports);
30
30
  __exportStar(require("./get-store-item-bind-issued-coupon-for-payment.dto"), exports);
31
+ __exportStar(require("./get-stale-store-items-for-excel.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, UpdateBrandInfosPayload, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult } from '../dto/store-item';
3
+ import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, UpdateBrandInfosPayload, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload } from '../dto/store-item';
4
4
  export declare class AmqpStoreItemService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -35,4 +35,5 @@ export declare class AmqpStoreItemService {
35
35
  getStoreItemInfoIByIds(payload: GetStoreItemInfoByIdsPayload, param: AbstractParam): Promise<GetStoreItemInfoByIdsResult>;
36
36
  searchStoreItemsForSeduceAddCart(payload: SearchStoreItemsForSeduceAddCartPayload, param: AbstractParam): Promise<SearchStoreItemsForSeduceAddCartResult>;
37
37
  getStoreItemBindIssuedCouponForPayment(payload: GetStoreItemBindIssuedCouponForPaymentPayload, param: AbstractParam): Promise<GetStoreItemBindIssuedCouponForPaymentResult>;
38
+ getStaleStoreItemsForExcel(payload: GetStaleStoreItemsForExcelPayload, param: AbstractParam): Promise<GetStaleStoreItemsForExcelResult>;
38
39
  }
@@ -105,6 +105,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
105
105
  async getStoreItemBindIssuedCouponForPayment(payload, param) {
106
106
  return this.amqpManager.call('결제용 바인딩된 쿠폰 조회용 상품 조회', 'store-item.get.store-item-bind-issued-coupon-for-payment', payload, param, { isErrorThrowing: true });
107
107
  }
108
+ async getStaleStoreItemsForExcel(payload, param) {
109
+ return this.amqpManager.call('셀러 판매 상품 관리 리스트 호출', 'store-item.get.stale-store-items-for-excel', payload, param, { isErrorThrowing: true });
110
+ }
108
111
  };
109
112
  exports.AmqpStoreItemService = AmqpStoreItemService;
110
113
  exports.AmqpStoreItemService = AmqpStoreItemService = __decorate([
@@ -0,0 +1,12 @@
1
+ export declare class SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue {
2
+ purchaseReceiptId: string;
3
+ itemName: string;
4
+ }
5
+ export declare class SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload {
6
+ key: string;
7
+ value: SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue;
8
+ ttl?: number;
9
+ }
10
+ export interface SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushResult {
11
+ result: string;
12
+ }
@@ -0,0 +1,42 @@
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.SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload = exports.SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue {
16
+ }
17
+ exports.SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue = SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue.prototype, "purchaseReceiptId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue.prototype, "itemName", void 0);
26
+ class SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload {
27
+ }
28
+ exports.SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload = SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload;
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload.prototype, "key", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsObject)(),
35
+ (0, class_validator_1.ValidateNested)({}),
36
+ (0, class_transformer_1.Type)(() => SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue),
37
+ __metadata("design:type", SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushValue)
38
+ ], SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload.prototype, "value", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsNumber)(),
41
+ __metadata("design:type", Number)
42
+ ], SetDataAcceptWaitingOrderToBuyerMethodAppBatchPushPayload.prototype, "ttl", void 0);
@@ -0,0 +1,9 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { ExpireAppBulkPushToUserIdsPayload, ExpireAppBulkPushToUserIdsResult } from '../../dto/redis-db/expire-app-bulk-push-to-user-ids.dto';
4
+ export declare class AmqpRedisDbAppBatchPushService {
5
+ private readonly client;
6
+ private readonly amqpManager;
7
+ constructor(client: ClientProxy);
8
+ expireAppBulkPushToUserIds(payload: ExpireAppBulkPushToUserIdsPayload, param: AbstractParam): Promise<ExpireAppBulkPushToUserIdsResult>;
9
+ }
@@ -0,0 +1,33 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AmqpRedisDbAppBatchPushService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const microservices_1 = require("@nestjs/microservices");
18
+ const functions_1 = require("@yolo-croket-dev/core/functions");
19
+ let AmqpRedisDbAppBatchPushService = class AmqpRedisDbAppBatchPushService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async expireAppBulkPushToUserIds(payload, param) {
25
+ return this.amqpManager.call('redis db에 appBulkPus 관련 유저 아이디 expired 처리', 'redis-db.expire.app-bulk-push-to-user-ids', payload, param, { isErrorThrowing: true });
26
+ }
27
+ };
28
+ exports.AmqpRedisDbAppBatchPushService = AmqpRedisDbAppBatchPushService;
29
+ exports.AmqpRedisDbAppBatchPushService = AmqpRedisDbAppBatchPushService = __decorate([
30
+ (0, common_1.Injectable)(),
31
+ __param(0, (0, common_1.Inject)('USER_SERVICE_PROVIDER')),
32
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
+ ], AmqpRedisDbAppBatchPushService);