@yolo-croket-dev/amqp-access 0.7.71-sj → 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.
Files changed (21) hide show
  1. package/order-server/amqp.order-server.module.js +2 -0
  2. package/order-server/dto/purchased-info.modules/index.d.ts +1 -0
  3. package/order-server/dto/purchased-info.modules/index.js +1 -0
  4. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-split-invoice-for-admin.dto.d.ts +15 -3
  5. package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-split-invoice-for-admin.dto.js +35 -17
  6. package/order-server/dto/purchased-info.modules/purchased-info-admin/query/get-delivery-list-for-admin.dto.d.ts +2 -2
  7. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/index.d.ts +2 -0
  8. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/index.js +18 -0
  9. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/register-split-invoice-bulk.dto.d.ts +38 -0
  10. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/register-split-invoice-bulk.dto.js +60 -0
  11. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/upsert-split-invoice.dto.d.ts +36 -0
  12. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/command/upsert-split-invoice.dto.js +85 -0
  13. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/index.d.ts +1 -0
  14. package/order-server/dto/purchased-info.modules/purchased-info-split-delivery/index.js +17 -0
  15. package/order-server/services/purchased-info.modules/amqp.purchased-info-split-delivery.service.d.ts +12 -0
  16. package/order-server/services/purchased-info.modules/amqp.purchased-info-split-delivery.service.js +43 -0
  17. package/order-server/services/purchased-info.modules/index.d.ts +1 -0
  18. package/order-server/services/purchased-info.modules/index.js +1 -0
  19. package/package.json +1 -1
  20. package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-split-delivery-shipping.dto.d.ts +1 -1
  21. package/user-service/dto/redis-db/command/redis-db.app-batch-push.set-data-split-delivery-shipping.dto.js +0 -1
@@ -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);
@@ -2,3 +2,4 @@ export * from './purchased-info-admin';
2
2
  export * from './purchased-info-coupon';
3
3
  export * from './purchased-info-sabang';
4
4
  export * from './purchased-info-reservation';
5
+ export * from './purchased-info-split-delivery';
@@ -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);
@@ -1,6 +1,8 @@
1
- export declare class UpsertSplitInvoiceForAdminPayload {
2
- /** 결제정보 ID */
3
- pInfoId: string;
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
- class UpsertSplitInvoiceForAdminPayload {
15
+ /**
16
+ * @author sj
17
+ * @description 관리자용 분할 송장 개별 항목 데이터
18
+ */
19
+ class UpsertSplitDeliveryDataItemForAdmin {
15
20
  }
16
- exports.UpsertSplitInvoiceForAdminPayload = UpsertSplitInvoiceForAdminPayload;
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
- ], UpsertSplitInvoiceForAdminPayload.prototype, "splitDeliveryDataId", void 0);
26
+ ], UpsertSplitDeliveryDataItemForAdmin.prototype, "splitDeliveryDataId", void 0);
26
27
  __decorate([
27
28
  (0, class_validator_1.IsNumber)(),
28
29
  __metadata("design:type", Number)
29
- ], UpsertSplitInvoiceForAdminPayload.prototype, "quantity", void 0);
30
+ ], UpsertSplitDeliveryDataItemForAdmin.prototype, "quantity", void 0);
30
31
  __decorate([
31
32
  (0, class_validator_1.IsString)(),
32
33
  __metadata("design:type", String)
33
- ], UpsertSplitInvoiceForAdminPayload.prototype, "SCompany", void 0);
34
+ ], UpsertSplitDeliveryDataItemForAdmin.prototype, "SCompany", void 0);
34
35
  __decorate([
35
36
  (0, class_validator_1.IsString)(),
36
37
  __metadata("design:type", String)
37
- ], UpsertSplitInvoiceForAdminPayload.prototype, "invoice", void 0);
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
- ], UpsertSplitInvoiceForAdminPayload.prototype, "invoiceUrl", void 0);
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
- ], UpsertSplitInvoiceForAdminPayload.prototype, "isDirectInput", void 0);
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
- ], UpsertSplitInvoiceForAdminPayload.prototype, "abroadCarrierName", void 0);
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
- ], UpsertSplitInvoiceForAdminPayload.prototype, "abroadInvoice", void 0);
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
- ], UpsertSplitInvoiceForAdminPayload.prototype, "abroadInvoiceUrl", void 0);
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
- ], UpsertSplitInvoiceForAdminPayload.prototype, "isAbroadDirectInput", void 0);
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 SplitDeliveryDataItem = {
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?: SplitDeliveryDataItem[];
98
+ splitDeliveryDataList?: SplitDeliveryDataItemForAdmin[];
99
99
  remainingShipQuantity?: number;
100
100
  receiverName?: string;
101
101
  receiverPhoneNumber?: string;
@@ -0,0 +1,2 @@
1
+ export * from './upsert-split-invoice.dto';
2
+ export * from './register-split-invoice-bulk.dto';
@@ -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);
@@ -0,0 +1,38 @@
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
+ }
@@ -0,0 +1,60 @@
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);
@@ -0,0 +1,36 @@
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
+ }
@@ -0,0 +1,85 @@
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);
@@ -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("./command"), exports);
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,43 @@
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);
@@ -3,3 +3,4 @@ export * from './amqp.purchased-info-analytics-aggregation.service';
3
3
  export * from './amqp.purchased-info-coupon.service';
4
4
  export * from './amqp.purchased-info-sabang.service';
5
5
  export * from './amqp.purchased-info-reservation.service';
6
+ export * from './amqp.purchased-info-split-delivery.service';
@@ -19,3 +19,4 @@ __exportStar(require("./amqp.purchased-info-analytics-aggregation.service"), exp
19
19
  __exportStar(require("./amqp.purchased-info-coupon.service"), exports);
20
20
  __exportStar(require("./amqp.purchased-info-sabang.service"), exports);
21
21
  __exportStar(require("./amqp.purchased-info-reservation.service"), exports);
22
+ __exportStar(require("./amqp.purchased-info-split-delivery.service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.71-sj",
3
+ "version": "0.7.71-sj2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -4,7 +4,7 @@ declare class SplitDeliveryShippingActivityData {
4
4
  previewImg?: string;
5
5
  }
6
6
  export declare class SetDataSplitDeliveryShippingAppBatchPushData {
7
- purchaseReceiptId?: string;
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);