UNPKG

denwa-nest-shared

Version:

Shared NestJS module for DTO validation, RBAC, TypeORM query building, and OpenAPI client

334 lines • 5.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CITY_MASK = exports.ROLES_KEY = exports.EXTENSION_IMAGE_TYPE = exports.FILE_WEIGHT = exports.PASSWORD_LENGTH = exports.TIME = void 0; exports.TIME = { seconds: { minutes10: 600, hours1: 3600, }, }; exports.PASSWORD_LENGTH = { min: 4, max: 100, }; exports.FILE_WEIGHT = { mb1: { bytes: 1_048_576, }, mb2: { bytes: 2_097_152, }, mb3: { bytes: 3_145_728, }, mb4: { bytes: 4_194_304, }, mb5: { bytes: 5_242_880, }, mb6: { bytes: 6_291_456, }, mb7: { bytes: 7_340_032, }, mb8: { bytes: 8_388_608, }, mb9: { bytes: 9_437_184, }, mb10: { bytes: 10_485_760, }, mb11: { bytes: 11_534_336, }, mb12: { bytes: 12_582_912, }, mb13: { bytes: 13_631_488, }, mb14: { bytes: 14_680_064, }, mb15: { bytes: 15_728_640, }, mb16: { bytes: 16_777_216, }, mb17: { bytes: 17_825_792, }, mb18: { bytes: 18_874_368, }, mb19: { bytes: 19_922_944, }, mb20: { bytes: 20_971_520, }, mb21: { bytes: 22_020_096, }, mb22: { bytes: 23_068_672, }, mb23: { bytes: 24_117_248, }, mb24: { bytes: 25_165_824, }, mb25: { bytes: 26_214_400, }, mb26: { bytes: 27_262_976, }, mb27: { bytes: 28_311_552, }, mb28: { bytes: 29_360_128, }, mb29: { bytes: 30_408_704, }, mb30: { bytes: 31_457_280, }, mb31: { bytes: 32_505_856, }, mb32: { bytes: 33_554_432, }, mb33: { bytes: 34_603_008, }, mb34: { bytes: 35_651_584, }, mb35: { bytes: 36_700_160, }, mb36: { bytes: 37_748_736, }, mb37: { bytes: 38_797_312, }, mb38: { bytes: 39_845_888, }, mb39: { bytes: 40_894_464, }, mb40: { bytes: 41_943_040, }, mb41: { bytes: 42_991_616, }, mb42: { bytes: 44_040_192, }, mb43: { bytes: 45_088_768, }, mb44: { bytes: 46_137_344, }, mb45: { bytes: 47_185_920, }, mb46: { bytes: 48_234_496, }, mb47: { bytes: 49_283_072, }, mb48: { bytes: 50_331_648, }, mb49: { bytes: 51_380_224, }, mb50: { bytes: 52_428_800, }, mb51: { bytes: 53_477_376, }, mb52: { bytes: 54_525_952, }, mb53: { bytes: 55_574_528, }, mb54: { bytes: 56_623_104, }, mb55: { bytes: 57_671_680, }, mb56: { bytes: 58_720_256, }, mb57: { bytes: 59_768_832, }, mb58: { bytes: 60_817_408, }, mb59: { bytes: 61_865_984, }, mb60: { bytes: 62_914_560, }, mb61: { bytes: 63_963_136, }, mb62: { bytes: 65_011_712, }, mb63: { bytes: 66_060_288, }, mb64: { bytes: 67_108_864, }, mb65: { bytes: 68_157_440, }, mb66: { bytes: 69_206_016, }, mb67: { bytes: 70_254_592, }, mb68: { bytes: 71_303_168, }, mb69: { bytes: 72_351_744, }, mb70: { bytes: 73_400_320, }, mb71: { bytes: 74_448_896, }, mb72: { bytes: 75_497_472, }, mb73: { bytes: 76_546_048, }, mb74: { bytes: 77_594_624, }, mb75: { bytes: 78_643_200, }, mb76: { bytes: 79_691_776, }, mb77: { bytes: 80_740_352, }, mb78: { bytes: 81_788_928, }, mb79: { bytes: 82_837_504, }, mb80: { bytes: 83_886_080, }, mb81: { bytes: 84_934_656, }, mb82: { bytes: 85_983_232, }, mb83: { bytes: 87_031_808, }, mb84: { bytes: 88_080_384, }, mb85: { bytes: 89_128_960, }, mb86: { bytes: 90_177_536, }, mb87: { bytes: 91_226_112, }, mb88: { bytes: 92_274_688, }, mb89: { bytes: 93_323_264, }, mb90: { bytes: 94_371_840, }, mb91: { bytes: 95_420_416, }, mb92: { bytes: 96_468_992, }, mb93: { bytes: 97_517_568, }, mb94: { bytes: 98_566_144, }, mb95: { bytes: 99_614_720, }, mb96: { bytes: 100_663_296, }, mb97: { bytes: 101_711_872, }, mb98: { bytes: 102_760_448, }, mb99: { bytes: 103_809_024, }, mb100: { bytes: 104_857_600, }, }; exports.EXTENSION_IMAGE_TYPE = { avif: 'image/avif', webp: 'image/webp', jpeg: 'image/jpeg', jpg: 'image/jpeg', jpe: 'image/jpeg', jif: 'image/jpeg', jfif: 'image/jpeg', jfi: 'image/jpeg', png: 'image/png', }; exports.ROLES_KEY = ['roles']; exports.CITY_MASK = { CITY: '{{CITY}}', CITY_DECL: '{{CITY_DECL}}', CITY_REGION: '{{CITY_REGION}}', CITY_REGION_DECL: '{{CITY_REGION_DECL}}', }; //# sourceMappingURL=const.js.map