@yolo-croket-dev/amqp-access 0.7.206 → 0.7.207
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.service.d.ts +3 -0
- package/notification-service/amqp.notification-service.service.js +4 -0
- package/notification-service/dto/crawler-proxy-order/index.d.ts +1 -0
- package/notification-service/dto/crawler-proxy-order/index.js +17 -0
- package/notification-service/dto/crawler-proxy-order/query/get-crawler-proxy-order-slack-thread-links.dto.d.ts +13 -0
- package/notification-service/dto/crawler-proxy-order/query/get-crawler-proxy-order-slack-thread-links.dto.js +51 -0
- package/notification-service/dto/crawler-proxy-order/query/index.d.ts +1 -0
- package/notification-service/dto/crawler-proxy-order/query/index.js +17 -0
- package/notification-service/dto/index.d.ts +1 -0
- package/notification-service/dto/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { CheckInspectionWithInvoiceEnclosedPayload, CheckInspectionWithInvoiceEnclosedResult, CheckInspectionWithInvoiceNotEnclosedPayload, CheckInspectionWithInvoiceNotEnclosedResult, SendInspectionWithInvoiceEnclosedPayload, SendInspectionWithInvoiceEnclosedResult, SendInspectionWithInvoiceNotEnclosedPayload, SendInspectionWithInvoiceNotEnclosedResult } from '@yolo-croket-dev/dto-v2/notification-service';
|
|
4
|
+
import { GetCrawlerProxyOrderSlackThreadLinksPayload, GetCrawlerProxyOrderSlackThreadLinksResult } from './dto';
|
|
4
5
|
export declare class AmqpNotificationService {
|
|
5
6
|
private readonly client;
|
|
6
7
|
private readonly amqpManager;
|
|
@@ -9,5 +10,7 @@ export declare class AmqpNotificationService {
|
|
|
9
10
|
checkInspectionWithInvoiceNotEnclosed(payload: CheckInspectionWithInvoiceNotEnclosedPayload, param: AbstractParam): Promise<CheckInspectionWithInvoiceNotEnclosedResult>;
|
|
10
11
|
sendInspectionWithInvoiceEnclosed(payload: SendInspectionWithInvoiceEnclosedPayload, param: AbstractParam): Promise<SendInspectionWithInvoiceEnclosedResult>;
|
|
11
12
|
sendInspectionWithInvoiceNotEnclosed(payload: SendInspectionWithInvoiceNotEnclosedPayload, param: AbstractParam): Promise<SendInspectionWithInvoiceNotEnclosedResult>;
|
|
13
|
+
/** 결제정보별 크롤링 대신구매 Slack 스레드 링크를 조회한다. */
|
|
14
|
+
getCrawlerProxyOrderSlackThreadLinks(payload: GetCrawlerProxyOrderSlackThreadLinksPayload, param: AbstractParam): Promise<GetCrawlerProxyOrderSlackThreadLinksResult>;
|
|
12
15
|
sendBatchPushNotification(payload: void, param: AbstractParam): Promise<boolean>;
|
|
13
16
|
}
|
|
@@ -35,6 +35,10 @@ let AmqpNotificationService = class AmqpNotificationService {
|
|
|
35
35
|
async sendInspectionWithInvoiceNotEnclosed(payload, param) {
|
|
36
36
|
return this.amqpManager.call('inspection-with-invoice-enclosed 템플릿 대량 noti 발송 api', 'notification-bulk-send.send.inspection-with-invoice-not-enclosed', payload, param, { isErrorThrowing: true });
|
|
37
37
|
}
|
|
38
|
+
/** 결제정보별 크롤링 대신구매 Slack 스레드 링크를 조회한다. */
|
|
39
|
+
async getCrawlerProxyOrderSlackThreadLinks(payload, param) {
|
|
40
|
+
return this.amqpManager.call('크롤링 대신구매 Slack 스레드 링크 조회', 'notification.get.crawler-proxy-order-slack-thread-links', payload, param, { isErrorThrowing: true });
|
|
41
|
+
}
|
|
38
42
|
// 푸쉬 묶음 발송
|
|
39
43
|
async sendBatchPushNotification(payload, param) {
|
|
40
44
|
return this.amqpManager.onlyPublish('푸쉬 묶음 발송', 'notification.send.batch-push-notification', payload, param, { isInternal: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './query';
|
|
@@ -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("./query"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** 크롤링 대신구매 Slack 스레드 링크 조회 요청 */
|
|
2
|
+
export declare class GetCrawlerProxyOrderSlackThreadLinksPayload {
|
|
3
|
+
pInfoIds: string[];
|
|
4
|
+
}
|
|
5
|
+
/** 결제정보별 크롤링 대신구매 Slack 스레드 링크 */
|
|
6
|
+
export declare class CrawlerProxyOrderSlackThreadLink {
|
|
7
|
+
pInfoId: string;
|
|
8
|
+
slackThreadUrl: string;
|
|
9
|
+
}
|
|
10
|
+
/** 크롤링 대신구매 Slack 스레드 링크 조회 결과 */
|
|
11
|
+
export declare class GetCrawlerProxyOrderSlackThreadLinksResult {
|
|
12
|
+
links: CrawlerProxyOrderSlackThreadLink[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.GetCrawlerProxyOrderSlackThreadLinksResult = exports.CrawlerProxyOrderSlackThreadLink = exports.GetCrawlerProxyOrderSlackThreadLinksPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
/** 크롤링 대신구매 Slack 스레드 링크 조회 요청 */
|
|
16
|
+
class GetCrawlerProxyOrderSlackThreadLinksPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.GetCrawlerProxyOrderSlackThreadLinksPayload = GetCrawlerProxyOrderSlackThreadLinksPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsArray)(),
|
|
21
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
22
|
+
(0, class_validator_1.ArrayMaxSize)(200),
|
|
23
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
24
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)({ each: true }),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], GetCrawlerProxyOrderSlackThreadLinksPayload.prototype, "pInfoIds", void 0);
|
|
28
|
+
/** 결제정보별 크롤링 대신구매 Slack 스레드 링크 */
|
|
29
|
+
class CrawlerProxyOrderSlackThreadLink {
|
|
30
|
+
}
|
|
31
|
+
exports.CrawlerProxyOrderSlackThreadLink = CrawlerProxyOrderSlackThreadLink;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CrawlerProxyOrderSlackThreadLink.prototype, "pInfoId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CrawlerProxyOrderSlackThreadLink.prototype, "slackThreadUrl", void 0);
|
|
42
|
+
/** 크롤링 대신구매 Slack 스레드 링크 조회 결과 */
|
|
43
|
+
class GetCrawlerProxyOrderSlackThreadLinksResult {
|
|
44
|
+
}
|
|
45
|
+
exports.GetCrawlerProxyOrderSlackThreadLinksResult = GetCrawlerProxyOrderSlackThreadLinksResult;
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsArray)(),
|
|
48
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
49
|
+
(0, class_transformer_1.Type)(() => CrawlerProxyOrderSlackThreadLink),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], GetCrawlerProxyOrderSlackThreadLinksResult.prototype, "links", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-crawler-proxy-order-slack-thread-links.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("./get-crawler-proxy-order-slack-thread-links.dto"), exports);
|
|
@@ -19,3 +19,4 @@ __exportStar(require("./app-bulk-push-log"), exports);
|
|
|
19
19
|
__exportStar(require("./notification"), exports);
|
|
20
20
|
__exportStar(require("./notification-bulk-send"), exports);
|
|
21
21
|
__exportStar(require("./amplitude-cohort-export-job"), exports);
|
|
22
|
+
__exportStar(require("./crawler-proxy-order"), exports);
|