@yolo-croket-dev/amqp-access 0.5.134 → 0.5.137
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/excel-upload-server/dto/app-bulk-push-excel/command/create-app-bulk-push-job.dto.d.ts +4 -0
- package/excel-upload-server/dto/app-bulk-push-excel/command/create-app-bulk-push-job.dto.js +13 -0
- package/excel-upload-server/dto/app-bulk-push-excel/query/get-app-bulk-push-jobs-status.dto.d.ts +2 -0
- package/excel-upload-server/dto/app-bulk-push-excel/query/get-app-bulk-push-jobs-status.dto.js +4 -0
- package/excel-upload-server/services/amqp.app-bulk-push-excel.service.d.ts +6 -1
- package/excel-upload-server/services/amqp.app-bulk-push-excel.service.js +8 -0
- package/package.json +1 -1
package/excel-upload-server/dto/app-bulk-push-excel/command/create-app-bulk-push-job.dto.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ export declare class CreateAppBulkPushJobPayload {
|
|
|
6
6
|
csvFileURL: string;
|
|
7
7
|
/** 원본 파일명 */
|
|
8
8
|
fileName: string;
|
|
9
|
+
/** CSV 파일 저장 경로 */
|
|
10
|
+
csvFilePath: string;
|
|
11
|
+
/** 처리 완료시 바로 전송할지 여부 */
|
|
12
|
+
isFinishSendPush?: boolean;
|
|
9
13
|
}
|
|
10
14
|
/** 앱 푸시 작업 생성 결과 */
|
|
11
15
|
export type CreateAppBulkPushJobResult = boolean;
|
|
@@ -33,3 +33,16 @@ __decorate([
|
|
|
33
33
|
,
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], CreateAppBulkPushJobPayload.prototype, "fileName", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)()
|
|
38
|
+
/** CSV 파일 저장 경로 */
|
|
39
|
+
,
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CreateAppBulkPushJobPayload.prototype, "csvFilePath", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsBoolean)()
|
|
45
|
+
/** 처리 완료시 바로 전송할지 여부 */
|
|
46
|
+
,
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], CreateAppBulkPushJobPayload.prototype, "isFinishSendPush", void 0);
|
package/excel-upload-server/dto/app-bulk-push-excel/query/get-app-bulk-push-jobs-status.dto.js
CHANGED
|
@@ -33,6 +33,10 @@ __decorate([
|
|
|
33
33
|
(0, class_validator_1.IsString)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], AppBulkPushJobsStatus.prototype, "csvFileURL", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], AppBulkPushJobsStatus.prototype, "csvFilePath", void 0);
|
|
36
40
|
__decorate([
|
|
37
41
|
(0, class_validator_1.IsString)(),
|
|
38
42
|
__metadata("design:type", String)
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
|
|
3
|
-
import { CreateAppBulkPushResultExcelPayload, CreateAppBulkPushResultExcelResult } from '../dto/app-bulk-push-excel/command';
|
|
3
|
+
import { CreateAppBulkPushResultExcelPayload, CreateAppBulkPushResultExcelResult, CreateAppBulkPushJobPayload, CreateAppBulkPushJobResult } from '../dto/app-bulk-push-excel/command';
|
|
4
|
+
import { GetAppBulkPushJobsStatusPayload, GetAppBulkPushJobsStatusResult } from '../dto/app-bulk-push-excel/query';
|
|
4
5
|
export declare class AmqpAppBulkPushExcelService {
|
|
5
6
|
private readonly client;
|
|
6
7
|
private readonly amqpManager;
|
|
7
8
|
constructor(client: ClientProxy);
|
|
8
9
|
createAppBulkPushResultExcel(payload: CreateAppBulkPushResultExcelPayload, param: AbstractParam): Promise<CreateAppBulkPushResultExcelResult>;
|
|
10
|
+
/** 앱 푸시 작업 생성 */
|
|
11
|
+
createAppBulkPushExcelJob(payload: CreateAppBulkPushJobPayload, param: AbstractParam): Promise<CreateAppBulkPushJobResult>;
|
|
12
|
+
/** 앱 푸시 작업 진행 상태 조회 */
|
|
13
|
+
getAppBulkPushJobsStatus(payload: GetAppBulkPushJobsStatusPayload, param: AbstractParam): Promise<GetAppBulkPushJobsStatusResult>;
|
|
9
14
|
}
|
|
@@ -24,6 +24,14 @@ let AmqpAppBulkPushExcelService = class AmqpAppBulkPushExcelService {
|
|
|
24
24
|
async createAppBulkPushResultExcel(payload, param) {
|
|
25
25
|
return this.amqpManager.onlyPublish('앱 푸시 결과 엑셀 생성', 'app-bulk-push-excel.create.result-excel', payload, param, { isErrorThrowing: true });
|
|
26
26
|
}
|
|
27
|
+
/** 앱 푸시 작업 생성 */
|
|
28
|
+
async createAppBulkPushExcelJob(payload, param) {
|
|
29
|
+
return this.amqpManager.call('앱 푸시 작업 생성', 'app-bulk-push-excel.job.create', payload, param, { isErrorThrowing: true });
|
|
30
|
+
}
|
|
31
|
+
/** 앱 푸시 작업 진행 상태 조회 */
|
|
32
|
+
async getAppBulkPushJobsStatus(payload, param) {
|
|
33
|
+
return this.amqpManager.call('앱 푸시 작업 진행 상태 조회', 'app-bulk-push-excel.jobs.get', payload, param, { isErrorThrowing: true });
|
|
34
|
+
}
|
|
27
35
|
};
|
|
28
36
|
exports.AmqpAppBulkPushExcelService = AmqpAppBulkPushExcelService;
|
|
29
37
|
exports.AmqpAppBulkPushExcelService = AmqpAppBulkPushExcelService = __decorate([
|