@wix/bex-utils 2.4.0 → 2.5.0

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.
Files changed (252) hide show
  1. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/builders.impl.d.ts +53 -0
  2. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/builders.impl.js +650 -0
  3. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/builders.impl.js.map +1 -0
  4. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/http.impl.d.ts +8 -0
  5. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/http.impl.js +195 -0
  6. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/http.impl.js.map +1 -0
  7. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/meta.impl.d.ts +19 -0
  8. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/meta.impl.js +100 -0
  9. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/meta.impl.js.map +1 -0
  10. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/proto/client/proto-generated.d.ts +25136 -0
  11. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/proto/client/proto-generated.js +2 -0
  12. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/proto/proto-generated.d.ts +12567 -0
  13. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/proto/proto-generated.js +210768 -0
  14. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/proto/server/proto-generated.d.ts +25130 -0
  15. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/proto/server/proto-generated.js +2 -0
  16. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/rpc.impl.d.ts +19 -0
  17. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/rpc.impl.js +105 -0
  18. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/rpc.impl.js.map +1 -0
  19. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/types.impl.d.ts +455 -0
  20. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/types.impl.js +64 -0
  21. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/cjs/types.impl.js.map +1 -0
  22. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/builders.impl.d.ts +53 -0
  23. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/builders.impl.js +582 -0
  24. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/builders.impl.js.map +1 -0
  25. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/http.impl.d.ts +8 -0
  26. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/http.impl.js +188 -0
  27. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/http.impl.js.map +1 -0
  28. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/meta.impl.d.ts +19 -0
  29. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/meta.impl.js +74 -0
  30. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/meta.impl.js.map +1 -0
  31. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/rpc.impl.d.ts +19 -0
  32. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/rpc.impl.js +77 -0
  33. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/rpc.impl.js.map +1 -0
  34. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/types.impl.d.ts +455 -0
  35. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/types.impl.js +61 -0
  36. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/build/es/types.impl.js.map +1 -0
  37. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/builders/package.json +7 -0
  38. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/http/package.json +7 -0
  39. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/meta/package.json +7 -0
  40. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/package.json +52 -0
  41. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/rpc/package.json +6 -0
  42. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/assets_messages.proto +24 -0
  43. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/com/wixpress/appservice/api/components_catalog_type.proto +137 -0
  44. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/com/wixpress/devcenter/appmarketlisting/market_listing.proto +105 -0
  45. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/com/wixpress/devcenter/appmarketlisting/market_listing_service.proto +124 -0
  46. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/companies_messages.proto +84 -0
  47. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_common.proto +217 -0
  48. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ai_assistant/com/wixpress/appservice/api/upstream/wix/genie/assistant/spi/v1/assistant_spi_service.proto +12 -0
  49. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/alert_enricher/com/wixpress/appservice/api/upstream/spi/com/wixpress/vi/enricher/spi/enrichment_spi.proto +10 -0
  50. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/app_config.proto +20 -0
  51. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/application_automation/com/wixpress/appservice/api/upstream/com/wixpress/automations/service/application_automation_component.proto +195 -0
  52. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/automation_trigger.proto +101 -0
  53. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/automations_action_provider/com/wixpress/appservice/api/upstream/com/wixpress/esb/spi/action/v1/action_spi_provider.proto +178 -0
  54. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/automations_trigger_provider/com/wixpress/appservice/api/upstream/com/wixpress/esb/spi/trigger/v1/trigger_spi_provider.proto +77 -0
  55. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/automations_velo_action_provider/com/wixpress/appservice/api/upstream/com/wixpress/automations/velo_spi/v1/velo_spi.proto +12 -0
  56. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/availability_time_slots_configuration_provider/com/wixpress/appservice/api/upstream/com/wixpress/bookings/availability/spi/v2/availability_time_slots_configuration_provider.proto +17 -0
  57. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/back_office_extension.proto +99 -0
  58. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/back_office_extension_container.proto +30 -0
  59. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/back_office_extension_menu_item.proto +67 -0
  60. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/back_office_extension_widget.proto +47 -0
  61. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/back_office_modal.proto +32 -0
  62. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/back_office_page.proto +42 -0
  63. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/back_office_sidebar_category.proto +20 -0
  64. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/back_office_widget.proto +32 -0
  65. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/benefit_programs_policy_provider/com/wixpress/appservice/api/upstream/wix/benefit_programs/spi/v1/policy_provider_spi.proto +16 -0
  66. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/billing_tax_id_validator/com/wixpress/appservice/api/upstream/wix/billing/tax/validation/spi/v1/tax_id_validator.proto +20 -0
  67. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/booking_policy_provider/com/wixpress/appservice/api/upstream/com/wixpress/bookings/availability/spi/v2/booking_policy_provider.proto +17 -0
  68. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/bookings_external_calendar_provider/com/wixpress/appservice/api/upstream/com/wix/bookings/externalcalendar/spi/v1/calendar.proto +18 -0
  69. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/bookings_external_calendar_provider/com/wixpress/appservice/api/upstream/com/wix/bookings/externalcalendar/spi/v1/provider_config.proto +52 -0
  70. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/bookings_pricing_provider/com/wixpress/appservice/api/upstream/com/wixpress/bookings/pricing/spi/v1/bookings_pricing_provider.proto +17 -0
  71. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/bookings_resource_types_provider/com/wixpress/appservice/api/upstream/com/wixpress/bookings/resources/spi/v2/bookings_resource_types_provider.proto +22 -0
  72. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/broadcast_list.proto +28 -0
  73. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/calendar_event_type_provider/com/wixpress/appservice/api/upstream/wix/calendar/events/spi/v3/event_type_provider_config.proto +19 -0
  74. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/code_package.proto +22 -0
  75. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/comments_context_provider/com/wixpress/appservice/api/upstream/wix/comments/context/v1/spi/comments_context_provider.proto +33 -0
  76. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/comments_filter_provider/com/wixpress/appservice/api/upstream/wix/comments/ng/v1/spi/comment_filter_provider.proto +22 -0
  77. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/comments_moderation_provider/com/wixpress/appservice/api/upstream/wix/comments/ng/v1/spi/comment_moderation_provider.proto +21 -0
  78. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/accepted_message_types.proto +21 -0
  79. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/channel_branding.proto +34 -0
  80. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/channel_configuration.proto +41 -0
  81. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/conversation_limitations.proto +20 -0
  82. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/dm/direct_message_config.proto +21 -0
  83. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/email/email_message_config.proto +16 -0
  84. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/media_capabilities.proto +38 -0
  85. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/entities/v1/channel/sms/sms_message_config.proto +20 -0
  86. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/communication_channel/com/wixpress/appservice/api/upstream/com/wixpress/comm/channels/spi/v1/communication_channels_spi.proto +13 -0
  87. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/component_reference_data_provider/com/wixpress/appservice/api/upstream/src/main/proto/wix/devcenter/apps/components/reference/data/component_reference_data_config.proto +17 -0
  88. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/components_translations_additional_fields_provider/com/wixpress/appservice/api/upstream/wix/devcenter/components/translation/v1/spi/component_additional_fields_translation_config.proto +12 -0
  89. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/components_validator_provider/com/wixpress/appservice/api/upstream/src/main/proto/wix/devcenter/apps/components/validator/components_validator_config.proto +19 -0
  90. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/contact_labels.proto +35 -0
  91. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/contact_notification.proto +86 -0
  92. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/cross_sell/com/wixpress/appservice/api/upstream/com/wixpress/buildup/spi/cross_sell_orders_spi.proto +12 -0
  93. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/custom_element_widget.proto +46 -0
  94. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/custom_scope/com/wixpress/appservice/api/upstream/com/wixpress/ecom/scopes/custom_scope_spi.proto +14 -0
  95. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/custom_table_reservations_provider/com/wixpress/appservice/api/upstream/wix/table_reservations/spi/custom_reservations_approval/v1/custom_reservations_approval.proto +21 -0
  96. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/dashboard.proto +24 -0
  97. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/dashboard_application.proto +101 -0
  98. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/dashboard_platform.proto +11 -0
  99. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/data.proto +15 -0
  100. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/data_extensions.proto +16 -0
  101. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/dc_config.proto +9 -0
  102. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/dealer_external_filter_provider/com/wixpress/appservice/api/upstream/wix/dealerExternalServiceProviders/api/v1/dealer-external-filter-service.proto +16 -0
  103. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/deployment_pipeline_provider/com/wixpress/appservice/api/upstream/wix/editor/deployments/spi/v1/pipeline_provider.proto +18 -0
  104. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/dev_center_component_test.proto +87 -0
  105. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ecom_additional_fees/com/wixpress/appservice/api/upstream/com/wix/ecommerce/additional_fees_spi/api/v1/additional_fees_spi_config.proto +19 -0
  106. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ecom_catalog/com/wixpress/appservice/api/upstream/com/wix/ecommerce/catalog_spi/api/v1/platform_catalog_spi.proto +24 -0
  107. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ecom_default_taxation_category/com/wixpress/appservice/api/upstream/wix/billing/spi/v1/default_tax_group_configuration.proto +33 -0
  108. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ecom_discounts_trigger/com/wixpress/appservice/api/upstream/com/wix/ecom/custom_trigger/v1/spi/custom_triggers_provider.proto +10 -0
  109. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ecom_dropshipping_provider/com/wixpress/appservice/api/upstream/com/wix/ecommerce/dropshipping_provider_spi/api/v1/dropshipping_provider_spi.proto +44 -0
  110. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ecom_line_items_enricher/com/wixpress/appservice/api/upstream/com/wix/ecom/line_items_enricher_spi/api/v1/line_items_enricher_spi.proto +12 -0
  111. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ecom_payment_settings/com/wixpress/appservice/api/upstream/com/wix/ecommerce/payment_settings_spi/v1/payment_settings_spi_config.proto +18 -0
  112. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ecom_shipping_rates/com/wixpress/appservice/api/upstream/com/wix/ecom/shipping_rates/v1/shipping-rates-config.proto +36 -0
  113. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ecom_tax_calculator_spi/com/wixpress/appservice/api/upstream/wix/billing/spi/v1/tax_calculator_spi.proto +25 -0
  114. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ecom_validations/com/wixpress/appservice/api/upstream/com/wix/ecommerce/validations_spi/v1/validations_spi_config.proto +19 -0
  115. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/editor_addon.proto +63 -0
  116. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/embedded_script.proto +103 -0
  117. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/external_database/com/wixpress/appservice/api/upstream/com/wixpress/cloud/external-database-spi/v1/external_database_spi.proto +23 -0
  118. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/fictional_shipping_provider/shipping_provider_spi.proto +17 -0
  119. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/form_template.proto +15 -0
  120. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/forms_schema_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_schema_spi.proto +39 -0
  121. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/forms_spam_submission_reports_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_spam_submission_report_permissions.proto +23 -0
  122. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/forms_spam_submission_reports_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_spam_submission_report_spi.proto +25 -0
  123. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/forms_spam_submissions_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_spam_submission_spi.proto +31 -0
  124. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/forms_spam_submissions_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/spam_submission_permissions.proto +21 -0
  125. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/forms_spi_common/com/wixpress/appservice/api/upstream/wix/forms/v4/forms_permissions.proto +20 -0
  126. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/forms_submissions_extension_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_submission_extension_spi.proto +29 -0
  127. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/forms_submissions_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_submission_spi.proto +36 -0
  128. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/generic_hooks/com/wixpress/appservice/api/upstream/wix/framework/hooks/generic_hooks_config.proto +34 -0
  129. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/gift_cards_provider/com/wixpress/appservice/api/upstream/wix/gift/cards/provider/api/gift_cards_provider.proto +14 -0
  130. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/google_business_profile_feature_provider/com/wixpress/appservice/api/upstream/wix/promote/gbp_feature_provider_spi/v1/gbp_feature_config.proto +14 -0
  131. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/grid_apps_files_transformer/com/wixpress/appservice/api/upstream/wix/velo/ide/spi/v1/grid_app_files_transformer.proto +28 -0
  132. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/headless_oauth.proto +29 -0
  133. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/iam/com/wixpress/appservice/api/upstream/wix/iam/identity/v1/pre_register_spi.proto +11 -0
  134. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/identity_authenticator/com/wixpress/appservice/api/upstream/wix/iam/identity/authentication/authenticator/v1/authenticator_spi.proto +82 -0
  135. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/identity_idp_connector/com/wixpress/appservice/api/upstream/wix/iam/authentication/v1/idp_connector_spi.proto +18 -0
  136. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/identity_post_login/com/wixpress/appservice/api/upstream/wix/iam/authentication/v1/post_login_spi.proto +18 -0
  137. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/invoices/com/wixpress/appservice/api/upstream/wix/invoices/spi/v1/invoices_spi.proto +12 -0
  138. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/invoices_actions.proto +20 -0
  139. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/items_selection_provider/com/wixpress/appservice/api/upstream/src/main/proto/com/wixpress/items_selection/spi/v1/items_selection_config.proto +194 -0
  140. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/local_delivery.proto +24 -0
  141. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/membership/com/wixpress/appservice/api/upstream/com/wix/ecom/memberships_spi/v1/memberships_spi.proto +14 -0
  142. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/multi_service_booking_policy_provider/com/wixpress/appservice/api/upstream/com/wixpress/bookings/availability/spi/v2/multi_service_booking_policy_provider.proto +17 -0
  143. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/multilingual_content_provider/com/wixpress/appservice/api/upstream/com/wixpress/multilingual/sitetranslator/spi/v1/TranslationContentProvider.proto +18 -0
  144. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/multilingual_translation_schema/com/wixpress/appservice/api/upstream/wix/multilingual/translation/schema/v1/schema.proto +71 -0
  145. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/multilingual_translation_schema.proto +13 -0
  146. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/multiple_dashboards.proto +24 -0
  147. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/notification_content.proto +52 -0
  148. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/notification_preferences_filter_provider/wix/notifications/preferences/v1/NotificationPreferencesFilterConfig.proto +11 -0
  149. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/notification_topic.proto +27 -0
  150. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/notifications_common.proto +242 -0
  151. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/out_of_iframe.proto +36 -0
  152. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/page.proto +70 -0
  153. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/page_out_of_iframe.proto +36 -0
  154. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/page_replace/page_replace.proto +38 -0
  155. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/payment_provider/com/wixpress/appservice/api/upstream/wix/psp/v1/payment_service_provider_config.proto +119 -0
  156. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/payments_gateway.proto +11 -0
  157. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ping_notifications.proto +12 -0
  158. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/ping_settings_group.proto +25 -0
  159. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/platform.proto +59 -0
  160. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/plugin-interface.proto +34 -0
  161. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/portfolio_synced_projects_provider/com/wixpress/appservice/api/upstream/com/wixpress/portfolio/syncedprojects/spi/synced_projects_provider.proto +17 -0
  162. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/premium_custom_charges/com/wixpress/appservice/api/upstream/spi/wix/premium/customcharges/spi/v1/custom_charges_spi.proto +12 -0
  163. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/premium_products_paths/com/wixpress/appservice/api/upstream/spi/com/wixpress/premium/productspaths/v1/products_paths_spi.proto +12 -0
  164. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/pricing_plans_form_configuration.proto +655 -0
  165. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/proposal-editor-provider/com/wixpress/appservice/api/upstream/wix/proposals/spi/v1/proposals-editor-provider.proto +22 -0
  166. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/recommendations_provider/com/wixpress/appservice/api/upstream/com/wix/ecom/recommendations/spi/recommendations_spi.proto +42 -0
  167. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/restaurants_pos/com/wixpress/appservice/api/upstream/wix/restaurants/pos/v1/pos_provider_config.proto +48 -0
  168. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/seo_keywords_suggestions/com/wixpress/appservice/api/upstream/wix/promote/seo_keywords_suggestions_spi/v1/seo_keywords_suggestions_spi.proto +27 -0
  169. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/service_availability_policy_provider/com/wixpress/appservice/api/upstream/com/wixpress/bookings/availability/spi/v2/service_availability_policy_provider.proto +17 -0
  170. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/shipping_label_carrier/com/wixpress/appservice/api/upstream/com/wix/ecom/shipping/label/carrier_spi/v1/shipping_label_carrier_spi.proto +84 -0
  171. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/slot.proto +16 -0
  172. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/sms-action-message.proto +16 -0
  173. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/snippet_solution.proto +11 -0
  174. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/social_marketing_design/com/wixpress/appservice/api/upstream/wix/promote/social_marketing_design_spi/v1/social_marketing_design_spi.proto +23 -0
  175. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/social_marketing_designs_provider/com/wixpress/appservice/api/upstream/wix/promote/social_marketing_designs_provider_spi/v1/designs_provider_config.proto +30 -0
  176. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/static_file.proto +17 -0
  177. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/studio.proto +35 -0
  178. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/studio_widget.proto +128 -0
  179. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/tax_calculation_provider/com/wixpress/appservice/api/upstream/wix/billing/tax_calculation_spi/v1/tax_calculation_config.proto +18 -0
  180. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/tax_groups_provider/com/wixpress/appservice/api/upstream/wix/billing/spi/v1/tax_groups_provider_config.proto +42 -0
  181. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/unified_components/component_model.proto +13 -0
  182. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/unified_components/editor_behaviors.proto +22 -0
  183. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/unified_components/plugin_installation_settings.proto +11 -0
  184. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/unified_components/shared.proto +27 -0
  185. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/unified_components/unified_page.proto +48 -0
  186. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/unified_components/unified_widget.proto +26 -0
  187. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/unified_components/widget_size.proto +46 -0
  188. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/user_notification.proto +94 -0
  189. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/viewer_dynamic_site_structure_provider/com/wixpress/appservice/api/upstream/com/wixpress/structure/spi/v1/dynamic_site_structure_provider.proto +15 -0
  190. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/web.proto +350 -0
  191. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/widget.proto +121 -0
  192. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/widget_out_of_iframe.proto +32 -0
  193. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/widget_plugin.proto +54 -0
  194. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/wix_offering.proto +21 -0
  195. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/wix_reviews/com/wixpress/appservice/api/upstream/wix/reviews/product/catalog/spi/v1/reviews_product_catalog_provider.proto +23 -0
  196. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data/worker.proto +11 -0
  197. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_data.proto +436 -0
  198. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_catalog_messages.proto +63 -0
  199. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/components_messages.proto +149 -0
  200. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/extensions_messages.proto +111 -0
  201. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/features/features_messages.proto +73 -0
  202. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/listingInfo_messages.proto +117 -0
  203. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/marketListing_messages.proto +107 -0
  204. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/permissions_messages.proto +158 -0
  205. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/plans/plans_messages.proto +108 -0
  206. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/pricing_model/pricing_model_messages.proto +104 -0
  207. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/translations_data_messages.proto +57 -0
  208. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/versions_messages.proto +341 -0
  209. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/webhooks_messages.proto +65 -0
  210. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/action_payload.proto +33 -0
  211. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/annotations.proto +356 -0
  212. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/api_errors.proto +117 -0
  213. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/callback.proto +156 -0
  214. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/context.proto +19 -0
  215. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/entity.proto +86 -0
  216. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/errors.proto +119 -0
  217. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/permissions.proto +40 -0
  218. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/sla.proto +24 -0
  219. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/subscription.proto +32 -0
  220. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/api/validations.proto +134 -0
  221. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/address.proto +140 -0
  222. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/bulk.proto +53 -0
  223. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/identification.proto +40 -0
  224. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/image.proto +8 -0
  225. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/media.proto +232 -0
  226. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/money.proto +32 -0
  227. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/pageurl.proto +32 -0
  228. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/paging.proto +116 -0
  229. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/query.proto +768 -0
  230. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/sorting.proto +36 -0
  231. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/spi.proto +66 -0
  232. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/tags.proto +55 -0
  233. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/common/wixlink.proto +201 -0
  234. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/graphql/definitions.proto +13 -0
  235. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/http/field_mask.proto +46 -0
  236. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/sdk/definitions.proto +191 -0
  237. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/spi/definitions.proto +173 -0
  238. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/src/main/proto/wix/spi/http_error_status.proto +24 -0
  239. package/@wix/ambassador-devcenter-app-market-listing-v1-market-listing/types/package.json +7 -0
  240. package/dist/cjs/PromiseState.js.map +1 -1
  241. package/dist/cjs/batchUpdates.js.map +1 -1
  242. package/dist/cjs/events.js.map +1 -1
  243. package/dist/cjs/exports/react-dom.js.map +1 -1
  244. package/dist/cjs/exports/react-native.js.map +1 -1
  245. package/dist/cjs/exports/react.js.map +1 -1
  246. package/dist/cjs/index.js.map +1 -1
  247. package/dist/cjs/reactive.js.map +1 -1
  248. package/dist/cjs/reactiveContext.js.map +1 -1
  249. package/dist/cjs/setReactDOMBatchUpdates.js.map +1 -1
  250. package/dist/cjs/setReactNativeBatchUpdates.js.map +1 -1
  251. package/dist/cjs/useReactive.js.map +1 -1
  252. package/package.json +3 -2
@@ -0,0 +1,173 @@
1
+ syntax = "proto2";
2
+
3
+ package wix.spi;
4
+
5
+ import "google/protobuf/descriptor.proto";
6
+ import "wix/spi/http_error_status.proto";
7
+
8
+ option java_multiple_files = true;
9
+ option java_outer_classname = "DefinitionsProto";
10
+ option java_package = "com.wix.spi";
11
+
12
+ /**
13
+ Example SPI proto files:
14
+
15
+ syntax = "proto3";
16
+
17
+ package com.wixpress.ecom.couponsSpi;
18
+
19
+ // this service is bla bla bla...
20
+ //
21
+ // changelog:
22
+ // revision 2: added couponGenerated event
23
+ service CouponsProvider {
24
+ // since this is an SPI interface definition, the FQDN of the service_entity must start with `wix.interfaces.*`
25
+ option (.wix.spi.service) = {
26
+ fqdn: "wix.interfaces.ecom.v1.coupons_provider" // must be `wix.interfaces.*` for entities that define SPI
27
+ spi_identifier: "com.wixpress.appservice.api.ComponentType.AUTOMATION_TRIGGER"
28
+ config_message: "com.wixpresss.ecom.CouponsProviderConfig"
29
+ host_service: "com.wixpress.ecom.couponsSpi.CouponsSpiHost"
30
+ business_manager_url: "/ecom/coupons" // used to provide deep-link to biz-mgr to finish configuration after code publish in Velo
31
+ };
32
+
33
+ // The provider has to send this event when a coupon is generated on the provider system.
34
+ // When the coupon code will be used by a user during checkout,
35
+ // wix-ecom will call the provider in order to calculate the effect of the coupon on the cart
36
+ option (.wix.spi.event) = {
37
+ method_name: "CouponGenerated" // Name of the method on the SPI-Host service that needs to be called. Together with `host_service` annotation above, you can get the full FQN
38
+ };
39
+
40
+ // called when the system has to calculate how a coupon affects a given cart
41
+ rpc CalculateCart (CalculateCartRequest) returns (CalculateCartResponse) {
42
+ option (google.api.http) = {
43
+ post: "/calculate-cart"
44
+ };
45
+ option (.wix.spi.error) = {
46
+ name: "CouponNotSupportedError"
47
+ http_code: INVALID_ARGUMENT
48
+ application_code: "COUPON_TYPE_NOT_SUPPORTED"
49
+ data: "com.wixpress.ecom.couponsSpi.TypeNotSupportedError"
50
+ };
51
+ }
52
+
53
+ // called when a coupon is applied during checkout and has to be reserved until the checkout is completed
54
+ // redeem will later be called using the reservation_code returned by this method
55
+ rpc Reserve (ReserveCouponRequest) returns (ReserveCouponResponse) {
56
+ option (google.api.http) = {
57
+ post: "/reserve"
58
+ };
59
+ }
60
+
61
+ // called after a successful transaction that used a coupon was made, in order to notify the coupons provider
62
+ // that the coupon was redeemed.
63
+ // sends the reservation_code that the was returned by reserve method
64
+ rpc Redeem (RedeemCouponRequest) returns (RedeemCouponResponse) {
65
+ option (google.api.http) = {
66
+ post: "/redeem"
67
+ };
68
+ }
69
+
70
+ // called in order to extend coupon expiration date
71
+ // this method was added later than other methods and therefore needs to be toggled in config_message
72
+ rpc ExtendCoupon (ExtendCouponRequest) returns (ExtendCouponResponse) {
73
+ option (google.api.http) ={
74
+ post: "/extend-coupon"
75
+ };
76
+ option (.wix.spi.feature_toggle) = "toggle_extend_coupon_enabled";
77
+ }
78
+ }
79
+
80
+ message CouponsProviderConfig {
81
+ string base_uri = 1 [(.wix.spi.base_uri) = true]; // the base URI where all the methods are deployed. E.g. "https://golden-coupons.com/wix-provider"
82
+ repeated string supported_coupon_types = 2; // specific field related to this SPI
83
+ bool toggle_extend_coupon_enabled = 3; // feature toggle initialized with default value = false. should be true if implemented by spi provider
84
+ }
85
+
86
+ message TypeNotSupportedError {
87
+ string type = 1; The received type that is not supported by the service
88
+ }
89
+
90
+ // =========== another file, standard proto, no SPI annotation ================
91
+
92
+ service CouponsSpiHost {
93
+ // we cannot use the same service_entity as the SPI definition, because it is only interface definition. Here we need concrete FQDN
94
+ option (.wix.api.service_entity).message = "com.wixpress.ecom.couponsProviderGateway";
95
+
96
+ // The provider has to send this event when a coupon is generated on the provider system.
97
+ // When the coupon code will be used by a user during checkout,
98
+ // wix-ecom will call the provider in order to calculate the effect of the coupon on the cart
99
+ rpc CouponGenerated (CouponGeneratedRequest) returns (CouponGeneratedResponse) {
100
+ option (google.api.http) = {
101
+ post: "/v1/coupon-generated"
102
+ };
103
+ }
104
+
105
+ // The following 3 methods are an implementation of the SPI interface
106
+
107
+ rpc CalculateCart (CalculateCartRequest) returns (CalculateCartResponse) {
108
+ option (google.api.http) = {
109
+ post: "/calculate-cart"
110
+ };
111
+ }
112
+
113
+ rpc Reserve (ReserveCouponRequest) returns (ReserveCouponResponse) {
114
+ option (google.api.http) = {
115
+ post: "/reserve"
116
+ };
117
+ }
118
+
119
+ rpc Redeem (RedeemCouponRequest) returns (RedeemCouponResponse) {
120
+ option (google.api.http) ={
121
+ post: "/redeem"
122
+ };
123
+ }
124
+
125
+ rpc ExtendCoupon (ExtendCouponRequest) returns (RedeemCouponResponse) {
126
+ option (google.api.http) ={
127
+ post: "/extend-coupon"
128
+ };
129
+ }
130
+
131
+ }
132
+
133
+ message CouponsProviderGateway {
134
+ option (.wix.api.entity) = {
135
+ fqdn: "wix.gateways.ecom.v1.coupons_provider_gateway"
136
+ implements: "wix.intefaces.ecom.v1.coupons_provider"
137
+ };
138
+ }
139
+ **/
140
+
141
+ extend google.protobuf.ServiceOptions {
142
+ optional Service service = 65000;
143
+ repeated Event event = 65001; // spi event is essentially an endpoint that will get requests from spi implementor
144
+ }
145
+
146
+ extend google.protobuf.FieldOptions {
147
+ optional bool base_uri = 65020; // holds the base URI of the implementing service for this spi. (can be https://... | grpc://... | velo:///...)
148
+ }
149
+
150
+ extend google.protobuf.MethodOptions {
151
+ repeated Error error = 65040; // errors that can be thrown by the method
152
+ optional string feature_toggle = 65041; // name of the controlling feature toggle boolean field as it appears in the config message
153
+ }
154
+
155
+ message Service {
156
+ required string spi_identifier = 1; // string representation of dev-center's catalog [ComponentType](https://github.com/wix-private/devcenter/blob/master/app-service/app-service-api/src/main/proto/components_catalog/components_catalog_type.proto)
157
+ required string config_message = 2; // FQN ref to message with config details
158
+ optional string host_service = 3; // FQN ref to proto service of SPI host that implements endpoints that the provider needs to call
159
+ optional string business_manager_url = 4; // relative deeplink to business-manager page where the user needs to continue configuration of current spi
160
+ optional string fqdn = 5; // may be used to define an FQDN directly on SPI service without having a main entity. must start with `wix.interfaces.*`
161
+ optional string app_id = 6; // SPI Host's App Id
162
+ }
163
+
164
+ message Error {
165
+ required string name = 1; // name that can be used by SDKs to generate error class
166
+ required HttpStatusCode http_code = 2; // HTTP status code that will be returned with this type of error
167
+ required string application_code = 3; // a constant string in the format of ALL_CAPS that describes the specific error type
168
+ optional string data = 4; // FQN of a message that describes structured data that should be provided in the error body
169
+ }
170
+
171
+ message Event {
172
+ required string method_name = 1; // name of the implemented method in SPI host service. Together with `host_service` annotation above, you can get the full FQN
173
+ }
@@ -0,0 +1,24 @@
1
+ syntax = "proto3";
2
+
3
+ package wix.spi;
4
+
5
+ import "google/protobuf/descriptor.proto";
6
+
7
+ option java_package = "com.wix.spi";
8
+
9
+ enum HttpStatusCode {
10
+ UNKNOWN_ERROR = 0; // Should not be used
11
+ UNAUTHENTICATED = 1; // 401 - thrown when the request signature could be validated
12
+ INVALID_ARGUMENT = 3; // 400 - thrown when one of the properties has unexpected value or type
13
+ // 500 - thrown when something happened that is the result of server bug, network issue, DB issue,
14
+ // or anything that is not affected by the request itself, and is not the fault of the client in any way.
15
+ INTERNAL = 5;
16
+ RESOURCE_EXHAUSTED = 7; // 429 - The client has sent too many requests in a given amount of time (rate limit)
17
+ CANCELED = 8; // 499 - Request cancelled by the client
18
+
19
+ NOT_FOUND = 4; // 404 - thrown when the resource requested could not be found
20
+ ALREADY_EXISTS = 9; //409 - Can't recreate same resource or concurrency conflict
21
+ // 428 - request cannot be executed in current system state
22
+ // such as deleting a non-empty folder or paying with no funds
23
+ FAILED_PRECONDITION = 10;
24
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "private": true,
3
+ "main": "../build/cjs/types.impl",
4
+ "types": "../build/cjs/types.impl.d.ts",
5
+ "sideEffects": false,
6
+ "module": "../build/es/types.impl"
7
+ }
@@ -1 +1 @@
1
- {"version":3,"names":["_reactive","require","PromiseState","constructor","params","_defineProperty2","default","reactive","type","fn","onError","once","status","value","promise","run","data","error","exports"],"sources":["../../src/PromiseState.ts"],"sourcesContent":["import { reactive } from './reactive';\n\nexport interface PromiseStatusIdle {\n type: 'idle';\n data?: undefined;\n promise?: undefined;\n}\nexport interface PromiseStatusLoading<T> {\n type: 'loading';\n data?: undefined;\n promise: Promise<T>;\n}\nexport interface PromiseStatusSuccess<T> {\n type: 'success';\n data: T;\n promise: Promise<T>;\n}\nexport interface PromiseStatusError {\n type: 'error';\n error: unknown;\n data?: undefined;\n promise?: undefined;\n}\n\nexport type PromiseStatus<T> =\n | PromiseStatusIdle\n | PromiseStatusLoading<T>\n | PromiseStatusSuccess<T>\n | PromiseStatusError;\n\nexport interface PromiseStateParams<T> {\n fn: () => Promise<T>;\n onError?: (err: unknown) => unknown;\n}\n\nexport class PromiseState<T> {\n readonly status = reactive<PromiseStatus<T>>({ type: 'idle' });\n readonly onError;\n fn;\n\n constructor(params: PromiseStateParams<T>) {\n this.fn = params.fn;\n this.onError = params.onError;\n }\n\n async once() {\n const {\n status: {\n value: { type, promise },\n },\n } = this;\n\n if (type === 'loading') {\n await promise;\n return;\n }\n\n if (type === 'success') {\n return;\n }\n\n return this.run();\n }\n\n async run() {\n const { fn, status, onError } = this;\n const promise = fn();\n\n status.value = {\n type: 'loading',\n promise,\n };\n\n try {\n const data = await promise;\n if (promise === status.value.promise) {\n status.value = {\n type: 'success',\n data,\n promise,\n };\n }\n } catch (error) {\n onError?.(error);\n if (promise === status.value.promise) {\n status.value = {\n type: 'error',\n error,\n };\n }\n }\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAmCO,MAAMC,YAAY,CAAI;EAK3BC,WAAWA,CAACC,MAA6B,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA,kBAJzB,IAAAC,kBAAQ,EAAmB;MAAEC,IAAI,EAAE;IAAO,CAAC,CAAC;IAAA,IAAAH,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAK5D,IAAI,CAACG,EAAE,GAAGL,MAAM,CAACK,EAAE;IACnB,IAAI,CAACC,OAAO,GAAGN,MAAM,CAACM,OAAO;EAC/B;EAEA,MAAMC,IAAIA,CAAA,EAAG;IACX,MAAM;MACJC,MAAM,EAAE;QACNC,KAAK,EAAE;UAAEL,IAAI;UAAEM;QAAQ;MACzB;IACF,CAAC,GAAG,IAAI;IAER,IAAIN,IAAI,KAAK,SAAS,EAAE;MACtB,MAAMM,OAAO;MACb;IACF;IAEA,IAAIN,IAAI,KAAK,SAAS,EAAE;MACtB;IACF;IAEA,OAAO,IAAI,CAACO,GAAG,CAAC,CAAC;EACnB;EAEA,MAAMA,GAAGA,CAAA,EAAG;IACV,MAAM;MAAEN,EAAE;MAAEG,MAAM;MAAEF;IAAQ,CAAC,GAAG,IAAI;IACpC,MAAMI,OAAO,GAAGL,EAAE,CAAC,CAAC;IAEpBG,MAAM,CAACC,KAAK,GAAG;MACbL,IAAI,EAAE,SAAS;MACfM;IACF,CAAC;IAED,IAAI;MACF,MAAME,IAAI,GAAG,MAAMF,OAAO;MAC1B,IAAIA,OAAO,KAAKF,MAAM,CAACC,KAAK,CAACC,OAAO,EAAE;QACpCF,MAAM,CAACC,KAAK,GAAG;UACbL,IAAI,EAAE,SAAS;UACfQ,IAAI;UACJF;QACF,CAAC;MACH;IACF,CAAC,CAAC,OAAOG,KAAK,EAAE;MACdP,OAAO,YAAPA,OAAO,CAAGO,KAAK,CAAC;MAChB,IAAIH,OAAO,KAAKF,MAAM,CAACC,KAAK,CAACC,OAAO,EAAE;QACpCF,MAAM,CAACC,KAAK,GAAG;UACbL,IAAI,EAAE,OAAO;UACbS;QACF,CAAC;MACH;IACF;EACF;AACF;AAACC,OAAA,CAAAhB,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"names":["_reactive","require","PromiseState","constructor","params","_defineProperty2","default","reactive","type","fn","onError","once","status","value","promise","run","data","error","exports"],"sources":["../../src/PromiseState.ts"],"sourcesContent":["import { reactive } from './reactive';\n\nexport interface PromiseStatusIdle {\n type: 'idle';\n data?: undefined;\n promise?: undefined;\n}\nexport interface PromiseStatusLoading<T> {\n type: 'loading';\n data?: undefined;\n promise: Promise<T>;\n}\nexport interface PromiseStatusSuccess<T> {\n type: 'success';\n data: T;\n promise: Promise<T>;\n}\nexport interface PromiseStatusError {\n type: 'error';\n error: unknown;\n data?: undefined;\n promise?: undefined;\n}\n\nexport type PromiseStatus<T> =\n | PromiseStatusIdle\n | PromiseStatusLoading<T>\n | PromiseStatusSuccess<T>\n | PromiseStatusError;\n\nexport interface PromiseStateParams<T> {\n fn: () => Promise<T>;\n onError?: (err: unknown) => unknown;\n}\n\nexport class PromiseState<T> {\n readonly status = reactive<PromiseStatus<T>>({ type: 'idle' });\n readonly onError;\n fn;\n\n constructor(params: PromiseStateParams<T>) {\n this.fn = params.fn;\n this.onError = params.onError;\n }\n\n async once() {\n const {\n status: {\n value: { type, promise },\n },\n } = this;\n\n if (type === 'loading') {\n await promise;\n return;\n }\n\n if (type === 'success') {\n return;\n }\n\n return this.run();\n }\n\n async run() {\n const { fn, status, onError } = this;\n const promise = fn();\n\n status.value = {\n type: 'loading',\n promise,\n };\n\n try {\n const data = await promise;\n if (promise === status.value.promise) {\n status.value = {\n type: 'success',\n data,\n promise,\n };\n }\n } catch (error) {\n onError?.(error);\n if (promise === status.value.promise) {\n status.value = {\n type: 'error',\n error,\n };\n }\n }\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAmCO,MAAMC,YAAY,CAAI;EAK3BC,WAAWA,CAACC,MAA6B,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA,kBAJzB,IAAAC,kBAAQ,EAAmB;MAAEC,IAAI,EAAE;IAAO,CAAC,CAAC;IAAA,IAAAH,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAK5D,IAAI,CAACG,EAAE,GAAGL,MAAM,CAACK,EAAE;IACnB,IAAI,CAACC,OAAO,GAAGN,MAAM,CAACM,OAAO;EAC/B;EAEA,MAAMC,IAAIA,CAAA,EAAG;IACX,MAAM;MACJC,MAAM,EAAE;QACNC,KAAK,EAAE;UAAEL,IAAI;UAAEM;QAAQ;MACzB;IACF,CAAC,GAAG,IAAI;IAER,IAAIN,IAAI,KAAK,SAAS,EAAE;MACtB,MAAMM,OAAO;MACb;IACF;IAEA,IAAIN,IAAI,KAAK,SAAS,EAAE;MACtB;IACF;IAEA,OAAO,IAAI,CAACO,GAAG,CAAC,CAAC;EACnB;EAEA,MAAMA,GAAGA,CAAA,EAAG;IACV,MAAM;MAAEN,EAAE;MAAEG,MAAM;MAAEF;IAAQ,CAAC,GAAG,IAAI;IACpC,MAAMI,OAAO,GAAGL,EAAE,CAAC,CAAC;IAEpBG,MAAM,CAACC,KAAK,GAAG;MACbL,IAAI,EAAE,SAAS;MACfM;IACF,CAAC;IAED,IAAI;MACF,MAAME,IAAI,GAAG,MAAMF,OAAO;MAC1B,IAAIA,OAAO,KAAKF,MAAM,CAACC,KAAK,CAACC,OAAO,EAAE;QACpCF,MAAM,CAACC,KAAK,GAAG;UACbL,IAAI,EAAE,SAAS;UACfQ,IAAI;UACJF;QACF,CAAC;MACH;IACF,CAAC,CAAC,OAAOG,KAAK,EAAE;MACdP,OAAO,YAAPA,OAAO,CAAGO,KAAK,CAAC;MAChB,IAAIH,OAAO,KAAKF,MAAM,CAACC,KAAK,CAACC,OAAO,EAAE;QACpCF,MAAM,CAACC,KAAK,GAAG;UACbL,IAAI,EAAE,OAAO;UACbS;QACF,CAAC;MACH;IACF;EACF;AACF;AAACC,OAAA,CAAAhB,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["noOpBatchedUpdates","callback","exports"],"sources":["../../src/batchUpdates.ts"],"sourcesContent":["export type BatchUpdates = (callback: () => any) => void;\n\nexport const noOpBatchedUpdates: BatchUpdates = (callback) => callback();\n"],"mappings":";;;;AAEO,MAAMA,kBAAgC,GAAIC,QAAQ,IAAKA,QAAQ,CAAC,CAAC;AAACC,OAAA,CAAAF,kBAAA,GAAAA,kBAAA"}
1
+ {"version":3,"names":["noOpBatchedUpdates","callback","exports"],"sources":["../../src/batchUpdates.ts"],"sourcesContent":["export type BatchUpdates = (callback: () => any) => void;\n\nexport const noOpBatchedUpdates: BatchUpdates = (callback) => callback();\n"],"mappings":";;;;AAEO,MAAMA,kBAAgC,GAAIC,QAAQ,IAAKA,QAAQ,CAAC,CAAC;AAACC,OAAA,CAAAF,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["createEvents","listenersList","addListener","listener","push","i","indexOf","splice","emit","slice","forEach","e"],"sources":["../../src/events.ts"],"sourcesContent":["type AnyFn = (...args: any[]) => any;\ntype NoArgsFn = () => unknown;\nexport type Listener<F extends AnyFn = NoArgsFn> = F;\n\nexport interface Events<F extends AnyFn = NoArgsFn> {\n addListener(listener: F): () => void;\n emit(): void;\n}\n\nexport function createEvents<F extends AnyFn = NoArgsFn>(\n listenersList: F[] = [],\n): Events<F> {\n return {\n addListener(listener: F) {\n listenersList.push(listener);\n return () => {\n const i = listenersList.indexOf(listener);\n i !== -1 && listenersList.splice(i, 1);\n };\n },\n emit() {\n listenersList.slice().forEach((e) => e());\n },\n };\n}\n"],"mappings":";;;;AASO,SAASA,YAAYA,CAC1BC,aAAkB,GAAG,EAAE,EACZ;EACX,OAAO;IACLC,WAAWA,CAACC,QAAW,EAAE;MACvBF,aAAa,CAACG,IAAI,CAACD,QAAQ,CAAC;MAC5B,OAAO,MAAM;QACX,MAAME,CAAC,GAAGJ,aAAa,CAACK,OAAO,CAACH,QAAQ,CAAC;QACzCE,CAAC,KAAK,CAAC,CAAC,IAAIJ,aAAa,CAACM,MAAM,CAACF,CAAC,EAAE,CAAC,CAAC;MACxC,CAAC;IACH,CAAC;IACDG,IAAIA,CAAA,EAAG;MACLP,aAAa,CAACQ,KAAK,CAAC,CAAC,CAACC,OAAO,CAAEC,CAAC,IAAKA,CAAC,CAAC,CAAC,CAAC;IAC3C;EACF,CAAC;AACH"}
1
+ {"version":3,"names":["createEvents","listenersList","addListener","listener","push","i","indexOf","splice","emit","slice","forEach","e"],"sources":["../../src/events.ts"],"sourcesContent":["type AnyFn = (...args: any[]) => any;\ntype NoArgsFn = () => unknown;\nexport type Listener<F extends AnyFn = NoArgsFn> = F;\n\nexport interface Events<F extends AnyFn = NoArgsFn> {\n addListener(listener: F): () => void;\n emit(): void;\n}\n\nexport function createEvents<F extends AnyFn = NoArgsFn>(\n listenersList: F[] = [],\n): Events<F> {\n return {\n addListener(listener: F) {\n listenersList.push(listener);\n return () => {\n const i = listenersList.indexOf(listener);\n i !== -1 && listenersList.splice(i, 1);\n };\n },\n emit() {\n listenersList.slice().forEach((e) => e());\n },\n };\n}\n"],"mappings":";;;;AASO,SAASA,YAAYA,CAC1BC,aAAkB,GAAG,EAAE,EACZ;EACX,OAAO;IACLC,WAAWA,CAACC,QAAW,EAAE;MACvBF,aAAa,CAACG,IAAI,CAACD,QAAQ,CAAC;MAC5B,OAAO,MAAM;QACX,MAAME,CAAC,GAAGJ,aAAa,CAACK,OAAO,CAACH,QAAQ,CAAC;QACzCE,CAAC,KAAK,CAAC,CAAC,IAAIJ,aAAa,CAACM,MAAM,CAACF,CAAC,EAAE,CAAC,CAAC;MACxC,CAAC;IACH,CAAC;IACDG,IAAIA,CAAA,EAAG;MACLP,aAAa,CAACQ,KAAK,CAAC,CAAC,CAACC,OAAO,CAAEC,CAAC,IAAKA,CAAC,CAAC,CAAC,CAAC;IAC3C;EACF,CAAC;AACH","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_setReactDOMBatchUpdates","require","Object","keys","forEach","key","exports"],"sources":["../../../src/exports/react-dom.ts"],"sourcesContent":["export * from '../setReactDOMBatchUpdates';\n"],"mappings":";;;AAAA,IAAAA,wBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,wBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,wBAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,wBAAA,CAAAK,GAAA;AAAA"}
1
+ {"version":3,"names":["_setReactDOMBatchUpdates","require","Object","keys","forEach","key","exports"],"sources":["../../../src/exports/react-dom.ts"],"sourcesContent":["export * from '../setReactDOMBatchUpdates';\n"],"mappings":";;;AAAA,IAAAA,wBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,wBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,wBAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,wBAAA,CAAAK,GAAA;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_setReactNativeBatchUpdates","require","Object","keys","forEach","key","exports"],"sources":["../../../src/exports/react-native.ts"],"sourcesContent":["export * from '../setReactNativeBatchUpdates';\n"],"mappings":";;;AAAA,IAAAA,2BAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,2BAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,2BAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,2BAAA,CAAAK,GAAA;AAAA"}
1
+ {"version":3,"names":["_setReactNativeBatchUpdates","require","Object","keys","forEach","key","exports"],"sources":["../../../src/exports/react-native.ts"],"sourcesContent":["export * from '../setReactNativeBatchUpdates';\n"],"mappings":";;;AAAA,IAAAA,2BAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,2BAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,2BAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,2BAAA,CAAAK,GAAA;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_useReactive","require","Object","keys","forEach","key","exports"],"sources":["../../../src/exports/react.ts"],"sourcesContent":["export * from '../useReactive';\n"],"mappings":";;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,YAAA,CAAAK,GAAA;AAAA"}
1
+ {"version":3,"names":["_useReactive","require","Object","keys","forEach","key","exports"],"sources":["../../../src/exports/react.ts"],"sourcesContent":["export * from '../useReactive';\n"],"mappings":";;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,YAAA,CAAAK,GAAA;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_reactive","require","Object","keys","forEach","key","exports","_PromiseState","_reactiveContext"],"sources":["../../src/index.ts"],"sourcesContent":["export * from './reactive';\nexport * from './PromiseState';\nexport * from './reactiveContext';\n"],"mappings":";;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,SAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,SAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,SAAA,CAAAK,GAAA;AAAA;AACA,IAAAE,aAAA,GAAAN,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAI,aAAA,EAAAH,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAE,aAAA,CAAAF,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAE,aAAA,CAAAF,GAAA;AAAA;AACA,IAAAG,gBAAA,GAAAP,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAK,gBAAA,EAAAJ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAG,gBAAA,CAAAH,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAG,gBAAA,CAAAH,GAAA;AAAA"}
1
+ {"version":3,"names":["_reactive","require","Object","keys","forEach","key","exports","_PromiseState","_reactiveContext"],"sources":["../../src/index.ts"],"sourcesContent":["export * from './reactive';\nexport * from './PromiseState';\nexport * from './reactiveContext';\n"],"mappings":";;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,SAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,SAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,SAAA,CAAAK,GAAA;AAAA;AACA,IAAAE,aAAA,GAAAN,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAI,aAAA,EAAAH,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAE,aAAA,CAAAF,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAE,aAAA,CAAAF,GAAA;AAAA;AACA,IAAAG,gBAAA,GAAAP,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAK,gBAAA,EAAAJ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAG,gBAAA,CAAAH,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAG,gBAAA,CAAAH,GAAA;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_events","require","_reactiveContext","reactive","initialValue","listeners","_value","events","createEvents","value","v","reactiveContext","batchUpdates","emit","addListener"],"sources":["../../src/reactive.ts"],"sourcesContent":["import { createEvents, Listener } from './events';\nimport { reactiveContext } from './reactiveContext';\n\nexport interface Reactive<T> {\n value: T;\n addListener(listener: Listener): () => void;\n}\n\nexport function reactive<T>(\n initialValue: T,\n {\n listeners,\n }: {\n listeners?: Listener[];\n } = {},\n): Reactive<T> {\n let _value = initialValue;\n\n const events = createEvents(listeners);\n return {\n get value() {\n return _value;\n },\n set value(v: T) {\n _value = v;\n reactiveContext.batchUpdates(() => events.emit());\n },\n addListener: events.addListener,\n };\n}\n"],"mappings":";;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AAOO,SAASE,QAAQA,CACtBC,YAAe,EACf;EACEC;AAGF,CAAC,GAAG,CAAC,CAAC,EACO;EACb,IAAIC,MAAM,GAAGF,YAAY;EAEzB,MAAMG,MAAM,GAAG,IAAAC,oBAAY,EAACH,SAAS,CAAC;EACtC,OAAO;IACL,IAAII,KAAKA,CAAA,EAAG;MACV,OAAOH,MAAM;IACf,CAAC;IACD,IAAIG,KAAKA,CAACC,CAAI,EAAE;MACdJ,MAAM,GAAGI,CAAC;MACVC,gCAAe,CAACC,YAAY,CAAC,MAAML,MAAM,CAACM,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;IACDC,WAAW,EAAEP,MAAM,CAACO;EACtB,CAAC;AACH"}
1
+ {"version":3,"names":["_events","require","_reactiveContext","reactive","initialValue","listeners","_value","events","createEvents","value","v","reactiveContext","batchUpdates","emit","addListener"],"sources":["../../src/reactive.ts"],"sourcesContent":["import { createEvents, Listener } from './events';\nimport { reactiveContext } from './reactiveContext';\n\nexport interface Reactive<T> {\n value: T;\n addListener(listener: Listener): () => void;\n}\n\nexport function reactive<T>(\n initialValue: T,\n {\n listeners,\n }: {\n listeners?: Listener[];\n } = {},\n): Reactive<T> {\n let _value = initialValue;\n\n const events = createEvents(listeners);\n return {\n get value() {\n return _value;\n },\n set value(v: T) {\n _value = v;\n reactiveContext.batchUpdates(() => events.emit());\n },\n addListener: events.addListener,\n };\n}\n"],"mappings":";;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AAOO,SAASE,QAAQA,CACtBC,YAAe,EACf;EACEC;AAGF,CAAC,GAAG,CAAC,CAAC,EACO;EACb,IAAIC,MAAM,GAAGF,YAAY;EAEzB,MAAMG,MAAM,GAAG,IAAAC,oBAAY,EAACH,SAAS,CAAC;EACtC,OAAO;IACL,IAAII,KAAKA,CAAA,EAAG;MACV,OAAOH,MAAM;IACf,CAAC;IACD,IAAIG,KAAKA,CAACC,CAAI,EAAE;MACdJ,MAAM,GAAGI,CAAC;MACVC,gCAAe,CAACC,YAAY,CAAC,MAAML,MAAM,CAACM,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;IACDC,WAAW,EAAEP,MAAM,CAACO;EACtB,CAAC;AACH","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_batchUpdates","require","reactiveContext","exports","batchUpdates","noOpBatchedUpdates"],"sources":["../../src/reactiveContext.ts"],"sourcesContent":["import { BatchUpdates, noOpBatchedUpdates } from './batchUpdates';\n\nexport interface ReactiveContext {\n batchUpdates: BatchUpdates;\n}\n\nexport const reactiveContext: ReactiveContext = {\n batchUpdates: noOpBatchedUpdates,\n};\n"],"mappings":";;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAMO,MAAMC,eAAgC,GAAAC,OAAA,CAAAD,eAAA,GAAG;EAC9CE,YAAY,EAAEC;AAChB,CAAC"}
1
+ {"version":3,"names":["_batchUpdates","require","reactiveContext","exports","batchUpdates","noOpBatchedUpdates"],"sources":["../../src/reactiveContext.ts"],"sourcesContent":["import { BatchUpdates, noOpBatchedUpdates } from './batchUpdates';\n\nexport interface ReactiveContext {\n batchUpdates: BatchUpdates;\n}\n\nexport const reactiveContext: ReactiveContext = {\n batchUpdates: noOpBatchedUpdates,\n};\n"],"mappings":";;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAMO,MAAMC,eAAgC,GAAAC,OAAA,CAAAD,eAAA,GAAG;EAC9CE,YAAY,EAAEC;AAChB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_reactDom","require","_reactiveContext","configure","reactiveContext","batchUpdates","unstable_batchedUpdates"],"sources":["../../src/setReactDOMBatchUpdates.ts"],"sourcesContent":["// https://dev.to/raibima/batch-your-react-updates-120b\n\nimport { unstable_batchedUpdates } from 'react-dom';\nimport { reactiveContext } from './reactiveContext';\n\nexport function configure() {\n reactiveContext.batchUpdates = unstable_batchedUpdates;\n}\n"],"mappings":";;;;AAEA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AAHA;;AAKO,SAASE,SAASA,CAAA,EAAG;EAC1BC,gCAAe,CAACC,YAAY,GAAGC,iCAAuB;AACxD"}
1
+ {"version":3,"names":["_reactDom","require","_reactiveContext","configure","reactiveContext","batchUpdates","unstable_batchedUpdates"],"sources":["../../src/setReactDOMBatchUpdates.ts"],"sourcesContent":["// https://dev.to/raibima/batch-your-react-updates-120b\n\nimport { unstable_batchedUpdates } from 'react-dom';\nimport { reactiveContext } from './reactiveContext';\n\nexport function configure() {\n reactiveContext.batchUpdates = unstable_batchedUpdates;\n}\n"],"mappings":";;;;AAEA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AAHA;;AAKO,SAASE,SAASA,CAAA,EAAG;EAC1BC,gCAAe,CAACC,YAAY,GAAGC,iCAAuB;AACxD","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_reactiveContext","configure","reactiveContext","batchUpdates","unstable_batchedUpdates"],"sources":["../../src/setReactNativeBatchUpdates.ts"],"sourcesContent":["import { unstable_batchedUpdates } from 'react-native';\nimport { reactiveContext } from './reactiveContext';\n\nexport function configure() {\n reactiveContext.batchUpdates = unstable_batchedUpdates;\n}\n"],"mappings":";;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AAEO,SAASE,SAASA,CAAA,EAAG;EAC1BC,gCAAe,CAACC,YAAY,GAAGC,oCAAuB;AACxD"}
1
+ {"version":3,"names":["_reactNative","require","_reactiveContext","configure","reactiveContext","batchUpdates","unstable_batchedUpdates"],"sources":["../../src/setReactNativeBatchUpdates.ts"],"sourcesContent":["import { unstable_batchedUpdates } from 'react-native';\nimport { reactiveContext } from './reactiveContext';\n\nexport function configure() {\n reactiveContext.batchUpdates = unstable_batchedUpdates;\n}\n"],"mappings":";;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AAEO,SAASE,SAASA,CAAA,EAAG;EAC1BC,gCAAe,CAACC,YAAY,GAAGC,oCAAuB;AACxD","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","useReactive","reactive","state","setState","useState","value","useEffect","addListener"],"sources":["../../src/useReactive.ts"],"sourcesContent":["import type { Reactive } from './reactive';\nimport { useEffect, useState } from 'react';\n\nexport function useReactive<T>(reactive: Reactive<T>) {\n const [state, setState] = useState(reactive.value);\n\n useEffect(() => {\n if (reactive.value !== state) {\n setState(reactive.value);\n }\n return reactive.addListener(() => {\n setState(reactive.value);\n });\n }, []);\n\n return state;\n}\n"],"mappings":";;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEO,SAASC,WAAWA,CAAIC,QAAqB,EAAE;EACpD,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAACH,QAAQ,CAACI,KAAK,CAAC;EAElD,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAIL,QAAQ,CAACI,KAAK,KAAKH,KAAK,EAAE;MAC5BC,QAAQ,CAACF,QAAQ,CAACI,KAAK,CAAC;IAC1B;IACA,OAAOJ,QAAQ,CAACM,WAAW,CAAC,MAAM;MAChCJ,QAAQ,CAACF,QAAQ,CAACI,KAAK,CAAC;IAC1B,CAAC,CAAC;EACJ,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOH,KAAK;AACd"}
1
+ {"version":3,"names":["_react","require","useReactive","reactive","state","setState","useState","value","useEffect","addListener"],"sources":["../../src/useReactive.ts"],"sourcesContent":["import type { Reactive } from './reactive';\nimport { useEffect, useState } from 'react';\n\nexport function useReactive<T>(reactive: Reactive<T>) {\n const [state, setState] = useState(reactive.value);\n\n useEffect(() => {\n if (reactive.value !== state) {\n setState(reactive.value);\n }\n return reactive.addListener(() => {\n setState(reactive.value);\n });\n }, []);\n\n return state;\n}\n"],"mappings":";;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEO,SAASC,WAAWA,CAAIC,QAAqB,EAAE;EACpD,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAACH,QAAQ,CAACI,KAAK,CAAC;EAElD,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAIL,QAAQ,CAACI,KAAK,KAAKH,KAAK,EAAE;MAC5BC,QAAQ,CAACF,QAAQ,CAACI,KAAK,CAAC;IAC1B;IACA,OAAOJ,QAAQ,CAACM,WAAW,CAAC,MAAM;MAChCJ,QAAQ,CAACF,QAAQ,CAACI,KAAK,CAAC;IAC1B,CAAC,CAAC;EACJ,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOH,KAAK;AACd","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/bex-utils",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Kobi",
@@ -50,6 +50,7 @@
50
50
  "@testing-library/react": "^11.2.3",
51
51
  "@wix/ambassador-app-settings-v1-settings": "^1.0.0",
52
52
  "@wix/ambassador-data-extensions-v1-data-extension-schema": "^1.0.30",
53
+ "@wix/ambassador-devcenter-app-market-listing-v1-market-listing": "^1.0.70",
53
54
  "@wix/ambassador-fedinfra-exportservice-v1-export-async-job": "^1.0.174",
54
55
  "@wix/ambassador-os-tags-v1-tag": "^1.0.3",
55
56
  "@wix/bex-bundled-mini-essentials": "2.2.0",
@@ -146,5 +147,5 @@
146
147
  "wallaby": {
147
148
  "autoDetect": true
148
149
  },
149
- "falconPackageHash": "b17644b4cb617f8364c96a9411608ea20a46fdbcc2ab263e4d49de36"
150
+ "falconPackageHash": "984cdfdb6caead8ed9750b243e4ab564fc36908e6b3dc7927537e42e"
150
151
  }