@yolo-croket-dev/amqp-access 0.7.71 → 0.7.73
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/amqp.order-server.module.js +2 -0
- package/order-server/dto/purchased-info.modules/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/index.js +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-invoice-for-admin.dto.d.ts +6 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-invoice-for-admin.dto.js +25 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-split-invoice-for-admin.dto.d.ts +6 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-split-invoice-for-admin.dto.js +24 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.d.ts +4 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.js +4 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-invoice-for-admin.dto.d.ts +24 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-invoice-for-admin.dto.js +68 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-split-invoice-for-admin.dto.d.ts +38 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-split-invoice-for-admin.dto.js +90 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-delivery-list-for-admin.dto.d.ts +120 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-delivery-list-for-admin.dto.js +66 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/index.js +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/query/get-reservation-list-for-admin.dto.d.ts +49 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/query/get-reservation-list-for-admin.dto.js +34 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/query/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-reservation/query/index.js +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/index.d.ts +2 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/index.js +18 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/register-split-invoice-bulk.dto.d.ts +38 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/register-split-invoice-bulk.dto.js +60 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/upsert-split-invoice.dto.d.ts +36 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/upsert-split-invoice.dto.js +85 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/index.js +17 -0
- package/order-server/dto/purchasedinfos/query/atlas/get-p-infos-for-manage-buyer-by-atlas.dto.d.ts +3 -0
- package/order-server/dto/purchasedinfos/query/atlas/get-p-infos-for-manage-buyer-by-atlas.dto.js +5 -0
- package/order-server/dto/purchasedinfos/query/search-seller-transaction-history-by-process.dto.d.ts +7 -1
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.d.ts +6 -1
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.js +15 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.d.ts +3 -1
- package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.js +4 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-split-delivery.service.d.ts +12 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-split-delivery.service.js +43 -0
- package/order-server/services/purchased-info.modules/index.d.ts +1 -0
- package/order-server/services/purchased-info.modules/index.js +1 -0
- package/package.json +4 -4
- package/payment-service/dto/partial-refund/command/create-partial-refund.dto.d.ts +3 -1
- package/payment-service/dto/partial-refund/command/create-partial-refund.dto.js +2 -0
- package/user-service/dto/redis-db/command/index.d.ts +1 -0
- package/user-service/dto/redis-db/command/index.js +1 -0
- package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-split-delivery-shipping.dto.d.ts +22 -0
- package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-split-delivery-shipping.dto.js +72 -0
- package/user-service/services/redis-db/amqp.redis-db.app-batch-push.service.d.ts +16 -1
- package/user-service/services/redis-db/amqp.redis-db.app-batch-push.service.js +21 -0
|
@@ -40,6 +40,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
40
40
|
services_1.AmqpUserCardBillingService,
|
|
41
41
|
services_1.AmqpPayTryLogReservationService,
|
|
42
42
|
services_1.AmqpPurchasedInfoReservationService,
|
|
43
|
+
services_1.AmqpPurchasedInfoSplitDeliveryService,
|
|
43
44
|
],
|
|
44
45
|
exports: [
|
|
45
46
|
amqp_order_server_provider_1.OrderServerProvider,
|
|
@@ -65,6 +66,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
65
66
|
services_1.AmqpUserCardBillingService,
|
|
66
67
|
services_1.AmqpPayTryLogReservationService,
|
|
67
68
|
services_1.AmqpPurchasedInfoReservationService,
|
|
69
|
+
services_1.AmqpPurchasedInfoSplitDeliveryService,
|
|
68
70
|
],
|
|
69
71
|
})
|
|
70
72
|
], AmqpOrderServerModule);
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./purchased-info-admin"), exports);
|
|
|
18
18
|
__exportStar(require("./purchased-info-coupon"), exports);
|
|
19
19
|
__exportStar(require("./purchased-info-sabang"), exports);
|
|
20
20
|
__exportStar(require("./purchased-info-reservation"), exports);
|
|
21
|
+
__exportStar(require("./purchased-info-split-delivery"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
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.DeleteInvoiceForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class DeleteInvoiceForAdminPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.DeleteInvoiceForAdminPayload = DeleteInvoiceForAdminPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], DeleteInvoiceForAdminPayload.prototype, "pInfoId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_validator_1.IsBoolean)(),
|
|
24
|
+
__metadata("design:type", Boolean)
|
|
25
|
+
], DeleteInvoiceForAdminPayload.prototype, "isOneSaveInvoice", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
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.DeleteSplitInvoiceForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class DeleteSplitInvoiceForAdminPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.DeleteSplitInvoiceForAdminPayload = DeleteSplitInvoiceForAdminPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], DeleteSplitInvoiceForAdminPayload.prototype, "pInfoId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsMongoId)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DeleteSplitInvoiceForAdminPayload.prototype, "splitDeliveryDataId", void 0);
|
|
@@ -7,3 +7,7 @@ export * from './edit-p-info-waiting-receive-info.dto';
|
|
|
7
7
|
export * from './edit-p-info-used-coupon.dto';
|
|
8
8
|
export * from './delete-p-info-used-coupon.dto';
|
|
9
9
|
export * from './process';
|
|
10
|
+
export * from './upsert-invoice-for-admin.dto';
|
|
11
|
+
export * from './delete-invoice-for-admin.dto';
|
|
12
|
+
export * from './upsert-split-invoice-for-admin.dto';
|
|
13
|
+
export * from './delete-split-invoice-for-admin.dto';
|
|
@@ -23,3 +23,7 @@ __exportStar(require("./edit-p-info-waiting-receive-info.dto"), exports);
|
|
|
23
23
|
__exportStar(require("./edit-p-info-used-coupon.dto"), exports);
|
|
24
24
|
__exportStar(require("./delete-p-info-used-coupon.dto"), exports);
|
|
25
25
|
__exportStar(require("./process"), exports);
|
|
26
|
+
__exportStar(require("./upsert-invoice-for-admin.dto"), exports);
|
|
27
|
+
__exportStar(require("./delete-invoice-for-admin.dto"), exports);
|
|
28
|
+
__exportStar(require("./upsert-split-invoice-for-admin.dto"), exports);
|
|
29
|
+
__exportStar(require("./delete-split-invoice-for-admin.dto"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class UpsertInvoiceForAdminPayload {
|
|
2
|
+
/** 결제정보 ID (레거시: data.pInfoId) */
|
|
3
|
+
pInfoId: string;
|
|
4
|
+
/** 택배사명 (레거시: data.SCompany) */
|
|
5
|
+
SCompany: string;
|
|
6
|
+
/** 송장번호 (레거시: data.invoice) */
|
|
7
|
+
invoice: string;
|
|
8
|
+
/** 배송 조회 URL (레거시: data.invoiceUrl) */
|
|
9
|
+
invoiceUrl?: string;
|
|
10
|
+
/** 택배사 직접 입력 여부 (레거시: data.isDirectInput) */
|
|
11
|
+
isDirectInput?: boolean;
|
|
12
|
+
/** 묶음이어도 단건만 처리 (레거시 동일) */
|
|
13
|
+
isOneSaveInvoice?: boolean;
|
|
14
|
+
/** 알림 발송 여부 (레거시: isNoti) */
|
|
15
|
+
isNoti?: boolean;
|
|
16
|
+
/** 해외 택배사명 (신규) */
|
|
17
|
+
abroadCarrierName?: string;
|
|
18
|
+
/** 해외 송장번호 (신규) */
|
|
19
|
+
abroadInvoice?: string;
|
|
20
|
+
/** 해외 배송 조회 URL (신규) */
|
|
21
|
+
abroadInvoiceUrl?: string;
|
|
22
|
+
/** 해외 택배사 직접 입력 여부 (신규) */
|
|
23
|
+
isAbroadDirectInput?: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.UpsertInvoiceForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpsertInvoiceForAdminPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.UpsertInvoiceForAdminPayload = UpsertInvoiceForAdminPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], UpsertInvoiceForAdminPayload.prototype, "pInfoId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UpsertInvoiceForAdminPayload.prototype, "SCompany", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpsertInvoiceForAdminPayload.prototype, "invoice", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UpsertInvoiceForAdminPayload.prototype, "invoiceUrl", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsBoolean)(),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], UpsertInvoiceForAdminPayload.prototype, "isDirectInput", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsBoolean)(),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], UpsertInvoiceForAdminPayload.prototype, "isOneSaveInvoice", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsBoolean)(),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], UpsertInvoiceForAdminPayload.prototype, "isNoti", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], UpsertInvoiceForAdminPayload.prototype, "abroadCarrierName", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], UpsertInvoiceForAdminPayload.prototype, "abroadInvoice", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], UpsertInvoiceForAdminPayload.prototype, "abroadInvoiceUrl", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsBoolean)(),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], UpsertInvoiceForAdminPayload.prototype, "isAbroadDirectInput", void 0);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 관리자용 분할 송장 개별 항목 데이터
|
|
4
|
+
*/
|
|
5
|
+
export declare class UpsertSplitDeliveryDataItemForAdmin {
|
|
6
|
+
/** 수정 시 분할 송장 항목 아이디 (없으면 신규 등록) */
|
|
7
|
+
splitDeliveryDataId?: string;
|
|
8
|
+
/** 출고 수량 (등록 시 필수, 수정 시에도 변경 가능) */
|
|
9
|
+
quantity: number;
|
|
10
|
+
/** 택배사명 */
|
|
11
|
+
SCompany: string;
|
|
12
|
+
/** 송장번호 */
|
|
13
|
+
invoice: string;
|
|
14
|
+
/** 배송 조회 URL */
|
|
15
|
+
invoiceUrl?: string;
|
|
16
|
+
/** 택배사 직접 입력 여부 */
|
|
17
|
+
isDirectInput?: boolean;
|
|
18
|
+
/** 해외 택배사명 */
|
|
19
|
+
abroadCarrierName?: string;
|
|
20
|
+
/** 해외 송장번호 */
|
|
21
|
+
abroadInvoice?: string;
|
|
22
|
+
/** 해외 배송 조회 URL */
|
|
23
|
+
abroadInvoiceUrl?: string;
|
|
24
|
+
/** 해외 택배사 직접 입력 여부 */
|
|
25
|
+
isAbroadDirectInput?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @author sj
|
|
29
|
+
* @description 관리자용 분할 송장 등록/수정 Payload (배열)
|
|
30
|
+
*/
|
|
31
|
+
export declare class UpsertSplitInvoiceForAdminPayload {
|
|
32
|
+
/** 결제정보 ID */
|
|
33
|
+
pInfoId: string;
|
|
34
|
+
/** 분할 송장 데이터 배열 */
|
|
35
|
+
splitDeliveryDatas: UpsertSplitDeliveryDataItemForAdmin[];
|
|
36
|
+
/** 알림 발송 여부 */
|
|
37
|
+
isNoti?: boolean;
|
|
38
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.UpsertSplitInvoiceForAdminPayload = exports.UpsertSplitDeliveryDataItemForAdmin = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/**
|
|
16
|
+
* @author sj
|
|
17
|
+
* @description 관리자용 분할 송장 개별 항목 데이터
|
|
18
|
+
*/
|
|
19
|
+
class UpsertSplitDeliveryDataItemForAdmin {
|
|
20
|
+
}
|
|
21
|
+
exports.UpsertSplitDeliveryDataItemForAdmin = UpsertSplitDeliveryDataItemForAdmin;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsMongoId)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "splitDeliveryDataId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "quantity", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "SCompany", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "invoice", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "invoiceUrl", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsBoolean)(),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "isDirectInput", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "abroadCarrierName", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "abroadInvoice", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "abroadInvoiceUrl", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsBoolean)(),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "isAbroadDirectInput", void 0);
|
|
69
|
+
/**
|
|
70
|
+
* @author sj
|
|
71
|
+
* @description 관리자용 분할 송장 등록/수정 Payload (배열)
|
|
72
|
+
*/
|
|
73
|
+
class UpsertSplitInvoiceForAdminPayload {
|
|
74
|
+
}
|
|
75
|
+
exports.UpsertSplitInvoiceForAdminPayload = UpsertSplitInvoiceForAdminPayload;
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsMongoId)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "pInfoId", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsArray)(),
|
|
82
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
83
|
+
(0, class_transformer_1.Type)(() => UpsertSplitDeliveryDataItemForAdmin),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "splitDeliveryDatas", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
(0, class_validator_1.IsBoolean)(),
|
|
89
|
+
__metadata("design:type", Boolean)
|
|
90
|
+
], UpsertSplitInvoiceForAdminPayload.prototype, "isNoti", void 0);
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/** 배송 목록 조회 범위 (레거시: range 파라미터) */
|
|
2
|
+
export declare enum DeliveryListRangeEnum {
|
|
3
|
+
/** 미발송 — beforeDeposit, waitingOrder, beforeDelivery */
|
|
4
|
+
yet = "yet",
|
|
5
|
+
/** 배송 중 — yet + afterDelivery, waitingReceive */
|
|
6
|
+
shipping = "shipping"
|
|
7
|
+
}
|
|
8
|
+
export declare class GetDeliveryListForAdminPayload {
|
|
9
|
+
/** 조회 시작일 — paymentDate 기준 (레거시: sDate) */
|
|
10
|
+
startDate: string;
|
|
11
|
+
/** 조회 종료일 — paymentDate 기준 (레거시: eDate) */
|
|
12
|
+
endDate: string;
|
|
13
|
+
/** 조회 범위 (레거시: range) */
|
|
14
|
+
range: DeliveryListRangeEnum;
|
|
15
|
+
/** 방문형 배송만 필터 (레거시: visit) */
|
|
16
|
+
isVisitOnly?: boolean;
|
|
17
|
+
/** 번들 PInfo 아이디 필터 (레거시: bundleId) */
|
|
18
|
+
bundlePInfoId?: string;
|
|
19
|
+
/** 스토어 아이디 필터 (레거시: admin=true → 하드코딩 storeId 대체) */
|
|
20
|
+
storeId?: string;
|
|
21
|
+
/** 판매자 아이디 필터 */
|
|
22
|
+
sellerId?: string;
|
|
23
|
+
/** 구매자 아이디 필터 */
|
|
24
|
+
buyerId?: string;
|
|
25
|
+
/** 조회 건수 — 기본 100, 최대 500 (레거시: 100 고정) */
|
|
26
|
+
limit?: number;
|
|
27
|
+
}
|
|
28
|
+
/** 분할 송장 개별 항목 응답 */
|
|
29
|
+
export type SplitDeliveryDataItemForAdmin = {
|
|
30
|
+
_id: string;
|
|
31
|
+
/** 해당 송장 수량 */
|
|
32
|
+
quantity: number;
|
|
33
|
+
/** 국내 택배사 */
|
|
34
|
+
SCompany: string;
|
|
35
|
+
/** 국내 송장번호 */
|
|
36
|
+
invoice: string;
|
|
37
|
+
invoiceUrl?: string;
|
|
38
|
+
isDirectInput?: boolean;
|
|
39
|
+
/** 해외 배송 여부 */
|
|
40
|
+
isAbroad?: boolean;
|
|
41
|
+
abroadCarrierName?: string;
|
|
42
|
+
abroadInvoice?: string;
|
|
43
|
+
abroadInvoiceUrl?: string;
|
|
44
|
+
isAbroadDirectInput?: boolean;
|
|
45
|
+
abroadRegDate?: Date;
|
|
46
|
+
/** 등록일 (= 국내 발송일) */
|
|
47
|
+
regDate: Date;
|
|
48
|
+
lastModifiedDate?: Date;
|
|
49
|
+
};
|
|
50
|
+
/** 배송 목록 개별 항목 응답 */
|
|
51
|
+
export type DeliveryListItemForAdmin = {
|
|
52
|
+
_id: string;
|
|
53
|
+
/** 주문 상태 (레거시: process) */
|
|
54
|
+
process: string;
|
|
55
|
+
/** 결제일 (레거시: paymentDate) */
|
|
56
|
+
paymentDate: Date;
|
|
57
|
+
/** 주문번호 */
|
|
58
|
+
publicId?: string;
|
|
59
|
+
/** 당시 상품명 (레거시: pastName → itemName으로 덮어씌움) */
|
|
60
|
+
itemName?: string;
|
|
61
|
+
/** 당시 상품 이미지 (레거시: pastImg → itemImg로 덮어씌움) */
|
|
62
|
+
itemImg?: string;
|
|
63
|
+
/** 당시 단가 (레거시: pastPrice) */
|
|
64
|
+
unitPrice: number;
|
|
65
|
+
/** 구매 수량 (레거시: purchaseNumber) */
|
|
66
|
+
purchaseNumber: number;
|
|
67
|
+
/** 배송비 (레거시: shippingFee) */
|
|
68
|
+
shippingFee: number;
|
|
69
|
+
/** 결제 금액 (레거시: paidPrice — itemPrice 계산 결과) */
|
|
70
|
+
paidPrice: number;
|
|
71
|
+
/** 옵션 정보 (레거시: pOptionInfo.pOptionList 우선, fallback option) */
|
|
72
|
+
optionList: {
|
|
73
|
+
name: string;
|
|
74
|
+
purchaseNumber?: number;
|
|
75
|
+
}[];
|
|
76
|
+
deliveryType: string;
|
|
77
|
+
isPrepay?: boolean;
|
|
78
|
+
isVisit: boolean;
|
|
79
|
+
isBundleShipping: boolean;
|
|
80
|
+
bundleShippingFee: number;
|
|
81
|
+
deliveryAddress?: string;
|
|
82
|
+
deliveryData?: {
|
|
83
|
+
SCompany?: string;
|
|
84
|
+
invoice?: string;
|
|
85
|
+
invoiceUrl?: string;
|
|
86
|
+
isDirectInput?: boolean;
|
|
87
|
+
directDate?: Date;
|
|
88
|
+
regDate?: Date;
|
|
89
|
+
/** 해외 운송장 (신규) */
|
|
90
|
+
isAbroad?: boolean;
|
|
91
|
+
abroadCarrierName?: string;
|
|
92
|
+
abroadInvoice?: string;
|
|
93
|
+
abroadInvoiceUrl?: string;
|
|
94
|
+
isAbroadDirectInput?: boolean;
|
|
95
|
+
abroadRegDate?: Date;
|
|
96
|
+
};
|
|
97
|
+
isSplitDelivery: boolean;
|
|
98
|
+
splitDeliveryDataList?: SplitDeliveryDataItemForAdmin[];
|
|
99
|
+
remainingShipQuantity?: number;
|
|
100
|
+
receiverName?: string;
|
|
101
|
+
receiverPhoneNumber?: string;
|
|
102
|
+
buyerUsername?: string;
|
|
103
|
+
buyerPhoneNumber?: string;
|
|
104
|
+
sellerPhoneNumber?: string;
|
|
105
|
+
bundlePInfo?: {
|
|
106
|
+
isBundle: boolean;
|
|
107
|
+
bundlePInfoId?: string;
|
|
108
|
+
};
|
|
109
|
+
/** 요청사항 (레거시: requirement || '없음') */
|
|
110
|
+
requirement: string;
|
|
111
|
+
/** 메모 */
|
|
112
|
+
memo?: string;
|
|
113
|
+
storeId: string;
|
|
114
|
+
buyerId: string;
|
|
115
|
+
sellerId?: string;
|
|
116
|
+
};
|
|
117
|
+
export type GetDeliveryListForAdminResult = {
|
|
118
|
+
totalCount: number;
|
|
119
|
+
deliveryList: DeliveryListItemForAdmin[];
|
|
120
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
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.GetDeliveryListForAdminPayload = exports.DeliveryListRangeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** 배송 목록 조회 범위 (레거시: range 파라미터) */
|
|
15
|
+
var DeliveryListRangeEnum;
|
|
16
|
+
(function (DeliveryListRangeEnum) {
|
|
17
|
+
/** 미발송 — beforeDeposit, waitingOrder, beforeDelivery */
|
|
18
|
+
DeliveryListRangeEnum["yet"] = "yet";
|
|
19
|
+
/** 배송 중 — yet + afterDelivery, waitingReceive */
|
|
20
|
+
DeliveryListRangeEnum["shipping"] = "shipping";
|
|
21
|
+
})(DeliveryListRangeEnum || (exports.DeliveryListRangeEnum = DeliveryListRangeEnum = {}));
|
|
22
|
+
class GetDeliveryListForAdminPayload {
|
|
23
|
+
}
|
|
24
|
+
exports.GetDeliveryListForAdminPayload = GetDeliveryListForAdminPayload;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsDateString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GetDeliveryListForAdminPayload.prototype, "startDate", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsDateString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GetDeliveryListForAdminPayload.prototype, "endDate", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEnum)(DeliveryListRangeEnum),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GetDeliveryListForAdminPayload.prototype, "range", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], GetDeliveryListForAdminPayload.prototype, "isVisitOnly", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsMongoId)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], GetDeliveryListForAdminPayload.prototype, "bundlePInfoId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsMongoId)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], GetDeliveryListForAdminPayload.prototype, "storeId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsMongoId)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], GetDeliveryListForAdminPayload.prototype, "sellerId", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsMongoId)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], GetDeliveryListForAdminPayload.prototype, "buyerId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsNumber)(),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], GetDeliveryListForAdminPayload.prototype, "limit", void 0);
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./get-purchased-infos-for-admin.dto"), exports);
|
|
18
18
|
__exportStar(require("./get-purchased-info-detail-for-admin-edit.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-purchased-info-logs-for-coupon-info.dto"), exports);
|
|
20
|
+
__exportStar(require("./get-delivery-list-for-admin.dto"), exports);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { PurchasedProcessEnum, CardQuotaEnum } from '@yolo-croket-dev/entity-v2/purchased-info';
|
|
3
|
+
/**
|
|
4
|
+
* @author jun
|
|
5
|
+
* @description 관리자용 예약 결제 정보 목록 조회 Payload
|
|
6
|
+
*/
|
|
7
|
+
export declare class GetReservationListForAdminPayload {
|
|
8
|
+
itemId: string;
|
|
9
|
+
page: number;
|
|
10
|
+
limit: number;
|
|
11
|
+
}
|
|
12
|
+
/** @description 예약 결제 정보 단건 */
|
|
13
|
+
export interface PInfoReservationForAdmin {
|
|
14
|
+
/** 결제 정보 아이디 */
|
|
15
|
+
pInfoId: string;
|
|
16
|
+
/** 상품 아이디 */
|
|
17
|
+
itemId: string;
|
|
18
|
+
/** 구매자 아이디 */
|
|
19
|
+
buyerId: string;
|
|
20
|
+
/** 구매자명 */
|
|
21
|
+
buyerUsername: string;
|
|
22
|
+
/** 예약 순서 */
|
|
23
|
+
reservationOrder: number;
|
|
24
|
+
/** 예약 일시 */
|
|
25
|
+
reservedDate: Date;
|
|
26
|
+
/** 취소 일시 */
|
|
27
|
+
cancelledDate?: Date;
|
|
28
|
+
/** 취소 사유 */
|
|
29
|
+
cancelReason?: string;
|
|
30
|
+
/** 빌링 데이터 ID */
|
|
31
|
+
userCardBillingId: Types.ObjectId;
|
|
32
|
+
/** 1차 결제 실패 일시 */
|
|
33
|
+
firstPaymentFailedDate?: Date;
|
|
34
|
+
/** 결제 실패 사유 */
|
|
35
|
+
paymentFailReason?: string;
|
|
36
|
+
/** 재시도 기한 */
|
|
37
|
+
retryDeadline?: Date;
|
|
38
|
+
/** 결제 진행 상태 */
|
|
39
|
+
process: PurchasedProcessEnum;
|
|
40
|
+
/** 할부 개월 */
|
|
41
|
+
cardQuota: CardQuotaEnum;
|
|
42
|
+
/** 결제 여부 */
|
|
43
|
+
isPaid: boolean;
|
|
44
|
+
}
|
|
45
|
+
/** @description 관리자용 예약 결제 정보 목록 조회 결과 */
|
|
46
|
+
export interface GetReservationListForAdminResult {
|
|
47
|
+
list: PInfoReservationForAdmin[];
|
|
48
|
+
allCount: number;
|
|
49
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.GetReservationListForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author jun
|
|
16
|
+
* @description 관리자용 예약 결제 정보 목록 조회 Payload
|
|
17
|
+
*/
|
|
18
|
+
class GetReservationListForAdminPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.GetReservationListForAdminPayload = GetReservationListForAdminPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsMongoId)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GetReservationListForAdminPayload.prototype, "itemId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsNumber)(),
|
|
27
|
+
(0, class_validator_1.Min)(1),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], GetReservationListForAdminPayload.prototype, "page", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsNumber)(),
|
|
32
|
+
(0, class_validator_1.Min)(1),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], GetReservationListForAdminPayload.prototype, "limit", void 0);
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-reservation-for-excel-by-admin.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-reservation-list-for-admin.dto"), exports);
|
package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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("./upsert-split-invoice.dto"), exports);
|
|
18
|
+
__exportStar(require("./register-split-invoice-bulk.dto"), exports);
|