@yolo-croket-dev/amqp-access 0.7.71-sj2 → 0.7.71

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.
Files changed (51) hide show
  1. package/.claude/settings.local.json +11 -0
  2. package/order-server/amqp.order-server.module.js +0 -2
  3. package/order-server/dto/purchased-info.modules/index.d.ts +0 -1
  4. package/order-server/dto/purchased-info.modules/index.js +0 -1
  5. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.d.ts +0 -4
  6. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.js +0 -4
  7. package/order-server/dto/purchased-info.modules/purchased-info-admin/query/index.d.ts +0 -1
  8. package/order-server/dto/purchased-info.modules/purchased-info-admin/query/index.js +0 -1
  9. package/order-server/dto/purchased-info.modules/purchased-info-reservation/index.d.ts +1 -0
  10. package/order-server/dto/purchased-info.modules/purchased-info-reservation/index.js +1 -0
  11. package/order-server/dto/purchased-info.modules/purchased-info-reservation/query/get-reservation-for-excel-by-admin.dto.d.ts +51 -0
  12. package/order-server/dto/purchased-info.modules/{purchased-info-admin/command/delete-split-invoice-for-admin.dto.js → purchased-info-reservation/query/get-reservation-for-excel-by-admin.dto.js} +17 -7
  13. package/order-server/dto/purchased-info.modules/purchased-info-reservation/query/index.d.ts +1 -0
  14. package/order-server/dto/purchased-info.modules/{purchased-info-split-delivery → purchased-info-reservation/query}/index.js +1 -1
  15. package/order-server/dto/purchasedinfos/query/atlas/get-p-infos-for-manage-buyer-by-atlas.dto.d.ts +0 -3
  16. package/order-server/dto/purchasedinfos/query/atlas/get-p-infos-for-manage-buyer-by-atlas.dto.js +0 -5
  17. package/order-server/dto/purchasedinfos/query/search-seller-transaction-history-by-process.dto.d.ts +1 -7
  18. package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.d.ts +1 -6
  19. package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.js +0 -15
  20. package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.d.ts +3 -1
  21. package/order-server/services/purchased-info.modules/amqp.purchased-info-reservation.service.js +4 -0
  22. package/order-server/services/purchased-info.modules/index.d.ts +0 -1
  23. package/order-server/services/purchased-info.modules/index.js +0 -1
  24. package/package.json +5 -5
  25. package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
  26. package/payment-service/dto/partial-refund/command/create-partial-refund.dto.d.ts +1 -3
  27. package/payment-service/dto/partial-refund/command/create-partial-refund.dto.js +0 -2
  28. package/user-service/dto/redis-db/command/index.d.ts +0 -1
  29. package/user-service/dto/redis-db/command/index.js +0 -1
  30. package/user-service/services/redis-db/amqp.redis-db.app-batch-push.service.d.ts +1 -16
  31. package/user-service/services/redis-db/amqp.redis-db.app-batch-push.service.js +0 -21
  32. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-invoice-for-admin.dto.d.ts +0 -6
  33. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-invoice-for-admin.dto.js +0 -25
  34. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/delete-split-invoice-for-admin.dto.d.ts +0 -6
  35. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-invoice-for-admin.dto.d.ts +0 -24
  36. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-invoice-for-admin.dto.js +0 -68
  37. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-split-invoice-for-admin.dto.d.ts +0 -38
  38. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-split-invoice-for-admin.dto.js +0 -90
  39. package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-delivery-list-for-admin.dto.d.ts +0 -120
  40. package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-delivery-list-for-admin.dto.js +0 -66
  41. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/index.d.ts +0 -2
  42. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/index.js +0 -18
  43. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/register-split-invoice-bulk.dto.d.ts +0 -38
  44. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/register-split-invoice-bulk.dto.js +0 -60
  45. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/upsert-split-invoice.dto.d.ts +0 -36
  46. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/upsert-split-invoice.dto.js +0 -85
  47. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/index.d.ts +0 -1
  48. package/order-server/services/purchased-info.modules/amqp.purchased-info-split-delivery.service.d.ts +0 -12
  49. package/order-server/services/purchased-info.modules/amqp.purchased-info-split-delivery.service.js +0 -43
  50. package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-split-delivery-shipping.dto.d.ts +0 -22
  51. package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-split-delivery-shipping.dto.js +0 -72
@@ -1,90 +0,0 @@
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);
@@ -1,120 +0,0 @@
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
- };
@@ -1,66 +0,0 @@
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);
@@ -1,2 +0,0 @@
1
- export * from './upsert-split-invoice.dto';
2
- export * from './register-split-invoice-bulk.dto';
@@ -1,18 +0,0 @@
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);
@@ -1,38 +0,0 @@
1
- /**
2
- * @author sj
3
- * @description 엑셀 분할 송장 일괄 등록 개별 항목
4
- */
5
- export declare class SplitInvoiceBulkItem {
6
- /** 주문번호 */
7
- publicId: string;
8
- /** 출고 수량 */
9
- quantity: number;
10
- /** 택배사명 또는 코드 */
11
- SCompany: string;
12
- /** 송장번호 */
13
- invoice: string;
14
- /** 해외 택배사명 */
15
- abroadCarrierName?: string;
16
- /** 해외 송장번호 */
17
- abroadInvoice?: string;
18
- }
19
- /**
20
- * @author sj
21
- * @description 엑셀 분할 송장 일괄 등록 Payload
22
- */
23
- export declare class RegisterSplitInvoiceBulkPayload {
24
- datas: SplitInvoiceBulkItem[];
25
- }
26
- /** 에러 데이터 */
27
- export interface RegisterSplitInvoiceBulkErrorData {
28
- publicId: string;
29
- SCompany: string;
30
- invoice: string;
31
- errorReason: string;
32
- }
33
- /** Result 인터페이스 */
34
- export interface RegisterSplitInvoiceBulkResult {
35
- successCount: number;
36
- failedCount: number;
37
- errorList: RegisterSplitInvoiceBulkErrorData[];
38
- }
@@ -1,60 +0,0 @@
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.RegisterSplitInvoiceBulkPayload = exports.SplitInvoiceBulkItem = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- /**
16
- * @author sj
17
- * @description 엑셀 분할 송장 일괄 등록 개별 항목
18
- */
19
- class SplitInvoiceBulkItem {
20
- }
21
- exports.SplitInvoiceBulkItem = SplitInvoiceBulkItem;
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- __metadata("design:type", String)
25
- ], SplitInvoiceBulkItem.prototype, "publicId", void 0);
26
- __decorate([
27
- (0, class_validator_1.IsNumber)(),
28
- __metadata("design:type", Number)
29
- ], SplitInvoiceBulkItem.prototype, "quantity", void 0);
30
- __decorate([
31
- (0, class_validator_1.IsString)(),
32
- __metadata("design:type", String)
33
- ], SplitInvoiceBulkItem.prototype, "SCompany", void 0);
34
- __decorate([
35
- (0, class_validator_1.IsString)(),
36
- __metadata("design:type", String)
37
- ], SplitInvoiceBulkItem.prototype, "invoice", void 0);
38
- __decorate([
39
- (0, class_validator_1.IsOptional)(),
40
- (0, class_validator_1.IsString)(),
41
- __metadata("design:type", String)
42
- ], SplitInvoiceBulkItem.prototype, "abroadCarrierName", void 0);
43
- __decorate([
44
- (0, class_validator_1.IsOptional)(),
45
- (0, class_validator_1.IsString)(),
46
- __metadata("design:type", String)
47
- ], SplitInvoiceBulkItem.prototype, "abroadInvoice", void 0);
48
- /**
49
- * @author sj
50
- * @description 엑셀 분할 송장 일괄 등록 Payload
51
- */
52
- class RegisterSplitInvoiceBulkPayload {
53
- }
54
- exports.RegisterSplitInvoiceBulkPayload = RegisterSplitInvoiceBulkPayload;
55
- __decorate([
56
- (0, class_validator_1.IsArray)(),
57
- (0, class_validator_1.ValidateNested)({ each: true }),
58
- (0, class_transformer_1.Type)(() => SplitInvoiceBulkItem),
59
- __metadata("design:type", Array)
60
- ], RegisterSplitInvoiceBulkPayload.prototype, "datas", void 0);
@@ -1,36 +0,0 @@
1
- /**
2
- * @author sj
3
- * @description 분할 송장 개별 항목 데이터
4
- */
5
- export declare class SplitDeliveryDataItem {
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 UpsertSplitInvoicePayload {
32
- /** 결제 정보 아이디 */
33
- pInfoId: string;
34
- /** 분할 송장 데이터 배열 */
35
- splitDeliveryDatas: SplitDeliveryDataItem[];
36
- }
@@ -1,85 +0,0 @@
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.UpsertSplitInvoicePayload = exports.SplitDeliveryDataItem = 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 SplitDeliveryDataItem {
20
- }
21
- exports.SplitDeliveryDataItem = SplitDeliveryDataItem;
22
- __decorate([
23
- (0, class_validator_1.IsOptional)(),
24
- (0, class_validator_1.IsMongoId)(),
25
- __metadata("design:type", String)
26
- ], SplitDeliveryDataItem.prototype, "splitDeliveryDataId", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsNumber)(),
29
- __metadata("design:type", Number)
30
- ], SplitDeliveryDataItem.prototype, "quantity", void 0);
31
- __decorate([
32
- (0, class_validator_1.IsString)(),
33
- __metadata("design:type", String)
34
- ], SplitDeliveryDataItem.prototype, "SCompany", void 0);
35
- __decorate([
36
- (0, class_validator_1.IsString)(),
37
- __metadata("design:type", String)
38
- ], SplitDeliveryDataItem.prototype, "invoice", void 0);
39
- __decorate([
40
- (0, class_validator_1.IsOptional)(),
41
- (0, class_validator_1.IsString)(),
42
- __metadata("design:type", String)
43
- ], SplitDeliveryDataItem.prototype, "invoiceUrl", void 0);
44
- __decorate([
45
- (0, class_validator_1.IsOptional)(),
46
- (0, class_validator_1.IsBoolean)(),
47
- __metadata("design:type", Boolean)
48
- ], SplitDeliveryDataItem.prototype, "isDirectInput", void 0);
49
- __decorate([
50
- (0, class_validator_1.IsOptional)(),
51
- (0, class_validator_1.IsString)(),
52
- __metadata("design:type", String)
53
- ], SplitDeliveryDataItem.prototype, "abroadCarrierName", void 0);
54
- __decorate([
55
- (0, class_validator_1.IsOptional)(),
56
- (0, class_validator_1.IsString)(),
57
- __metadata("design:type", String)
58
- ], SplitDeliveryDataItem.prototype, "abroadInvoice", void 0);
59
- __decorate([
60
- (0, class_validator_1.IsOptional)(),
61
- (0, class_validator_1.IsString)(),
62
- __metadata("design:type", String)
63
- ], SplitDeliveryDataItem.prototype, "abroadInvoiceUrl", void 0);
64
- __decorate([
65
- (0, class_validator_1.IsOptional)(),
66
- (0, class_validator_1.IsBoolean)(),
67
- __metadata("design:type", Boolean)
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);
@@ -1,12 +0,0 @@
1
- import { ClientProxy } from '@nestjs/microservices';
2
- import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { UpsertSplitInvoicePayload, RegisterSplitInvoiceBulkPayload, RegisterSplitInvoiceBulkResult } from '../../dto/purchased-info.modules/purchased-info-split-delivery';
4
- export declare class AmqpPurchasedInfoSplitDeliveryService {
5
- private readonly client;
6
- private readonly amqpManager;
7
- constructor(client: ClientProxy);
8
- /** 분할 송장 등록/수정 */
9
- upsertSplitInvoice(payload: UpsertSplitInvoicePayload, param: AbstractParam): Promise<void>;
10
- /** 엑셀 분할 송장 일괄 등록 */
11
- registerSplitInvoiceBulk(payload: RegisterSplitInvoiceBulkPayload, param: AbstractParam): Promise<RegisterSplitInvoiceBulkResult>;
12
- }
@@ -1,43 +0,0 @@
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
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.AmqpPurchasedInfoSplitDeliveryService = void 0;
16
- /**
17
- * @author sj
18
- * @description 셀러용 분할 송장 AMQP 서비스
19
- * @process order-server의 purchased-info-split-delivery 모듈과 통신
20
- */
21
- const common_1 = require("@nestjs/common");
22
- const microservices_1 = require("@nestjs/microservices");
23
- const functions_1 = require("@yolo-croket-dev/core/functions");
24
- let AmqpPurchasedInfoSplitDeliveryService = class AmqpPurchasedInfoSplitDeliveryService {
25
- constructor(client) {
26
- this.client = client;
27
- this.amqpManager = new functions_1.AmqpManagement(this.client);
28
- }
29
- /** 분할 송장 등록/수정 */
30
- async upsertSplitInvoice(payload, param) {
31
- return this.amqpManager.call('분할 송장 등록/수정', 'purchased-info-split-delivery.upsert.invoice', payload, param, { isErrorThrowing: true });
32
- }
33
- /** 엑셀 분할 송장 일괄 등록 */
34
- async registerSplitInvoiceBulk(payload, param) {
35
- return this.amqpManager.call('엑셀 분할 송장 일괄 등록', 'purchased-info-split-delivery.register.invoice-bulk', payload, param, { isErrorThrowing: true });
36
- }
37
- };
38
- exports.AmqpPurchasedInfoSplitDeliveryService = AmqpPurchasedInfoSplitDeliveryService;
39
- exports.AmqpPurchasedInfoSplitDeliveryService = AmqpPurchasedInfoSplitDeliveryService = __decorate([
40
- (0, common_1.Injectable)(),
41
- __param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
42
- __metadata("design:paramtypes", [microservices_1.ClientProxy])
43
- ], AmqpPurchasedInfoSplitDeliveryService);
@@ -1,22 +0,0 @@
1
- declare class SplitDeliveryShippingActivityData {
2
- otherUserId: string;
3
- relatePInfoId: string;
4
- previewImg?: string;
5
- }
6
- export declare class SetDataSplitDeliveryShippingAppBatchPushData {
7
- purchaseReceiptId: string;
8
- userId: string;
9
- itemName: string;
10
- isAbroadShipping: boolean;
11
- activityData: SplitDeliveryShippingActivityData;
12
- /** modify 시 PInfoId 추가 */
13
- PInfoId?: string;
14
- }
15
- export declare class SetDataSplitDeliveryShippingAppBatchPushPayload {
16
- data: SetDataSplitDeliveryShippingAppBatchPushData;
17
- ttl: number;
18
- }
19
- export interface SetDataSplitDeliveryShippingAppBatchPushResult {
20
- result: string | null;
21
- }
22
- export {};