From caefdbafc4b284691f4a6fe713b99d8773158fd6 Mon Sep 17 00:00:00 2001 From: Lera24 Date: Mon, 26 Aug 2024 12:44:07 +0300 Subject: [PATCH] feature: add new configuration variable, update @webitel/ui-adk and webitel-sdk and change imports in api[WTEL-4809] --- package-lock.json | 216 +++++++++--------- package.json | 4 +- .../APIPermissionsGetter.js | 4 +- .../APIPermissionsPatcher.js | 2 +- .../modules/agents/api/agents.js | 4 +- .../agents/modules/queues/api/agentQueues.js | 4 +- .../agents/modules/skills/api/agentSkills.js | 4 +- .../subordinates/api/agentSubordinates.js | 2 +- .../modules/queues/api/queues.js | 4 +- .../queues/modules/agents/api/queueAgents.js | 4 +- .../modules/buckets/api/queueBuckets.js | 4 +- .../modules/filters/api/teamLookupApi.js | 4 +- .../queues/modules/hooks/api/queueHooks.js | 4 +- .../queues/modules/logs/api/queueLog.js | 4 +- .../modules/members/api/queueMembers.js | 4 +- .../modules/res-groups/api/queueResGroups.js | 4 +- .../queues/modules/skills/api/queueSkills.js | 4 +- .../resource-groups/api/resourceGroups.js | 4 +- .../modules/resources/api/resInGroup.js | 4 +- .../modules/resources/api/resources.js | 4 +- .../modules/display/api/resourceDisplay.js | 4 +- .../contact-center/modules/teams/api/teams.js | 4 +- .../teams/modules/agents/api/teamAgents.js | 4 +- .../teams/modules/flow/api/teamFlows.js | 4 +- .../teams/modules/hooks/api/teamHooks.js | 4 +- .../supervisors/api/teamSupervisors.js | 4 +- .../directory/modules/devices/api/devices.js | 4 +- .../directory/modules/license/api/license.js | 4 +- .../modules/license-users/api/licenseUsers.js | 4 +- .../directory/modules/users/api/contacts.js | 4 +- .../modules/users/modules/logs/api/logs.js | 4 +- .../users/modules/tokens/api/userTokens.js | 4 +- .../api/cognitiveProfiles.js | 4 +- .../email-profiles/api/emailProfiles.js | 4 +- .../modules/import-csv/api/importCsv.js | 4 +- .../single-sign-on/api/singleSignOn.js | 4 +- .../modules/storage/api/storage.js | 4 +- .../modules/triggers/api/triggers.js | 4 +- .../triggers/modules/logs/api/triggersLogs.js | 4 +- .../agent-pause-cause/api/agentPauseCause.js | 4 +- .../modules/agent-skills/api/agentSkills.js | 4 +- .../modules/agents/api/skillAgents.js | 4 +- .../modules/blacklists/api/blacklists.js | 4 +- .../modules/numbers/api/blacklistNumbers.js | 4 +- .../lookups/modules/buckets/api/buckets.js | 4 +- .../modules/calendars/api/calendars.js | 4 +- .../communications/api/communications.js | 4 +- .../lookups/modules/media/api/media.js | 4 +- .../text-to-speech/api/TextToSpeechAPI.js | 2 +- .../lookups/modules/regions/api/regions.js | 4 +- .../modules/objects/api/objects.js | 4 +- .../objects/modules/rbac/api/objectsRbac.js | 4 +- .../permissions/modules/roles/api/roles.js | 4 +- .../modules/chat-gateways/api/chatGateways.js | 4 +- .../messenger/facebook/api/facebook.js | 2 +- .../messenger/instagram/api/instagram.js | 2 +- .../messenger/whatsapp/api/whatsapp.js | 2 +- .../routing/modules/chatplan/api/chatplan.js | 4 +- .../routing/modules/dialplan/api/dialplan.js | 4 +- src/modules/routing/modules/flow/api/flow.js | 4 +- .../routing/modules/gateways/api/gateways.js | 4 +- src/modules/settings/api/settings.js | 2 +- .../modules/changelogs/api/changelogs.js | 4 +- .../changelogs/modules/logs/api/logs.js | 4 +- .../configuration/api/configuration.js | 115 +--------- .../components/configuration-popup.vue | 2 + .../components/the-configuration.vue | 2 - .../utils/configurationValueTypes.js | 1 + .../global-variables/api/global-variables.js | 4 +- 69 files changed, 230 insertions(+), 348 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5fef630c6..b5809c8d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@vuelidate/validators": "^2.0.0", "@vueuse/core": "^10.3.0", "@webitel/flow-ui-sdk": "^0.1.14", - "@webitel/ui-sdk": "^24.8.10", + "@webitel/ui-sdk": "^24.8.28", "axios": "^1.6.8", "clipboard-copy": "^4.0.1", "cron-validator": "^1.3.1", @@ -34,7 +34,7 @@ "vue-router": "^4.2.5", "vue2-dropzone": "^3.6.0", "vuex": "^4.1.0", - "webitel-sdk": "^24.4.13" + "webitel-sdk": "^24.8.1" }, "devDependencies": { "@biomejs/biome": "^1.8.3", @@ -77,9 +77,9 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.2.tgz", - "integrity": "sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ==", + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.4.tgz", + "integrity": "sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==", "engines": { "node": ">=6.9.0" } @@ -122,11 +122,11 @@ } }, "node_modules/@babel/generator": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.0.tgz", - "integrity": "sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw==", + "version": "7.25.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.5.tgz", + "integrity": "sha512-abd43wyLfbWoxC6ahM8xTkqLpGB2iWBVyuKC9/srhFunCd1SDNrV1s72bBpK4hLj8KLzHBBcOblvLQZBNw9r3w==", "dependencies": { - "@babel/types": "^7.25.0", + "@babel/types": "^7.25.4", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" @@ -270,12 +270,11 @@ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "node_modules/@babel/parser": { - "version": "7.25.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.3.tgz", - "integrity": "sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==", - "license": "MIT", + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.4.tgz", + "integrity": "sha512-nq+eWrOgdtu3jG5Os4TQP3x3cLA8hR8TvJNjD8vnPa20WGycimcparWnLK4jJhElTK6SDyuJo1weMKO/5LpmLA==", "dependencies": { - "@babel/types": "^7.25.2" + "@babel/types": "^7.25.4" }, "bin": { "parser": "bin/babel-parser.js" @@ -285,9 +284,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.0.tgz", - "integrity": "sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==", + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.4.tgz", + "integrity": "sha512-DSgLeL/FNcpXuzav5wfYvHCGvynXkJbn3Zvc3823AEe9nPwW9IK4UoCSS5yGymmQzN0pCPvivtgS6/8U2kkm1w==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -296,9 +295,9 @@ } }, "node_modules/@babel/standalone": { - "version": "7.25.3", - "resolved": "https://registry.npmjs.org/@babel/standalone/-/standalone-7.25.3.tgz", - "integrity": "sha512-uR+EoBqIIIvKGCG7fOj7HKupu3zVObiMfdEwoPZfVCPpcWJaZ1PkshaP5/6cl6BKAm1Zcv25O1rf+uoQ7V8nqA==", + "version": "7.25.5", + "resolved": "https://registry.npmjs.org/@babel/standalone/-/standalone-7.25.5.tgz", + "integrity": "sha512-46bI7GJHwgWfWszOWMvJIsJjXd+LBMIlaiw4R54+b7GvDfxTVE6ytsqR8uEiI/zYECoB33ChwfN0wq/MLHLFXg==", "engines": { "node": ">=6.9.0" } @@ -317,15 +316,15 @@ } }, "node_modules/@babel/traverse": { - "version": "7.25.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.3.tgz", - "integrity": "sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ==", + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.4.tgz", + "integrity": "sha512-VJ4XsrD+nOvlXyLzmLzUs/0qjFS4sK30te5yEFlvbbUNEgKaVb2BHZUpAL+ttLPQAHNrsI3zZisbfha5Cvr8vg==", "dependencies": { "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.0", - "@babel/parser": "^7.25.3", + "@babel/generator": "^7.25.4", + "@babel/parser": "^7.25.4", "@babel/template": "^7.25.0", - "@babel/types": "^7.25.2", + "@babel/types": "^7.25.4", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -334,10 +333,9 @@ } }, "node_modules/@babel/types": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.2.tgz", - "integrity": "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==", - "license": "MIT", + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.4.tgz", + "integrity": "sha512-zQ1ijeeCXVEh+aNL0RlmkPkG8HUiDcU2pzQQFjtbntgAczRASFzj4H+6+bV+dy1ntKR14I/DypeuRG1uma98iQ==", "dependencies": { "@babel/helper-string-parser": "^7.24.8", "@babel/helper-validator-identifier": "^7.24.7", @@ -910,34 +908,34 @@ } }, "node_modules/@floating-ui/core": { - "version": "1.6.5", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.5.tgz", - "integrity": "sha512-8GrTWmoFhm5BsMZOTHeGD2/0FLKLQQHvO/ZmQga4tKempYRLz8aqJGqXVuQgisnMObq2YZ2SgkwctN1LOOxcqA==", + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.7.tgz", + "integrity": "sha512-yDzVT/Lm101nQ5TCVeK65LtdN7Tj4Qpr9RTXJ2vPFLqtLxwOrpoxAHAJI8J3yYWUc40J0BDBheaitK5SJmno2g==", "dependencies": { - "@floating-ui/utils": "^0.2.5" + "@floating-ui/utils": "^0.2.7" } }, "node_modules/@floating-ui/dom": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.8.tgz", - "integrity": "sha512-kx62rP19VZ767Q653wsP1XZCGIirkE09E0QUGNYTM/ttbbQHqcGPdSfWFxUyyNLc/W6aoJRBajOSXhP6GXjC0Q==", + "version": "1.6.10", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.10.tgz", + "integrity": "sha512-fskgCFv8J8OamCmyun8MfjB1Olfn+uZKjOKZ0vhYF3gRmEUXcGOjxWL8bBr7i4kIuPZ2KD2S3EUIOxnjC8kl2A==", "dependencies": { "@floating-ui/core": "^1.6.0", - "@floating-ui/utils": "^0.2.5" + "@floating-ui/utils": "^0.2.7" } }, "node_modules/@floating-ui/utils": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.5.tgz", - "integrity": "sha512-sTcG+QZ6fdEUObICavU+aB3Mp8HY4n14wYHdxK4fXjPmv3PXZZeY5RaguJmGyeH/CJQhX3fqKUtS4qc1LoHwhQ==" + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.7.tgz", + "integrity": "sha512-X8R8Oj771YRl/w+c1HqAC1szL8zWQRwFvgDwT129k9ACdBoud/+/rX9V0qiMl6LWUdP9voC2nDVZYPMQQsb6eA==" }, "node_modules/@floating-ui/vue": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@floating-ui/vue/-/vue-1.1.2.tgz", - "integrity": "sha512-7pq8HfhVhxOpV6iIMKSslI51fwFYy8G0BF0GjhlhpmUhVwL8jCByvcjzTwEtRWFVRrGD/I9kLp6eUHKumiUTjw==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@floating-ui/vue/-/vue-1.1.4.tgz", + "integrity": "sha512-ammH7T3vyCx7pmm9OF19Wc42zrGnUw0QvLoidgypWsCLJMtGXEwY7paYIHO+K+oLC3mbWpzIHzeTVienYenlNg==", "dependencies": { "@floating-ui/dom": "^1.0.0", - "@floating-ui/utils": "^0.2.5", + "@floating-ui/utils": "^0.2.7", "vue-demi": ">=0.13.0" } }, @@ -1163,18 +1161,18 @@ } }, "node_modules/@nuxt/kit": { - "version": "3.12.4", - "resolved": "https://registry.npmjs.org/@nuxt/kit/-/kit-3.12.4.tgz", - "integrity": "sha512-aNRD1ylzijY0oYolldNcZJXVyxdGzNTl+Xd0UYyFQCu9f4wqUZqQ9l+b7arCEzchr96pMK0xdpvLcS3xo1wDcw==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/@nuxt/kit/-/kit-3.13.0.tgz", + "integrity": "sha512-gbhSbDvYfkGQ0R2ztqTLQLHRMv+7g50kAKKuN6mbF4tL9jg7NPnQ8bAarn2I4Qx8xtmwO+qY1ABkmYMn5S1CpA==", "dependencies": { - "@nuxt/schema": "3.12.4", + "@nuxt/schema": "3.13.0", "c12": "^1.11.1", "consola": "^3.2.3", "defu": "^6.1.4", "destr": "^2.0.3", "globby": "^14.0.2", "hash-sum": "^2.0.0", - "ignore": "^5.3.1", + "ignore": "^5.3.2", "jiti": "^1.21.6", "klona": "^2.0.6", "knitwork": "^1.1.0", @@ -1185,7 +1183,7 @@ "semver": "^7.6.3", "ufo": "^1.5.4", "unctx": "^2.3.1", - "unimport": "^3.9.0", + "unimport": "^3.11.0", "untyped": "^1.4.2" }, "engines": { @@ -1193,9 +1191,9 @@ } }, "node_modules/@nuxt/schema": { - "version": "3.12.4", - "resolved": "https://registry.npmjs.org/@nuxt/schema/-/schema-3.12.4.tgz", - "integrity": "sha512-H7FwBV4ChssMaeiLyPdVLOLUa0326ebp3pNbJfGgFt7rSoKh1MmgjorecA8JMxOQZziy3w6EELf4+5cgLh/F1w==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/@nuxt/schema/-/schema-3.13.0.tgz", + "integrity": "sha512-JBGSjF9Hd8guvTV2312eM1RulCMJc50yR3CeMZPLDsI02A8TXQnABS8EbgvGRvxD43q/ITjj21B2ffG1wEVrnQ==", "dependencies": { "compatx": "^0.1.8", "consola": "^3.2.3", @@ -1207,7 +1205,7 @@ "std-env": "^3.7.0", "ufo": "^1.5.4", "uncrypto": "^0.1.3", - "unimport": "^3.9.0", + "unimport": "^3.11.0", "untyped": "^1.4.2" }, "engines": { @@ -1979,12 +1977,12 @@ } }, "node_modules/@vueuse/components": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/@vueuse/components/-/components-10.11.0.tgz", - "integrity": "sha512-ZvLZI23d5ZAtva5fGyYh/jQtZO8l+zJ5tAXyYNqHJZkq1o5yWyqZhENvSv5mfDmN5IuAOp4tq02mRmX/ipFGcg==", + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/components/-/components-10.11.1.tgz", + "integrity": "sha512-ThcreQCX/eq61sLkLKjigD4PQvs3Wy4zglICvQH9tP6xl87y5KsQEoizn6OI+R3hrOgwQHLJe7Y0wLLh3fBKcg==", "dependencies": { - "@vueuse/core": "10.11.0", - "@vueuse/shared": "10.11.0", + "@vueuse/core": "10.11.1", + "@vueuse/shared": "10.11.1", "vue-demi": ">=0.14.8" } }, @@ -2014,14 +2012,13 @@ } }, "node_modules/@vueuse/core": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.11.0.tgz", - "integrity": "sha512-x3sD4Mkm7PJ+pcq3HX8PLPBadXCAlSDR/waK87dz0gQE+qJnaaFhc/dZVfJz+IUYzTMVGum2QlR7ImiJQN4s6g==", - "license": "MIT", + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.11.1.tgz", + "integrity": "sha512-guoy26JQktXPcz+0n3GukWIy/JDNKti9v6VEMu6kV2sYBsWuGiTU8OWdg+ADfUbHg3/3DlqySDe7JmdHrktiww==", "dependencies": { "@types/web-bluetooth": "^0.0.20", - "@vueuse/metadata": "10.11.0", - "@vueuse/shared": "10.11.0", + "@vueuse/metadata": "10.11.1", + "@vueuse/shared": "10.11.1", "vue-demi": ">=0.14.8" }, "funding": { @@ -2055,19 +2052,17 @@ } }, "node_modules/@vueuse/metadata": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.11.0.tgz", - "integrity": "sha512-kQX7l6l8dVWNqlqyN3ePW3KmjCQO3ZMgXuBMddIu83CmucrsBfXlH+JoviYyRBws/yLTQO8g3Pbw+bdIoVm4oQ==", - "license": "MIT", + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.11.1.tgz", + "integrity": "sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw==", "funding": { "url": "https://github.com/sponsors/antfu" } }, "node_modules/@vueuse/shared": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-10.11.0.tgz", - "integrity": "sha512-fyNoIXEq3PfX1L3NkNhtVQUSRtqYwJtJg+Bp9rIzculIZWHTkKSysujrOk2J+NrRulLTQH9+3gGSfYLWSEWU1A==", - "license": "MIT", + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-10.11.1.tgz", + "integrity": "sha512-LHpC8711VFZlDaYUXEBbFBCQ7GS3dVU9mjOhhMhXP6txTV4EhYQg/KGnQuvt/sPAtoUKq7VVUnL6mVtFoL42sA==", "dependencies": { "vue-demi": ">=0.14.8" }, @@ -2080,7 +2075,6 @@ "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz", "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", "hasInstallScript": true, - "license": "MIT", "bin": { "vue-demi-fix": "bin/vue-demi-fix.js", "vue-demi-switch": "bin/vue-demi-switch.js" @@ -2209,9 +2203,9 @@ } }, "node_modules/@webitel/ui-sdk": { - "version": "24.8.10", - "resolved": "https://registry.npmjs.org/@webitel/ui-sdk/-/ui-sdk-24.8.10.tgz", - "integrity": "sha512-AXDdDaSMcr2ZjgSSKf01h3ZKKi8qKOj4ZwJf8llRA7cXQIkXzgrDLOKwLBNqlkwASJeeXaX53WC/1hypfxWm0A==", + "version": "24.8.28", + "resolved": "https://registry.npmjs.org/@webitel/ui-sdk/-/ui-sdk-24.8.28.tgz", + "integrity": "sha512-o+2zKBRDL40D/ak5UcXUdIbvgQMc1jbCPcOSBqfAlpFaBITW3RoaSYvD7pv2a6Dc+O2RC9LhgdYwyZ3R8DyO0w==", "dependencies": { "@floating-ui/vue": "^1.0.1", "@morev/vue-transitions": "^3.0.2", @@ -2230,7 +2224,7 @@ "jszip": "^3.5.0", "jszip-utils": "^0.1.0", "lodash": "^4.17.21", - "mitt": "^3.0.1", + "mitt": "3.0.1", "path-browserify": "^1.0.1", "plyr": "3.6.3", "query-string": "^8.1.0", @@ -3012,9 +3006,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001649", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001649.tgz", - "integrity": "sha512-fJegqZZ0ZX8HOWr6rcafGr72+xcgJKI9oWfDW5DrD7ExUtgZC7a7R7ZYmZqplh7XDocFdGeIFn7roAxhOeYrPQ==", + "version": "1.0.30001653", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001653.tgz", + "integrity": "sha512-XGWQVB8wFQ2+9NZwZ10GxTYC5hk0Fa+q8cSkr0tgvMhYhMHP/QC+WTgrePMDBWiWc/pV+1ik82Al20XOK25Gcw==", "funding": [ { "type": "opencollective", @@ -4097,9 +4091,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz", - "integrity": "sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==" + "version": "1.5.13", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.13.tgz", + "integrity": "sha512-lbBcvtIJ4J6sS4tb5TLp1b4LyfCdMkwStzXPyAgVgTRAsep4bvrAGaBOP7ZJtQMNJpSQ9SqG4brWOroNaQtm7Q==" }, "node_modules/elliptic": { "version": "6.5.6", @@ -5363,9 +5357,9 @@ "license": "BSD-3-Clause" }, "node_modules/ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "engines": { "node": ">= 4" } @@ -6902,16 +6896,16 @@ } }, "node_modules/nypm": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.3.9.tgz", - "integrity": "sha512-BI2SdqqTHg2d4wJh8P9A1W+bslg33vOE9IZDY6eR2QC+Pu1iNBVZUqczrd43rJb+fMzHU7ltAYKsEFY/kHMFcw==", + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.3.11.tgz", + "integrity": "sha512-E5GqaAYSnbb6n1qZyik2wjPDZON43FqOJO59+3OkWrnmQtjggrMOVnsyzfjxp/tS6nlYJBA4zRA5jSM2YaadMg==", "dependencies": { "citty": "^0.1.6", "consola": "^3.2.3", "execa": "^8.0.1", "pathe": "^1.1.2", - "pkg-types": "^1.1.1", - "ufo": "^1.5.3" + "pkg-types": "^1.2.0", + "ufo": "^1.5.4" }, "bin": { "nypm": "dist/cli.mjs" @@ -7375,10 +7369,9 @@ } }, "node_modules/pkg-types": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.1.3.tgz", - "integrity": "sha512-+JrgthZG6m3ckicaOB74TwQ+tBWsFl3qVQg7mN8ulwSOElJ7gBhKzj2VkCPnZ4NlF6kEquYU+RIYNVAvzd54UA==", - "license": "MIT", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.2.0.tgz", + "integrity": "sha512-+ifYuSSqOQ8CqP4MbZA5hDpb97n3E8SVWdJe+Wms9kj745lmd3b7EZJiqvmLwAlmRfjrI7Hi5z3kdBJ93lFNPA==", "dependencies": { "confbox": "^0.1.7", "mlly": "^1.7.1", @@ -9436,9 +9429,9 @@ } }, "node_modules/type-fest": { - "version": "4.23.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.23.0.tgz", - "integrity": "sha512-ZiBujro2ohr5+Z/hZWHESLz3g08BBdrdLMieYFULJO+tWc437sn8kQsWLJoZErY8alNhxre9K4p3GURAG11n+w==", + "version": "4.25.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.25.0.tgz", + "integrity": "sha512-bRkIGlXsnGBRBQRAY56UXBm//9qH4bmJfFvq83gSz41N282df+fjy8ofcEgc1sM8geNt5cl6mC2g9Fht1cs8Aw==", "engines": { "node": ">=16" }, @@ -9623,9 +9616,9 @@ } }, "node_modules/unimport": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/unimport/-/unimport-3.10.0.tgz", - "integrity": "sha512-/UvKRfWx3mNDWwWQhR62HsoM3wxHwYdTq8ellZzMOHnnw4Dp8tovgthyW7DjTrbjDL+i4idOp06voz2VKlvrLw==", + "version": "3.11.1", + "resolved": "https://registry.npmjs.org/unimport/-/unimport-3.11.1.tgz", + "integrity": "sha512-DuB1Uoq01LrrXTScxnwOoMSlTXxyKcULguFxbLrMDFcE/CO0ZWHpEiyhovN0mycPt7K6luAHe8laqvwvuoeUPg==", "dependencies": { "@rollup/pluginutils": "^5.1.0", "acorn": "^8.12.1", @@ -9636,10 +9629,10 @@ "magic-string": "^0.30.11", "mlly": "^1.7.1", "pathe": "^1.1.2", - "pkg-types": "^1.1.3", + "pkg-types": "^1.2.0", "scule": "^1.3.0", "strip-literal": "^2.1.0", - "unplugin": "^1.12.0" + "unplugin": "^1.12.2" } }, "node_modules/unimport/node_modules/estree-walker": { @@ -9667,9 +9660,9 @@ } }, "node_modules/unplugin": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.12.0.tgz", - "integrity": "sha512-KeczzHl2sATPQUx1gzo+EnUkmN4VmGBYRRVOZSGvGITE9rGHRDGqft6ONceP3vgXcyJ2XjX5axG5jMWUwNCYLw==", + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.12.2.tgz", + "integrity": "sha512-bEqQxeC7rxtxPZ3M5V4Djcc4lQqKPgGe3mAWZvxcSmX5jhGxll19NliaRzQSQPrk4xJZSGniK3puLWpRuZN7VQ==", "dependencies": { "acorn": "^8.12.1", "chokidar": "^3.6.0", @@ -10226,10 +10219,9 @@ } }, "node_modules/webitel-sdk": { - "version": "24.4.16", - "resolved": "https://registry.npmjs.org/webitel-sdk/-/webitel-sdk-24.4.16.tgz", - "integrity": "sha512-evkakLCmVaRa+AwJ5OvXq27En19vRh5t7ibahtyXDUDGQk2IfHzZ4El/4AVm/RFTow5Una6aGhyhL7Ln4CgDZw==", - "license": "MIT", + "version": "24.8.1", + "resolved": "https://registry.npmjs.org/webitel-sdk/-/webitel-sdk-24.8.1.tgz", + "integrity": "sha512-abdjKyIX7OgykvRJwAAJiIZAyvCExGa9aA9obtXbSfQtMvrF9mTXVQFYv5STYWLQGgpU04Q8BSLp2nj+GSFOZQ==", "dependencies": { "@types/webrtc": "~0.0.41", "deep-copy": "1.4.2", diff --git a/package.json b/package.json index bbc2b9b1d..feda3bd1d 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@vuelidate/validators": "^2.0.0", "@vueuse/core": "^10.3.0", "@webitel/flow-ui-sdk": "^0.1.14", - "@webitel/ui-sdk": "^24.8.10", + "@webitel/ui-sdk": "^24.8.28", "axios": "^1.6.8", "clipboard-copy": "^4.0.1", "cron-validator": "^1.3.1", @@ -40,7 +40,7 @@ "vue-router": "^4.2.5", "vue2-dropzone": "^3.6.0", "vuex": "^4.1.0", - "webitel-sdk": "^24.4.13" + "webitel-sdk": "^24.8.1" }, "devDependencies": { "@biomejs/biome": "^1.8.3", diff --git a/src/app/api/PermissionsAPIService/APIPermissionsGetter.js b/src/app/api/PermissionsAPIService/APIPermissionsGetter.js index 80e367c1b..90896020f 100644 --- a/src/app/api/PermissionsAPIService/APIPermissionsGetter.js +++ b/src/app/api/PermissionsAPIService/APIPermissionsGetter.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -8,7 +8,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import instance from '../instance'; export default class APIPermissionsGetter { diff --git a/src/app/api/PermissionsAPIService/APIPermissionsPatcher.js b/src/app/api/PermissionsAPIService/APIPermissionsPatcher.js index fc1589038..56c494133 100644 --- a/src/app/api/PermissionsAPIService/APIPermissionsPatcher.js +++ b/src/app/api/PermissionsAPIService/APIPermissionsPatcher.js @@ -2,7 +2,7 @@ import applyTransform, { camelToSnake, notify, snakeToCamel, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import instance from '../instance'; export default class APIPermissionsPatcher { diff --git a/src/modules/contact-center/modules/agents/api/agents.js b/src/modules/contact-center/modules/agents/api/agents.js index bec06d5d2..46035356f 100644 --- a/src/modules/contact-center/modules/agents/api/agents.js +++ b/src/modules/contact-center/modules/agents/api/agents.js @@ -1,7 +1,7 @@ import { getDefaultGetListResponse, getDefaultGetParams, -} from '@webitel/ui-sdk/src/api/defaults'; +} from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -9,7 +9,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import convertDuration from '@webitel/ui-sdk/src/scripts/convertDuration'; import { AgentServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/contact-center/modules/agents/modules/queues/api/agentQueues.js b/src/modules/contact-center/modules/agents/modules/queues/api/agentQueues.js index 3e8a64900..e634708e4 100644 --- a/src/modules/contact-center/modules/agents/modules/queues/api/agentQueues.js +++ b/src/modules/contact-center/modules/agents/modules/queues/api/agentQueues.js @@ -1,11 +1,11 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { merge, mergeEach, notify, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { AgentServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/agents/modules/skills/api/agentSkills.js b/src/modules/contact-center/modules/agents/modules/skills/api/agentSkills.js index 92c4a2a41..cdc771c58 100644 --- a/src/modules/contact-center/modules/agents/modules/skills/api/agentSkills.js +++ b/src/modules/contact-center/modules/agents/modules/skills/api/agentSkills.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { AgentSkillServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/agents/modules/subordinates/api/agentSubordinates.js b/src/modules/contact-center/modules/agents/modules/subordinates/api/agentSubordinates.js index 6867ddbda..0c1efff5e 100644 --- a/src/modules/contact-center/modules/agents/modules/subordinates/api/agentSubordinates.js +++ b/src/modules/contact-center/modules/agents/modules/subordinates/api/agentSubordinates.js @@ -1,4 +1,4 @@ -import applyTransform, { notify, snakeToCamel } from '@webitel/ui-sdk/src/api/transformers'; +import applyTransform, { notify, snakeToCamel } from '@webitel/ui-sdk/src/api/transformers/index.js'; import { AgentServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/queues/api/queues.js b/src/modules/contact-center/modules/queues/api/queues.js index e8fbb33cd..e326c36de 100644 --- a/src/modules/contact-center/modules/queues/api/queues.js +++ b/src/modules/contact-center/modules/queues/api/queues.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import isEmpty from '@webitel/ui-sdk/src/scripts/isEmpty'; import deepCopy from 'deep-copy'; import { QueueServiceApiFactory } from 'webitel-sdk'; diff --git a/src/modules/contact-center/modules/queues/modules/agents/api/queueAgents.js b/src/modules/contact-center/modules/queues/modules/agents/api/queueAgents.js index 7b93a787d..4ed2355de 100644 --- a/src/modules/contact-center/modules/queues/modules/agents/api/queueAgents.js +++ b/src/modules/contact-center/modules/queues/modules/agents/api/queueAgents.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { merge, mergeEach, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { AgentServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/queues/modules/buckets/api/queueBuckets.js b/src/modules/contact-center/modules/queues/modules/buckets/api/queueBuckets.js index 61d1be8df..ab7db8921 100644 --- a/src/modules/contact-center/modules/queues/modules/buckets/api/queueBuckets.js +++ b/src/modules/contact-center/modules/queues/modules/buckets/api/queueBuckets.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { QueueBucketServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/queues/modules/filters/api/teamLookupApi.js b/src/modules/contact-center/modules/queues/modules/filters/api/teamLookupApi.js index 47dc48a96..40393af32 100644 --- a/src/modules/contact-center/modules/queues/modules/filters/api/teamLookupApi.js +++ b/src/modules/contact-center/modules/queues/modules/filters/api/teamLookupApi.js @@ -1,10 +1,10 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { merge, notify, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { AgentTeamServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/queues/modules/hooks/api/queueHooks.js b/src/modules/contact-center/modules/queues/modules/hooks/api/queueHooks.js index 1a85f43b8..1da517a5f 100644 --- a/src/modules/contact-center/modules/queues/modules/hooks/api/queueHooks.js +++ b/src/modules/contact-center/modules/queues/modules/hooks/api/queueHooks.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { QueueHookServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/queues/modules/logs/api/queueLog.js b/src/modules/contact-center/modules/queues/modules/logs/api/queueLog.js index 2a51c5190..4fd4f63e1 100644 --- a/src/modules/contact-center/modules/queues/modules/logs/api/queueLog.js +++ b/src/modules/contact-center/modules/queues/modules/logs/api/queueLog.js @@ -1,10 +1,10 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { merge, notify, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { MemberServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/queues/modules/members/api/queueMembers.js b/src/modules/contact-center/modules/queues/modules/members/api/queueMembers.js index 50515baee..1d7f1b162 100644 --- a/src/modules/contact-center/modules/queues/modules/members/api/queueMembers.js +++ b/src/modules/contact-center/modules/queues/modules/members/api/queueMembers.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import deepCopy from 'deep-copy'; import { MemberServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; diff --git a/src/modules/contact-center/modules/queues/modules/res-groups/api/queueResGroups.js b/src/modules/contact-center/modules/queues/modules/res-groups/api/queueResGroups.js index 6194e0321..8d54440a8 100644 --- a/src/modules/contact-center/modules/queues/modules/res-groups/api/queueResGroups.js +++ b/src/modules/contact-center/modules/queues/modules/res-groups/api/queueResGroups.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { QueueResourcesServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/queues/modules/skills/api/queueSkills.js b/src/modules/contact-center/modules/queues/modules/skills/api/queueSkills.js index 88aa3e9e1..c7ed9af47 100644 --- a/src/modules/contact-center/modules/queues/modules/skills/api/queueSkills.js +++ b/src/modules/contact-center/modules/queues/modules/skills/api/queueSkills.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { QueueSkillServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/resource-groups/api/resourceGroups.js b/src/modules/contact-center/modules/resource-groups/api/resourceGroups.js index c622edea4..1c13b67cd 100644 --- a/src/modules/contact-center/modules/resource-groups/api/resourceGroups.js +++ b/src/modules/contact-center/modules/resource-groups/api/resourceGroups.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, log, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import deepCopy from 'deep-copy'; import { OutboundResourceGroupServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/contact-center/modules/resource-groups/modules/resources/api/resInGroup.js b/src/modules/contact-center/modules/resource-groups/modules/resources/api/resInGroup.js index 9e8a76f79..e693ad3dc 100644 --- a/src/modules/contact-center/modules/resource-groups/modules/resources/api/resInGroup.js +++ b/src/modules/contact-center/modules/resource-groups/modules/resources/api/resInGroup.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { OutboundResourceGroupServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/resources/api/resources.js b/src/modules/contact-center/modules/resources/api/resources.js index a8d3ed387..37e89e81f 100644 --- a/src/modules/contact-center/modules/resources/api/resources.js +++ b/src/modules/contact-center/modules/resources/api/resources.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import deepCopy from 'deep-copy'; import { OutboundResourceServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/contact-center/modules/resources/modules/display/api/resourceDisplay.js b/src/modules/contact-center/modules/resources/modules/display/api/resourceDisplay.js index f0e4dede4..2d0b07dba 100644 --- a/src/modules/contact-center/modules/resources/modules/display/api/resourceDisplay.js +++ b/src/modules/contact-center/modules/resources/modules/display/api/resourceDisplay.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { OutboundResourceServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/teams/api/teams.js b/src/modules/contact-center/modules/teams/api/teams.js index af2bead03..886278065 100644 --- a/src/modules/contact-center/modules/teams/api/teams.js +++ b/src/modules/contact-center/modules/teams/api/teams.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { AgentTeamServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/teams/modules/agents/api/teamAgents.js b/src/modules/contact-center/modules/teams/modules/agents/api/teamAgents.js index 68ed97a19..c029f9a69 100644 --- a/src/modules/contact-center/modules/teams/modules/agents/api/teamAgents.js +++ b/src/modules/contact-center/modules/teams/modules/agents/api/teamAgents.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { notify, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { AgentServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/teams/modules/flow/api/teamFlows.js b/src/modules/contact-center/modules/teams/modules/flow/api/teamFlows.js index 50d7fb443..a8e97cd9c 100644 --- a/src/modules/contact-center/modules/teams/modules/flow/api/teamFlows.js +++ b/src/modules/contact-center/modules/teams/modules/flow/api/teamFlows.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { TeamTriggerServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/teams/modules/hooks/api/teamHooks.js b/src/modules/contact-center/modules/teams/modules/hooks/api/teamHooks.js index 6bb962733..1d612cd47 100644 --- a/src/modules/contact-center/modules/teams/modules/hooks/api/teamHooks.js +++ b/src/modules/contact-center/modules/teams/modules/hooks/api/teamHooks.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { TeamHookServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/contact-center/modules/teams/modules/supervisors/api/teamSupervisors.js b/src/modules/contact-center/modules/teams/modules/supervisors/api/teamSupervisors.js index a4a6bc666..e3c4fcd08 100644 --- a/src/modules/contact-center/modules/teams/modules/supervisors/api/teamSupervisors.js +++ b/src/modules/contact-center/modules/teams/modules/supervisors/api/teamSupervisors.js @@ -1,11 +1,11 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, notify, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { AgentServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/directory/modules/devices/api/devices.js b/src/modules/directory/modules/devices/api/devices.js index 0ae0c610c..aae65eacb 100644 --- a/src/modules/directory/modules/devices/api/devices.js +++ b/src/modules/directory/modules/devices/api/devices.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -9,7 +9,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import deepCopy from 'deep-copy'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/directory/modules/license/api/license.js b/src/modules/directory/modules/license/api/license.js index ee84f11e8..150d50633 100644 --- a/src/modules/directory/modules/license/api/license.js +++ b/src/modules/directory/modules/license/api/license.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -9,7 +9,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import instance from '../../../../../app/api/instance'; const LICENSE_URL = '/license'; diff --git a/src/modules/directory/modules/license/modules/license-users/api/licenseUsers.js b/src/modules/directory/modules/license/modules/license-users/api/licenseUsers.js index 893b68e18..59e68b0db 100644 --- a/src/modules/directory/modules/license/modules/license-users/api/licenseUsers.js +++ b/src/modules/directory/modules/license/modules/license-users/api/licenseUsers.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -9,7 +9,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import instance from '../../../../../../../app/api/instance'; const baseUrl = '/products'; diff --git a/src/modules/directory/modules/users/api/contacts.js b/src/modules/directory/modules/users/api/contacts.js index 595b72fad..872a35cfb 100644 --- a/src/modules/directory/modules/users/api/contacts.js +++ b/src/modules/directory/modules/users/api/contacts.js @@ -1,7 +1,7 @@ import { getDefaultGetListResponse, getDefaultGetParams, -} from '@webitel/ui-sdk/src/api/defaults'; +} from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { merge, camelToSnake, @@ -9,7 +9,7 @@ import applyTransform, { notify, sanitize, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { ContactsApiFactory } from 'webitel-sdk'; import configuration from '../../../../../app/api/openAPIConfig'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/directory/modules/users/modules/logs/api/logs.js b/src/modules/directory/modules/users/modules/logs/api/logs.js index 4f4db9e56..6e33e17c3 100644 --- a/src/modules/directory/modules/users/modules/logs/api/logs.js +++ b/src/modules/directory/modules/users/modules/logs/api/logs.js @@ -1,11 +1,11 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { merge, notify, sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { LoggerServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/directory/modules/users/modules/tokens/api/userTokens.js b/src/modules/directory/modules/users/modules/tokens/api/userTokens.js index aad99c49f..e135798d1 100644 --- a/src/modules/directory/modules/users/modules/tokens/api/userTokens.js +++ b/src/modules/directory/modules/users/modules/tokens/api/userTokens.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -8,7 +8,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import instance from '../../../../../../../app/api/instance'; const baseUrl = '/users'; diff --git a/src/modules/integrations/modules/cognitive-profiles/api/cognitiveProfiles.js b/src/modules/integrations/modules/cognitive-profiles/api/cognitiveProfiles.js index cf5f06ba7..02a5395b7 100644 --- a/src/modules/integrations/modules/cognitive-profiles/api/cognitiveProfiles.js +++ b/src/modules/integrations/modules/cognitive-profiles/api/cognitiveProfiles.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { CognitiveProfileServiceApiFactory } from 'webitel-sdk'; import { MicrosoftRegion } from 'webitel-sdk/esm2015/lookups'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/integrations/modules/email-profiles/api/emailProfiles.js b/src/modules/integrations/modules/email-profiles/api/emailProfiles.js index 7326d8c05..2d9d9a535 100644 --- a/src/modules/integrations/modules/email-profiles/api/emailProfiles.js +++ b/src/modules/integrations/modules/email-profiles/api/emailProfiles.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { EmailProfileServiceApiFactory } from 'webitel-sdk'; import { EngineEmailAuthType } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/integrations/modules/import-csv/api/importCsv.js b/src/modules/integrations/modules/import-csv/api/importCsv.js index e5a1a3454..da7c5ea5e 100644 --- a/src/modules/integrations/modules/import-csv/api/importCsv.js +++ b/src/modules/integrations/modules/import-csv/api/importCsv.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { ImportTemplateServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/integrations/modules/single-sign-on/api/singleSignOn.js b/src/modules/integrations/modules/single-sign-on/api/singleSignOn.js index 0affd97d4..85c367e3c 100644 --- a/src/modules/integrations/modules/single-sign-on/api/singleSignOn.js +++ b/src/modules/integrations/modules/single-sign-on/api/singleSignOn.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -8,7 +8,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import instance from '../../../../../app/api/instance'; const baseUrl = '/oauth/apps'; diff --git a/src/modules/integrations/modules/storage/api/storage.js b/src/modules/integrations/modules/storage/api/storage.js index 88145bbb4..c1934c98d 100644 --- a/src/modules/integrations/modules/storage/api/storage.js +++ b/src/modules/integrations/modules/storage/api/storage.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import deepCopy from 'deep-copy'; import { BackendProfileServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/integrations/modules/triggers/api/triggers.js b/src/modules/integrations/modules/triggers/api/triggers.js index 54998f648..3e08f8f81 100644 --- a/src/modules/integrations/modules/triggers/api/triggers.js +++ b/src/modules/integrations/modules/triggers/api/triggers.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import deepCopy from 'deep-copy'; import { TriggerServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/integrations/modules/triggers/modules/logs/api/triggersLogs.js b/src/modules/integrations/modules/triggers/modules/logs/api/triggersLogs.js index dc762b400..79d0e6c33 100644 --- a/src/modules/integrations/modules/triggers/modules/logs/api/triggersLogs.js +++ b/src/modules/integrations/modules/triggers/modules/logs/api/triggersLogs.js @@ -1,10 +1,10 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { merge, notify, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { TriggerServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/lookups/modules/agent-pause-cause/api/agentPauseCause.js b/src/modules/lookups/modules/agent-pause-cause/api/agentPauseCause.js index 2e0c79420..201f61fe5 100644 --- a/src/modules/lookups/modules/agent-pause-cause/api/agentPauseCause.js +++ b/src/modules/lookups/modules/agent-pause-cause/api/agentPauseCause.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { AgentPauseCauseServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/lookups/modules/agent-skills/api/agentSkills.js b/src/modules/lookups/modules/agent-skills/api/agentSkills.js index d54b3d7a1..749951dc4 100644 --- a/src/modules/lookups/modules/agent-skills/api/agentSkills.js +++ b/src/modules/lookups/modules/agent-skills/api/agentSkills.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { SkillServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/lookups/modules/agent-skills/modules/agents/api/skillAgents.js b/src/modules/lookups/modules/agent-skills/modules/agents/api/skillAgents.js index d28a4fcb2..7c700d810 100644 --- a/src/modules/lookups/modules/agent-skills/modules/agents/api/skillAgents.js +++ b/src/modules/lookups/modules/agent-skills/modules/agents/api/skillAgents.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { SkillServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/lookups/modules/blacklists/api/blacklists.js b/src/modules/lookups/modules/blacklists/api/blacklists.js index f38c6bf01..2b19f6fb7 100644 --- a/src/modules/lookups/modules/blacklists/api/blacklists.js +++ b/src/modules/lookups/modules/blacklists/api/blacklists.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { ListServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/lookups/modules/blacklists/modules/numbers/api/blacklistNumbers.js b/src/modules/lookups/modules/blacklists/modules/numbers/api/blacklistNumbers.js index e11dc69ac..0cd03c0c9 100644 --- a/src/modules/lookups/modules/blacklists/modules/numbers/api/blacklistNumbers.js +++ b/src/modules/lookups/modules/blacklists/modules/numbers/api/blacklistNumbers.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { ListServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/lookups/modules/buckets/api/buckets.js b/src/modules/lookups/modules/buckets/api/buckets.js index 7371f88a7..aa17f2462 100644 --- a/src/modules/lookups/modules/buckets/api/buckets.js +++ b/src/modules/lookups/modules/buckets/api/buckets.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { BucketServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/lookups/modules/calendars/api/calendars.js b/src/modules/lookups/modules/calendars/api/calendars.js index f381a6f08..02e9cfa0e 100644 --- a/src/modules/lookups/modules/calendars/api/calendars.js +++ b/src/modules/lookups/modules/calendars/api/calendars.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import deepCopy from 'deep-copy'; import { CalendarServiceApiFactory } from 'webitel-sdk'; diff --git a/src/modules/lookups/modules/communications/api/communications.js b/src/modules/lookups/modules/communications/api/communications.js index 79ce1260a..f97e7241a 100644 --- a/src/modules/lookups/modules/communications/api/communications.js +++ b/src/modules/lookups/modules/communications/api/communications.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { CommunicationTypeServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/lookups/modules/media/api/media.js b/src/modules/lookups/modules/media/api/media.js index 507cd9baa..e919ca6f9 100644 --- a/src/modules/lookups/modules/media/api/media.js +++ b/src/modules/lookups/modules/media/api/media.js @@ -1,10 +1,10 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { merge, notify, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import axios from 'axios'; import { MediaFileServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/lookups/modules/media/modules/text-to-speech/api/TextToSpeechAPI.js b/src/modules/lookups/modules/media/modules/text-to-speech/api/TextToSpeechAPI.js index 2d4504189..610dabff0 100644 --- a/src/modules/lookups/modules/media/modules/text-to-speech/api/TextToSpeechAPI.js +++ b/src/modules/lookups/modules/media/modules/text-to-speech/api/TextToSpeechAPI.js @@ -2,7 +2,7 @@ import applyTransform, { camelToSnake, generateUrl, notify, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import instance from '../../../../../../../app/api/instance'; diff --git a/src/modules/lookups/modules/regions/api/regions.js b/src/modules/lookups/modules/regions/api/regions.js index d879278cc..bae183d04 100644 --- a/src/modules/lookups/modules/regions/api/regions.js +++ b/src/modules/lookups/modules/regions/api/regions.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -6,7 +6,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { RegionServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/permissions/modules/objects/api/objects.js b/src/modules/permissions/modules/objects/api/objects.js index cf7e59a93..9af250acd 100644 --- a/src/modules/permissions/modules/objects/api/objects.js +++ b/src/modules/permissions/modules/objects/api/objects.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -8,7 +8,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import instance from '../../../../../app/api/instance'; const baseUrl = '/objclass'; diff --git a/src/modules/permissions/modules/objects/modules/rbac/api/objectsRbac.js b/src/modules/permissions/modules/objects/modules/rbac/api/objectsRbac.js index 0571038f9..d82d77c33 100644 --- a/src/modules/permissions/modules/objects/modules/rbac/api/objectsRbac.js +++ b/src/modules/permissions/modules/objects/modules/rbac/api/objectsRbac.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -8,7 +8,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import APIPermissionsGetter from '../../../../../../../app/api/PermissionsAPIService/APIPermissionsGetter'; import instance from '../../../../../../../app/api/instance'; diff --git a/src/modules/permissions/modules/roles/api/roles.js b/src/modules/permissions/modules/roles/api/roles.js index 95e4f8126..9a742e489 100644 --- a/src/modules/permissions/modules/roles/api/roles.js +++ b/src/modules/permissions/modules/roles/api/roles.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import ApplicationsAccess from '@webitel/ui-sdk/src/modules/Userinfo/classes/ApplicationsAccess'; import deepCopy from 'deep-copy'; import instance from '../../../../../app/api/instance'; diff --git a/src/modules/routing/modules/chat-gateways/api/chatGateways.js b/src/modules/routing/modules/chat-gateways/api/chatGateways.js index 986b26039..2bf3c53d3 100644 --- a/src/modules/routing/modules/chat-gateways/api/chatGateways.js +++ b/src/modules/routing/modules/chat-gateways/api/chatGateways.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -8,7 +8,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import ChatGatewayProvider from '@webitel/ui-sdk/src/enums/ChatGatewayProvider/ChatGatewayProvider.enum'; import deepCopy from 'deep-copy'; import deepmerge from 'deepmerge'; diff --git a/src/modules/routing/modules/chat-gateways/modules/messenger/facebook/api/facebook.js b/src/modules/routing/modules/chat-gateways/modules/messenger/facebook/api/facebook.js index f7eb858c5..56c6e727a 100644 --- a/src/modules/routing/modules/chat-gateways/modules/messenger/facebook/api/facebook.js +++ b/src/modules/routing/modules/chat-gateways/modules/messenger/facebook/api/facebook.js @@ -2,7 +2,7 @@ import applyTransform, { mergeEach, notify, snakeToCamel, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import chatInstance, { chatBaseUrl } from '../../../../api/chatInstance'; const defaultListObject = { diff --git a/src/modules/routing/modules/chat-gateways/modules/messenger/instagram/api/instagram.js b/src/modules/routing/modules/chat-gateways/modules/messenger/instagram/api/instagram.js index badd6fb38..cdb4e7aa4 100644 --- a/src/modules/routing/modules/chat-gateways/modules/messenger/instagram/api/instagram.js +++ b/src/modules/routing/modules/chat-gateways/modules/messenger/instagram/api/instagram.js @@ -2,7 +2,7 @@ import applyTransform, { mergeEach, notify, snakeToCamel, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import chatInstance, { chatBaseUrl } from '../../../../api/chatInstance'; const defaultListObject = { diff --git a/src/modules/routing/modules/chat-gateways/modules/messenger/whatsapp/api/whatsapp.js b/src/modules/routing/modules/chat-gateways/modules/messenger/whatsapp/api/whatsapp.js index 10577dffe..e1e49c412 100644 --- a/src/modules/routing/modules/chat-gateways/modules/messenger/whatsapp/api/whatsapp.js +++ b/src/modules/routing/modules/chat-gateways/modules/messenger/whatsapp/api/whatsapp.js @@ -2,7 +2,7 @@ import applyTransform, { mergeEach, notify, snakeToCamel, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import chatInstance, { chatBaseUrl } from '../../../../api/chatInstance'; const defaultListObject = { diff --git a/src/modules/routing/modules/chatplan/api/chatplan.js b/src/modules/routing/modules/chatplan/api/chatplan.js index 00d648afd..db8976e5f 100644 --- a/src/modules/routing/modules/chatplan/api/chatplan.js +++ b/src/modules/routing/modules/chatplan/api/chatplan.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { RoutingChatPlanServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/routing/modules/dialplan/api/dialplan.js b/src/modules/routing/modules/dialplan/api/dialplan.js index ec018be18..baedb44d8 100644 --- a/src/modules/routing/modules/dialplan/api/dialplan.js +++ b/src/modules/routing/modules/dialplan/api/dialplan.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { RoutingOutboundCallServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/routing/modules/flow/api/flow.js b/src/modules/routing/modules/flow/api/flow.js index 321ea0abd..4d7ec70f0 100644 --- a/src/modules/routing/modules/flow/api/flow.js +++ b/src/modules/routing/modules/flow/api/flow.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { EngineRoutingSchemaType, RoutingSchemaServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/routing/modules/gateways/api/gateways.js b/src/modules/routing/modules/gateways/api/gateways.js index 3ea568a44..72e0120f1 100644 --- a/src/modules/routing/modules/gateways/api/gateways.js +++ b/src/modules/routing/modules/gateways/api/gateways.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, generateUrl, @@ -8,7 +8,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import instance from '../../../../../app/api/instance'; import registerGateway from '../store/_internals/gatewaySchema/registerGateway'; import trunkingGateway from '../store/_internals/gatewaySchema/trunkingGateway'; diff --git a/src/modules/settings/api/settings.js b/src/modules/settings/api/settings.js index f5aa05cc5..dad20e1ac 100644 --- a/src/modules/settings/api/settings.js +++ b/src/modules/settings/api/settings.js @@ -3,7 +3,7 @@ import applyTransform, { camelToSnake, notify, snakeToCamel, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; const baseUrl = 'users'; diff --git a/src/modules/system/modules/changelogs/api/changelogs.js b/src/modules/system/modules/changelogs/api/changelogs.js index 75f137c7b..a9049517d 100644 --- a/src/modules/system/modules/changelogs/api/changelogs.js +++ b/src/modules/system/modules/changelogs/api/changelogs.js @@ -1,4 +1,4 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { camelToSnake, merge, @@ -7,7 +7,7 @@ import applyTransform, { sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { ConfigServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../app/api/instance'; import configuration from '../../../../../app/api/openAPIConfig'; diff --git a/src/modules/system/modules/changelogs/modules/logs/api/logs.js b/src/modules/system/modules/changelogs/modules/logs/api/logs.js index 2f8cf94da..f80e92003 100644 --- a/src/modules/system/modules/changelogs/modules/logs/api/logs.js +++ b/src/modules/system/modules/changelogs/modules/logs/api/logs.js @@ -1,11 +1,11 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults/index.js'; import applyTransform, { merge, notify, sanitize, snakeToCamel, starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; +} from '@webitel/ui-sdk/src/api/transformers/index.js'; import { LoggerServiceApiFactory } from 'webitel-sdk'; import instance from '../../../../../../../app/api/instance'; import configuration from '../../../../../../../app/api/openAPIConfig'; diff --git a/src/modules/system/modules/configuration/api/configuration.js b/src/modules/system/modules/configuration/api/configuration.js index ae670a9d3..1036e03ae 100644 --- a/src/modules/system/modules/configuration/api/configuration.js +++ b/src/modules/system/modules/configuration/api/configuration.js @@ -1,114 +1,3 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; -import applyTransform, { - camelToSnake, - merge, - notify, - sanitize, - snakeToCamel, - starToSearch, -} from '@webitel/ui-sdk/src/api/transformers'; -import { SystemSettingServiceApiFactory } from 'webitel-sdk'; -import instance from '../../../../../app/api/instance'; -import configuration from '../../../../../app/api/openAPIConfig'; +import { configurations } from '@webitel/ui-sdk/src/api/clients/index.js'; -const service = new SystemSettingServiceApiFactory(configuration, '', instance); - -const getList = async (params) => { - const { page, size, search, sort, fields, name } = applyTransform(params, [ - merge(getDefaultGetParams()), - starToSearch('search'), - ]); - - try { - const response = await service.searchSystemSetting(page, size, search, sort, fields, name); - const { items, next } = applyTransform(response.data, [ - snakeToCamel(), - merge(getDefaultGetListResponse()), - ]); - return { - items, - next, - }; - } catch (err) { - throw applyTransform(err, [notify]); - } -}; - -const get = async ({ itemId: id }) => { - try { - const response = await service.readSystemSetting(id); - return applyTransform(response.data, [snakeToCamel()]); - } catch (err) { - throw applyTransform(err, [notify]); - } -}; - -const fieldsToSend = ['id', 'name', 'value']; - -const add = async ({ itemInstance }) => { - const item = applyTransform(itemInstance, [sanitize(fieldsToSend), camelToSnake()]); - try { - const response = await service.createSystemSetting(item); - return applyTransform(response.data, [snakeToCamel()]); - } catch (err) { - throw applyTransform(err, [notify]); - } -}; - -const update = async ({ itemInstance, itemId: id }) => { - const item = applyTransform(itemInstance, [sanitize(fieldsToSend), camelToSnake()]); - try { - const response = await service.updateSystemSetting(id, item); - return applyTransform(response.data, [snakeToCamel()]); - } catch (err) { - throw applyTransform(err, [notify]); - } -}; - -const getLookup = (params) => - getList({ - ...params, - fields: params.fields || ['name'], - }); - -const deleteItem = async ({ id }) => { - try { - const response = await service.deleteSystemSetting(id); - return applyTransform(response.data, []); - } catch (err) { - throw applyTransform(err, [notify]); - } -}; - -const getObjectsList = async (params) => { - const { page, size, search, sort, fields } = applyTransform(params, [ - merge(getDefaultGetParams()), - starToSearch('search'), - ]); - - try { - const response = await service.searchAvailableSystemSetting(page, size, search, sort, fields); - const { items, next } = applyTransform(response.data, [ - snakeToCamel(), - merge(getDefaultGetListResponse()), - ]); - return { - items, - next, - }; - } catch (err) { - throw applyTransform(err, [notify]); - } -}; - -const ConfigurationAPI = { - getList, - get, - add, - update, - delete: deleteItem, - getLookup, - getObjectsList, -}; - -export default ConfigurationAPI; +export default configurations; diff --git a/src/modules/system/modules/configuration/components/configuration-popup.vue b/src/modules/system/modules/configuration/components/configuration-popup.vue index f6ed909da..40bf01e7e 100644 --- a/src/modules/system/modules/configuration/components/configuration-popup.vue +++ b/src/modules/system/modules/configuration/components/configuration-popup.vue @@ -183,6 +183,8 @@ export default { return deepmerge(defaults, defaultStringConfig); case EngineSystemSettingName.PasswordValidationText: return deepmerge(defaults, defaultStringConfig); + case EngineSystemSettingName.AutolinkCallToContact: + return deepmerge(defaults, defaultBooleanConfig); default: return defaults; } diff --git a/src/modules/system/modules/configuration/components/the-configuration.vue b/src/modules/system/modules/configuration/components/the-configuration.vue index aea5b5eca..6ee7d0057 100644 --- a/src/modules/system/modules/configuration/components/the-configuration.vue +++ b/src/modules/system/modules/configuration/components/the-configuration.vue @@ -116,8 +116,6 @@