@plyaz/types 1.39.6 → 1.39.7

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.cjs CHANGED
@@ -6990,6 +6990,55 @@ var SERVICE_KEYS = {
6990
6990
  };
6991
6991
  var ALL_SERVICE_KEYS = Object.values(SERVICE_KEYS);
6992
6992
 
6993
+ // src/core/frameworks/route-types.ts
6994
+ var DEFAULT_SUCCESS_MESSAGES = {
6995
+ GET: "Retrieved successfully",
6996
+ POST: "Created successfully",
6997
+ PUT: "Updated successfully",
6998
+ PATCH: "Updated successfully",
6999
+ DELETE: "Deleted successfully",
7000
+ OPTIONS: "Options retrieved",
7001
+ HEAD: "Head retrieved"
7002
+ };
7003
+
7004
+ // src/core/frameworks/file-types.ts
7005
+ var MIME_TYPE_EXTENSIONS = {
7006
+ "application/pdf": "pdf",
7007
+ "application/msword": "doc",
7008
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
7009
+ "application/vnd.ms-excel": "xls",
7010
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
7011
+ "application/vnd.ms-powerpoint": "ppt",
7012
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx",
7013
+ "application/json": "json",
7014
+ "application/xml": "xml",
7015
+ "application/zip": "zip",
7016
+ "text/plain": "txt",
7017
+ "text/html": "html",
7018
+ "text/css": "css",
7019
+ "text/csv": "csv",
7020
+ "image/png": "png",
7021
+ "image/jpeg": "jpg",
7022
+ "image/gif": "gif",
7023
+ "image/webp": "webp",
7024
+ "image/svg+xml": "svg",
7025
+ "audio/mpeg": "mp3",
7026
+ "audio/wav": "wav",
7027
+ "video/mp4": "mp4",
7028
+ "video/webm": "webm"
7029
+ };
7030
+ var FILE_SIZE_UNITS = ["Bytes", "KB", "MB", "GB", "TB", "PB"];
7031
+ var BYTES_PER_KB = 1024;
7032
+ var FILE_SIZE_MULTIPLIERS = {
7033
+ B: 1,
7034
+ KB: BYTES_PER_KB,
7035
+ MB: BYTES_PER_KB * BYTES_PER_KB,
7036
+ GB: BYTES_PER_KB * BYTES_PER_KB * BYTES_PER_KB,
7037
+ TB: BYTES_PER_KB * BYTES_PER_KB * BYTES_PER_KB * BYTES_PER_KB,
7038
+ PB: BYTES_PER_KB * BYTES_PER_KB * BYTES_PER_KB * BYTES_PER_KB * BYTES_PER_KB,
7039
+ BYTES: 1
7040
+ };
7041
+
6993
7042
  // src/events/enums.ts
6994
7043
  var EVENT_TYPE = {
6995
7044
  /** Application initialization event. */
@@ -9823,6 +9872,7 @@ exports.DATA_SAVER_PRESETS = DATA_SAVER_PRESETS;
9823
9872
  exports.DB_POOL_EVENTS = DB_POOL_EVENTS;
9824
9873
  exports.DEBUGGER_CONFIG_SOURCES = DEBUGGER_CONFIG_SOURCES;
9825
9874
  exports.DEBUG_EVENTS = DEBUG_EVENTS;
9875
+ exports.DEFAULT_SUCCESS_MESSAGES = DEFAULT_SUCCESS_MESSAGES;
9826
9876
  exports.DEFAULT_THRESHOLDS = DEFAULT_THRESHOLDS;
9827
9877
  exports.DOCUMENT_TYPE = DOCUMENT_TYPE;
9828
9878
  exports.DatabaseEventAction = DatabaseEventAction;
@@ -9878,6 +9928,8 @@ exports.FILE_ACCESS_LEVEL = FILE_ACCESS_LEVEL;
9878
9928
  exports.FILE_ACCESS_LEVELS = FILE_ACCESS_LEVELS;
9879
9929
  exports.FILE_CATEGORY = FILE_CATEGORY;
9880
9930
  exports.FILE_EXTENSIONS = FILE_EXTENSIONS;
9931
+ exports.FILE_SIZE_MULTIPLIERS = FILE_SIZE_MULTIPLIERS;
9932
+ exports.FILE_SIZE_UNITS = FILE_SIZE_UNITS;
9881
9933
  exports.FILE_TYPES = FILE_TYPES;
9882
9934
  exports.FILE_VALIDATION_ERROR = FILE_VALIDATION_ERROR;
9883
9935
  exports.FRONTEND_RUNTIMES = FRONTEND_RUNTIMES;
@@ -9917,6 +9969,7 @@ exports.MFATYPE = MFATYPE;
9917
9969
  exports.MILESTONE_STATUS = MILESTONE_STATUS;
9918
9970
  exports.MILESTONE_TRIGGER_TYPE = MILESTONE_TRIGGER_TYPE;
9919
9971
  exports.MIME_TYPES = MIME_TYPES;
9972
+ exports.MIME_TYPE_EXTENSIONS = MIME_TYPE_EXTENSIONS;
9920
9973
  exports.MediaAccessLevelSchema = MediaAccessLevelSchema;
9921
9974
  exports.MediaTypeSchema = MediaTypeSchema;
9922
9975
  exports.MediaVariantsDatabaseRowSchema = MediaVariantsDatabaseRowSchema;