@yolo-croket-dev/amqp-access 0.0.202-jun.0 → 0.0.202-jun.10

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.
@@ -1,19 +1,26 @@
1
1
  import { PurchasedInfoEntity } from '@yolo-croket-dev/entity-v2/purchased-info/purchased-info.entity';
2
+ import { StoreEntity } from '@yolo-croket-dev/entity/src/store';
2
3
  import { StoreItem } from '@yolo-croket-dev/entity/src/store-item';
3
4
  import { UserEntity } from '@yolo-croket-dev/entity-v2/user/user.entity';
4
- export declare class GetSaleInfosForSalesTeamByAtlasPayload {
5
+ export declare class GetItemSaleInfosForSalesTeamByAtlasPayload {
5
6
  itemIds: string[];
6
7
  selectPInfoProcessList: string[];
7
8
  paymentSDate?: string;
8
9
  paymentEDate?: string;
10
+ searchAfterToken?: string;
11
+ searchBeforeToken?: string;
12
+ limit?: number;
9
13
  }
10
- export declare class GetSaleInfosForSalesTeamByAtlasResult {
14
+ export declare class GetItemSaleInfosForSalesTeamByAtlasResult {
11
15
  allCount: number;
12
16
  datas: SearchedPurchasedInfoForSaleInfo[];
13
17
  }
18
+ export type SearchedStoreForSaleInfo = Pick<StoreEntity, '_id' | 'storeTitle' | 'adminId'>;
14
19
  export type SearchedItemInfoForSaleInfo = Pick<StoreItem, '_id' | 'bookNums' | 'itemName'>;
15
20
  export type SearchedSellerInfoForSaleInfo = Pick<UserEntity, '_id' | 'username'>;
16
- export type SearchedPurchasedInfoForSaleInfo = Pick<PurchasedInfoEntity, '_id' | 'process' | 'itemId' | 'sellerId' | 'paidPrice' | 'pastName' | 'totalPrice' | 'paymentDate' | 'couponInfo' | 'usedCredit' | 'proceedsInfo'> & {
21
+ export type SearchedPurchasedInfoForSaleInfo = Pick<PurchasedInfoEntity, '_id' | 'process' | 'itemId' | 'sellerId' | 'paidPrice' | 'pastName' | 'totalPrice' | 'paymentDate' | 'couponInfo' | 'usedCredit' | 'pOptionInfo' | 'proceedsInfo'> & {
17
22
  searchedItemInfo: SearchedItemInfoForSaleInfo;
18
23
  searchedSellerInfo: SearchedSellerInfoForSaleInfo;
24
+ searchedStoreInfo: SearchedStoreForSaleInfo;
25
+ paginationToken: string;
19
26
  };
@@ -9,31 +9,48 @@ 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.GetSaleInfosForSalesTeamByAtlasResult = exports.GetSaleInfosForSalesTeamByAtlasPayload = void 0;
12
+ exports.GetItemSaleInfosForSalesTeamByAtlasResult = exports.GetItemSaleInfosForSalesTeamByAtlasPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class GetSaleInfosForSalesTeamByAtlasPayload {
14
+ class GetItemSaleInfosForSalesTeamByAtlasPayload {
15
15
  }
16
- exports.GetSaleInfosForSalesTeamByAtlasPayload = GetSaleInfosForSalesTeamByAtlasPayload;
16
+ exports.GetItemSaleInfosForSalesTeamByAtlasPayload = GetItemSaleInfosForSalesTeamByAtlasPayload;
17
17
  __decorate([
18
18
  (0, class_validator_1.IsMongoId)({ each: true }),
19
+ (0, class_validator_1.ArrayMinSize)(1),
19
20
  (0, class_validator_1.IsArray)(),
20
21
  __metadata("design:type", Array)
21
- ], GetSaleInfosForSalesTeamByAtlasPayload.prototype, "itemIds", void 0);
22
+ ], GetItemSaleInfosForSalesTeamByAtlasPayload.prototype, "itemIds", void 0);
22
23
  __decorate([
23
24
  (0, class_validator_1.IsString)({ each: true }),
24
25
  (0, class_validator_1.IsArray)(),
25
26
  __metadata("design:type", Array)
26
- ], GetSaleInfosForSalesTeamByAtlasPayload.prototype, "selectPInfoProcessList", void 0);
27
+ ], GetItemSaleInfosForSalesTeamByAtlasPayload.prototype, "selectPInfoProcessList", void 0);
27
28
  __decorate([
28
29
  (0, class_validator_1.IsDateString)(),
29
30
  (0, class_validator_1.IsOptional)(),
30
31
  __metadata("design:type", String)
31
- ], GetSaleInfosForSalesTeamByAtlasPayload.prototype, "paymentSDate", void 0);
32
+ ], GetItemSaleInfosForSalesTeamByAtlasPayload.prototype, "paymentSDate", void 0);
32
33
  __decorate([
33
34
  (0, class_validator_1.IsDateString)(),
34
35
  (0, class_validator_1.IsOptional)(),
35
36
  __metadata("design:type", String)
36
- ], GetSaleInfosForSalesTeamByAtlasPayload.prototype, "paymentEDate", void 0);
37
- class GetSaleInfosForSalesTeamByAtlasResult {
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 {
38
55
  }
39
- exports.GetSaleInfosForSalesTeamByAtlasResult = GetSaleInfosForSalesTeamByAtlasResult;
56
+ exports.GetItemSaleInfosForSalesTeamByAtlasResult = GetItemSaleInfosForSalesTeamByAtlasResult;
@@ -8,17 +8,20 @@ export declare class GetItemSaleMergeDataForSalesTeamByAtlasPayload {
8
8
  export declare class GetItemSaleMergeDataForSalesTeamByAtlasResult {
9
9
  datas: ItemSaleInfoForSaleTeam[];
10
10
  }
11
+ export declare class CustomItemInfo {
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
+ }
11
22
  export declare class ItemSaleInfoForSaleTeam {
12
23
  itemId: string;
13
- customItemInfo: {
14
- _id: string;
15
- clickNumsBefore1day: number;
16
- allPNums: number;
17
- allPaidPrice: number;
18
- allBasePrice: number;
19
- allCouponPrice: number;
20
- allUsedCredit: number;
21
- };
24
+ customItemInfo: CustomItemInfo;
22
25
  searchedItemInfo: SearchedItemInfoForSaleInfo;
23
26
  searchedSellerInfo: SearchedSellerInfoForSaleInfo;
24
27
  }
@@ -9,13 +9,14 @@ 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.ItemSaleInfoForSaleTeam = exports.GetItemSaleMergeDataForSalesTeamByAtlasResult = exports.GetItemSaleMergeDataForSalesTeamByAtlasPayload = void 0;
12
+ exports.ItemSaleInfoForSaleTeam = exports.CustomItemInfo = exports.GetItemSaleMergeDataForSalesTeamByAtlasResult = exports.GetItemSaleMergeDataForSalesTeamByAtlasPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  class GetItemSaleMergeDataForSalesTeamByAtlasPayload {
15
15
  }
16
16
  exports.GetItemSaleMergeDataForSalesTeamByAtlasPayload = GetItemSaleMergeDataForSalesTeamByAtlasPayload;
17
17
  __decorate([
18
18
  (0, class_validator_1.IsMongoId)({ each: true }),
19
+ (0, class_validator_1.ArrayMinSize)(1),
19
20
  (0, class_validator_1.IsArray)(),
20
21
  __metadata("design:type", Array)
21
22
  ], GetItemSaleMergeDataForSalesTeamByAtlasPayload.prototype, "itemIds", void 0);
@@ -37,6 +38,9 @@ __decorate([
37
38
  class GetItemSaleMergeDataForSalesTeamByAtlasResult {
38
39
  }
39
40
  exports.GetItemSaleMergeDataForSalesTeamByAtlasResult = GetItemSaleMergeDataForSalesTeamByAtlasResult;
41
+ class CustomItemInfo {
42
+ }
43
+ exports.CustomItemInfo = CustomItemInfo;
40
44
  class ItemSaleInfoForSaleTeam {
41
45
  }
42
46
  exports.ItemSaleInfoForSaleTeam = ItemSaleInfoForSaleTeam;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.202-jun.0",
3
+ "version": "0.0.202-jun.10",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",