@yolo-croket-dev/amqp-access 0.7.396 → 0.7.398
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/order-server/dto/purchased-info.modules/purchased-info-reservation/command/reservation-period-changed-notification-bulk.policy.d.ts +8 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/reservation-period-changed-notification-bulk.policy.js +11 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/reservation-period-changed-notification-by-ids.dto.d.ts +25 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/command/reservation-period-changed-notification-by-ids.dto.js +39 -0
- package/package.json +2 -2
- package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/store-item-server/dto/store-item/command/reg-store-item.dto.d.ts +2 -0
- package/store-item-server/dto/store-item/command/reg-store-item.dto.js +5 -0
- package/store-item-server/dto/store-item/query/atlas-search/get-legacy-store-items-by-atlas-search.dto.d.ts +2 -0
- package/store-item-server/dto/store-item/query/atlas-search/get-legacy-store-items-by-atlas-search.dto.js +5 -0
- package/store-item-server/dto/store-item/query/atlas-search/get-store-item-ids-by-atlas-search.dto.d.ts +2 -0
- package/store-item-server/dto/store-item/query/atlas-search/get-store-item-ids-by-atlas-search.dto.js +5 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author 홍준
|
|
3
|
+
* @description 관리자 예약 기간 변경 알림의 입력·배치·간격 상한
|
|
4
|
+
* @process 클라이언트와 서버에서 동일한 제한 사용
|
|
5
|
+
*/
|
|
6
|
+
export declare const RESERVATION_NOTIFICATION_MAX_IDS = 2000;
|
|
7
|
+
export declare const RESERVATION_NOTIFICATION_BATCH_SIZE = 100;
|
|
8
|
+
export declare const RESERVATION_NOTIFICATION_CONCURRENCY = 5;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RESERVATION_NOTIFICATION_CONCURRENCY = exports.RESERVATION_NOTIFICATION_BATCH_SIZE = exports.RESERVATION_NOTIFICATION_MAX_IDS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @author 홍준
|
|
6
|
+
* @description 관리자 예약 기간 변경 알림의 입력·배치·간격 상한
|
|
7
|
+
* @process 클라이언트와 서버에서 동일한 제한 사용
|
|
8
|
+
*/
|
|
9
|
+
exports.RESERVATION_NOTIFICATION_MAX_IDS = 2000;
|
|
10
|
+
exports.RESERVATION_NOTIFICATION_BATCH_SIZE = 100;
|
|
11
|
+
exports.RESERVATION_NOTIFICATION_CONCURRENCY = 5;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare class PrepareReservationPeriodChangedNotificationByIdsPayload {
|
|
2
|
+
purchasedInfoIds: string[];
|
|
3
|
+
}
|
|
4
|
+
export declare class SendReservationPeriodChangedNotificationByIdsPayload {
|
|
5
|
+
purchasedInfoIds: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface ReservationPeriodChangedNotificationTarget {
|
|
8
|
+
purchasedInfoId: string;
|
|
9
|
+
buyerId: string;
|
|
10
|
+
itemId: string;
|
|
11
|
+
itemName: string;
|
|
12
|
+
buyerUsername: string;
|
|
13
|
+
purchaseReceiptId: string;
|
|
14
|
+
reservationPeriod: string;
|
|
15
|
+
}
|
|
16
|
+
export interface PrepareReservationPeriodChangedNotificationByIdsResult {
|
|
17
|
+
inputCount: number;
|
|
18
|
+
targetCount: number;
|
|
19
|
+
targets: ReservationPeriodChangedNotificationTarget[];
|
|
20
|
+
}
|
|
21
|
+
export interface SendReservationPeriodChangedNotificationByIdsResult {
|
|
22
|
+
targetCount: number;
|
|
23
|
+
successCount: number;
|
|
24
|
+
failCount: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SendReservationPeriodChangedNotificationByIdsPayload = exports.PrepareReservationPeriodChangedNotificationByIdsPayload = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* @author 홍준
|
|
15
|
+
* @description 결제 ID 목록을 통한 예약 기간 변경 알림의 조회·발송 계약
|
|
16
|
+
* @process 전체 대상 미리보기 → 대표 결제 ID를 소량씩 발송
|
|
17
|
+
*/
|
|
18
|
+
const class_validator_1 = require("class-validator");
|
|
19
|
+
const reservation_period_changed_notification_bulk_policy_1 = require("./reservation-period-changed-notification-bulk.policy");
|
|
20
|
+
class PrepareReservationPeriodChangedNotificationByIdsPayload {
|
|
21
|
+
}
|
|
22
|
+
exports.PrepareReservationPeriodChangedNotificationByIdsPayload = PrepareReservationPeriodChangedNotificationByIdsPayload;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsArray)(),
|
|
25
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
26
|
+
(0, class_validator_1.ArrayMaxSize)(reservation_period_changed_notification_bulk_policy_1.RESERVATION_NOTIFICATION_MAX_IDS),
|
|
27
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], PrepareReservationPeriodChangedNotificationByIdsPayload.prototype, "purchasedInfoIds", void 0);
|
|
30
|
+
class SendReservationPeriodChangedNotificationByIdsPayload {
|
|
31
|
+
}
|
|
32
|
+
exports.SendReservationPeriodChangedNotificationByIdsPayload = SendReservationPeriodChangedNotificationByIdsPayload;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsArray)(),
|
|
35
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
36
|
+
(0, class_validator_1.ArrayMaxSize)(reservation_period_changed_notification_bulk_policy_1.RESERVATION_NOTIFICATION_BATCH_SIZE),
|
|
37
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], SendReservationPeriodChangedNotificationByIdsPayload.prototype, "purchasedInfoIds", void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.398",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@yolo-croket-dev/domain": "0.2.50",
|
|
25
25
|
"@yolo-croket-dev/dto-v2": "0.2.37",
|
|
26
26
|
"@yolo-croket-dev/entity": "0.2.110",
|
|
27
|
-
"@yolo-croket-dev/entity-v2": "0.3.
|
|
27
|
+
"@yolo-croket-dev/entity-v2": "0.3.63",
|
|
28
28
|
"class-transformer": "^0.5.1",
|
|
29
29
|
"class-validator": "^0.13.2",
|
|
30
30
|
"dotenv": "^16.3.1"
|
package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
|
|
2
2
|
import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
|
|
3
|
-
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common/interfaces").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
4
4
|
/** 구글 시트용 광고센터정산 데이터 */
|
|
5
5
|
export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
|
|
6
6
|
storeInfo: {
|
|
@@ -53,6 +53,8 @@ export declare class RegStoreItemPayload {
|
|
|
53
53
|
bulkRegistrationItemId?: string;
|
|
54
54
|
/** 셀러 전용 상품 관리 메모 */
|
|
55
55
|
sellerMemo?: string;
|
|
56
|
+
/** 관세 및 부가세가 상품 가격에 포함되었는지 여부 */
|
|
57
|
+
isCustomsDutyAndTaxIncluded?: boolean;
|
|
56
58
|
/** 상품 타입 */
|
|
57
59
|
itemType?: StoreItemTypeEnum.normal | StoreItemTypeEnum.used;
|
|
58
60
|
/** 대표 품번 */
|
|
@@ -185,6 +185,11 @@ __decorate([
|
|
|
185
185
|
(0, class_validator_1.MaxLength)(update_store_item_seller_memo_dto_1.STORE_ITEM_SELLER_MEMO_MAX_LENGTH),
|
|
186
186
|
__metadata("design:type", String)
|
|
187
187
|
], RegStoreItemPayload.prototype, "sellerMemo", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, class_validator_1.IsBoolean)(),
|
|
190
|
+
(0, class_validator_1.IsOptional)(),
|
|
191
|
+
__metadata("design:type", Boolean)
|
|
192
|
+
], RegStoreItemPayload.prototype, "isCustomsDutyAndTaxIncluded", void 0);
|
|
188
193
|
__decorate([
|
|
189
194
|
(0, class_validator_1.IsIn)([
|
|
190
195
|
store_item_2.StoreItemTypeEnum.normal,
|
|
@@ -37,6 +37,8 @@ export declare class GetLegacyStoreItemsByAtlasSearchPayload {
|
|
|
37
37
|
maxPrice?: number;
|
|
38
38
|
/** 상품 가격 배송비 포함하여 검색할것인가 */
|
|
39
39
|
isItemPriceWithShippingFee?: boolean;
|
|
40
|
+
/** 관세 및 부가세가 상품 가격에 포함되었는지 여부 */
|
|
41
|
+
isCustomsDutyAndTaxIncluded?: boolean;
|
|
40
42
|
exceptItemIds?: string[];
|
|
41
43
|
includeItemIds?: string[];
|
|
42
44
|
/** @description 셀렉션 프레임 아이디 */
|
|
@@ -127,6 +127,11 @@ __decorate([
|
|
|
127
127
|
,
|
|
128
128
|
__metadata("design:type", Boolean)
|
|
129
129
|
], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "isItemPriceWithShippingFee", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, class_validator_1.IsBoolean)(),
|
|
132
|
+
(0, class_validator_1.IsOptional)(),
|
|
133
|
+
__metadata("design:type", Boolean)
|
|
134
|
+
], GetLegacyStoreItemsByAtlasSearchPayload.prototype, "isCustomsDutyAndTaxIncluded", void 0);
|
|
130
135
|
__decorate([
|
|
131
136
|
(0, class_validator_1.IsArray)(),
|
|
132
137
|
(0, class_validator_1.IsString)({ each: true }),
|
|
@@ -59,6 +59,8 @@ export declare class GetStoreItemIdsByAtlasSearchPayload {
|
|
|
59
59
|
maxPrice?: number;
|
|
60
60
|
/** 상품 가격 배송비 포함하여 검색할것인가 */
|
|
61
61
|
isItemPriceWithShippingFee?: boolean;
|
|
62
|
+
/** 관세 및 부가세가 상품 가격에 포함되었는지 여부 */
|
|
63
|
+
isCustomsDutyAndTaxIncluded?: boolean;
|
|
62
64
|
exceptItemIds?: string[];
|
|
63
65
|
includeItemIds?: string[];
|
|
64
66
|
/** @description 셀렉션 프레임 아이디 */
|
|
@@ -142,6 +142,11 @@ __decorate([
|
|
|
142
142
|
(0, class_validator_1.IsOptional)(),
|
|
143
143
|
__metadata("design:type", Boolean)
|
|
144
144
|
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isItemPriceWithShippingFee", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, class_validator_1.IsBoolean)(),
|
|
147
|
+
(0, class_validator_1.IsOptional)(),
|
|
148
|
+
__metadata("design:type", Boolean)
|
|
149
|
+
], GetStoreItemIdsByAtlasSearchPayload.prototype, "isCustomsDutyAndTaxIncluded", void 0);
|
|
145
150
|
__decorate([
|
|
146
151
|
(0, class_validator_1.IsArray)(),
|
|
147
152
|
(0, class_validator_1.IsString)({ each: true }),
|