@yolo-croket-dev/entity-v2 0.3.40 → 0.3.42-beta.1

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/index.d.ts CHANGED
@@ -80,3 +80,4 @@ export * from './crawler-proxy-order-slack-event';
80
80
  export * from './crawler-proxy-order-payment-request-slack-event';
81
81
  export * from './chat.modules/message-template.entity';
82
82
  export * from './customs';
83
+ export * from './p-info-pending-settle';
package/index.js CHANGED
@@ -94,3 +94,4 @@ __exportStar(require("./crawler-proxy-order-slack-event"), exports);
94
94
  __exportStar(require("./crawler-proxy-order-payment-request-slack-event"), exports);
95
95
  __exportStar(require("./chat.modules/message-template.entity"), exports);
96
96
  __exportStar(require("./customs"), exports);
97
+ __exportStar(require("./p-info-pending-settle"), exports);
@@ -0,0 +1 @@
1
+ export * from './p-info-pending-settle.entity';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./p-info-pending-settle.entity"), exports);
@@ -0,0 +1,48 @@
1
+ /** @author jun @description 스토어 결제별 정산 보류 영속 계약. @process 현재 설정과 감사 이력을 분리한다. */
2
+ import { Types } from 'mongoose';
3
+ export declare enum PInfoPendingSettleReason {
4
+ COUNTERFEIT_ISSUE = "counterfeit_issue",
5
+ PRODUCT_ISSUE = "product_issue",
6
+ SETTLEMENT_DOCUMENT_REVIEW = "settlement_document_review",
7
+ SELLER_REASON = "seller_reason",
8
+ OTHER = "other"
9
+ }
10
+ export declare enum PInfoPendingSettleAction {
11
+ REGISTER = "REGISTER",
12
+ UPDATE = "UPDATE",
13
+ RELEASE = "RELEASE",
14
+ REHOLD = "REHOLD"
15
+ }
16
+ export interface PInfoPendingSettleAdminRef {
17
+ manageUserId: Types.ObjectId;
18
+ username: string;
19
+ pastAuthLevel: string;
20
+ }
21
+ export interface PInfoPendingSettleSnapshot {
22
+ pInfoId: Types.ObjectId;
23
+ reason: PInfoPendingSettleReason;
24
+ memo: string;
25
+ startsAt: Date;
26
+ /** Exclusive UTC boundary; null means indefinite. */
27
+ endsAt: Date | null;
28
+ releasedAt: Date | null;
29
+ releaseMemo: string | null;
30
+ createdBy: PInfoPendingSettleAdminRef;
31
+ updatedBy: PInfoPendingSettleAdminRef;
32
+ releasedBy: PInfoPendingSettleAdminRef | null;
33
+ createdAt: Date;
34
+ updatedAt: Date;
35
+ }
36
+ export interface PInfoPendingSettleEntity extends PInfoPendingSettleSnapshot {
37
+ _id: Types.ObjectId;
38
+ }
39
+ export interface PInfoPendingSettleLogEntity {
40
+ _id: Types.ObjectId;
41
+ pendingSettleId: Types.ObjectId;
42
+ action: PInfoPendingSettleAction;
43
+ actor: PInfoPendingSettleAdminRef;
44
+ before: PInfoPendingSettleSnapshot | null;
45
+ after: PInfoPendingSettleSnapshot;
46
+ traceId: string;
47
+ createdAt: Date;
48
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PInfoPendingSettleAction = exports.PInfoPendingSettleReason = void 0;
4
+ var PInfoPendingSettleReason;
5
+ (function (PInfoPendingSettleReason) {
6
+ PInfoPendingSettleReason["COUNTERFEIT_ISSUE"] = "counterfeit_issue";
7
+ PInfoPendingSettleReason["PRODUCT_ISSUE"] = "product_issue";
8
+ PInfoPendingSettleReason["SETTLEMENT_DOCUMENT_REVIEW"] = "settlement_document_review";
9
+ PInfoPendingSettleReason["SELLER_REASON"] = "seller_reason";
10
+ PInfoPendingSettleReason["OTHER"] = "other";
11
+ })(PInfoPendingSettleReason || (exports.PInfoPendingSettleReason = PInfoPendingSettleReason = {}));
12
+ var PInfoPendingSettleAction;
13
+ (function (PInfoPendingSettleAction) {
14
+ PInfoPendingSettleAction["REGISTER"] = "REGISTER";
15
+ PInfoPendingSettleAction["UPDATE"] = "UPDATE";
16
+ PInfoPendingSettleAction["RELEASE"] = "RELEASE";
17
+ PInfoPendingSettleAction["REHOLD"] = "REHOLD";
18
+ })(PInfoPendingSettleAction || (exports.PInfoPendingSettleAction = PInfoPendingSettleAction = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.3.40",
3
+ "version": "0.3.42-beta.1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -31,7 +31,9 @@ export declare enum ReservationCancelReasonEnum {
31
31
  /** 결제 실패로 매칭 실패 (관리자 선택) */
32
32
  matchingFailedPaymentByAdmin = "matchingFailedPaymentByAdmin",
33
33
  /** 구매자와 협의 후 예약 해제 (관리자 선택) */
34
- cancelAfterConsultationWithBuyerByAdmin = "cancelAfterConsultationWithBuyerByAdmin"
34
+ cancelAfterConsultationWithBuyerByAdmin = "cancelAfterConsultationWithBuyerByAdmin",
35
+ /** 상품/가격 정보 변경으로 인한 취소 (관리자 선택) */
36
+ cancelDueToItemOrPriceChangeByAdmin = "cancelDueToItemOrPriceChangeByAdmin"
35
37
  }
36
38
  export declare enum PInfoTypeEnum {
37
39
  normal = "normal",
@@ -27,6 +27,8 @@ var ReservationCancelReasonEnum;
27
27
  ReservationCancelReasonEnum["matchingFailedPaymentByAdmin"] = "matchingFailedPaymentByAdmin";
28
28
  /** 구매자와 협의 후 예약 해제 (관리자 선택) */
29
29
  ReservationCancelReasonEnum["cancelAfterConsultationWithBuyerByAdmin"] = "cancelAfterConsultationWithBuyerByAdmin";
30
+ /** 상품/가격 정보 변경으로 인한 취소 (관리자 선택) */
31
+ ReservationCancelReasonEnum["cancelDueToItemOrPriceChangeByAdmin"] = "cancelDueToItemOrPriceChangeByAdmin";
30
32
  })(ReservationCancelReasonEnum || (exports.ReservationCancelReasonEnum = ReservationCancelReasonEnum = {}));
31
33
  var PInfoTypeEnum;
32
34
  (function (PInfoTypeEnum) {
@@ -1,5 +1,5 @@
1
1
  import { Types } from 'mongoose';
2
- export type CiProvider = 'INICIS' | 'PORTONE';
2
+ export type CiProvider = 'INICIS' | 'PORTONE' | 'PORTONE_TEST';
3
3
  /**
4
4
  * @author 홍준
5
5
  * @description 사용자와 분리된 컬렉션에 저장되는 AES-256-GCM CI 정보