@yolo-croket-dev/amqp-access 0.7.183 → 0.7.184-hj-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/excel-upload-server/amqp.excel-upload-server.module.js +2 -0
- package/excel-upload-server/dto/crm-cohort-excel/command/create-crm-cohort-excel.dto.d.ts +12 -0
- package/excel-upload-server/dto/crm-cohort-excel/command/create-crm-cohort-excel.dto.js +40 -0
- package/excel-upload-server/dto/crm-cohort-excel/command/create-lms-cohort-excel.dto.d.ts +6 -0
- package/excel-upload-server/dto/crm-cohort-excel/command/create-lms-cohort-excel.dto.js +33 -0
- package/excel-upload-server/dto/crm-cohort-excel/command/index.d.ts +2 -0
- package/excel-upload-server/dto/crm-cohort-excel/command/index.js +18 -0
- package/excel-upload-server/dto/crm-cohort-excel/index.d.ts +1 -0
- package/excel-upload-server/dto/crm-cohort-excel/index.js +17 -0
- package/excel-upload-server/dto/index.d.ts +1 -0
- package/excel-upload-server/dto/index.js +1 -0
- package/excel-upload-server/services/amqp.crm-cohort-excel.service.d.ts +10 -0
- package/excel-upload-server/services/amqp.crm-cohort-excel.service.js +36 -0
- package/excel-upload-server/services/index.d.ts +1 -0
- package/excel-upload-server/services/index.js +1 -0
- package/notification-service/amqp.notification-service.module.js +2 -0
- package/notification-service/dto/amplitude-cohort-export-job/command/create-amplitude-cohort-export-job.dto.d.ts +11 -0
- package/notification-service/dto/amplitude-cohort-export-job/command/create-amplitude-cohort-export-job.dto.js +41 -0
- package/notification-service/dto/amplitude-cohort-export-job/command/index.d.ts +2 -0
- package/notification-service/dto/amplitude-cohort-export-job/command/index.js +18 -0
- package/notification-service/dto/amplitude-cohort-export-job/command/update-amplitude-cohort-export-job.dto.d.ts +15 -0
- package/notification-service/dto/amplitude-cohort-export-job/command/update-amplitude-cohort-export-job.dto.js +63 -0
- package/notification-service/dto/amplitude-cohort-export-job/index.d.ts +2 -0
- package/notification-service/dto/amplitude-cohort-export-job/index.js +18 -0
- package/notification-service/dto/amplitude-cohort-export-job/query/get-amplitude-cohort-export-job.dto.d.ts +3 -0
- package/notification-service/dto/amplitude-cohort-export-job/query/get-amplitude-cohort-export-job.dto.js +20 -0
- package/notification-service/dto/amplitude-cohort-export-job/query/index.d.ts +1 -0
- package/notification-service/dto/amplitude-cohort-export-job/query/index.js +17 -0
- package/notification-service/dto/app-bulk-push-log/query/get-today-excel-app-bulk-push-logs.dto.d.ts +10 -0
- package/notification-service/dto/app-bulk-push-log/query/get-today-excel-app-bulk-push-logs.dto.js +2 -0
- package/notification-service/dto/app-bulk-push-log/query/index.d.ts +1 -0
- package/notification-service/dto/app-bulk-push-log/query/index.js +1 -0
- package/notification-service/dto/index.d.ts +1 -0
- package/notification-service/dto/index.js +1 -0
- package/notification-service/services/amqp.amplitude-cohort-export-job.service.d.ts +12 -0
- package/notification-service/services/amqp.amplitude-cohort-export-job.service.js +39 -0
- package/notification-service/services/amqp.app-bulk-push-log.service.d.ts +2 -1
- package/notification-service/services/amqp.app-bulk-push-log.service.js +3 -0
- package/notification-service/services/index.d.ts +1 -0
- package/notification-service/services/index.js +1 -0
- package/package.json +2 -2
- package/user-service/dto/user/query/get-user-infos-by-ids.dto.d.ts +5 -0
- package/user-service/dto/user/query/get-user-infos-by-ids.dto.js +34 -0
- package/user-service/dto/user/query/index.d.ts +1 -0
- package/user-service/dto/user/query/index.js +1 -0
- package/user-service/services/amqp.user-entity.service.d.ts +3 -1
- package/user-service/services/amqp.user-entity.service.js +3 -0
|
@@ -25,6 +25,7 @@ exports.AmqpExcelUploadServerModule = AmqpExcelUploadServerModule = __decorate([
|
|
|
25
25
|
services_1.AmqpLogElasticsearchService,
|
|
26
26
|
services_1.AmqpNaverSearchAdExcelService,
|
|
27
27
|
services_1.AmqpSplitInvoiceExcelService,
|
|
28
|
+
services_1.AmqpCrmCohortExcelService,
|
|
28
29
|
],
|
|
29
30
|
exports: [
|
|
30
31
|
services_1.AmqpStoreItemExcelService,
|
|
@@ -36,6 +37,7 @@ exports.AmqpExcelUploadServerModule = AmqpExcelUploadServerModule = __decorate([
|
|
|
36
37
|
services_1.AmqpLogElasticsearchService,
|
|
37
38
|
services_1.AmqpNaverSearchAdExcelService,
|
|
38
39
|
services_1.AmqpSplitInvoiceExcelService,
|
|
40
|
+
services_1.AmqpCrmCohortExcelService,
|
|
39
41
|
],
|
|
40
42
|
})
|
|
41
43
|
], AmqpExcelUploadServerModule);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CRM 코호트 엑셀 생성 요청 DTO입니다.
|
|
3
|
+
*/
|
|
4
|
+
export declare class CreateCrmCohortExcelPayload {
|
|
5
|
+
cohortId: string;
|
|
6
|
+
cohortExportJobId: string;
|
|
7
|
+
excludedExcelFileName?: string;
|
|
8
|
+
excludedUserFileKey?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CrmCohortExcelJobResult {
|
|
11
|
+
jobId: string | number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.CreateCrmCohortExcelPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* CRM 코호트 엑셀 생성 요청 DTO입니다.
|
|
16
|
+
*/
|
|
17
|
+
class CreateCrmCohortExcelPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.CreateCrmCohortExcelPayload = CreateCrmCohortExcelPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateCrmCohortExcelPayload.prototype, "cohortId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateCrmCohortExcelPayload.prototype, "cohortExportJobId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateCrmCohortExcelPayload.prototype, "excludedExcelFileName", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, class_validator_1.Matches)(/^crm\/cohort-exclusions\/.+\.csv$/),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CreateCrmCohortExcelPayload.prototype, "excludedUserFileKey", void 0);
|
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateLmsCohortExcelPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** LMS 코호트 엑셀 생성 요청 DTO입니다. */
|
|
15
|
+
class CreateLmsCohortExcelPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateLmsCohortExcelPayload = CreateLmsCohortExcelPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateLmsCohortExcelPayload.prototype, "cohortId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateLmsCohortExcelPayload.prototype, "cohortExportJobId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.Matches)(/^crm\/cohort-exclusions\/.+\.csv$/),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateLmsCohortExcelPayload.prototype, "excludedUserFileKey", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./create-crm-cohort-excel.dto"), exports);
|
|
18
|
+
__exportStar(require("./create-lms-cohort-excel.dto"), exports);
|
|
@@ -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);
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./brand-excel"), exports);
|
|
|
18
18
|
__exportStar(require("./purchased-info-excel"), exports);
|
|
19
19
|
__exportStar(require("./store-item-excel"), exports);
|
|
20
20
|
__exportStar(require("./split-invoice-excel"), exports);
|
|
21
|
+
__exportStar(require("./crm-cohort-excel"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { CreateCrmCohortExcelPayload, CreateLmsCohortExcelPayload, CrmCohortExcelJobResult } from '../dto';
|
|
4
|
+
export declare class AmqpCrmCohortExcelService {
|
|
5
|
+
private readonly client;
|
|
6
|
+
private readonly amqpManager;
|
|
7
|
+
constructor(client: ClientProxy);
|
|
8
|
+
createCrmCohortExcel(payload: CreateCrmCohortExcelPayload, param: AbstractParam): Promise<CrmCohortExcelJobResult>;
|
|
9
|
+
createLmsCohortExcel(payload: CreateLmsCohortExcelPayload, param: AbstractParam): Promise<CrmCohortExcelJobResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.AmqpCrmCohortExcelService = 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 AmqpCrmCohortExcelService = class AmqpCrmCohortExcelService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async createCrmCohortExcel(payload, param) {
|
|
25
|
+
return this.amqpManager.call('CRM 코호트 엑셀 생성', 'crm-cohort-excel.create', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
async createLmsCohortExcel(payload, param) {
|
|
28
|
+
return this.amqpManager.call('LMS 코호트 엑셀 생성', 'lms-cohort-excel.create', payload, param, { isErrorThrowing: true });
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.AmqpCrmCohortExcelService = AmqpCrmCohortExcelService;
|
|
32
|
+
exports.AmqpCrmCohortExcelService = AmqpCrmCohortExcelService = __decorate([
|
|
33
|
+
(0, common_1.Injectable)(),
|
|
34
|
+
__param(0, (0, common_1.Inject)('EXCEL_UPLOAD_SERVER_PROVIDER')),
|
|
35
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
36
|
+
], AmqpCrmCohortExcelService);
|
|
@@ -22,3 +22,4 @@ __exportStar(require("./amqp.app-bulk-push-excel.service"), exports);
|
|
|
22
22
|
__exportStar(require("./amqp.log-elasticsearch.service"), exports);
|
|
23
23
|
__exportStar(require("./naver-search-ad.modules"), exports);
|
|
24
24
|
__exportStar(require("./amqp.split-invoice-excel.service"), exports);
|
|
25
|
+
__exportStar(require("./amqp.crm-cohort-excel.service"), exports);
|
|
@@ -26,6 +26,7 @@ exports.AmqpNotificationServiceModule = AmqpNotificationServiceModule = __decora
|
|
|
26
26
|
services_1.AmqpAppBulkPushService,
|
|
27
27
|
services_1.AmqpSendNotificationService,
|
|
28
28
|
services_1.AmqpNotificationBulkSendService,
|
|
29
|
+
services_1.AmqpAmplitudeCohortExportJobService,
|
|
29
30
|
],
|
|
30
31
|
exports: [
|
|
31
32
|
amqp_notification_service_provider_1.NotifiactionServiceProvider,
|
|
@@ -37,6 +38,7 @@ exports.AmqpNotificationServiceModule = AmqpNotificationServiceModule = __decora
|
|
|
37
38
|
services_1.AmqpAppBulkPushService,
|
|
38
39
|
services_1.AmqpSendNotificationService,
|
|
39
40
|
services_1.AmqpNotificationBulkSendService,
|
|
41
|
+
services_1.AmqpAmplitudeCohortExportJobService,
|
|
40
42
|
],
|
|
41
43
|
})
|
|
42
44
|
], AmqpNotificationServiceModule);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AmplitudeCohortExportTypeEnum } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
export declare class CreateAmplitudeCohortExportJobPayload {
|
|
3
|
+
cohortId: string;
|
|
4
|
+
exportType: AmplitudeCohortExportTypeEnum;
|
|
5
|
+
excludedExcelFileName?: string;
|
|
6
|
+
excludedUserFileKey?: string;
|
|
7
|
+
excludedUserIdCount: number;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateAmplitudeCohortExportJobResult {
|
|
10
|
+
jobId: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.CreateAmplitudeCohortExportJobPayload = void 0;
|
|
13
|
+
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateAmplitudeCohortExportJobPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateAmplitudeCohortExportJobPayload = CreateAmplitudeCohortExportJobPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateAmplitudeCohortExportJobPayload.prototype, "cohortId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.AmplitudeCohortExportTypeEnum),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateAmplitudeCohortExportJobPayload.prototype, "exportType", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateAmplitudeCohortExportJobPayload.prototype, "excludedExcelFileName", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateAmplitudeCohortExportJobPayload.prototype, "excludedUserFileKey", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsNumber)(),
|
|
39
|
+
(0, class_validator_1.Min)(0),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], CreateAmplitudeCohortExportJobPayload.prototype, "excludedUserIdCount", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./create-amplitude-cohort-export-job.dto"), exports);
|
|
18
|
+
__exportStar(require("./update-amplitude-cohort-export-job.dto"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AmplitudeCohortExportStatusEnum } from '@yolo-croket-dev/entity-v2';
|
|
2
|
+
export declare class UpdateAmplitudeCohortExportJobPayload {
|
|
3
|
+
jobId: string;
|
|
4
|
+
status: AmplitudeCohortExportStatusEnum;
|
|
5
|
+
amplitudeRequestId?: string;
|
|
6
|
+
pollCount?: number;
|
|
7
|
+
exportedUserCount?: number;
|
|
8
|
+
excludedUserCount?: number;
|
|
9
|
+
resultFile?: {
|
|
10
|
+
key: string;
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
errorCode?: string;
|
|
14
|
+
errorMessage?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.UpdateAmplitudeCohortExportJobPayload = void 0;
|
|
13
|
+
const entity_v2_1 = require("@yolo-croket-dev/entity-v2");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class UpdateAmplitudeCohortExportJobPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateAmplitudeCohortExportJobPayload = UpdateAmplitudeCohortExportJobPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], UpdateAmplitudeCohortExportJobPayload.prototype, "jobId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(entity_v2_1.AmplitudeCohortExportStatusEnum),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], UpdateAmplitudeCohortExportJobPayload.prototype, "status", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], UpdateAmplitudeCohortExportJobPayload.prototype, "amplitudeRequestId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsInt)(),
|
|
34
|
+
(0, class_validator_1.Min)(0),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], UpdateAmplitudeCohortExportJobPayload.prototype, "pollCount", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsInt)(),
|
|
40
|
+
(0, class_validator_1.Min)(0),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], UpdateAmplitudeCohortExportJobPayload.prototype, "exportedUserCount", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsInt)(),
|
|
46
|
+
(0, class_validator_1.Min)(0),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], UpdateAmplitudeCohortExportJobPayload.prototype, "excludedUserCount", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsObject)(),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], UpdateAmplitudeCohortExportJobPayload.prototype, "resultFile", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], UpdateAmplitudeCohortExportJobPayload.prototype, "errorCode", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], UpdateAmplitudeCohortExportJobPayload.prototype, "errorMessage", void 0);
|
|
@@ -0,0 +1,18 @@
|
|
|
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);
|
|
18
|
+
__exportStar(require("./query"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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.GetAmplitudeCohortExportJobPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetAmplitudeCohortExportJobPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetAmplitudeCohortExportJobPayload = GetAmplitudeCohortExportJobPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetAmplitudeCohortExportJobPayload.prototype, "jobId", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-amplitude-cohort-export-job.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-amplitude-cohort-export-job.dto"), exports);
|
|
@@ -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("./is-exists-app-bulk-push-log-by-redis-db-key.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-today-excel-app-bulk-push-logs.dto"), exports);
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./mail"), exports);
|
|
|
18
18
|
__exportStar(require("./app-bulk-push-log"), exports);
|
|
19
19
|
__exportStar(require("./notification"), exports);
|
|
20
20
|
__exportStar(require("./notification-bulk-send"), exports);
|
|
21
|
+
__exportStar(require("./amplitude-cohort-export-job"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { AmplitudeCohortExportJobEntity } from '@yolo-croket-dev/entity-v2';
|
|
4
|
+
import { CreateAmplitudeCohortExportJobPayload, CreateAmplitudeCohortExportJobResult, GetAmplitudeCohortExportJobPayload, UpdateAmplitudeCohortExportJobPayload } from '../dto';
|
|
5
|
+
export declare class AmqpAmplitudeCohortExportJobService {
|
|
6
|
+
private readonly client;
|
|
7
|
+
private readonly amqpManager;
|
|
8
|
+
constructor(client: ClientProxy);
|
|
9
|
+
create(payload: CreateAmplitudeCohortExportJobPayload, param: AbstractParam): Promise<CreateAmplitudeCohortExportJobResult>;
|
|
10
|
+
update(payload: UpdateAmplitudeCohortExportJobPayload, param: AbstractParam): Promise<void>;
|
|
11
|
+
get(payload: GetAmplitudeCohortExportJobPayload, param: AbstractParam): Promise<AmplitudeCohortExportJobEntity>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.AmqpAmplitudeCohortExportJobService = 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 AmqpAmplitudeCohortExportJobService = class AmqpAmplitudeCohortExportJobService {
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
|
+
}
|
|
24
|
+
async create(payload, param) {
|
|
25
|
+
return this.amqpManager.call('앰플리튜드 코흐트 다운로드 job 생성', 'amplitude-cohort-export-job.create', payload, param, { isErrorThrowing: true });
|
|
26
|
+
}
|
|
27
|
+
async update(payload, param) {
|
|
28
|
+
return this.amqpManager.call('앰플리튜드 코흐트 다운로드 job 업데이트', 'amplitude-cohort-export-job.update', payload, param, { isErrorThrowing: true });
|
|
29
|
+
}
|
|
30
|
+
async get(payload, param) {
|
|
31
|
+
return this.amqpManager.call('앰플리튜드 코흐트 다운로드 job 조회', 'amplitude-cohort-export-job.get', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.AmqpAmplitudeCohortExportJobService = AmqpAmplitudeCohortExportJobService;
|
|
35
|
+
exports.AmqpAmplitudeCohortExportJobService = AmqpAmplitudeCohortExportJobService = __decorate([
|
|
36
|
+
(0, common_1.Injectable)(),
|
|
37
|
+
__param(0, (0, common_1.Inject)('NOTIFICATION_SERVICE_PROVIDER')),
|
|
38
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
39
|
+
], AmqpAmplitudeCohortExportJobService);
|
|
@@ -2,7 +2,7 @@ import { ClientProxy } from '@nestjs/microservices';
|
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { GetAppBulkPushLogByRedisDBKeyPayload, GetAppBulkPushLogByRedisDBKeyResult } from '@yolo-croket-dev/dto-v2/notification-service/app-bulk-push-log';
|
|
4
4
|
/** @dto */
|
|
5
|
-
import { IsExistsAppBulkPushLogByRedisDBKeyPayload, IsExistsAppBulkPushLogByRedisDBKeyResult, EditReservationAppBulkPushLogPayload, RemoveReservationAppBulkPushLogPayload } from '../dto/app-bulk-push-log';
|
|
5
|
+
import { IsExistsAppBulkPushLogByRedisDBKeyPayload, IsExistsAppBulkPushLogByRedisDBKeyResult, EditReservationAppBulkPushLogPayload, RemoveReservationAppBulkPushLogPayload, GetTodayExcelAppBulkPushLogsResult } from '../dto/app-bulk-push-log';
|
|
6
6
|
export declare class AmqpAppBulkPushLogService {
|
|
7
7
|
private readonly client;
|
|
8
8
|
private readonly amqpManager;
|
|
@@ -12,4 +12,5 @@ export declare class AmqpAppBulkPushLogService {
|
|
|
12
12
|
isExistsAppBulkPushLogByRedisDBKey(payload: IsExistsAppBulkPushLogByRedisDBKeyPayload, param: AbstractParam): Promise<IsExistsAppBulkPushLogByRedisDBKeyResult>;
|
|
13
13
|
editReservationAppBulkPushLog(payload: EditReservationAppBulkPushLogPayload, param: AbstractParam): Promise<void>;
|
|
14
14
|
removeReservationAppBulkPushLog(payload: RemoveReservationAppBulkPushLogPayload, param: AbstractParam): Promise<void>;
|
|
15
|
+
getTodayExcelAppBulkPushLogs(param: AbstractParam): Promise<GetTodayExcelAppBulkPushLogsResult[]>;
|
|
15
16
|
}
|
|
@@ -34,6 +34,9 @@ let AmqpAppBulkPushLogService = class AmqpAppBulkPushLogService {
|
|
|
34
34
|
async removeReservationAppBulkPushLog(payload, param) {
|
|
35
35
|
return this.amqpManager.call('예약 대량 푸시 알림 삭제', 'app-bulk-push-log.remove.reservation', payload, param, { isErrorThrowing: true });
|
|
36
36
|
}
|
|
37
|
+
async getTodayExcelAppBulkPushLogs(param) {
|
|
38
|
+
return this.amqpManager.call('대량 앱 푸시 알림 조회 - 오늘 등록된 건', 'app-bulk-push-log.get.today-excel', {}, param, { isErrorThrowing: true });
|
|
39
|
+
}
|
|
37
40
|
};
|
|
38
41
|
exports.AmqpAppBulkPushLogService = AmqpAppBulkPushLogService;
|
|
39
42
|
exports.AmqpAppBulkPushLogService = AmqpAppBulkPushLogService = __decorate([
|
|
@@ -21,3 +21,4 @@ __exportStar(require("./amqp.app-bulk-push-log.service"), exports);
|
|
|
21
21
|
__exportStar(require("./amqp.app-bulk-push.service"), exports);
|
|
22
22
|
__exportStar(require("./amqp.send-notification.service"), exports);
|
|
23
23
|
__exportStar(require("./amqp.notification-bulk-send.service"), exports);
|
|
24
|
+
__exportStar(require("./amqp.amplitude-cohort-export-job.service"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.184-hj-2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@yolo-croket-dev/domain": "0.2.38",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.2.15",
|
|
24
24
|
"@yolo-croket-dev/entity": "0.2.90",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "0.2.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "0.2.169-hj-2",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -0,0 +1,34 @@
|
|
|
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.GetUserInfosByIdsPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetUserInfosByIdsPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetUserInfosByIdsPayload = GetUserInfosByIdsPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.ArrayMaxSize)(10000),
|
|
20
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
21
|
+
__metadata("design:type", Array)
|
|
22
|
+
], GetUserInfosByIdsPayload.prototype, "userIds", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsArray)(),
|
|
26
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
27
|
+
__metadata("design:type", Array)
|
|
28
|
+
], GetUserInfosByIdsPayload.prototype, "includeFields", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsArray)(),
|
|
32
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], GetUserInfosByIdsPayload.prototype, "excludeFields", void 0);
|
|
@@ -8,3 +8,4 @@ export * from './get-duplicate-users-by-phone-number.dto';
|
|
|
8
8
|
export * from './get-user-ids-for-time-deal-push.dto';
|
|
9
9
|
export * from './get-marketing-receive-by-phone-numbers.dto';
|
|
10
10
|
export * from './is-unlimited-benefit-user-id.dto';
|
|
11
|
+
export * from './get-user-infos-by-ids.dto';
|
|
@@ -24,3 +24,4 @@ __exportStar(require("./get-duplicate-users-by-phone-number.dto"), exports);
|
|
|
24
24
|
__exportStar(require("./get-user-ids-for-time-deal-push.dto"), exports);
|
|
25
25
|
__exportStar(require("./get-marketing-receive-by-phone-numbers.dto"), exports);
|
|
26
26
|
__exportStar(require("./is-unlimited-benefit-user-id.dto"), exports);
|
|
27
|
+
__exportStar(require("./get-user-infos-by-ids.dto"), exports);
|
|
@@ -2,8 +2,9 @@ import { ClientProxy } from '@nestjs/microservices';
|
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
/** @dto -v2 */
|
|
4
4
|
import { DecodePhoneNumbersPayload, PhoneDecodedData } from '@yolo-croket-dev/dto-v2/user-service';
|
|
5
|
+
import { UserEntity } from '@yolo-croket-dev/entity-v2';
|
|
5
6
|
import { SaveShippingAddressPayload } from '../dto/user/command/save-shipping-address.dto';
|
|
6
|
-
import { GetDuplicateUsersByPhoneNumberPayload, GetDuplicateUsersByPhoneNumberResult, GetUserIdsByUsernamePayload, GetUserIdsByUsernameResult, GetUserInfosForPartialRefundPayload, GetUserInfosForPartialRefundResult, IssueSignupRewardPayload, IssueSignupRewardResult, PatchGenderAndBirthdayPayload, SaveSystemAppPushAcceptPayload, IssueInflowSignupRewardResult, VerificationPhoneForSnsUserPayload, SignInGuestUserPayload, SignInGuestUserResult, UpdateGuestUsernamePayload, AppSwitchingRewardPayload, AppSwitchingRewardResult, GetUserIdsForTimeDealPushPayload, GetUserIdsForTimeDealPushResult, GetMarketingReceiveByPhoneNumbersResult, GetMarketingReceiveByPhoneNumbersPayload, IsUnlimitedBenefitUserIdPayload } from '../dto';
|
|
7
|
+
import { GetDuplicateUsersByPhoneNumberPayload, GetDuplicateUsersByPhoneNumberResult, GetUserIdsByUsernamePayload, GetUserIdsByUsernameResult, GetUserInfosForPartialRefundPayload, GetUserInfosForPartialRefundResult, IssueSignupRewardPayload, IssueSignupRewardResult, PatchGenderAndBirthdayPayload, SaveSystemAppPushAcceptPayload, IssueInflowSignupRewardResult, VerificationPhoneForSnsUserPayload, SignInGuestUserPayload, SignInGuestUserResult, UpdateGuestUsernamePayload, AppSwitchingRewardPayload, AppSwitchingRewardResult, GetUserIdsForTimeDealPushPayload, GetUserIdsForTimeDealPushResult, GetMarketingReceiveByPhoneNumbersResult, GetMarketingReceiveByPhoneNumbersPayload, IsUnlimitedBenefitUserIdPayload, GetUserInfosByIdsPayload } from '../dto';
|
|
7
8
|
/** 기존 userService 와 이름이 겹쳐 userEntityService로 임시 사용 */
|
|
8
9
|
export declare class AmqpUserEntityService {
|
|
9
10
|
private readonly client;
|
|
@@ -25,4 +26,5 @@ export declare class AmqpUserEntityService {
|
|
|
25
26
|
getUserIdsForTimeDealPush(payload: GetUserIdsForTimeDealPushPayload, param: AbstractParam): Promise<GetUserIdsForTimeDealPushResult>;
|
|
26
27
|
getMarketingReceiveByPhoneNumbers(payload: GetMarketingReceiveByPhoneNumbersPayload, param: AbstractParam): Promise<GetMarketingReceiveByPhoneNumbersResult[]>;
|
|
27
28
|
isUnlimitedBenefitUserId(payload: IsUnlimitedBenefitUserIdPayload, param: AbstractParam): Promise<boolean>;
|
|
29
|
+
getUserInfosByIds(payload: GetUserInfosByIdsPayload, param: AbstractParam): Promise<UserEntity[]>;
|
|
28
30
|
}
|
|
@@ -70,6 +70,9 @@ let AmqpUserEntityService = class AmqpUserEntityService {
|
|
|
70
70
|
async isUnlimitedBenefitUserId(payload, param) {
|
|
71
71
|
return this.amqpManager.call('유저 - 크레딧, 쿠폰 제한 없는 유저 여부 조회', 'user.get.is-unlimited-benefit-user-id', payload, param, { isErrorThrowing: true });
|
|
72
72
|
}
|
|
73
|
+
async getUserInfosByIds(payload, param) {
|
|
74
|
+
return this.amqpManager.call('유저 - 리스트 필요한 데이터 조회', 'user.get.infos-by-ids', payload, param, { isErrorThrowing: true });
|
|
75
|
+
}
|
|
73
76
|
};
|
|
74
77
|
exports.AmqpUserEntityService = AmqpUserEntityService;
|
|
75
78
|
exports.AmqpUserEntityService = AmqpUserEntityService = __decorate([
|