@yolo-croket-dev/amqp-access 0.4.15-sj → 0.4.15
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/notification-service/dto/notification/command/index.d.ts +1 -0
- package/notification-service/dto/notification/command/index.js +1 -0
- package/notification-service/dto/notification/command/send-template-notification-bulk.dto.d.ts +15 -0
- package/notification-service/dto/notification/command/send-template-notification-bulk.dto.js +35 -0
- package/order-server/dto/purchase-receipt/command/index.d.ts +0 -1
- package/order-server/dto/purchase-receipt/command/index.js +0 -1
- package/order-server/dto/purchasedinfos/query/get-purchased-infos-for-unconfirmed-waiting-order-sellers-excel.dto.d.ts +0 -1
- package/order-server/services/amqp.purchase-receipt.service.d.ts +1 -2
- package/order-server/services/amqp.purchase-receipt.service.js +0 -3
- package/package.json +1 -1
- package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +3 -0
- package/user-service/dto/redis-db/command/pull-redis-db.dto.js +7 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +4 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.js +26 -0
- package/order-server/dto/purchase-receipt/command/update-purchase-receipt-receive-info-by-p-info-id-as-admin.dto.d.ts +0 -14
- package/order-server/dto/purchase-receipt/command/update-purchase-receipt-receive-info-by-p-info-id-as-admin.dto.js +0 -63
|
@@ -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("./send-template-notification.dto"), exports);
|
|
18
|
+
__exportStar(require("./send-template-notification-bulk.dto"), exports);
|
package/notification-service/dto/notification/command/send-template-notification-bulk.dto.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SendTemplateNotificationPayload } from './send-template-notification.dto';
|
|
2
|
+
export declare class SendTemplateNotificationBulkPayloadsPayload {
|
|
3
|
+
payload: SendTemplateNotificationPayload;
|
|
4
|
+
correlationId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SendTemplateNotificationBulkPayload {
|
|
7
|
+
payloads: SendTemplateNotificationBulkPayloadsPayload[];
|
|
8
|
+
}
|
|
9
|
+
export interface SendTemplateNotificationBulkResultItem {
|
|
10
|
+
correlationId: string;
|
|
11
|
+
result: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface SendTemplateNotificationBulkResult {
|
|
14
|
+
results: SendTemplateNotificationBulkResultItem[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.SendTemplateNotificationBulkPayload = exports.SendTemplateNotificationBulkPayloadsPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const send_template_notification_dto_1 = require("./send-template-notification.dto");
|
|
16
|
+
class SendTemplateNotificationBulkPayloadsPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.SendTemplateNotificationBulkPayloadsPayload = SendTemplateNotificationBulkPayloadsPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.ValidateNested)(),
|
|
21
|
+
(0, class_transformer_1.Type)(() => send_template_notification_dto_1.SendTemplateNotificationPayload),
|
|
22
|
+
__metadata("design:type", send_template_notification_dto_1.SendTemplateNotificationPayload)
|
|
23
|
+
], SendTemplateNotificationBulkPayloadsPayload.prototype, "payload", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SendTemplateNotificationBulkPayloadsPayload.prototype, "correlationId", void 0);
|
|
28
|
+
class SendTemplateNotificationBulkPayload {
|
|
29
|
+
}
|
|
30
|
+
exports.SendTemplateNotificationBulkPayload = SendTemplateNotificationBulkPayload;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
33
|
+
(0, class_transformer_1.Type)(() => SendTemplateNotificationBulkPayloadsPayload),
|
|
34
|
+
__metadata("design:type", Array)
|
|
35
|
+
], SendTemplateNotificationBulkPayload.prototype, "payloads", void 0);
|
|
@@ -2,4 +2,3 @@ export * from './crate-purchase-receipt.dto';
|
|
|
2
2
|
export * from './update-purchase-receipt.dto';
|
|
3
3
|
export * from './update-purchase-receipt-receive-info.dto';
|
|
4
4
|
export * from './update-purchase-receipt-process-bulk.dto';
|
|
5
|
-
export * from './update-purchase-receipt-receive-info-by-p-info-id-as-admin.dto';
|
|
@@ -18,4 +18,3 @@ __exportStar(require("./crate-purchase-receipt.dto"), exports);
|
|
|
18
18
|
__exportStar(require("./update-purchase-receipt.dto"), exports);
|
|
19
19
|
__exportStar(require("./update-purchase-receipt-receive-info.dto"), exports);
|
|
20
20
|
__exportStar(require("./update-purchase-receipt-process-bulk.dto"), exports);
|
|
21
|
-
__exportStar(require("./update-purchase-receipt-receive-info-by-p-info-id-as-admin.dto"), exports);
|
|
@@ -9,7 +9,6 @@ export declare class UnconfirmedWaitingOrderSellerInfo {
|
|
|
9
9
|
publicId: string;
|
|
10
10
|
paymentDate: string;
|
|
11
11
|
paidPrice: number;
|
|
12
|
-
process: string;
|
|
13
12
|
}
|
|
14
13
|
export declare class GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult {
|
|
15
14
|
excelDatas: UnconfirmedWaitingOrderSellerInfo[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { CheckCanUpdatePurchaseReceiptReceiveInfoPayload, CheckCanUpdatePurchaseReceiptReceiveInfoResult, CreatePurchaseReceiptPayload, ReloadPurchaseReceiptPayload, ReloadPurchaseReceiptResult, SearchPurchaseReceiptDetailPayload, SearchPurchaseReceiptDetailResult, SearchPurchaseReceiptReceiveInfoPayload, SearchPurchaseReceiptReceiveInfoResult, SearchPurchaseReceiptsPayload, SearchPurchaseReceiptsResult, UpdatePurchaseReceiptPayload, UpdatePurchaseReceiptProcessBulkPayload,
|
|
3
|
+
import { CheckCanUpdatePurchaseReceiptReceiveInfoPayload, CheckCanUpdatePurchaseReceiptReceiveInfoResult, CreatePurchaseReceiptPayload, ReloadPurchaseReceiptPayload, ReloadPurchaseReceiptResult, SearchPurchaseReceiptDetailPayload, SearchPurchaseReceiptDetailResult, SearchPurchaseReceiptReceiveInfoPayload, SearchPurchaseReceiptReceiveInfoResult, SearchPurchaseReceiptsPayload, SearchPurchaseReceiptsResult, UpdatePurchaseReceiptPayload, UpdatePurchaseReceiptProcessBulkPayload, UpdatePurchaseReceiptReceiveInfoPayload } from '../dto/purchase-receipt';
|
|
4
4
|
export declare class AmqpPurchaseReceiptService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -16,5 +16,4 @@ export declare class AmqpPurchaseReceiptService {
|
|
|
16
16
|
updatePurchaseReceiptReceiveInfo(payload: UpdatePurchaseReceiptReceiveInfoPayload, param: AbstractParam): Promise<any>;
|
|
17
17
|
syncPurchaseReceiptProcess(param: AbstractParam): Promise<void>;
|
|
18
18
|
updatePurchaseReceiptProcessBulk(payload: UpdatePurchaseReceiptProcessBulkPayload, param: AbstractParam): Promise<void>;
|
|
19
|
-
updatePurchaseReceiptReceiveInfoByPInfoIdAsAdmin(payload: UpdatePurchaseReceiptReceiveInfoByPInfoIdAsAdminPayload, param: AbstractParam): Promise<any>;
|
|
20
19
|
}
|
|
@@ -56,9 +56,6 @@ let AmqpPurchaseReceiptService = class AmqpPurchaseReceiptService {
|
|
|
56
56
|
async updatePurchaseReceiptProcessBulk(payload, param) {
|
|
57
57
|
return this.amqpManager.call('주문서 프로세스 벌크 업데이트', 'purchase-receipt.update.process-bulk', payload, param, { isErrorThrowing: true });
|
|
58
58
|
}
|
|
59
|
-
async updatePurchaseReceiptReceiveInfoByPInfoIdAsAdmin(payload, param) {
|
|
60
|
-
return this.amqpManager.call('구매자 주문서 수령 정보 수정 -관리자-', 'purchase-receipt.update.receive-info-by-pinfo-id-as-admin', payload, param, { isErrorThrowing: true });
|
|
61
|
-
}
|
|
62
59
|
};
|
|
63
60
|
exports.AmqpPurchaseReceiptService = AmqpPurchaseReceiptService;
|
|
64
61
|
exports.AmqpPurchaseReceiptService = AmqpPurchaseReceiptService = __decorate([
|
package/package.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PullRedisDBPayload = void 0;
|
|
4
|
+
const push_redis_db_dto_1 = require("./push-redis-db.dto");
|
|
5
|
+
class PullRedisDBPayload extends push_redis_db_dto_1.PushRedisDBPayload {
|
|
6
|
+
}
|
|
7
|
+
exports.PullRedisDBPayload = PullRedisDBPayload;
|
|
@@ -0,0 +1,26 @@
|
|
|
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.PushRedisDBPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class PushRedisDBPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.PushRedisDBPayload = PushRedisDBPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MinLength)(1),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], PushRedisDBPayload.prototype, "redisDBKey", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MinLength)(1),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PushRedisDBPayload.prototype, "value", void 0);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare class PurchaseReceiptReceiveInfo {
|
|
2
|
-
buyerName: string;
|
|
3
|
-
buyerPhoneNumber: string;
|
|
4
|
-
buyerPostCode?: string;
|
|
5
|
-
buyerAddress1?: string;
|
|
6
|
-
buyerAddress2?: string;
|
|
7
|
-
buyerDirectAddress?: string;
|
|
8
|
-
PCCC?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class UpdatePurchaseReceiptReceiveInfoByPInfoIdAsAdminPayload {
|
|
11
|
-
PInfoId: string;
|
|
12
|
-
receiveInfo: PurchaseReceiptReceiveInfo;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,63 +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.UpdatePurchaseReceiptReceiveInfoByPInfoIdAsAdminPayload = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
class PurchaseReceiptReceiveInfo {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], PurchaseReceiptReceiveInfo.prototype, "buyerName", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], PurchaseReceiptReceiveInfo.prototype, "buyerPhoneNumber", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
(0, class_validator_1.IsOptional)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], PurchaseReceiptReceiveInfo.prototype, "buyerPostCode", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_validator_1.IsString)(),
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], PurchaseReceiptReceiveInfo.prototype, "buyerAddress1", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsString)(),
|
|
39
|
-
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], PurchaseReceiptReceiveInfo.prototype, "buyerAddress2", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0, class_validator_1.IsOptional)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], PurchaseReceiptReceiveInfo.prototype, "buyerDirectAddress", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsString)(),
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], PurchaseReceiptReceiveInfo.prototype, "PCCC", void 0);
|
|
52
|
-
class UpdatePurchaseReceiptReceiveInfoByPInfoIdAsAdminPayload {
|
|
53
|
-
}
|
|
54
|
-
exports.UpdatePurchaseReceiptReceiveInfoByPInfoIdAsAdminPayload = UpdatePurchaseReceiptReceiveInfoByPInfoIdAsAdminPayload;
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_validator_1.IsMongoId)(),
|
|
57
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], UpdatePurchaseReceiptReceiveInfoByPInfoIdAsAdminPayload.prototype, "PInfoId", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_transformer_1.Type)(() => PurchaseReceiptReceiveInfo),
|
|
62
|
-
__metadata("design:type", PurchaseReceiptReceiveInfo)
|
|
63
|
-
], UpdatePurchaseReceiptReceiveInfoByPInfoIdAsAdminPayload.prototype, "receiveInfo", void 0);
|