@yolo-croket-dev/amqp-access 0.1.0 → 0.1.2
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/amqp.notification-service.module.js +2 -0
- package/notification-service/dto/index.d.ts +1 -0
- package/notification-service/dto/index.js +1 -0
- package/notification-service/dto/notification/command/index.d.ts +1 -0
- package/notification-service/dto/notification/command/index.js +17 -0
- package/notification-service/dto/notification/command/send-template-notification.dto.d.ts +48 -0
- package/notification-service/dto/notification/command/send-template-notification.dto.js +60 -0
- package/notification-service/dto/notification/index.d.ts +1 -0
- package/notification-service/dto/notification/index.js +17 -0
- package/notification-service/services/amqp.send-notification.service.d.ts +9 -0
- package/notification-service/services/amqp.send-notification.service.js +33 -0
- package/notification-service/services/index.d.ts +1 -0
- package/notification-service/services/index.js +1 -0
- package/order-server/dto/purchasedinfos/query/search-seller-transaction-history-by-process.dto.d.ts +2 -0
- package/package.json +2 -2
|
@@ -24,6 +24,7 @@ exports.AmqpNotificationServiceModule = AmqpNotificationServiceModule = __decora
|
|
|
24
24
|
services_1.AmqpMailService,
|
|
25
25
|
services_1.AmqpAppBulkPushLogService,
|
|
26
26
|
services_1.AmqpAppBulkPushService,
|
|
27
|
+
services_1.AmqpSendNotificationService,
|
|
27
28
|
],
|
|
28
29
|
exports: [
|
|
29
30
|
amqp_notification_service_provider_1.NotifiactionServiceProvider,
|
|
@@ -33,6 +34,7 @@ exports.AmqpNotificationServiceModule = AmqpNotificationServiceModule = __decora
|
|
|
33
34
|
services_1.AmqpMailService,
|
|
34
35
|
services_1.AmqpAppBulkPushLogService,
|
|
35
36
|
services_1.AmqpAppBulkPushService,
|
|
37
|
+
services_1.AmqpSendNotificationService,
|
|
36
38
|
],
|
|
37
39
|
})
|
|
38
40
|
], AmqpNotificationServiceModule);
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./mail"), exports);
|
|
18
18
|
__exportStar(require("./app-bulk-push-log"), exports);
|
|
19
|
+
__exportStar(require("./notification"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './send-template-notification.dto';
|
|
@@ -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("./send-template-notification.dto"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/callback" />
|
|
3
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/collection" />
|
|
4
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/connection" />
|
|
5
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/document" />
|
|
7
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/error" />
|
|
8
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/models" />
|
|
13
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/populate" />
|
|
16
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/query" />
|
|
17
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/session" />
|
|
20
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/types" />
|
|
21
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/utility" />
|
|
22
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/validation" />
|
|
23
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose" />
|
|
25
|
+
/// <reference types="@yolo-croket-dev/dto/node_modules/mongoose/types/inferschematype" />
|
|
26
|
+
import { Types } from 'mongoose';
|
|
27
|
+
export interface ActivityParam {
|
|
28
|
+
previewImg?: string;
|
|
29
|
+
relateRefundId?: Types.ObjectId;
|
|
30
|
+
otherUserId?: Types.ObjectId;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @description 알림 템플릿으로 알림 전달 요청 DTO
|
|
34
|
+
*/
|
|
35
|
+
export declare class SendTemplateNotificationPayload {
|
|
36
|
+
/** @description 전송할 알림 템플릿 이름 */
|
|
37
|
+
templateName: string;
|
|
38
|
+
/** @description 유저 아이디 */
|
|
39
|
+
userId?: string;
|
|
40
|
+
/** @description 광고 여부 관련 추가 인풋 */
|
|
41
|
+
isAd?: boolean;
|
|
42
|
+
/** @description 전송할 알림 파라미터 */
|
|
43
|
+
notificationParam?: Record<string, unknown>;
|
|
44
|
+
/** @description 전송할 알림 활동 파라미터 */
|
|
45
|
+
notificationActivityParam?: ActivityParam;
|
|
46
|
+
/** 테스트용으로 사용, 활동 저장하지 않기 */
|
|
47
|
+
isNotAcitivtySave?: boolean;
|
|
48
|
+
}
|
|
@@ -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.SendTemplateNotificationPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @description 알림 템플릿으로 알림 전달 요청 DTO
|
|
16
|
+
*/
|
|
17
|
+
class SendTemplateNotificationPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.SendTemplateNotificationPayload = SendTemplateNotificationPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)()
|
|
22
|
+
/** @description 전송할 알림 템플릿 이름 */
|
|
23
|
+
,
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SendTemplateNotificationPayload.prototype, "templateName", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsMongoId)()
|
|
29
|
+
/** @description 유저 아이디 */
|
|
30
|
+
,
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SendTemplateNotificationPayload.prototype, "userId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsMongoId)()
|
|
36
|
+
/** @description 광고 여부 관련 추가 인풋 */
|
|
37
|
+
,
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], SendTemplateNotificationPayload.prototype, "isAd", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsObject)()
|
|
43
|
+
/** @description 전송할 알림 파라미터 */
|
|
44
|
+
,
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], SendTemplateNotificationPayload.prototype, "notificationParam", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsObject)()
|
|
50
|
+
/** @description 전송할 알림 활동 파라미터 */
|
|
51
|
+
,
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], SendTemplateNotificationPayload.prototype, "notificationActivityParam", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsBoolean)()
|
|
57
|
+
/** 테스트용으로 사용, 활동 저장하지 않기 */
|
|
58
|
+
,
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], SendTemplateNotificationPayload.prototype, "isNotAcitivtySave", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './command';
|
|
@@ -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,9 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { SendTemplateNotificationPayload } from '../dto/notification';
|
|
4
|
+
export declare class AmqpSendNotificationService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
sendTemplateNotification(payload: SendTemplateNotificationPayload, param: AbstractParam): Promise<boolean>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.AmqpSendNotificationService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
18
|
+
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
19
|
+
let AmqpSendNotificationService = class AmqpSendNotificationService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async sendTemplateNotification(payload, param) {
|
|
25
|
+
return this.amqpManager.call('알림 보내기', 'notification.template.send', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AmqpSendNotificationService = AmqpSendNotificationService;
|
|
29
|
+
exports.AmqpSendNotificationService = AmqpSendNotificationService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, common_1.Inject)('NOTIFICATION_SERVICE_PROVIDER')),
|
|
32
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
33
|
+
], AmqpSendNotificationService);
|
|
@@ -19,3 +19,4 @@ __exportStar(require("./amqp.app-push-subscribed-user.service"), exports);
|
|
|
19
19
|
__exportStar(require("./amqp.mail.service"), exports);
|
|
20
20
|
__exportStar(require("./amqp.app-bulk-push-log.service"), exports);
|
|
21
21
|
__exportStar(require("./amqp.app-bulk-push.service"), exports);
|
|
22
|
+
__exportStar(require("./amqp.send-notification.service"), exports);
|
package/order-server/dto/purchasedinfos/query/search-seller-transaction-history-by-process.dto.d.ts
CHANGED
|
@@ -98,6 +98,8 @@ export declare class SellerTransactionHistory {
|
|
|
98
98
|
adCenterCouponSettleDate?: Date;
|
|
99
99
|
/** 광고센터 쿠폰 예상 정산 금액 (셀러 부담) */
|
|
100
100
|
expectedAdCenterCouponSettlePrice?: number;
|
|
101
|
+
/** 부분 환불 프로세스 정보 */
|
|
102
|
+
partialRefundProcess?: string;
|
|
101
103
|
}
|
|
102
104
|
export declare class SearchSellerTransactionHistoryByProcessResult {
|
|
103
105
|
sellerTransactionHistories: SellerTransactionHistory[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
}
|