@yolo-croket-dev/entity-v2 0.3.42 → 0.3.44

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,5 @@ 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';
84
+ export * from './store-item-pending-settle';
package/index.js CHANGED
@@ -94,3 +94,5 @@ __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);
98
+ __exportStar(require("./store-item-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.42",
3
+ "version": "0.3.44",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -23,4 +23,4 @@
23
23
  },
24
24
  "license": "UNLICENSED",
25
25
  "dependencies": {}
26
- }
26
+ }
@@ -0,0 +1 @@
1
+ export * from './store-item-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("./store-item-pending-settle.entity"), exports);
@@ -0,0 +1,48 @@
1
+ /** @author jun @description 상품별 정산 보류 영속 계약. @process 현재 설정과 감사 이력을 분리한다. */
2
+ import { Types } from 'mongoose';
3
+ export declare enum StoreItemPendingSettleReason {
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 StoreItemPendingSettleAction {
11
+ REGISTER = "REGISTER",
12
+ UPDATE = "UPDATE",
13
+ RELEASE = "RELEASE",
14
+ REHOLD = "REHOLD"
15
+ }
16
+ export interface StoreItemPendingSettleAdminRef {
17
+ manageUserId: Types.ObjectId;
18
+ username: string;
19
+ pastAuthLevel: string;
20
+ }
21
+ export interface StoreItemPendingSettleSnapshot {
22
+ storeItemId: Types.ObjectId;
23
+ reason: StoreItemPendingSettleReason;
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: StoreItemPendingSettleAdminRef;
31
+ updatedBy: StoreItemPendingSettleAdminRef;
32
+ releasedBy: StoreItemPendingSettleAdminRef | null;
33
+ createdAt: Date;
34
+ updatedAt: Date;
35
+ }
36
+ export interface StoreItemPendingSettleEntity extends StoreItemPendingSettleSnapshot {
37
+ _id: Types.ObjectId;
38
+ }
39
+ export interface StoreItemPendingSettleLogEntity {
40
+ _id: Types.ObjectId;
41
+ pendingSettleId: Types.ObjectId;
42
+ action: StoreItemPendingSettleAction;
43
+ actor: StoreItemPendingSettleAdminRef;
44
+ before: StoreItemPendingSettleSnapshot | null;
45
+ after: StoreItemPendingSettleSnapshot;
46
+ traceId: string;
47
+ createdAt: Date;
48
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StoreItemPendingSettleAction = exports.StoreItemPendingSettleReason = void 0;
4
+ var StoreItemPendingSettleReason;
5
+ (function (StoreItemPendingSettleReason) {
6
+ StoreItemPendingSettleReason["COUNTERFEIT_ISSUE"] = "counterfeit_issue";
7
+ StoreItemPendingSettleReason["PRODUCT_ISSUE"] = "product_issue";
8
+ StoreItemPendingSettleReason["SETTLEMENT_DOCUMENT_REVIEW"] = "settlement_document_review";
9
+ StoreItemPendingSettleReason["SELLER_REASON"] = "seller_reason";
10
+ StoreItemPendingSettleReason["OTHER"] = "other";
11
+ })(StoreItemPendingSettleReason || (exports.StoreItemPendingSettleReason = StoreItemPendingSettleReason = {}));
12
+ var StoreItemPendingSettleAction;
13
+ (function (StoreItemPendingSettleAction) {
14
+ StoreItemPendingSettleAction["REGISTER"] = "REGISTER";
15
+ StoreItemPendingSettleAction["UPDATE"] = "UPDATE";
16
+ StoreItemPendingSettleAction["RELEASE"] = "RELEASE";
17
+ StoreItemPendingSettleAction["REHOLD"] = "REHOLD";
18
+ })(StoreItemPendingSettleAction || (exports.StoreItemPendingSettleAction = StoreItemPendingSettleAction = {}));