@qrvey/cd-package-registry 1.0.0 → 1.0.2-935
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/dist/cjs/index.js +19 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +20 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsString, MaxLength, IsOptional, IsObject, ValidatorConstraint, IsArray, IsInt, IsNumber, IsBoolean, ValidateIf, Validate, IsDateString, IsEmail, Min, IsEnum, IsDate, IsIn, ValidateNested, Matches, Allow, MinLength, IsDefined, IsISO8601, IsNotEmpty, getMetadataStorage, validateSync } from 'class-validator';
|
|
1
|
+
import { IsString, MaxLength, IsOptional, IsObject, ValidatorConstraint, IsArray, IsInt, IsNumber, IsBoolean, ValidateIf, Validate, IsDateString, IsEmail, Min, IsEnum, IsDate, IsIn, ValidateNested, Matches, Allow, MinLength, IsDefined, IsISO8601, IsNotEmpty, registerDecorator, getMetadataStorage, validateSync } from 'class-validator';
|
|
2
2
|
import { Type, Transform, plainToInstance } from 'class-transformer';
|
|
3
3
|
import 'reflect-metadata';
|
|
4
4
|
import { LoggerService } from '@qrvey/telemetry';
|
|
@@ -179,6 +179,24 @@ _ts_decorate([
|
|
|
179
179
|
MaxLength(255),
|
|
180
180
|
_ts_metadata("design:type", String)
|
|
181
181
|
], ApplicationAssetDto.prototype, "userEmail", void 0);
|
|
182
|
+
function IsAny(validationOptions) {
|
|
183
|
+
return function(object, propertyName) {
|
|
184
|
+
registerDecorator({
|
|
185
|
+
name: "isAny",
|
|
186
|
+
target: object.constructor,
|
|
187
|
+
propertyName,
|
|
188
|
+
options: validationOptions,
|
|
189
|
+
validator: {
|
|
190
|
+
validate(value) {
|
|
191
|
+
return true;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
__name(IsAny, "IsAny");
|
|
198
|
+
|
|
199
|
+
// src/dtos/connection-asset.dto.ts
|
|
182
200
|
function _ts_decorate2(decorators, target, key, desc) {
|
|
183
201
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
184
202
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -417,7 +435,7 @@ _ts_decorate2([
|
|
|
417
435
|
], ConnectionAssetDto.prototype, "useSSL", void 0);
|
|
418
436
|
_ts_decorate2([
|
|
419
437
|
IsOptional(),
|
|
420
|
-
|
|
438
|
+
IsAny(),
|
|
421
439
|
_ts_metadata2("design:type", Object)
|
|
422
440
|
], ConnectionAssetDto.prototype, "connectionConfig", void 0);
|
|
423
441
|
_ts_decorate2([
|