@kalutskii/foundation 0.7.13 → 0.7.14
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/index.d.ts +11 -1
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -406,6 +406,16 @@ declare const imageUploadPreset: Readonly<{
|
|
|
406
406
|
maxFilesCount?: number;
|
|
407
407
|
extensionFallback?: boolean;
|
|
408
408
|
}>;
|
|
409
|
+
/**
|
|
410
|
+
* Ready-to-use policy for every image format supporting transparency (alpha channel).
|
|
411
|
+
* Each image may occupy up to 20 MiB while collection capacity remains unrestricted.
|
|
412
|
+
*/
|
|
413
|
+
declare const imageTransparentUploadPreset: Readonly<{
|
|
414
|
+
formats: readonly ["png", "webp", "svg"];
|
|
415
|
+
maxFileSize: number;
|
|
416
|
+
maxFilesCount?: number;
|
|
417
|
+
extensionFallback?: boolean;
|
|
418
|
+
}>;
|
|
409
419
|
/**
|
|
410
420
|
* Ready-to-use policy for every document format supported by the upload catalog.
|
|
411
421
|
* Each document may occupy up to 20 MiB while collection capacity remains unrestricted.
|
|
@@ -896,4 +906,4 @@ declare const asQuery: <T extends z.ZodTypeAny>(schema: T) => z.ZodPreprocess<T>
|
|
|
896
906
|
*/
|
|
897
907
|
declare const isPlainObject: (value: unknown) => value is Record<string, unknown>;
|
|
898
908
|
|
|
899
|
-
export { type APIContractData, type APIContractError, type APIContractResult, type APIError, type APISuccess, type AsQuery, type AtLeastOne, DEFAULT_UPLOAD_MAX_FILE_SIZE, EXCEPTION_STATUS_CODES, type ExceptionStatusCode, type FetchResult, type FileFormat, type FileFormatConfig, type HonoFileRespondOptions, type HonoRespondOptions, type JWTServiceOptions, type JWTSignOptions, type LogLevel, type MeasuredExecution, type Payload, type PayloadSchema, REDACTED_LOG_VALUE, type ReplaceDotsWithUnderscores, SUCCESS_STATUS_CODES, type Simplify, type StringEnumRecord, type SuccessStatusCode, type UploadFilesValidationOptions, type UploadFilesValidationResult, type UploadPreset, type UploadValidationError, type ZodBulkExcludeSelection, type ZodBulkIncludeSelection, type ZodBulkSelection, ZodJWTService, type ZodPaginationOptions, type ZodSearchSchemaOptions, type ZodUploadFileSchemaOptions, asQuery, createStringEnumRecord, createUploadAccept, createZodSearchWhereSchema, defineUploadPreset, documentUploadPreset, failure, fetchAndThrow, fetchSafely, fileFormat, fileFormatsArray, fileFormatsConfig, fileFormatsRecord, fileRespond, formatTime, generateRandomString, getColoredHTTPStatus, getFileExtension, getFormattedDate, getFormattedTime, getUTCOffset, getZonedTime, httpStatusColors, imageUploadPreset, isFileExtensionSupported, isFileFormatSupported, isFileMimeTypeSupported, isPlainObject, log, logLevel, logLevelColors, logLevelsArray, logLevelsRecord, loggingMiddleware, matchesMimeType, measureExecutionTime, normalizeFileExtension, onHandlerError, parseQueryValue, redactSensitiveJSON, redactSensitiveSearchParams, respond, safeExecute, sensitiveLogKeyParts, sqlWhere, success, uploadValidationError, uploadValidationErrorsArray, uploadValidationErrorsRecord, validateUploadFile, validateUploadFiles, zodAtLeastOne, zodBulkSelectionSchema, zodPaginationSchema, zodPaginationShape, zodSearchQuerySchema, zodSearchSchema, zodUploadFileSchema };
|
|
909
|
+
export { type APIContractData, type APIContractError, type APIContractResult, type APIError, type APISuccess, type AsQuery, type AtLeastOne, DEFAULT_UPLOAD_MAX_FILE_SIZE, EXCEPTION_STATUS_CODES, type ExceptionStatusCode, type FetchResult, type FileFormat, type FileFormatConfig, type HonoFileRespondOptions, type HonoRespondOptions, type JWTServiceOptions, type JWTSignOptions, type LogLevel, type MeasuredExecution, type Payload, type PayloadSchema, REDACTED_LOG_VALUE, type ReplaceDotsWithUnderscores, SUCCESS_STATUS_CODES, type Simplify, type StringEnumRecord, type SuccessStatusCode, type UploadFilesValidationOptions, type UploadFilesValidationResult, type UploadPreset, type UploadValidationError, type ZodBulkExcludeSelection, type ZodBulkIncludeSelection, type ZodBulkSelection, ZodJWTService, type ZodPaginationOptions, type ZodSearchSchemaOptions, type ZodUploadFileSchemaOptions, asQuery, createStringEnumRecord, createUploadAccept, createZodSearchWhereSchema, defineUploadPreset, documentUploadPreset, failure, fetchAndThrow, fetchSafely, fileFormat, fileFormatsArray, fileFormatsConfig, fileFormatsRecord, fileRespond, formatTime, generateRandomString, getColoredHTTPStatus, getFileExtension, getFormattedDate, getFormattedTime, getUTCOffset, getZonedTime, httpStatusColors, imageTransparentUploadPreset, imageUploadPreset, isFileExtensionSupported, isFileFormatSupported, isFileMimeTypeSupported, isPlainObject, log, logLevel, logLevelColors, logLevelsArray, logLevelsRecord, loggingMiddleware, matchesMimeType, measureExecutionTime, normalizeFileExtension, onHandlerError, parseQueryValue, redactSensitiveJSON, redactSensitiveSearchParams, respond, safeExecute, sensitiveLogKeyParts, sqlWhere, success, uploadValidationError, uploadValidationErrorsArray, uploadValidationErrorsRecord, validateUploadFile, validateUploadFiles, zodAtLeastOne, zodBulkSelectionSchema, zodPaginationSchema, zodPaginationShape, zodSearchQuerySchema, zodSearchSchema, zodUploadFileSchema };
|
package/dist/index.js
CHANGED
|
@@ -294,6 +294,10 @@ var imageUploadPreset = defineUploadPreset({
|
|
|
294
294
|
formats: [fileFormat.PNG, fileFormat.JPG, fileFormat.WEBP, fileFormat.AVIF, fileFormat.HEIC],
|
|
295
295
|
maxFileSize: DEFAULT_UPLOAD_MAX_FILE_SIZE
|
|
296
296
|
});
|
|
297
|
+
var imageTransparentUploadPreset = defineUploadPreset({
|
|
298
|
+
formats: [fileFormat.PNG, fileFormat.WEBP, fileFormat.SVG],
|
|
299
|
+
maxFileSize: DEFAULT_UPLOAD_MAX_FILE_SIZE
|
|
300
|
+
});
|
|
297
301
|
var documentUploadPreset = defineUploadPreset({
|
|
298
302
|
formats: [fileFormat.PDF, fileFormat.RTF, fileFormat.TXT],
|
|
299
303
|
maxFileSize: DEFAULT_UPLOAD_MAX_FILE_SIZE
|
|
@@ -549,6 +553,7 @@ export {
|
|
|
549
553
|
getUTCOffset,
|
|
550
554
|
getZonedTime,
|
|
551
555
|
httpStatusColors,
|
|
556
|
+
imageTransparentUploadPreset,
|
|
552
557
|
imageUploadPreset,
|
|
553
558
|
isFileExtensionSupported,
|
|
554
559
|
isFileFormatSupported,
|