@yolo-croket-dev/amqp-access 0.0.120 → 0.0.122
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/manage-service/dto/manage-user/query/get-manage-user-infos-by-ids.dto.d.ts +12 -0
- package/manage-service/dto/manage-user/query/get-manage-user-infos-by-ids.dto.js +35 -0
- package/manage-service/dto/manage-user/query/index.d.ts +1 -0
- package/manage-service/dto/manage-user/query/index.js +1 -0
- package/manage-service/services/amqp.manage-user.service.d.ts +2 -1
- package/manage-service/services/amqp.manage-user.service.js +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ManageUserEntity } from '@yolo-croket-dev/entity';
|
|
2
|
+
export declare class GetManageUserInfosByIdsPayload {
|
|
3
|
+
/** 유저 아이디 */
|
|
4
|
+
manageUserIds: string[];
|
|
5
|
+
/** 검색 포함 필드 */
|
|
6
|
+
includeFields?: string[];
|
|
7
|
+
/** 검색 제외 필드 */
|
|
8
|
+
excludeFields?: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare class GetManageUserInfosByIdsResult {
|
|
11
|
+
manageUsers: ManageUserEntity[];
|
|
12
|
+
}
|
|
@@ -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.GetManageUserInfosByIdsResult = exports.GetManageUserInfosByIdsPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetManageUserInfosByIdsPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetManageUserInfosByIdsPayload = GetManageUserInfosByIdsPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], GetManageUserInfosByIdsPayload.prototype, "manageUserIds", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsArray)(),
|
|
23
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", Array)
|
|
26
|
+
], GetManageUserInfosByIdsPayload.prototype, "includeFields", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsArray)(),
|
|
29
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], GetManageUserInfosByIdsPayload.prototype, "excludeFields", void 0);
|
|
33
|
+
class GetManageUserInfosByIdsResult {
|
|
34
|
+
}
|
|
35
|
+
exports.GetManageUserInfosByIdsResult = GetManageUserInfosByIdsResult;
|
|
@@ -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("./get-manage-user-info-by-id.dto"), exports);
|
|
18
|
+
__exportStar(require("./get-manage-user-infos-by-ids.dto"), exports);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetManageUserInfoByIdPayload, GetManageUserInfoByIdResult } from '../dto/manage-user';
|
|
3
|
+
import { GetManageUserInfoByIdPayload, GetManageUserInfoByIdResult, GetManageUserInfosByIdsPayload, GetManageUserInfosByIdsResult } from '../dto/manage-user';
|
|
4
4
|
export declare class AmqpManageUserService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
getManageUserInfoById(payload: GetManageUserInfoByIdPayload, param: AbstractParam): Promise<GetManageUserInfoByIdResult>;
|
|
9
|
+
getManageUserInfosByIds(payload: GetManageUserInfosByIdsPayload, param: AbstractParam): Promise<GetManageUserInfosByIdsResult>;
|
|
9
10
|
}
|
|
@@ -24,6 +24,9 @@ let AmqpManageUserService = class AmqpManageUserService {
|
|
|
24
24
|
async getManageUserInfoById(payload, param) {
|
|
25
25
|
return this.amqpManager.call('유저 정보 조회', 'manage-user.get.manage-user-info-by-id', payload, param, { isErrorThrowing: true });
|
|
26
26
|
}
|
|
27
|
+
async getManageUserInfosByIds(payload, param) {
|
|
28
|
+
return this.amqpManager.call('유저 정보 조회', 'manage-user.get.manage-user-infos-by-ids', payload, param, { isErrorThrowing: true });
|
|
29
|
+
}
|
|
27
30
|
};
|
|
28
31
|
exports.AmqpManageUserService = AmqpManageUserService;
|
|
29
32
|
exports.AmqpManageUserService = AmqpManageUserService = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.122",
|
|
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/core": "^1.4.52",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "^0.0.156",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.1.128",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "^0.0.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.0.49",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|