diff --git a/packages/admin/dashboard/package.json b/packages/admin/dashboard/package.json index c06629a1d8..2fdadda332 100644 --- a/packages/admin/dashboard/package.json +++ b/packages/admin/dashboard/package.json @@ -7,6 +7,9 @@ "build": "tsup && node ./scripts/generate-types.js", "build:preview": "vite build", "preview": "vite preview", + "test": "vitest --run", + "i18n:validate": "node ./scripts/i18n/validate-translation.js", + "i18n:schema": "node ./scripts/i18n/generate-schema.js", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0" }, "main": "dist/app.js", @@ -80,6 +83,7 @@ "@types/react": "^18.2.79", "@types/react-dom": "^18.2.25", "@vitejs/plugin-react": "4.2.1", + "ajv": "^8.17.1", "autoprefixer": "^10.4.17", "postcss": "^8.4.33", "prettier": "^3.1.1", @@ -87,7 +91,8 @@ "tsup": "^8.0.2", "typescript": "5.2.2", "vite": "^5.2.11", - "vite-plugin-inspect": "^0.8.7" + "vite-plugin-inspect": "^0.8.7", + "vitest": "^2.1.4" }, "packageManager": "yarn@3.2.1" } diff --git a/packages/admin/dashboard/scripts/i18n/generate-schema.js b/packages/admin/dashboard/scripts/i18n/generate-schema.js new file mode 100644 index 0000000000..2175b5483e --- /dev/null +++ b/packages/admin/dashboard/scripts/i18n/generate-schema.js @@ -0,0 +1,49 @@ +const fs = require("fs") +const path = require("path") + +const translationsDir = path.join(__dirname, "../../src/i18n/translations") +const enPath = path.join(translationsDir, "en.json") +const schemaPath = path.join(translationsDir, "$schema.json") + +function generateSchemaFromObject(obj) { + if (typeof obj !== "object" || obj === null) { + return { type: typeof obj } + } + + if (Array.isArray(obj)) { + return { + type: "array", + items: generateSchemaFromObject(obj[0] || "string"), + } + } + + const properties = {} + const required = [] + + Object.entries(obj).forEach(([key, value]) => { + properties[key] = generateSchemaFromObject(value) + required.push(key) + }) + + return { + type: "object", + properties, + required, + additionalProperties: false, + } +} + +try { + const enJson = JSON.parse(fs.readFileSync(enPath, "utf-8")) + + const schema = { + $schema: "http://json-schema.org/draft-07/schema#", + ...generateSchemaFromObject(enJson), + } + + fs.writeFileSync(schemaPath, JSON.stringify(schema, null, 2)) + console.log("Schema generated successfully at:", schemaPath) +} catch (error) { + console.error("Error generating schema:", error.message) + process.exit(1) +} diff --git a/packages/admin/dashboard/scripts/i18n/validate-translation.js b/packages/admin/dashboard/scripts/i18n/validate-translation.js new file mode 100644 index 0000000000..10f1efe7de --- /dev/null +++ b/packages/admin/dashboard/scripts/i18n/validate-translation.js @@ -0,0 +1,47 @@ +const Ajv = require("ajv") +const fs = require("fs") +const path = require("path") +const schema = require("../../src/i18n/translations/$schema.json") + +const ajv = new Ajv({ allErrors: true }) +const validate = ajv.compile(schema) + +// Get file name from command line arguments +const fileName = process.argv[2] + +if (!fileName) { + console.error("Please provide a file name (e.g., en.json) as an argument.") + process.exit(1) +} + +const filePath = path.join(__dirname, "../../src/i18n/translations", fileName) + +try { + const translations = JSON.parse(fs.readFileSync(filePath, "utf-8")) + + if (!validate(translations)) { + console.error(`\nValidation failed for ${fileName}:`) + validate.errors?.forEach((error) => { + if (error.keyword === "required") { + const missingKeys = error.params.missingProperty + console.error( + ` Missing required key: "${missingKeys}" at ${error.instancePath}` + ) + } else if (error.keyword === "additionalProperties") { + const extraKey = error.params.additionalProperty + console.error( + ` Unexpected key: "${extraKey}" at ${error.instancePath}` + ) + } else { + console.error(` Error: ${error.message} at ${error.instancePath}`) + } + }) + process.exit(1) + } else { + console.log(`${fileName} matches the schema.`) + process.exit(0) + } +} catch (error) { + console.error(`Error reading or parsing file: ${error.message}`) + process.exit(1) +} diff --git a/packages/admin/dashboard/src/i18n/translations/$schema.json b/packages/admin/dashboard/src/i18n/translations/$schema.json index 7214957f47..4a488e2c25 100644 --- a/packages/admin/dashboard/src/i18n/translations/$schema.json +++ b/packages/admin/dashboard/src/i18n/translations/$schema.json @@ -1,6 +1,5 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "additionalProperties": false, "type": "object", "properties": { "$schema": { @@ -9,40 +8,1534 @@ "general": { "type": "object", "properties": { - "cancel": { + "ascending": { "type": "string" }, + "descending": { + "type": "string" + }, + "add": { + "type": "string" + }, + "start": { + "type": "string" + }, + "end": { + "type": "string" + }, + "open": { + "type": "string" + }, + "close": { + "type": "string" + }, + "apply": { + "type": "string" + }, + "range": { + "type": "string" + }, + "search": { + "type": "string" + }, + "of": { + "type": "string" + }, + "results": { + "type": "string" + }, + "pages": { + "type": "string" + }, + "next": { + "type": "string" + }, + "prev": { + "type": "string" + }, + "is": { + "type": "string" + }, + "timeline": { + "type": "string" + }, + "success": { + "type": "string" + }, + "warning": { + "type": "string" + }, + "tip": { + "type": "string" + }, + "error": { + "type": "string" + }, + "select": { + "type": "string" + }, + "selected": { + "type": "string" + }, + "enabled": { + "type": "string" + }, + "disabled": { + "type": "string" + }, + "expired": { + "type": "string" + }, + "active": { + "type": "string" + }, + "revoked": { + "type": "string" + }, + "new": { + "type": "string" + }, + "modified": { + "type": "string" + }, + "added": { + "type": "string" + }, + "removed": { + "type": "string" + }, + "admin": { + "type": "string" + }, + "store": { + "type": "string" + }, + "details": { + "type": "string" + }, + "items_one": { + "type": "string" + }, + "items_other": { + "type": "string" + }, + "countSelected": { + "type": "string" + }, + "countOfTotalSelected": { + "type": "string" + }, + "plusCount": { + "type": "string" + }, + "plusCountMore": { + "type": "string" + }, + "areYouSure": { + "type": "string" + }, + "noRecordsFound": { + "type": "string" + }, + "typeToConfirm": { + "type": "string" + }, + "noResultsTitle": { + "type": "string" + }, + "noResultsMessage": { + "type": "string" + }, + "noSearchResults": { + "type": "string" + }, + "noSearchResultsFor": { + "type": "string" + }, + "noRecordsTitle": { + "type": "string" + }, + "noRecordsMessage": { + "type": "string" + }, + "unsavedChangesTitle": { + "type": "string" + }, + "unsavedChangesDescription": { + "type": "string" + }, + "includesTaxTooltip": { + "type": "string" + }, + "excludesTaxTooltip": { + "type": "string" + }, + "noMoreData": { + "type": "string" + } + }, + "required": [ + "ascending", + "descending", + "add", + "start", + "end", + "open", + "close", + "apply", + "range", + "search", + "of", + "results", + "pages", + "next", + "prev", + "is", + "timeline", + "success", + "warning", + "tip", + "error", + "select", + "selected", + "enabled", + "disabled", + "expired", + "active", + "revoked", + "new", + "modified", + "added", + "removed", + "admin", + "store", + "details", + "items_one", + "items_other", + "countSelected", + "countOfTotalSelected", + "plusCount", + "plusCountMore", + "areYouSure", + "noRecordsFound", + "typeToConfirm", + "noResultsTitle", + "noResultsMessage", + "noSearchResults", + "noSearchResultsFor", + "noRecordsTitle", + "noRecordsMessage", + "unsavedChangesTitle", + "unsavedChangesDescription", + "includesTaxTooltip", + "excludesTaxTooltip", + "noMoreData" + ], + "additionalProperties": false + }, + "json": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "numberOfKeys_one": { + "type": "string" + }, + "numberOfKeys_other": { + "type": "string" + }, + "drawer": { + "type": "object", + "properties": { + "header_one": { + "type": "string" + }, + "header_other": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "header_one", + "header_other", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "numberOfKeys_one", + "numberOfKeys_other", + "drawer" + ], + "additionalProperties": false + }, + "metadata": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "numberOfKeys_one": { + "type": "string" + }, + "numberOfKeys_other": { + "type": "string" + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast": { + "type": "string" + }, + "actions": { + "type": "object", + "properties": { + "insertRowAbove": { + "type": "string" + }, + "insertRowBelow": { + "type": "string" + }, + "deleteRow": { + "type": "string" + } + }, + "required": [ + "insertRowAbove", + "insertRowBelow", + "deleteRow" + ], + "additionalProperties": false + }, + "labels": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + }, + "complexRow": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "description": { + "type": "string" + }, + "tooltip": { + "type": "string" + } + }, + "required": [ + "label", + "description", + "tooltip" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "description", + "successToast", + "actions", + "labels", + "complexRow" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "numberOfKeys_one", + "numberOfKeys_other", + "edit" + ], + "additionalProperties": false + }, + "validation": { + "type": "object", + "properties": { + "mustBeInt": { + "type": "string" + }, + "mustBePositive": { + "type": "string" + } + }, + "required": [ + "mustBeInt", + "mustBePositive" + ], + "additionalProperties": false + }, + "actions": { + "type": "object", + "properties": { "save": { "type": "string" }, + "saveAsDraft": { + "type": "string" + }, + "copy": { + "type": "string" + }, + "copied": { + "type": "string" + }, + "duplicate": { + "type": "string" + }, + "publish": { + "type": "string" + }, "create": { "type": "string" }, "delete": { "type": "string" }, + "remove": { + "type": "string" + }, + "revoke": { + "type": "string" + }, + "cancel": { + "type": "string" + }, + "forceConfirm": { + "type": "string" + }, + "continueEdit": { + "type": "string" + }, + "enable": { + "type": "string" + }, + "disable": { + "type": "string" + }, + "undo": { + "type": "string" + }, + "complete": { + "type": "string" + }, + "viewDetails": { + "type": "string" + }, + "back": { + "type": "string" + }, + "close": { + "type": "string" + }, + "showMore": { + "type": "string" + }, + "continue": { + "type": "string" + }, + "continueWithEmail": { + "type": "string" + }, + "idCopiedToClipboard": { + "type": "string" + }, + "addReason": { + "type": "string" + }, + "addNote": { + "type": "string" + }, + "reset": { + "type": "string" + }, + "confirm": { + "type": "string" + }, "edit": { "type": "string" }, - "extensions": { + "addItems": { "type": "string" }, - "details": { + "download": { + "type": "string" + }, + "clear": { + "type": "string" + }, + "clearAll": { + "type": "string" + }, + "apply": { + "type": "string" + }, + "add": { + "type": "string" + }, + "select": { + "type": "string" + }, + "browse": { + "type": "string" + }, + "logout": { + "type": "string" + }, + "hide": { + "type": "string" + }, + "export": { + "type": "string" + }, + "import": { "type": "string" } }, "required": [ - "cancel", "save", + "saveAsDraft", + "copy", + "copied", + "duplicate", + "publish", "create", - "createItem", "delete", - "deleteItem", + "remove", + "revoke", + "cancel", + "forceConfirm", + "continueEdit", + "enable", + "disable", + "undo", + "complete", + "viewDetails", + "back", + "close", + "showMore", + "continue", + "continueWithEmail", + "idCopiedToClipboard", + "addReason", + "addNote", + "reset", + "confirm", "edit", - "editItem", - "extensions", - "details" - ] + "addItems", + "download", + "clear", + "clearAll", + "apply", + "add", + "select", + "browse", + "logout", + "hide", + "export", + "import" + ], + "additionalProperties": false + }, + "operators": { + "type": "object", + "properties": { + "in": { + "type": "string" + } + }, + "required": [ + "in" + ], + "additionalProperties": false + }, + "app": { + "type": "object", + "properties": { + "search": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "allAreas": { + "type": "string" + }, + "navigation": { + "type": "string" + }, + "openResult": { + "type": "string" + }, + "showMore": { + "type": "string" + }, + "placeholder": { + "type": "string" + }, + "noResultsTitle": { + "type": "string" + }, + "noResultsMessage": { + "type": "string" + }, + "emptySearchTitle": { + "type": "string" + }, + "emptySearchMessage": { + "type": "string" + }, + "loadMore": { + "type": "string" + }, + "groups": { + "type": "object", + "properties": { + "all": { + "type": "string" + }, + "customer": { + "type": "string" + }, + "customerGroup": { + "type": "string" + }, + "product": { + "type": "string" + }, + "productVariant": { + "type": "string" + }, + "inventory": { + "type": "string" + }, + "reservation": { + "type": "string" + }, + "category": { + "type": "string" + }, + "collection": { + "type": "string" + }, + "order": { + "type": "string" + }, + "promotion": { + "type": "string" + }, + "campaign": { + "type": "string" + }, + "priceList": { + "type": "string" + }, + "user": { + "type": "string" + }, + "region": { + "type": "string" + }, + "taxRegion": { + "type": "string" + }, + "returnReason": { + "type": "string" + }, + "salesChannel": { + "type": "string" + }, + "productType": { + "type": "string" + }, + "productTag": { + "type": "string" + }, + "location": { + "type": "string" + }, + "shippingProfile": { + "type": "string" + }, + "publishableApiKey": { + "type": "string" + }, + "secretApiKey": { + "type": "string" + }, + "command": { + "type": "string" + }, + "navigation": { + "type": "string" + } + }, + "required": [ + "all", + "customer", + "customerGroup", + "product", + "productVariant", + "inventory", + "reservation", + "category", + "collection", + "order", + "promotion", + "campaign", + "priceList", + "user", + "region", + "taxRegion", + "returnReason", + "salesChannel", + "productType", + "productTag", + "location", + "shippingProfile", + "publishableApiKey", + "secretApiKey", + "command", + "navigation" + ], + "additionalProperties": false + } + }, + "required": [ + "label", + "title", + "description", + "allAreas", + "navigation", + "openResult", + "showMore", + "placeholder", + "noResultsTitle", + "noResultsMessage", + "emptySearchTitle", + "emptySearchMessage", + "loadMore", + "groups" + ], + "additionalProperties": false + }, + "keyboardShortcuts": { + "type": "object", + "properties": { + "pageShortcut": { + "type": "string" + }, + "settingShortcut": { + "type": "string" + }, + "commandShortcut": { + "type": "string" + }, + "then": { + "type": "string" + }, + "navigation": { + "type": "object", + "properties": { + "goToOrders": { + "type": "string" + }, + "goToProducts": { + "type": "string" + }, + "goToCollections": { + "type": "string" + }, + "goToCategories": { + "type": "string" + }, + "goToCustomers": { + "type": "string" + }, + "goToCustomerGroups": { + "type": "string" + }, + "goToInventory": { + "type": "string" + }, + "goToReservations": { + "type": "string" + }, + "goToPriceLists": { + "type": "string" + }, + "goToPromotions": { + "type": "string" + }, + "goToCampaigns": { + "type": "string" + } + }, + "required": [ + "goToOrders", + "goToProducts", + "goToCollections", + "goToCategories", + "goToCustomers", + "goToCustomerGroups", + "goToInventory", + "goToReservations", + "goToPriceLists", + "goToPromotions", + "goToCampaigns" + ], + "additionalProperties": false + }, + "settings": { + "type": "object", + "properties": { + "goToSettings": { + "type": "string" + }, + "goToStore": { + "type": "string" + }, + "goToUsers": { + "type": "string" + }, + "goToRegions": { + "type": "string" + }, + "goToTaxRegions": { + "type": "string" + }, + "goToSalesChannels": { + "type": "string" + }, + "goToProductTypes": { + "type": "string" + }, + "goToLocations": { + "type": "string" + }, + "goToPublishableApiKeys": { + "type": "string" + }, + "goToSecretApiKeys": { + "type": "string" + }, + "goToWorkflows": { + "type": "string" + }, + "goToProfile": { + "type": "string" + }, + "goToReturnReasons": { + "type": "string" + } + }, + "required": [ + "goToSettings", + "goToStore", + "goToUsers", + "goToRegions", + "goToTaxRegions", + "goToSalesChannels", + "goToProductTypes", + "goToLocations", + "goToPublishableApiKeys", + "goToSecretApiKeys", + "goToWorkflows", + "goToProfile", + "goToReturnReasons" + ], + "additionalProperties": false + } + }, + "required": [ + "pageShortcut", + "settingShortcut", + "commandShortcut", + "then", + "navigation", + "settings" + ], + "additionalProperties": false + }, + "menus": { + "type": "object", + "properties": { + "user": { + "type": "object", + "properties": { + "documentation": { + "type": "string" + }, + "changelog": { + "type": "string" + }, + "shortcuts": { + "type": "string" + }, + "profileSettings": { + "type": "string" + }, + "theme": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "dark": { + "type": "string" + }, + "light": { + "type": "string" + }, + "system": { + "type": "string" + } + }, + "required": [ + "label", + "dark", + "light", + "system" + ], + "additionalProperties": false + } + }, + "required": [ + "documentation", + "changelog", + "shortcuts", + "profileSettings", + "theme" + ], + "additionalProperties": false + }, + "store": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "storeSettings": { + "type": "string" + } + }, + "required": [ + "label", + "storeSettings" + ], + "additionalProperties": false + }, + "actions": { + "type": "object", + "properties": { + "logout": { + "type": "string" + } + }, + "required": [ + "logout" + ], + "additionalProperties": false + } + }, + "required": [ + "user", + "store", + "actions" + ], + "additionalProperties": false + }, + "nav": { + "type": "object", + "properties": { + "accessibility": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "common": { + "type": "object", + "properties": { + "extensions": { + "type": "string" + } + }, + "required": [ + "extensions" + ], + "additionalProperties": false + }, + "main": { + "type": "object", + "properties": { + "store": { + "type": "string" + }, + "storeSettings": { + "type": "string" + } + }, + "required": [ + "store", + "storeSettings" + ], + "additionalProperties": false + }, + "settings": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "general": { + "type": "string" + }, + "developer": { + "type": "string" + }, + "myAccount": { + "type": "string" + } + }, + "required": [ + "header", + "general", + "developer", + "myAccount" + ], + "additionalProperties": false + } + }, + "required": [ + "accessibility", + "common", + "main", + "settings" + ], + "additionalProperties": false + } + }, + "required": [ + "search", + "keyboardShortcuts", + "menus", + "nav" + ], + "additionalProperties": false + }, + "dataGrid": { + "type": "object", + "properties": { + "columns": { + "type": "object", + "properties": { + "view": { + "type": "string" + }, + "resetToDefault": { + "type": "string" + }, + "disabled": { + "type": "string" + } + }, + "required": [ + "view", + "resetToDefault", + "disabled" + ], + "additionalProperties": false + }, + "shortcuts": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "commands": { + "type": "object", + "properties": { + "undo": { + "type": "string" + }, + "redo": { + "type": "string" + }, + "copy": { + "type": "string" + }, + "paste": { + "type": "string" + }, + "edit": { + "type": "string" + }, + "delete": { + "type": "string" + }, + "clear": { + "type": "string" + }, + "moveUp": { + "type": "string" + }, + "moveDown": { + "type": "string" + }, + "moveLeft": { + "type": "string" + }, + "moveRight": { + "type": "string" + }, + "moveTop": { + "type": "string" + }, + "moveBottom": { + "type": "string" + }, + "selectDown": { + "type": "string" + }, + "selectUp": { + "type": "string" + }, + "selectColumnDown": { + "type": "string" + }, + "selectColumnUp": { + "type": "string" + }, + "focusToolbar": { + "type": "string" + }, + "focusCancel": { + "type": "string" + } + }, + "required": [ + "undo", + "redo", + "copy", + "paste", + "edit", + "delete", + "clear", + "moveUp", + "moveDown", + "moveLeft", + "moveRight", + "moveTop", + "moveBottom", + "selectDown", + "selectUp", + "selectColumnDown", + "selectColumnUp", + "focusToolbar", + "focusCancel" + ], + "additionalProperties": false + } + }, + "required": [ + "label", + "commands" + ], + "additionalProperties": false + }, + "errors": { + "type": "object", + "properties": { + "fixError": { + "type": "string" + }, + "count_one": { + "type": "string" + }, + "count_other": { + "type": "string" + } + }, + "required": [ + "fixError", + "count_one", + "count_other" + ], + "additionalProperties": false + } + }, + "required": [ + "columns", + "shortcuts", + "errors" + ], + "additionalProperties": false + }, + "filters": { + "type": "object", + "properties": { + "date": { + "type": "object", + "properties": { + "today": { + "type": "string" + }, + "lastSevenDays": { + "type": "string" + }, + "lastThirtyDays": { + "type": "string" + }, + "lastNinetyDays": { + "type": "string" + }, + "lastTwelveMonths": { + "type": "string" + }, + "custom": { + "type": "string" + }, + "from": { + "type": "string" + }, + "to": { + "type": "string" + } + }, + "required": [ + "today", + "lastSevenDays", + "lastThirtyDays", + "lastNinetyDays", + "lastTwelveMonths", + "custom", + "from", + "to" + ], + "additionalProperties": false + }, + "compare": { + "type": "object", + "properties": { + "lessThan": { + "type": "string" + }, + "greaterThan": { + "type": "string" + }, + "exact": { + "type": "string" + }, + "range": { + "type": "string" + }, + "lessThanLabel": { + "type": "string" + }, + "greaterThanLabel": { + "type": "string" + }, + "andLabel": { + "type": "string" + } + }, + "required": [ + "lessThan", + "greaterThan", + "exact", + "range", + "lessThanLabel", + "greaterThanLabel", + "andLabel" + ], + "additionalProperties": false + }, + "addFilter": { + "type": "string" + } + }, + "required": [ + "date", + "compare", + "addFilter" + ], + "additionalProperties": false + }, + "errorBoundary": { + "type": "object", + "properties": { + "badRequestTitle": { + "type": "string" + }, + "badRequestMessage": { + "type": "string" + }, + "notFoundTitle": { + "type": "string" + }, + "notFoundMessage": { + "type": "string" + }, + "internalServerErrorTitle": { + "type": "string" + }, + "internalServerErrorMessage": { + "type": "string" + }, + "defaultTitle": { + "type": "string" + }, + "defaultMessage": { + "type": "string" + }, + "noMatchMessage": { + "type": "string" + }, + "backToDashboard": { + "type": "string" + } + }, + "required": [ + "badRequestTitle", + "badRequestMessage", + "notFoundTitle", + "notFoundMessage", + "internalServerErrorTitle", + "internalServerErrorMessage", + "defaultTitle", + "defaultMessage", + "noMatchMessage", + "backToDashboard" + ], + "additionalProperties": false + }, + "addresses": { + "type": "object", + "properties": { + "shippingAddress": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "editHeader": { + "type": "string" + }, + "editLabel": { + "type": "string" + }, + "label": { + "type": "string" + } + }, + "required": [ + "header", + "editHeader", + "editLabel", + "label" + ], + "additionalProperties": false + }, + "billingAddress": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "editHeader": { + "type": "string" + }, + "editLabel": { + "type": "string" + }, + "label": { + "type": "string" + }, + "sameAsShipping": { + "type": "string" + } + }, + "required": [ + "header", + "editHeader", + "editLabel", + "label", + "sameAsShipping" + ], + "additionalProperties": false + }, + "contactHeading": { + "type": "string" + }, + "locationHeading": { + "type": "string" + } + }, + "required": [ + "shippingAddress", + "billingAddress", + "contactHeading", + "locationHeading" + ], + "additionalProperties": false + }, + "email": { + "type": "object", + "properties": { + "editHeader": { + "type": "string" + }, + "editLabel": { + "type": "string" + }, + "label": { + "type": "string" + } + }, + "required": [ + "editHeader", + "editLabel", + "label" + ], + "additionalProperties": false + }, + "transferOwnership": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "label": { + "type": "string" + }, + "details": { + "type": "object", + "properties": { + "order": { + "type": "string" + }, + "draft": { + "type": "string" + } + }, + "required": [ + "order", + "draft" + ], + "additionalProperties": false + }, + "currentOwner": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "newOwner": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "validation": { + "type": "object", + "properties": { + "mustBeDifferent": { + "type": "string" + }, + "required": { + "type": "string" + } + }, + "required": [ + "mustBeDifferent", + "required" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "label", + "details", + "currentOwner", + "newOwner", + "validation" + ], + "additionalProperties": false + }, + "sales_channels": { + "type": "object", + "properties": { + "availableIn": { + "type": "string" + } + }, + "required": [ + "availableIn" + ], + "additionalProperties": false }, "products": { "type": "object", @@ -50,143 +1543,7224 @@ "domain": { "type": "string" }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "tabs": { + "type": "object", + "properties": { + "details": { + "type": "string" + }, + "organize": { + "type": "string" + }, + "variants": { + "type": "string" + }, + "inventory": { + "type": "string" + } + }, + "required": [ + "details", + "organize", + "variants", + "inventory" + ], + "additionalProperties": false + }, + "errors": { + "type": "object", + "properties": { + "variants": { + "type": "string" + }, + "options": { + "type": "string" + }, + "uniqueSku": { + "type": "string" + } + }, + "required": [ + "variants", + "options", + "uniqueSku" + ], + "additionalProperties": false + }, + "inventory": { + "type": "object", + "properties": { + "heading": { + "type": "string" + }, + "label": { + "type": "string" + }, + "itemPlaceholder": { + "type": "string" + }, + "quantityPlaceholder": { + "type": "string" + } + }, + "required": [ + "heading", + "label", + "itemPlaceholder", + "quantityPlaceholder" + ], + "additionalProperties": false + }, + "variants": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "subHeadingTitle": { + "type": "string" + }, + "subHeadingDescription": { + "type": "string" + }, + "optionTitle": { + "type": "object", + "properties": { + "placeholder": { + "type": "string" + } + }, + "required": [ + "placeholder" + ], + "additionalProperties": false + }, + "optionValues": { + "type": "object", + "properties": { + "placeholder": { + "type": "string" + } + }, + "required": [ + "placeholder" + ], + "additionalProperties": false + }, + "productVariants": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "alert": { + "type": "string" + }, + "tip": { + "type": "string" + } + }, + "required": [ + "label", + "hint", + "alert", + "tip" + ], + "additionalProperties": false + }, + "productOptions": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "subHeadingTitle", + "subHeadingDescription", + "optionTitle", + "optionValues", + "productVariants", + "productOptions" + ], + "additionalProperties": false + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "tabs", + "errors", + "inventory", + "variants", + "successToast" + ], + "additionalProperties": false + }, + "export": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "description": { + "type": "string" + }, + "success": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "filters": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "columns": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "description", + "success", + "filters", + "columns" + ], + "additionalProperties": false + }, + "import": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "uploadLabel": { + "type": "string" + }, + "uploadHint": { + "type": "string" + }, + "description": { + "type": "string" + }, + "template": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "upload": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "preprocessing": { + "type": "string" + }, + "productsToCreate": { + "type": "string" + }, + "productsToUpdate": { + "type": "string" + } + }, + "required": [ + "title", + "description", + "preprocessing", + "productsToCreate", + "productsToUpdate" + ], + "additionalProperties": false + }, + "success": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "uploadLabel", + "uploadHint", + "description", + "template", + "upload", + "success" + ], + "additionalProperties": false + }, + "deleteWarning": { + "type": "string" + }, "variants": { "type": "string" }, - "availableInSalesChannels": { + "attributes": { "type": "string" + }, + "editProduct": { + "type": "string" + }, + "editAttributes": { + "type": "string" + }, + "editOptions": { + "type": "string" + }, + "editPrices": { + "type": "string" + }, + "media": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "editHint": { + "type": "string" + }, + "makeThumbnail": { + "type": "string" + }, + "uploadImagesLabel": { + "type": "string" + }, + "uploadImagesHint": { + "type": "string" + }, + "invalidFileType": { + "type": "string" + }, + "failedToUpload": { + "type": "string" + }, + "deleteWarning_one": { + "type": "string" + }, + "deleteWarning_other": { + "type": "string" + }, + "deleteWarningWithThumbnail_one": { + "type": "string" + }, + "deleteWarningWithThumbnail_other": { + "type": "string" + }, + "thumbnailTooltip": { + "type": "string" + }, + "galleryLabel": { + "type": "string" + }, + "downloadImageLabel": { + "type": "string" + }, + "deleteImageLabel": { + "type": "string" + }, + "emptyState": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "description": { + "type": "string" + }, + "action": { + "type": "string" + } + }, + "required": [ + "header", + "description", + "action" + ], + "additionalProperties": false + } + }, + "required": [ + "label", + "editHint", + "makeThumbnail", + "uploadImagesLabel", + "uploadImagesHint", + "invalidFileType", + "failedToUpload", + "deleteWarning_one", + "deleteWarning_other", + "deleteWarningWithThumbnail_one", + "deleteWarningWithThumbnail_other", + "thumbnailTooltip", + "galleryLabel", + "downloadImageLabel", + "deleteImageLabel", + "emptyState" + ], + "additionalProperties": false + }, + "discountableHint": { + "type": "string" + }, + "noSalesChannels": { + "type": "string" + }, + "variantCount_one": { + "type": "string" + }, + "variantCount_other": { + "type": "string" + }, + "deleteVariantWarning": { + "type": "string" + }, + "productStatus": { + "type": "object", + "properties": { + "draft": { + "type": "string" + }, + "published": { + "type": "string" + }, + "proposed": { + "type": "string" + }, + "rejected": { + "type": "string" + } + }, + "required": [ + "draft", + "published", + "proposed", + "rejected" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "title": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "subtitle": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "handle": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "tooltip": { + "type": "string" + } + }, + "required": [ + "label", + "tooltip" + ], + "additionalProperties": false + }, + "description": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "discountable": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "type": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "collection": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "categories": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "tags": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "sales_channels": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "countryOrigin": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "material": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "width": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "length": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "height": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "weight": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "options": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "add": { + "type": "string" + }, + "optionTitle": { + "type": "string" + }, + "optionTitlePlaceholder": { + "type": "string" + }, + "variations": { + "type": "string" + }, + "variantionsPlaceholder": { + "type": "string" + } + }, + "required": [ + "label", + "hint", + "add", + "optionTitle", + "optionTitlePlaceholder", + "variations", + "variantionsPlaceholder" + ], + "additionalProperties": false + }, + "variants": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "mid_code": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "hs_code": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + } + }, + "required": [ + "title", + "subtitle", + "handle", + "description", + "discountable", + "type", + "collection", + "categories", + "tags", + "sales_channels", + "countryOrigin", + "material", + "width", + "length", + "height", + "weight", + "options", + "variants", + "mid_code", + "hs_code" + ], + "additionalProperties": false + }, + "variant": { + "type": "object", + "properties": { + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "success": { + "type": "string" + } + }, + "required": [ + "header", + "success" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + } + }, + "required": [ + "header" + ], + "additionalProperties": false + }, + "deleteWarning": { + "type": "string" + }, + "pricesPagination": { + "type": "string" + }, + "tableItemAvailable": { + "type": "string" + }, + "tableItem_one": { + "type": "string" + }, + "tableItem_other": { + "type": "string" + }, + "inventory": { + "type": "object", + "properties": { + "notManaged": { + "type": "string" + }, + "manageItems": { + "type": "string" + }, + "notManagedDesc": { + "type": "string" + }, + "manageKit": { + "type": "string" + }, + "navigateToItem": { + "type": "string" + }, + "actions": { + "type": "object", + "properties": { + "inventoryItems": { + "type": "string" + }, + "inventoryKit": { + "type": "string" + } + }, + "required": [ + "inventoryItems", + "inventoryKit" + ], + "additionalProperties": false + }, + "inventoryKit": { + "type": "string" + }, + "inventoryKitHint": { + "type": "string" + }, + "validation": { + "type": "object", + "properties": { + "itemId": { + "type": "string" + }, + "quantity": { + "type": "string" + } + }, + "required": [ + "itemId", + "quantity" + ], + "additionalProperties": false + }, + "header": { + "type": "string" + }, + "editItemDetails": { + "type": "string" + }, + "manageInventoryLabel": { + "type": "string" + }, + "manageInventoryHint": { + "type": "string" + }, + "allowBackordersLabel": { + "type": "string" + }, + "allowBackordersHint": { + "type": "string" + }, + "toast": { + "type": "object", + "properties": { + "levelsBatch": { + "type": "string" + }, + "update": { + "type": "string" + }, + "updateLevel": { + "type": "string" + }, + "itemsManageSuccess": { + "type": "string" + } + }, + "required": [ + "levelsBatch", + "update", + "updateLevel", + "itemsManageSuccess" + ], + "additionalProperties": false + } + }, + "required": [ + "notManaged", + "manageItems", + "notManagedDesc", + "manageKit", + "navigateToItem", + "actions", + "inventoryKit", + "inventoryKitHint", + "validation", + "header", + "editItemDetails", + "manageInventoryLabel", + "manageInventoryHint", + "allowBackordersLabel", + "allowBackordersHint", + "toast" + ], + "additionalProperties": false + } + }, + "required": [ + "edit", + "create", + "deleteWarning", + "pricesPagination", + "tableItemAvailable", + "tableItem_one", + "tableItem_other", + "inventory" + ], + "additionalProperties": false + }, + "options": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "successToast" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "successToast" + ], + "additionalProperties": false + }, + "deleteWarning": { + "type": "string" + } + }, + "required": [ + "header", + "edit", + "create", + "deleteWarning" + ], + "additionalProperties": false + }, + "organization": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "toasts": { + "type": "object", + "properties": { + "success": { + "type": "string" + } + }, + "required": [ + "success" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "toasts" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "edit" + ], + "additionalProperties": false + }, + "toasts": { + "type": "object", + "properties": { + "delete": { + "type": "object", + "properties": { + "success": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "header", + "description" + ], + "additionalProperties": false + }, + "error": { + "type": "object", + "properties": { + "header": { + "type": "string" + } + }, + "required": [ + "header" + ], + "additionalProperties": false + } + }, + "required": [ + "success", + "error" + ], + "additionalProperties": false + } + }, + "required": [ + "delete" + ], + "additionalProperties": false } }, - "required": ["domain", "variants", "availableInSalesChannels"] - }, - "categories": { - "type": "object", - "properties": { - "domain": { - "type": "string" - } - }, - "required": ["domain"] + "required": [ + "domain", + "list", + "create", + "export", + "import", + "deleteWarning", + "variants", + "attributes", + "editProduct", + "editAttributes", + "editOptions", + "editPrices", + "media", + "discountableHint", + "noSalesChannels", + "variantCount_one", + "variantCount_other", + "deleteVariantWarning", + "productStatus", + "fields", + "variant", + "options", + "organization", + "toasts" + ], + "additionalProperties": false }, "collections": { "type": "object", "properties": { "domain": { "type": "string" + }, + "subtitle": { + "type": "string" + }, + "createCollection": { + "type": "string" + }, + "createCollectionHint": { + "type": "string" + }, + "createSuccess": { + "type": "string" + }, + "editCollection": { + "type": "string" + }, + "handleTooltip": { + "type": "string" + }, + "deleteWarning": { + "type": "string" + }, + "removeSingleProductWarning": { + "type": "string" + }, + "removeProductsWarning_one": { + "type": "string" + }, + "removeProductsWarning_other": { + "type": "string" + }, + "products": { + "type": "object", + "properties": { + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + }, + "add": { + "type": "object", + "properties": { + "successToast_one": { + "type": "string" + }, + "successToast_other": { + "type": "string" + } + }, + "required": [ + "successToast_one", + "successToast_other" + ], + "additionalProperties": false + }, + "remove": { + "type": "object", + "properties": { + "successToast_one": { + "type": "string" + }, + "successToast_other": { + "type": "string" + } + }, + "required": [ + "successToast_one", + "successToast_other" + ], + "additionalProperties": false + } + }, + "required": [ + "list", + "add", + "remove" + ], + "additionalProperties": false } }, - "required": ["domain"] + "required": [ + "domain", + "subtitle", + "createCollection", + "createCollectionHint", + "createSuccess", + "editCollection", + "handleTooltip", + "deleteWarning", + "removeSingleProductWarning", + "removeProductsWarning_one", + "removeProductsWarning_other", + "products" + ], + "additionalProperties": false + }, + "categories": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "tabs": { + "type": "object", + "properties": { + "details": { + "type": "string" + }, + "organize": { + "type": "string" + } + }, + "required": [ + "details", + "organize" + ], + "additionalProperties": false + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "tabs", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "description", + "successToast" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "confirmation", + "successToast" + ], + "additionalProperties": false + }, + "products": { + "type": "object", + "properties": { + "add": { + "type": "object", + "properties": { + "disabledTooltip": { + "type": "string" + }, + "successToast_one": { + "type": "string" + }, + "successToast_other": { + "type": "string" + } + }, + "required": [ + "disabledTooltip", + "successToast_one", + "successToast_other" + ], + "additionalProperties": false + }, + "remove": { + "type": "object", + "properties": { + "confirmation_one": { + "type": "string" + }, + "confirmation_other": { + "type": "string" + }, + "successToast_one": { + "type": "string" + }, + "successToast_other": { + "type": "string" + } + }, + "required": [ + "confirmation_one", + "confirmation_other", + "successToast_one", + "successToast_other" + ], + "additionalProperties": false + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "add", + "remove", + "list" + ], + "additionalProperties": false + }, + "organize": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "action": { + "type": "string" + } + }, + "required": [ + "header", + "action" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "visibility": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "internal": { + "type": "string" + }, + "public": { + "type": "string" + } + }, + "required": [ + "label", + "internal", + "public" + ], + "additionalProperties": false + }, + "status": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "active": { + "type": "string" + }, + "inactive": { + "type": "string" + } + }, + "required": [ + "label", + "active", + "inactive" + ], + "additionalProperties": false + }, + "path": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "tooltip": { + "type": "string" + } + }, + "required": [ + "label", + "tooltip" + ], + "additionalProperties": false + }, + "children": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + }, + "new": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ], + "additionalProperties": false + } + }, + "required": [ + "visibility", + "status", + "path", + "children", + "new" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "subtitle", + "create", + "edit", + "delete", + "products", + "organize", + "fields" + ], + "additionalProperties": false }, "inventory": { "type": "object", "properties": { "domain": { "type": "string" - } - }, - "required": ["domain"] - }, - "customers": { - "type": "object", - "properties": { - "domain": { - "type": "string" - } - }, - "required": ["domain"] - }, - "customerGroups": { - "type": "object", - "properties": { - "domain": { - "type": "string" - } - }, - "required": ["domain"] - }, - "orders": { - "type": "object", - "properties": { - "domain": { - "type": "string" - } - }, - "required": ["domain"] - }, - "draftOrders": { - "type": "object", - "properties": { - "domain": { - "type": "string" - } - }, - "required": ["domain"] - }, - "discounts": { - "type": "object", - "properties": { - "domain": { - "type": "string" - } - }, - "required": ["domain"] - }, - "promotions": { - "type": "object", - "properties": { - "domain": { - "type": "string" - } - }, - "required": ["domain"] - }, - "taxRegions": { - "type": "object", - "properties": { - "domain": { - "type": "string" - } - }, - "required": ["domain"] - }, - "taxRates": { - "type": "object", - "properties": { - "domain": { + }, + "subtitle": { "type": "string" }, - "fields": { - "type": "object" - } - }, - "required": ["domain"] - }, - "campaigns": { - "type": "object", - "properties": { - "domain": { + "reserved": { "type": "string" + }, + "available": { + "type": "string" + }, + "locationLevels": { + "type": "string" + }, + "associatedVariants": { + "type": "string" + }, + "manageLocations": { + "type": "string" + }, + "deleteWarning": { + "type": "string" + }, + "editItemDetails": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "details": { + "type": "string" + }, + "availability": { + "type": "string" + }, + "locations": { + "type": "string" + }, + "attributes": { + "type": "string" + }, + "requiresShipping": { + "type": "string" + }, + "requiresShippingHint": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "title", + "details", + "availability", + "locations", + "attributes", + "requiresShipping", + "requiresShippingHint", + "successToast" + ], + "additionalProperties": false + }, + "reservation": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "editItemDetails": { + "type": "string" + }, + "lineItemId": { + "type": "string" + }, + "orderID": { + "type": "string" + }, + "description": { + "type": "string" + }, + "location": { + "type": "string" + }, + "inStockAtLocation": { + "type": "string" + }, + "availableAtLocation": { + "type": "string" + }, + "reservedAtLocation": { + "type": "string" + }, + "reservedAmount": { + "type": "string" + }, + "create": { + "type": "string" + }, + "itemToReserve": { + "type": "string" + }, + "quantityPlaceholder": { + "type": "string" + }, + "descriptionPlaceholder": { + "type": "string" + }, + "successToast": { + "type": "string" + }, + "updateSuccessToast": { + "type": "string" + }, + "deleteSuccessToast": { + "type": "string" + }, + "errors": { + "type": "object", + "properties": { + "noAvaliableQuantity": { + "type": "string" + }, + "quantityOutOfRange": { + "type": "string" + } + }, + "required": [ + "noAvaliableQuantity", + "quantityOutOfRange" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "editItemDetails", + "lineItemId", + "orderID", + "description", + "location", + "inStockAtLocation", + "availableAtLocation", + "reservedAtLocation", + "reservedAmount", + "create", + "itemToReserve", + "quantityPlaceholder", + "descriptionPlaceholder", + "successToast", + "updateSuccessToast", + "deleteSuccessToast", + "errors" + ], + "additionalProperties": false + }, + "toast": { + "type": "object", + "properties": { + "updateLocations": { + "type": "string" + }, + "updateLevel": { + "type": "string" + }, + "updateItem": { + "type": "string" + } + }, + "required": [ + "updateLocations", + "updateLevel", + "updateItem" + ], + "additionalProperties": false } }, - "required": ["domain"] + "required": [ + "domain", + "subtitle", + "reserved", + "available", + "locationLevels", + "associatedVariants", + "manageLocations", + "deleteWarning", + "editItemDetails", + "create", + "reservation", + "toast" + ], + "additionalProperties": false }, "giftCards": { "type": "object", "properties": { "domain": { "type": "string" + }, + "editGiftCard": { + "type": "string" + }, + "createGiftCard": { + "type": "string" + }, + "createGiftCardHint": { + "type": "string" + }, + "selectRegionFirst": { + "type": "string" + }, + "deleteGiftCardWarning": { + "type": "string" + }, + "balanceHigherThanValue": { + "type": "string" + }, + "balanceLowerThanZero": { + "type": "string" + }, + "expiryDateHint": { + "type": "string" + }, + "regionHint": { + "type": "string" + }, + "enabledHint": { + "type": "string" + }, + "balance": { + "type": "string" + }, + "currentBalance": { + "type": "string" + }, + "initialBalance": { + "type": "string" + }, + "personalMessage": { + "type": "string" + }, + "recipient": { + "type": "string" } }, - "required": ["domain"] + "required": [ + "domain", + "editGiftCard", + "createGiftCard", + "createGiftCardHint", + "selectRegionFirst", + "deleteGiftCardWarning", + "balanceHigherThanValue", + "balanceLowerThanZero", + "expiryDateHint", + "regionHint", + "enabledHint", + "balance", + "currentBalance", + "initialBalance", + "personalMessage", + "recipient" + ], + "additionalProperties": false }, - "pricing": { + "customers": { "type": "object", "properties": { "domain": { "type": "string" + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "successToast" + ], + "additionalProperties": false + }, + "groups": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "remove": { + "type": "string" + }, + "removeMany": { + "type": "string" + }, + "alreadyAddedTooltip": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + }, + "add": { + "type": "object", + "properties": { + "success": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "success", + "list" + ], + "additionalProperties": false + }, + "removed": { + "type": "object", + "properties": { + "success": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "success", + "list" + ], + "additionalProperties": false + } + }, + "required": [ + "label", + "remove", + "removeMany", + "alreadyAddedTooltip", + "list", + "add", + "removed" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "emailDisabledTooltip": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "emailDisabledTooltip", + "successToast" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "title", + "description", + "successToast" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "guest": { + "type": "string" + }, + "registered": { + "type": "string" + }, + "groups": { + "type": "string" + } + }, + "required": [ + "guest", + "registered", + "groups" + ], + "additionalProperties": false + }, + "registered": { + "type": "string" + }, + "guest": { + "type": "string" + }, + "hasAccount": { + "type": "string" } }, - "required": ["domain"] + "required": [ + "domain", + "list", + "create", + "groups", + "edit", + "delete", + "fields", + "registered", + "guest", + "hasAccount" + ], + "additionalProperties": false + }, + "customerGroups": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "successToast" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "title", + "description", + "successToast" + ], + "additionalProperties": false + }, + "customers": { + "type": "object", + "properties": { + "alreadyAddedTooltip": { + "type": "string" + }, + "add": { + "type": "object", + "properties": { + "successToast_one": { + "type": "string" + }, + "successToast_other": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "successToast_one", + "successToast_other", + "list" + ], + "additionalProperties": false + }, + "remove": { + "type": "object", + "properties": { + "title_one": { + "type": "string" + }, + "title_other": { + "type": "string" + }, + "description_one": { + "type": "string" + }, + "description_other": { + "type": "string" + } + }, + "required": [ + "title_one", + "title_other", + "description_one", + "description_other" + ], + "additionalProperties": false + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "alreadyAddedTooltip", + "add", + "remove", + "list" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "subtitle", + "create", + "edit", + "delete", + "customers" + ], + "additionalProperties": false + }, + "orders": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "claim": { + "type": "string" + }, + "exchange": { + "type": "string" + }, + "return": { + "type": "string" + }, + "cancelWarning": { + "type": "string" + }, + "onDateFromSalesChannel": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + }, + "summary": { + "type": "object", + "properties": { + "requestReturn": { + "type": "string" + }, + "allocateItems": { + "type": "string" + }, + "editOrder": { + "type": "string" + }, + "editOrderContinue": { + "type": "string" + }, + "inventoryKit": { + "type": "string" + }, + "itemTotal": { + "type": "string" + }, + "shippingTotal": { + "type": "string" + }, + "discountTotal": { + "type": "string" + }, + "taxTotalIncl": { + "type": "string" + }, + "itemSubtotal": { + "type": "string" + }, + "shippingSubtotal": { + "type": "string" + }, + "discountSubtotal": { + "type": "string" + }, + "taxTotal": { + "type": "string" + } + }, + "required": [ + "requestReturn", + "allocateItems", + "editOrder", + "editOrderContinue", + "inventoryKit", + "itemTotal", + "shippingTotal", + "discountTotal", + "taxTotalIncl", + "itemSubtotal", + "shippingSubtotal", + "discountSubtotal", + "taxTotal" + ], + "additionalProperties": false + }, + "payment": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "isReadyToBeCaptured": { + "type": "string" + }, + "totalPaidByCustomer": { + "type": "string" + }, + "capture": { + "type": "string" + }, + "capture_short": { + "type": "string" + }, + "refund": { + "type": "string" + }, + "markAsPaid": { + "type": "string" + }, + "statusLabel": { + "type": "string" + }, + "statusTitle": { + "type": "string" + }, + "status": { + "type": "object", + "properties": { + "notPaid": { + "type": "string" + }, + "authorized": { + "type": "string" + }, + "partiallyAuthorized": { + "type": "string" + }, + "awaiting": { + "type": "string" + }, + "captured": { + "type": "string" + }, + "partiallyRefunded": { + "type": "string" + }, + "partiallyCaptured": { + "type": "string" + }, + "refunded": { + "type": "string" + }, + "canceled": { + "type": "string" + }, + "requiresAction": { + "type": "string" + } + }, + "required": [ + "notPaid", + "authorized", + "partiallyAuthorized", + "awaiting", + "captured", + "partiallyRefunded", + "partiallyCaptured", + "refunded", + "canceled", + "requiresAction" + ], + "additionalProperties": false + }, + "capturePayment": { + "type": "string" + }, + "capturePaymentSuccess": { + "type": "string" + }, + "markAsPaidPayment": { + "type": "string" + }, + "markAsPaidPaymentSuccess": { + "type": "string" + }, + "createRefund": { + "type": "string" + }, + "refundPaymentSuccess": { + "type": "string" + }, + "createRefundWrongQuantity": { + "type": "string" + }, + "refundAmount": { + "type": "string" + }, + "paymentLink": { + "type": "string" + }, + "selectPaymentToRefund": { + "type": "string" + } + }, + "required": [ + "title", + "isReadyToBeCaptured", + "totalPaidByCustomer", + "capture", + "capture_short", + "refund", + "markAsPaid", + "statusLabel", + "statusTitle", + "status", + "capturePayment", + "capturePaymentSuccess", + "markAsPaidPayment", + "markAsPaidPaymentSuccess", + "createRefund", + "refundPaymentSuccess", + "createRefundWrongQuantity", + "refundAmount", + "paymentLink", + "selectPaymentToRefund" + ], + "additionalProperties": false + }, + "edits": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "confirm": { + "type": "string" + }, + "confirmText": { + "type": "string" + }, + "cancel": { + "type": "string" + }, + "currentItems": { + "type": "string" + }, + "currentItemsDescription": { + "type": "string" + }, + "addItemsDescription": { + "type": "string" + }, + "addItems": { + "type": "string" + }, + "amountPaid": { + "type": "string" + }, + "newTotal": { + "type": "string" + }, + "differenceDue": { + "type": "string" + }, + "create": { + "type": "string" + }, + "currentTotal": { + "type": "string" + }, + "noteHint": { + "type": "string" + }, + "cancelSuccessToast": { + "type": "string" + }, + "createSuccessToast": { + "type": "string" + }, + "activeChangeError": { + "type": "string" + }, + "panel": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "titlePending": { + "type": "string" + } + }, + "required": [ + "title", + "titlePending" + ], + "additionalProperties": false + }, + "toast": { + "type": "object", + "properties": { + "canceledSuccessfully": { + "type": "string" + }, + "confirmedSuccessfully": { + "type": "string" + } + }, + "required": [ + "canceledSuccessfully", + "confirmedSuccessfully" + ], + "additionalProperties": false + }, + "validation": { + "type": "object", + "properties": { + "quantityLowerThanFulfillment": { + "type": "string" + } + }, + "required": [ + "quantityLowerThanFulfillment" + ], + "additionalProperties": false + } + }, + "required": [ + "title", + "confirm", + "confirmText", + "cancel", + "currentItems", + "currentItemsDescription", + "addItemsDescription", + "addItems", + "amountPaid", + "newTotal", + "differenceDue", + "create", + "currentTotal", + "noteHint", + "cancelSuccessToast", + "createSuccessToast", + "activeChangeError", + "panel", + "toast", + "validation" + ], + "additionalProperties": false + }, + "returns": { + "type": "object", + "properties": { + "create": { + "type": "string" + }, + "confirm": { + "type": "string" + }, + "confirmText": { + "type": "string" + }, + "inbound": { + "type": "string" + }, + "outbound": { + "type": "string" + }, + "sendNotification": { + "type": "string" + }, + "sendNotificationHint": { + "type": "string" + }, + "returnTotal": { + "type": "string" + }, + "inboundTotal": { + "type": "string" + }, + "refundAmount": { + "type": "string" + }, + "outstandingAmount": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "reasonHint": { + "type": "string" + }, + "note": { + "type": "string" + }, + "noInventoryLevel": { + "type": "string" + }, + "noInventoryLevelDesc": { + "type": "string" + }, + "noteHint": { + "type": "string" + }, + "location": { + "type": "string" + }, + "locationHint": { + "type": "string" + }, + "inboundShipping": { + "type": "string" + }, + "inboundShippingHint": { + "type": "string" + }, + "returnableQuantityLabel": { + "type": "string" + }, + "refundableAmountLabel": { + "type": "string" + }, + "returnRequestedInfo": { + "type": "string" + }, + "returnReceivedInfo": { + "type": "string" + }, + "itemReceived": { + "type": "string" + }, + "returnRequested": { + "type": "string" + }, + "damagedItemReceived": { + "type": "string" + }, + "damagedItemsReturned": { + "type": "string" + }, + "activeChangeError": { + "type": "string" + }, + "cancel": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "placeholders": { + "type": "object", + "properties": { + "noReturnShippingOptions": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "title", + "hint" + ], + "additionalProperties": false + }, + "outboundShippingOptions": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "title", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "noReturnShippingOptions", + "outboundShippingOptions" + ], + "additionalProperties": false + }, + "receive": { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "receiveItems": { + "type": "string" + }, + "restockAll": { + "type": "string" + }, + "itemsLabel": { + "type": "string" + }, + "title": { + "type": "string" + }, + "sendNotificationHint": { + "type": "string" + }, + "inventoryWarning": { + "type": "string" + }, + "writeOffInputLabel": { + "type": "string" + }, + "toast": { + "type": "object", + "properties": { + "success": { + "type": "string" + }, + "errorLargeValue": { + "type": "string" + }, + "errorNegativeValue": { + "type": "string" + }, + "errorLargeDamagedValue": { + "type": "string" + } + }, + "required": [ + "success", + "errorLargeValue", + "errorNegativeValue", + "errorLargeDamagedValue" + ], + "additionalProperties": false + } + }, + "required": [ + "action", + "receiveItems", + "restockAll", + "itemsLabel", + "title", + "sendNotificationHint", + "inventoryWarning", + "writeOffInputLabel", + "toast" + ], + "additionalProperties": false + }, + "toast": { + "type": "object", + "properties": { + "canceledSuccessfully": { + "type": "string" + }, + "confirmedSuccessfully": { + "type": "string" + } + }, + "required": [ + "canceledSuccessfully", + "confirmedSuccessfully" + ], + "additionalProperties": false + }, + "panel": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "create", + "confirm", + "confirmText", + "inbound", + "outbound", + "sendNotification", + "sendNotificationHint", + "returnTotal", + "inboundTotal", + "refundAmount", + "outstandingAmount", + "reason", + "reasonHint", + "note", + "noInventoryLevel", + "noInventoryLevelDesc", + "noteHint", + "location", + "locationHint", + "inboundShipping", + "inboundShippingHint", + "returnableQuantityLabel", + "refundableAmountLabel", + "returnRequestedInfo", + "returnReceivedInfo", + "itemReceived", + "returnRequested", + "damagedItemReceived", + "damagedItemsReturned", + "activeChangeError", + "cancel", + "placeholders", + "receive", + "toast", + "panel" + ], + "additionalProperties": false + }, + "claims": { + "type": "object", + "properties": { + "create": { + "type": "string" + }, + "confirm": { + "type": "string" + }, + "confirmText": { + "type": "string" + }, + "manage": { + "type": "string" + }, + "outbound": { + "type": "string" + }, + "outboundItemAdded": { + "type": "string" + }, + "outboundTotal": { + "type": "string" + }, + "outboundShipping": { + "type": "string" + }, + "outboundShippingHint": { + "type": "string" + }, + "refundAmount": { + "type": "string" + }, + "activeChangeError": { + "type": "string" + }, + "actions": { + "type": "object", + "properties": { + "cancelClaim": { + "type": "object", + "properties": { + "successToast": { + "type": "string" + } + }, + "required": [ + "successToast" + ], + "additionalProperties": false + } + }, + "required": [ + "cancelClaim" + ], + "additionalProperties": false + }, + "cancel": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "tooltips": { + "type": "object", + "properties": { + "onlyReturnShippingOptions": { + "type": "string" + } + }, + "required": [ + "onlyReturnShippingOptions" + ], + "additionalProperties": false + }, + "toast": { + "type": "object", + "properties": { + "canceledSuccessfully": { + "type": "string" + }, + "confirmedSuccessfully": { + "type": "string" + } + }, + "required": [ + "canceledSuccessfully", + "confirmedSuccessfully" + ], + "additionalProperties": false + }, + "panel": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "create", + "confirm", + "confirmText", + "manage", + "outbound", + "outboundItemAdded", + "outboundTotal", + "outboundShipping", + "outboundShippingHint", + "refundAmount", + "activeChangeError", + "actions", + "cancel", + "tooltips", + "toast", + "panel" + ], + "additionalProperties": false + }, + "exchanges": { + "type": "object", + "properties": { + "create": { + "type": "string" + }, + "manage": { + "type": "string" + }, + "confirm": { + "type": "string" + }, + "confirmText": { + "type": "string" + }, + "outbound": { + "type": "string" + }, + "outboundItemAdded": { + "type": "string" + }, + "outboundTotal": { + "type": "string" + }, + "outboundShipping": { + "type": "string" + }, + "outboundShippingHint": { + "type": "string" + }, + "refundAmount": { + "type": "string" + }, + "activeChangeError": { + "type": "string" + }, + "actions": { + "type": "object", + "properties": { + "cancelExchange": { + "type": "object", + "properties": { + "successToast": { + "type": "string" + } + }, + "required": [ + "successToast" + ], + "additionalProperties": false + } + }, + "required": [ + "cancelExchange" + ], + "additionalProperties": false + }, + "cancel": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "tooltips": { + "type": "object", + "properties": { + "onlyReturnShippingOptions": { + "type": "string" + } + }, + "required": [ + "onlyReturnShippingOptions" + ], + "additionalProperties": false + }, + "toast": { + "type": "object", + "properties": { + "canceledSuccessfully": { + "type": "string" + }, + "confirmedSuccessfully": { + "type": "string" + } + }, + "required": [ + "canceledSuccessfully", + "confirmedSuccessfully" + ], + "additionalProperties": false + }, + "panel": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "create", + "manage", + "confirm", + "confirmText", + "outbound", + "outboundItemAdded", + "outboundTotal", + "outboundShipping", + "outboundShippingHint", + "refundAmount", + "activeChangeError", + "actions", + "cancel", + "tooltips", + "toast", + "panel" + ], + "additionalProperties": false + }, + "reservations": { + "type": "object", + "properties": { + "allocatedLabel": { + "type": "string" + }, + "notAllocatedLabel": { + "type": "string" + } + }, + "required": [ + "allocatedLabel", + "notAllocatedLabel" + ], + "additionalProperties": false + }, + "allocateItems": { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "title": { + "type": "string" + }, + "locationDescription": { + "type": "string" + }, + "itemsToAllocate": { + "type": "string" + }, + "itemsToAllocateDesc": { + "type": "string" + }, + "search": { + "type": "string" + }, + "consistsOf": { + "type": "string" + }, + "requires": { + "type": "string" + }, + "toast": { + "type": "object", + "properties": { + "created": { + "type": "string" + } + }, + "required": [ + "created" + ], + "additionalProperties": false + }, + "error": { + "type": "object", + "properties": { + "quantityNotAllocated": { + "type": "string" + } + }, + "required": [ + "quantityNotAllocated" + ], + "additionalProperties": false + } + }, + "required": [ + "action", + "title", + "locationDescription", + "itemsToAllocate", + "itemsToAllocateDesc", + "search", + "consistsOf", + "requires", + "toast", + "error" + ], + "additionalProperties": false + }, + "shipment": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "trackingNumber": { + "type": "string" + }, + "addTracking": { + "type": "string" + }, + "sendNotification": { + "type": "string" + }, + "sendNotificationHint": { + "type": "string" + }, + "toastCreated": { + "type": "string" + } + }, + "required": [ + "title", + "trackingNumber", + "addTracking", + "sendNotification", + "sendNotificationHint", + "toastCreated" + ], + "additionalProperties": false + }, + "fulfillment": { + "type": "object", + "properties": { + "cancelWarning": { + "type": "string" + }, + "markAsDeliveredWarning": { + "type": "string" + }, + "unfulfilledItems": { + "type": "string" + }, + "statusLabel": { + "type": "string" + }, + "statusTitle": { + "type": "string" + }, + "fulfillItems": { + "type": "string" + }, + "awaitingFulfillmentBadge": { + "type": "string" + }, + "requiresShipping": { + "type": "string" + }, + "number": { + "type": "string" + }, + "itemsToFulfill": { + "type": "string" + }, + "create": { + "type": "string" + }, + "available": { + "type": "string" + }, + "inStock": { + "type": "string" + }, + "markAsShipped": { + "type": "string" + }, + "markAsDelivered": { + "type": "string" + }, + "itemsToFulfillDesc": { + "type": "string" + }, + "locationDescription": { + "type": "string" + }, + "sendNotificationHint": { + "type": "string" + }, + "methodDescription": { + "type": "string" + }, + "error": { + "type": "object", + "properties": { + "wrongQuantity": { + "type": "string" + }, + "wrongQuantity_other": { + "type": "string" + }, + "noItems": { + "type": "string" + } + }, + "required": [ + "wrongQuantity", + "wrongQuantity_other", + "noItems" + ], + "additionalProperties": false + }, + "status": { + "type": "object", + "properties": { + "notFulfilled": { + "type": "string" + }, + "partiallyFulfilled": { + "type": "string" + }, + "fulfilled": { + "type": "string" + }, + "partiallyShipped": { + "type": "string" + }, + "shipped": { + "type": "string" + }, + "delivered": { + "type": "string" + }, + "partiallyDelivered": { + "type": "string" + }, + "partiallyReturned": { + "type": "string" + }, + "returned": { + "type": "string" + }, + "canceled": { + "type": "string" + }, + "requiresAction": { + "type": "string" + } + }, + "required": [ + "notFulfilled", + "partiallyFulfilled", + "fulfilled", + "partiallyShipped", + "shipped", + "delivered", + "partiallyDelivered", + "partiallyReturned", + "returned", + "canceled", + "requiresAction" + ], + "additionalProperties": false + }, + "toast": { + "type": "object", + "properties": { + "created": { + "type": "string" + }, + "canceled": { + "type": "string" + }, + "fulfillmentShipped": { + "type": "string" + }, + "fulfillmentDelivered": { + "type": "string" + } + }, + "required": [ + "created", + "canceled", + "fulfillmentShipped", + "fulfillmentDelivered" + ], + "additionalProperties": false + }, + "trackingLabel": { + "type": "string" + }, + "shippingFromLabel": { + "type": "string" + }, + "itemsLabel": { + "type": "string" + } + }, + "required": [ + "cancelWarning", + "markAsDeliveredWarning", + "unfulfilledItems", + "statusLabel", + "statusTitle", + "fulfillItems", + "awaitingFulfillmentBadge", + "requiresShipping", + "number", + "itemsToFulfill", + "create", + "available", + "inStock", + "markAsShipped", + "markAsDelivered", + "itemsToFulfillDesc", + "locationDescription", + "sendNotificationHint", + "methodDescription", + "error", + "status", + "toast", + "trackingLabel", + "shippingFromLabel", + "itemsLabel" + ], + "additionalProperties": false + }, + "refund": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "sendNotificationHint": { + "type": "string" + }, + "systemPayment": { + "type": "string" + }, + "systemPaymentDesc": { + "type": "string" + }, + "error": { + "type": "object", + "properties": { + "amountToLarge": { + "type": "string" + }, + "amountNegative": { + "type": "string" + }, + "reasonRequired": { + "type": "string" + } + }, + "required": [ + "amountToLarge", + "amountNegative", + "reasonRequired" + ], + "additionalProperties": false + } + }, + "required": [ + "title", + "sendNotificationHint", + "systemPayment", + "systemPaymentDesc", + "error" + ], + "additionalProperties": false + }, + "customer": { + "type": "object", + "properties": { + "contactLabel": { + "type": "string" + }, + "editEmail": { + "type": "string" + }, + "transferOwnership": { + "type": "string" + }, + "editBillingAddress": { + "type": "string" + }, + "editShippingAddress": { + "type": "string" + } + }, + "required": [ + "contactLabel", + "editEmail", + "transferOwnership", + "editBillingAddress", + "editShippingAddress" + ], + "additionalProperties": false + }, + "activity": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "showMoreActivities_one": { + "type": "string" + }, + "showMoreActivities_other": { + "type": "string" + }, + "comment": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "placeholder": { + "type": "string" + }, + "addButtonText": { + "type": "string" + }, + "deleteButtonText": { + "type": "string" + } + }, + "required": [ + "label", + "placeholder", + "addButtonText", + "deleteButtonText" + ], + "additionalProperties": false + }, + "events": { + "type": "object", + "properties": { + "common": { + "type": "object", + "properties": { + "toReturn": { + "type": "string" + }, + "toSend": { + "type": "string" + } + }, + "required": [ + "toReturn", + "toSend" + ], + "additionalProperties": false + }, + "placed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "fromSalesChannel": { + "type": "string" + } + }, + "required": [ + "title", + "fromSalesChannel" + ], + "additionalProperties": false + }, + "canceled": { + "type": "object", + "properties": { + "title": { + "type": "string" + } + }, + "required": [ + "title" + ], + "additionalProperties": false + }, + "payment": { + "type": "object", + "properties": { + "awaiting": { + "type": "string" + }, + "captured": { + "type": "string" + }, + "canceled": { + "type": "string" + }, + "refunded": { + "type": "string" + } + }, + "required": [ + "awaiting", + "captured", + "canceled", + "refunded" + ], + "additionalProperties": false + }, + "fulfillment": { + "type": "object", + "properties": { + "created": { + "type": "string" + }, + "canceled": { + "type": "string" + }, + "shipped": { + "type": "string" + }, + "delivered": { + "type": "string" + }, + "items_one": { + "type": "string" + }, + "items_other": { + "type": "string" + } + }, + "required": [ + "created", + "canceled", + "shipped", + "delivered", + "items_one", + "items_other" + ], + "additionalProperties": false + }, + "return": { + "type": "object", + "properties": { + "created": { + "type": "string" + }, + "canceled": { + "type": "string" + }, + "received": { + "type": "string" + }, + "items_one": { + "type": "string" + }, + "items_other": { + "type": "string" + } + }, + "required": [ + "created", + "canceled", + "received", + "items_one", + "items_other" + ], + "additionalProperties": false + }, + "note": { + "type": "object", + "properties": { + "comment": { + "type": "string" + }, + "byLine": { + "type": "string" + } + }, + "required": [ + "comment", + "byLine" + ], + "additionalProperties": false + }, + "claim": { + "type": "object", + "properties": { + "created": { + "type": "string" + }, + "canceled": { + "type": "string" + }, + "itemsInbound": { + "type": "string" + }, + "itemsOutbound": { + "type": "string" + } + }, + "required": [ + "created", + "canceled", + "itemsInbound", + "itemsOutbound" + ], + "additionalProperties": false + }, + "exchange": { + "type": "object", + "properties": { + "created": { + "type": "string" + }, + "canceled": { + "type": "string" + }, + "itemsInbound": { + "type": "string" + }, + "itemsOutbound": { + "type": "string" + } + }, + "required": [ + "created", + "canceled", + "itemsInbound", + "itemsOutbound" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "requested": { + "type": "string" + }, + "confirmed": { + "type": "string" + } + }, + "required": [ + "requested", + "confirmed" + ], + "additionalProperties": false + } + }, + "required": [ + "common", + "placed", + "canceled", + "payment", + "fulfillment", + "return", + "note", + "claim", + "exchange", + "edit" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "showMoreActivities_one", + "showMoreActivities_other", + "comment", + "events" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "displayId": { + "type": "string" + }, + "refundableAmount": { + "type": "string" + }, + "returnableQuantity": { + "type": "string" + } + }, + "required": [ + "displayId", + "refundableAmount", + "returnableQuantity" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "claim", + "exchange", + "return", + "cancelWarning", + "onDateFromSalesChannel", + "list", + "summary", + "payment", + "edits", + "returns", + "claims", + "exchanges", + "reservations", + "allocateItems", + "shipment", + "fulfillment", + "refund", + "customer", + "activity", + "fields" + ], + "additionalProperties": false + }, + "draftOrders": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "deleteWarning": { + "type": "string" + }, + "paymentLinkLabel": { + "type": "string" + }, + "cartIdLabel": { + "type": "string" + }, + "markAsPaid": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "warningTitle": { + "type": "string" + }, + "warningDescription": { + "type": "string" + } + }, + "required": [ + "label", + "warningTitle", + "warningDescription" + ], + "additionalProperties": false + }, + "status": { + "type": "object", + "properties": { + "open": { + "type": "string" + }, + "completed": { + "type": "string" + } + }, + "required": [ + "open", + "completed" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": { + "createDraftOrder": { + "type": "string" + }, + "createDraftOrderHint": { + "type": "string" + }, + "chooseRegionHint": { + "type": "string" + }, + "existingItemsLabel": { + "type": "string" + }, + "existingItemsHint": { + "type": "string" + }, + "customItemsLabel": { + "type": "string" + }, + "customItemsHint": { + "type": "string" + }, + "addExistingItemsAction": { + "type": "string" + }, + "addCustomItemAction": { + "type": "string" + }, + "noCustomItemsAddedLabel": { + "type": "string" + }, + "noExistingItemsAddedLabel": { + "type": "string" + }, + "chooseRegionTooltip": { + "type": "string" + }, + "useExistingCustomerLabel": { + "type": "string" + }, + "addShippingMethodsAction": { + "type": "string" + }, + "unitPriceOverrideLabel": { + "type": "string" + }, + "shippingOptionLabel": { + "type": "string" + }, + "shippingOptionHint": { + "type": "string" + }, + "shippingPriceOverrideLabel": { + "type": "string" + }, + "shippingPriceOverrideHint": { + "type": "string" + }, + "sendNotificationLabel": { + "type": "string" + }, + "sendNotificationHint": { + "type": "string" + } + }, + "required": [ + "createDraftOrder", + "createDraftOrderHint", + "chooseRegionHint", + "existingItemsLabel", + "existingItemsHint", + "customItemsLabel", + "customItemsHint", + "addExistingItemsAction", + "addCustomItemAction", + "noCustomItemsAddedLabel", + "noExistingItemsAddedLabel", + "chooseRegionTooltip", + "useExistingCustomerLabel", + "addShippingMethodsAction", + "unitPriceOverrideLabel", + "shippingOptionLabel", + "shippingOptionHint", + "shippingPriceOverrideLabel", + "shippingPriceOverrideHint", + "sendNotificationLabel", + "sendNotificationHint" + ], + "additionalProperties": false + }, + "validation": { + "type": "object", + "properties": { + "requiredEmailOrCustomer": { + "type": "string" + }, + "requiredItems": { + "type": "string" + }, + "invalidEmail": { + "type": "string" + } + }, + "required": [ + "requiredEmailOrCustomer", + "requiredItems", + "invalidEmail" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "deleteWarning", + "paymentLinkLabel", + "cartIdLabel", + "markAsPaid", + "status", + "create", + "validation" + ], + "additionalProperties": false + }, + "stockLocations": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "description": { + "type": "string" + } + }, + "required": [ + "description" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "viewInventory": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "viewInventory", + "successToast" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + } + }, + "required": [ + "confirmation" + ], + "additionalProperties": false + }, + "fulfillmentProviders": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "shippingOptionsTooltip": { + "type": "string" + }, + "label": { + "type": "string" + }, + "connectedTo": { + "type": "string" + }, + "noProviders": { + "type": "string" + }, + "action": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "shippingOptionsTooltip", + "label", + "connectedTo", + "noProviders", + "action", + "successToast" + ], + "additionalProperties": false + }, + "fulfillmentSets": { + "type": "object", + "properties": { + "pickup": { + "type": "object", + "properties": { + "header": { + "type": "string" + } + }, + "required": [ + "header" + ], + "additionalProperties": false + }, + "shipping": { + "type": "object", + "properties": { + "header": { + "type": "string" + } + }, + "required": [ + "header" + ], + "additionalProperties": false + }, + "disable": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + }, + "pickup": { + "type": "string" + }, + "shipping": { + "type": "string" + } + }, + "required": [ + "confirmation", + "pickup", + "shipping" + ], + "additionalProperties": false + }, + "enable": { + "type": "object", + "properties": { + "pickup": { + "type": "string" + }, + "shipping": { + "type": "string" + } + }, + "required": [ + "pickup", + "shipping" + ], + "additionalProperties": false + } + }, + "required": [ + "pickup", + "shipping", + "disable", + "enable" + ], + "additionalProperties": false + }, + "sidebar": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "shippingProfiles": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "label", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "shippingProfiles" + ], + "additionalProperties": false + }, + "salesChannels": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "label": { + "type": "string" + }, + "connectedTo": { + "type": "string" + }, + "noChannels": { + "type": "string" + }, + "action": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "label", + "connectedTo", + "noChannels", + "action", + "successToast" + ], + "additionalProperties": false + }, + "shippingOptions": { + "type": "object", + "properties": { + "create": { + "type": "object", + "properties": { + "shipping": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "label": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "label", + "successToast" + ], + "additionalProperties": false + }, + "returns": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "label": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "label", + "successToast" + ], + "additionalProperties": false + }, + "tabs": { + "type": "object", + "properties": { + "details": { + "type": "string" + }, + "prices": { + "type": "string" + } + }, + "required": [ + "details", + "prices" + ], + "additionalProperties": false + }, + "action": { + "type": "string" + } + }, + "required": [ + "shipping", + "returns", + "tabs", + "action" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "confirmation", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "action": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "action", + "successToast" + ], + "additionalProperties": false + }, + "pricing": { + "type": "object", + "properties": { + "action": { + "type": "string" + } + }, + "required": [ + "action" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "count": { + "type": "object", + "properties": { + "shipping_one": { + "type": "string" + }, + "shipping_other": { + "type": "string" + }, + "returns_one": { + "type": "string" + }, + "returns_other": { + "type": "string" + } + }, + "required": [ + "shipping_one", + "shipping_other", + "returns_one", + "returns_other" + ], + "additionalProperties": false + }, + "priceType": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "options": { + "type": "object", + "properties": { + "fixed": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "calculated": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "fixed", + "calculated" + ], + "additionalProperties": false + } + }, + "required": [ + "label", + "options" + ], + "additionalProperties": false + }, + "enableInStore": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "provider": { + "type": "string" + }, + "profile": { + "type": "string" + } + }, + "required": [ + "count", + "priceType", + "enableInStore", + "provider", + "profile" + ], + "additionalProperties": false + } + }, + "required": [ + "create", + "delete", + "edit", + "pricing", + "fields" + ], + "additionalProperties": false + }, + "serviceZones": { + "type": "object", + "properties": { + "create": { + "type": "object", + "properties": { + "headerPickup": { + "type": "string" + }, + "headerShipping": { + "type": "string" + }, + "action": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "headerPickup", + "headerShipping", + "action", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "successToast" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "confirmation", + "successToast" + ], + "additionalProperties": false + }, + "manageAreas": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "action": { + "type": "string" + }, + "label": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "action", + "label", + "hint", + "successToast" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "noRecords": { + "type": "string" + }, + "tip": { + "type": "string" + } + }, + "required": [ + "noRecords", + "tip" + ], + "additionalProperties": false + } + }, + "required": [ + "create", + "edit", + "delete", + "manageAreas", + "fields" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "list", + "create", + "edit", + "delete", + "fulfillmentProviders", + "fulfillmentSets", + "sidebar", + "salesChannels", + "shippingOptions", + "serviceZones" + ], + "additionalProperties": false + }, + "shippingProfile": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "successToast" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "title", + "description", + "successToast" + ], + "additionalProperties": false + }, + "tooltip": { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "subtitle", + "create", + "delete", + "tooltip" + ], + "additionalProperties": false + }, + "taxRegions": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "hint": { + "type": "string" + } + }, + "required": [ + "hint" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "confirmation", + "successToast" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "errors": { + "type": "object", + "properties": { + "rateIsRequired": { + "type": "string" + }, + "nameIsRequired": { + "type": "string" + } + }, + "required": [ + "rateIsRequired", + "nameIsRequired" + ], + "additionalProperties": false + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "errors", + "successToast" + ], + "additionalProperties": false + }, + "province": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "state": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "stateOrTerritory": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "county": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "region": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "department": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "territory": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "prefecture": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "district": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "governorate": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "canton": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "emirate": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "sublevel": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create" + ], + "additionalProperties": false + }, + "taxOverrides": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "header", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "create", + "edit" + ], + "additionalProperties": false + }, + "taxRates": { + "type": "object", + "properties": { + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "successToast" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "confirmation", + "successToast" + ], + "additionalProperties": false + } + }, + "required": [ + "create", + "edit", + "delete" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "isCombinable": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "true": { + "type": "string" + }, + "false": { + "type": "string" + } + }, + "required": [ + "label", + "hint", + "true", + "false" + ], + "additionalProperties": false + }, + "defaultTaxRate": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "tooltip": { + "type": "string" + }, + "action": { + "type": "string" + } + }, + "required": [ + "label", + "tooltip", + "action" + ], + "additionalProperties": false + }, + "taxRate": { + "type": "string" + }, + "taxCode": { + "type": "string" + }, + "targets": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "options": { + "type": "object", + "properties": { + "product": { + "type": "string" + }, + "productCollection": { + "type": "string" + }, + "productTag": { + "type": "string" + }, + "productType": { + "type": "string" + }, + "customerGroup": { + "type": "string" + } + }, + "required": [ + "product", + "productCollection", + "productTag", + "productType", + "customerGroup" + ], + "additionalProperties": false + }, + "operators": { + "type": "object", + "properties": { + "in": { + "type": "string" + }, + "on": { + "type": "string" + }, + "and": { + "type": "string" + } + }, + "required": [ + "in", + "on", + "and" + ], + "additionalProperties": false + }, + "placeholders": { + "type": "object", + "properties": { + "product": { + "type": "string" + }, + "productCollection": { + "type": "string" + }, + "productTag": { + "type": "string" + }, + "productType": { + "type": "string" + }, + "customerGroup": { + "type": "string" + } + }, + "required": [ + "product", + "productCollection", + "productTag", + "productType", + "customerGroup" + ], + "additionalProperties": false + }, + "tags": { + "type": "object", + "properties": { + "product": { + "type": "string" + }, + "productCollection": { + "type": "string" + }, + "productTag": { + "type": "string" + }, + "productType": { + "type": "string" + }, + "customerGroup": { + "type": "string" + } + }, + "required": [ + "product", + "productCollection", + "productTag", + "productType", + "customerGroup" + ], + "additionalProperties": false + }, + "modal": { + "type": "object", + "properties": { + "header": { + "type": "string" + } + }, + "required": [ + "header" + ], + "additionalProperties": false + }, + "values_one": { + "type": "string" + }, + "values_other": { + "type": "string" + }, + "numberOfTargets_one": { + "type": "string" + }, + "numberOfTargets_other": { + "type": "string" + }, + "additionalValues_one": { + "type": "string" + }, + "additionalValues_other": { + "type": "string" + }, + "action": { + "type": "string" + } + }, + "required": [ + "label", + "hint", + "options", + "operators", + "placeholders", + "tags", + "modal", + "values_one", + "values_other", + "numberOfTargets_one", + "numberOfTargets_other", + "additionalValues_one", + "additionalValues_other", + "action" + ], + "additionalProperties": false + }, + "sublevels": { + "type": "object", + "properties": { + "labels": { + "type": "object", + "properties": { + "province": { + "type": "string" + }, + "state": { + "type": "string" + }, + "region": { + "type": "string" + }, + "stateOrTerritory": { + "type": "string" + }, + "department": { + "type": "string" + }, + "county": { + "type": "string" + }, + "territory": { + "type": "string" + }, + "prefecture": { + "type": "string" + }, + "district": { + "type": "string" + }, + "governorate": { + "type": "string" + }, + "emirate": { + "type": "string" + }, + "canton": { + "type": "string" + }, + "sublevel": { + "type": "string" + } + }, + "required": [ + "province", + "state", + "region", + "stateOrTerritory", + "department", + "county", + "territory", + "prefecture", + "district", + "governorate", + "emirate", + "canton", + "sublevel" + ], + "additionalProperties": false + }, + "placeholders": { + "type": "object", + "properties": { + "province": { + "type": "string" + }, + "state": { + "type": "string" + }, + "region": { + "type": "string" + }, + "stateOrTerritory": { + "type": "string" + }, + "department": { + "type": "string" + }, + "county": { + "type": "string" + }, + "territory": { + "type": "string" + }, + "prefecture": { + "type": "string" + }, + "district": { + "type": "string" + }, + "governorate": { + "type": "string" + }, + "emirate": { + "type": "string" + }, + "canton": { + "type": "string" + } + }, + "required": [ + "province", + "state", + "region", + "stateOrTerritory", + "department", + "county", + "territory", + "prefecture", + "district", + "governorate", + "emirate", + "canton" + ], + "additionalProperties": false + }, + "tooltips": { + "type": "object", + "properties": { + "sublevel": { + "type": "string" + }, + "notPartOfCountry": { + "type": "string" + } + }, + "required": [ + "sublevel", + "notPartOfCountry" + ], + "additionalProperties": false + }, + "alert": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "description": { + "type": "string" + }, + "action": { + "type": "string" + } + }, + "required": [ + "header", + "description", + "action" + ], + "additionalProperties": false + } + }, + "required": [ + "labels", + "placeholders", + "tooltips", + "alert" + ], + "additionalProperties": false + }, + "noDefaultRate": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "tooltip": { + "type": "string" + } + }, + "required": [ + "label", + "tooltip" + ], + "additionalProperties": false + } + }, + "required": [ + "isCombinable", + "defaultTaxRate", + "taxRate", + "taxCode", + "targets", + "sublevels", + "noDefaultRate" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "list", + "delete", + "create", + "province", + "state", + "stateOrTerritory", + "county", + "region", + "department", + "territory", + "prefecture", + "district", + "governorate", + "canton", + "emirate", + "sublevel", + "taxOverrides", + "taxRates", + "fields" + ], + "additionalProperties": false + }, + "promotions": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "sections": { + "type": "object", + "properties": { + "details": { + "type": "string" + } + }, + "required": [ + "details" + ], + "additionalProperties": false + }, + "tabs": { + "type": "object", + "properties": { + "template": { + "type": "string" + }, + "details": { + "type": "string" + }, + "campaign": { + "type": "string" + } + }, + "required": [ + "template", + "details", + "campaign" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "value_type": { + "type": "string" + }, + "value": { + "type": "string" + }, + "campaign": { + "type": "string" + }, + "method": { + "type": "string" + }, + "allocation": { + "type": "string" + }, + "addCondition": { + "type": "string" + }, + "clearAll": { + "type": "string" + }, + "amount": { + "type": "object", + "properties": { + "tooltip": { + "type": "string" + } + }, + "required": [ + "tooltip" + ], + "additionalProperties": false + }, + "conditions": { + "type": "object", + "properties": { + "rules": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "target-rules": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "buy-rules": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "rules", + "target-rules", + "buy-rules" + ], + "additionalProperties": false + } + }, + "required": [ + "type", + "value_type", + "value", + "campaign", + "method", + "allocation", + "addCondition", + "clearAll", + "amount", + "conditions" + ], + "additionalProperties": false + }, + "tooltips": { + "type": "object", + "properties": { + "campaignType": { + "type": "string" + } + }, + "required": [ + "campaignType" + ], + "additionalProperties": false + }, + "errors": { + "type": "object", + "properties": { + "requiredField": { + "type": "string" + }, + "promotionTabError": { + "type": "string" + } + }, + "required": [ + "requiredField", + "promotionTabError" + ], + "additionalProperties": false + }, + "toasts": { + "type": "object", + "properties": { + "promotionCreateSuccess": { + "type": "string" + } + }, + "required": [ + "promotionCreateSuccess" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": {}, + "required": [], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "rules": { + "type": "object", + "properties": { + "title": { + "type": "string" + } + }, + "required": [ + "title" + ], + "additionalProperties": false + }, + "target-rules": { + "type": "object", + "properties": { + "title": { + "type": "string" + } + }, + "required": [ + "title" + ], + "additionalProperties": false + }, + "buy-rules": { + "type": "object", + "properties": { + "title": { + "type": "string" + } + }, + "required": [ + "title" + ], + "additionalProperties": false + } + }, + "required": [ + "title", + "rules", + "target-rules", + "buy-rules" + ], + "additionalProperties": false + }, + "campaign": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "successToast" + ], + "additionalProperties": false + }, + "actions": { + "type": "object", + "properties": { + "goToCampaign": { + "type": "string" + } + }, + "required": [ + "goToCampaign" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "edit", + "actions" + ], + "additionalProperties": false + }, + "campaign_currency": { + "type": "object", + "properties": { + "tooltip": { + "type": "string" + } + }, + "required": [ + "tooltip" + ], + "additionalProperties": false + }, + "form": { + "type": "object", + "properties": { + "required": { + "type": "string" + }, + "and": { + "type": "string" + }, + "selectAttribute": { + "type": "string" + }, + "campaign": { + "type": "object", + "properties": { + "existing": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "placeholder": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "desc": { + "type": "string" + } + }, + "required": [ + "title", + "desc" + ], + "additionalProperties": false + } + }, + "required": [ + "title", + "description", + "placeholder" + ], + "additionalProperties": false + }, + "new": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "none": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "existing", + "new", + "none" + ], + "additionalProperties": false + }, + "status": { + "type": "object", + "properties": { + "title": { + "type": "string" + } + }, + "required": [ + "title" + ], + "additionalProperties": false + }, + "method": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "code": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "automatic": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "label", + "code", + "automatic" + ], + "additionalProperties": false + }, + "max_quantity": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "type": { + "type": "object", + "properties": { + "standard": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "buyget": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "standard", + "buyget" + ], + "additionalProperties": false + }, + "allocation": { + "type": "object", + "properties": { + "each": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "across": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "each", + "across" + ], + "additionalProperties": false + }, + "code": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "value": { + "type": "object", + "properties": { + "title": { + "type": "string" + } + }, + "required": [ + "title" + ], + "additionalProperties": false + }, + "value_type": { + "type": "object", + "properties": { + "fixed": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "percentage": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "fixed", + "percentage" + ], + "additionalProperties": false + } + }, + "required": [ + "required", + "and", + "selectAttribute", + "campaign", + "status", + "method", + "max_quantity", + "type", + "allocation", + "code", + "value", + "value_type" + ], + "additionalProperties": false + }, + "deleteWarning": { + "type": "string" + }, + "createPromotionTitle": { + "type": "string" + }, + "type": { + "type": "string" + }, + "conditions": { + "type": "object", + "properties": { + "add": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "add", + "list" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "sections", + "tabs", + "fields", + "tooltips", + "errors", + "toasts", + "create", + "edit", + "campaign", + "campaign_currency", + "form", + "deleteWarning", + "createPromotionTitle", + "type", + "conditions" + ], + "additionalProperties": false + }, + "campaigns": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "details": { + "type": "string" + }, + "status": { + "type": "object", + "properties": { + "active": { + "type": "string" + }, + "expired": { + "type": "string" + }, + "scheduled": { + "type": "string" + } + }, + "required": [ + "active", + "expired", + "scheduled" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "title", + "description", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "description", + "successToast" + ], + "additionalProperties": false + }, + "configuration": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "description", + "successToast" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "edit" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "header": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "title", + "description", + "hint", + "header", + "successToast" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "start_date": { + "type": "string" + }, + "end_date": { + "type": "string" + }, + "total_spend": { + "type": "string" + }, + "total_used": { + "type": "string" + }, + "budget_limit": { + "type": "string" + }, + "campaign_id": { + "type": "object", + "properties": { + "hint": { + "type": "string" + } + }, + "required": [ + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "name", + "identifier", + "start_date", + "end_date", + "total_spend", + "total_used", + "budget_limit", + "campaign_id" + ], + "additionalProperties": false + }, + "budget": { + "type": "object", + "properties": { + "create": { + "type": "object", + "properties": { + "hint": { + "type": "string" + }, + "header": { + "type": "string" + } + }, + "required": [ + "hint", + "header" + ], + "additionalProperties": false + }, + "details": { + "type": "string" + }, + "fields": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "limit": { + "type": "string" + }, + "used": { + "type": "string" + } + }, + "required": [ + "type", + "currency", + "limit", + "used" + ], + "additionalProperties": false + }, + "type": { + "type": "object", + "properties": { + "spend": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "usage": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "spend", + "usage" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + } + }, + "required": [ + "header" + ], + "additionalProperties": false + } + }, + "required": [ + "create", + "details", + "fields", + "type", + "edit" + ], + "additionalProperties": false + }, + "promotions": { + "type": "object", + "properties": { + "remove": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "alreadyAdded": { + "type": "string" + }, + "alreadyAddedDiffCampaign": { + "type": "string" + }, + "currencyMismatch": { + "type": "string" + }, + "toast": { + "type": "object", + "properties": { + "success": { + "type": "string" + } + }, + "required": [ + "success" + ], + "additionalProperties": false + }, + "add": { + "type": "object", + "properties": { + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "list" + ], + "additionalProperties": false + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "remove", + "alreadyAdded", + "alreadyAddedDiffCampaign", + "currencyMismatch", + "toast", + "add", + "list" + ], + "additionalProperties": false + }, + "deleteCampaignWarning": { + "type": "string" + }, + "totalSpend": { + "type": "string" + } + }, + "required": [ + "domain", + "details", + "status", + "delete", + "edit", + "configuration", + "create", + "fields", + "budget", + "promotions", + "deleteCampaignWarning", + "totalSpend" + ], + "additionalProperties": false + }, + "priceLists": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "delete": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "confirmation", + "successToast" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "subheader": { + "type": "string" + }, + "tabs": { + "type": "object", + "properties": { + "details": { + "type": "string" + }, + "products": { + "type": "string" + }, + "prices": { + "type": "string" + } + }, + "required": [ + "details", + "products", + "prices" + ], + "additionalProperties": false + }, + "successToast": { + "type": "string" + }, + "products": { + "type": "object", + "properties": { + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "list" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "subheader", + "tabs", + "successToast", + "products" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "successToast" + ], + "additionalProperties": false + }, + "configuration": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "description", + "successToast" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "edit" + ], + "additionalProperties": false + }, + "products": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "actions": { + "type": "object", + "properties": { + "addProducts": { + "type": "string" + }, + "editPrices": { + "type": "string" + } + }, + "required": [ + "addProducts", + "editPrices" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "confirmation_one": { + "type": "string" + }, + "confirmation_other": { + "type": "string" + }, + "successToast_one": { + "type": "string" + }, + "successToast_other": { + "type": "string" + } + }, + "required": [ + "confirmation_one", + "confirmation_other", + "successToast_one", + "successToast_other" + ], + "additionalProperties": false + }, + "add": { + "type": "object", + "properties": { + "successToast": { + "type": "string" + } + }, + "required": [ + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "successToast": { + "type": "string" + } + }, + "required": [ + "successToast" + ], + "additionalProperties": false + } + }, + "required": [ + "header", + "actions", + "delete", + "add", + "edit" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "priceOverrides": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "header": { + "type": "string" + } + }, + "required": [ + "label", + "header" + ], + "additionalProperties": false + }, + "status": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "options": { + "type": "object", + "properties": { + "active": { + "type": "string" + }, + "draft": { + "type": "string" + }, + "expired": { + "type": "string" + }, + "scheduled": { + "type": "string" + } + }, + "required": [ + "active", + "draft", + "expired", + "scheduled" + ], + "additionalProperties": false + } + }, + "required": [ + "label", + "options" + ], + "additionalProperties": false + }, + "type": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "options": { + "type": "object", + "properties": { + "sale": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "label", + "description" + ], + "additionalProperties": false + }, + "override": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "label", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "sale", + "override" + ], + "additionalProperties": false + } + }, + "required": [ + "label", + "hint", + "options" + ], + "additionalProperties": false + }, + "startsAt": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "endsAt": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + }, + "customerAvailability": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "label": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "placeholder": { + "type": "string" + }, + "attribute": { + "type": "string" + } + }, + "required": [ + "header", + "label", + "hint", + "placeholder", + "attribute" + ], + "additionalProperties": false + } + }, + "required": [ + "priceOverrides", + "status", + "type", + "startsAt", + "endsAt", + "customerAvailability" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "subtitle", + "delete", + "create", + "edit", + "configuration", + "products", + "fields" + ], + "additionalProperties": false + }, + "profile": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "manageYourProfileDetails": { + "type": "string" + }, + "fields": { + "type": "object", + "properties": { + "languageLabel": { + "type": "string" + }, + "usageInsightsLabel": { + "type": "string" + } + }, + "required": [ + "languageLabel", + "usageInsightsLabel" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "languageHint": { + "type": "string" + }, + "languagePlaceholder": { + "type": "string" + }, + "usageInsightsHint": { + "type": "string" + } + }, + "required": [ + "header", + "languageHint", + "languagePlaceholder", + "usageInsightsHint" + ], + "additionalProperties": false + }, + "toast": { + "type": "object", + "properties": { + "edit": { + "type": "string" + } + }, + "required": [ + "edit" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "manageYourProfileDetails", + "fields", + "edit", + "toast" + ], + "additionalProperties": false }, "users": { "type": "object", @@ -194,26 +8768,1921 @@ "domain": { "type": "string" }, - "role": { + "editUser": { "type": "string" }, + "inviteUser": { + "type": "string" + }, + "inviteUserHint": { + "type": "string" + }, + "sendInvite": { + "type": "string" + }, + "pendingInvites": { + "type": "string" + }, + "deleteInviteWarning": { + "type": "string" + }, + "resendInvite": { + "type": "string" + }, + "copyInviteLink": { + "type": "string" + }, + "expiredOnDate": { + "type": "string" + }, + "validFromUntil": { + "type": "string" + }, + "acceptedOnDate": { + "type": "string" + }, + "inviteStatus": { + "type": "object", + "properties": { + "accepted": { + "type": "string" + }, + "pending": { + "type": "string" + }, + "expired": { + "type": "string" + } + }, + "required": [ + "accepted", + "pending", + "expired" + ], + "additionalProperties": false + }, "roles": { "type": "object", "properties": { "admin": { "type": "string" }, - "member": { + "developer": { "type": "string" }, - "developer": { + "member": { "type": "string" } }, - "required": ["admin", "member", "developer"] + "required": [ + "admin", + "developer", + "member" + ], + "additionalProperties": false + }, + "deleteUserWarning": { + "type": "string" + }, + "invite": { + "type": "string" } }, - "required": ["domain", "role", "roles"] + "required": [ + "domain", + "editUser", + "inviteUser", + "inviteUserHint", + "sendInvite", + "pendingInvites", + "deleteInviteWarning", + "resendInvite", + "copyInviteLink", + "expiredOnDate", + "validFromUntil", + "acceptedOnDate", + "inviteStatus", + "roles", + "deleteUserWarning", + "invite" + ], + "additionalProperties": false + }, + "store": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "manageYourStoresDetails": { + "type": "string" + }, + "editStore": { + "type": "string" + }, + "defaultCurrency": { + "type": "string" + }, + "defaultRegion": { + "type": "string" + }, + "swapLinkTemplate": { + "type": "string" + }, + "paymentLinkTemplate": { + "type": "string" + }, + "inviteLinkTemplate": { + "type": "string" + }, + "currencies": { + "type": "string" + }, + "addCurrencies": { + "type": "string" + }, + "enableTaxInclusivePricing": { + "type": "string" + }, + "disableTaxInclusivePricing": { + "type": "string" + }, + "removeCurrencyWarning_one": { + "type": "string" + }, + "removeCurrencyWarning_other": { + "type": "string" + }, + "currencyAlreadyAdded": { + "type": "string" + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + } + }, + "required": [ + "header" + ], + "additionalProperties": false + }, + "toast": { + "type": "object", + "properties": { + "update": { + "type": "string" + }, + "currenciesUpdated": { + "type": "string" + }, + "currenciesRemoved": { + "type": "string" + }, + "updatedTaxInclusivitySuccessfully": { + "type": "string" + } + }, + "required": [ + "update", + "currenciesUpdated", + "currenciesRemoved", + "updatedTaxInclusivitySuccessfully" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "manageYourStoresDetails", + "editStore", + "defaultCurrency", + "defaultRegion", + "swapLinkTemplate", + "paymentLinkTemplate", + "inviteLinkTemplate", + "currencies", + "addCurrencies", + "enableTaxInclusivePricing", + "disableTaxInclusivePricing", + "removeCurrencyWarning_one", + "removeCurrencyWarning_other", + "currencyAlreadyAdded", + "edit", + "toast" + ], + "additionalProperties": false + }, + "regions": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "createRegion": { + "type": "string" + }, + "createRegionHint": { + "type": "string" + }, + "addCountries": { + "type": "string" + }, + "editRegion": { + "type": "string" + }, + "countriesHint": { + "type": "string" + }, + "deleteRegionWarning": { + "type": "string" + }, + "removeCountriesWarning_one": { + "type": "string" + }, + "removeCountriesWarning_other": { + "type": "string" + }, + "removeCountryWarning": { + "type": "string" + }, + "automaticTaxesHint": { + "type": "string" + }, + "taxInclusiveHint": { + "type": "string" + }, + "providersHint": { + "type": "string" + }, + "shippingOptions": { + "type": "string" + }, + "deleteShippingOptionWarning": { + "type": "string" + }, + "return": { + "type": "string" + }, + "outbound": { + "type": "string" + }, + "priceType": { + "type": "string" + }, + "flatRate": { + "type": "string" + }, + "calculated": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + }, + "toast": { + "type": "object", + "properties": { + "delete": { + "type": "string" + }, + "edit": { + "type": "string" + }, + "create": { + "type": "string" + }, + "countries": { + "type": "string" + } + }, + "required": [ + "delete", + "edit", + "create", + "countries" + ], + "additionalProperties": false + }, + "shippingOption": { + "type": "object", + "properties": { + "createShippingOption": { + "type": "string" + }, + "createShippingOptionHint": { + "type": "string" + }, + "editShippingOption": { + "type": "string" + }, + "fulfillmentMethod": { + "type": "string" + }, + "type": { + "type": "object", + "properties": { + "outbound": { + "type": "string" + }, + "outboundHint": { + "type": "string" + }, + "return": { + "type": "string" + }, + "returnHint": { + "type": "string" + } + }, + "required": [ + "outbound", + "outboundHint", + "return", + "returnHint" + ], + "additionalProperties": false + }, + "priceType": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "flatRate": { + "type": "string" + }, + "calculated": { + "type": "string" + } + }, + "required": [ + "label", + "flatRate", + "calculated" + ], + "additionalProperties": false + }, + "availability": { + "type": "object", + "properties": { + "adminOnly": { + "type": "string" + }, + "adminOnlyHint": { + "type": "string" + } + }, + "required": [ + "adminOnly", + "adminOnlyHint" + ], + "additionalProperties": false + }, + "taxInclusiveHint": { + "type": "string" + }, + "requirements": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "label", + "hint" + ], + "additionalProperties": false + } + }, + "required": [ + "createShippingOption", + "createShippingOptionHint", + "editShippingOption", + "fulfillmentMethod", + "type", + "priceType", + "availability", + "taxInclusiveHint", + "requirements" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "subtitle", + "createRegion", + "createRegionHint", + "addCountries", + "editRegion", + "countriesHint", + "deleteRegionWarning", + "removeCountriesWarning_one", + "removeCountriesWarning_other", + "removeCountryWarning", + "automaticTaxesHint", + "taxInclusiveHint", + "providersHint", + "shippingOptions", + "deleteShippingOptionWarning", + "return", + "outbound", + "priceType", + "flatRate", + "calculated", + "list", + "toast", + "shippingOption" + ], + "additionalProperties": false + }, + "taxes": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "domainDescription": { + "type": "string" + }, + "countries": { + "type": "object", + "properties": { + "taxCountriesHint": { + "type": "string" + } + }, + "required": [ + "taxCountriesHint" + ], + "additionalProperties": false + }, + "settings": { + "type": "object", + "properties": { + "editTaxSettings": { + "type": "string" + }, + "taxProviderLabel": { + "type": "string" + }, + "systemTaxProviderLabel": { + "type": "string" + }, + "calculateTaxesAutomaticallyLabel": { + "type": "string" + }, + "calculateTaxesAutomaticallyHint": { + "type": "string" + }, + "applyTaxesOnGiftCardsLabel": { + "type": "string" + }, + "applyTaxesOnGiftCardsHint": { + "type": "string" + }, + "defaultTaxRateLabel": { + "type": "string" + }, + "defaultTaxCodeLabel": { + "type": "string" + } + }, + "required": [ + "editTaxSettings", + "taxProviderLabel", + "systemTaxProviderLabel", + "calculateTaxesAutomaticallyLabel", + "calculateTaxesAutomaticallyHint", + "applyTaxesOnGiftCardsLabel", + "applyTaxesOnGiftCardsHint", + "defaultTaxRateLabel", + "defaultTaxCodeLabel" + ], + "additionalProperties": false + }, + "defaultRate": { + "type": "object", + "properties": { + "sectionTitle": { + "type": "string" + } + }, + "required": [ + "sectionTitle" + ], + "additionalProperties": false + }, + "taxRate": { + "type": "object", + "properties": { + "sectionTitle": { + "type": "string" + }, + "createTaxRate": { + "type": "string" + }, + "createTaxRateHint": { + "type": "string" + }, + "deleteRateDescription": { + "type": "string" + }, + "editTaxRate": { + "type": "string" + }, + "editRateAction": { + "type": "string" + }, + "editOverridesAction": { + "type": "string" + }, + "editOverridesTitle": { + "type": "string" + }, + "editOverridesHint": { + "type": "string" + }, + "deleteTaxRateWarning": { + "type": "string" + }, + "productOverridesLabel": { + "type": "string" + }, + "productOverridesHint": { + "type": "string" + }, + "addProductOverridesAction": { + "type": "string" + }, + "productTypeOverridesLabel": { + "type": "string" + }, + "productTypeOverridesHint": { + "type": "string" + }, + "addProductTypeOverridesAction": { + "type": "string" + }, + "shippingOptionOverridesLabel": { + "type": "string" + }, + "shippingOptionOverridesHint": { + "type": "string" + }, + "addShippingOptionOverridesAction": { + "type": "string" + }, + "productOverridesHeader": { + "type": "string" + }, + "productTypeOverridesHeader": { + "type": "string" + }, + "shippingOptionOverridesHeader": { + "type": "string" + } + }, + "required": [ + "sectionTitle", + "createTaxRate", + "createTaxRateHint", + "deleteRateDescription", + "editTaxRate", + "editRateAction", + "editOverridesAction", + "editOverridesTitle", + "editOverridesHint", + "deleteTaxRateWarning", + "productOverridesLabel", + "productOverridesHint", + "addProductOverridesAction", + "productTypeOverridesLabel", + "productTypeOverridesHint", + "addProductTypeOverridesAction", + "shippingOptionOverridesLabel", + "shippingOptionOverridesHint", + "addShippingOptionOverridesAction", + "productOverridesHeader", + "productTypeOverridesHeader", + "shippingOptionOverridesHeader" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "domainDescription", + "countries", + "settings", + "defaultRate", + "taxRate" + ], + "additionalProperties": false + }, + "locations": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "editLocation": { + "type": "string" + }, + "addSalesChannels": { + "type": "string" + }, + "noLocationsFound": { + "type": "string" + }, + "selectLocations": { + "type": "string" + }, + "deleteLocationWarning": { + "type": "string" + }, + "removeSalesChannelsWarning_one": { + "type": "string" + }, + "removeSalesChannelsWarning_other": { + "type": "string" + }, + "toast": { + "type": "object", + "properties": { + "create": { + "type": "string" + }, + "update": { + "type": "string" + }, + "removeChannel": { + "type": "string" + } + }, + "required": [ + "create", + "update", + "removeChannel" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "editLocation", + "addSalesChannels", + "noLocationsFound", + "selectLocations", + "deleteLocationWarning", + "removeSalesChannelsWarning_one", + "removeSalesChannelsWarning_other", + "toast" + ], + "additionalProperties": false + }, + "reservations": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "deleteWarning": { + "type": "string" + } + }, + "required": [ + "domain", + "subtitle", + "deleteWarning" + ], + "additionalProperties": false + }, + "salesChannels": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "createSalesChannel": { + "type": "string" + }, + "createSalesChannelHint": { + "type": "string" + }, + "enabledHint": { + "type": "string" + }, + "removeProductsWarning_one": { + "type": "string" + }, + "removeProductsWarning_other": { + "type": "string" + }, + "addProducts": { + "type": "string" + }, + "editSalesChannel": { + "type": "string" + }, + "productAlreadyAdded": { + "type": "string" + }, + "deleteSalesChannelWarning": { + "type": "string" + }, + "toast": { + "type": "object", + "properties": { + "create": { + "type": "string" + }, + "update": { + "type": "string" + }, + "delete": { + "type": "string" + } + }, + "required": [ + "create", + "update", + "delete" + ], + "additionalProperties": false + }, + "products": { + "type": "object", + "properties": { + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + }, + "add": { + "type": "object", + "properties": { + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "list" + ], + "additionalProperties": false + } + }, + "required": [ + "list", + "add" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "subtitle", + "createSalesChannel", + "createSalesChannelHint", + "enabledHint", + "removeProductsWarning_one", + "removeProductsWarning_other", + "addProducts", + "editSalesChannel", + "productAlreadyAdded", + "deleteSalesChannelWarning", + "toast", + "products" + ], + "additionalProperties": false + }, + "apiKeyManagement": { + "type": "object", + "properties": { + "domain": { + "type": "object", + "properties": { + "publishable": { + "type": "string" + }, + "secret": { + "type": "string" + } + }, + "required": [ + "publishable", + "secret" + ], + "additionalProperties": false + }, + "subtitle": { + "type": "object", + "properties": { + "publishable": { + "type": "string" + }, + "secret": { + "type": "string" + } + }, + "required": [ + "publishable", + "secret" + ], + "additionalProperties": false + }, + "status": { + "type": "object", + "properties": { + "active": { + "type": "string" + }, + "revoked": { + "type": "string" + } + }, + "required": [ + "active", + "revoked" + ], + "additionalProperties": false + }, + "type": { + "type": "object", + "properties": { + "publishable": { + "type": "string" + }, + "secret": { + "type": "string" + } + }, + "required": [ + "publishable", + "secret" + ], + "additionalProperties": false + }, + "create": { + "type": "object", + "properties": { + "createPublishableHeader": { + "type": "string" + }, + "createPublishableHint": { + "type": "string" + }, + "createSecretHeader": { + "type": "string" + }, + "createSecretHint": { + "type": "string" + }, + "secretKeyCreatedHeader": { + "type": "string" + }, + "secretKeyCreatedHint": { + "type": "string" + }, + "copySecretTokenSuccess": { + "type": "string" + }, + "copySecretTokenFailure": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "createPublishableHeader", + "createPublishableHint", + "createSecretHeader", + "createSecretHint", + "secretKeyCreatedHeader", + "secretKeyCreatedHint", + "copySecretTokenSuccess", + "copySecretTokenFailure", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "description", + "successToast" + ], + "additionalProperties": false + }, + "salesChannels": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "successToast_one": { + "type": "string" + }, + "successToast_other": { + "type": "string" + }, + "alreadyAddedTooltip": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "title", + "description", + "successToast_one", + "successToast_other", + "alreadyAddedTooltip", + "list" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "warning": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "warning", + "successToast" + ], + "additionalProperties": false + }, + "revoke": { + "type": "object", + "properties": { + "warning": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "warning", + "successToast" + ], + "additionalProperties": false + }, + "addSalesChannels": { + "type": "object", + "properties": { + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + } + }, + "required": [ + "list" + ], + "additionalProperties": false + }, + "removeSalesChannel": { + "type": "object", + "properties": { + "warning": { + "type": "string" + }, + "warningBatch_one": { + "type": "string" + }, + "warningBatch_other": { + "type": "string" + }, + "successToast": { + "type": "string" + }, + "successToastBatch_one": { + "type": "string" + }, + "successToastBatch_other": { + "type": "string" + } + }, + "required": [ + "warning", + "warningBatch_one", + "warningBatch_other", + "successToast", + "successToastBatch_one", + "successToastBatch_other" + ], + "additionalProperties": false + }, + "actions": { + "type": "object", + "properties": { + "revoke": { + "type": "string" + }, + "copy": { + "type": "string" + }, + "copySuccessToast": { + "type": "string" + } + }, + "required": [ + "revoke", + "copy", + "copySuccessToast" + ], + "additionalProperties": false + }, + "table": { + "type": "object", + "properties": { + "lastUsedAtHeader": { + "type": "string" + }, + "createdAtHeader": { + "type": "string" + } + }, + "required": [ + "lastUsedAtHeader", + "createdAtHeader" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "lastUsedAtLabel": { + "type": "string" + }, + "revokedByLabel": { + "type": "string" + }, + "revokedAtLabel": { + "type": "string" + }, + "createdByLabel": { + "type": "string" + } + }, + "required": [ + "lastUsedAtLabel", + "revokedByLabel", + "revokedAtLabel", + "createdByLabel" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "subtitle", + "status", + "type", + "create", + "edit", + "salesChannels", + "delete", + "revoke", + "addSalesChannels", + "removeSalesChannel", + "actions", + "table", + "fields" + ], + "additionalProperties": false + }, + "returnReasons": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "calloutHint": { + "type": "string" + }, + "editReason": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "subtitle", + "hint", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "subtitle", + "successToast" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "confirmation", + "successToast" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "value": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "placeholder": { + "type": "string" + }, + "tooltip": { + "type": "string" + } + }, + "required": [ + "label", + "placeholder", + "tooltip" + ], + "additionalProperties": false + }, + "label": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "required": [ + "label", + "placeholder" + ], + "additionalProperties": false + }, + "description": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "placeholder": { + "type": "string" + } + }, + "required": [ + "label", + "placeholder" + ], + "additionalProperties": false + } + }, + "required": [ + "value", + "label", + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "subtitle", + "calloutHint", + "editReason", + "create", + "edit", + "delete", + "fields" + ], + "additionalProperties": false + }, + "login": { + "type": "object", + "properties": { + "forgotPassword": { + "type": "string" + }, + "title": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": [ + "forgotPassword", + "title", + "hint" + ], + "additionalProperties": false + }, + "invite": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "backToLogin": { + "type": "string" + }, + "createAccount": { + "type": "string" + }, + "alreadyHaveAccount": { + "type": "string" + }, + "emailTooltip": { + "type": "string" + }, + "invalidInvite": { + "type": "string" + }, + "successTitle": { + "type": "string" + }, + "successHint": { + "type": "string" + }, + "successAction": { + "type": "string" + }, + "invalidTokenTitle": { + "type": "string" + }, + "invalidTokenHint": { + "type": "string" + }, + "passwordMismatch": { + "type": "string" + }, + "toast": { + "type": "object", + "properties": { + "accepted": { + "type": "string" + } + }, + "required": [ + "accepted" + ], + "additionalProperties": false + } + }, + "required": [ + "title", + "hint", + "backToLogin", + "createAccount", + "alreadyHaveAccount", + "emailTooltip", + "invalidInvite", + "successTitle", + "successHint", + "successAction", + "invalidTokenTitle", + "invalidTokenHint", + "passwordMismatch", + "toast" + ], + "additionalProperties": false + }, + "resetPassword": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "email": { + "type": "string" + }, + "sendResetInstructions": { + "type": "string" + }, + "backToLogin": { + "type": "string" + }, + "newPasswordHint": { + "type": "string" + }, + "invalidTokenTitle": { + "type": "string" + }, + "invalidTokenHint": { + "type": "string" + }, + "expiredTokenTitle": { + "type": "string" + }, + "goToResetPassword": { + "type": "string" + }, + "resetPassword": { + "type": "string" + }, + "newPassword": { + "type": "string" + }, + "repeatNewPassword": { + "type": "string" + }, + "tokenExpiresIn": { + "type": "string" + }, + "successfulRequestTitle": { + "type": "string" + }, + "successfulRequest": { + "type": "string" + }, + "successfulResetTitle": { + "type": "string" + }, + "successfulReset": { + "type": "string" + }, + "passwordMismatch": { + "type": "string" + }, + "invalidLinkTitle": { + "type": "string" + }, + "invalidLinkHint": { + "type": "string" + } + }, + "required": [ + "title", + "hint", + "email", + "sendResetInstructions", + "backToLogin", + "newPasswordHint", + "invalidTokenTitle", + "invalidTokenHint", + "expiredTokenTitle", + "goToResetPassword", + "resetPassword", + "newPassword", + "repeatNewPassword", + "tokenExpiresIn", + "successfulRequestTitle", + "successfulRequest", + "successfulResetTitle", + "successfulReset", + "passwordMismatch", + "invalidLinkTitle", + "invalidLinkHint" + ], + "additionalProperties": false + }, + "workflowExecutions": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "transactionIdLabel": { + "type": "string" + }, + "workflowIdLabel": { + "type": "string" + }, + "progressLabel": { + "type": "string" + }, + "stepsCompletedLabel_one": { + "type": "string" + }, + "stepsCompletedLabel_other": { + "type": "string" + }, + "list": { + "type": "object", + "properties": { + "noRecordsMessage": { + "type": "string" + } + }, + "required": [ + "noRecordsMessage" + ], + "additionalProperties": false + }, + "history": { + "type": "object", + "properties": { + "sectionTitle": { + "type": "string" + }, + "runningState": { + "type": "string" + }, + "awaitingState": { + "type": "string" + }, + "failedState": { + "type": "string" + }, + "skippedState": { + "type": "string" + }, + "skippedFailureState": { + "type": "string" + }, + "definitionLabel": { + "type": "string" + }, + "outputLabel": { + "type": "string" + }, + "compensateInputLabel": { + "type": "string" + }, + "revertedLabel": { + "type": "string" + }, + "errorLabel": { + "type": "string" + } + }, + "required": [ + "sectionTitle", + "runningState", + "awaitingState", + "failedState", + "skippedState", + "skippedFailureState", + "definitionLabel", + "outputLabel", + "compensateInputLabel", + "revertedLabel", + "errorLabel" + ], + "additionalProperties": false + }, + "state": { + "type": "object", + "properties": { + "done": { + "type": "string" + }, + "failed": { + "type": "string" + }, + "reverted": { + "type": "string" + }, + "invoking": { + "type": "string" + }, + "compensating": { + "type": "string" + }, + "notStarted": { + "type": "string" + } + }, + "required": [ + "done", + "failed", + "reverted", + "invoking", + "compensating", + "notStarted" + ], + "additionalProperties": false + }, + "transaction": { + "type": "object", + "properties": { + "state": { + "type": "object", + "properties": { + "waitingToCompensate": { + "type": "string" + } + }, + "required": [ + "waitingToCompensate" + ], + "additionalProperties": false + } + }, + "required": [ + "state" + ], + "additionalProperties": false + }, + "step": { + "type": "object", + "properties": { + "state": { + "type": "object", + "properties": { + "skipped": { + "type": "string" + }, + "skippedFailure": { + "type": "string" + }, + "dormant": { + "type": "string" + }, + "timeout": { + "type": "string" + } + }, + "required": [ + "skipped", + "skippedFailure", + "dormant", + "timeout" + ], + "additionalProperties": false + } + }, + "required": [ + "state" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "subtitle", + "transactionIdLabel", + "workflowIdLabel", + "progressLabel", + "stepsCompletedLabel_one", + "stepsCompletedLabel_other", + "list", + "history", + "state", + "transaction", + "step" + ], + "additionalProperties": false + }, + "productTypes": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "hint": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "hint", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "successToast" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "confirmation", + "successToast" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "value": { + "type": "string" + } + }, + "required": [ + "value" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "subtitle", + "create", + "edit", + "delete", + "fields" + ], + "additionalProperties": false + }, + "productTags": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "create": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "subtitle", + "successToast" + ], + "additionalProperties": false + }, + "edit": { + "type": "object", + "properties": { + "header": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "header", + "subtitle", + "successToast" + ], + "additionalProperties": false + }, + "delete": { + "type": "object", + "properties": { + "confirmation": { + "type": "string" + }, + "successToast": { + "type": "string" + } + }, + "required": [ + "confirmation", + "successToast" + ], + "additionalProperties": false + }, + "fields": { + "type": "object", + "properties": { + "value": { + "type": "string" + } + }, + "required": [ + "value" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "create", + "edit", + "delete", + "fields" + ], + "additionalProperties": false + }, + "notifications": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "emptyState": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "additionalProperties": false + }, + "accessibility": { + "type": "object", + "properties": { + "description": { + "type": "string" + } + }, + "required": [ + "description" + ], + "additionalProperties": false + } + }, + "required": [ + "domain", + "emptyState", + "accessibility" + ], + "additionalProperties": false + }, + "errors": { + "type": "object", + "properties": { + "serverError": { + "type": "string" + }, + "invalidCredentials": { + "type": "string" + } + }, + "required": [ + "serverError", + "invalidCredentials" + ], + "additionalProperties": false }, "statuses": { "type": "object", @@ -227,89 +10696,800 @@ "active": { "type": "string" }, + "enabled": { + "type": "string" + }, "disabled": { "type": "string" } - } + }, + "required": [ + "scheduled", + "expired", + "active", + "enabled", + "disabled" + ], + "additionalProperties": false + }, + "labels": { + "type": "object", + "properties": { + "productVariant": { + "type": "string" + }, + "prices": { + "type": "string" + }, + "available": { + "type": "string" + }, + "inStock": { + "type": "string" + }, + "added": { + "type": "string" + }, + "removed": { + "type": "string" + } + }, + "required": [ + "productVariant", + "prices", + "available", + "inStock", + "added", + "removed" + ], + "additionalProperties": false }, "fields": { "type": "object", "properties": { - "title": { + "amount": { "type": "string" }, - "description": { + "refundAmount": { "type": "string" }, "name": { "type": "string" }, + "default": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "title": { + "type": "string" + }, + "customTitle": { + "type": "string" + }, + "manageInventory": { + "type": "string" + }, + "inventoryKit": { + "type": "string" + }, + "inventoryItems": { + "type": "string" + }, + "inventoryItem": { + "type": "string" + }, + "requiredQuantity": { + "type": "string" + }, + "description": { + "type": "string" + }, "email": { "type": "string" }, "password": { "type": "string" }, - "subtitle": { + "repeatPassword": { "type": "string" }, - "handle": { + "confirmPassword": { "type": "string" }, - "type": { + "newPassword": { "type": "string" }, - "category": { + "repeatNewPassword": { "type": "string" }, "categories": { "type": "string" }, + "shippingMethod": { + "type": "string" + }, + "configurations": { + "type": "string" + }, + "conditions": { + "type": "string" + }, + "category": { + "type": "string" + }, "collection": { "type": "string" }, "discountable": { "type": "string" }, + "handle": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "item": { + "type": "string" + }, + "qty": { + "type": "string" + }, + "limit": { + "type": "string" + }, "tags": { "type": "string" }, + "type": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "none": { + "type": "string" + }, + "all": { + "type": "string" + }, + "search": { + "type": "string" + }, + "percentage": { + "type": "string" + }, "sales_channels": { "type": "string" + }, + "customer_groups": { + "type": "string" + }, + "product_tags": { + "type": "string" + }, + "product_types": { + "type": "string" + }, + "product_collections": { + "type": "string" + }, + "status": { + "type": "string" + }, + "code": { + "type": "string" + }, + "value": { + "type": "string" + }, + "disabled": { + "type": "string" + }, + "dynamic": { + "type": "string" + }, + "normal": { + "type": "string" + }, + "years": { + "type": "string" + }, + "months": { + "type": "string" + }, + "days": { + "type": "string" + }, + "hours": { + "type": "string" + }, + "minutes": { + "type": "string" + }, + "totalRedemptions": { + "type": "string" + }, + "countries": { + "type": "string" + }, + "paymentProviders": { + "type": "string" + }, + "refundReason": { + "type": "string" + }, + "fulfillmentProviders": { + "type": "string" + }, + "fulfillmentProvider": { + "type": "string" + }, + "providers": { + "type": "string" + }, + "availability": { + "type": "string" + }, + "inventory": { + "type": "string" + }, + "optional": { + "type": "string" + }, + "note": { + "type": "string" + }, + "automaticTaxes": { + "type": "string" + }, + "taxInclusivePricing": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "address": { + "type": "string" + }, + "address2": { + "type": "string" + }, + "city": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "country": { + "type": "string" + }, + "state": { + "type": "string" + }, + "province": { + "type": "string" + }, + "company": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "metadata": { + "type": "string" + }, + "selectCountry": { + "type": "string" + }, + "products": { + "type": "string" + }, + "variants": { + "type": "string" + }, + "orders": { + "type": "string" + }, + "account": { + "type": "string" + }, + "total": { + "type": "string" + }, + "paidTotal": { + "type": "string" + }, + "totalExclTax": { + "type": "string" + }, + "subtotal": { + "type": "string" + }, + "shipping": { + "type": "string" + }, + "outboundShipping": { + "type": "string" + }, + "returnShipping": { + "type": "string" + }, + "tax": { + "type": "string" + }, + "created": { + "type": "string" + }, + "key": { + "type": "string" + }, + "customer": { + "type": "string" + }, + "date": { + "type": "string" + }, + "order": { + "type": "string" + }, + "fulfillment": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "payment": { + "type": "string" + }, + "items": { + "type": "string" + }, + "salesChannel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "discount": { + "type": "string" + }, + "role": { + "type": "string" + }, + "sent": { + "type": "string" + }, + "salesChannels": { + "type": "string" + }, + "product": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "updatedAt": { + "type": "string" + }, + "revokedAt": { + "type": "string" + }, + "true": { + "type": "string" + }, + "false": { + "type": "string" + }, + "giftCard": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "dateIssued": { + "type": "string" + }, + "issuedDate": { + "type": "string" + }, + "expiryDate": { + "type": "string" + }, + "price": { + "type": "string" + }, + "priceTemplate": { + "type": "string" + }, + "height": { + "type": "string" + }, + "width": { + "type": "string" + }, + "length": { + "type": "string" + }, + "weight": { + "type": "string" + }, + "midCode": { + "type": "string" + }, + "hsCode": { + "type": "string" + }, + "ean": { + "type": "string" + }, + "upc": { + "type": "string" + }, + "inventoryQuantity": { + "type": "string" + }, + "barcode": { + "type": "string" + }, + "countryOfOrigin": { + "type": "string" + }, + "material": { + "type": "string" + }, + "thumbnail": { + "type": "string" + }, + "sku": { + "type": "string" + }, + "managedInventory": { + "type": "string" + }, + "allowBackorder": { + "type": "string" + }, + "inStock": { + "type": "string" + }, + "location": { + "type": "string" + }, + "quantity": { + "type": "string" + }, + "variant": { + "type": "string" + }, + "id": { + "type": "string" + }, + "parent": { + "type": "string" + }, + "minSubtotal": { + "type": "string" + }, + "maxSubtotal": { + "type": "string" + }, + "shippingProfile": { + "type": "string" + }, + "summary": { + "type": "string" + }, + "details": { + "type": "string" + }, + "label": { + "type": "string" + }, + "rate": { + "type": "string" + }, + "requiresShipping": { + "type": "string" + }, + "unitPrice": { + "type": "string" + }, + "startDate": { + "type": "string" + }, + "endDate": { + "type": "string" + }, + "draft": { + "type": "string" + }, + "values": { + "type": "string" } }, "required": [ - "title", - "description", + "amount", + "refundAmount", "name", + "default", + "lastName", + "firstName", + "title", + "customTitle", + "manageInventory", + "inventoryKit", + "inventoryItems", + "inventoryItem", + "requiredQuantity", + "description", "email", "password", - "subtitle", - "handle", - "type", - "category", + "repeatPassword", + "confirmPassword", + "newPassword", + "repeatNewPassword", "categories", + "shippingMethod", + "configurations", + "conditions", + "category", "collection", "discountable", + "handle", + "subtitle", + "item", + "qty", + "limit", "tags", - "sales_channels" - ] + "type", + "reason", + "none", + "all", + "search", + "percentage", + "sales_channels", + "customer_groups", + "product_tags", + "product_types", + "product_collections", + "status", + "code", + "value", + "disabled", + "dynamic", + "normal", + "years", + "months", + "days", + "hours", + "minutes", + "totalRedemptions", + "countries", + "paymentProviders", + "refundReason", + "fulfillmentProviders", + "fulfillmentProvider", + "providers", + "availability", + "inventory", + "optional", + "note", + "automaticTaxes", + "taxInclusivePricing", + "currency", + "address", + "address2", + "city", + "postalCode", + "country", + "state", + "province", + "company", + "phone", + "metadata", + "selectCountry", + "products", + "variants", + "orders", + "account", + "total", + "paidTotal", + "totalExclTax", + "subtotal", + "shipping", + "outboundShipping", + "returnShipping", + "tax", + "created", + "key", + "customer", + "date", + "order", + "fulfillment", + "provider", + "payment", + "items", + "salesChannel", + "region", + "discount", + "role", + "sent", + "salesChannels", + "product", + "createdAt", + "updatedAt", + "revokedAt", + "true", + "false", + "giftCard", + "tag", + "dateIssued", + "issuedDate", + "expiryDate", + "price", + "priceTemplate", + "height", + "width", + "length", + "weight", + "midCode", + "hsCode", + "ean", + "upc", + "inventoryQuantity", + "barcode", + "countryOfOrigin", + "material", + "thumbnail", + "sku", + "managedInventory", + "allowBackorder", + "inStock", + "location", + "quantity", + "variant", + "id", + "parent", + "minSubtotal", + "maxSubtotal", + "shippingProfile", + "summary", + "details", + "label", + "rate", + "requiresShipping", + "unitPrice", + "startDate", + "endDate", + "draft", + "values" + ], + "additionalProperties": false + }, + "dateTime": { + "type": "object", + "properties": { + "years_one": { + "type": "string" + }, + "years_other": { + "type": "string" + }, + "months_one": { + "type": "string" + }, + "months_other": { + "type": "string" + }, + "weeks_one": { + "type": "string" + }, + "weeks_other": { + "type": "string" + }, + "days_one": { + "type": "string" + }, + "days_other": { + "type": "string" + }, + "hours_one": { + "type": "string" + }, + "hours_other": { + "type": "string" + }, + "minutes_one": { + "type": "string" + }, + "minutes_other": { + "type": "string" + }, + "seconds_one": { + "type": "string" + }, + "seconds_other": { + "type": "string" + } + }, + "required": [ + "years_one", + "years_other", + "months_one", + "months_other", + "weeks_one", + "weeks_other", + "days_one", + "days_other", + "hours_one", + "hours_other", + "minutes_one", + "minutes_other", + "seconds_one", + "seconds_other" + ], + "additionalProperties": false } }, "required": [ + "$schema", "general", + "json", + "metadata", + "validation", + "actions", + "operators", + "app", + "dataGrid", + "filters", + "errorBoundary", + "addresses", + "email", + "transferOwnership", + "sales_channels", "products", - "categories", "collections", + "categories", "inventory", + "giftCards", "customers", "customerGroups", "orders", "draftOrders", - "discounts", - "giftCards", - "pricing", + "stockLocations", + "shippingProfile", + "taxRegions", + "promotions", + "campaigns", + "priceLists", + "profile", "users", - "fields" - ] -} + "store", + "regions", + "taxes", + "locations", + "reservations", + "salesChannels", + "apiKeyManagement", + "returnReasons", + "login", + "invite", + "resetPassword", + "workflowExecutions", + "productTypes", + "productTags", + "notifications", + "errors", + "statuses", + "labels", + "fields", + "dateTime" + ], + "additionalProperties": false +} \ No newline at end of file diff --git a/packages/admin/dashboard/src/i18n/translations/__tests__/validate-translations.spec.ts b/packages/admin/dashboard/src/i18n/translations/__tests__/validate-translations.spec.ts new file mode 100644 index 0000000000..f2814923f7 --- /dev/null +++ b/packages/admin/dashboard/src/i18n/translations/__tests__/validate-translations.spec.ts @@ -0,0 +1,66 @@ +import fs from "fs" +import path from "path" +import { describe, expect, test } from "vitest" + +import schema from "../$schema.json" + +const translationsDir = path.join(__dirname, "..") + +function getRequiredKeysFromSchema(schema: any, prefix = ""): string[] { + const keys: string[] = [] + + if (schema.type === "object" && schema.properties) { + Object.entries(schema.properties).forEach(([key, value]: [string, any]) => { + const newPrefix = prefix ? `${prefix}.${key}` : key + if (value.type === "object") { + keys.push(...getRequiredKeysFromSchema(value, newPrefix)) + } else { + keys.push(newPrefix) + } + }) + } + + return keys.sort() +} + +function getTranslationKeys(obj: any, prefix = ""): string[] { + const keys: string[] = [] + + Object.entries(obj).forEach(([key, value]) => { + const newPrefix = prefix ? `${prefix}.${key}` : key + if (value && typeof value === "object") { + keys.push(...getTranslationKeys(value, newPrefix)) + } else { + keys.push(newPrefix) + } + }) + + return keys.sort() +} + +describe("translation schema validation", () => { + test("en.json should have all keys defined in schema", () => { + const enPath = path.join(translationsDir, "en.json") + const enTranslations = JSON.parse(fs.readFileSync(enPath, "utf-8")) + + const schemaKeys = getRequiredKeysFromSchema(schema) + const translationKeys = getTranslationKeys(enTranslations) + + const missingInTranslations = schemaKeys.filter( + (key) => !translationKeys.includes(key) + ) + const extraInTranslations = translationKeys.filter( + (key) => !schemaKeys.includes(key) + ) + + if (missingInTranslations.length > 0) { + console.error("\nMissing keys in en.json:", missingInTranslations) + } + if (extraInTranslations.length > 0) { + console.error("\nExtra keys in en.json:", extraInTranslations) + } + + expect(missingInTranslations).toEqual([]) + expect(extraInTranslations).toEqual([]) + }) +}) diff --git a/packages/admin/dashboard/tsconfig.build.json b/packages/admin/dashboard/tsconfig.build.json index 571b0fdc9e..f80e935795 100644 --- a/packages/admin/dashboard/tsconfig.build.json +++ b/packages/admin/dashboard/tsconfig.build.json @@ -3,5 +3,6 @@ "compilerOptions": { "noImplicitAny": false, "composite": true - } + }, + "exclude": ["**/*.spec.ts", "**/*.spec.tsx"] } diff --git a/yarn.lock b/yarn.lock index 9660e4263f..de119f89d2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5612,6 +5612,7 @@ __metadata: "@types/react-dom": ^18.2.25 "@uiw/react-json-view": ^2.0.0-alpha.17 "@vitejs/plugin-react": 4.2.1 + ajv: ^8.17.1 autoprefixer: ^10.4.17 cmdk: ^0.2.0 date-fns: ^3.6.0 @@ -5638,6 +5639,7 @@ __metadata: typescript: 5.2.2 vite: ^5.2.11 vite-plugin-inspect: ^0.8.7 + vitest: ^2.1.4 zod: 3.22.4 languageName: unknown linkType: soft @@ -14440,6 +14442,18 @@ __metadata: languageName: node linkType: hard +"@vitest/expect@npm:2.1.4": + version: 2.1.4 + resolution: "@vitest/expect@npm:2.1.4" + dependencies: + "@vitest/spy": 2.1.4 + "@vitest/utils": 2.1.4 + chai: ^5.1.2 + tinyrainbow: ^1.2.0 + checksum: cd20ec6f92479fe5d155221d7623cf506a84e10f537639c93b8a2ffba7314b65f0fcab3754ba31308a0381470fea2e3c53d283e5f5be2c592a69d7e817a85571 + languageName: node + linkType: hard + "@vitest/mocker@npm:2.1.3": version: 2.1.3 resolution: "@vitest/mocker@npm:2.1.3" @@ -14460,6 +14474,25 @@ __metadata: languageName: node linkType: hard +"@vitest/mocker@npm:2.1.4": + version: 2.1.4 + resolution: "@vitest/mocker@npm:2.1.4" + dependencies: + "@vitest/spy": 2.1.4 + estree-walker: ^3.0.3 + magic-string: ^0.30.12 + peerDependencies: + msw: ^2.4.9 + vite: ^5.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + checksum: 3327ec34d05f25e17c0a083877e204a31ffc4150fb259e8f82191aa5328f456e81374b977e56db17c835bd29a7eaba249e011c21b27a52bf31fd4127104d4662 + languageName: node + linkType: hard + "@vitest/pretty-format@npm:2.0.5": version: 2.0.5 resolution: "@vitest/pretty-format@npm:2.0.5" @@ -14487,6 +14520,15 @@ __metadata: languageName: node linkType: hard +"@vitest/pretty-format@npm:2.1.4, @vitest/pretty-format@npm:^2.1.4": + version: 2.1.4 + resolution: "@vitest/pretty-format@npm:2.1.4" + dependencies: + tinyrainbow: ^1.2.0 + checksum: dc20f04f64c95731bf9640fc53ae918d928ab93e70a56d9e03f201700098cdb041b50a8f6a5f30604d4a048c15f315537453f33054e29590a05d5b368ae6849d + languageName: node + linkType: hard + "@vitest/runner@npm:0.32.4": version: 0.32.4 resolution: "@vitest/runner@npm:0.32.4" @@ -14508,6 +14550,16 @@ __metadata: languageName: node linkType: hard +"@vitest/runner@npm:2.1.4": + version: 2.1.4 + resolution: "@vitest/runner@npm:2.1.4" + dependencies: + "@vitest/utils": 2.1.4 + pathe: ^1.1.2 + checksum: be51bb7f63b6d524bed2b44bafa8022ac5019bc01a411497c8b607d13601dae40a592bad6b8e21096f02827bd256296354947525d038a2c04032fdaa9ca991f0 + languageName: node + linkType: hard + "@vitest/snapshot@npm:0.32.4": version: 0.32.4 resolution: "@vitest/snapshot@npm:0.32.4" @@ -14530,6 +14582,17 @@ __metadata: languageName: node linkType: hard +"@vitest/snapshot@npm:2.1.4": + version: 2.1.4 + resolution: "@vitest/snapshot@npm:2.1.4" + dependencies: + "@vitest/pretty-format": 2.1.4 + magic-string: ^0.30.12 + pathe: ^1.1.2 + checksum: 50e15398420870755e03d7d0cb7825642021e4974cb26760b8159f0c8273796732694b6a9a703a7cff88790ca4bb09f38bfc174396bcc7cbb93b96e5ac21d1d7 + languageName: node + linkType: hard + "@vitest/spy@npm:0.32.4": version: 0.32.4 resolution: "@vitest/spy@npm:0.32.4" @@ -14557,6 +14620,15 @@ __metadata: languageName: node linkType: hard +"@vitest/spy@npm:2.1.4": + version: 2.1.4 + resolution: "@vitest/spy@npm:2.1.4" + dependencies: + tinyspy: ^3.0.2 + checksum: a983efa140fa5211dc96a0c7c5110883c8095d00c45e711ecde1cc4a862560055b0e24907ae55970ab4a034e52265b7e8e70168f0da4b500b448d3d214eb045e + languageName: node + linkType: hard + "@vitest/utils@npm:0.32.4": version: 0.32.4 resolution: "@vitest/utils@npm:0.32.4" @@ -14591,6 +14663,17 @@ __metadata: languageName: node linkType: hard +"@vitest/utils@npm:2.1.4": + version: 2.1.4 + resolution: "@vitest/utils@npm:2.1.4" + dependencies: + "@vitest/pretty-format": 2.1.4 + loupe: ^3.1.2 + tinyrainbow: ^1.2.0 + checksum: fd632dbc2496d14bcc609230f1dad73039c9f52f4ca533d6b68fa1a04dd448e03510f2a8e4a368fd274cbb8902a6cd800140ab366dd055256beb2c0dcafcd9f2 + languageName: node + linkType: hard + "@vitest/utils@npm:^2.0.5": version: 2.1.2 resolution: "@vitest/utils@npm:2.1.2" @@ -14863,7 +14946,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^8.12.0": +"ajv@npm:^8.12.0, ajv@npm:^8.17.1": version: 8.17.1 resolution: "ajv@npm:8.17.1" dependencies: @@ -16296,6 +16379,19 @@ __metadata: languageName: node linkType: hard +"chai@npm:^5.1.2": + version: 5.1.2 + resolution: "chai@npm:5.1.2" + dependencies: + assertion-error: ^2.0.1 + check-error: ^2.1.1 + deep-eql: ^5.0.1 + loupe: ^3.1.0 + pathval: ^2.0.0 + checksum: 6c04ff8495b6e535df9c1b062b6b094828454e9a3c9493393e55b2f4dbff7aa2a29a4645133cad160fb00a16196c4dc03dc9bb37e1f4ba9df3b5f50d7533a736 + languageName: node + linkType: hard + "chalk@npm:*, chalk@npm:^5.0.0, chalk@npm:^5.2.0": version: 5.3.0 resolution: "chalk@npm:5.3.0" @@ -17872,7 +17968,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:^4.3.5, debug@npm:^4.3.6": +"debug@npm:^4.3.5, debug@npm:^4.3.6, debug@npm:^4.3.7": version: 4.3.7 resolution: "debug@npm:4.3.7" dependencies: @@ -19906,6 +20002,13 @@ __metadata: languageName: node linkType: hard +"expect-type@npm:^1.1.0": + version: 1.1.0 + resolution: "expect-type@npm:1.1.0" + checksum: 5af0febbe8fe18da05a6d51e3677adafd75213512285408156b368ca471252565d5ca6e59e4bddab25121f3cfcbbebc6a5489f8cc9db131cc29e69dcdcc7ae15 + languageName: node + linkType: hard + "expect@npm:^29.0.0, expect@npm:^29.7.0": version: 29.7.0 resolution: "expect@npm:29.7.0" @@ -24289,7 +24392,7 @@ __metadata: languageName: node linkType: hard -"loupe@npm:^3.1.0, loupe@npm:^3.1.1": +"loupe@npm:^3.1.0, loupe@npm:^3.1.1, loupe@npm:^3.1.2": version: 3.1.2 resolution: "loupe@npm:3.1.2" checksum: b13c02e3ddd6a9d5f8bf84133b3242de556512d824dddeea71cce2dbd6579c8f4d672381c4e742d45cf4423d0701765b4a6e5fbc24701def16bc2b40f8daa96a @@ -24438,7 +24541,7 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.30.11": +"magic-string@npm:^0.30.11, magic-string@npm:^0.30.12": version: 0.30.12 resolution: "magic-string@npm:0.30.12" dependencies: @@ -31201,6 +31304,13 @@ __metadata: languageName: node linkType: hard +"tinyexec@npm:^0.3.1": + version: 0.3.1 + resolution: "tinyexec@npm:0.3.1" + checksum: 11e7a7c5d8b3bddf8b5cbe82a9290d70a6fad84d528421d5d18297f165723cb53d2e737d8f58dcce5ca56f2e4aa2d060f02510b1f8971784f97eb3e9aec28f09 + languageName: node + linkType: hard + "tinypool@npm:^0.5.0": version: 0.5.0 resolution: "tinypool@npm:0.5.0" @@ -31208,7 +31318,7 @@ __metadata: languageName: node linkType: hard -"tinypool@npm:^1.0.0": +"tinypool@npm:^1.0.0, tinypool@npm:^1.0.1": version: 1.0.1 resolution: "tinypool@npm:1.0.1" checksum: 90939d6a03f1519c61007bf416632dc1f0b9c1a9dd673c179ccd9e36a408437384f984fc86555a5d040d45b595abc299c3bb39d354439e98a090766b5952e73d @@ -31229,7 +31339,7 @@ __metadata: languageName: node linkType: hard -"tinyspy@npm:^3.0.0": +"tinyspy@npm:^3.0.0, tinyspy@npm:^3.0.2": version: 3.0.2 resolution: "tinyspy@npm:3.0.2" checksum: 55ffad24e346622b59292e097c2ee30a63919d5acb7ceca87fc0d1c223090089890587b426e20054733f97a58f20af2c349fb7cc193697203868ab7ba00bcea0 @@ -32776,6 +32886,20 @@ __metadata: languageName: node linkType: hard +"vite-node@npm:2.1.4": + version: 2.1.4 + resolution: "vite-node@npm:2.1.4" + dependencies: + cac: ^6.7.14 + debug: ^4.3.7 + pathe: ^1.1.2 + vite: ^5.0.0 + bin: + vite-node: vite-node.mjs + checksum: 4c09128f27ded3f681d2c034f0bb74856cef9cad9c437951bc7f95dab92fc95a5d1ee7f54e32067458ad1105e1f24975e8bc64aa7ed8f5b33449b4f5fea65919 + languageName: node + linkType: hard + "vite-plugin-inspect@npm:^0.8.7": version: 0.8.7 resolution: "vite-plugin-inspect@npm:0.8.7" @@ -33037,6 +33161,56 @@ __metadata: languageName: node linkType: hard +"vitest@npm:^2.1.4": + version: 2.1.4 + resolution: "vitest@npm:2.1.4" + dependencies: + "@vitest/expect": 2.1.4 + "@vitest/mocker": 2.1.4 + "@vitest/pretty-format": ^2.1.4 + "@vitest/runner": 2.1.4 + "@vitest/snapshot": 2.1.4 + "@vitest/spy": 2.1.4 + "@vitest/utils": 2.1.4 + chai: ^5.1.2 + debug: ^4.3.7 + expect-type: ^1.1.0 + magic-string: ^0.30.12 + pathe: ^1.1.2 + std-env: ^3.7.0 + tinybench: ^2.9.0 + tinyexec: ^0.3.1 + tinypool: ^1.0.1 + tinyrainbow: ^1.2.0 + vite: ^5.0.0 + vite-node: 2.1.4 + why-is-node-running: ^2.3.0 + peerDependencies: + "@edge-runtime/vm": "*" + "@types/node": ^18.0.0 || >=20.0.0 + "@vitest/browser": 2.1.4 + "@vitest/ui": 2.1.4 + happy-dom: "*" + jsdom: "*" + peerDependenciesMeta: + "@edge-runtime/vm": + optional: true + "@types/node": + optional: true + "@vitest/browser": + optional: true + "@vitest/ui": + optional: true + happy-dom: + optional: true + jsdom: + optional: true + bin: + vitest: vitest.mjs + checksum: 96068ea6d40186c8ca946ee688ba3717dbd0947c56a2bcd625c14a5df25776342ff2f1eb326b06cb6f538d9568633b3e821991aa7c95a98e458be9fc2b3ca59e + languageName: node + linkType: hard + "void-elements@npm:3.1.0": version: 3.1.0 resolution: "void-elements@npm:3.1.0"