@yolo-croket-dev/entity-v2 0.3.30 → 0.3.31-hj-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.
@@ -0,0 +1,70 @@
1
+ import { Types } from 'mongoose';
2
+ /** @description 관세청 개인통관고유부호 검증 처리 상태 */
3
+ export declare enum CustomsPcccVerificationStatusEnum {
4
+ REQUESTING = "REQUESTING",
5
+ USER_INPUT_REQUIRED = "USER_INPUT_REQUIRED",
6
+ VERIFIED = "VERIFIED",
7
+ FAILED = "FAILED",
8
+ UNKNOWN_RESULT = "UNKNOWN_RESULT"
9
+ }
10
+ /** @description 관세청 거래정보 제출 처리 상태 */
11
+ export declare enum CustomsTradeSubmissionStatusEnum {
12
+ SUBMITTING = "SUBMITTING",
13
+ SUBMITTED_ACK = "SUBMITTED_ACK",
14
+ VALIDATING = "VALIDATING",
15
+ REGISTERED = "REGISTERED",
16
+ PARTIAL_REJECTED = "PARTIAL_REJECTED",
17
+ FULL_REJECTED = "FULL_REJECTED",
18
+ UNKNOWN_RESULT = "UNKNOWN_RESULT",
19
+ FAILED = "FAILED"
20
+ }
21
+ export interface CustomsPcccVerificationEntity {
22
+ _id: Types.ObjectId | string;
23
+ reqtNo: string;
24
+ orderNo?: string;
25
+ status: CustomsPcccVerificationStatusEnum;
26
+ requestType: '01' | '02';
27
+ phoneLastFour: string;
28
+ otpPrefix?: string;
29
+ responseType?: '01' | '02' | '03';
30
+ validationPeriod?: string;
31
+ issuedAt?: string;
32
+ externalResponseCode?: string;
33
+ externalResponseUuid?: string;
34
+ maskedEmail?: string;
35
+ failureCode?: string;
36
+ requestedAt: Date;
37
+ verifiedAt?: Date;
38
+ }
39
+ export interface CustomsTradeSubmissionEntity {
40
+ _id: Types.ObjectId | string;
41
+ txifSbmtNo: string;
42
+ status: CustomsTradeSubmissionStatusEnum;
43
+ payloadHash: string;
44
+ orderNumbers: string[];
45
+ submittedAt?: Date;
46
+ lastResultQueriedAt?: Date;
47
+ nextResultQueryAt?: Date;
48
+ externalResponseCode?: string;
49
+ externalResponseUuid?: string;
50
+ result?: Record<string, unknown>;
51
+ failureCode?: string;
52
+ failureMessage?: string;
53
+ attemptCount: number;
54
+ createdAt: Date;
55
+ updatedAt: Date;
56
+ }
57
+ export interface CustomsAccessTokenEntity {
58
+ _id: Types.ObjectId | string;
59
+ credentialKey: string;
60
+ accessToken?: string;
61
+ expiresAt?: Date;
62
+ refreshLockUntil?: Date;
63
+ updatedAt: Date;
64
+ }
65
+ export interface CustomsSequenceEntity {
66
+ _id: Types.ObjectId | string;
67
+ key: string;
68
+ value: number;
69
+ updatedAt: Date;
70
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomsTradeSubmissionStatusEnum = exports.CustomsPcccVerificationStatusEnum = void 0;
4
+ /** @description 관세청 개인통관고유부호 검증 처리 상태 */
5
+ var CustomsPcccVerificationStatusEnum;
6
+ (function (CustomsPcccVerificationStatusEnum) {
7
+ CustomsPcccVerificationStatusEnum["REQUESTING"] = "REQUESTING";
8
+ CustomsPcccVerificationStatusEnum["USER_INPUT_REQUIRED"] = "USER_INPUT_REQUIRED";
9
+ CustomsPcccVerificationStatusEnum["VERIFIED"] = "VERIFIED";
10
+ CustomsPcccVerificationStatusEnum["FAILED"] = "FAILED";
11
+ CustomsPcccVerificationStatusEnum["UNKNOWN_RESULT"] = "UNKNOWN_RESULT";
12
+ })(CustomsPcccVerificationStatusEnum || (exports.CustomsPcccVerificationStatusEnum = CustomsPcccVerificationStatusEnum = {}));
13
+ /** @description 관세청 거래정보 제출 처리 상태 */
14
+ var CustomsTradeSubmissionStatusEnum;
15
+ (function (CustomsTradeSubmissionStatusEnum) {
16
+ CustomsTradeSubmissionStatusEnum["SUBMITTING"] = "SUBMITTING";
17
+ CustomsTradeSubmissionStatusEnum["SUBMITTED_ACK"] = "SUBMITTED_ACK";
18
+ CustomsTradeSubmissionStatusEnum["VALIDATING"] = "VALIDATING";
19
+ CustomsTradeSubmissionStatusEnum["REGISTERED"] = "REGISTERED";
20
+ CustomsTradeSubmissionStatusEnum["PARTIAL_REJECTED"] = "PARTIAL_REJECTED";
21
+ CustomsTradeSubmissionStatusEnum["FULL_REJECTED"] = "FULL_REJECTED";
22
+ CustomsTradeSubmissionStatusEnum["UNKNOWN_RESULT"] = "UNKNOWN_RESULT";
23
+ CustomsTradeSubmissionStatusEnum["FAILED"] = "FAILED";
24
+ })(CustomsTradeSubmissionStatusEnum || (exports.CustomsTradeSubmissionStatusEnum = CustomsTradeSubmissionStatusEnum = {}));
@@ -0,0 +1 @@
1
+ export * from './customs.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("./customs.entity"), exports);
package/index.d.ts CHANGED
@@ -78,3 +78,4 @@ export * from './seller-image-asset';
78
78
  export * from './crawler-proxy-order-slack-event';
79
79
  export * from './crawler-proxy-order-payment-request-slack-event';
80
80
  export * from './chat.modules/message-template.entity';
81
+ export * from './customs';
package/index.js CHANGED
@@ -92,3 +92,4 @@ __exportStar(require("./seller-image-asset"), exports);
92
92
  __exportStar(require("./crawler-proxy-order-slack-event"), exports);
93
93
  __exportStar(require("./crawler-proxy-order-payment-request-slack-event"), exports);
94
94
  __exportStar(require("./chat.modules/message-template.entity"), exports);
95
+ __exportStar(require("./customs"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.3.30",
3
+ "version": "0.3.31-hj-1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",