@yolo-croket-dev/amqp-access 0.7.91 → 0.7.93

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,11 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Read(//Users/jun/Desktop/code/work/monorepo/**)",
5
+ "Bash(npm ls:*)",
6
+ "Bash(cd:*)",
7
+ "WebFetch(domain:developers.nicepay.co.kr)",
8
+ "Bash(npx lerna:*)"
9
+ ]
10
+ }
11
+ }
@@ -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.91",
3
+ "version": "0.7.93",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -27,4 +27,4 @@
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
29
29
  }
30
- }
30
+ }
@@ -1,6 +1,6 @@
1
1
  import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
2
2
  import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
3
- declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
3
+ declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "publicId" | "couponInfo" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
4
4
  /** 구글 시트용 광고센터정산 데이터 */
5
5
  export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
6
6
  storeInfo: {
@@ -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;
@@ -1,4 +1,23 @@
1
1
  import { StoreItem as StoreItemEntity, ReservationPeriod, ReservationStockModeInfo, StoreItemReservationStatsInfo } from '@yolo-croket-dev/entity/src/store-item';
2
+ import { ReservationCancelReasonEnum } from '@yolo-croket-dev/entity-v2/purchased-info';
3
+ /**
4
+ * @description 예약 실패 건 사유별 카운트 (조회 시점 집계; DB 저장 X)
5
+ */
6
+ export interface ReservationFailedCountByReason {
7
+ /** 사용자 직접 취소 건수 */
8
+ [ReservationCancelReasonEnum.cancelByUser]: number;
9
+ /** 재고 매칭 실패 건수 */
10
+ [ReservationCancelReasonEnum.matchingFailedStockByAdmin]: number;
11
+ /** 결제 매칭 실패 건수 */
12
+ [ReservationCancelReasonEnum.matchingFailedPaymentByAdmin]: number;
13
+ }
14
+ /**
15
+ * @description 목록 API 전용 확장 통계 타입
16
+ * - DB 원본(`StoreItemReservationStatsInfo`)에 사유별 집계를 조회 시점에 추가
17
+ */
18
+ export type ReservationStatsInfoForAdminList = StoreItemReservationStatsInfo & {
19
+ failedCountByReason?: ReservationFailedCountByReason;
20
+ };
2
21
  export declare enum GetReservationItemsForAdminSearchTypeEnum {
3
22
  'ITEM_NAME' = "ITEM_NAME",
4
23
  'ITEM_ID' = "ITEM_ID",
@@ -30,7 +49,7 @@ export interface GetReservationItemsForAdminListItem {
30
49
  stockSecuringPeriod: ReservationPeriod;
31
50
  shippingPeriod: ReservationPeriod;
32
51
  stockModeInfo: ReservationStockModeInfo;
33
- reservationStatsInfo?: StoreItemReservationStatsInfo;
52
+ reservationStatsInfo?: ReservationStatsInfoForAdminList;
34
53
  }
35
54
  export declare class GetReservationItemsForAdminResult {
36
55
  list: GetReservationItemsForAdminListItem[];
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.GetReservationItemsForAdminResult = exports.GetReservationItemsForAdminPayload = exports.GetReservationItemsForAdminReservationStatusEnum = exports.GetReservationItemsForAdminSearchTypeEnum = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const purchased_info_1 = require("@yolo-croket-dev/entity-v2/purchased-info");
14
15
  var GetReservationItemsForAdminSearchTypeEnum;
15
16
  (function (GetReservationItemsForAdminSearchTypeEnum) {
16
17
  GetReservationItemsForAdminSearchTypeEnum["ITEM_NAME"] = "ITEM_NAME";