@yolo-croket-dev/entity-v2 0.3.48-sj → 0.3.49
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/admin-settlement-limit/admin-settlement-limit.entity.d.ts +30 -0
- package/admin-settlement-limit/admin-settlement-limit.entity.js +2 -0
- package/admin-settlement-limit/index.d.ts +1 -0
- package/admin-settlement-limit/index.js +17 -0
- package/bundle-purchased-info/bundle-purchased-info.entity.d.ts +1 -5
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/purchased-info/purchased-info-for-seller.entity.d.ts +2 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** @author jun @description 관리자 정산 한도 영속 계약. @process 현재 설정과 삭제 후에도 남는 이력을 분리한다. */
|
|
2
|
+
import { Types } from 'mongoose';
|
|
3
|
+
export interface AdminSettlementLimitAdminRef {
|
|
4
|
+
manageUserId: Types.ObjectId;
|
|
5
|
+
username: string;
|
|
6
|
+
pastAuthLevel: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AdminSettlementLimitEntity {
|
|
9
|
+
_id: Types.ObjectId;
|
|
10
|
+
sellerId: Types.ObjectId;
|
|
11
|
+
/** 한국 날짜 YYYY-MM-DD. 지급 제한이 아닌 엑셀 표시 기준이다. */
|
|
12
|
+
applyDateString: string;
|
|
13
|
+
amount: number;
|
|
14
|
+
revision: number;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
createdBy: AdminSettlementLimitAdminRef;
|
|
18
|
+
updatedBy: AdminSettlementLimitAdminRef;
|
|
19
|
+
}
|
|
20
|
+
export interface AdminSettlementLimitLogEntity {
|
|
21
|
+
_id: Types.ObjectId;
|
|
22
|
+
limitId: Types.ObjectId;
|
|
23
|
+
sellerId: Types.ObjectId;
|
|
24
|
+
applyDateString: string;
|
|
25
|
+
action: 'create' | 'update' | 'delete';
|
|
26
|
+
before?: AdminSettlementLimitEntity;
|
|
27
|
+
after?: AdminSettlementLimitEntity;
|
|
28
|
+
manageUserInfo: AdminSettlementLimitAdminRef;
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './admin-settlement-limit.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("./admin-settlement-limit.entity"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
2
|
import { StoreItemKeyword } from '@yolo-croket-dev/entity/src/store-item';
|
|
3
|
-
import { PInfoTypeEnum
|
|
3
|
+
import { PInfoTypeEnum } from '../purchased-info/purchased-info.entity';
|
|
4
4
|
import { StoreItemTypeEnum } from '../store-item/store-item.entity';
|
|
5
5
|
export interface PInfoOfBundle {
|
|
6
6
|
PInfoId: Types.ObjectId;
|
|
@@ -14,10 +14,6 @@ export interface PInfoOfBundle {
|
|
|
14
14
|
/** 해당 데이터는 계속 변동 될 수 있음 */
|
|
15
15
|
process: string;
|
|
16
16
|
process_v2?: string;
|
|
17
|
-
/** 셀러 거래내역 Atlas Search의 환불 대기 상태 필터용 최소 스냅샷 */
|
|
18
|
-
refundWaitingInfo?: {
|
|
19
|
-
status?: RefundWaitingStatusEnum;
|
|
20
|
-
};
|
|
21
17
|
pInfoType?: PInfoTypeEnum;
|
|
22
18
|
/** 추가금 결제 Child가 연결된 Parent PInfo ID. 셀러 거래내역 관계 그룹화에 사용한다. */
|
|
23
19
|
additionalPaymentOriginalPInfoId?: Types.ObjectId;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -97,3 +97,4 @@ __exportStar(require("./customs"), exports);
|
|
|
97
97
|
__exportStar(require("./p-info-pending-settle"), exports);
|
|
98
98
|
__exportStar(require("./store-item-pending-settle"), exports);
|
|
99
99
|
__exportStar(require("./store-pending-settle"), exports);
|
|
100
|
+
__exportStar(require("./admin-settlement-limit"), exports);
|
package/package.json
CHANGED
|
@@ -17,6 +17,8 @@ export type PInfoPickedForSeller = Pick<PurchasedInfoEntity, '_id' | 'publicId'
|
|
|
17
17
|
'additionalPaymentRequestInfo' | 'additionalPaymentInfo'> & {
|
|
18
18
|
/** 주문 당시 상품 키워드 스냅샷 */
|
|
19
19
|
itemKeywords?: StoreItemKeyword[];
|
|
20
|
+
/** 해당 거래의 완료 인증에 연결된 6자리 OTP. 미인증·이전 주문은 생략한다. */
|
|
21
|
+
customsOtp?: string;
|
|
20
22
|
isPcccDeferred?: boolean;
|
|
21
23
|
isReceiveInfoChangedInBeforeDelivery?: boolean;
|
|
22
24
|
/** 구매 당시 상품 타입 */
|