@yolo-croket-dev/amqp-access 0.7.71-sj → 0.7.71-sj1

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.
@@ -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);
@@ -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,28 @@
1
+ /**
2
+ * @author sj
3
+ * @description 셀러용 분할 송장 등록/수정 Payload
4
+ */
5
+ export declare class UpsertSplitInvoicePayload {
6
+ /** 결제 정보 아이디 */
7
+ pInfoId: string;
8
+ /** 수정 시 분할 송장 항목 아이디 (없으면 신규 등록) */
9
+ splitDeliveryDataId?: string;
10
+ /** 출고 수량 (등록 시 필수, 수정 시 무시) */
11
+ quantity: number;
12
+ /** 택배사명 */
13
+ SCompany: string;
14
+ /** 송장번호 */
15
+ invoice: string;
16
+ /** 배송 조회 URL */
17
+ invoiceUrl?: string;
18
+ /** 택배사 직접 입력 여부 */
19
+ isDirectInput?: boolean;
20
+ /** 해외 택배사명 */
21
+ abroadCarrierName?: string;
22
+ /** 해외 송장번호 */
23
+ abroadInvoice?: string;
24
+ /** 해외 배송 조회 URL */
25
+ abroadInvoiceUrl?: string;
26
+ /** 해외 택배사 직접 입력 여부 */
27
+ isAbroadDirectInput?: boolean;
28
+ }
@@ -0,0 +1,71 @@
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 = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
15
+ * @author sj
16
+ * @description 셀러용 분할 송장 등록/수정 Payload
17
+ */
18
+ class UpsertSplitInvoicePayload {
19
+ }
20
+ exports.UpsertSplitInvoicePayload = UpsertSplitInvoicePayload;
21
+ __decorate([
22
+ (0, class_validator_1.IsMongoId)(),
23
+ __metadata("design:type", String)
24
+ ], UpsertSplitInvoicePayload.prototype, "pInfoId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsMongoId)(),
28
+ __metadata("design:type", String)
29
+ ], UpsertSplitInvoicePayload.prototype, "splitDeliveryDataId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsNumber)(),
32
+ __metadata("design:type", Number)
33
+ ], UpsertSplitInvoicePayload.prototype, "quantity", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsString)(),
36
+ __metadata("design:type", String)
37
+ ], UpsertSplitInvoicePayload.prototype, "SCompany", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsString)(),
40
+ __metadata("design:type", String)
41
+ ], UpsertSplitInvoicePayload.prototype, "invoice", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsString)(),
45
+ __metadata("design:type", String)
46
+ ], UpsertSplitInvoicePayload.prototype, "invoiceUrl", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsOptional)(),
49
+ (0, class_validator_1.IsBoolean)(),
50
+ __metadata("design:type", Boolean)
51
+ ], UpsertSplitInvoicePayload.prototype, "isDirectInput", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, class_validator_1.IsString)(),
55
+ __metadata("design:type", String)
56
+ ], UpsertSplitInvoicePayload.prototype, "abroadCarrierName", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsOptional)(),
59
+ (0, class_validator_1.IsString)(),
60
+ __metadata("design:type", String)
61
+ ], UpsertSplitInvoicePayload.prototype, "abroadInvoice", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.IsString)(),
65
+ __metadata("design:type", String)
66
+ ], UpsertSplitInvoicePayload.prototype, "abroadInvoiceUrl", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsOptional)(),
69
+ (0, class_validator_1.IsBoolean)(),
70
+ __metadata("design:type", Boolean)
71
+ ], UpsertSplitInvoicePayload.prototype, "isAbroadDirectInput", 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-sj1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",