@yolo-croket-dev/amqp-access 0.4.1-sj → 0.4.1-slowquery.0
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/bulk-support.d.ts +3 -0
- package/bulk-support.js +6 -0
- package/image-server/dto/image/command/copy-img.dto.d.ts +9 -0
- package/image-server/dto/image/command/copy-img.dto.js +28 -0
- package/image-server/dto/image/command/index.d.ts +1 -0
- package/image-server/dto/image/command/index.js +1 -0
- package/image-server/dto/image/command/upload-img.dto.d.ts +1 -0
- package/image-server/services/amqp.image.service.d.ts +2 -1
- package/image-server/services/amqp.image.service.js +3 -0
- package/notification-service/dto/notification/command/index.d.ts +1 -0
- package/notification-service/dto/notification/command/index.js +1 -0
- package/notification-service/dto/notification/command/send-template-notification-bulk.dto.d.ts +11 -0
- package/notification-service/dto/notification/command/send-template-notification-bulk.dto.js +44 -0
- package/order-server/dto/purchasedinfos/query/get-purchased-infos-for-unconfirmed-waiting-order-sellers-excel.dto.d.ts +0 -1
- package/package.json +2 -2
- package/user-service/amqp.user-service.service.d.ts +2 -1
- package/user-service/amqp.user-service.service.js +3 -0
- package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +3 -0
- package/user-service/dto/redis-db/command/pull-redis-db.dto.js +7 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +4 -0
- package/user-service/dto/redis-db/command/push-redis-db.dto.js +26 -0
- package/user-service/dto/user/query/get-users.dto.d.ts +33 -0
- package/user-service/dto/user/query/get-users.dto.js +103 -0
- package/user-service/dto/user/query/index.d.ts +1 -0
- package/user-service/dto/user/query/index.js +1 -0
package/bulk-support.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ImageUsageTypeEnum } from '@yolo-croket-dev/entity-v2/image-log/image-log.entity';
|
|
2
|
+
import { UploadImgResult, ImgUploadResult } from './upload-img.dto';
|
|
3
|
+
export declare class CopyImgPayload {
|
|
4
|
+
imgUrl: string;
|
|
5
|
+
imgUsageType: ImageUsageTypeEnum;
|
|
6
|
+
}
|
|
7
|
+
export declare class CopyImgResult implements UploadImgResult {
|
|
8
|
+
imgUploadResults: ImgUploadResult[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.CopyImgResult = exports.CopyImgPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const image_log_entity_1 = require("@yolo-croket-dev/entity-v2/image-log/image-log.entity");
|
|
15
|
+
class CopyImgPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.CopyImgPayload = CopyImgPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CopyImgPayload.prototype, "imgUrl", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsEnum)(image_log_entity_1.ImageUsageTypeEnum),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CopyImgPayload.prototype, "imgUsageType", void 0);
|
|
26
|
+
class CopyImgResult {
|
|
27
|
+
}
|
|
28
|
+
exports.CopyImgResult = CopyImgResult;
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./upload-img.dto"), exports);
|
|
18
18
|
__exportStar(require("./migration-image.dto"), exports);
|
|
19
|
+
__exportStar(require("./copy-img.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { UploadImgPayload, UploadImgResult, GetImgETagPayload, GetImgETagResult, GetImgMetadataPayload, GetImgMetadataResult, MigrationImagePayload, MigrationImageResult, GetImageSizesByCloudflarePayload, GetImageSizesByCloudflareResult } from '../dto/image';
|
|
3
|
+
import { UploadImgPayload, UploadImgResult, GetImgETagPayload, GetImgETagResult, GetImgMetadataPayload, GetImgMetadataResult, MigrationImagePayload, MigrationImageResult, GetImageSizesByCloudflarePayload, GetImageSizesByCloudflareResult, CopyImgPayload, CopyImgResult } from '../dto/image';
|
|
4
4
|
export declare class AmqpImageService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -10,4 +10,5 @@ export declare class AmqpImageService {
|
|
|
10
10
|
getETag(payload: GetImgETagPayload, param: AbstractParam): Promise<GetImgETagResult>;
|
|
11
11
|
migrationImage(payload: MigrationImagePayload, param: AbstractParam): Promise<MigrationImageResult>;
|
|
12
12
|
getImageSizesByCloudflare(payload: GetImageSizesByCloudflarePayload, param: AbstractParam): Promise<GetImageSizesByCloudflareResult>;
|
|
13
|
+
copyImg(payload: CopyImgPayload, param: AbstractParam): Promise<CopyImgResult>;
|
|
13
14
|
}
|
|
@@ -38,6 +38,9 @@ let AmqpImageService = class AmqpImageService {
|
|
|
38
38
|
async getImageSizesByCloudflare(payload, param) {
|
|
39
39
|
return this.amqpManager.call('이미지 크기 가져오기', 'image.get.sizes-by-cloudflare', payload, param, { isErrorThrowing: true });
|
|
40
40
|
}
|
|
41
|
+
async copyImg(payload, param) {
|
|
42
|
+
return this.amqpManager.call('이미지 복사', 'image.copy', payload, param, { isErrorThrowing: true });
|
|
43
|
+
}
|
|
41
44
|
};
|
|
42
45
|
exports.AmqpImageService = AmqpImageService;
|
|
43
46
|
exports.AmqpImageService = AmqpImageService = __decorate([
|
|
@@ -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("./send-template-notification.dto"), exports);
|
|
18
|
+
__exportStar(require("./send-template-notification-bulk.dto"), exports);
|
package/notification-service/dto/notification/command/send-template-notification-bulk.dto.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SendTemplateNotificationPayload } from './send-template-notification.dto';
|
|
2
|
+
export declare class SendTemplateNotificationBulkWithCorrelationIdPayload {
|
|
3
|
+
payload: SendTemplateNotificationPayload;
|
|
4
|
+
/** 상관관계 ID 설정 요청시 UUID로 전달하여 구분 */
|
|
5
|
+
correlationId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class SendTemplateNotificationBulkPayload {
|
|
8
|
+
payloads: SendTemplateNotificationBulkWithCorrelationIdPayload[];
|
|
9
|
+
/** Promise.allSettled로 처리할지 for await으로 처리할지 여부 */
|
|
10
|
+
isPromiseAll?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.SendTemplateNotificationBulkPayload = exports.SendTemplateNotificationBulkWithCorrelationIdPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const send_template_notification_dto_1 = require("./send-template-notification.dto");
|
|
16
|
+
class SendTemplateNotificationBulkWithCorrelationIdPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.SendTemplateNotificationBulkWithCorrelationIdPayload = SendTemplateNotificationBulkWithCorrelationIdPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.ValidateNested)(),
|
|
21
|
+
(0, class_transformer_1.Type)(() => send_template_notification_dto_1.SendTemplateNotificationPayload),
|
|
22
|
+
__metadata("design:type", send_template_notification_dto_1.SendTemplateNotificationPayload)
|
|
23
|
+
], SendTemplateNotificationBulkWithCorrelationIdPayload.prototype, "payload", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)()
|
|
26
|
+
/** 상관관계 ID 설정 요청시 UUID로 전달하여 구분 */
|
|
27
|
+
,
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SendTemplateNotificationBulkWithCorrelationIdPayload.prototype, "correlationId", void 0);
|
|
30
|
+
class SendTemplateNotificationBulkPayload {
|
|
31
|
+
}
|
|
32
|
+
exports.SendTemplateNotificationBulkPayload = SendTemplateNotificationBulkPayload;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
35
|
+
(0, class_transformer_1.Type)(() => SendTemplateNotificationBulkWithCorrelationIdPayload),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], SendTemplateNotificationBulkPayload.prototype, "payloads", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsBoolean)()
|
|
41
|
+
/** Promise.allSettled로 처리할지 for await으로 처리할지 여부 */
|
|
42
|
+
,
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], SendTemplateNotificationBulkPayload.prototype, "isPromiseAll", void 0);
|
|
@@ -9,7 +9,6 @@ export declare class UnconfirmedWaitingOrderSellerInfo {
|
|
|
9
9
|
publicId: string;
|
|
10
10
|
paymentDate: string;
|
|
11
11
|
paidPrice: number;
|
|
12
|
-
process: string;
|
|
13
12
|
}
|
|
14
13
|
export declare class GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult {
|
|
15
14
|
excelDatas: UnconfirmedWaitingOrderSellerInfo[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.4.1-
|
|
3
|
+
"version": "0.4.1-slowquery.0",
|
|
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.1.0",
|
|
23
23
|
"@yolo-croket-dev/dto-v2": "0.1.0",
|
|
24
24
|
"@yolo-croket-dev/entity": "^0.1.155",
|
|
25
|
-
"@yolo-croket-dev/entity-v2": "0.
|
|
25
|
+
"@yolo-croket-dev/entity-v2": "^0.1.4",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.13.2",
|
|
28
28
|
"dotenv": "^16.3.1"
|
|
@@ -6,7 +6,7 @@ import { GetUsernameByIdPayload, GetUsersForAppPushPayload, GetUsersForAppPushRe
|
|
|
6
6
|
import { Membership } from '@yolo-croket-dev/entity';
|
|
7
7
|
import { UserPhoneDecodeByPhoneNumberPayloadDto, UserPhoneDecodeByPhoneNumberResultDto } from '@yolo-croket-dev/dto/user-service';
|
|
8
8
|
import { NotificationUser, UpdateUserByIdPayload } from './amqp.user-service.types';
|
|
9
|
-
import { GetUserInfoByIdPayload, GetUserInfoByIdResult, GetUsersForAdminPayload, GetUsersForAdminResult } from './dto/user';
|
|
9
|
+
import { GetUserInfoByIdPayload, GetUserInfoByIdResult, GetUsersForAdminPayload, GetUsersForAdminResult, GetUsersPayload, GetUsersResult } from './dto/user';
|
|
10
10
|
export declare class AmqpUserService {
|
|
11
11
|
private readonly client;
|
|
12
12
|
private readonly amqpManager;
|
|
@@ -27,4 +27,5 @@ export declare class AmqpUserService {
|
|
|
27
27
|
/** 유저 아이디를 통한 휴대폰 번호 가져오기 (use. notification) */
|
|
28
28
|
userPhoneDecodeById(userId: string, param: AbstractParam): Promise<string | null>;
|
|
29
29
|
getUserInfoById(payload: GetUserInfoByIdPayload, param: AbstractParam): Promise<GetUserInfoByIdResult>;
|
|
30
|
+
getUsers(payload: GetUsersPayload, param: AbstractParam): Promise<GetUsersResult>;
|
|
30
31
|
}
|
|
@@ -69,6 +69,9 @@ let AmqpUserService = class AmqpUserService {
|
|
|
69
69
|
async getUserInfoById(payload, param) {
|
|
70
70
|
return this.amqpManager.call('유저 아이디로 해당 유저 정보 검색', 'user.get.info-by-id', payload, param, { isErrorThrowing: true });
|
|
71
71
|
}
|
|
72
|
+
async getUsers(payload, param) {
|
|
73
|
+
return this.amqpManager.call('유저 리스트 조회', 'GET_USERS', payload, param, { isErrorThrowing: true });
|
|
74
|
+
}
|
|
72
75
|
};
|
|
73
76
|
exports.AmqpUserService = AmqpUserService;
|
|
74
77
|
exports.AmqpUserService = AmqpUserService = __decorate([
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PullRedisDBPayload = void 0;
|
|
4
|
+
const push_redis_db_dto_1 = require("./push-redis-db.dto");
|
|
5
|
+
class PullRedisDBPayload extends push_redis_db_dto_1.PushRedisDBPayload {
|
|
6
|
+
}
|
|
7
|
+
exports.PullRedisDBPayload = PullRedisDBPayload;
|
|
@@ -0,0 +1,26 @@
|
|
|
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.PushRedisDBPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class PushRedisDBPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.PushRedisDBPayload = PushRedisDBPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MinLength)(1),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], PushRedisDBPayload.prototype, "redisDBKey", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MinLength)(1),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PushRedisDBPayload.prototype, "value", void 0);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UserEntity } from '@yolo-croket-dev/entity-v2/user/user.entity';
|
|
2
|
+
export declare enum AUTH_PROVIDER {
|
|
3
|
+
KAKAO = "kakao",
|
|
4
|
+
FACEBOOK = "facebook"
|
|
5
|
+
}
|
|
6
|
+
export declare enum PAGINATION_SORT {
|
|
7
|
+
DESC = "DESC",
|
|
8
|
+
ASC = "ASC"
|
|
9
|
+
}
|
|
10
|
+
export declare enum PAGINATION_ORDER {
|
|
11
|
+
_id = "_id"
|
|
12
|
+
}
|
|
13
|
+
export declare class FilterQuery {
|
|
14
|
+
field: string;
|
|
15
|
+
operator?: string;
|
|
16
|
+
value?: string | number;
|
|
17
|
+
startedAt?: string;
|
|
18
|
+
endedAt?: string;
|
|
19
|
+
isObjectId?: boolean;
|
|
20
|
+
isDate?: boolean;
|
|
21
|
+
isOr?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare class GetUsersPayload {
|
|
24
|
+
limit: number;
|
|
25
|
+
lastId: string;
|
|
26
|
+
order: PAGINATION_ORDER;
|
|
27
|
+
sort: PAGINATION_SORT;
|
|
28
|
+
authProvider?: AUTH_PROVIDER;
|
|
29
|
+
query?: FilterQuery[];
|
|
30
|
+
projection?: string[];
|
|
31
|
+
}
|
|
32
|
+
export interface GetUsersResult extends Partial<UserEntity> {
|
|
33
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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.GetUsersPayload = exports.FilterQuery = exports.PAGINATION_ORDER = exports.PAGINATION_SORT = exports.AUTH_PROVIDER = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
var AUTH_PROVIDER;
|
|
16
|
+
(function (AUTH_PROVIDER) {
|
|
17
|
+
AUTH_PROVIDER["KAKAO"] = "kakao";
|
|
18
|
+
AUTH_PROVIDER["FACEBOOK"] = "facebook";
|
|
19
|
+
})(AUTH_PROVIDER || (exports.AUTH_PROVIDER = AUTH_PROVIDER = {}));
|
|
20
|
+
var PAGINATION_SORT;
|
|
21
|
+
(function (PAGINATION_SORT) {
|
|
22
|
+
PAGINATION_SORT["DESC"] = "DESC";
|
|
23
|
+
PAGINATION_SORT["ASC"] = "ASC";
|
|
24
|
+
})(PAGINATION_SORT || (exports.PAGINATION_SORT = PAGINATION_SORT = {}));
|
|
25
|
+
var PAGINATION_ORDER;
|
|
26
|
+
(function (PAGINATION_ORDER) {
|
|
27
|
+
PAGINATION_ORDER["_id"] = "_id";
|
|
28
|
+
})(PAGINATION_ORDER || (exports.PAGINATION_ORDER = PAGINATION_ORDER = {}));
|
|
29
|
+
class FilterQuery {
|
|
30
|
+
}
|
|
31
|
+
exports.FilterQuery = FilterQuery;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], FilterQuery.prototype, "field", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], FilterQuery.prototype, "operator", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], FilterQuery.prototype, "value", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], FilterQuery.prototype, "startedAt", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], FilterQuery.prototype, "endedAt", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsBoolean)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], FilterQuery.prototype, "isObjectId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsBoolean)(),
|
|
61
|
+
__metadata("design:type", Boolean)
|
|
62
|
+
], FilterQuery.prototype, "isDate", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsBoolean)(),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], FilterQuery.prototype, "isOr", void 0);
|
|
68
|
+
class GetUsersPayload {
|
|
69
|
+
}
|
|
70
|
+
exports.GetUsersPayload = GetUsersPayload;
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsNumber)(),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], GetUsersPayload.prototype, "limit", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsMongoId)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], GetUsersPayload.prototype, "lastId", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsEnum)(PAGINATION_ORDER),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], GetUsersPayload.prototype, "order", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsEnum)(PAGINATION_SORT),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], GetUsersPayload.prototype, "sort", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.IsEnum)(AUTH_PROVIDER),
|
|
90
|
+
(0, class_validator_1.IsString)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], GetUsersPayload.prototype, "authProvider", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_validator_1.IsOptional)(),
|
|
95
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
96
|
+
(0, class_transformer_1.Type)(() => FilterQuery),
|
|
97
|
+
__metadata("design:type", Array)
|
|
98
|
+
], GetUsersPayload.prototype, "query", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
102
|
+
__metadata("design:type", Array)
|
|
103
|
+
], GetUsersPayload.prototype, "projection", void 0);
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./get-user-info-by-id.dto"), exports);
|
|
|
18
18
|
__exportStar(require("./get-users-for-admin.dto"), exports);
|
|
19
19
|
__exportStar(require("./get-user-ids-by-username.dto"), exports);
|
|
20
20
|
__exportStar(require("./get-user-infos-for-partial-refund.dto"), exports);
|
|
21
|
+
__exportStar(require("./get-users.dto"), exports);
|