@yolo-croket-dev/amqp-access 0.7.200 → 0.7.202
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/index.d.ts +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/index.js +1 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-invoice-bulk-for-admin.dto.d.ts +34 -0
- package/order-server/dto/purchased-info.modules/purchased-info-admin/command/upsert-invoice-bulk-for-admin.dto.js +56 -0
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.d.ts +2 -1
- package/order-server/services/purchased-info.modules/amqp.purchased-info-admin.service.js +3 -0
- package/package.json +1 -1
- package/user-service/dto/chat.modules/message-template/query/get-message-templates.dto.d.ts +6 -0
- package/user-service/dto/chat.modules/message-template/query/get-message-templates.dto.js +20 -0
|
@@ -8,6 +8,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
10
|
export * from './upsert-invoice-for-admin.dto';
|
|
11
|
+
export * from './upsert-invoice-bulk-for-admin.dto';
|
|
11
12
|
export * from './delete-invoice-for-admin.dto';
|
|
12
13
|
export * from './upsert-split-invoice-for-admin.dto';
|
|
13
14
|
export * from './delete-split-invoice-for-admin.dto';
|
|
@@ -24,6 +24,7 @@ __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
26
|
__exportStar(require("./upsert-invoice-for-admin.dto"), exports);
|
|
27
|
+
__exportStar(require("./upsert-invoice-bulk-for-admin.dto"), exports);
|
|
27
28
|
__exportStar(require("./delete-invoice-for-admin.dto"), exports);
|
|
28
29
|
__exportStar(require("./upsert-split-invoice-for-admin.dto"), exports);
|
|
29
30
|
__exportStar(require("./delete-split-invoice-for-admin.dto"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** @description 관리자용 일괄 송장 등록/수정 개별 처리 결과 */
|
|
2
|
+
export interface UpsertInvoiceBulkForAdminResultItem {
|
|
3
|
+
pInfoId: string;
|
|
4
|
+
failType?: string;
|
|
5
|
+
reason?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @author jun
|
|
9
|
+
* @description 관리자용 일괄 송장 등록/수정 payload
|
|
10
|
+
*/
|
|
11
|
+
export declare class UpsertInvoiceBulkForAdminPayload {
|
|
12
|
+
/** 송장을 등록하거나 수정할 결제정보 ID 목록 */
|
|
13
|
+
pInfoIds: string[];
|
|
14
|
+
/** 택배사명 */
|
|
15
|
+
SCompany: string;
|
|
16
|
+
/** 송장번호 */
|
|
17
|
+
invoice: string;
|
|
18
|
+
/** 배송 조회 URL */
|
|
19
|
+
invoiceUrl?: string;
|
|
20
|
+
/** 택배사 직접 입력 여부 */
|
|
21
|
+
isDirectInput: boolean;
|
|
22
|
+
/** 구매자 알림 발송 여부 */
|
|
23
|
+
isNoti: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @author jun
|
|
27
|
+
* @description 관리자용 일괄 송장 등록/수정 결과
|
|
28
|
+
*/
|
|
29
|
+
export declare class UpsertInvoiceBulkForAdminResult {
|
|
30
|
+
allCount: number;
|
|
31
|
+
successCount: number;
|
|
32
|
+
failCount: number;
|
|
33
|
+
results: UpsertInvoiceBulkForAdminResultItem[];
|
|
34
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.UpsertInvoiceBulkForAdminResult = exports.UpsertInvoiceBulkForAdminPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author jun
|
|
16
|
+
* @description 관리자용 일괄 송장 등록/수정 payload
|
|
17
|
+
*/
|
|
18
|
+
class UpsertInvoiceBulkForAdminPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.UpsertInvoiceBulkForAdminPayload = UpsertInvoiceBulkForAdminPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsArray)(),
|
|
23
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
24
|
+
(0, class_validator_1.ArrayMaxSize)(50),
|
|
25
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
26
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
27
|
+
__metadata("design:type", Array)
|
|
28
|
+
], UpsertInvoiceBulkForAdminPayload.prototype, "pInfoIds", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpsertInvoiceBulkForAdminPayload.prototype, "SCompany", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], UpsertInvoiceBulkForAdminPayload.prototype, "invoice", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UpsertInvoiceBulkForAdminPayload.prototype, "invoiceUrl", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsBoolean)(),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], UpsertInvoiceBulkForAdminPayload.prototype, "isDirectInput", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsBoolean)(),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], UpsertInvoiceBulkForAdminPayload.prototype, "isNoti", void 0);
|
|
50
|
+
/**
|
|
51
|
+
* @author jun
|
|
52
|
+
* @description 관리자용 일괄 송장 등록/수정 결과
|
|
53
|
+
*/
|
|
54
|
+
class UpsertInvoiceBulkForAdminResult {
|
|
55
|
+
}
|
|
56
|
+
exports.UpsertInvoiceBulkForAdminResult = UpsertInvoiceBulkForAdminResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload, EditPInfoUsedCouponInfoPayload, DeletePInfoUsedCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoResult, UpdateProcessFinishedToCancelledPayload, GetDeliveryListForAdminPayload, GetDeliveryListForAdminResult, UpsertInvoiceForAdminPayload, DeleteInvoiceForAdminPayload, UpsertSplitInvoiceForAdminPayload, DeleteSplitInvoiceForAdminPayload, TransferPInfoSellerPayload, GetPInfosByYgTypePayload, GetPInfosByYgTypeResult, GetCrawlerProxyOrderListForAdminPayload, GetCrawlerProxyOrderListForAdminResult, UpdateCrawlerProxyOrderInfoForAdminPayload, UpdateCrawlerProxyOrderPurchaseOrderNumberBulkPayload, UpdateCrawlerProxyOrderPurchaseOrderNumberBulkResult, AcceptCrawlerProxyOrderForAdminPayload, CheckCrawlerProxyOrderStockForAdminPayload, RequestCrawlerProxyOrderPaymentForAdminPayload, GetPriceCompareAffiliatePInfosForAdminPayload, GetPriceCompareAffiliatePInfosForAdminResult, GetPriceCompareAffiliatePInfosForAdminExcelResult, GetPriceCompareAffiliateSettleDoneRefundedPInfosForAdminPayload, GetPriceCompareAffiliateSettleDoneRefundedPInfosForAdminExcelResult, UpdatePriceCompareAffiliateSettleStatusPayload, GetCrawlerForwardingAgentsForAdminPayload, GetCrawlerForwardingAgentsForAdminResult, CreateCrawlerForwardingAgentForAdminPayload, UpdateCrawlerForwardingAgentForAdminPayload, UpdateCrawlerForwardingAgentActiveForAdminPayload } from '../../dto/purchased-info.modules/purchased-info-admin';
|
|
3
|
+
import { GetPurchasedInfosForAdminPayload, GetPurchasedInfosForAdminResult, GetPurchasedInfoDetailForAdminEditPayload, GetPurchasedInfoDetailForAdminEditResult, EditPInfoEtcDataPayload, EditPInfoMemoPayload, EditPInfoPricePayload, EditPInfoProcessPayload, EditPInfoReceiverInfoPayload, EditPInfoWaitingReceiveInfoPayload, EditPInfoUsedCouponInfoPayload, DeletePInfoUsedCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoPayload, GetPurchasedInfoLogsForCouponInfoResult, UpdateProcessFinishedToCancelledPayload, GetDeliveryListForAdminPayload, GetDeliveryListForAdminResult, UpsertInvoiceForAdminPayload, UpsertInvoiceBulkForAdminPayload, UpsertInvoiceBulkForAdminResult, DeleteInvoiceForAdminPayload, UpsertSplitInvoiceForAdminPayload, DeleteSplitInvoiceForAdminPayload, TransferPInfoSellerPayload, GetPInfosByYgTypePayload, GetPInfosByYgTypeResult, GetCrawlerProxyOrderListForAdminPayload, GetCrawlerProxyOrderListForAdminResult, UpdateCrawlerProxyOrderInfoForAdminPayload, UpdateCrawlerProxyOrderPurchaseOrderNumberBulkPayload, UpdateCrawlerProxyOrderPurchaseOrderNumberBulkResult, AcceptCrawlerProxyOrderForAdminPayload, CheckCrawlerProxyOrderStockForAdminPayload, RequestCrawlerProxyOrderPaymentForAdminPayload, GetPriceCompareAffiliatePInfosForAdminPayload, GetPriceCompareAffiliatePInfosForAdminResult, GetPriceCompareAffiliatePInfosForAdminExcelResult, GetPriceCompareAffiliateSettleDoneRefundedPInfosForAdminPayload, GetPriceCompareAffiliateSettleDoneRefundedPInfosForAdminExcelResult, UpdatePriceCompareAffiliateSettleStatusPayload, GetCrawlerForwardingAgentsForAdminPayload, GetCrawlerForwardingAgentsForAdminResult, CreateCrawlerForwardingAgentForAdminPayload, UpdateCrawlerForwardingAgentForAdminPayload, UpdateCrawlerForwardingAgentActiveForAdminPayload } from '../../dto/purchased-info.modules/purchased-info-admin';
|
|
4
4
|
export declare class AmqpPurchasedInfoAdminService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -19,6 +19,7 @@ export declare class AmqpPurchasedInfoAdminService {
|
|
|
19
19
|
updateProcessFinishedToCancelled(payload: UpdateProcessFinishedToCancelledPayload, param: AbstractParam): Promise<void>;
|
|
20
20
|
getDeliveryListForAdmin(payload: GetDeliveryListForAdminPayload, param: AbstractParam): Promise<GetDeliveryListForAdminResult>;
|
|
21
21
|
upsertInvoiceForAdmin(payload: UpsertInvoiceForAdminPayload, param: AbstractParam): Promise<void>;
|
|
22
|
+
upsertInvoiceBulkForAdmin(payload: UpsertInvoiceBulkForAdminPayload, param: AbstractParam): Promise<UpsertInvoiceBulkForAdminResult>;
|
|
22
23
|
deleteInvoiceForAdmin(payload: DeleteInvoiceForAdminPayload, param: AbstractParam): Promise<void>;
|
|
23
24
|
upsertSplitInvoiceForAdmin(payload: UpsertSplitInvoiceForAdminPayload, param: AbstractParam): Promise<void>;
|
|
24
25
|
deleteSplitInvoiceForAdmin(payload: DeleteSplitInvoiceForAdminPayload, param: AbstractParam): Promise<void>;
|
|
@@ -64,6 +64,9 @@ let AmqpPurchasedInfoAdminService = class AmqpPurchasedInfoAdminService {
|
|
|
64
64
|
async upsertInvoiceForAdmin(payload, param) {
|
|
65
65
|
return this.amqpManager.call('관리자용 단일 송장 등록/수정', 'purchased-info-admin.upsert.invoice', payload, param, { isErrorThrowing: true });
|
|
66
66
|
}
|
|
67
|
+
async upsertInvoiceBulkForAdmin(payload, param) {
|
|
68
|
+
return this.amqpManager.call('관리자용 일괄 송장 등록/수정', 'purchased-info-admin.upsert.invoice-bulk', payload, param, { isErrorThrowing: true });
|
|
69
|
+
}
|
|
67
70
|
async deleteInvoiceForAdmin(payload, param) {
|
|
68
71
|
return this.amqpManager.call('관리자용 단일 송장 삭제', 'purchased-info-admin.delete.invoice', payload, param, { isErrorThrowing: true });
|
|
69
72
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { MessageTemplateResult } from '../command';
|
|
2
|
+
/**
|
|
3
|
+
* @author jun
|
|
4
|
+
* @description 판매자 메시지 템플릿 목록 조회의 빈 payload를 검증 가능하게 정의함.
|
|
5
|
+
* @process 빈 객체를 DTO 인스턴스로 변환한 뒤 class-validator 검증을 통과시킴.
|
|
6
|
+
*/
|
|
2
7
|
export declare class GetMessageTemplatesPayload {
|
|
8
|
+
readonly reserved?: string;
|
|
3
9
|
}
|
|
4
10
|
export declare class GetMessageTemplatesResult {
|
|
5
11
|
messageTemplates: MessageTemplateResult[];
|
|
@@ -1,9 +1,29 @@
|
|
|
1
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.GetMessageTemplatesResult = exports.GetMessageTemplatesPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author jun
|
|
16
|
+
* @description 판매자 메시지 템플릿 목록 조회의 빈 payload를 검증 가능하게 정의함.
|
|
17
|
+
* @process 빈 객체를 DTO 인스턴스로 변환한 뒤 class-validator 검증을 통과시킴.
|
|
18
|
+
*/
|
|
4
19
|
class GetMessageTemplatesPayload {
|
|
5
20
|
}
|
|
6
21
|
exports.GetMessageTemplatesPayload = GetMessageTemplatesPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], GetMessageTemplatesPayload.prototype, "reserved", void 0);
|
|
7
27
|
class GetMessageTemplatesResult {
|
|
8
28
|
}
|
|
9
29
|
exports.GetMessageTemplatesResult = GetMessageTemplatesResult;
|