@yolo-croket-dev/amqp-access 0.2.28 → 0.2.29-sj-1
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/purchase-receipt/query/index.d.ts +1 -0
- package/order-server/dto/purchase-receipt/query/index.js +1 -0
- package/order-server/dto/purchase-receipt/query/search-purchase-receipt-detail.dto.d.ts +16 -0
- package/order-server/dto/purchase-receipt/query/search-purchase-receipt-detail.dto.js +30 -0
- package/order-server/services/amqp.purchase-receipt.service.d.ts +2 -1
- package/order-server/services/amqp.purchase-receipt.service.js +4 -0
- package/package.json +1 -1
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./search-purchase-receipts.dto"), exports);
|
|
18
|
+
__exportStar(require("./search-purchase-receipt-detail.dto"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PurchaseReceiptDomain, CustomPurchaseReceiptPurchasedInfo, PurcahseReceiptReceiveInfo, PurchaseReceiptPriceInfo, PurchaseReceiptRefundPriceInfo, CustomStoreShippingInfo } from '@yolo-croket-dev/domain';
|
|
2
|
+
export declare class SearchPurchaseReceiptDetailPayload {
|
|
3
|
+
purchaseReceiptId?: string;
|
|
4
|
+
PInfoId?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SearchPurchaseReceiptDetailResult implements Pick<PurchaseReceiptDomain, '_id' | 'paymentNumber' | 'paymentMethod' | 'purchasedInfos' | 'paymentDate' | 'receiveInfo' | 'purchaseReceiptPriceInfo' | 'purchaseReceiptRefundPriceInfo' | 'customStoreShippingInfos'> {
|
|
7
|
+
_id: string;
|
|
8
|
+
paymentNumber: string;
|
|
9
|
+
paymentMethod: string;
|
|
10
|
+
purchasedInfos: CustomPurchaseReceiptPurchasedInfo[];
|
|
11
|
+
paymentDate: Date;
|
|
12
|
+
receiveInfo: PurcahseReceiptReceiveInfo;
|
|
13
|
+
purchaseReceiptPriceInfo: PurchaseReceiptPriceInfo;
|
|
14
|
+
purchaseReceiptRefundPriceInfo: PurchaseReceiptRefundPriceInfo;
|
|
15
|
+
customStoreShippingInfos: CustomStoreShippingInfo[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.SearchPurchaseReceiptDetailResult = exports.SearchPurchaseReceiptDetailPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SearchPurchaseReceiptDetailPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.SearchPurchaseReceiptDetailPayload = SearchPurchaseReceiptDetailPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], SearchPurchaseReceiptDetailPayload.prototype, "purchaseReceiptId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsMongoId)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SearchPurchaseReceiptDetailPayload.prototype, "PInfoId", void 0);
|
|
27
|
+
// eslint-disable-next-line max-len
|
|
28
|
+
class SearchPurchaseReceiptDetailResult {
|
|
29
|
+
}
|
|
30
|
+
exports.SearchPurchaseReceiptDetailResult = SearchPurchaseReceiptDetailResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CreatePurchaseReceiptPayload, SearchPurchaseReceiptsPayload, SearchPurchaseReceiptsResult, UpdatePurchaseReceiptPayload } from '../dto/purchase-receipt';
|
|
3
|
+
import { CreatePurchaseReceiptPayload, SearchPurchaseReceiptDetailPayload, SearchPurchaseReceiptDetailResult, SearchPurchaseReceiptsPayload, SearchPurchaseReceiptsResult, UpdatePurchaseReceiptPayload } from '../dto/purchase-receipt';
|
|
4
4
|
export declare class AmqpPurchaseReceiptService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -9,4 +9,5 @@ export declare class AmqpPurchaseReceiptService {
|
|
|
9
9
|
updatePurchaseReceipt(payload: UpdatePurchaseReceiptPayload, param: AbstractParam): Promise<void>;
|
|
10
10
|
migrationPurchaseReceipt(param: AbstractParam): Promise<void>;
|
|
11
11
|
searchPurchaseReceipts(payload: SearchPurchaseReceiptsPayload, param: AbstractParam): Promise<SearchPurchaseReceiptsResult>;
|
|
12
|
+
searchPurchaseReceiptDetail(payload: SearchPurchaseReceiptDetailPayload, param: AbstractParam): Promise<SearchPurchaseReceiptDetailResult>;
|
|
12
13
|
}
|
|
@@ -33,6 +33,10 @@ let AmqpPurchaseReceiptService = class AmqpPurchaseReceiptService {
|
|
|
33
33
|
async searchPurchaseReceipts(payload, param) {
|
|
34
34
|
return this.amqpManager.call('구매자 주문서 리스트 조회', 'purchase-receipt.get.list', payload, param, { isErrorThrowing: true });
|
|
35
35
|
}
|
|
36
|
+
// eslint-disable-next-line max-len
|
|
37
|
+
async searchPurchaseReceiptDetail(payload, param) {
|
|
38
|
+
return this.amqpManager.call('구매자 주문서 리스트 조회', 'purchase-receipt.get.detail', payload, param, { isErrorThrowing: true });
|
|
39
|
+
}
|
|
36
40
|
};
|
|
37
41
|
exports.AmqpPurchaseReceiptService = AmqpPurchaseReceiptService;
|
|
38
42
|
exports.AmqpPurchaseReceiptService = AmqpPurchaseReceiptService = __decorate([
|