1 | import { ArgumentMetadata, PipeTransform } from '../interfaces/features/pipe-transform.interface';
|
2 | import { ErrorHttpStatusCode } from '../utils/http-error-by-code.util';
|
3 | export interface ParseUUIDPipeOptions {
|
4 | version?: '3' | '4' | '5';
|
5 | errorHttpStatusCode?: ErrorHttpStatusCode;
|
6 | exceptionFactory?: (errors: string) => any;
|
7 | }
|
8 | export declare class ParseUUIDPipe implements PipeTransform<string> {
|
9 | protected static uuidRegExps: {
|
10 | 3: RegExp;
|
11 | 4: RegExp;
|
12 | 5: RegExp;
|
13 | all: RegExp;
|
14 | };
|
15 | private readonly version;
|
16 | protected exceptionFactory: (errors: string) => any;
|
17 | constructor(options?: ParseUUIDPipeOptions);
|
18 | transform(value: string, metadata: ArgumentMetadata): Promise<string>;
|
19 | protected isUUID(str: unknown, version?: string): any;
|
20 | }
|