@yolo-croket-dev/entity-v2 0.3.17-sj2 → 0.3.18
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 +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/store-item/store-item.entity.d.ts +36 -0
- package/store-item-connected-coupon/store-item-connected-coupon.entity.d.ts +1 -0
- package/store-item-log/index.d.ts +1 -0
- package/store-item-log/index.js +17 -0
- package/store-item-log/store-item-log.entity.d.ts +4 -0
- package/store-item-log/store-item-log.entity.js +2 -0
- package/store-item-price-fluctuation-log/store-item-price-fluctuation-log.entity.d.ts +1 -0
package/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './store-item-detail-banner';
|
|
|
44
44
|
export * from './store-item-banner';
|
|
45
45
|
export * from './store-item-detail-banner-by-store-item';
|
|
46
46
|
export * from './store-item-option-restock-log';
|
|
47
|
+
export * from './store-item-log';
|
|
47
48
|
export * from './daily-random-coupon';
|
|
48
49
|
export * from './event-banner';
|
|
49
50
|
export * from './brand.modules/brand-inspection';
|
package/index.js
CHANGED
|
@@ -58,6 +58,7 @@ __exportStar(require("./store-item-detail-banner"), exports);
|
|
|
58
58
|
__exportStar(require("./store-item-banner"), exports);
|
|
59
59
|
__exportStar(require("./store-item-detail-banner-by-store-item"), exports);
|
|
60
60
|
__exportStar(require("./store-item-option-restock-log"), exports);
|
|
61
|
+
__exportStar(require("./store-item-log"), exports);
|
|
61
62
|
__exportStar(require("./daily-random-coupon"), exports);
|
|
62
63
|
__exportStar(require("./event-banner"), exports);
|
|
63
64
|
__exportStar(require("./brand.modules/brand-inspection"), exports);
|
package/package.json
CHANGED
|
@@ -459,6 +459,41 @@ export interface StoreItemAdultItemInfo {
|
|
|
459
459
|
/** 업데이트 일자 */
|
|
460
460
|
updateDate?: Date;
|
|
461
461
|
}
|
|
462
|
+
export type StoreItemExchangeRepricingStage = 'ELIGIBILITY' | 'PRE_WRITE' | 'PRICE_WRITE' | 'POST_PROCESS' | 'RECONCILIATION';
|
|
463
|
+
export type StoreItemExchangeRepricingOutcome = 'UPDATED' | 'RATE_METADATA_UPDATED' | 'ALREADY_APPLIED' | 'SKIPPED' | 'CAS_CONFLICT' | 'FAILED_PRE_WRITE' | 'UPDATED_WITH_ISSUES' | 'SUPERSEDED' | 'IN_PROGRESS';
|
|
464
|
+
export type StoreItemExchangeRepricingIssue = 'EXPECTED_LAST_MODIFY_DATE_MISMATCH' | 'EXPECTED_ITEM_PRICE_MISMATCH' | 'EXPECTED_REGULAR_PRICE_VERSION_MISMATCH' | 'PURCHASE_SNAPSHOT_INPUT_MISMATCH' | 'EFFECT_CLAIM_BUSY' | 'OPERATION_ID_CONFLICT' | 'OPERATION_SUPERSEDED' | 'INVALID_CALCULATED_PAYLOAD' | 'PRICE_WRITE_FAILED' | 'POST_PROCESS_OUTCOME_UNKNOWN' | 'PRICE_FLUCTUATION_FAILED' | 'STORE_ITEM_LOG_FAILED' | 'COUPON_SYNC_FAILED' | 'RECONCILIATION_TIMEOUT';
|
|
465
|
+
export type StoreItemExchangeRepricingSkipReason = 'WRONG_HOST' | 'DELETED' | 'NOT_CRAWLED' | 'SELLING_STOPPED' | 'PAUSED' | 'TRANSLATION_PENDING' | 'UNSUPPORTED_CURRENCY' | 'INVALID_PURCHASE_SNAPSHOT' | 'MANUAL_PRICE_OVERRIDE';
|
|
466
|
+
export interface StoreItemExchangeRepricingEffectStateInfo {
|
|
467
|
+
state: 'PENDING' | 'CLAIMED' | 'COMPLETED' | 'ISSUE';
|
|
468
|
+
claimToken: string | null;
|
|
469
|
+
claimFence: number;
|
|
470
|
+
claimExpiresAt: Date | null;
|
|
471
|
+
issueCode: StoreItemExchangeRepricingIssue | null;
|
|
472
|
+
}
|
|
473
|
+
export interface StoreItemExchangeRepricingEffectsInfo {
|
|
474
|
+
PRICE_FLUCTUATION_LOG: StoreItemExchangeRepricingEffectStateInfo;
|
|
475
|
+
STORE_ITEM_LOG: StoreItemExchangeRepricingEffectStateInfo;
|
|
476
|
+
CONNECTED_COUPON_REFRESH: StoreItemExchangeRepricingEffectStateInfo;
|
|
477
|
+
}
|
|
478
|
+
export interface StoreItemExchangeRepricingOperationInfo {
|
|
479
|
+
exchangeRate: string;
|
|
480
|
+
rateBaseDate: string;
|
|
481
|
+
currencyCode: 'JPY';
|
|
482
|
+
calculationSchemaVersion: 'v1';
|
|
483
|
+
runId: string;
|
|
484
|
+
operationId: string;
|
|
485
|
+
operationOrdinal: number;
|
|
486
|
+
repricedAt: Date;
|
|
487
|
+
invalidatedAt?: Date;
|
|
488
|
+
invalidatedBy?: 'DETAIL' | 'MANUAL';
|
|
489
|
+
outcome: StoreItemExchangeRepricingOutcome;
|
|
490
|
+
stage: StoreItemExchangeRepricingStage;
|
|
491
|
+
retryable: boolean;
|
|
492
|
+
skipReason: StoreItemExchangeRepricingSkipReason | null;
|
|
493
|
+
issues: StoreItemExchangeRepricingIssue[];
|
|
494
|
+
originalAppliedClassification: 'PRICE_CHANGED' | 'RATE_METADATA_ONLY' | 'ALREADY_APPLIED' | null;
|
|
495
|
+
effects: StoreItemExchangeRepricingEffectsInfo;
|
|
496
|
+
}
|
|
462
497
|
/** 크롤링 상품 구매 snapshot */
|
|
463
498
|
export interface StoreItemCrawlingPurchaseSnapshotInfo {
|
|
464
499
|
/** 원본 상품 단가 */
|
|
@@ -505,6 +540,7 @@ export interface StoreItemCrawlingPurchaseSnapshotInfo {
|
|
|
505
540
|
originCountry?: string;
|
|
506
541
|
/** 구매 도착 국가 */
|
|
507
542
|
destinationCountry?: string;
|
|
543
|
+
exchangeRepricing?: StoreItemExchangeRepricingOperationInfo;
|
|
508
544
|
}
|
|
509
545
|
export type StoreItemTranslationTrigger = 'CREATED' | 'UPDATED';
|
|
510
546
|
/** 크롤링으로 등록/관리되는 상품의 원본 식별 정보 */
|
|
@@ -27,6 +27,7 @@ export interface RelatedCouponInfo {
|
|
|
27
27
|
}
|
|
28
28
|
export default interface StoreItemConnectedCouponEntity {
|
|
29
29
|
_id: string | Types.ObjectId;
|
|
30
|
+
operationEffectKey?: string;
|
|
30
31
|
/** @description 상품 상품 ID */
|
|
31
32
|
storeItemId: Types.ObjectId;
|
|
32
33
|
/** @description 최대할인 쿠폰 템플릿 아이디 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './store-item-log.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-log.entity"), exports);
|