@wix/cli-app 1.1.107 → 1.1.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{AddPermissionCommand-7E5GD5VD.js → AddPermissionCommand-PYSE647R.js} +2 -2
- package/build/{DevCommand-BWRRKEE6.js → DevCommand-47DRWF4R.js} +21 -12
- package/build/DevCommand-47DRWF4R.js.map +1 -0
- package/build/{GenerateCommand-IO6ENBOG.js → GenerateCommand-MEGRT44D.js} +47 -8
- package/build/GenerateCommand-MEGRT44D.js.map +1 -0
- package/build/{LogsCommand-C62QNN65.js → LogsCommand-35KRDK3E.js} +3 -3
- package/build/PreviewCommand-GQW2OPCK.js +19 -0
- package/build/ReleaseCommand-ALWL544L.js +23 -0
- package/build/{ServeCommand-NDUXIY75.js → ServeCommand-WNAWBSEY.js} +3 -3
- package/build/{build-ZO7CXGLN.js → build-R56FZRMN.js} +6 -6
- package/build/{chunk-VCFM6SMQ.js → chunk-2KUXKFJH.js} +123 -7
- package/build/{chunk-VCFM6SMQ.js.map → chunk-2KUXKFJH.js.map} +1 -1
- package/build/{chunk-GFXZXRO4.js → chunk-4GWPHNUS.js} +2 -2
- package/build/{chunk-6X7N6N75.js → chunk-66VY7ARJ.js} +6 -6
- package/build/{chunk-HNIJZROR.js → chunk-6Q3BEA5C.js} +6 -6
- package/build/{chunk-AKBVXZXO.js → chunk-A7WZ6FHJ.js} +14 -2
- package/build/{chunk-AKBVXZXO.js.map → chunk-A7WZ6FHJ.js.map} +1 -1
- package/build/{chunk-77PR2TSF.js → chunk-FWX34HZ7.js} +2 -2
- package/build/{chunk-OSDDOY2U.js → chunk-GHYEXMIR.js} +211 -54
- package/build/chunk-GHYEXMIR.js.map +1 -0
- package/build/{chunk-HJXYDXED.js → chunk-HDVE7E5R.js} +5 -5
- package/build/{chunk-VV6PV2NF.js → chunk-JZWZBBAJ.js} +5 -5
- package/build/{chunk-TZ37SYKU.js → chunk-N4KQP2BW.js} +2 -2
- package/build/{chunk-EC7IFTLG.js → chunk-NVAKZ24R.js} +8 -2
- package/build/{chunk-EC7IFTLG.js.map → chunk-NVAKZ24R.js.map} +1 -1
- package/build/{chunk-657KFISY.js → chunk-PRD4POH5.js} +2 -2
- package/build/{chunk-EH63OURU.js → chunk-TFY3JGVI.js} +2 -2
- package/build/{chunk-VJAMKDBT.js → chunk-WDIOSFX7.js} +3 -3
- package/build/{chunk-PSN6WZCB.js → chunk-WGYBD2WD.js} +23 -11
- package/build/{chunk-PSN6WZCB.js.map → chunk-WGYBD2WD.js.map} +1 -1
- package/build/{chunk-7B3P7MZT.js → chunk-YHTG4FUT.js} +3 -3
- package/build/{chunk-MK5OQBNN.js → chunk-ZA36AHE5.js} +2 -2
- package/build/{chunk-5ZI5USPK.js → chunk-ZHQREOZP.js} +10 -1
- package/build/chunk-ZHQREOZP.js.map +1 -0
- package/build/cloudflare-runtime/entry.js +256 -32
- package/build/cloudflare-runtime/getRegisteredExtensions.js +252 -28
- package/build/index.js +59 -41
- package/build/index.js.map +1 -1
- package/build/platform-sdk/chunk-J3SVE4GM.js +2 -0
- package/build/platform-sdk/chunk-J3SVE4GM.js.map +1 -0
- package/build/platform-sdk/chunk-J7RIIVO6.js +2 -0
- package/build/platform-sdk/chunk-J7RIIVO6.js.map +1 -0
- package/build/platform-sdk/chunk-RHDUKNAJ.js +2 -0
- package/build/platform-sdk/chunk-RHDUKNAJ.js.map +1 -0
- package/build/platform-sdk/dashboard.js +1 -1
- package/build/platform-sdk/dashboard.js.map +1 -1
- package/build/platform-sdk/editor.js +2 -2
- package/build/platform-sdk/editor.js.map +1 -1
- package/build/platform-sdk/sdk-context.js +1 -1
- package/build/platform-sdk/sdk-context.js.map +1 -1
- package/build/platform-sdk/site.js +1 -1
- package/build/{preview-ZGAFDUGX.js → preview-C34XK2F7.js} +13 -13
- package/build/{release-YOEGOFAT.js → release-EUKZ7O55.js} +15 -15
- package/build/{render-command-FI2MU2Z5.js → render-command-C6PXMRQM.js} +6 -6
- package/package.json +6 -6
- package/build/DevCommand-BWRRKEE6.js.map +0 -1
- package/build/GenerateCommand-IO6ENBOG.js.map +0 -1
- package/build/PreviewCommand-YAYKKYRN.js +0 -19
- package/build/ReleaseCommand-77SWCHH2.js +0 -23
- package/build/chunk-5ZI5USPK.js.map +0 -1
- package/build/chunk-OSDDOY2U.js.map +0 -1
- package/build/platform-sdk/chunk-BBFFXVJD.js +0 -2
- package/build/platform-sdk/chunk-BBFFXVJD.js.map +0 -1
- package/build/platform-sdk/chunk-MAZR75DI.js +0 -2
- package/build/platform-sdk/chunk-MAZR75DI.js.map +0 -1
- package/build/platform-sdk/chunk-NHYZDMR5.js +0 -2
- package/build/platform-sdk/chunk-NHYZDMR5.js.map +0 -1
- /package/build/{AddPermissionCommand-7E5GD5VD.js.map → AddPermissionCommand-PYSE647R.js.map} +0 -0
- /package/build/{LogsCommand-C62QNN65.js.map → LogsCommand-35KRDK3E.js.map} +0 -0
- /package/build/{PreviewCommand-YAYKKYRN.js.map → PreviewCommand-GQW2OPCK.js.map} +0 -0
- /package/build/{ReleaseCommand-77SWCHH2.js.map → ReleaseCommand-ALWL544L.js.map} +0 -0
- /package/build/{ServeCommand-NDUXIY75.js.map → ServeCommand-WNAWBSEY.js.map} +0 -0
- /package/build/{build-ZO7CXGLN.js.map → build-R56FZRMN.js.map} +0 -0
- /package/build/{chunk-GFXZXRO4.js.map → chunk-4GWPHNUS.js.map} +0 -0
- /package/build/{chunk-6X7N6N75.js.map → chunk-66VY7ARJ.js.map} +0 -0
- /package/build/{chunk-HNIJZROR.js.map → chunk-6Q3BEA5C.js.map} +0 -0
- /package/build/{chunk-77PR2TSF.js.map → chunk-FWX34HZ7.js.map} +0 -0
- /package/build/{chunk-HJXYDXED.js.map → chunk-HDVE7E5R.js.map} +0 -0
- /package/build/{chunk-VV6PV2NF.js.map → chunk-JZWZBBAJ.js.map} +0 -0
- /package/build/{chunk-TZ37SYKU.js.map → chunk-N4KQP2BW.js.map} +0 -0
- /package/build/{chunk-657KFISY.js.map → chunk-PRD4POH5.js.map} +0 -0
- /package/build/{chunk-EH63OURU.js.map → chunk-TFY3JGVI.js.map} +0 -0
- /package/build/{chunk-VJAMKDBT.js.map → chunk-WDIOSFX7.js.map} +0 -0
- /package/build/{chunk-7B3P7MZT.js.map → chunk-YHTG4FUT.js.map} +0 -0
- /package/build/{chunk-MK5OQBNN.js.map → chunk-ZA36AHE5.js.map} +0 -0
- /package/build/{preview-ZGAFDUGX.js.map → preview-C34XK2F7.js.map} +0 -0
- /package/build/{release-YOEGOFAT.js.map → release-EUKZ7O55.js.map} +0 -0
- /package/build/{render-command-FI2MU2Z5.js.map → render-command-C6PXMRQM.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
messages_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZHQREOZP.js";
|
|
6
6
|
import {
|
|
7
7
|
DevCenterComponent,
|
|
8
8
|
createI18n,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
require_react,
|
|
11
11
|
useTranslation,
|
|
12
12
|
z
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2KUXKFJH.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_esm_shims
|
|
@@ -179,4 +179,4 @@ export {
|
|
|
179
179
|
docsExtensionTypeSchema,
|
|
180
180
|
getGenerateFlowByDocsExtensionType
|
|
181
181
|
};
|
|
182
|
-
//# sourceMappingURL=chunk-
|
|
182
|
+
//# sourceMappingURL=chunk-YHTG4FUT.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
useProjectModel,
|
|
16
16
|
writePackageJson,
|
|
17
17
|
z
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2KUXKFJH.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__require,
|
|
@@ -9385,4 +9385,4 @@ ejs/lib/ejs.js:
|
|
|
9385
9385
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
9386
9386
|
*)
|
|
9387
9387
|
*/
|
|
9388
|
-
//# sourceMappingURL=chunk-
|
|
9388
|
+
//# sourceMappingURL=chunk-ZA36AHE5.js.map
|
|
@@ -5,6 +5,8 @@ const require = _createRequire(import.meta.url);
|
|
|
5
5
|
var messages_default = {
|
|
6
6
|
"serve_command_def.description": 'This command is deprecated, please use "preview" command instead',
|
|
7
7
|
"dev_command_def.option.https": "Start local dev server on https",
|
|
8
|
+
"dev_command_def.option.port": "Specify which port the dev server should listen to",
|
|
9
|
+
"dev_command_def.option.origin": "The base url for when serving files from host other than localhost",
|
|
8
10
|
"app_preview_command_def.option.site": "The site id to use for Application Preview urls, defaults to the current selected development site",
|
|
9
11
|
"app_preview_command_def.option.base_url": "The base url for when static files have been uploaded to an external cdn",
|
|
10
12
|
"app_preview_command_def.option.json": "Output in JSON format",
|
|
@@ -212,12 +214,19 @@ var messages_default = {
|
|
|
212
214
|
"generate_command.service_plugin.choose_name": "How would you like to name your service plugin",
|
|
213
215
|
"generate_command.service_plugin.name_placeholder": "my-service-plugin",
|
|
214
216
|
"generate_command.service_plugin.groups.stores": "Stores",
|
|
217
|
+
"generate_command.service_plugin.groups.billing": "Billing",
|
|
218
|
+
"generate_command.service_plugin.groups.data": "Data",
|
|
219
|
+
"generate_command.service_plugin.groups.marketing": "Marketing",
|
|
215
220
|
"generate_command.service_plugin.ecom_additional_fees": "Ecom Additional Fees",
|
|
216
221
|
"generate_command.service_plugin.ecom_shipping_rates": "Ecom Shipping Rates",
|
|
217
222
|
"generate_command.service_plugin.ecom_discount_triggers": "Ecom Discount Triggers",
|
|
218
223
|
"generate_command.service_plugin.ecom_validations": "Ecom Validations",
|
|
219
224
|
"generate_command.service_plugin.ecom_payment_settings": "Ecom Payment Settings",
|
|
220
225
|
"generate_command.service_plugin.ecom_gift_cards_provider": "Ecom Gift Cards Provider",
|
|
226
|
+
"generate_command.service_plugin.ecom_recommendations_provider": "Ecom Recommendations Provider",
|
|
227
|
+
"generate_command.service_plugin.premium_custom_charges": "Custom Charges",
|
|
228
|
+
"generate_command.service_plugin.seo_keyword_suggestions": "Seo Keyword Suggestions",
|
|
229
|
+
"generate_command.service_plugin.external_database_provider": "External Database Provider",
|
|
221
230
|
"logs_command_def.option.version": "Specify the app version to fetch production logs from",
|
|
222
231
|
"logs_command.connecting": "Connecting to the log server...",
|
|
223
232
|
"logs_command.listening_to_logs": "Listening to logs from the server.",
|
|
@@ -251,4 +260,4 @@ var messages_default = {
|
|
|
251
260
|
export {
|
|
252
261
|
messages_default
|
|
253
262
|
};
|
|
254
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-ZHQREOZP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/messages.json"],"sourcesContent":["{\n \"serve_command_def.description\": \"This command is deprecated, please use \\\"preview\\\" command instead\",\n \"dev_command_def.option.https\": \"Start local dev server on https\",\n \"dev_command_def.option.port\": \"Specify which port the dev server should listen to\",\n \"dev_command_def.option.origin\": \"The base url for when serving files from host other than localhost\",\n \"app_preview_command_def.option.site\": \"The site id to use for Application Preview urls, defaults to the current selected development site\",\n \"app_preview_command_def.option.base_url\": \"The base url for when static files have been uploaded to an external cdn\",\n \"app_preview_command_def.option.json\": \"Output in JSON format\",\n \"general.loading\": \"Loading...\",\n \"general.no_site_id_configured\": \"You don't have a Development Site currently configured\",\n \"general.site_id_not_found\": \"Your currently configured Development Site was not found ({id})\\nThis may happen because the site was deleted or your access has been revoked.\\n\\nPlease select another Development Site to continue\",\n \"general.dashboard_page_text\": \"<0>Click here</0> to open your application in the Wix Dashboard\",\n \"general.dashboard_page_click_here\": \"Click here\",\n \"general.close_screen\": \"Press <0/> to close\",\n \"logs.backend.clear\": \"Press <0/> to clear\",\n \"general.open_page_error\": \"Failed to open the browser for <0>{title}</0>, use the following URL to open it in your browser:\",\n \"general.dashboard_pages_viewer.title\": \"Press a number key to open a dashboard page:\",\n \"general.dashboard_plugins_viewer.title\": \"Press a number key to open a dashboard plugin:\",\n \"general.dashboard_menu_plugins_viewer.title\": \"Press a number key to open a dashboard menu plugin:\",\n \"general.backend_api_viewer.title\": \"Press a number key to trigger an api:\",\n \"general.backend_plugin_viewer.title\": \"Press a number key to trigger an plugin:\",\n \"general.backend_events_viewer.title\": \"Press a number key to trigger an event:\",\n \"general.numeric_viewer.show_more\": \"View more...\",\n \"general.platform.site\": \"Site\",\n \"general.platform.unpublished_site\": \"Site (publish the site to enable site preview)\",\n \"general.platform.editor\": \"Editor\",\n \"general.platform.dashboard\": \"Dashboard\",\n \"general.platform.blocks_editor\": \"Blocks Editor\",\n \"general.platform.backend\": \"Backend\",\n \"general.platform.none\": \"Your project doesn't seem to have any extensions.\\n\\nExtensions are the building blocks of your app.\\nMake sure it is configured properly, or read our <0>documentation</0> to start developing your first extension.\",\n \"general.dev_site.current\": \"Current Development Site: {name}\",\n \"general.view_changes\": \"View your local changes: <0>(Press a key to open)</0>\",\n \"general.open_preview.title_single\": \"Open the preview on the\",\n \"general.open_preview.title_multiple\": \"Open the preview on:\",\n \"preview_command.creating_preview\": \"Creating a preview...\",\n \"preview_command.creating_preview_success\": \"Preview created successfully!\",\n \"preview_command.uploading_files\": \"Uploading your application files...\",\n \"preview_command.uploading_files_success\": \"Uploaded successfully!\",\n \"dev_command.site_provider.loading\": \"Resolving development site...\",\n \"preview_command.note_about_temporary_backend\": \"This preview URL will be available for three days. Afterward, you can create a new preview if you need to.\",\n \"dev_command.dev_environment.loading\": \"Starting dev environment...\",\n \"dev_command.dev_environment.started\": \"Development environment ready\",\n \"dev_command.dev_site.change\": \"(Press <0/> to switch)\",\n \"dev_command.dev_site.current\": \"Current Dev Site: <0>{siteName}</0>\",\n \"dev_command.site_selector.error\": \"Failed to change Development Site!\",\n \"dev_command.dashboard_pages_screen.select_label\": \"Select a dashboard page to open\",\n \"dev_command.dashboard_menu_plugin_screen.select_label\": \"Select a dashboard menu plugin to open\",\n \"dev_command.dashboard_page_plugin_screen.select_label\": \"Select a dashboard plugin to open\",\n \"dev_command.dashboard_modal_screen.select_label\": \"Select a dashboard modal to open\",\n \"dev_command.backend_apis_screen.select_label\": \"Select api to trigger\",\n \"dev_command.backend_events_screen.select_label\": \"Select event to trigger\",\n \"dev_command.backend_plugins_screen.select_label\": \"Select plugin to trigger\",\n \"dev_command.required_apps.loading\": \"Checking required apps...\",\n \"dev_command.required_apps.warning\": \"Make sure you have {requiredAppNames} installed on your site\",\n \"dev_command.config_change\": \"Loading App Manifest changes...\",\n \"dev_command.config_update\": \"App Manifest updated. Refresh existing browser tabs to view the latest changes.\",\n \"dev_command.config_didnt_update\": \"No App Manifest update occurred\",\n \"dev_command.blocks.syncing_revision\": \"Syncing blocks editor changes locally...\",\n \"dev_command.blocks_revision_updated\": \"Wix Blocks revision has been updated. Your Blocks Editor widgets and panels are now synced with your local project.\",\n \"dev_command.blocks_editor_connected\": \"Blocks Editor connected\",\n \"dev_command.tunneling.confirm\": \"To proceed, we'll set up a secure tunnel from your machine for development purposes\",\n \"dev_command.tunneling.abort_dev\": \"Operation aborted. Tunneling is necessary to run your application.\",\n \"embedded_script.type.essential\": \"Essential\",\n \"embedded_script.type.essential.description\": \"Must load regardless of policy\",\n \"embedded_script.type.functional\": \"Functional\",\n \"embedded_script.type.functional.description\": \"Adds optional functionality to the site\",\n \"embedded_script.type.analytics\": \"Analytics\",\n \"embedded_script.type.analytics.description\": \"Adds analytics abilities to the site\",\n \"embedded_script.type.advertising\": \"Advertising\",\n \"embedded_script.type.advertising.description\": \"Adds advertising content or advertising tracking to the site\",\n \"embedded_script.placement.head\": \"Head\",\n \"embedded_script.placement.head.description\": \"In the document head\",\n \"embedded_script.placement.body_start\": \"Body Start\",\n \"embedded_script.placement.body_start.description\": \"Prepended in the body\",\n \"embedded_script.placement.body_end\": \"Body End\",\n \"embedded_script.placement.body_end.description\": \"Appended in the body\",\n \"generate_command.description\": \"Add new extensions to your application\",\n \"generate_command.type_flag\": \"Extension type that needs to be generated\",\n \"generate_command.go_back\": \"Press <0/> to go back to the previous step\",\n \"generate_command.flow.dashboard_category\": \"Dashboard\",\n \"generate_command.flow.site_category\": \"Site\",\n \"generate_command.flow.backend_category\": \"Backend\",\n \"generate_command.flow.dashboard_page\": \"Dashboard Page\",\n \"generate_command.flow.sidebar_category\": \"Sidebar Category\",\n \"generate_command.flow.dashboard_plugin\": \"Dashboard Plugin\",\n \"generate_command.flow.dashboard_menu_plugin\": \"Dashboard Menu Plugin\",\n \"generate_command.flow.embedded_script\": \"Embedded Script\",\n \"generate_command.flow.site_plugin\": \"Site Plugin\",\n \"generate_command.flow.event\": \"Event\",\n \"generate_command.flow.api.title\": \"API\",\n \"generate_command.flow.dashboard_modal\": \"Dashboard Modal\",\n \"generate_command.flow.custom_element\": \"Site Widget\",\n \"generate_command.flow.service_plugin\": \"Service Plugin\",\n \"generate_command.flow.choose_flow\": \"What kind of extension would you like to generate?\",\n \"generate_command.generation.loading\": \"Generating {subject}...\",\n \"generate_command.generation.title\": \"Generated Successfully\",\n \"generate_command.generation.done\": \"🚀 The new {extensionType} has been generated successfully.\",\n \"generate_command.generation.ecommerce_notification\": \"ℹ️ eCommerce plugins can require more than one business solution to be installed. To add additional required business solutions, navigate to your app's dashboard.\",\n \"generate_command.generation.learn_more\": \"<0/> Learn more about {extensionType}: <1/>\",\n \"generate_command.generation.install_dependencies_question\": \"Would you like to install dependencies now?\",\n \"generate_command.generation.new_dependencies\": \"⚠️ New app dependencies have been added. Please run <0>{pkgManagerName} install</0> before continuing to work.\",\n \"generate_command.generation.dependencies_installed\": \"✅ Dependencies installed\",\n \"generate_command.dashboard_page.choose_route\": \"Enter the route for the new page:\",\n \"generate_command.dashboard_page.route_placeholder\": \"my-page\",\n \"generate_command.dashboard_page.choose_title\": \"Page title:\",\n \"generate_command.dashboard_page.title_placeholder\": \"My Page\",\n \"generate_command.dashboard_page.add_to_category\": \"Add to a sidebar category?\",\n \"generate_command.dashboard_page.choose_category\": \"Sidebar category:\",\n \"generate_command.sidebar_category.choose_label\": \"Enter the label for the new category:\",\n \"generate_command.sidebar_category.label_placeholder\": \"My App\",\n \"generate_command.site_widget_wizard.choose_extension.title\": \"Which framework do you want to use?\",\n \"generate_command.site_widget_wizard.choose_extension.info\": \"You can't change this after selection\",\n \"generate_command.site_widget_wizard.custom_element_option.title\": \"Custom Element\",\n \"generate_command.site_widget_wizard.custom_element_option.description\": \"Code with React and TypeScript (<0>read more</0>)\",\n \"generate_command.site_widget_wizard.blocks.title\": \"Blocks\",\n \"generate_command.site_widget_wizard.blocks.description\": \"Create your widgets using advanced design options in Blocks, then add code locally in your IDE (<0>read more</0>)\",\n \"generate_command.blocks.success.title\": \"Blocks Enabled Successfully\",\n \"generate_command.blocks.success.info.title\": \"<0/> Follow these steps to add a Blocks widget:\",\n \"generate_command.blocks.success.info.steps\": \"1. Run npm run dev, then type 'B'. The Blocks Editor will open in a new tab.\\n2. Design your widget, then sync your design to your local code files.\\n3. When you're done, go to your IDE and start developing your widget's code.\",\n \"generate_command.custom_element.validation.element_exists\": \"The {extensionType} folder must be unique, please choose a name that has yet to be used in your application.\",\n \"generate_command.custom_element.validation.element_invalid\": \"The {extensionType} folder name must include a hyphen (-) and contain only lowercase letters and numbers.\",\n \"generate_command.custom_element.choose_folder\": \"Enter a folder name for your site widget:\",\n \"generate_command.custom_element.folder_placeholder\": \"my-widget\",\n \"generate_command.custom_element.choose_name\": \"Enter a name for your site widget:\",\n \"generate_command.custom_element.choose_name.error\": \"Enter a name that is shorter than 30 characters.\",\n \"generate_command.custom_element.name_placeholder\": \"My Widget\",\n \"generate_command.custom_element.link_dashboard_page\": \"Link dashboard page to custom element?\",\n \"generate_command.custom_element.choose_dashboard_page\": \"Choose dashboard page:\",\n \"generate_command.site_plugin.choose_folder\": \"Enter a folder name for your site plugin:\",\n \"generate_command.site_plugin.folder_placeholder\": \"my-site-plugin\",\n \"generate_command.site_plugin.choose_name\": \"Enter a name for your site plugin:\",\n \"generate_command.site_plugin.name_placeholder\": \"My Site Plugin\",\n \"generate_command.site_plugin.plugin_app\": \"Select a Wix app to view its plugin slots\",\n \"generate_command.site_plugin.plugin_app.description\": \"(<0>read more</0>)\",\n \"generate_command.site_plugin.choose_placement\": \"Select the slot in which you’d like to place your plugin\",\n \"generate_command.site_plugin.widget_docs\": \"<0>read more</0>\",\n \"generate_command.embedded_script.validation.script_exists\": \"The script folder must be unique, please choose a name that has not been used yet in your application.\",\n \"generate_command.embedded_script.validation.script_invalid\": \"The script folder must be a valid path ([a-z0-9-/]+) and must not start with a dot.\",\n \"generate_command.embedded_script.choose_folder\": \"Script folder (relative to src/site/embedded-scripts):\",\n \"generate_command.embedded_script.folder_placeholder\": \"my-script\",\n \"generate_command.embedded_script.choose_name\": \"Script name:\",\n \"generate_command.embedded_script.name_placeholder\": \"My Script\",\n \"generate_command.embedded_script.choose_type\": \"Script type:\",\n \"generate_command.embedded_script.type_info\": \"Determine if site visitors' consent is needed to run the script, <0>read more</0>\",\n \"generate_command.embedded_script.choose_placement\": \"Placement:\",\n \"generate_command.embedded_script.placement_info\": \"Will determine where the script is embedded\",\n \"generate_command.dashboard_modal.validation.folder_exists\": \"The modal folder must be unique, please choose a folder name that has not been used yet in your application.\",\n \"generate_command.dashboard_modal.validation.folder_invalid\": \"The modal folder must be a valid path ([a-z0-9-/]+) and must not start with a dot.\",\n \"generate_command.dashboard_modal.choose_folder\": \"Enter the folder name for the new modal:\",\n \"generate_command.dashboard_modal.folder_placeholder\": \"my-modal\",\n \"generate_command.dashboard_modal.choose_title\": \"Modal title:\",\n \"generate_command.dashboard_modal.title_placeholder\": \"My Modal\",\n \"generate_command.dashboard.plugin_app\": \"Select a Wix app to view its plugin slots\",\n \"generate_command.dashboard.plugin_app.description\": \"(<0>read more</0>)\",\n \"generate_command.dashboard_plugin.what_to_extend\": \"What would you like to extend?\",\n \"generate_command.dashboard_plugin.what_to_extend.description\": \"Plugins let you extend Wix apps by embedding your UI inside dedicated slots within a dashboard page (<0>read more</0>)\",\n \"generate_command.dashboard_plugin.what_to_extend.item_description\": \"<0>read more</0>\",\n \"generate_command.dashboard_plugin.choose_folder\": \"Plugin folder (relative to src/dashboard/plugins)\",\n \"generate_command.dashboard_plugin.folder_placeholder\": \"my-plugin\",\n \"generate_command.dashboard_plugin.choose_title\": \"Plugin title\",\n \"generate_command.dashboard_plugin.title_placeholder\": \"My Plugin\",\n \"generate_command.required_app\": \"Would you like to set {appsNames} as a requirement for your app?\",\n \"generate_command.required_app.description\": \"This means sites must have {appsNames} installed before installing your app (<0>read more</0>)\",\n \"generate_command.required_business_solution\": \"Select a business solution your extension requires\",\n \"generate_command.required_business_solution.loading\": \"Checking required apps...\",\n \"generate_command.required_business_solution.none\": \"None\",\n \"generate_command.required_business_solution.already_required\": \"app is already configured as required\",\n \"generate_command.required_business_solution.description\": \"(you can add more required business solutions later)\",\n \"generate_command.required_business_solution.error\": \"Unable to retrieve the required apps from the App Dashboard\",\n \"generate_command.required_business_solution.error.hint\": \"Please manually add required apps directly from the <0>app audience page</0>\",\n \"generate_command.dashboard_menu_plugin.what_to_extend\": \"What would you like to extend?\",\n \"generate_command.dashboard_menu_plugin.what_to_extend.description\": \"Menu Plugins let you extend Wix apps by adding a menu item in a pre-defined slot in a menu on a dashboard page (<0>read more</0>)\",\n \"generate_command.dashboard_menu_plugin.what_to_extend.item_description\": \"<0>read more</0>\",\n \"generate_command.dashboard_menu_plugin.what_to_do\": \"What action will happen after clicking on the menu item?\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page\": \"Navigate to a page\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal\": \"Open a modal\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page\": \"Choose a page the menu item will navigate to:\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.info\": \"Choose from a list of available pages in your project or manually add a page from a different app\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.other\": \"Use a page from a different app\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.other.choose_page_id\": \"What is the unique id of the page?\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.other.page_id_invalid\": \"Page id has to be in the format of a uuid\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component\": \"Choose the modal to open:\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.info\": \"Choose from a list of available modals in your project or manually add a modal from a different app\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.other\": \"Use a modal from a different app\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.other.choose_component_id\": \"What is the unique id of the modal?\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.other.component_id_invalid\": \"Modal id has to be in the format of a uuid\",\n \"generate_command.dashboard_menu_plugin.choose_folder\": \"Menu Plugin folder (relative to src/dashboard/menu-plugins)\",\n \"generate_command.dashboard_menu_plugin.folder_placeholder\": \"my-plugin\",\n \"generate_command.dashboard_menu_plugin.choose_title\": \"Menu Plugin title\",\n \"generate_command.dashboard_menu_plugin.title_placeholder\": \"My Plugin\",\n \"generate_command.api.choose_type\": \"Choose an API type:\",\n \"generate_command.api.choose_type.info\": \"(<0>read more</0>)\",\n \"generate_command.api.http_function\": \"HTTP Function\",\n \"generate_command.api.http_function.description\": \"Advanced\",\n \"generate_command.api.web_method\": \"Web Method\",\n \"generate_command.api.web_method.title\": \"Web Method\",\n \"generate_command.api.web_method.description\": \"Recommended\",\n \"generate_command.api.api_placeholder\": \"my-api\",\n \"generate_command.api.choose_api_name\": \"How would you like to name your API?\",\n \"generate_command.api.choose_folder\": \"API folder (relative to src/backend/api):\",\n \"generate_command.api.choose_api_name.error\": \"API name must be unique, can not include special characters or spaces, and must be shorter than 20 characters\",\n \"generate_command.api.choose_method\": \"Choose an API method\",\n \"generate_command.web_method.choose_filename.placeholder\": \"my-web-method\",\n \"generate_command.web_method.choose_filename\": \"Web Method file name (relative to the src/backend folder):\",\n \"generate_command.web_method.choose_filename.error\": \"Web Method file name must be unique, can not include special characters or spaces, and must be shorter than 20 characters\",\n \"generate_command.event.choose_folder\": \"Event folder (relative to src/backend/events):\",\n \"generate_command.event.folder_placeholder\": \"my-event\",\n \"generate_command.event.choose_folder.error\": \"Event name must be unique, can not include special characters or spaces, and must be shorter than 20 characters\",\n \"generate_command.service_plugin.choose_type\": \"Which service plugin do you want to create\",\n \"generate_command.service_plugin.choose_name\": \"How would you like to name your service plugin\",\n \"generate_command.service_plugin.name_placeholder\": \"my-service-plugin\",\n \"generate_command.service_plugin.groups.stores\": \"Stores\",\n \"generate_command.service_plugin.groups.billing\": \"Billing\",\n \"generate_command.service_plugin.groups.data\": \"Data\",\n \"generate_command.service_plugin.groups.marketing\": \"Marketing\",\n \"generate_command.service_plugin.ecom_additional_fees\": \"Ecom Additional Fees\",\n \"generate_command.service_plugin.ecom_shipping_rates\": \"Ecom Shipping Rates\",\n \"generate_command.service_plugin.ecom_discount_triggers\": \"Ecom Discount Triggers\",\n \"generate_command.service_plugin.ecom_validations\": \"Ecom Validations\",\n \"generate_command.service_plugin.ecom_payment_settings\": \"Ecom Payment Settings\",\n \"generate_command.service_plugin.ecom_gift_cards_provider\": \"Ecom Gift Cards Provider\",\n \"generate_command.service_plugin.ecom_recommendations_provider\": \"Ecom Recommendations Provider\",\n \"generate_command.service_plugin.premium_custom_charges\": \"Custom Charges\",\n \"generate_command.service_plugin.seo_keyword_suggestions\": \"Seo Keyword Suggestions\",\n \"generate_command.service_plugin.external_database_provider\": \"External Database Provider\",\n \"logs_command_def.option.version\": \"Specify the app version to fetch production logs from\",\n \"logs_command.connecting\": \"Connecting to the log server...\",\n \"logs_command.listening_to_logs\": \"Listening to logs from the server.\",\n \"logs_command.prod_env_logs\": \"Prod Environment logs for the version: {version}\",\n \"release_command_def.description\": \"Release a new version of your application\",\n \"release_command_def.option.site\": \"The site id to use for Application Preview urls, defaults to the current selected development site\",\n \"release_command_def.option.base_url\": \"The base url for when static files have been uploaded to an external cdn\",\n \"release_command_def.option.comment\": \"The comment for your release version, not visible by users\",\n \"release_command_def.option.version_type\": \"The type of version you would like to create\",\n \"release_command.loading_app_details\": \"Loading application details...\",\n \"release_command.creating_draft\": \"Updating draft application version\",\n \"release_command.check_preview_before_version_release\": \"Before creating a new version, let's create a preview of your app\",\n \"release_command.confirm_version_events_warning\": \"Your project includes backend events. Once you proceed, any changes to events will be immediately deployed to production and take effect automatically, even without a new version release.\",\n \"release_command.enter_release_comment\": \"Enter a comment describing any changes made to this version. This won't be shown to users (optional)\",\n \"release_command.release_comment_requirement\": \"The comment is limited to a maximum of 250 characters\",\n \"release_command.version_type_question\": \"What type of version would you like to create?\",\n \"release_command.next_steps\": \"Next Steps:\",\n \"release_command.open_stats\": \"<0/> View your app reviews and statistics in the <1>app dashboard</1>\",\n \"release_command.distribute\": \"<0/> Choose your distribution method from the <1>app dashboard</1>\",\n \"release_command.version.minor\": \"Minor ({version})\",\n \"release_command.version.minor_disabled\": \"Minor\",\n \"release_command.version.minor.description\": \"update doesn’t require Wix user consent\",\n \"release_command.version.minor.disabled\": \"Recent changes you made require this release to be a major release. <0>Learn more</0>\",\n \"release_command.version.major\": \"Major ({version})\",\n \"release_command.version.major.description\": \"update requires Wix user consent\",\n \"release_command.confirm_version_creation\": \"Changes will be visible to your app users immediately and can’t be undone. Do you want to continue?\",\n \"release_command.releasing\": \"Releasing...\",\n \"release_command.released\": \"Version {version} was created\"\n}\n"],"mappings":";;;;AAAA;AAAA,EACE,iCAAiC;AAAA,EACjC,gCAAgC;AAAA,EAChC,+BAA+B;AAAA,EAC/B,iCAAiC;AAAA,EACjC,uCAAuC;AAAA,EACvC,2CAA2C;AAAA,EAC3C,uCAAuC;AAAA,EACv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AAAA,EACjC,0CAA0C;AAAA,EAC1C,6CAA6C;AAAA,EAC7C,0CAA0C;AAAA,EAC1C,iCAAiC;AAAA,EACjC,6CAA6C;AAAA,EAC7C,4CAA4C;AAAA,EAC5C,6BAA6B;AAAA,EAC7B,4BAA4B;AAC9B;","names":[]}
|
|
@@ -4595,7 +4595,7 @@ function objectToKeyValue(input) {
|
|
|
4595
4595
|
return Object.entries(input).filter(([_, value]) => Boolean(value)).map(([key, value]) => `${key}=${value}`).join(",");
|
|
4596
4596
|
}
|
|
4597
4597
|
|
|
4598
|
-
// ../../node_modules/@wix/sdk-runtime/build/context.js
|
|
4598
|
+
// ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/context.js
|
|
4599
4599
|
function runWithoutContext(fn) {
|
|
4600
4600
|
const globalContext = globalThis.__wix_context__;
|
|
4601
4601
|
const moduleContext = {
|
|
@@ -4627,8 +4627,189 @@ function runWithoutContext(fn) {
|
|
|
4627
4627
|
}
|
|
4628
4628
|
}
|
|
4629
4629
|
|
|
4630
|
+
// ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/utils.js
|
|
4631
|
+
function constantCase(input) {
|
|
4632
|
+
return split(input).map((part) => part.toLocaleUpperCase()).join("_");
|
|
4633
|
+
}
|
|
4634
|
+
var SPLIT_LOWER_UPPER_RE = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu");
|
|
4635
|
+
var SPLIT_UPPER_UPPER_RE = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu");
|
|
4636
|
+
var SPLIT_REPLACE_VALUE = "$1\0$2";
|
|
4637
|
+
var DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
|
|
4638
|
+
function split(value) {
|
|
4639
|
+
let result = value.trim();
|
|
4640
|
+
result = result.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
|
|
4641
|
+
result = result.replace(DEFAULT_STRIP_REGEXP, "\0");
|
|
4642
|
+
let start = 0;
|
|
4643
|
+
let end = result.length;
|
|
4644
|
+
while (result.charAt(start) === "\0") {
|
|
4645
|
+
start++;
|
|
4646
|
+
}
|
|
4647
|
+
if (start === end) {
|
|
4648
|
+
return [];
|
|
4649
|
+
}
|
|
4650
|
+
while (result.charAt(end - 1) === "\0") {
|
|
4651
|
+
end--;
|
|
4652
|
+
}
|
|
4653
|
+
return result.slice(start, end).split(/\0/g);
|
|
4654
|
+
}
|
|
4655
|
+
|
|
4656
|
+
// ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/transform-error.js
|
|
4657
|
+
var isValidationError = (httpClientError) => "validationError" in (httpClientError.response?.data?.details ?? {});
|
|
4658
|
+
var isApplicationError = (httpClientError) => "applicationError" in (httpClientError.response?.data?.details ?? {});
|
|
4659
|
+
var isClientError = (httpClientError) => (httpClientError.response?.status ?? -1) >= 400 && (httpClientError.response?.status ?? -1) < 500;
|
|
4660
|
+
function transformError(httpClientError, pathsToArguments = {
|
|
4661
|
+
explicitPathsToArguments: {},
|
|
4662
|
+
spreadPathsToArguments: {},
|
|
4663
|
+
singleArgumentUnchanged: false
|
|
4664
|
+
}, argumentNames = []) {
|
|
4665
|
+
if (typeof httpClientError !== "object" || httpClientError === null) {
|
|
4666
|
+
throw httpClientError;
|
|
4667
|
+
}
|
|
4668
|
+
if (isValidationError(httpClientError)) {
|
|
4669
|
+
return buildValidationError(httpClientError, pathsToArguments, argumentNames);
|
|
4670
|
+
}
|
|
4671
|
+
if (isApplicationError(httpClientError)) {
|
|
4672
|
+
return buildApplicationError(httpClientError);
|
|
4673
|
+
}
|
|
4674
|
+
if (isClientError(httpClientError)) {
|
|
4675
|
+
const status = httpClientError.response?.status;
|
|
4676
|
+
const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
|
|
4677
|
+
const message2 = httpClientError.response?.data?.message ?? statusText;
|
|
4678
|
+
const details = {
|
|
4679
|
+
applicationError: {
|
|
4680
|
+
description: statusText,
|
|
4681
|
+
code: constantCase(statusText),
|
|
4682
|
+
data: {}
|
|
4683
|
+
},
|
|
4684
|
+
requestId: httpClientError.requestId
|
|
4685
|
+
};
|
|
4686
|
+
return wrapError(httpClientError, {
|
|
4687
|
+
message: JSON.stringify({
|
|
4688
|
+
message: message2,
|
|
4689
|
+
details
|
|
4690
|
+
}, null, 2),
|
|
4691
|
+
extraProperties: {
|
|
4692
|
+
details,
|
|
4693
|
+
status
|
|
4694
|
+
}
|
|
4695
|
+
});
|
|
4696
|
+
}
|
|
4697
|
+
return buildSystemError(httpClientError);
|
|
4698
|
+
}
|
|
4699
|
+
var buildValidationError = (httpClientError, pathsToArguments, argumentNames) => {
|
|
4700
|
+
const validationErrorResponse = httpClientError.response?.data;
|
|
4701
|
+
const requestId = httpClientError.requestId;
|
|
4702
|
+
const { fieldViolations } = validationErrorResponse.details.validationError;
|
|
4703
|
+
const transformedFieldViolations = violationsWithRenamedFields(pathsToArguments, fieldViolations, argumentNames)?.sort((a, b) => a.field < b.field ? -1 : 1);
|
|
4704
|
+
const message2 = `INVALID_ARGUMENT: ${transformedFieldViolations?.map(({ field, description }) => `"${field}" ${description}`)?.join(", ")}`;
|
|
4705
|
+
const details = {
|
|
4706
|
+
validationError: { fieldViolations: transformedFieldViolations },
|
|
4707
|
+
requestId
|
|
4708
|
+
};
|
|
4709
|
+
return wrapError(httpClientError, {
|
|
4710
|
+
message: JSON.stringify({ message: message2, details }, null, 2),
|
|
4711
|
+
extraProperties: {
|
|
4712
|
+
details,
|
|
4713
|
+
status: httpClientError.response?.status,
|
|
4714
|
+
requestId
|
|
4715
|
+
}
|
|
4716
|
+
});
|
|
4717
|
+
};
|
|
4718
|
+
var wrapError = (baseError, { message: message2, extraProperties }) => {
|
|
4719
|
+
return Object.assign(baseError, {
|
|
4720
|
+
...extraProperties,
|
|
4721
|
+
message: message2
|
|
4722
|
+
});
|
|
4723
|
+
};
|
|
4724
|
+
var buildApplicationError = (httpClientError) => {
|
|
4725
|
+
const status = httpClientError.response?.status;
|
|
4726
|
+
const statusText = httpClientError.response?.statusText ?? "UNKNOWN";
|
|
4727
|
+
const message2 = httpClientError.response?.data?.message ?? statusText;
|
|
4728
|
+
const description = httpClientError.response?.data?.details?.applicationError?.description ?? statusText;
|
|
4729
|
+
const code = httpClientError.response?.data?.details?.applicationError?.code ?? constantCase(statusText);
|
|
4730
|
+
const data = httpClientError.response?.data?.details?.applicationError?.data ?? {};
|
|
4731
|
+
const combinedMessage = message2 === description ? message2 : `${message2}: ${description}`;
|
|
4732
|
+
const details = {
|
|
4733
|
+
applicationError: {
|
|
4734
|
+
description,
|
|
4735
|
+
code,
|
|
4736
|
+
data
|
|
4737
|
+
},
|
|
4738
|
+
requestId: httpClientError.requestId
|
|
4739
|
+
};
|
|
4740
|
+
return wrapError(httpClientError, {
|
|
4741
|
+
message: JSON.stringify({ message: combinedMessage, details }, null, 2),
|
|
4742
|
+
extraProperties: {
|
|
4743
|
+
details,
|
|
4744
|
+
status,
|
|
4745
|
+
requestId: httpClientError.requestId
|
|
4746
|
+
}
|
|
4747
|
+
});
|
|
4748
|
+
};
|
|
4749
|
+
var buildSystemError = (httpClientError) => {
|
|
4750
|
+
const message2 = httpClientError.requestId ? `System error occurred, request-id: ${httpClientError.requestId}` : `System error occurred: ${JSON.stringify(httpClientError)}`;
|
|
4751
|
+
return wrapError(httpClientError, {
|
|
4752
|
+
message: message2,
|
|
4753
|
+
extraProperties: {
|
|
4754
|
+
requestId: httpClientError.requestId,
|
|
4755
|
+
status: httpClientError.response?.status,
|
|
4756
|
+
code: constantCase(httpClientError.response?.statusText ?? "UNKNOWN"),
|
|
4757
|
+
...!httpClientError.response && {
|
|
4758
|
+
runtimeError: httpClientError
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
});
|
|
4762
|
+
};
|
|
4763
|
+
var violationsWithRenamedFields = ({ spreadPathsToArguments, explicitPathsToArguments, singleArgumentUnchanged }, fieldViolations, argumentNames) => {
|
|
4764
|
+
const allPathsToArguments = {
|
|
4765
|
+
...spreadPathsToArguments,
|
|
4766
|
+
...explicitPathsToArguments
|
|
4767
|
+
};
|
|
4768
|
+
const allPathsToArgumentsKeys = Object.keys(allPathsToArguments);
|
|
4769
|
+
return fieldViolations?.filter((fieldViolation) => {
|
|
4770
|
+
const containedInAMoreSpecificViolationField = fieldViolations.some((anotherViolation) => anotherViolation.field.length > fieldViolation.field.length && anotherViolation.field.startsWith(fieldViolation.field) && allPathsToArgumentsKeys.includes(anotherViolation.field));
|
|
4771
|
+
return !containedInAMoreSpecificViolationField;
|
|
4772
|
+
}).map((fieldViolation) => {
|
|
4773
|
+
const exactMatchArgumentExpression = explicitPathsToArguments[fieldViolation.field];
|
|
4774
|
+
if (exactMatchArgumentExpression) {
|
|
4775
|
+
return {
|
|
4776
|
+
...fieldViolation,
|
|
4777
|
+
field: withRenamedArgument(exactMatchArgumentExpression, argumentNames)
|
|
4778
|
+
};
|
|
4779
|
+
}
|
|
4780
|
+
const longestPartialPathMatch = allPathsToArgumentsKeys?.sort((a, b) => b.length - a.length)?.find((path) => fieldViolation.field.startsWith(path));
|
|
4781
|
+
if (longestPartialPathMatch) {
|
|
4782
|
+
const partialMatchArgumentExpression = allPathsToArguments[longestPartialPathMatch];
|
|
4783
|
+
if (partialMatchArgumentExpression) {
|
|
4784
|
+
return {
|
|
4785
|
+
...fieldViolation,
|
|
4786
|
+
field: fieldViolation.field.replace(longestPartialPathMatch, withRenamedArgument(partialMatchArgumentExpression, argumentNames))
|
|
4787
|
+
};
|
|
4788
|
+
}
|
|
4789
|
+
}
|
|
4790
|
+
if (singleArgumentUnchanged) {
|
|
4791
|
+
return {
|
|
4792
|
+
...fieldViolation,
|
|
4793
|
+
field: `${argumentNames[0]}.${fieldViolation.field}`
|
|
4794
|
+
};
|
|
4795
|
+
}
|
|
4796
|
+
return fieldViolation;
|
|
4797
|
+
});
|
|
4798
|
+
};
|
|
4799
|
+
var withRenamedArgument = (fieldValue, argumentNames) => {
|
|
4800
|
+
const argIndex = getArgumentIndex(fieldValue);
|
|
4801
|
+
if (argIndex !== null && typeof argIndex !== "undefined") {
|
|
4802
|
+
return fieldValue.replace(`$[${argIndex}]`, argumentNames[argIndex]);
|
|
4803
|
+
}
|
|
4804
|
+
return fieldValue;
|
|
4805
|
+
};
|
|
4806
|
+
var getArgumentIndex = (s) => {
|
|
4807
|
+
const match = s.match(/\$\[(?<argIndex>\d+)\]/);
|
|
4808
|
+
return match && match.groups && Number(match.groups.argIndex);
|
|
4809
|
+
};
|
|
4810
|
+
|
|
4630
4811
|
// ../../node_modules/@wix/sdk/build/rest-modules.js
|
|
4631
|
-
function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, wixAPIFetch, getActiveToken, options, hostName, useCDN) {
|
|
4812
|
+
function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, errorHandler, wixAPIFetch, getActiveToken, options, hostName, useCDN) {
|
|
4632
4813
|
return runWithoutContext(() => origFunc({
|
|
4633
4814
|
request: async (factory) => {
|
|
4634
4815
|
const requestOptions = factory({
|
|
@@ -4645,7 +4826,7 @@ function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, wixAPIFetch,
|
|
|
4645
4826
|
}
|
|
4646
4827
|
try {
|
|
4647
4828
|
const biHeader = biHeaderGenerator(requestOptions, publicMetadata, hostName);
|
|
4648
|
-
const
|
|
4829
|
+
const requestOptionsInit = {
|
|
4649
4830
|
method: request.method,
|
|
4650
4831
|
...request.data && {
|
|
4651
4832
|
body: JSON.stringify(request.data)
|
|
@@ -4653,17 +4834,28 @@ function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, wixAPIFetch,
|
|
|
4653
4834
|
headers: {
|
|
4654
4835
|
...biHeader
|
|
4655
4836
|
}
|
|
4656
|
-
}
|
|
4837
|
+
};
|
|
4838
|
+
const res = await boundFetch(url, requestOptionsInit);
|
|
4657
4839
|
if (res.status !== 200) {
|
|
4658
4840
|
let dataError = null;
|
|
4659
4841
|
try {
|
|
4660
4842
|
dataError = await res.json();
|
|
4661
4843
|
} catch (e) {
|
|
4662
4844
|
}
|
|
4663
|
-
|
|
4845
|
+
const error = errorBuilder2(res.status, dataError?.message, dataError?.details, {
|
|
4664
4846
|
requestId: res.headers.get("X-Wix-Request-Id"),
|
|
4665
4847
|
details: dataError
|
|
4666
4848
|
});
|
|
4849
|
+
const transformedError = transformError(error);
|
|
4850
|
+
errorHandler?.handleError(transformedError, {
|
|
4851
|
+
requestOptions: {
|
|
4852
|
+
url: request.url,
|
|
4853
|
+
method: request.method,
|
|
4854
|
+
entityFqdn: requestOptions.entityFqdn,
|
|
4855
|
+
methodFqn: requestOptions.methodFqn
|
|
4856
|
+
}
|
|
4857
|
+
});
|
|
4858
|
+
throw error;
|
|
4667
4859
|
}
|
|
4668
4860
|
const data = await res.json();
|
|
4669
4861
|
return {
|
|
@@ -4684,8 +4876,17 @@ function buildRESTDescriptor(origFunc, publicMetadata, boundFetch, wixAPIFetch,
|
|
|
4684
4876
|
getActiveToken
|
|
4685
4877
|
}));
|
|
4686
4878
|
}
|
|
4879
|
+
var SDKError = class extends Error {
|
|
4880
|
+
response;
|
|
4881
|
+
requestId;
|
|
4882
|
+
constructor(params) {
|
|
4883
|
+
super();
|
|
4884
|
+
this.response = params.response;
|
|
4885
|
+
this.requestId = params.requestId;
|
|
4886
|
+
}
|
|
4887
|
+
};
|
|
4687
4888
|
var errorBuilder2 = (code, description, details, data) => {
|
|
4688
|
-
return {
|
|
4889
|
+
return new SDKError({
|
|
4689
4890
|
response: {
|
|
4690
4891
|
data: {
|
|
4691
4892
|
details: {
|
|
@@ -4703,7 +4904,7 @@ var errorBuilder2 = (code, description, details, data) => {
|
|
|
4703
4904
|
status: code
|
|
4704
4905
|
},
|
|
4705
4906
|
requestId: data?.requestId
|
|
4706
|
-
};
|
|
4907
|
+
});
|
|
4707
4908
|
};
|
|
4708
4909
|
|
|
4709
4910
|
// ../../node_modules/@wix/sdk/build/nanoevents.js
|
|
@@ -4945,28 +5146,51 @@ function createClient(config) {
|
|
|
4945
5146
|
...config.host?.essentials?.passThroughHeaders,
|
|
4946
5147
|
..._headers[X_WIX_CONSISTENT_HEADER] ? { [X_WIX_CONSISTENT_HEADER]: _headers[X_WIX_CONSISTENT_HEADER] } : {}
|
|
4947
5148
|
};
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
5149
|
+
const errorHandler = config.host?.getErrorHandler?.();
|
|
5150
|
+
try {
|
|
5151
|
+
if (typeof urlOrRequest === "string" || urlOrRequest instanceof URL) {
|
|
5152
|
+
const response = await fetch(urlOrRequest, {
|
|
5153
|
+
...requestInit,
|
|
5154
|
+
headers
|
|
5155
|
+
});
|
|
5156
|
+
errorHandler?.handleError(response, {
|
|
5157
|
+
requestOptions: {
|
|
5158
|
+
url: urlOrRequest.toString(),
|
|
5159
|
+
method: requestInit?.method
|
|
5160
|
+
}
|
|
5161
|
+
});
|
|
5162
|
+
const consistentHeader = findConsistentHeader(response);
|
|
5163
|
+
if (consistentHeader) {
|
|
5164
|
+
_headers[X_WIX_CONSISTENT_HEADER] = consistentHeader;
|
|
4962
5165
|
}
|
|
5166
|
+
return response;
|
|
5167
|
+
} else {
|
|
5168
|
+
for (const [k, v] of Object.entries(headers)) {
|
|
5169
|
+
if (typeof v === "string") {
|
|
5170
|
+
urlOrRequest.headers.set(k, v);
|
|
5171
|
+
}
|
|
5172
|
+
}
|
|
5173
|
+
const response = await fetch(urlOrRequest, requestInit);
|
|
5174
|
+
errorHandler?.handleError(response, {
|
|
5175
|
+
requestOptions: {
|
|
5176
|
+
url: urlOrRequest.url,
|
|
5177
|
+
method: requestInit?.method
|
|
5178
|
+
}
|
|
5179
|
+
});
|
|
5180
|
+
const consistentHeader = findConsistentHeader(response);
|
|
5181
|
+
if (consistentHeader) {
|
|
5182
|
+
_headers[X_WIX_CONSISTENT_HEADER] = consistentHeader;
|
|
5183
|
+
}
|
|
5184
|
+
return response;
|
|
4963
5185
|
}
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
5186
|
+
} catch (e) {
|
|
5187
|
+
errorHandler?.handleError(e, {
|
|
5188
|
+
requestOptions: {
|
|
5189
|
+
url: typeof urlOrRequest === "string" || urlOrRequest instanceof URL ? urlOrRequest.toString() : urlOrRequest.url,
|
|
5190
|
+
method: requestInit?.method
|
|
5191
|
+
}
|
|
5192
|
+
});
|
|
5193
|
+
throw e;
|
|
4970
5194
|
}
|
|
4971
5195
|
};
|
|
4972
5196
|
const { client: servicePluginsClient, initModule: initServicePluginModule } = servicePluginsModules(authStrategy);
|
|
@@ -5005,7 +5229,7 @@ function createClient(config) {
|
|
|
5005
5229
|
}
|
|
5006
5230
|
const apiBaseUrl = config.host?.apiBaseUrl ?? DEFAULT_API_URL;
|
|
5007
5231
|
const shouldUseCDN = config.useCDN === void 0 ? config.auth?.shouldUseCDN : config.useCDN;
|
|
5008
|
-
return buildRESTDescriptor(runWithoutContext(() => isAmbassadorModule(modules)) ? toHTTPModule(modules) : modules, metadata ?? {}, boundFetch, (relativeUrl, fetchOptions) => {
|
|
5232
|
+
return buildRESTDescriptor(runWithoutContext(() => isAmbassadorModule(modules)) ? toHTTPModule(modules) : modules, metadata ?? {}, boundFetch, config.host?.getErrorHandler?.(), (relativeUrl, fetchOptions) => {
|
|
5009
5233
|
const finalUrl = new URL(relativeUrl, `https://${apiBaseUrl}`);
|
|
5010
5234
|
finalUrl.host = apiBaseUrl;
|
|
5011
5235
|
finalUrl.protocol = "https";
|
|
@@ -8014,10 +8238,10 @@ function dsnFromString(str) {
|
|
|
8014
8238
|
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match.slice(1);
|
|
8015
8239
|
let path = "";
|
|
8016
8240
|
let projectId = lastPath;
|
|
8017
|
-
const
|
|
8018
|
-
if (
|
|
8019
|
-
path =
|
|
8020
|
-
projectId =
|
|
8241
|
+
const split2 = projectId.split("/");
|
|
8242
|
+
if (split2.length > 1) {
|
|
8243
|
+
path = split2.slice(0, -1).join("/");
|
|
8244
|
+
projectId = split2.pop();
|
|
8021
8245
|
}
|
|
8022
8246
|
if (projectId) {
|
|
8023
8247
|
const projectMatch = projectId.match(/^\d+/);
|