@yolo-croket-dev/amqp-access 0.7.92 → 0.7.94

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,44 @@
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 GetPInfosByYgTypePayload {
6
+ /** 필수: inflowInfo.yg_type */
7
+ yg_type: string;
8
+ /** 선택: inflowInfo.yg_method */
9
+ yg_method?: string;
10
+ searchAfterToken?: string;
11
+ searchBeforeToken?: string;
12
+ limit?: number;
13
+ }
14
+ export declare class GetPInfosByYgTypeResult {
15
+ allCount: number;
16
+ datas: SearchedPInfoByYgType[];
17
+ }
18
+ export type SearchedStoreByYgType = Pick<StoreEntity, '_id' | 'storeTitle' | 'adminId'>;
19
+ export type SearchedItemInfoByYgType = Pick<StoreItem, '_id' | 'bookNums' | 'itemName'>;
20
+ export type SearchedSellerInfoByYgType = Pick<UserEntity, '_id' | 'username'>;
21
+ export type SearchedPInfoByYgType = Pick<PurchasedInfoEntity, '_id' | 'process' | 'itemId' | 'sellerId' | 'paidPrice' | 'pastName' | 'totalPrice' | 'paymentDate' | 'couponInfo' | 'usedCredit' | 'pOptionInfo' | 'proceedsInfo'> & {
22
+ searchedItemInfo: SearchedItemInfoByYgType;
23
+ searchedSellerInfo: SearchedSellerInfoByYgType;
24
+ searchedStoreInfo: SearchedStoreByYgType;
25
+ paginationToken: string;
26
+ /** @description yg_type (유입 타입) */
27
+ yg_type?: string;
28
+ /** @description yg_method (유입 방식) */
29
+ yg_method?: string;
30
+ /** @description Last_source (마지막 외부 유입 소스) */
31
+ lastSource?: string;
32
+ /** @description Last_medium (마지막 외부 유입 매체) */
33
+ lastMedium?: string;
34
+ /** @description Last_campaign (마지막 외부 유입 캠페인) */
35
+ lastCampaign?: string;
36
+ /** @description 메인 카테고리 */
37
+ mainCategory?: string;
38
+ /** @description 서브 카테고리 */
39
+ subCategory?: string;
40
+ /** @description 브랜드명 */
41
+ brandName?: string;
42
+ /** @description 영문 브랜드명 */
43
+ engBrandName?: string;
44
+ };
@@ -0,0 +1,45 @@
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.GetPInfosByYgTypeResult = exports.GetPInfosByYgTypePayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetPInfosByYgTypePayload {
15
+ }
16
+ exports.GetPInfosByYgTypePayload = GetPInfosByYgTypePayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], GetPInfosByYgTypePayload.prototype, "yg_type", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsOptional)(),
25
+ __metadata("design:type", String)
26
+ ], GetPInfosByYgTypePayload.prototype, "yg_method", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsOptional)(),
30
+ __metadata("design:type", String)
31
+ ], GetPInfosByYgTypePayload.prototype, "searchAfterToken", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_validator_1.IsOptional)(),
35
+ __metadata("design:type", String)
36
+ ], GetPInfosByYgTypePayload.prototype, "searchBeforeToken", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.Max)(1000),
39
+ (0, class_validator_1.IsNumber)(),
40
+ (0, class_validator_1.IsOptional)(),
41
+ __metadata("design:type", Number)
42
+ ], GetPInfosByYgTypePayload.prototype, "limit", void 0);
43
+ class GetPInfosByYgTypeResult {
44
+ }
45
+ exports.GetPInfosByYgTypeResult = GetPInfosByYgTypeResult;
@@ -2,3 +2,4 @@ export * from './get-purchased-infos-for-admin.dto';
2
2
  export * from './get-purchased-info-detail-for-admin-edit.dto';
3
3
  export * from './get-purchased-info-logs-for-coupon-info.dto';
4
4
  export * from './get-delivery-list-for-admin.dto';
5
+ export * from './get-p-infos-by-yg-type.dto';
@@ -18,3 +18,4 @@ __exportStar(require("./get-purchased-infos-for-admin.dto"), exports);
18
18
  __exportStar(require("./get-purchased-info-detail-for-admin-edit.dto"), exports);
19
19
  __exportStar(require("./get-purchased-info-logs-for-coupon-info.dto"), exports);
20
20
  __exportStar(require("./get-delivery-list-for-admin.dto"), exports);
21
+ __exportStar(require("./get-p-infos-by-yg-type.dto"), exports);
@@ -19,6 +19,8 @@ export interface PInfoReservationForAdmin {
19
19
  buyerId: string;
20
20
  /** 구매자명 */
21
21
  buyerUsername: string;
22
+ /** 구매 옵션명 목록 */
23
+ optionNames: string[];
22
24
  /** 예약 순서 */
23
25
  reservationOrder: number;
24
26
  /** 예약 일시 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.92",
3
+ "version": "0.7.94",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -22,6 +22,8 @@ export interface PInfoReservationForAdminDetail {
22
22
  itemId: string;
23
23
  buyerId: string;
24
24
  buyerUsername: string;
25
+ /** 구매 옵션명 목록 */
26
+ optionNames: string[];
25
27
  reservationOrder: number;
26
28
  reservedDate: Date;
27
29
  cancelledDate?: Date;