@wix/bex-utils 1.38.0 → 1.40.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 (240) 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/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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/bex-utils",
3
- "version": "1.38.0",
3
+ "version": "1.40.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Kobi",
@@ -51,6 +51,7 @@
51
51
  "@types/react-native": "^0.66.0",
52
52
  "@wix/ambassador-app-settings-v1-settings": "^1.0.0",
53
53
  "@wix/ambassador-data-extensions-v1-data-extension-schema": "^1.0.30",
54
+ "@wix/ambassador-devcenter-app-market-listing-v1-market-listing": "^1.0.70",
54
55
  "@wix/ambassador-fedinfra-exportservice-v1-export-async-job": "^1.0.174",
55
56
  "@wix/ambassador-os-tags-v1-tag": "^1.0.3",
56
57
  "@wix/bex-bundled-mini-essentials": "1.4.0",
@@ -147,5 +148,5 @@
147
148
  "wallaby": {
148
149
  "autoDetect": true
149
150
  },
150
- "falconPackageHash": "c6b05d150dc94d2c88382424da3406a4ad680c379a1d69c95ab80644"
151
+ "falconPackageHash": "cb31fee66bc3505b0c65df81be0075fefdfcf65043f92a095546c4b3"
151
152
  }