@yolo-croket-dev/amqp-access 0.7.71-sj1 → 0.7.71-sj2
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-admin/command/upsert-split-invoice-for-admin.dto.d.ts +15 -3
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-split-invoice-for-admin.dto.js +35 -17
- package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-delivery-list-for-admin.dto.d.ts +2 -2
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/upsert-split-invoice.dto.d.ts +13 -5
- package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/upsert-split-invoice.dto.js +32 -18
- package/package.json +1 -1
- package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-split-delivery-shipping.dto.d.ts +1 -1
- package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-split-delivery-shipping.dto.js +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 관리자용 분할 송장 개별 항목 데이터
|
|
4
|
+
*/
|
|
5
|
+
export declare class UpsertSplitDeliveryDataItemForAdmin {
|
|
4
6
|
/** 수정 시 분할 송장 항목 아이디 (없으면 신규 등록) */
|
|
5
7
|
splitDeliveryDataId?: string;
|
|
6
8
|
/** 출고 수량 (등록 시 필수, 수정 시에도 변경 가능) */
|
|
@@ -21,6 +23,16 @@ export declare class UpsertSplitInvoiceForAdminPayload {
|
|
|
21
23
|
abroadInvoiceUrl?: string;
|
|
22
24
|
/** 해외 택배사 직접 입력 여부 */
|
|
23
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[];
|
|
24
36
|
/** 알림 발송 여부 */
|
|
25
37
|
isNoti?: boolean;
|
|
26
38
|
}
|
|
@@ -9,62 +9,80 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UpsertSplitInvoiceForAdminPayload = void 0;
|
|
12
|
+
exports.UpsertSplitInvoiceForAdminPayload = exports.UpsertSplitDeliveryDataItemForAdmin = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @author sj
|
|
17
|
+
* @description 관리자용 분할 송장 개별 항목 데이터
|
|
18
|
+
*/
|
|
19
|
+
class UpsertSplitDeliveryDataItemForAdmin {
|
|
15
20
|
}
|
|
16
|
-
exports.
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsMongoId)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], UpsertSplitInvoiceForAdminPayload.prototype, "pInfoId", void 0);
|
|
21
|
+
exports.UpsertSplitDeliveryDataItemForAdmin = UpsertSplitDeliveryDataItemForAdmin;
|
|
21
22
|
__decorate([
|
|
22
23
|
(0, class_validator_1.IsOptional)(),
|
|
23
24
|
(0, class_validator_1.IsMongoId)(),
|
|
24
25
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
26
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "splitDeliveryDataId", void 0);
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, class_validator_1.IsNumber)(),
|
|
28
29
|
__metadata("design:type", Number)
|
|
29
|
-
],
|
|
30
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "quantity", void 0);
|
|
30
31
|
__decorate([
|
|
31
32
|
(0, class_validator_1.IsString)(),
|
|
32
33
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
34
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "SCompany", void 0);
|
|
34
35
|
__decorate([
|
|
35
36
|
(0, class_validator_1.IsString)(),
|
|
36
37
|
__metadata("design:type", String)
|
|
37
|
-
],
|
|
38
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "invoice", void 0);
|
|
38
39
|
__decorate([
|
|
39
40
|
(0, class_validator_1.IsOptional)(),
|
|
40
41
|
(0, class_validator_1.IsString)(),
|
|
41
42
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
43
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "invoiceUrl", void 0);
|
|
43
44
|
__decorate([
|
|
44
45
|
(0, class_validator_1.IsOptional)(),
|
|
45
46
|
(0, class_validator_1.IsBoolean)(),
|
|
46
47
|
__metadata("design:type", Boolean)
|
|
47
|
-
],
|
|
48
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "isDirectInput", void 0);
|
|
48
49
|
__decorate([
|
|
49
50
|
(0, class_validator_1.IsOptional)(),
|
|
50
51
|
(0, class_validator_1.IsString)(),
|
|
51
52
|
__metadata("design:type", String)
|
|
52
|
-
],
|
|
53
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "abroadCarrierName", void 0);
|
|
53
54
|
__decorate([
|
|
54
55
|
(0, class_validator_1.IsOptional)(),
|
|
55
56
|
(0, class_validator_1.IsString)(),
|
|
56
57
|
__metadata("design:type", String)
|
|
57
|
-
],
|
|
58
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "abroadInvoice", void 0);
|
|
58
59
|
__decorate([
|
|
59
60
|
(0, class_validator_1.IsOptional)(),
|
|
60
61
|
(0, class_validator_1.IsString)(),
|
|
61
62
|
__metadata("design:type", String)
|
|
62
|
-
],
|
|
63
|
+
], UpsertSplitDeliveryDataItemForAdmin.prototype, "abroadInvoiceUrl", void 0);
|
|
63
64
|
__decorate([
|
|
64
65
|
(0, class_validator_1.IsOptional)(),
|
|
65
66
|
(0, class_validator_1.IsBoolean)(),
|
|
66
67
|
__metadata("design:type", Boolean)
|
|
67
|
-
],
|
|
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);
|
|
68
86
|
__decorate([
|
|
69
87
|
(0, class_validator_1.IsOptional)(),
|
|
70
88
|
(0, class_validator_1.IsBoolean)(),
|
|
@@ -26,7 +26,7 @@ export declare class GetDeliveryListForAdminPayload {
|
|
|
26
26
|
limit?: number;
|
|
27
27
|
}
|
|
28
28
|
/** 분할 송장 개별 항목 응답 */
|
|
29
|
-
export type
|
|
29
|
+
export type SplitDeliveryDataItemForAdmin = {
|
|
30
30
|
_id: string;
|
|
31
31
|
/** 해당 송장 수량 */
|
|
32
32
|
quantity: number;
|
|
@@ -95,7 +95,7 @@ export type DeliveryListItemForAdmin = {
|
|
|
95
95
|
abroadRegDate?: Date;
|
|
96
96
|
};
|
|
97
97
|
isSplitDelivery: boolean;
|
|
98
|
-
splitDeliveryDataList?:
|
|
98
|
+
splitDeliveryDataList?: SplitDeliveryDataItemForAdmin[];
|
|
99
99
|
remainingShipQuantity?: number;
|
|
100
100
|
receiverName?: string;
|
|
101
101
|
receiverPhoneNumber?: string;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author sj
|
|
3
|
-
* @description
|
|
3
|
+
* @description 분할 송장 개별 항목 데이터
|
|
4
4
|
*/
|
|
5
|
-
export declare class
|
|
6
|
-
/** 결제 정보 아이디 */
|
|
7
|
-
pInfoId: string;
|
|
5
|
+
export declare class SplitDeliveryDataItem {
|
|
8
6
|
/** 수정 시 분할 송장 항목 아이디 (없으면 신규 등록) */
|
|
9
7
|
splitDeliveryDataId?: string;
|
|
10
|
-
/** 출고 수량
|
|
8
|
+
/** 출고 수량 */
|
|
11
9
|
quantity: number;
|
|
12
10
|
/** 택배사명 */
|
|
13
11
|
SCompany: string;
|
|
@@ -26,3 +24,13 @@ export declare class UpsertSplitInvoicePayload {
|
|
|
26
24
|
/** 해외 택배사 직접 입력 여부 */
|
|
27
25
|
isAbroadDirectInput?: boolean;
|
|
28
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* @author sj
|
|
29
|
+
* @description 셀러용 분할 송장 등록/수정 Payload (배열)
|
|
30
|
+
*/
|
|
31
|
+
export declare class UpsertSplitInvoicePayload {
|
|
32
|
+
/** 결제 정보 아이디 */
|
|
33
|
+
pInfoId: string;
|
|
34
|
+
/** 분할 송장 데이터 배열 */
|
|
35
|
+
splitDeliveryDatas: SplitDeliveryDataItem[];
|
|
36
|
+
}
|
|
@@ -9,63 +9,77 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UpsertSplitInvoicePayload = void 0;
|
|
12
|
+
exports.UpsertSplitInvoicePayload = exports.SplitDeliveryDataItem = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
/**
|
|
15
16
|
* @author sj
|
|
16
|
-
* @description
|
|
17
|
+
* @description 분할 송장 개별 항목 데이터
|
|
17
18
|
*/
|
|
18
|
-
class
|
|
19
|
+
class SplitDeliveryDataItem {
|
|
19
20
|
}
|
|
20
|
-
exports.
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsMongoId)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], UpsertSplitInvoicePayload.prototype, "pInfoId", void 0);
|
|
21
|
+
exports.SplitDeliveryDataItem = SplitDeliveryDataItem;
|
|
25
22
|
__decorate([
|
|
26
23
|
(0, class_validator_1.IsOptional)(),
|
|
27
24
|
(0, class_validator_1.IsMongoId)(),
|
|
28
25
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
26
|
+
], SplitDeliveryDataItem.prototype, "splitDeliveryDataId", void 0);
|
|
30
27
|
__decorate([
|
|
31
28
|
(0, class_validator_1.IsNumber)(),
|
|
32
29
|
__metadata("design:type", Number)
|
|
33
|
-
],
|
|
30
|
+
], SplitDeliveryDataItem.prototype, "quantity", void 0);
|
|
34
31
|
__decorate([
|
|
35
32
|
(0, class_validator_1.IsString)(),
|
|
36
33
|
__metadata("design:type", String)
|
|
37
|
-
],
|
|
34
|
+
], SplitDeliveryDataItem.prototype, "SCompany", void 0);
|
|
38
35
|
__decorate([
|
|
39
36
|
(0, class_validator_1.IsString)(),
|
|
40
37
|
__metadata("design:type", String)
|
|
41
|
-
],
|
|
38
|
+
], SplitDeliveryDataItem.prototype, "invoice", void 0);
|
|
42
39
|
__decorate([
|
|
43
40
|
(0, class_validator_1.IsOptional)(),
|
|
44
41
|
(0, class_validator_1.IsString)(),
|
|
45
42
|
__metadata("design:type", String)
|
|
46
|
-
],
|
|
43
|
+
], SplitDeliveryDataItem.prototype, "invoiceUrl", void 0);
|
|
47
44
|
__decorate([
|
|
48
45
|
(0, class_validator_1.IsOptional)(),
|
|
49
46
|
(0, class_validator_1.IsBoolean)(),
|
|
50
47
|
__metadata("design:type", Boolean)
|
|
51
|
-
],
|
|
48
|
+
], SplitDeliveryDataItem.prototype, "isDirectInput", void 0);
|
|
52
49
|
__decorate([
|
|
53
50
|
(0, class_validator_1.IsOptional)(),
|
|
54
51
|
(0, class_validator_1.IsString)(),
|
|
55
52
|
__metadata("design:type", String)
|
|
56
|
-
],
|
|
53
|
+
], SplitDeliveryDataItem.prototype, "abroadCarrierName", void 0);
|
|
57
54
|
__decorate([
|
|
58
55
|
(0, class_validator_1.IsOptional)(),
|
|
59
56
|
(0, class_validator_1.IsString)(),
|
|
60
57
|
__metadata("design:type", String)
|
|
61
|
-
],
|
|
58
|
+
], SplitDeliveryDataItem.prototype, "abroadInvoice", void 0);
|
|
62
59
|
__decorate([
|
|
63
60
|
(0, class_validator_1.IsOptional)(),
|
|
64
61
|
(0, class_validator_1.IsString)(),
|
|
65
62
|
__metadata("design:type", String)
|
|
66
|
-
],
|
|
63
|
+
], SplitDeliveryDataItem.prototype, "abroadInvoiceUrl", void 0);
|
|
67
64
|
__decorate([
|
|
68
65
|
(0, class_validator_1.IsOptional)(),
|
|
69
66
|
(0, class_validator_1.IsBoolean)(),
|
|
70
67
|
__metadata("design:type", Boolean)
|
|
71
|
-
],
|
|
68
|
+
], SplitDeliveryDataItem.prototype, "isAbroadDirectInput", void 0);
|
|
69
|
+
/**
|
|
70
|
+
* @author sj
|
|
71
|
+
* @description 셀러용 분할 송장 등록/수정 Payload (배열)
|
|
72
|
+
*/
|
|
73
|
+
class UpsertSplitInvoicePayload {
|
|
74
|
+
}
|
|
75
|
+
exports.UpsertSplitInvoicePayload = UpsertSplitInvoicePayload;
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsMongoId)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], UpsertSplitInvoicePayload.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)(() => SplitDeliveryDataItem),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], UpsertSplitInvoicePayload.prototype, "splitDeliveryDatas", void 0);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ declare class SplitDeliveryShippingActivityData {
|
|
|
4
4
|
previewImg?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare class SetDataSplitDeliveryShippingAppBatchPushData {
|
|
7
|
-
purchaseReceiptId
|
|
7
|
+
purchaseReceiptId: string;
|
|
8
8
|
userId: string;
|
|
9
9
|
itemName: string;
|
|
10
10
|
isAbroadShipping: boolean;
|
|
@@ -31,7 +31,6 @@ class SetDataSplitDeliveryShippingAppBatchPushData {
|
|
|
31
31
|
}
|
|
32
32
|
exports.SetDataSplitDeliveryShippingAppBatchPushData = SetDataSplitDeliveryShippingAppBatchPushData;
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
34
|
(0, class_validator_1.IsMongoId)(),
|
|
36
35
|
__metadata("design:type", String)
|
|
37
36
|
], SetDataSplitDeliveryShippingAppBatchPushData.prototype, "purchaseReceiptId", void 0);
|