nextjs-cms 0.9.5 → 0.9.6
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/LICENSE +21 -21
- package/README.md +290 -290
- package/dist/api/index.d.ts +6 -6
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/lib/serverActions.d.ts +6 -6
- package/dist/api/root.d.ts +12 -12
- package/dist/api/root.d.ts.map +1 -1
- package/dist/api/routers/config.d.ts.map +1 -1
- package/dist/api/routers/hasItemsSection.d.ts +2 -2
- package/dist/api/routers/hasItemsSection.d.ts.map +1 -1
- package/dist/api/routers/navigation.d.ts +3 -3
- package/dist/api/routers/simpleSection.d.ts +1 -1
- package/dist/api/routers/simpleSection.d.ts.map +1 -1
- package/dist/cli/lib/db-config.js +10 -10
- package/dist/cli/lib/db-migrate.d.ts.map +1 -1
- package/dist/cli/lib/db-migrate.js +10 -11
- package/dist/cli/lib/update-sections.d.ts.map +1 -1
- package/dist/cli/lib/update-sections.js +19 -8
- package/dist/cli/utils/exec-utils.d.ts +1 -0
- package/dist/cli/utils/exec-utils.d.ts.map +1 -1
- package/dist/cli/utils/exec-utils.js +2 -1
- package/dist/cli/utils/schema-generator.d.ts.map +1 -1
- package/dist/cli/utils/schema-generator.js +9 -0
- package/dist/core/db/table-checker/MysqlTable.js +8 -8
- package/dist/core/factories/FieldFactory.d.ts +1 -8
- package/dist/core/factories/FieldFactory.d.ts.map +1 -1
- package/dist/core/factories/FieldFactory.js +1 -21
- package/dist/core/factories/section-factory-with-esbuild.d.ts.map +1 -1
- package/dist/core/factories/section-factory-with-esbuild.js +25 -11
- package/dist/core/factories/section-factory-with-jiti.d.ts.map +1 -1
- package/dist/core/factories/section-factory-with-jiti.js +25 -11
- package/dist/core/fields/checkbox.d.ts +1 -1
- package/dist/core/fields/color.d.ts +1 -1
- package/dist/core/fields/date.d.ts +1 -1
- package/dist/core/fields/dateRange.d.ts +115 -0
- package/dist/core/fields/dateRange.d.ts.map +1 -0
- package/dist/core/fields/dateRange.js +149 -0
- package/dist/core/fields/document.d.ts +1 -1
- package/dist/core/fields/field.d.ts +13 -2
- package/dist/core/fields/field.d.ts.map +1 -1
- package/dist/core/fields/field.js +13 -3
- package/dist/core/fields/index.d.ts +4 -1
- package/dist/core/fields/index.d.ts.map +1 -1
- package/dist/core/fields/index.js +1 -0
- package/dist/core/fields/map.d.ts +1 -1
- package/dist/core/fields/password.d.ts +1 -1
- package/dist/core/fields/photo.d.ts +1 -1
- package/dist/core/fields/select.d.ts +2 -2
- package/dist/core/fields/selectMultiple.d.ts +1 -1
- package/dist/core/fields/slug.d.ts +1 -1
- package/dist/core/fields/tags.d.ts +1 -1
- package/dist/core/fields/video.d.ts +1 -1
- package/dist/core/sections/category.d.ts +4 -4
- package/dist/core/sections/hasItems.d.ts +4 -4
- package/dist/core/sections/section.d.ts +3 -3
- package/dist/core/sections/simple.d.ts +4 -4
- package/dist/core/submit/submit.d.ts.map +1 -1
- package/dist/core/submit/submit.js +9 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/db/cms-system-tables.d.ts +5 -0
- package/dist/db/cms-system-tables.d.ts.map +1 -0
- package/dist/db/cms-system-tables.js +17 -0
- package/dist/db/drizzle.config.d.ts.map +1 -1
- package/dist/db/drizzle.config.js +2 -0
- package/dist/translations/client.d.ts +4 -4
- package/dist/translations/localization.d.ts +39 -1
- package/dist/translations/localization.d.ts.map +1 -1
- package/dist/translations/localization.js +48 -0
- package/dist/translations/server.d.ts +4 -4
- package/dist/validators/dateRange.d.ts +11 -0
- package/dist/validators/dateRange.d.ts.map +1 -0
- package/dist/validators/dateRange.js +16 -0
- package/dist/validators/index.d.ts +1 -0
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +1 -0
- package/dist/validators/video.d.ts.map +1 -1
- package/dist/validators/video.js +4 -1
- package/package.json +8 -4
- package/dist/translations/dictionaries/ar.d.ts +0 -433
- package/dist/translations/dictionaries/ar.d.ts.map +0 -1
- package/dist/translations/dictionaries/ar.js +0 -444
- package/dist/translations/dictionaries/en.d.ts +0 -433
- package/dist/translations/dictionaries/en.d.ts.map +0 -1
- package/dist/translations/dictionaries/en.js +0 -444
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../src/translations/localization.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../src/translations/localization.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAE7D;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAClC,SAAS,EAAE,eAAe,GAAG,SAAS,EACtC,MAAM,EAAE,MAAM,EACd,cAAc,GAAE,MAAa,GAC9B,MAAM,CA8BR;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAErG"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Localization utilities for resolving localized strings.
|
|
3
|
+
* Supports Payload CMS-style translations where developers can provide
|
|
4
|
+
* translations directly in field labels and section titles.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Resolve a localized string to a specific locale.
|
|
8
|
+
* If the string is a plain string, it's returned as-is.
|
|
9
|
+
* If it's an object, the value for the given locale is returned.
|
|
10
|
+
* Falls back to the first available language or the fallback locale if the requested locale is not found.
|
|
11
|
+
*
|
|
12
|
+
* @param localized - The localized string (string or object with language codes)
|
|
13
|
+
* @param locale - The target locale code (e.g., 'en', 'ar')
|
|
14
|
+
* @param fallbackLocale - The fallback locale code if the requested locale is not found
|
|
15
|
+
* @returns The resolved string for the given locale
|
|
16
|
+
*/
|
|
17
|
+
export function resolveLocalizedString(localized, locale, fallbackLocale = 'en') {
|
|
18
|
+
if (!localized) {
|
|
19
|
+
return '';
|
|
20
|
+
}
|
|
21
|
+
// If it's a plain string, return as-is (backward compatible)
|
|
22
|
+
if (typeof localized === 'string') {
|
|
23
|
+
return localized;
|
|
24
|
+
}
|
|
25
|
+
// If it's an object, resolve based on locale
|
|
26
|
+
if (typeof localized === 'object') {
|
|
27
|
+
// Try the requested locale first
|
|
28
|
+
if (localized[locale]) {
|
|
29
|
+
return localized[locale];
|
|
30
|
+
}
|
|
31
|
+
// Try the fallback locale
|
|
32
|
+
if (localized[fallbackLocale]) {
|
|
33
|
+
return localized[fallbackLocale];
|
|
34
|
+
}
|
|
35
|
+
// Fall back to the first available language
|
|
36
|
+
const firstKey = Object.keys(localized)[0];
|
|
37
|
+
if (firstKey && localized[firstKey]) {
|
|
38
|
+
return localized[firstKey];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return '';
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a value is a localized string object (not a plain string)
|
|
45
|
+
*/
|
|
46
|
+
export function isLocalizedObject(value) {
|
|
47
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
48
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TranslationDictionary } from './types.js';
|
|
2
2
|
export declare const getI18n: () => Promise<{
|
|
3
|
-
<Key extends "here" | "adminDoesNotExist" | "admins" | "adminPrivileges" | "createNewAdmin" | "submitNewAdmin" | "adminsList" | "deleteAdmin" | "deleteAdminText" | "editAdmin" | "editAdminText" | "admin" | "adminNotFound" | "sectionNotFound" | "noAccessToThisOperation" | "adminDeletedSuccessfully" | "masterAdminCannotBeDeleted" | "masterAdminCannotBeModified" | "action" | "date" | "details" | "section" | "noData" | "loginToYourAccount" | "login" | "logout" | "username" | "password" | "rememberMe" | "haveAccount" | "dontHaveAnAccount" | "register" | "registerNow" | "registerNewAccount" | "forgotPassword" | "resetPassword" | "forgotPasswordText" | "email" | "sendResetLink" | "complyWithTerms" | "termsAndConditions" | "thankYouForRegistering" | "thankYouForRegisteringText" | "usernameRequired" | "passwordRequired" | "usernamePasswordRequired" | "adminAlreadyExists" | "selectAtLeastOnePrivilege" | "emailRequired" | "dashboard" | "myCourses" | "myReviews" | "myBookmarks" | "myBooks" | "orders" | "youDontHaveOrders" | "youDontHaveBookmarks" | "ordersSubtitle" | "reviewsSubtitle" | "bookmarksSubtitle" | "billingInfo" | "editProfile" | "security" | "socialProfiles" | "notifications" | "privacy" | "deleteProfile" | "firstName" | "lastName" | "phoneNumber" | "streetAddress" | "birthday" | "city" | "country" | "profilePhoto" | "profilePhotoText" | "saveChanges" | "delete" | "upload" | "editPhoto" | "personalDetails" | "personalDetailsText" | "loading" | "profilePhotoChanged" | "profilePhotoChangedError" | "error" | "about" | "aboutText" | "profile" | "profileSettings" | "contact" | "contactText" | "message" | "sendMessage" | "courses" | "books" | "home" | "searchCourses" | "courseDescription" | "bookDescription" | "otherCourses" | "whatsIncluded" | "unlimitedAccess" | "unlimitedAccessToItems" | "expertiseAndInsights" | "learnFromExperts" | "coursesAndBooks" | "coursesAndBooksText" | "learnOnYourSchedule" | "getThisCourse" | "videoCount" | "video" | "youPurchasedCourse" | "watchCourse" | "youCanAccessCourse" | "videos" | "courseVideos" | "rate" | "youCanRateItemText" | "submit" | "edit" | "leaveFeedback" | "description" | "content" | "reviews" | "subscribers" | "nowPlaying" | "addToBookmarks" | "removeFromBookmarks" | "price" | "coursePrice" | "bookPrice" | "drSalamCourses" | "drSalamBooks" | "save" | "trendingCourses" | "trendingBooks" | "otherBooks" | "youPurchasedBook" | "youCanAccessBook" | "youCanAccessBookAfterPayment" | "downloadBook" | "getThisBook" | "sales" | "review" | "resetPasswordEmailSent" | "emailNotValid" | "emailNotFound" | "somethingWentWrong" | "securitySettings" | "changePassword" | "changePasswordText" | "yourCurrentEmailIs" | "newEmailAddress" | "changeEmailAddress" | "update" | "currentPassword" | "newPassword" | "confirmNewPassword" | "passwordStrengthTooltip" | "passwordStrength" | "passwordsDoNotMatch" | "veryWeak" | "weak" | "fair" | "strong" | "good" | "serverError" | "diskSpace" | "totalDiskSpace" | "totalSpace" | "usedSpace" | "usedDiskSpace" | "thisMothBandwidth" | "totalBandwidth" | "usedBandwidth" | "emailAccounts" | "totalEmails" | "usedEmails" | "approved" | "pendingApproval" | "by" | "browse" | "noFileSelected" | "startTyping" | "startTypingForSuggestions" | "addNew" | "new" | "approve" | "add" | "addNewItem" | "catDeleteTextLight" | "catDeleteWarningLight" | "catDeleteText" | "catDeleteWarning" | "catDeleteWarningSubtitle" | "cancel" | "unsavedChangesConfirm" | "deleteLocaleTranslation" | "deleteLocaleTranslationText" | "localesHeading" | "baseLocaleBadge" | "editingContentTranslation" | "localizationNotEnabledForSection" | "invalidLocale" | "cannotDeleteBaseLocaleTranslation" | "localesTableDoesNotExist" | "deleteLocaleTranslationFailed" | "unknownErrorOccurred" | "localeTranslationDeleted" | "itemCreatedSuccessfully" | "itemUpdatedSuccessfully" | "sectionUpdatedSuccessfully" | "itemDeletedSuccessfully" | "createNewEmailAccount" | "emailQuota" | "unlimited" | "quota" | "updateQuota" | "create" | "lastLoginIp" | "passengerApplications" | "totalDatabases" | "usedDatabases" | "deleteEmailAccount" | "totalPageViews" | "totalSessions" | "totalUniqueUsers" | "bounceRate" | "monthlyPageViews" | "topDevices" | "topCountries" | "liveUsers" | "analytics" | "countriesDevices" | "page" | "device" | "liveUsersAreViewing" | "noLiveUsers" | "liveUsersSubtitle" | "source" | "sessionsPerUser" | "topSources" | "sources" | "mediums" | "topMediums" | "accountInformation" | "devices" | "countries" | "advancedSettings" | "advancedSettingsWarning" | "googleAnalyticsChangeText" | "googleAnalyticsChangeSubText" | "accountSettings" | "passwordChangeWarning" | "oldPassword" | "adminDetails" | "name" | "emailAddress" | "log" | "logs" | "select" | "selectOptions" | "settings" | "deleteItemText" | "deleteEmailText" | "dropzoneText" | "noItems" | "removeMarker" | "restoreMarker" | "restoreMarkerTooltip" | "gallery" | "uploadPhotosToGallery" | "deleteGalleryPhoto" | "deleteGalleryPhotoText" | "galleryPhotoDeleted" | "errorsInSubmit" | "newVariant" | "checkAll" | "removeAll" | "cpanelCredentialsNotSet" | "logoutError" | "deletePhoto" | "deletePhotoText" | "deleteVideo" | "deleteVideoText" | "yes" | "no" | "videoDeletedSuccessfully" | "photoDeletedSuccessfully" | "photoMarkedForDeletion" | "undo" | "selectFile" | "mandatory" | "imageDimensionsMustBe" | "maxFileSize" | "imageRecommendedDimensions" | "seeAll" | "allowedExtensions" | "recursiveCategoryDelete" | "recursiveCategoryDeleteWarning" | "unset" | "success" | "search" | "today" | "last7Days" | "last30Days" | "last365Days" | "custom" | "analyticsOverview" | "contentStatistics" | "recentActivity" | "latestContentUpdates" | "recentlyAddedOrModified" | "quickActions" | "systemStatus" | "databaseStatus" | "cacheStatus" | "connected" | "operational" | "view" | "cmsOverview" | "fromLastMonth" | "allConnectionsHealthy" | "cacheFunctioning" | "manageAdmins" | "viewAnalytics" | "fullAccess" | "publisher" | "publisherTooltip" | "customAccess" | "noAccess" | "allPermissions" | "accepts" | "firstPage" | "lastPage" | "readonly" | "mysqlDatabases" | "phpVersion" | "nodeVersion" | "documentRoot" | "version" | "remote" | "database" | "diskUsage" | "users" | "mysqlNotInstalled" | "emailAccountsList" | "theme" | "noAccessToSection" | "languageNotSupported" | "language" | "addNewCar" | "createCarListing" | "addRealEstate" | "createPropertyListing" | "viewAndManageAdmins" | "detailedAnalytics" | "totalCars" | "realEstate" | "jobs" | "services" | "addedAgo" | "hoursAgo" | "main" | "categorySections" | "sectionsWithItems" | "simpleSections" | "cpanelPluginMisconfigured" | "loadingCpanelData" | "unableToLoadCpanelData" | "usedLabel" | "totalLabel" | "databases" | "pnpmVersion" | "npmVersion" | "bunVersion" | "cPanelDashboard" | "noTokenProvided" | "invalidCredentials" | "failedToCreateTokens" | "failedToSaveTokens" | "oldPasswordIncorrect" | "usernameAndPasswordRequired" | "invalidFilePath" | "invalidRequest" | "fileNotFound" | "invalidFileType" | "sectionTableIdentifierNotFound" | "checkboxRequired" | "requiredField" | "invalidColorFormat" | "invalidImageExtension" | "invalidFileExtension" | "fileSizeExceeded" | "invalidImageType" | "invalidVideoType" | "invalidDocumentType" | "imageDimensionMismatch" | "couldNotVerifyImageDimensions" | "atLeastOneValueRequired" | "invalidSlugFormat" | "invalidColorPleaseProvideValidHex" | "invalidMapFormat" | "minLength" | "maxLength" | "numberMinLength" | "numberMaxLength" | "numberMinValue" | "numberMaxValue" | "fieldIsRequired" | "unableToLoadImage" | "unableToReadFile" | "errorReadingFile" | "publish" | "level" | "parentId" | "selectFieldConfigError" | "tableIdentifierLabelRequired" | "i18nMustHaveAtLeastOneLanguage" | "fieldMinValueError" | "fieldMaxValueError" | "fieldMinMaxMismatch" | "fieldLengthMismatch" | "invalidDatePleaseProvideValid" | "fileCorrupted" | "fileWriteError" | "fileDeleteError" | "folderNotSet" | "imageNotSet" | "bufferNotSet" | "invalidFileTypeOrExtension" | "fileSizeExceedsMax" | "imageDimensionMismatchDetailed" | "photoFieldBuildRequired" | "documentWriteError" | "documentDeleteError" | "invalidDocumentFileType" | "videoFolderNotSet" | "videoBufferNotSet" | "videoWriteError" | "recordWithFieldExists" | "recordWithCombinationExists" | "sqlQueryNotDefined" | "galleryTableNotSetUp" | "useVideoApiRoute" | "searchDots" | "noItemFound" | "searchOptionsDots" | "availableOptions" | "searchThroughOptions" | "filterOptionsHint" | "openMainMenu" | "openUserMenu" | "profileImage" | "logo" | "newImage" | "autoGeneratedFromLinkedField" | "clear" | "close" | "clearAllSelectedOptions" | "galleryPhoto" | "parentItemNotFound" | "preSubmitHookFailed" | "failedToBuildLocaleSqlQuery" | "noLocalizedFields" | "sectionHasNoLocalizedFields" | "noLocalizedFieldsHint", Value extends import("international-types").LocaleValue = ((`${Key}#zero` | `${Key}#one` | `${Key}#two` | `${Key}#few` | `${Key}#many` | `${Key}#other`) & ("here" | "adminDoesNotExist" | "admins" | "adminPrivileges" | "createNewAdmin" | "submitNewAdmin" | "adminsList" | "deleteAdmin" | "deleteAdminText" | "editAdmin" | "editAdminText" | "admin" | "adminNotFound" | "sectionNotFound" | "noAccessToThisOperation" | "adminDeletedSuccessfully" | "masterAdminCannotBeDeleted" | "masterAdminCannotBeModified" | "action" | "date" | "details" | "section" | "noData" | "loginToYourAccount" | "login" | "logout" | "username" | "password" | "rememberMe" | "haveAccount" | "dontHaveAnAccount" | "register" | "registerNow" | "registerNewAccount" | "forgotPassword" | "resetPassword" | "forgotPasswordText" | "email" | "sendResetLink" | "complyWithTerms" | "termsAndConditions" | "thankYouForRegistering" | "thankYouForRegisteringText" | "usernameRequired" | "passwordRequired" | "usernamePasswordRequired" | "adminAlreadyExists" | "selectAtLeastOnePrivilege" | "emailRequired" | "dashboard" | "myCourses" | "myReviews" | "myBookmarks" | "myBooks" | "orders" | "youDontHaveOrders" | "youDontHaveBookmarks" | "ordersSubtitle" | "reviewsSubtitle" | "bookmarksSubtitle" | "billingInfo" | "editProfile" | "security" | "socialProfiles" | "notifications" | "privacy" | "deleteProfile" | "firstName" | "lastName" | "phoneNumber" | "streetAddress" | "birthday" | "city" | "country" | "profilePhoto" | "profilePhotoText" | "saveChanges" | "delete" | "upload" | "editPhoto" | "personalDetails" | "personalDetailsText" | "loading" | "profilePhotoChanged" | "profilePhotoChangedError" | "error" | "about" | "aboutText" | "profile" | "profileSettings" | "contact" | "contactText" | "message" | "sendMessage" | "courses" | "books" | "home" | "searchCourses" | "courseDescription" | "bookDescription" | "otherCourses" | "whatsIncluded" | "unlimitedAccess" | "unlimitedAccessToItems" | "expertiseAndInsights" | "learnFromExperts" | "coursesAndBooks" | "coursesAndBooksText" | "learnOnYourSchedule" | "getThisCourse" | "videoCount" | "video" | "youPurchasedCourse" | "watchCourse" | "youCanAccessCourse" | "videos" | "courseVideos" | "rate" | "youCanRateItemText" | "submit" | "edit" | "leaveFeedback" | "description" | "content" | "reviews" | "subscribers" | "nowPlaying" | "addToBookmarks" | "removeFromBookmarks" | "price" | "coursePrice" | "bookPrice" | "drSalamCourses" | "drSalamBooks" | "save" | "trendingCourses" | "trendingBooks" | "otherBooks" | "youPurchasedBook" | "youCanAccessBook" | "youCanAccessBookAfterPayment" | "downloadBook" | "getThisBook" | "sales" | "review" | "resetPasswordEmailSent" | "emailNotValid" | "emailNotFound" | "somethingWentWrong" | "securitySettings" | "changePassword" | "changePasswordText" | "yourCurrentEmailIs" | "newEmailAddress" | "changeEmailAddress" | "update" | "currentPassword" | "newPassword" | "confirmNewPassword" | "passwordStrengthTooltip" | "passwordStrength" | "passwordsDoNotMatch" | "veryWeak" | "weak" | "fair" | "strong" | "good" | "serverError" | "diskSpace" | "totalDiskSpace" | "totalSpace" | "usedSpace" | "usedDiskSpace" | "thisMothBandwidth" | "totalBandwidth" | "usedBandwidth" | "emailAccounts" | "totalEmails" | "usedEmails" | "approved" | "pendingApproval" | "by" | "browse" | "noFileSelected" | "startTyping" | "startTypingForSuggestions" | "addNew" | "new" | "approve" | "add" | "addNewItem" | "catDeleteTextLight" | "catDeleteWarningLight" | "catDeleteText" | "catDeleteWarning" | "catDeleteWarningSubtitle" | "cancel" | "unsavedChangesConfirm" | "deleteLocaleTranslation" | "deleteLocaleTranslationText" | "localesHeading" | "baseLocaleBadge" | "editingContentTranslation" | "localizationNotEnabledForSection" | "invalidLocale" | "cannotDeleteBaseLocaleTranslation" | "localesTableDoesNotExist" | "deleteLocaleTranslationFailed" | "unknownErrorOccurred" | "localeTranslationDeleted" | "itemCreatedSuccessfully" | "itemUpdatedSuccessfully" | "sectionUpdatedSuccessfully" | "itemDeletedSuccessfully" | "createNewEmailAccount" | "emailQuota" | "unlimited" | "quota" | "updateQuota" | "create" | "lastLoginIp" | "passengerApplications" | "totalDatabases" | "usedDatabases" | "deleteEmailAccount" | "totalPageViews" | "totalSessions" | "totalUniqueUsers" | "bounceRate" | "monthlyPageViews" | "topDevices" | "topCountries" | "liveUsers" | "analytics" | "countriesDevices" | "page" | "device" | "liveUsersAreViewing" | "noLiveUsers" | "liveUsersSubtitle" | "source" | "sessionsPerUser" | "topSources" | "sources" | "mediums" | "topMediums" | "accountInformation" | "devices" | "countries" | "advancedSettings" | "advancedSettingsWarning" | "googleAnalyticsChangeText" | "googleAnalyticsChangeSubText" | "accountSettings" | "passwordChangeWarning" | "oldPassword" | "adminDetails" | "name" | "emailAddress" | "log" | "logs" | "select" | "selectOptions" | "settings" | "deleteItemText" | "deleteEmailText" | "dropzoneText" | "noItems" | "removeMarker" | "restoreMarker" | "restoreMarkerTooltip" | "gallery" | "uploadPhotosToGallery" | "deleteGalleryPhoto" | "deleteGalleryPhotoText" | "galleryPhotoDeleted" | "errorsInSubmit" | "newVariant" | "checkAll" | "removeAll" | "cpanelCredentialsNotSet" | "logoutError" | "deletePhoto" | "deletePhotoText" | "deleteVideo" | "deleteVideoText" | "yes" | "no" | "videoDeletedSuccessfully" | "photoDeletedSuccessfully" | "photoMarkedForDeletion" | "undo" | "selectFile" | "mandatory" | "imageDimensionsMustBe" | "maxFileSize" | "imageRecommendedDimensions" | "seeAll" | "allowedExtensions" | "recursiveCategoryDelete" | "recursiveCategoryDeleteWarning" | "unset" | "success" | "search" | "today" | "last7Days" | "last30Days" | "last365Days" | "custom" | "analyticsOverview" | "contentStatistics" | "recentActivity" | "latestContentUpdates" | "recentlyAddedOrModified" | "quickActions" | "systemStatus" | "databaseStatus" | "cacheStatus" | "connected" | "operational" | "view" | "cmsOverview" | "fromLastMonth" | "allConnectionsHealthy" | "cacheFunctioning" | "manageAdmins" | "viewAnalytics" | "fullAccess" | "publisher" | "publisherTooltip" | "customAccess" | "noAccess" | "allPermissions" | "accepts" | "firstPage" | "lastPage" | "readonly" | "mysqlDatabases" | "phpVersion" | "nodeVersion" | "documentRoot" | "version" | "remote" | "database" | "diskUsage" | "users" | "mysqlNotInstalled" | "emailAccountsList" | "theme" | "noAccessToSection" | "languageNotSupported" | "language" | "addNewCar" | "createCarListing" | "addRealEstate" | "createPropertyListing" | "viewAndManageAdmins" | "detailedAnalytics" | "totalCars" | "realEstate" | "jobs" | "services" | "addedAgo" | "hoursAgo" | "main" | "categorySections" | "sectionsWithItems" | "simpleSections" | "cpanelPluginMisconfigured" | "loadingCpanelData" | "unableToLoadCpanelData" | "usedLabel" | "totalLabel" | "databases" | "pnpmVersion" | "npmVersion" | "bunVersion" | "cPanelDashboard" | "noTokenProvided" | "invalidCredentials" | "failedToCreateTokens" | "failedToSaveTokens" | "oldPasswordIncorrect" | "usernameAndPasswordRequired" | "invalidFilePath" | "invalidRequest" | "fileNotFound" | "invalidFileType" | "sectionTableIdentifierNotFound" | "checkboxRequired" | "requiredField" | "invalidColorFormat" | "invalidImageExtension" | "invalidFileExtension" | "fileSizeExceeded" | "invalidImageType" | "invalidVideoType" | "invalidDocumentType" | "imageDimensionMismatch" | "couldNotVerifyImageDimensions" | "atLeastOneValueRequired" | "invalidSlugFormat" | "invalidColorPleaseProvideValidHex" | "invalidMapFormat" | "minLength" | "maxLength" | "numberMinLength" | "numberMaxLength" | "numberMinValue" | "numberMaxValue" | "fieldIsRequired" | "unableToLoadImage" | "unableToReadFile" | "errorReadingFile" | "publish" | "level" | "parentId" | "selectFieldConfigError" | "tableIdentifierLabelRequired" | "i18nMustHaveAtLeastOneLanguage" | "fieldMinValueError" | "fieldMaxValueError" | "fieldMinMaxMismatch" | "fieldLengthMismatch" | "invalidDatePleaseProvideValid" | "fileCorrupted" | "fileWriteError" | "fileDeleteError" | "folderNotSet" | "imageNotSet" | "bufferNotSet" | "invalidFileTypeOrExtension" | "fileSizeExceedsMax" | "imageDimensionMismatchDetailed" | "photoFieldBuildRequired" | "documentWriteError" | "documentDeleteError" | "invalidDocumentFileType" | "videoFolderNotSet" | "videoBufferNotSet" | "videoWriteError" | "recordWithFieldExists" | "recordWithCombinationExists" | "sqlQueryNotDefined" | "galleryTableNotSetUp" | "useVideoApiRoute" | "searchDots" | "noItemFound" | "searchOptionsDots" | "availableOptions" | "searchThroughOptions" | "filterOptionsHint" | "openMainMenu" | "openUserMenu" | "profileImage" | "logo" | "newImage" | "autoGeneratedFromLinkedField" | "clear" | "close" | "clearAllSelectedOptions" | "galleryPhoto" | "parentItemNotFound" | "preSubmitHookFailed" | "failedToBuildLocaleSqlQuery" | "noLocalizedFields" | "sectionHasNoLocalizedFields" | "noLocalizedFieldsHint") extends never ? false : true) extends true ? {
|
|
3
|
+
<Key extends "clear" | "delete" | "name" | "admins" | "date" | "custom" | "username" | "password" | "emailAddress" | "phoneNumber" | "language" | "search" | "publisher" | "section" | "logs" | "source" | "here" | "adminDoesNotExist" | "adminPrivileges" | "createNewAdmin" | "submitNewAdmin" | "adminsList" | "deleteAdmin" | "deleteAdminText" | "editAdmin" | "editAdminText" | "admin" | "adminNotFound" | "sectionNotFound" | "noAccessToThisOperation" | "adminDeletedSuccessfully" | "masterAdminCannotBeDeleted" | "masterAdminCannotBeModified" | "action" | "details" | "noData" | "loginToYourAccount" | "login" | "logout" | "rememberMe" | "haveAccount" | "dontHaveAnAccount" | "register" | "registerNow" | "registerNewAccount" | "forgotPassword" | "resetPassword" | "forgotPasswordText" | "email" | "sendResetLink" | "complyWithTerms" | "termsAndConditions" | "thankYouForRegistering" | "thankYouForRegisteringText" | "usernameRequired" | "passwordRequired" | "usernamePasswordRequired" | "adminAlreadyExists" | "selectAtLeastOnePrivilege" | "emailRequired" | "dashboard" | "myCourses" | "myReviews" | "myBookmarks" | "myBooks" | "orders" | "youDontHaveOrders" | "youDontHaveBookmarks" | "ordersSubtitle" | "reviewsSubtitle" | "bookmarksSubtitle" | "billingInfo" | "editProfile" | "security" | "socialProfiles" | "notifications" | "privacy" | "deleteProfile" | "firstName" | "lastName" | "streetAddress" | "birthday" | "city" | "country" | "profilePhoto" | "profilePhotoText" | "saveChanges" | "upload" | "editPhoto" | "personalDetails" | "personalDetailsText" | "loading" | "profilePhotoChanged" | "profilePhotoChangedError" | "error" | "about" | "aboutText" | "profile" | "profileSettings" | "contact" | "contactText" | "message" | "sendMessage" | "courses" | "books" | "home" | "searchCourses" | "courseDescription" | "bookDescription" | "otherCourses" | "whatsIncluded" | "unlimitedAccess" | "unlimitedAccessToItems" | "expertiseAndInsights" | "learnFromExperts" | "coursesAndBooks" | "coursesAndBooksText" | "learnOnYourSchedule" | "getThisCourse" | "videoCount" | "video" | "youPurchasedCourse" | "watchCourse" | "youCanAccessCourse" | "videos" | "courseVideos" | "rate" | "youCanRateItemText" | "submit" | "edit" | "leaveFeedback" | "description" | "content" | "reviews" | "subscribers" | "nowPlaying" | "addToBookmarks" | "removeFromBookmarks" | "price" | "coursePrice" | "bookPrice" | "drSalamCourses" | "drSalamBooks" | "save" | "trendingCourses" | "trendingBooks" | "otherBooks" | "youPurchasedBook" | "youCanAccessBook" | "youCanAccessBookAfterPayment" | "downloadBook" | "getThisBook" | "sales" | "review" | "resetPasswordEmailSent" | "emailNotValid" | "emailNotFound" | "somethingWentWrong" | "securitySettings" | "changePassword" | "changePasswordText" | "yourCurrentEmailIs" | "newEmailAddress" | "changeEmailAddress" | "update" | "currentPassword" | "newPassword" | "confirmNewPassword" | "passwordStrengthTooltip" | "passwordStrength" | "passwordsDoNotMatch" | "veryWeak" | "weak" | "fair" | "strong" | "good" | "serverError" | "diskSpace" | "totalDiskSpace" | "totalSpace" | "usedSpace" | "usedDiskSpace" | "thisMothBandwidth" | "totalBandwidth" | "usedBandwidth" | "emailAccounts" | "totalEmails" | "usedEmails" | "approved" | "pendingApproval" | "by" | "browse" | "noFileSelected" | "startTyping" | "startTypingForSuggestions" | "addNew" | "new" | "approve" | "add" | "addNewItem" | "catDeleteTextLight" | "catDeleteWarningLight" | "catDeleteText" | "catDeleteWarning" | "catDeleteWarningSubtitle" | "cancel" | "unsavedChangesConfirm" | "deleteLocaleTranslation" | "deleteLocaleTranslationText" | "localesHeading" | "baseLocaleBadge" | "editingContentTranslation" | "localizationNotEnabledForSection" | "invalidLocale" | "cannotDeleteBaseLocaleTranslation" | "localesTableDoesNotExist" | "deleteLocaleTranslationFailed" | "unknownErrorOccurred" | "localeTranslationDeleted" | "itemCreatedSuccessfully" | "itemUpdatedSuccessfully" | "sectionUpdatedSuccessfully" | "itemDeletedSuccessfully" | "createNewEmailAccount" | "emailQuota" | "unlimited" | "quota" | "updateQuota" | "create" | "lastLoginIp" | "passengerApplications" | "totalDatabases" | "usedDatabases" | "deleteEmailAccount" | "totalPageViews" | "totalSessions" | "totalUniqueUsers" | "bounceRate" | "monthlyPageViews" | "topDevices" | "topCountries" | "liveUsers" | "analytics" | "countriesDevices" | "page" | "device" | "liveUsersAreViewing" | "noLiveUsers" | "liveUsersSubtitle" | "sessionsPerUser" | "topSources" | "sources" | "mediums" | "topMediums" | "accountInformation" | "devices" | "countries" | "advancedSettings" | "advancedSettingsWarning" | "googleAnalyticsChangeText" | "googleAnalyticsChangeSubText" | "accountSettings" | "passwordChangeWarning" | "oldPassword" | "adminDetails" | "log" | "select" | "selectOptions" | "settings" | "deleteItemText" | "deleteEmailText" | "dropzoneText" | "noItems" | "removeMarker" | "restoreMarker" | "restoreMarkerTooltip" | "gallery" | "uploadPhotosToGallery" | "deleteGalleryPhoto" | "deleteGalleryPhotoText" | "galleryPhotoDeleted" | "errorsInSubmit" | "newVariant" | "checkAll" | "removeAll" | "cpanelCredentialsNotSet" | "logoutError" | "deletePhoto" | "deletePhotoText" | "deleteVideo" | "deleteVideoText" | "yes" | "no" | "videoDeletedSuccessfully" | "photoDeletedSuccessfully" | "photoMarkedForDeletion" | "undo" | "selectFile" | "mandatory" | "imageDimensionsMustBe" | "maxFileSize" | "imageRecommendedDimensions" | "seeAll" | "allowedExtensions" | "recursiveCategoryDelete" | "recursiveCategoryDeleteWarning" | "unset" | "success" | "today" | "last7Days" | "last30Days" | "last365Days" | "analyticsOverview" | "contentStatistics" | "recentActivity" | "latestContentUpdates" | "recentlyAddedOrModified" | "quickActions" | "systemStatus" | "databaseStatus" | "cacheStatus" | "connected" | "operational" | "view" | "cmsOverview" | "fromLastMonth" | "allConnectionsHealthy" | "cacheFunctioning" | "manageAdmins" | "viewAnalytics" | "fullAccess" | "publisherTooltip" | "customAccess" | "noAccess" | "allPermissions" | "accepts" | "firstPage" | "lastPage" | "readonly" | "mysqlDatabases" | "phpVersion" | "nodeVersion" | "documentRoot" | "version" | "remote" | "database" | "diskUsage" | "users" | "mysqlNotInstalled" | "emailAccountsList" | "theme" | "noAccessToSection" | "languageNotSupported" | "addNewCar" | "createCarListing" | "addRealEstate" | "createPropertyListing" | "viewAndManageAdmins" | "detailedAnalytics" | "totalCars" | "realEstate" | "jobs" | "services" | "addedAgo" | "hoursAgo" | "main" | "categorySections" | "sectionsWithItems" | "simpleSections" | "cpanelPluginMisconfigured" | "loadingCpanelData" | "unableToLoadCpanelData" | "usedLabel" | "totalLabel" | "databases" | "pnpmVersion" | "npmVersion" | "bunVersion" | "cPanelDashboard" | "noTokenProvided" | "invalidCredentials" | "failedToCreateTokens" | "failedToSaveTokens" | "oldPasswordIncorrect" | "usernameAndPasswordRequired" | "invalidFilePath" | "invalidRequest" | "fileNotFound" | "invalidFileType" | "sectionTableIdentifierNotFound" | "checkboxRequired" | "requiredField" | "invalidColorFormat" | "invalidImageExtension" | "invalidFileExtension" | "fileSizeExceeded" | "invalidImageType" | "invalidVideoType" | "invalidDocumentType" | "imageDimensionMismatch" | "couldNotVerifyImageDimensions" | "atLeastOneValueRequired" | "invalidSlugFormat" | "invalidColorPleaseProvideValidHex" | "invalidMapFormat" | "minLength" | "maxLength" | "numberMinLength" | "numberMaxLength" | "numberMinValue" | "numberMaxValue" | "fieldIsRequired" | "unableToLoadImage" | "unableToReadFile" | "errorReadingFile" | "publish" | "level" | "parentId" | "selectFieldConfigError" | "tableIdentifierLabelRequired" | "i18nMustHaveAtLeastOneLanguage" | "fieldMinValueError" | "fieldMaxValueError" | "fieldMinMaxMismatch" | "fieldLengthMismatch" | "invalidDatePleaseProvideValid" | "fileCorrupted" | "fileWriteError" | "fileDeleteError" | "folderNotSet" | "imageNotSet" | "bufferNotSet" | "invalidFileTypeOrExtension" | "fileSizeExceedsMax" | "imageDimensionMismatchDetailed" | "photoFieldBuildRequired" | "documentWriteError" | "documentDeleteError" | "invalidDocumentFileType" | "videoFolderNotSet" | "videoBufferNotSet" | "videoWriteError" | "recordWithFieldExists" | "recordWithCombinationExists" | "sqlQueryNotDefined" | "galleryTableNotSetUp" | "useVideoApiRoute" | "searchDots" | "noItemFound" | "searchOptionsDots" | "availableOptions" | "searchThroughOptions" | "filterOptionsHint" | "openMainMenu" | "openUserMenu" | "profileImage" | "logo" | "newImage" | "autoGeneratedFromLinkedField" | "close" | "clearAllSelectedOptions" | "galleryPhoto" | "parentItemNotFound" | "preSubmitHookFailed" | "failedToBuildLocaleSqlQuery" | "noLocalizedFields" | "sectionHasNoLocalizedFields" | "noLocalizedFieldsHint", Value extends import("international-types").LocaleValue = ((`${Key}#zero` | `${Key}#one` | `${Key}#two` | `${Key}#few` | `${Key}#many` | `${Key}#other`) & ("clear" | "delete" | "name" | "admins" | "date" | "custom" | "username" | "password" | "emailAddress" | "phoneNumber" | "language" | "search" | "publisher" | "section" | "logs" | "source" | "here" | "adminDoesNotExist" | "adminPrivileges" | "createNewAdmin" | "submitNewAdmin" | "adminsList" | "deleteAdmin" | "deleteAdminText" | "editAdmin" | "editAdminText" | "admin" | "adminNotFound" | "sectionNotFound" | "noAccessToThisOperation" | "adminDeletedSuccessfully" | "masterAdminCannotBeDeleted" | "masterAdminCannotBeModified" | "action" | "details" | "noData" | "loginToYourAccount" | "login" | "logout" | "rememberMe" | "haveAccount" | "dontHaveAnAccount" | "register" | "registerNow" | "registerNewAccount" | "forgotPassword" | "resetPassword" | "forgotPasswordText" | "email" | "sendResetLink" | "complyWithTerms" | "termsAndConditions" | "thankYouForRegistering" | "thankYouForRegisteringText" | "usernameRequired" | "passwordRequired" | "usernamePasswordRequired" | "adminAlreadyExists" | "selectAtLeastOnePrivilege" | "emailRequired" | "dashboard" | "myCourses" | "myReviews" | "myBookmarks" | "myBooks" | "orders" | "youDontHaveOrders" | "youDontHaveBookmarks" | "ordersSubtitle" | "reviewsSubtitle" | "bookmarksSubtitle" | "billingInfo" | "editProfile" | "security" | "socialProfiles" | "notifications" | "privacy" | "deleteProfile" | "firstName" | "lastName" | "streetAddress" | "birthday" | "city" | "country" | "profilePhoto" | "profilePhotoText" | "saveChanges" | "upload" | "editPhoto" | "personalDetails" | "personalDetailsText" | "loading" | "profilePhotoChanged" | "profilePhotoChangedError" | "error" | "about" | "aboutText" | "profile" | "profileSettings" | "contact" | "contactText" | "message" | "sendMessage" | "courses" | "books" | "home" | "searchCourses" | "courseDescription" | "bookDescription" | "otherCourses" | "whatsIncluded" | "unlimitedAccess" | "unlimitedAccessToItems" | "expertiseAndInsights" | "learnFromExperts" | "coursesAndBooks" | "coursesAndBooksText" | "learnOnYourSchedule" | "getThisCourse" | "videoCount" | "video" | "youPurchasedCourse" | "watchCourse" | "youCanAccessCourse" | "videos" | "courseVideos" | "rate" | "youCanRateItemText" | "submit" | "edit" | "leaveFeedback" | "description" | "content" | "reviews" | "subscribers" | "nowPlaying" | "addToBookmarks" | "removeFromBookmarks" | "price" | "coursePrice" | "bookPrice" | "drSalamCourses" | "drSalamBooks" | "save" | "trendingCourses" | "trendingBooks" | "otherBooks" | "youPurchasedBook" | "youCanAccessBook" | "youCanAccessBookAfterPayment" | "downloadBook" | "getThisBook" | "sales" | "review" | "resetPasswordEmailSent" | "emailNotValid" | "emailNotFound" | "somethingWentWrong" | "securitySettings" | "changePassword" | "changePasswordText" | "yourCurrentEmailIs" | "newEmailAddress" | "changeEmailAddress" | "update" | "currentPassword" | "newPassword" | "confirmNewPassword" | "passwordStrengthTooltip" | "passwordStrength" | "passwordsDoNotMatch" | "veryWeak" | "weak" | "fair" | "strong" | "good" | "serverError" | "diskSpace" | "totalDiskSpace" | "totalSpace" | "usedSpace" | "usedDiskSpace" | "thisMothBandwidth" | "totalBandwidth" | "usedBandwidth" | "emailAccounts" | "totalEmails" | "usedEmails" | "approved" | "pendingApproval" | "by" | "browse" | "noFileSelected" | "startTyping" | "startTypingForSuggestions" | "addNew" | "new" | "approve" | "add" | "addNewItem" | "catDeleteTextLight" | "catDeleteWarningLight" | "catDeleteText" | "catDeleteWarning" | "catDeleteWarningSubtitle" | "cancel" | "unsavedChangesConfirm" | "deleteLocaleTranslation" | "deleteLocaleTranslationText" | "localesHeading" | "baseLocaleBadge" | "editingContentTranslation" | "localizationNotEnabledForSection" | "invalidLocale" | "cannotDeleteBaseLocaleTranslation" | "localesTableDoesNotExist" | "deleteLocaleTranslationFailed" | "unknownErrorOccurred" | "localeTranslationDeleted" | "itemCreatedSuccessfully" | "itemUpdatedSuccessfully" | "sectionUpdatedSuccessfully" | "itemDeletedSuccessfully" | "createNewEmailAccount" | "emailQuota" | "unlimited" | "quota" | "updateQuota" | "create" | "lastLoginIp" | "passengerApplications" | "totalDatabases" | "usedDatabases" | "deleteEmailAccount" | "totalPageViews" | "totalSessions" | "totalUniqueUsers" | "bounceRate" | "monthlyPageViews" | "topDevices" | "topCountries" | "liveUsers" | "analytics" | "countriesDevices" | "page" | "device" | "liveUsersAreViewing" | "noLiveUsers" | "liveUsersSubtitle" | "sessionsPerUser" | "topSources" | "sources" | "mediums" | "topMediums" | "accountInformation" | "devices" | "countries" | "advancedSettings" | "advancedSettingsWarning" | "googleAnalyticsChangeText" | "googleAnalyticsChangeSubText" | "accountSettings" | "passwordChangeWarning" | "oldPassword" | "adminDetails" | "log" | "select" | "selectOptions" | "settings" | "deleteItemText" | "deleteEmailText" | "dropzoneText" | "noItems" | "removeMarker" | "restoreMarker" | "restoreMarkerTooltip" | "gallery" | "uploadPhotosToGallery" | "deleteGalleryPhoto" | "deleteGalleryPhotoText" | "galleryPhotoDeleted" | "errorsInSubmit" | "newVariant" | "checkAll" | "removeAll" | "cpanelCredentialsNotSet" | "logoutError" | "deletePhoto" | "deletePhotoText" | "deleteVideo" | "deleteVideoText" | "yes" | "no" | "videoDeletedSuccessfully" | "photoDeletedSuccessfully" | "photoMarkedForDeletion" | "undo" | "selectFile" | "mandatory" | "imageDimensionsMustBe" | "maxFileSize" | "imageRecommendedDimensions" | "seeAll" | "allowedExtensions" | "recursiveCategoryDelete" | "recursiveCategoryDeleteWarning" | "unset" | "success" | "today" | "last7Days" | "last30Days" | "last365Days" | "analyticsOverview" | "contentStatistics" | "recentActivity" | "latestContentUpdates" | "recentlyAddedOrModified" | "quickActions" | "systemStatus" | "databaseStatus" | "cacheStatus" | "connected" | "operational" | "view" | "cmsOverview" | "fromLastMonth" | "allConnectionsHealthy" | "cacheFunctioning" | "manageAdmins" | "viewAnalytics" | "fullAccess" | "publisherTooltip" | "customAccess" | "noAccess" | "allPermissions" | "accepts" | "firstPage" | "lastPage" | "readonly" | "mysqlDatabases" | "phpVersion" | "nodeVersion" | "documentRoot" | "version" | "remote" | "database" | "diskUsage" | "users" | "mysqlNotInstalled" | "emailAccountsList" | "theme" | "noAccessToSection" | "languageNotSupported" | "addNewCar" | "createCarListing" | "addRealEstate" | "createPropertyListing" | "viewAndManageAdmins" | "detailedAnalytics" | "totalCars" | "realEstate" | "jobs" | "services" | "addedAgo" | "hoursAgo" | "main" | "categorySections" | "sectionsWithItems" | "simpleSections" | "cpanelPluginMisconfigured" | "loadingCpanelData" | "unableToLoadCpanelData" | "usedLabel" | "totalLabel" | "databases" | "pnpmVersion" | "npmVersion" | "bunVersion" | "cPanelDashboard" | "noTokenProvided" | "invalidCredentials" | "failedToCreateTokens" | "failedToSaveTokens" | "oldPasswordIncorrect" | "usernameAndPasswordRequired" | "invalidFilePath" | "invalidRequest" | "fileNotFound" | "invalidFileType" | "sectionTableIdentifierNotFound" | "checkboxRequired" | "requiredField" | "invalidColorFormat" | "invalidImageExtension" | "invalidFileExtension" | "fileSizeExceeded" | "invalidImageType" | "invalidVideoType" | "invalidDocumentType" | "imageDimensionMismatch" | "couldNotVerifyImageDimensions" | "atLeastOneValueRequired" | "invalidSlugFormat" | "invalidColorPleaseProvideValidHex" | "invalidMapFormat" | "minLength" | "maxLength" | "numberMinLength" | "numberMaxLength" | "numberMinValue" | "numberMaxValue" | "fieldIsRequired" | "unableToLoadImage" | "unableToReadFile" | "errorReadingFile" | "publish" | "level" | "parentId" | "selectFieldConfigError" | "tableIdentifierLabelRequired" | "i18nMustHaveAtLeastOneLanguage" | "fieldMinValueError" | "fieldMaxValueError" | "fieldMinMaxMismatch" | "fieldLengthMismatch" | "invalidDatePleaseProvideValid" | "fileCorrupted" | "fileWriteError" | "fileDeleteError" | "folderNotSet" | "imageNotSet" | "bufferNotSet" | "invalidFileTypeOrExtension" | "fileSizeExceedsMax" | "imageDimensionMismatchDetailed" | "photoFieldBuildRequired" | "documentWriteError" | "documentDeleteError" | "invalidDocumentFileType" | "videoFolderNotSet" | "videoBufferNotSet" | "videoWriteError" | "recordWithFieldExists" | "recordWithCombinationExists" | "sqlQueryNotDefined" | "galleryTableNotSetUp" | "useVideoApiRoute" | "searchDots" | "noItemFound" | "searchOptionsDots" | "availableOptions" | "searchThroughOptions" | "filterOptionsHint" | "openMainMenu" | "openUserMenu" | "profileImage" | "logo" | "newImage" | "autoGeneratedFromLinkedField" | "close" | "clearAllSelectedOptions" | "galleryPhoto" | "parentItemNotFound" | "preSubmitHookFailed" | "failedToBuildLocaleSqlQuery" | "noLocalizedFields" | "sectionHasNoLocalizedFields" | "noLocalizedFieldsHint") extends never ? false : true) extends true ? {
|
|
4
4
|
readonly adminDoesNotExist: "Admin does not exist";
|
|
5
5
|
readonly admins: "Admins";
|
|
6
6
|
readonly adminPrivileges: "Admin Privileges";
|
|
@@ -1408,7 +1408,7 @@ export declare const getI18n: () => Promise<{
|
|
|
1408
1408
|
readonly sectionHasNoLocalizedFields: "Section \"{section}\" has no localized fields. Add localized: true to at least one field in the section definition to enable translations.";
|
|
1409
1409
|
readonly noLocalizedFieldsHint: "To enable translations for \"{section}\", update the section definition in \"{file}\" inside the sections folder and add localized: true to the fields you want to translate.";
|
|
1410
1410
|
}, undefined, Key, Value>): string;
|
|
1411
|
-
<Key_1 extends "here" | "adminDoesNotExist" | "admins" | "adminPrivileges" | "createNewAdmin" | "submitNewAdmin" | "adminsList" | "deleteAdmin" | "deleteAdminText" | "editAdmin" | "editAdminText" | "admin" | "adminNotFound" | "sectionNotFound" | "noAccessToThisOperation" | "adminDeletedSuccessfully" | "masterAdminCannotBeDeleted" | "masterAdminCannotBeModified" | "action" | "date" | "details" | "section" | "noData" | "loginToYourAccount" | "login" | "logout" | "username" | "password" | "rememberMe" | "haveAccount" | "dontHaveAnAccount" | "register" | "registerNow" | "registerNewAccount" | "forgotPassword" | "resetPassword" | "forgotPasswordText" | "email" | "sendResetLink" | "complyWithTerms" | "termsAndConditions" | "thankYouForRegistering" | "thankYouForRegisteringText" | "usernameRequired" | "passwordRequired" | "usernamePasswordRequired" | "adminAlreadyExists" | "selectAtLeastOnePrivilege" | "emailRequired" | "dashboard" | "myCourses" | "myReviews" | "myBookmarks" | "myBooks" | "orders" | "youDontHaveOrders" | "youDontHaveBookmarks" | "ordersSubtitle" | "reviewsSubtitle" | "bookmarksSubtitle" | "billingInfo" | "editProfile" | "security" | "socialProfiles" | "notifications" | "privacy" | "deleteProfile" | "firstName" | "lastName" | "phoneNumber" | "streetAddress" | "birthday" | "city" | "country" | "profilePhoto" | "profilePhotoText" | "saveChanges" | "delete" | "upload" | "editPhoto" | "personalDetails" | "personalDetailsText" | "loading" | "profilePhotoChanged" | "profilePhotoChangedError" | "error" | "about" | "aboutText" | "profile" | "profileSettings" | "contact" | "contactText" | "message" | "sendMessage" | "courses" | "books" | "home" | "searchCourses" | "courseDescription" | "bookDescription" | "otherCourses" | "whatsIncluded" | "unlimitedAccess" | "unlimitedAccessToItems" | "expertiseAndInsights" | "learnFromExperts" | "coursesAndBooks" | "coursesAndBooksText" | "learnOnYourSchedule" | "getThisCourse" | "videoCount" | "video" | "youPurchasedCourse" | "watchCourse" | "youCanAccessCourse" | "videos" | "courseVideos" | "rate" | "youCanRateItemText" | "submit" | "edit" | "leaveFeedback" | "description" | "content" | "reviews" | "subscribers" | "nowPlaying" | "addToBookmarks" | "removeFromBookmarks" | "price" | "coursePrice" | "bookPrice" | "drSalamCourses" | "drSalamBooks" | "save" | "trendingCourses" | "trendingBooks" | "otherBooks" | "youPurchasedBook" | "youCanAccessBook" | "youCanAccessBookAfterPayment" | "downloadBook" | "getThisBook" | "sales" | "review" | "resetPasswordEmailSent" | "emailNotValid" | "emailNotFound" | "somethingWentWrong" | "securitySettings" | "changePassword" | "changePasswordText" | "yourCurrentEmailIs" | "newEmailAddress" | "changeEmailAddress" | "update" | "currentPassword" | "newPassword" | "confirmNewPassword" | "passwordStrengthTooltip" | "passwordStrength" | "passwordsDoNotMatch" | "veryWeak" | "weak" | "fair" | "strong" | "good" | "serverError" | "diskSpace" | "totalDiskSpace" | "totalSpace" | "usedSpace" | "usedDiskSpace" | "thisMothBandwidth" | "totalBandwidth" | "usedBandwidth" | "emailAccounts" | "totalEmails" | "usedEmails" | "approved" | "pendingApproval" | "by" | "browse" | "noFileSelected" | "startTyping" | "startTypingForSuggestions" | "addNew" | "new" | "approve" | "add" | "addNewItem" | "catDeleteTextLight" | "catDeleteWarningLight" | "catDeleteText" | "catDeleteWarning" | "catDeleteWarningSubtitle" | "cancel" | "unsavedChangesConfirm" | "deleteLocaleTranslation" | "deleteLocaleTranslationText" | "localesHeading" | "baseLocaleBadge" | "editingContentTranslation" | "localizationNotEnabledForSection" | "invalidLocale" | "cannotDeleteBaseLocaleTranslation" | "localesTableDoesNotExist" | "deleteLocaleTranslationFailed" | "unknownErrorOccurred" | "localeTranslationDeleted" | "itemCreatedSuccessfully" | "itemUpdatedSuccessfully" | "sectionUpdatedSuccessfully" | "itemDeletedSuccessfully" | "createNewEmailAccount" | "emailQuota" | "unlimited" | "quota" | "updateQuota" | "create" | "lastLoginIp" | "passengerApplications" | "totalDatabases" | "usedDatabases" | "deleteEmailAccount" | "totalPageViews" | "totalSessions" | "totalUniqueUsers" | "bounceRate" | "monthlyPageViews" | "topDevices" | "topCountries" | "liveUsers" | "analytics" | "countriesDevices" | "page" | "device" | "liveUsersAreViewing" | "noLiveUsers" | "liveUsersSubtitle" | "source" | "sessionsPerUser" | "topSources" | "sources" | "mediums" | "topMediums" | "accountInformation" | "devices" | "countries" | "advancedSettings" | "advancedSettingsWarning" | "googleAnalyticsChangeText" | "googleAnalyticsChangeSubText" | "accountSettings" | "passwordChangeWarning" | "oldPassword" | "adminDetails" | "name" | "emailAddress" | "log" | "logs" | "select" | "selectOptions" | "settings" | "deleteItemText" | "deleteEmailText" | "dropzoneText" | "noItems" | "removeMarker" | "restoreMarker" | "restoreMarkerTooltip" | "gallery" | "uploadPhotosToGallery" | "deleteGalleryPhoto" | "deleteGalleryPhotoText" | "galleryPhotoDeleted" | "errorsInSubmit" | "newVariant" | "checkAll" | "removeAll" | "cpanelCredentialsNotSet" | "logoutError" | "deletePhoto" | "deletePhotoText" | "deleteVideo" | "deleteVideoText" | "yes" | "no" | "videoDeletedSuccessfully" | "photoDeletedSuccessfully" | "photoMarkedForDeletion" | "undo" | "selectFile" | "mandatory" | "imageDimensionsMustBe" | "maxFileSize" | "imageRecommendedDimensions" | "seeAll" | "allowedExtensions" | "recursiveCategoryDelete" | "recursiveCategoryDeleteWarning" | "unset" | "success" | "search" | "today" | "last7Days" | "last30Days" | "last365Days" | "custom" | "analyticsOverview" | "contentStatistics" | "recentActivity" | "latestContentUpdates" | "recentlyAddedOrModified" | "quickActions" | "systemStatus" | "databaseStatus" | "cacheStatus" | "connected" | "operational" | "view" | "cmsOverview" | "fromLastMonth" | "allConnectionsHealthy" | "cacheFunctioning" | "manageAdmins" | "viewAnalytics" | "fullAccess" | "publisher" | "publisherTooltip" | "customAccess" | "noAccess" | "allPermissions" | "accepts" | "firstPage" | "lastPage" | "readonly" | "mysqlDatabases" | "phpVersion" | "nodeVersion" | "documentRoot" | "version" | "remote" | "database" | "diskUsage" | "users" | "mysqlNotInstalled" | "emailAccountsList" | "theme" | "noAccessToSection" | "languageNotSupported" | "language" | "addNewCar" | "createCarListing" | "addRealEstate" | "createPropertyListing" | "viewAndManageAdmins" | "detailedAnalytics" | "totalCars" | "realEstate" | "jobs" | "services" | "addedAgo" | "hoursAgo" | "main" | "categorySections" | "sectionsWithItems" | "simpleSections" | "cpanelPluginMisconfigured" | "loadingCpanelData" | "unableToLoadCpanelData" | "usedLabel" | "totalLabel" | "databases" | "pnpmVersion" | "npmVersion" | "bunVersion" | "cPanelDashboard" | "noTokenProvided" | "invalidCredentials" | "failedToCreateTokens" | "failedToSaveTokens" | "oldPasswordIncorrect" | "usernameAndPasswordRequired" | "invalidFilePath" | "invalidRequest" | "fileNotFound" | "invalidFileType" | "sectionTableIdentifierNotFound" | "checkboxRequired" | "requiredField" | "invalidColorFormat" | "invalidImageExtension" | "invalidFileExtension" | "fileSizeExceeded" | "invalidImageType" | "invalidVideoType" | "invalidDocumentType" | "imageDimensionMismatch" | "couldNotVerifyImageDimensions" | "atLeastOneValueRequired" | "invalidSlugFormat" | "invalidColorPleaseProvideValidHex" | "invalidMapFormat" | "minLength" | "maxLength" | "numberMinLength" | "numberMaxLength" | "numberMinValue" | "numberMaxValue" | "fieldIsRequired" | "unableToLoadImage" | "unableToReadFile" | "errorReadingFile" | "publish" | "level" | "parentId" | "selectFieldConfigError" | "tableIdentifierLabelRequired" | "i18nMustHaveAtLeastOneLanguage" | "fieldMinValueError" | "fieldMaxValueError" | "fieldMinMaxMismatch" | "fieldLengthMismatch" | "invalidDatePleaseProvideValid" | "fileCorrupted" | "fileWriteError" | "fileDeleteError" | "folderNotSet" | "imageNotSet" | "bufferNotSet" | "invalidFileTypeOrExtension" | "fileSizeExceedsMax" | "imageDimensionMismatchDetailed" | "photoFieldBuildRequired" | "documentWriteError" | "documentDeleteError" | "invalidDocumentFileType" | "videoFolderNotSet" | "videoBufferNotSet" | "videoWriteError" | "recordWithFieldExists" | "recordWithCombinationExists" | "sqlQueryNotDefined" | "galleryTableNotSetUp" | "useVideoApiRoute" | "searchDots" | "noItemFound" | "searchOptionsDots" | "availableOptions" | "searchThroughOptions" | "filterOptionsHint" | "openMainMenu" | "openUserMenu" | "profileImage" | "logo" | "newImage" | "autoGeneratedFromLinkedField" | "clear" | "close" | "clearAllSelectedOptions" | "galleryPhoto" | "parentItemNotFound" | "preSubmitHookFailed" | "failedToBuildLocaleSqlQuery" | "noLocalizedFields" | "sectionHasNoLocalizedFields" | "noLocalizedFieldsHint", Value_1 extends import("international-types").LocaleValue = ((`${Key_1}#zero` | `${Key_1}#one` | `${Key_1}#two` | `${Key_1}#few` | `${Key_1}#many` | `${Key_1}#other`) & ("here" | "adminDoesNotExist" | "admins" | "adminPrivileges" | "createNewAdmin" | "submitNewAdmin" | "adminsList" | "deleteAdmin" | "deleteAdminText" | "editAdmin" | "editAdminText" | "admin" | "adminNotFound" | "sectionNotFound" | "noAccessToThisOperation" | "adminDeletedSuccessfully" | "masterAdminCannotBeDeleted" | "masterAdminCannotBeModified" | "action" | "date" | "details" | "section" | "noData" | "loginToYourAccount" | "login" | "logout" | "username" | "password" | "rememberMe" | "haveAccount" | "dontHaveAnAccount" | "register" | "registerNow" | "registerNewAccount" | "forgotPassword" | "resetPassword" | "forgotPasswordText" | "email" | "sendResetLink" | "complyWithTerms" | "termsAndConditions" | "thankYouForRegistering" | "thankYouForRegisteringText" | "usernameRequired" | "passwordRequired" | "usernamePasswordRequired" | "adminAlreadyExists" | "selectAtLeastOnePrivilege" | "emailRequired" | "dashboard" | "myCourses" | "myReviews" | "myBookmarks" | "myBooks" | "orders" | "youDontHaveOrders" | "youDontHaveBookmarks" | "ordersSubtitle" | "reviewsSubtitle" | "bookmarksSubtitle" | "billingInfo" | "editProfile" | "security" | "socialProfiles" | "notifications" | "privacy" | "deleteProfile" | "firstName" | "lastName" | "phoneNumber" | "streetAddress" | "birthday" | "city" | "country" | "profilePhoto" | "profilePhotoText" | "saveChanges" | "delete" | "upload" | "editPhoto" | "personalDetails" | "personalDetailsText" | "loading" | "profilePhotoChanged" | "profilePhotoChangedError" | "error" | "about" | "aboutText" | "profile" | "profileSettings" | "contact" | "contactText" | "message" | "sendMessage" | "courses" | "books" | "home" | "searchCourses" | "courseDescription" | "bookDescription" | "otherCourses" | "whatsIncluded" | "unlimitedAccess" | "unlimitedAccessToItems" | "expertiseAndInsights" | "learnFromExperts" | "coursesAndBooks" | "coursesAndBooksText" | "learnOnYourSchedule" | "getThisCourse" | "videoCount" | "video" | "youPurchasedCourse" | "watchCourse" | "youCanAccessCourse" | "videos" | "courseVideos" | "rate" | "youCanRateItemText" | "submit" | "edit" | "leaveFeedback" | "description" | "content" | "reviews" | "subscribers" | "nowPlaying" | "addToBookmarks" | "removeFromBookmarks" | "price" | "coursePrice" | "bookPrice" | "drSalamCourses" | "drSalamBooks" | "save" | "trendingCourses" | "trendingBooks" | "otherBooks" | "youPurchasedBook" | "youCanAccessBook" | "youCanAccessBookAfterPayment" | "downloadBook" | "getThisBook" | "sales" | "review" | "resetPasswordEmailSent" | "emailNotValid" | "emailNotFound" | "somethingWentWrong" | "securitySettings" | "changePassword" | "changePasswordText" | "yourCurrentEmailIs" | "newEmailAddress" | "changeEmailAddress" | "update" | "currentPassword" | "newPassword" | "confirmNewPassword" | "passwordStrengthTooltip" | "passwordStrength" | "passwordsDoNotMatch" | "veryWeak" | "weak" | "fair" | "strong" | "good" | "serverError" | "diskSpace" | "totalDiskSpace" | "totalSpace" | "usedSpace" | "usedDiskSpace" | "thisMothBandwidth" | "totalBandwidth" | "usedBandwidth" | "emailAccounts" | "totalEmails" | "usedEmails" | "approved" | "pendingApproval" | "by" | "browse" | "noFileSelected" | "startTyping" | "startTypingForSuggestions" | "addNew" | "new" | "approve" | "add" | "addNewItem" | "catDeleteTextLight" | "catDeleteWarningLight" | "catDeleteText" | "catDeleteWarning" | "catDeleteWarningSubtitle" | "cancel" | "unsavedChangesConfirm" | "deleteLocaleTranslation" | "deleteLocaleTranslationText" | "localesHeading" | "baseLocaleBadge" | "editingContentTranslation" | "localizationNotEnabledForSection" | "invalidLocale" | "cannotDeleteBaseLocaleTranslation" | "localesTableDoesNotExist" | "deleteLocaleTranslationFailed" | "unknownErrorOccurred" | "localeTranslationDeleted" | "itemCreatedSuccessfully" | "itemUpdatedSuccessfully" | "sectionUpdatedSuccessfully" | "itemDeletedSuccessfully" | "createNewEmailAccount" | "emailQuota" | "unlimited" | "quota" | "updateQuota" | "create" | "lastLoginIp" | "passengerApplications" | "totalDatabases" | "usedDatabases" | "deleteEmailAccount" | "totalPageViews" | "totalSessions" | "totalUniqueUsers" | "bounceRate" | "monthlyPageViews" | "topDevices" | "topCountries" | "liveUsers" | "analytics" | "countriesDevices" | "page" | "device" | "liveUsersAreViewing" | "noLiveUsers" | "liveUsersSubtitle" | "source" | "sessionsPerUser" | "topSources" | "sources" | "mediums" | "topMediums" | "accountInformation" | "devices" | "countries" | "advancedSettings" | "advancedSettingsWarning" | "googleAnalyticsChangeText" | "googleAnalyticsChangeSubText" | "accountSettings" | "passwordChangeWarning" | "oldPassword" | "adminDetails" | "name" | "emailAddress" | "log" | "logs" | "select" | "selectOptions" | "settings" | "deleteItemText" | "deleteEmailText" | "dropzoneText" | "noItems" | "removeMarker" | "restoreMarker" | "restoreMarkerTooltip" | "gallery" | "uploadPhotosToGallery" | "deleteGalleryPhoto" | "deleteGalleryPhotoText" | "galleryPhotoDeleted" | "errorsInSubmit" | "newVariant" | "checkAll" | "removeAll" | "cpanelCredentialsNotSet" | "logoutError" | "deletePhoto" | "deletePhotoText" | "deleteVideo" | "deleteVideoText" | "yes" | "no" | "videoDeletedSuccessfully" | "photoDeletedSuccessfully" | "photoMarkedForDeletion" | "undo" | "selectFile" | "mandatory" | "imageDimensionsMustBe" | "maxFileSize" | "imageRecommendedDimensions" | "seeAll" | "allowedExtensions" | "recursiveCategoryDelete" | "recursiveCategoryDeleteWarning" | "unset" | "success" | "search" | "today" | "last7Days" | "last30Days" | "last365Days" | "custom" | "analyticsOverview" | "contentStatistics" | "recentActivity" | "latestContentUpdates" | "recentlyAddedOrModified" | "quickActions" | "systemStatus" | "databaseStatus" | "cacheStatus" | "connected" | "operational" | "view" | "cmsOverview" | "fromLastMonth" | "allConnectionsHealthy" | "cacheFunctioning" | "manageAdmins" | "viewAnalytics" | "fullAccess" | "publisher" | "publisherTooltip" | "customAccess" | "noAccess" | "allPermissions" | "accepts" | "firstPage" | "lastPage" | "readonly" | "mysqlDatabases" | "phpVersion" | "nodeVersion" | "documentRoot" | "version" | "remote" | "database" | "diskUsage" | "users" | "mysqlNotInstalled" | "emailAccountsList" | "theme" | "noAccessToSection" | "languageNotSupported" | "language" | "addNewCar" | "createCarListing" | "addRealEstate" | "createPropertyListing" | "viewAndManageAdmins" | "detailedAnalytics" | "totalCars" | "realEstate" | "jobs" | "services" | "addedAgo" | "hoursAgo" | "main" | "categorySections" | "sectionsWithItems" | "simpleSections" | "cpanelPluginMisconfigured" | "loadingCpanelData" | "unableToLoadCpanelData" | "usedLabel" | "totalLabel" | "databases" | "pnpmVersion" | "npmVersion" | "bunVersion" | "cPanelDashboard" | "noTokenProvided" | "invalidCredentials" | "failedToCreateTokens" | "failedToSaveTokens" | "oldPasswordIncorrect" | "usernameAndPasswordRequired" | "invalidFilePath" | "invalidRequest" | "fileNotFound" | "invalidFileType" | "sectionTableIdentifierNotFound" | "checkboxRequired" | "requiredField" | "invalidColorFormat" | "invalidImageExtension" | "invalidFileExtension" | "fileSizeExceeded" | "invalidImageType" | "invalidVideoType" | "invalidDocumentType" | "imageDimensionMismatch" | "couldNotVerifyImageDimensions" | "atLeastOneValueRequired" | "invalidSlugFormat" | "invalidColorPleaseProvideValidHex" | "invalidMapFormat" | "minLength" | "maxLength" | "numberMinLength" | "numberMaxLength" | "numberMinValue" | "numberMaxValue" | "fieldIsRequired" | "unableToLoadImage" | "unableToReadFile" | "errorReadingFile" | "publish" | "level" | "parentId" | "selectFieldConfigError" | "tableIdentifierLabelRequired" | "i18nMustHaveAtLeastOneLanguage" | "fieldMinValueError" | "fieldMaxValueError" | "fieldMinMaxMismatch" | "fieldLengthMismatch" | "invalidDatePleaseProvideValid" | "fileCorrupted" | "fileWriteError" | "fileDeleteError" | "folderNotSet" | "imageNotSet" | "bufferNotSet" | "invalidFileTypeOrExtension" | "fileSizeExceedsMax" | "imageDimensionMismatchDetailed" | "photoFieldBuildRequired" | "documentWriteError" | "documentDeleteError" | "invalidDocumentFileType" | "videoFolderNotSet" | "videoBufferNotSet" | "videoWriteError" | "recordWithFieldExists" | "recordWithCombinationExists" | "sqlQueryNotDefined" | "galleryTableNotSetUp" | "useVideoApiRoute" | "searchDots" | "noItemFound" | "searchOptionsDots" | "availableOptions" | "searchThroughOptions" | "filterOptionsHint" | "openMainMenu" | "openUserMenu" | "profileImage" | "logo" | "newImage" | "autoGeneratedFromLinkedField" | "clear" | "close" | "clearAllSelectedOptions" | "galleryPhoto" | "parentItemNotFound" | "preSubmitHookFailed" | "failedToBuildLocaleSqlQuery" | "noLocalizedFields" | "sectionHasNoLocalizedFields" | "noLocalizedFieldsHint") extends never ? false : true) extends true ? {
|
|
1411
|
+
<Key_1 extends "clear" | "delete" | "name" | "admins" | "date" | "custom" | "username" | "password" | "emailAddress" | "phoneNumber" | "language" | "search" | "publisher" | "section" | "logs" | "source" | "here" | "adminDoesNotExist" | "adminPrivileges" | "createNewAdmin" | "submitNewAdmin" | "adminsList" | "deleteAdmin" | "deleteAdminText" | "editAdmin" | "editAdminText" | "admin" | "adminNotFound" | "sectionNotFound" | "noAccessToThisOperation" | "adminDeletedSuccessfully" | "masterAdminCannotBeDeleted" | "masterAdminCannotBeModified" | "action" | "details" | "noData" | "loginToYourAccount" | "login" | "logout" | "rememberMe" | "haveAccount" | "dontHaveAnAccount" | "register" | "registerNow" | "registerNewAccount" | "forgotPassword" | "resetPassword" | "forgotPasswordText" | "email" | "sendResetLink" | "complyWithTerms" | "termsAndConditions" | "thankYouForRegistering" | "thankYouForRegisteringText" | "usernameRequired" | "passwordRequired" | "usernamePasswordRequired" | "adminAlreadyExists" | "selectAtLeastOnePrivilege" | "emailRequired" | "dashboard" | "myCourses" | "myReviews" | "myBookmarks" | "myBooks" | "orders" | "youDontHaveOrders" | "youDontHaveBookmarks" | "ordersSubtitle" | "reviewsSubtitle" | "bookmarksSubtitle" | "billingInfo" | "editProfile" | "security" | "socialProfiles" | "notifications" | "privacy" | "deleteProfile" | "firstName" | "lastName" | "streetAddress" | "birthday" | "city" | "country" | "profilePhoto" | "profilePhotoText" | "saveChanges" | "upload" | "editPhoto" | "personalDetails" | "personalDetailsText" | "loading" | "profilePhotoChanged" | "profilePhotoChangedError" | "error" | "about" | "aboutText" | "profile" | "profileSettings" | "contact" | "contactText" | "message" | "sendMessage" | "courses" | "books" | "home" | "searchCourses" | "courseDescription" | "bookDescription" | "otherCourses" | "whatsIncluded" | "unlimitedAccess" | "unlimitedAccessToItems" | "expertiseAndInsights" | "learnFromExperts" | "coursesAndBooks" | "coursesAndBooksText" | "learnOnYourSchedule" | "getThisCourse" | "videoCount" | "video" | "youPurchasedCourse" | "watchCourse" | "youCanAccessCourse" | "videos" | "courseVideos" | "rate" | "youCanRateItemText" | "submit" | "edit" | "leaveFeedback" | "description" | "content" | "reviews" | "subscribers" | "nowPlaying" | "addToBookmarks" | "removeFromBookmarks" | "price" | "coursePrice" | "bookPrice" | "drSalamCourses" | "drSalamBooks" | "save" | "trendingCourses" | "trendingBooks" | "otherBooks" | "youPurchasedBook" | "youCanAccessBook" | "youCanAccessBookAfterPayment" | "downloadBook" | "getThisBook" | "sales" | "review" | "resetPasswordEmailSent" | "emailNotValid" | "emailNotFound" | "somethingWentWrong" | "securitySettings" | "changePassword" | "changePasswordText" | "yourCurrentEmailIs" | "newEmailAddress" | "changeEmailAddress" | "update" | "currentPassword" | "newPassword" | "confirmNewPassword" | "passwordStrengthTooltip" | "passwordStrength" | "passwordsDoNotMatch" | "veryWeak" | "weak" | "fair" | "strong" | "good" | "serverError" | "diskSpace" | "totalDiskSpace" | "totalSpace" | "usedSpace" | "usedDiskSpace" | "thisMothBandwidth" | "totalBandwidth" | "usedBandwidth" | "emailAccounts" | "totalEmails" | "usedEmails" | "approved" | "pendingApproval" | "by" | "browse" | "noFileSelected" | "startTyping" | "startTypingForSuggestions" | "addNew" | "new" | "approve" | "add" | "addNewItem" | "catDeleteTextLight" | "catDeleteWarningLight" | "catDeleteText" | "catDeleteWarning" | "catDeleteWarningSubtitle" | "cancel" | "unsavedChangesConfirm" | "deleteLocaleTranslation" | "deleteLocaleTranslationText" | "localesHeading" | "baseLocaleBadge" | "editingContentTranslation" | "localizationNotEnabledForSection" | "invalidLocale" | "cannotDeleteBaseLocaleTranslation" | "localesTableDoesNotExist" | "deleteLocaleTranslationFailed" | "unknownErrorOccurred" | "localeTranslationDeleted" | "itemCreatedSuccessfully" | "itemUpdatedSuccessfully" | "sectionUpdatedSuccessfully" | "itemDeletedSuccessfully" | "createNewEmailAccount" | "emailQuota" | "unlimited" | "quota" | "updateQuota" | "create" | "lastLoginIp" | "passengerApplications" | "totalDatabases" | "usedDatabases" | "deleteEmailAccount" | "totalPageViews" | "totalSessions" | "totalUniqueUsers" | "bounceRate" | "monthlyPageViews" | "topDevices" | "topCountries" | "liveUsers" | "analytics" | "countriesDevices" | "page" | "device" | "liveUsersAreViewing" | "noLiveUsers" | "liveUsersSubtitle" | "sessionsPerUser" | "topSources" | "sources" | "mediums" | "topMediums" | "accountInformation" | "devices" | "countries" | "advancedSettings" | "advancedSettingsWarning" | "googleAnalyticsChangeText" | "googleAnalyticsChangeSubText" | "accountSettings" | "passwordChangeWarning" | "oldPassword" | "adminDetails" | "log" | "select" | "selectOptions" | "settings" | "deleteItemText" | "deleteEmailText" | "dropzoneText" | "noItems" | "removeMarker" | "restoreMarker" | "restoreMarkerTooltip" | "gallery" | "uploadPhotosToGallery" | "deleteGalleryPhoto" | "deleteGalleryPhotoText" | "galleryPhotoDeleted" | "errorsInSubmit" | "newVariant" | "checkAll" | "removeAll" | "cpanelCredentialsNotSet" | "logoutError" | "deletePhoto" | "deletePhotoText" | "deleteVideo" | "deleteVideoText" | "yes" | "no" | "videoDeletedSuccessfully" | "photoDeletedSuccessfully" | "photoMarkedForDeletion" | "undo" | "selectFile" | "mandatory" | "imageDimensionsMustBe" | "maxFileSize" | "imageRecommendedDimensions" | "seeAll" | "allowedExtensions" | "recursiveCategoryDelete" | "recursiveCategoryDeleteWarning" | "unset" | "success" | "today" | "last7Days" | "last30Days" | "last365Days" | "analyticsOverview" | "contentStatistics" | "recentActivity" | "latestContentUpdates" | "recentlyAddedOrModified" | "quickActions" | "systemStatus" | "databaseStatus" | "cacheStatus" | "connected" | "operational" | "view" | "cmsOverview" | "fromLastMonth" | "allConnectionsHealthy" | "cacheFunctioning" | "manageAdmins" | "viewAnalytics" | "fullAccess" | "publisherTooltip" | "customAccess" | "noAccess" | "allPermissions" | "accepts" | "firstPage" | "lastPage" | "readonly" | "mysqlDatabases" | "phpVersion" | "nodeVersion" | "documentRoot" | "version" | "remote" | "database" | "diskUsage" | "users" | "mysqlNotInstalled" | "emailAccountsList" | "theme" | "noAccessToSection" | "languageNotSupported" | "addNewCar" | "createCarListing" | "addRealEstate" | "createPropertyListing" | "viewAndManageAdmins" | "detailedAnalytics" | "totalCars" | "realEstate" | "jobs" | "services" | "addedAgo" | "hoursAgo" | "main" | "categorySections" | "sectionsWithItems" | "simpleSections" | "cpanelPluginMisconfigured" | "loadingCpanelData" | "unableToLoadCpanelData" | "usedLabel" | "totalLabel" | "databases" | "pnpmVersion" | "npmVersion" | "bunVersion" | "cPanelDashboard" | "noTokenProvided" | "invalidCredentials" | "failedToCreateTokens" | "failedToSaveTokens" | "oldPasswordIncorrect" | "usernameAndPasswordRequired" | "invalidFilePath" | "invalidRequest" | "fileNotFound" | "invalidFileType" | "sectionTableIdentifierNotFound" | "checkboxRequired" | "requiredField" | "invalidColorFormat" | "invalidImageExtension" | "invalidFileExtension" | "fileSizeExceeded" | "invalidImageType" | "invalidVideoType" | "invalidDocumentType" | "imageDimensionMismatch" | "couldNotVerifyImageDimensions" | "atLeastOneValueRequired" | "invalidSlugFormat" | "invalidColorPleaseProvideValidHex" | "invalidMapFormat" | "minLength" | "maxLength" | "numberMinLength" | "numberMaxLength" | "numberMinValue" | "numberMaxValue" | "fieldIsRequired" | "unableToLoadImage" | "unableToReadFile" | "errorReadingFile" | "publish" | "level" | "parentId" | "selectFieldConfigError" | "tableIdentifierLabelRequired" | "i18nMustHaveAtLeastOneLanguage" | "fieldMinValueError" | "fieldMaxValueError" | "fieldMinMaxMismatch" | "fieldLengthMismatch" | "invalidDatePleaseProvideValid" | "fileCorrupted" | "fileWriteError" | "fileDeleteError" | "folderNotSet" | "imageNotSet" | "bufferNotSet" | "invalidFileTypeOrExtension" | "fileSizeExceedsMax" | "imageDimensionMismatchDetailed" | "photoFieldBuildRequired" | "documentWriteError" | "documentDeleteError" | "invalidDocumentFileType" | "videoFolderNotSet" | "videoBufferNotSet" | "videoWriteError" | "recordWithFieldExists" | "recordWithCombinationExists" | "sqlQueryNotDefined" | "galleryTableNotSetUp" | "useVideoApiRoute" | "searchDots" | "noItemFound" | "searchOptionsDots" | "availableOptions" | "searchThroughOptions" | "filterOptionsHint" | "openMainMenu" | "openUserMenu" | "profileImage" | "logo" | "newImage" | "autoGeneratedFromLinkedField" | "close" | "clearAllSelectedOptions" | "galleryPhoto" | "parentItemNotFound" | "preSubmitHookFailed" | "failedToBuildLocaleSqlQuery" | "noLocalizedFields" | "sectionHasNoLocalizedFields" | "noLocalizedFieldsHint", Value_1 extends import("international-types").LocaleValue = ((`${Key_1}#zero` | `${Key_1}#one` | `${Key_1}#two` | `${Key_1}#few` | `${Key_1}#many` | `${Key_1}#other`) & ("clear" | "delete" | "name" | "admins" | "date" | "custom" | "username" | "password" | "emailAddress" | "phoneNumber" | "language" | "search" | "publisher" | "section" | "logs" | "source" | "here" | "adminDoesNotExist" | "adminPrivileges" | "createNewAdmin" | "submitNewAdmin" | "adminsList" | "deleteAdmin" | "deleteAdminText" | "editAdmin" | "editAdminText" | "admin" | "adminNotFound" | "sectionNotFound" | "noAccessToThisOperation" | "adminDeletedSuccessfully" | "masterAdminCannotBeDeleted" | "masterAdminCannotBeModified" | "action" | "details" | "noData" | "loginToYourAccount" | "login" | "logout" | "rememberMe" | "haveAccount" | "dontHaveAnAccount" | "register" | "registerNow" | "registerNewAccount" | "forgotPassword" | "resetPassword" | "forgotPasswordText" | "email" | "sendResetLink" | "complyWithTerms" | "termsAndConditions" | "thankYouForRegistering" | "thankYouForRegisteringText" | "usernameRequired" | "passwordRequired" | "usernamePasswordRequired" | "adminAlreadyExists" | "selectAtLeastOnePrivilege" | "emailRequired" | "dashboard" | "myCourses" | "myReviews" | "myBookmarks" | "myBooks" | "orders" | "youDontHaveOrders" | "youDontHaveBookmarks" | "ordersSubtitle" | "reviewsSubtitle" | "bookmarksSubtitle" | "billingInfo" | "editProfile" | "security" | "socialProfiles" | "notifications" | "privacy" | "deleteProfile" | "firstName" | "lastName" | "streetAddress" | "birthday" | "city" | "country" | "profilePhoto" | "profilePhotoText" | "saveChanges" | "upload" | "editPhoto" | "personalDetails" | "personalDetailsText" | "loading" | "profilePhotoChanged" | "profilePhotoChangedError" | "error" | "about" | "aboutText" | "profile" | "profileSettings" | "contact" | "contactText" | "message" | "sendMessage" | "courses" | "books" | "home" | "searchCourses" | "courseDescription" | "bookDescription" | "otherCourses" | "whatsIncluded" | "unlimitedAccess" | "unlimitedAccessToItems" | "expertiseAndInsights" | "learnFromExperts" | "coursesAndBooks" | "coursesAndBooksText" | "learnOnYourSchedule" | "getThisCourse" | "videoCount" | "video" | "youPurchasedCourse" | "watchCourse" | "youCanAccessCourse" | "videos" | "courseVideos" | "rate" | "youCanRateItemText" | "submit" | "edit" | "leaveFeedback" | "description" | "content" | "reviews" | "subscribers" | "nowPlaying" | "addToBookmarks" | "removeFromBookmarks" | "price" | "coursePrice" | "bookPrice" | "drSalamCourses" | "drSalamBooks" | "save" | "trendingCourses" | "trendingBooks" | "otherBooks" | "youPurchasedBook" | "youCanAccessBook" | "youCanAccessBookAfterPayment" | "downloadBook" | "getThisBook" | "sales" | "review" | "resetPasswordEmailSent" | "emailNotValid" | "emailNotFound" | "somethingWentWrong" | "securitySettings" | "changePassword" | "changePasswordText" | "yourCurrentEmailIs" | "newEmailAddress" | "changeEmailAddress" | "update" | "currentPassword" | "newPassword" | "confirmNewPassword" | "passwordStrengthTooltip" | "passwordStrength" | "passwordsDoNotMatch" | "veryWeak" | "weak" | "fair" | "strong" | "good" | "serverError" | "diskSpace" | "totalDiskSpace" | "totalSpace" | "usedSpace" | "usedDiskSpace" | "thisMothBandwidth" | "totalBandwidth" | "usedBandwidth" | "emailAccounts" | "totalEmails" | "usedEmails" | "approved" | "pendingApproval" | "by" | "browse" | "noFileSelected" | "startTyping" | "startTypingForSuggestions" | "addNew" | "new" | "approve" | "add" | "addNewItem" | "catDeleteTextLight" | "catDeleteWarningLight" | "catDeleteText" | "catDeleteWarning" | "catDeleteWarningSubtitle" | "cancel" | "unsavedChangesConfirm" | "deleteLocaleTranslation" | "deleteLocaleTranslationText" | "localesHeading" | "baseLocaleBadge" | "editingContentTranslation" | "localizationNotEnabledForSection" | "invalidLocale" | "cannotDeleteBaseLocaleTranslation" | "localesTableDoesNotExist" | "deleteLocaleTranslationFailed" | "unknownErrorOccurred" | "localeTranslationDeleted" | "itemCreatedSuccessfully" | "itemUpdatedSuccessfully" | "sectionUpdatedSuccessfully" | "itemDeletedSuccessfully" | "createNewEmailAccount" | "emailQuota" | "unlimited" | "quota" | "updateQuota" | "create" | "lastLoginIp" | "passengerApplications" | "totalDatabases" | "usedDatabases" | "deleteEmailAccount" | "totalPageViews" | "totalSessions" | "totalUniqueUsers" | "bounceRate" | "monthlyPageViews" | "topDevices" | "topCountries" | "liveUsers" | "analytics" | "countriesDevices" | "page" | "device" | "liveUsersAreViewing" | "noLiveUsers" | "liveUsersSubtitle" | "sessionsPerUser" | "topSources" | "sources" | "mediums" | "topMediums" | "accountInformation" | "devices" | "countries" | "advancedSettings" | "advancedSettingsWarning" | "googleAnalyticsChangeText" | "googleAnalyticsChangeSubText" | "accountSettings" | "passwordChangeWarning" | "oldPassword" | "adminDetails" | "log" | "select" | "selectOptions" | "settings" | "deleteItemText" | "deleteEmailText" | "dropzoneText" | "noItems" | "removeMarker" | "restoreMarker" | "restoreMarkerTooltip" | "gallery" | "uploadPhotosToGallery" | "deleteGalleryPhoto" | "deleteGalleryPhotoText" | "galleryPhotoDeleted" | "errorsInSubmit" | "newVariant" | "checkAll" | "removeAll" | "cpanelCredentialsNotSet" | "logoutError" | "deletePhoto" | "deletePhotoText" | "deleteVideo" | "deleteVideoText" | "yes" | "no" | "videoDeletedSuccessfully" | "photoDeletedSuccessfully" | "photoMarkedForDeletion" | "undo" | "selectFile" | "mandatory" | "imageDimensionsMustBe" | "maxFileSize" | "imageRecommendedDimensions" | "seeAll" | "allowedExtensions" | "recursiveCategoryDelete" | "recursiveCategoryDeleteWarning" | "unset" | "success" | "today" | "last7Days" | "last30Days" | "last365Days" | "analyticsOverview" | "contentStatistics" | "recentActivity" | "latestContentUpdates" | "recentlyAddedOrModified" | "quickActions" | "systemStatus" | "databaseStatus" | "cacheStatus" | "connected" | "operational" | "view" | "cmsOverview" | "fromLastMonth" | "allConnectionsHealthy" | "cacheFunctioning" | "manageAdmins" | "viewAnalytics" | "fullAccess" | "publisherTooltip" | "customAccess" | "noAccess" | "allPermissions" | "accepts" | "firstPage" | "lastPage" | "readonly" | "mysqlDatabases" | "phpVersion" | "nodeVersion" | "documentRoot" | "version" | "remote" | "database" | "diskUsage" | "users" | "mysqlNotInstalled" | "emailAccountsList" | "theme" | "noAccessToSection" | "languageNotSupported" | "addNewCar" | "createCarListing" | "addRealEstate" | "createPropertyListing" | "viewAndManageAdmins" | "detailedAnalytics" | "totalCars" | "realEstate" | "jobs" | "services" | "addedAgo" | "hoursAgo" | "main" | "categorySections" | "sectionsWithItems" | "simpleSections" | "cpanelPluginMisconfigured" | "loadingCpanelData" | "unableToLoadCpanelData" | "usedLabel" | "totalLabel" | "databases" | "pnpmVersion" | "npmVersion" | "bunVersion" | "cPanelDashboard" | "noTokenProvided" | "invalidCredentials" | "failedToCreateTokens" | "failedToSaveTokens" | "oldPasswordIncorrect" | "usernameAndPasswordRequired" | "invalidFilePath" | "invalidRequest" | "fileNotFound" | "invalidFileType" | "sectionTableIdentifierNotFound" | "checkboxRequired" | "requiredField" | "invalidColorFormat" | "invalidImageExtension" | "invalidFileExtension" | "fileSizeExceeded" | "invalidImageType" | "invalidVideoType" | "invalidDocumentType" | "imageDimensionMismatch" | "couldNotVerifyImageDimensions" | "atLeastOneValueRequired" | "invalidSlugFormat" | "invalidColorPleaseProvideValidHex" | "invalidMapFormat" | "minLength" | "maxLength" | "numberMinLength" | "numberMaxLength" | "numberMinValue" | "numberMaxValue" | "fieldIsRequired" | "unableToLoadImage" | "unableToReadFile" | "errorReadingFile" | "publish" | "level" | "parentId" | "selectFieldConfigError" | "tableIdentifierLabelRequired" | "i18nMustHaveAtLeastOneLanguage" | "fieldMinValueError" | "fieldMaxValueError" | "fieldMinMaxMismatch" | "fieldLengthMismatch" | "invalidDatePleaseProvideValid" | "fileCorrupted" | "fileWriteError" | "fileDeleteError" | "folderNotSet" | "imageNotSet" | "bufferNotSet" | "invalidFileTypeOrExtension" | "fileSizeExceedsMax" | "imageDimensionMismatchDetailed" | "photoFieldBuildRequired" | "documentWriteError" | "documentDeleteError" | "invalidDocumentFileType" | "videoFolderNotSet" | "videoBufferNotSet" | "videoWriteError" | "recordWithFieldExists" | "recordWithCombinationExists" | "sqlQueryNotDefined" | "galleryTableNotSetUp" | "useVideoApiRoute" | "searchDots" | "noItemFound" | "searchOptionsDots" | "availableOptions" | "searchThroughOptions" | "filterOptionsHint" | "openMainMenu" | "openUserMenu" | "profileImage" | "logo" | "newImage" | "autoGeneratedFromLinkedField" | "close" | "clearAllSelectedOptions" | "galleryPhoto" | "parentItemNotFound" | "preSubmitHookFailed" | "failedToBuildLocaleSqlQuery" | "noLocalizedFields" | "sectionHasNoLocalizedFields" | "noLocalizedFieldsHint") extends never ? false : true) extends true ? {
|
|
1412
1412
|
readonly adminDoesNotExist: "Admin does not exist";
|
|
1413
1413
|
readonly admins: "Admins";
|
|
1414
1414
|
readonly adminPrivileges: "Admin Privileges";
|
|
@@ -3286,7 +3286,7 @@ export declare const getI18n: () => Promise<{
|
|
|
3286
3286
|
readonly noLocalizedFields: "This section has no localized fields.";
|
|
3287
3287
|
readonly sectionHasNoLocalizedFields: "Section \"{section}\" has no localized fields. Add localized: true to at least one field in the section definition to enable translations.";
|
|
3288
3288
|
readonly noLocalizedFieldsHint: "To enable translations for \"{section}\", update the section definition in \"{file}\" inside the sections folder and add localized: true to the fields you want to translate.";
|
|
3289
|
-
}, Scope, "
|
|
3289
|
+
}, Scope, "clear" | "delete" | "name" | "admins" | "date" | "custom" | "username" | "password" | "emailAddress" | "phoneNumber" | "language" | "search" | "publisher" | "section" | "logs" | "source" | "here" | "adminDoesNotExist" | "adminPrivileges" | "createNewAdmin" | "submitNewAdmin" | "adminsList" | "deleteAdmin" | "deleteAdminText" | "editAdmin" | "editAdminText" | "admin" | "adminNotFound" | "sectionNotFound" | "noAccessToThisOperation" | "adminDeletedSuccessfully" | "masterAdminCannotBeDeleted" | "masterAdminCannotBeModified" | "action" | "details" | "noData" | "loginToYourAccount" | "login" | "logout" | "rememberMe" | "haveAccount" | "dontHaveAnAccount" | "register" | "registerNow" | "registerNewAccount" | "forgotPassword" | "resetPassword" | "forgotPasswordText" | "email" | "sendResetLink" | "complyWithTerms" | "termsAndConditions" | "thankYouForRegistering" | "thankYouForRegisteringText" | "usernameRequired" | "passwordRequired" | "usernamePasswordRequired" | "adminAlreadyExists" | "selectAtLeastOnePrivilege" | "emailRequired" | "dashboard" | "myCourses" | "myReviews" | "myBookmarks" | "myBooks" | "orders" | "youDontHaveOrders" | "youDontHaveBookmarks" | "ordersSubtitle" | "reviewsSubtitle" | "bookmarksSubtitle" | "billingInfo" | "editProfile" | "security" | "socialProfiles" | "notifications" | "privacy" | "deleteProfile" | "firstName" | "lastName" | "streetAddress" | "birthday" | "city" | "country" | "profilePhoto" | "profilePhotoText" | "saveChanges" | "upload" | "editPhoto" | "personalDetails" | "personalDetailsText" | "loading" | "profilePhotoChanged" | "profilePhotoChangedError" | "error" | "about" | "aboutText" | "profile" | "profileSettings" | "contact" | "contactText" | "message" | "sendMessage" | "courses" | "books" | "home" | "searchCourses" | "courseDescription" | "bookDescription" | "otherCourses" | "whatsIncluded" | "unlimitedAccess" | "unlimitedAccessToItems" | "expertiseAndInsights" | "learnFromExperts" | "coursesAndBooks" | "coursesAndBooksText" | "learnOnYourSchedule" | "getThisCourse" | "videoCount" | "video" | "youPurchasedCourse" | "watchCourse" | "youCanAccessCourse" | "videos" | "courseVideos" | "rate" | "youCanRateItemText" | "submit" | "edit" | "leaveFeedback" | "description" | "content" | "reviews" | "subscribers" | "nowPlaying" | "addToBookmarks" | "removeFromBookmarks" | "price" | "coursePrice" | "bookPrice" | "drSalamCourses" | "drSalamBooks" | "save" | "trendingCourses" | "trendingBooks" | "otherBooks" | "youPurchasedBook" | "youCanAccessBook" | "youCanAccessBookAfterPayment" | "downloadBook" | "getThisBook" | "sales" | "review" | "resetPasswordEmailSent" | "emailNotValid" | "emailNotFound" | "somethingWentWrong" | "securitySettings" | "changePassword" | "changePasswordText" | "yourCurrentEmailIs" | "newEmailAddress" | "changeEmailAddress" | "update" | "currentPassword" | "newPassword" | "confirmNewPassword" | "passwordStrengthTooltip" | "passwordStrength" | "passwordsDoNotMatch" | "veryWeak" | "weak" | "fair" | "strong" | "good" | "serverError" | "diskSpace" | "totalDiskSpace" | "totalSpace" | "usedSpace" | "usedDiskSpace" | "thisMothBandwidth" | "totalBandwidth" | "usedBandwidth" | "emailAccounts" | "totalEmails" | "usedEmails" | "approved" | "pendingApproval" | "by" | "browse" | "noFileSelected" | "startTyping" | "startTypingForSuggestions" | "addNew" | "new" | "approve" | "add" | "addNewItem" | "catDeleteTextLight" | "catDeleteWarningLight" | "catDeleteText" | "catDeleteWarning" | "catDeleteWarningSubtitle" | "cancel" | "unsavedChangesConfirm" | "deleteLocaleTranslation" | "deleteLocaleTranslationText" | "localesHeading" | "baseLocaleBadge" | "editingContentTranslation" | "localizationNotEnabledForSection" | "invalidLocale" | "cannotDeleteBaseLocaleTranslation" | "localesTableDoesNotExist" | "deleteLocaleTranslationFailed" | "unknownErrorOccurred" | "localeTranslationDeleted" | "itemCreatedSuccessfully" | "itemUpdatedSuccessfully" | "sectionUpdatedSuccessfully" | "itemDeletedSuccessfully" | "createNewEmailAccount" | "emailQuota" | "unlimited" | "quota" | "updateQuota" | "create" | "lastLoginIp" | "passengerApplications" | "totalDatabases" | "usedDatabases" | "deleteEmailAccount" | "totalPageViews" | "totalSessions" | "totalUniqueUsers" | "bounceRate" | "monthlyPageViews" | "topDevices" | "topCountries" | "liveUsers" | "analytics" | "countriesDevices" | "page" | "device" | "liveUsersAreViewing" | "noLiveUsers" | "liveUsersSubtitle" | "sessionsPerUser" | "topSources" | "sources" | "mediums" | "topMediums" | "accountInformation" | "devices" | "countries" | "advancedSettings" | "advancedSettingsWarning" | "googleAnalyticsChangeText" | "googleAnalyticsChangeSubText" | "accountSettings" | "passwordChangeWarning" | "oldPassword" | "adminDetails" | "log" | "select" | "selectOptions" | "settings" | "deleteItemText" | "deleteEmailText" | "dropzoneText" | "noItems" | "removeMarker" | "restoreMarker" | "restoreMarkerTooltip" | "gallery" | "uploadPhotosToGallery" | "deleteGalleryPhoto" | "deleteGalleryPhotoText" | "galleryPhotoDeleted" | "errorsInSubmit" | "newVariant" | "checkAll" | "removeAll" | "cpanelCredentialsNotSet" | "logoutError" | "deletePhoto" | "deletePhotoText" | "deleteVideo" | "deleteVideoText" | "yes" | "no" | "videoDeletedSuccessfully" | "photoDeletedSuccessfully" | "photoMarkedForDeletion" | "undo" | "selectFile" | "mandatory" | "imageDimensionsMustBe" | "maxFileSize" | "imageRecommendedDimensions" | "seeAll" | "allowedExtensions" | "recursiveCategoryDelete" | "recursiveCategoryDeleteWarning" | "unset" | "success" | "today" | "last7Days" | "last30Days" | "last365Days" | "analyticsOverview" | "contentStatistics" | "recentActivity" | "latestContentUpdates" | "recentlyAddedOrModified" | "quickActions" | "systemStatus" | "databaseStatus" | "cacheStatus" | "connected" | "operational" | "view" | "cmsOverview" | "fromLastMonth" | "allConnectionsHealthy" | "cacheFunctioning" | "manageAdmins" | "viewAnalytics" | "fullAccess" | "publisherTooltip" | "customAccess" | "noAccess" | "allPermissions" | "accepts" | "firstPage" | "lastPage" | "readonly" | "mysqlDatabases" | "phpVersion" | "nodeVersion" | "documentRoot" | "version" | "remote" | "database" | "diskUsage" | "users" | "mysqlNotInstalled" | "emailAccountsList" | "theme" | "noAccessToSection" | "languageNotSupported" | "addNewCar" | "createCarListing" | "addRealEstate" | "createPropertyListing" | "viewAndManageAdmins" | "detailedAnalytics" | "totalCars" | "realEstate" | "jobs" | "services" | "addedAgo" | "hoursAgo" | "main" | "categorySections" | "sectionsWithItems" | "simpleSections" | "cpanelPluginMisconfigured" | "loadingCpanelData" | "unableToLoadCpanelData" | "usedLabel" | "totalLabel" | "databases" | "pnpmVersion" | "npmVersion" | "bunVersion" | "cPanelDashboard" | "noTokenProvided" | "invalidCredentials" | "failedToCreateTokens" | "failedToSaveTokens" | "oldPasswordIncorrect" | "usernameAndPasswordRequired" | "invalidFilePath" | "invalidRequest" | "fileNotFound" | "invalidFileType" | "sectionTableIdentifierNotFound" | "checkboxRequired" | "requiredField" | "invalidColorFormat" | "invalidImageExtension" | "invalidFileExtension" | "fileSizeExceeded" | "invalidImageType" | "invalidVideoType" | "invalidDocumentType" | "imageDimensionMismatch" | "couldNotVerifyImageDimensions" | "atLeastOneValueRequired" | "invalidSlugFormat" | "invalidColorPleaseProvideValidHex" | "invalidMapFormat" | "minLength" | "maxLength" | "numberMinLength" | "numberMaxLength" | "numberMinValue" | "numberMaxValue" | "fieldIsRequired" | "unableToLoadImage" | "unableToReadFile" | "errorReadingFile" | "publish" | "level" | "parentId" | "selectFieldConfigError" | "tableIdentifierLabelRequired" | "i18nMustHaveAtLeastOneLanguage" | "fieldMinValueError" | "fieldMaxValueError" | "fieldMinMaxMismatch" | "fieldLengthMismatch" | "invalidDatePleaseProvideValid" | "fileCorrupted" | "fileWriteError" | "fileDeleteError" | "folderNotSet" | "imageNotSet" | "bufferNotSet" | "invalidFileTypeOrExtension" | "fileSizeExceedsMax" | "imageDimensionMismatchDetailed" | "photoFieldBuildRequired" | "documentWriteError" | "documentDeleteError" | "invalidDocumentFileType" | "videoFolderNotSet" | "videoBufferNotSet" | "videoWriteError" | "recordWithFieldExists" | "recordWithCombinationExists" | "sqlQueryNotDefined" | "galleryTableNotSetUp" | "useVideoApiRoute" | "searchDots" | "noItemFound" | "searchOptionsDots" | "availableOptions" | "searchThroughOptions" | "filterOptionsHint" | "openMainMenu" | "openUserMenu" | "profileImage" | "logo" | "newImage" | "autoGeneratedFromLinkedField" | "close" | "clearAllSelectedOptions" | "galleryPhoto" | "parentItemNotFound" | "preSubmitHookFailed" | "failedToBuildLocaleSqlQuery" | "noLocalizedFields" | "sectionHasNoLocalizedFields" | "noLocalizedFieldsHint">, Value_2 extends import("international-types").LocaleValue = import("international-types").ScopedValue<{
|
|
3290
3290
|
readonly adminDoesNotExist: "Admin does not exist";
|
|
3291
3291
|
readonly admins: "Admins";
|
|
3292
3292
|
readonly adminPrivileges: "Admin Privileges";
|
|
@@ -4694,7 +4694,7 @@ export declare const getI18n: () => Promise<{
|
|
|
4694
4694
|
readonly noLocalizedFields: "This section has no localized fields.";
|
|
4695
4695
|
readonly sectionHasNoLocalizedFields: "Section \"{section}\" has no localized fields. Add localized: true to at least one field in the section definition to enable translations.";
|
|
4696
4696
|
readonly noLocalizedFieldsHint: "To enable translations for \"{section}\", update the section definition in \"{file}\" inside the sections folder and add localized: true to the fields you want to translate.";
|
|
4697
|
-
}, Scope, "
|
|
4697
|
+
}, Scope, "clear" | "delete" | "name" | "admins" | "date" | "custom" | "username" | "password" | "emailAddress" | "phoneNumber" | "language" | "search" | "publisher" | "section" | "logs" | "source" | "here" | "adminDoesNotExist" | "adminPrivileges" | "createNewAdmin" | "submitNewAdmin" | "adminsList" | "deleteAdmin" | "deleteAdminText" | "editAdmin" | "editAdminText" | "admin" | "adminNotFound" | "sectionNotFound" | "noAccessToThisOperation" | "adminDeletedSuccessfully" | "masterAdminCannotBeDeleted" | "masterAdminCannotBeModified" | "action" | "details" | "noData" | "loginToYourAccount" | "login" | "logout" | "rememberMe" | "haveAccount" | "dontHaveAnAccount" | "register" | "registerNow" | "registerNewAccount" | "forgotPassword" | "resetPassword" | "forgotPasswordText" | "email" | "sendResetLink" | "complyWithTerms" | "termsAndConditions" | "thankYouForRegistering" | "thankYouForRegisteringText" | "usernameRequired" | "passwordRequired" | "usernamePasswordRequired" | "adminAlreadyExists" | "selectAtLeastOnePrivilege" | "emailRequired" | "dashboard" | "myCourses" | "myReviews" | "myBookmarks" | "myBooks" | "orders" | "youDontHaveOrders" | "youDontHaveBookmarks" | "ordersSubtitle" | "reviewsSubtitle" | "bookmarksSubtitle" | "billingInfo" | "editProfile" | "security" | "socialProfiles" | "notifications" | "privacy" | "deleteProfile" | "firstName" | "lastName" | "streetAddress" | "birthday" | "city" | "country" | "profilePhoto" | "profilePhotoText" | "saveChanges" | "upload" | "editPhoto" | "personalDetails" | "personalDetailsText" | "loading" | "profilePhotoChanged" | "profilePhotoChangedError" | "error" | "about" | "aboutText" | "profile" | "profileSettings" | "contact" | "contactText" | "message" | "sendMessage" | "courses" | "books" | "home" | "searchCourses" | "courseDescription" | "bookDescription" | "otherCourses" | "whatsIncluded" | "unlimitedAccess" | "unlimitedAccessToItems" | "expertiseAndInsights" | "learnFromExperts" | "coursesAndBooks" | "coursesAndBooksText" | "learnOnYourSchedule" | "getThisCourse" | "videoCount" | "video" | "youPurchasedCourse" | "watchCourse" | "youCanAccessCourse" | "videos" | "courseVideos" | "rate" | "youCanRateItemText" | "submit" | "edit" | "leaveFeedback" | "description" | "content" | "reviews" | "subscribers" | "nowPlaying" | "addToBookmarks" | "removeFromBookmarks" | "price" | "coursePrice" | "bookPrice" | "drSalamCourses" | "drSalamBooks" | "save" | "trendingCourses" | "trendingBooks" | "otherBooks" | "youPurchasedBook" | "youCanAccessBook" | "youCanAccessBookAfterPayment" | "downloadBook" | "getThisBook" | "sales" | "review" | "resetPasswordEmailSent" | "emailNotValid" | "emailNotFound" | "somethingWentWrong" | "securitySettings" | "changePassword" | "changePasswordText" | "yourCurrentEmailIs" | "newEmailAddress" | "changeEmailAddress" | "update" | "currentPassword" | "newPassword" | "confirmNewPassword" | "passwordStrengthTooltip" | "passwordStrength" | "passwordsDoNotMatch" | "veryWeak" | "weak" | "fair" | "strong" | "good" | "serverError" | "diskSpace" | "totalDiskSpace" | "totalSpace" | "usedSpace" | "usedDiskSpace" | "thisMothBandwidth" | "totalBandwidth" | "usedBandwidth" | "emailAccounts" | "totalEmails" | "usedEmails" | "approved" | "pendingApproval" | "by" | "browse" | "noFileSelected" | "startTyping" | "startTypingForSuggestions" | "addNew" | "new" | "approve" | "add" | "addNewItem" | "catDeleteTextLight" | "catDeleteWarningLight" | "catDeleteText" | "catDeleteWarning" | "catDeleteWarningSubtitle" | "cancel" | "unsavedChangesConfirm" | "deleteLocaleTranslation" | "deleteLocaleTranslationText" | "localesHeading" | "baseLocaleBadge" | "editingContentTranslation" | "localizationNotEnabledForSection" | "invalidLocale" | "cannotDeleteBaseLocaleTranslation" | "localesTableDoesNotExist" | "deleteLocaleTranslationFailed" | "unknownErrorOccurred" | "localeTranslationDeleted" | "itemCreatedSuccessfully" | "itemUpdatedSuccessfully" | "sectionUpdatedSuccessfully" | "itemDeletedSuccessfully" | "createNewEmailAccount" | "emailQuota" | "unlimited" | "quota" | "updateQuota" | "create" | "lastLoginIp" | "passengerApplications" | "totalDatabases" | "usedDatabases" | "deleteEmailAccount" | "totalPageViews" | "totalSessions" | "totalUniqueUsers" | "bounceRate" | "monthlyPageViews" | "topDevices" | "topCountries" | "liveUsers" | "analytics" | "countriesDevices" | "page" | "device" | "liveUsersAreViewing" | "noLiveUsers" | "liveUsersSubtitle" | "sessionsPerUser" | "topSources" | "sources" | "mediums" | "topMediums" | "accountInformation" | "devices" | "countries" | "advancedSettings" | "advancedSettingsWarning" | "googleAnalyticsChangeText" | "googleAnalyticsChangeSubText" | "accountSettings" | "passwordChangeWarning" | "oldPassword" | "adminDetails" | "log" | "select" | "selectOptions" | "settings" | "deleteItemText" | "deleteEmailText" | "dropzoneText" | "noItems" | "removeMarker" | "restoreMarker" | "restoreMarkerTooltip" | "gallery" | "uploadPhotosToGallery" | "deleteGalleryPhoto" | "deleteGalleryPhotoText" | "galleryPhotoDeleted" | "errorsInSubmit" | "newVariant" | "checkAll" | "removeAll" | "cpanelCredentialsNotSet" | "logoutError" | "deletePhoto" | "deletePhotoText" | "deleteVideo" | "deleteVideoText" | "yes" | "no" | "videoDeletedSuccessfully" | "photoDeletedSuccessfully" | "photoMarkedForDeletion" | "undo" | "selectFile" | "mandatory" | "imageDimensionsMustBe" | "maxFileSize" | "imageRecommendedDimensions" | "seeAll" | "allowedExtensions" | "recursiveCategoryDelete" | "recursiveCategoryDeleteWarning" | "unset" | "success" | "today" | "last7Days" | "last30Days" | "last365Days" | "analyticsOverview" | "contentStatistics" | "recentActivity" | "latestContentUpdates" | "recentlyAddedOrModified" | "quickActions" | "systemStatus" | "databaseStatus" | "cacheStatus" | "connected" | "operational" | "view" | "cmsOverview" | "fromLastMonth" | "allConnectionsHealthy" | "cacheFunctioning" | "manageAdmins" | "viewAnalytics" | "fullAccess" | "publisherTooltip" | "customAccess" | "noAccess" | "allPermissions" | "accepts" | "firstPage" | "lastPage" | "readonly" | "mysqlDatabases" | "phpVersion" | "nodeVersion" | "documentRoot" | "version" | "remote" | "database" | "diskUsage" | "users" | "mysqlNotInstalled" | "emailAccountsList" | "theme" | "noAccessToSection" | "languageNotSupported" | "addNewCar" | "createCarListing" | "addRealEstate" | "createPropertyListing" | "viewAndManageAdmins" | "detailedAnalytics" | "totalCars" | "realEstate" | "jobs" | "services" | "addedAgo" | "hoursAgo" | "main" | "categorySections" | "sectionsWithItems" | "simpleSections" | "cpanelPluginMisconfigured" | "loadingCpanelData" | "unableToLoadCpanelData" | "usedLabel" | "totalLabel" | "databases" | "pnpmVersion" | "npmVersion" | "bunVersion" | "cPanelDashboard" | "noTokenProvided" | "invalidCredentials" | "failedToCreateTokens" | "failedToSaveTokens" | "oldPasswordIncorrect" | "usernameAndPasswordRequired" | "invalidFilePath" | "invalidRequest" | "fileNotFound" | "invalidFileType" | "sectionTableIdentifierNotFound" | "checkboxRequired" | "requiredField" | "invalidColorFormat" | "invalidImageExtension" | "invalidFileExtension" | "fileSizeExceeded" | "invalidImageType" | "invalidVideoType" | "invalidDocumentType" | "imageDimensionMismatch" | "couldNotVerifyImageDimensions" | "atLeastOneValueRequired" | "invalidSlugFormat" | "invalidColorPleaseProvideValidHex" | "invalidMapFormat" | "minLength" | "maxLength" | "numberMinLength" | "numberMaxLength" | "numberMinValue" | "numberMaxValue" | "fieldIsRequired" | "unableToLoadImage" | "unableToReadFile" | "errorReadingFile" | "publish" | "level" | "parentId" | "selectFieldConfigError" | "tableIdentifierLabelRequired" | "i18nMustHaveAtLeastOneLanguage" | "fieldMinValueError" | "fieldMaxValueError" | "fieldMinMaxMismatch" | "fieldLengthMismatch" | "invalidDatePleaseProvideValid" | "fileCorrupted" | "fileWriteError" | "fileDeleteError" | "folderNotSet" | "imageNotSet" | "bufferNotSet" | "invalidFileTypeOrExtension" | "fileSizeExceedsMax" | "imageDimensionMismatchDetailed" | "photoFieldBuildRequired" | "documentWriteError" | "documentDeleteError" | "invalidDocumentFileType" | "videoFolderNotSet" | "videoBufferNotSet" | "videoWriteError" | "recordWithFieldExists" | "recordWithCombinationExists" | "sqlQueryNotDefined" | "galleryTableNotSetUp" | "useVideoApiRoute" | "searchDots" | "noItemFound" | "searchOptionsDots" | "availableOptions" | "searchThroughOptions" | "filterOptionsHint" | "openMainMenu" | "openUserMenu" | "profileImage" | "logo" | "newImage" | "autoGeneratedFromLinkedField" | "close" | "clearAllSelectedOptions" | "galleryPhoto" | "parentItemNotFound" | "preSubmitHookFailed" | "failedToBuildLocaleSqlQuery" | "noLocalizedFields" | "sectionHasNoLocalizedFields" | "noLocalizedFieldsHint">, Value_3 extends import("international-types").LocaleValue = import("international-types").ScopedValue<{
|
|
4698
4698
|
readonly adminDoesNotExist: "Admin does not exist";
|
|
4699
4699
|
readonly admins: "Admins";
|
|
4700
4700
|
readonly adminPrivileges: "Admin Privileges";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import type { DateRangeFieldClientConfig } from '../core/fields/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Returns a record of two Zod schemas keyed by startName and endName.
|
|
5
|
+
* Form.tsx calls `schema.extend(dateRangeFieldSchema(input, language))` to
|
|
6
|
+
* register both date fields in a single call.
|
|
7
|
+
*/
|
|
8
|
+
export declare const dateRangeFieldSchema: (field: DateRangeFieldClientConfig, language?: string) => {
|
|
9
|
+
[x: string]: z.ZodDate | z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodDate]>>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=dateRange.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateRange.d.ts","sourceRoot":"","sources":["../../src/validators/dateRange.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AAGzE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,0BAA0B,EAAE,iBAAe;;CAStF,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import getString from '../translations/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Returns a record of two Zod schemas keyed by startName and endName.
|
|
5
|
+
* Form.tsx calls `schema.extend(dateRangeFieldSchema(input, language))` to
|
|
6
|
+
* register both date fields in a single call.
|
|
7
|
+
*/
|
|
8
|
+
export const dateRangeFieldSchema = (field, language = 'en') => {
|
|
9
|
+
const requiredMessage = getString('requiredField', language);
|
|
10
|
+
const base = z.date(requiredMessage);
|
|
11
|
+
const single = field.required ? base : z.union([z.literal(''), base], requiredMessage).optional();
|
|
12
|
+
return {
|
|
13
|
+
[field.startName]: single,
|
|
14
|
+
[field.endName]: single,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { checkboxFieldSchema } from './checkbox.js';
|
|
2
2
|
export { colorFieldSchema } from './color.js';
|
|
3
3
|
export * from './date.js';
|
|
4
|
+
export { dateRangeFieldSchema } from './dateRange.js';
|
|
4
5
|
export { documentFieldSchema } from './document.js';
|
|
5
6
|
export * from './map.js';
|
|
6
7
|
export * from './number.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA"}
|
package/dist/validators/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { checkboxFieldSchema } from './checkbox.js';
|
|
2
2
|
export { colorFieldSchema } from './color.js';
|
|
3
3
|
export * from './date.js';
|
|
4
|
+
export { dateRangeFieldSchema } from './dateRange.js';
|
|
4
5
|
export { documentFieldSchema } from './document.js';
|
|
5
6
|
export * from './map.js';
|
|
6
7
|
export * from './number.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../src/validators/video.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAGrE,eAAO,MAAM,gBAAgB,GAAI,OAAO,sBAAsB,EAAE,iBAAe,
|
|
1
|
+
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../src/validators/video.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAGrE,eAAO,MAAM,gBAAgB,GAAI,OAAO,sBAAsB,EAAE,iBAAe,uHAgE9E,CAAA"}
|
package/dist/validators/video.js
CHANGED
|
@@ -39,7 +39,10 @@ export const videoFieldSchema = (field, language = 'en') => {
|
|
|
39
39
|
inclusive: true,
|
|
40
40
|
type: 'number',
|
|
41
41
|
origin: 'number',
|
|
42
|
-
message: getString('fileSizeExceeded', language, {
|
|
42
|
+
message: getString('fileSizeExceeded', language, {
|
|
43
|
+
size: field.maxFileSize.size,
|
|
44
|
+
unit: field.maxFileSize.unit,
|
|
45
|
+
}),
|
|
43
46
|
});
|
|
44
47
|
}
|
|
45
48
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextjs-cms",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
"types": "./dist/auth/lib/index.d.ts",
|
|
46
46
|
"default": "./dist/auth/lib/index.js"
|
|
47
47
|
},
|
|
48
|
+
"./auth/csrf": {
|
|
49
|
+
"types": "./dist/auth/csrf.d.ts",
|
|
50
|
+
"default": "./dist/auth/csrf.js"
|
|
51
|
+
},
|
|
48
52
|
"./auth/hooks": {
|
|
49
53
|
"types": "./dist/auth/hooks/index.d.ts",
|
|
50
54
|
"default": "./dist/auth/hooks/index.js"
|
|
@@ -182,7 +186,7 @@
|
|
|
182
186
|
"lodash-es": "^4.17.21",
|
|
183
187
|
"lucide-react": "^0.563.0",
|
|
184
188
|
"mysql2": "^3.12.0",
|
|
185
|
-
"next": "
|
|
189
|
+
"next": "16.1.1",
|
|
186
190
|
"next-international": "^1.3.1",
|
|
187
191
|
"ora": "9.0.0",
|
|
188
192
|
"react": "19.2.3",
|
|
@@ -206,8 +210,8 @@
|
|
|
206
210
|
"tsx": "^4.20.6",
|
|
207
211
|
"typescript": "^5.9.2",
|
|
208
212
|
"@lzcms/eslint-config": "0.3.0",
|
|
209
|
-
"@lzcms/
|
|
210
|
-
"@lzcms/
|
|
213
|
+
"@lzcms/prettier-config": "0.1.0",
|
|
214
|
+
"@lzcms/tsconfig": "0.1.0"
|
|
211
215
|
},
|
|
212
216
|
"license": "MIT",
|
|
213
217
|
"keywords": [
|