@yolo-croket-dev/amqp-access 0.0.202 → 0.0.204

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.
@@ -0,0 +1,8 @@
1
+ export declare class GetStoreItemViewerCountPayload {
2
+ storeItemId: string;
3
+ beforeSeconds?: number;
4
+ }
5
+ export interface GetStoreItemViewerCountResult {
6
+ viewerCount: number;
7
+ originViewerCount: number;
8
+ }
@@ -0,0 +1,25 @@
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.GetStoreItemViewerCountPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetStoreItemViewerCountPayload {
15
+ }
16
+ exports.GetStoreItemViewerCountPayload = GetStoreItemViewerCountPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], GetStoreItemViewerCountPayload.prototype, "storeItemId", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsNumber)(),
23
+ (0, class_validator_1.IsOptional)(),
24
+ __metadata("design:type", Number)
25
+ ], GetStoreItemViewerCountPayload.prototype, "beforeSeconds", void 0);
@@ -1 +1,2 @@
1
1
  export * from './get-store-item-clicks-group-user-id.dto';
2
+ export * from './get-store-item-viewer-count.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-store-item-clicks-group-user-id.dto"), exports);
18
+ __exportStar(require("./get-store-item-viewer-count.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetStoreItemViewerCountPayload, GetStoreItemViewerCountResult } from '@yolo-croket-dev/dto-v2/elastic-search-service/es-store-item-click';
3
+ import { GetStoreItemViewerCountPayload, GetStoreItemViewerCountResult } from '../dto/es-store-item-click/query/get-store-item-viewer-count.dto';
4
4
  export declare class AmqpEsStoreItemClickService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -0,0 +1,26 @@
1
+ import { PurchasedInfoEntity } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
2
+ import { StoreEntity } from '@yolo-croket-dev/entity/src/store';
3
+ import { StoreItem } from '@yolo-croket-dev/entity/src/store-item';
4
+ import { UserEntity } from '@yolo-croket-dev/entity-v2/user/user.entity';
5
+ export declare class GetItemSaleInfosForSalesTeamByAtlasPayload {
6
+ itemIds: string[];
7
+ selectPInfoProcessList: string[];
8
+ paymentSDate?: string;
9
+ paymentEDate?: string;
10
+ searchAfterToken?: string;
11
+ searchBeforeToken?: string;
12
+ limit?: number;
13
+ }
14
+ export declare class GetItemSaleInfosForSalesTeamByAtlasResult {
15
+ allCount: number;
16
+ datas: SearchedPurchasedInfoForSaleInfo[];
17
+ }
18
+ export type SearchedStoreForSaleInfo = Pick<StoreEntity, '_id' | 'storeTitle' | 'adminId'>;
19
+ export type SearchedItemInfoForSaleInfo = Pick<StoreItem, '_id' | 'bookNums' | 'itemName'>;
20
+ export type SearchedSellerInfoForSaleInfo = Pick<UserEntity, '_id' | 'username'>;
21
+ export type SearchedPurchasedInfoForSaleInfo = Pick<PurchasedInfoEntity, '_id' | 'process' | 'itemId' | 'sellerId' | 'paidPrice' | 'pastName' | 'totalPrice' | 'paymentDate' | 'couponInfo' | 'usedCredit' | 'pOptionInfo' | 'proceedsInfo'> & {
22
+ searchedItemInfo: SearchedItemInfoForSaleInfo;
23
+ searchedSellerInfo: SearchedSellerInfoForSaleInfo;
24
+ searchedStoreInfo: SearchedStoreForSaleInfo;
25
+ paginationToken: string;
26
+ };
@@ -0,0 +1,56 @@
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.GetItemSaleInfosForSalesTeamByAtlasResult = exports.GetItemSaleInfosForSalesTeamByAtlasPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetItemSaleInfosForSalesTeamByAtlasPayload {
15
+ }
16
+ exports.GetItemSaleInfosForSalesTeamByAtlasPayload = GetItemSaleInfosForSalesTeamByAtlasPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)({ each: true }),
19
+ (0, class_validator_1.ArrayMinSize)(1),
20
+ (0, class_validator_1.IsArray)(),
21
+ __metadata("design:type", Array)
22
+ ], GetItemSaleInfosForSalesTeamByAtlasPayload.prototype, "itemIds", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)({ each: true }),
25
+ (0, class_validator_1.IsArray)(),
26
+ __metadata("design:type", Array)
27
+ ], GetItemSaleInfosForSalesTeamByAtlasPayload.prototype, "selectPInfoProcessList", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsDateString)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ __metadata("design:type", String)
32
+ ], GetItemSaleInfosForSalesTeamByAtlasPayload.prototype, "paymentSDate", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsDateString)(),
35
+ (0, class_validator_1.IsOptional)(),
36
+ __metadata("design:type", String)
37
+ ], GetItemSaleInfosForSalesTeamByAtlasPayload.prototype, "paymentEDate", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsString)(),
40
+ (0, class_validator_1.IsOptional)(),
41
+ __metadata("design:type", String)
42
+ ], GetItemSaleInfosForSalesTeamByAtlasPayload.prototype, "searchAfterToken", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsString)(),
45
+ (0, class_validator_1.IsOptional)(),
46
+ __metadata("design:type", String)
47
+ ], GetItemSaleInfosForSalesTeamByAtlasPayload.prototype, "searchBeforeToken", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.Max)(1000),
50
+ (0, class_validator_1.IsNumber)(),
51
+ (0, class_validator_1.IsOptional)(),
52
+ __metadata("design:type", Number)
53
+ ], GetItemSaleInfosForSalesTeamByAtlasPayload.prototype, "limit", void 0);
54
+ class GetItemSaleInfosForSalesTeamByAtlasResult {
55
+ }
56
+ exports.GetItemSaleInfosForSalesTeamByAtlasResult = GetItemSaleInfosForSalesTeamByAtlasResult;
@@ -0,0 +1,28 @@
1
+ import { SearchedItemInfoForSaleInfo, SearchedSellerInfoForSaleInfo, SearchedStoreForSaleInfo } from './get-item-sale-infos-for-sales-team-by-atlas.dto';
2
+ export declare class GetItemSaleMergeDataForSalesTeamByAtlasPayload {
3
+ itemIds: string[];
4
+ selectPInfoProcessList: string[];
5
+ paymentSDate?: string;
6
+ paymentEDate?: string;
7
+ }
8
+ export declare class GetItemSaleMergeDataForSalesTeamByAtlasResult {
9
+ datas: ItemSaleInfoForSaleTeam[];
10
+ }
11
+ export declare class CustomItemInfoForItemSale {
12
+ _id: string;
13
+ clickNumsBefore1day: number;
14
+ allPNums: number;
15
+ allPaidPrice: number;
16
+ allBasePrice: number;
17
+ allTotalPrice: number;
18
+ allCouponPrice: number;
19
+ allUsedCredit: number;
20
+ allOptionNums: number;
21
+ }
22
+ export declare class ItemSaleInfoForSaleTeam {
23
+ itemId: string;
24
+ customItemInfo: CustomItemInfoForItemSale;
25
+ searchedItemInfo: SearchedItemInfoForSaleInfo;
26
+ searchedSellerInfo: SearchedSellerInfoForSaleInfo;
27
+ searchedStoreForSaleInfo: SearchedStoreForSaleInfo;
28
+ }
@@ -0,0 +1,46 @@
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.ItemSaleInfoForSaleTeam = exports.CustomItemInfoForItemSale = exports.GetItemSaleMergeDataForSalesTeamByAtlasResult = exports.GetItemSaleMergeDataForSalesTeamByAtlasPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetItemSaleMergeDataForSalesTeamByAtlasPayload {
15
+ }
16
+ exports.GetItemSaleMergeDataForSalesTeamByAtlasPayload = GetItemSaleMergeDataForSalesTeamByAtlasPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)({ each: true }),
19
+ (0, class_validator_1.ArrayMinSize)(1),
20
+ (0, class_validator_1.IsArray)(),
21
+ __metadata("design:type", Array)
22
+ ], GetItemSaleMergeDataForSalesTeamByAtlasPayload.prototype, "itemIds", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)({ each: true }),
25
+ (0, class_validator_1.IsArray)(),
26
+ __metadata("design:type", Array)
27
+ ], GetItemSaleMergeDataForSalesTeamByAtlasPayload.prototype, "selectPInfoProcessList", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsDateString)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ __metadata("design:type", String)
32
+ ], GetItemSaleMergeDataForSalesTeamByAtlasPayload.prototype, "paymentSDate", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsDateString)(),
35
+ (0, class_validator_1.IsOptional)(),
36
+ __metadata("design:type", String)
37
+ ], GetItemSaleMergeDataForSalesTeamByAtlasPayload.prototype, "paymentEDate", void 0);
38
+ class GetItemSaleMergeDataForSalesTeamByAtlasResult {
39
+ }
40
+ exports.GetItemSaleMergeDataForSalesTeamByAtlasResult = GetItemSaleMergeDataForSalesTeamByAtlasResult;
41
+ class CustomItemInfoForItemSale {
42
+ }
43
+ exports.CustomItemInfoForItemSale = CustomItemInfoForItemSale;
44
+ class ItemSaleInfoForSaleTeam {
45
+ }
46
+ exports.ItemSaleInfoForSaleTeam = ItemSaleInfoForSaleTeam;
@@ -6,3 +6,5 @@ export * from './get-p-info-expect-settle-amount-by-atlas.dto';
6
6
  export * from './get-p-info-accumulated-settle-amount-by-atlas.dto';
7
7
  export * from './get-p-infos-for-manage-buyer-by-atlas.dto';
8
8
  export * from './get-facet-p-infos-for-manage-buyer-by-atlas.dto';
9
+ export * from './get-item-sale-infos-for-sales-team-by-atlas.dto';
10
+ export * from './get-item-sale-merge-data-for-sales-team-by-atlas.dto';
@@ -22,3 +22,5 @@ __exportStar(require("./get-p-info-expect-settle-amount-by-atlas.dto"), exports)
22
22
  __exportStar(require("./get-p-info-accumulated-settle-amount-by-atlas.dto"), exports);
23
23
  __exportStar(require("./get-p-infos-for-manage-buyer-by-atlas.dto"), exports);
24
24
  __exportStar(require("./get-facet-p-infos-for-manage-buyer-by-atlas.dto"), exports);
25
+ __exportStar(require("./get-item-sale-infos-for-sales-team-by-atlas.dto"), exports);
26
+ __exportStar(require("./get-item-sale-merge-data-for-sales-team-by-atlas.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload, RequestCreateAdCenterCouponSettlePayload, PatchProcessV2ToCheckingStockPayload, PatchProcessV2ToCheckingStockResult } from '../dto/purchasedinfos';
3
+ import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasPayload, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload, RequestCreateAdCenterCouponSettlePayload, PatchProcessV2ToCheckingStockPayload, PatchProcessV2ToCheckingStockResult, GetItemSaleInfosForSalesTeamByAtlasPayload, GetItemSaleInfosForSalesTeamByAtlasResult, GetItemSaleMergeDataForSalesTeamByAtlasPayload, GetItemSaleMergeDataForSalesTeamByAtlasResult } from '../dto/purchasedinfos';
4
4
  export declare class AmqpPurchasedInfoService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -20,4 +20,6 @@ export declare class AmqpPurchasedInfoService {
20
20
  cancelDoneAdCenterCouponInfos(payload: CancelDoneAdCenterCouponInfosPayload, param: AbstractParam): Promise<void>;
21
21
  requestCreateAdCenterCouponSettle(payload: RequestCreateAdCenterCouponSettlePayload, param: AbstractParam): Promise<void>;
22
22
  patchProcessV2ToCheckingStock(payload: PatchProcessV2ToCheckingStockPayload, param: AbstractParam): Promise<PatchProcessV2ToCheckingStockResult>;
23
+ getItemSaleInfosForSalesTeamByAtlas(payload: GetItemSaleInfosForSalesTeamByAtlasPayload, param: AbstractParam): Promise<GetItemSaleInfosForSalesTeamByAtlasResult>;
24
+ getItemSaleMergeDataForSalesTeamByAtlas(payload: GetItemSaleMergeDataForSalesTeamByAtlasPayload, param: AbstractParam): Promise<GetItemSaleMergeDataForSalesTeamByAtlasResult>;
23
25
  }
@@ -66,6 +66,12 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
66
66
  async patchProcessV2ToCheckingStock(payload, param) {
67
67
  return this.amqpManager.call('셀러의 결제건들 재고확인중으로 변경', 'purchased-info.patch.process-v2-to-checking-stock', payload, param, { isErrorThrowing: true });
68
68
  }
69
+ async getItemSaleInfosForSalesTeamByAtlas(payload, param) {
70
+ return this.amqpManager.call('상품 판매 정보 결제 리스트 조회', 'purchased-info.get.item-sale-infos-for-sales-team-by-atlas', payload, param, { isErrorThrowing: true });
71
+ }
72
+ async getItemSaleMergeDataForSalesTeamByAtlas(payload, param) {
73
+ return this.amqpManager.call('상품 판매 정보 결제 종합 데이터 조회', 'purchased-info.get.item-sale-merge-data-for-sales-team-by-atlas', payload, param, { isErrorThrowing: true });
74
+ }
69
75
  };
70
76
  exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService;
71
77
  exports.AmqpPurchasedInfoService = AmqpPurchasedInfoService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.202",
3
+ "version": "0.0.204",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",