@wix/bex-utils 1.28.0 → 1.30.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 (254) hide show
  1. package/@wix/ambassador-app-settings-v1-settings/build/cjs/builders.impl.js +1 -1
  2. package/@wix/ambassador-app-settings-v1-settings/build/cjs/builders.impl.js.map +1 -1
  3. package/@wix/ambassador-app-settings-v1-settings/build/cjs/http.impl.js +26 -0
  4. package/@wix/ambassador-app-settings-v1-settings/build/cjs/http.impl.js.map +1 -1
  5. package/@wix/ambassador-app-settings-v1-settings/build/cjs/meta.impl.d.ts +29 -0
  6. package/@wix/ambassador-app-settings-v1-settings/build/cjs/meta.impl.js +176 -0
  7. package/@wix/ambassador-app-settings-v1-settings/build/cjs/meta.impl.js.map +1 -0
  8. package/@wix/ambassador-app-settings-v1-settings/build/cjs/proto/client/proto-generated.d.ts +256 -50
  9. package/@wix/ambassador-app-settings-v1-settings/build/cjs/proto/proto-generated.d.ts +129 -25
  10. package/@wix/ambassador-app-settings-v1-settings/build/cjs/proto/proto-generated.js +4366 -2869
  11. package/@wix/ambassador-app-settings-v1-settings/build/cjs/proto/server/proto-generated.d.ts +253 -50
  12. package/@wix/ambassador-app-settings-v1-settings/build/cjs/types.impl.d.ts +2 -2
  13. package/@wix/ambassador-app-settings-v1-settings/build/es/builders.impl.js +1 -1
  14. package/@wix/ambassador-app-settings-v1-settings/build/es/builders.impl.js.map +1 -1
  15. package/@wix/ambassador-app-settings-v1-settings/build/es/http.impl.js +26 -0
  16. package/@wix/ambassador-app-settings-v1-settings/build/es/http.impl.js.map +1 -1
  17. package/@wix/ambassador-app-settings-v1-settings/build/es/meta.impl.d.ts +29 -0
  18. package/@wix/ambassador-app-settings-v1-settings/build/es/meta.impl.js +146 -0
  19. package/@wix/ambassador-app-settings-v1-settings/build/es/meta.impl.js.map +1 -0
  20. package/@wix/ambassador-app-settings-v1-settings/build/es/types.impl.d.ts +2 -2
  21. package/@wix/ambassador-app-settings-v1-settings/meta/package.json +7 -0
  22. package/@wix/ambassador-app-settings-v1-settings/package.json +6 -3
  23. package/@wix/ambassador-app-settings-v1-settings/src/main/proto/app-settings.proto +15 -2
  24. package/@wix/ambassador-app-settings-v1-settings/src/main/proto/user-preferences.proto +58 -1
  25. package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/annotations.proto +19 -1
  26. package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/callback.proto +24 -2
  27. package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/entity.proto +6 -1
  28. package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/subscription.proto +2 -1
  29. package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/api/validations.proto +4 -3
  30. package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/http/field_mask.proto +1 -0
  31. package/@wix/ambassador-app-settings-v1-settings/src/main/proto/wix/spi/definitions.proto +1 -1
  32. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/builders.impl.d.ts +3 -1
  33. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/builders.impl.js +15 -1
  34. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/builders.impl.js.map +1 -1
  35. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/crud/rpc.impl.d.ts +1 -0
  36. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/crud/rpc.impl.js +2 -1
  37. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/crud/rpc.impl.js.map +1 -1
  38. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/http.impl.d.ts +17 -1
  39. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/http.impl.js +44 -1
  40. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/http.impl.js.map +1 -1
  41. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/meta.impl.d.ts +16 -0
  42. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/meta.impl.js +119 -0
  43. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/meta.impl.js.map +1 -0
  44. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/proto/client/proto-generated.d.ts +3229 -341
  45. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/proto/proto-generated.d.ts +1546 -102
  46. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/proto/proto-generated.js +35849 -2496
  47. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/proto/server/proto-generated.d.ts +3258 -371
  48. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/rpc.impl.d.ts +2 -1
  49. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/rpc.impl.js +14 -1
  50. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/rpc.impl.js.map +1 -1
  51. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/cjs/types.impl.d.ts +6 -0
  52. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/builders.impl.d.ts +3 -1
  53. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/builders.impl.js +12 -0
  54. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/builders.impl.js.map +1 -1
  55. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/crud/rpc.impl.d.ts +1 -0
  56. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/crud/rpc.impl.js +1 -0
  57. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/crud/rpc.impl.js.map +1 -1
  58. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/http.impl.d.ts +17 -1
  59. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/http.impl.js +42 -0
  60. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/http.impl.js.map +1 -1
  61. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/meta.impl.d.ts +16 -0
  62. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/meta.impl.js +92 -0
  63. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/meta.impl.js.map +1 -0
  64. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/rpc.impl.d.ts +2 -1
  65. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/rpc.impl.js +12 -0
  66. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/rpc.impl.js.map +1 -1
  67. package/@wix/ambassador-data-extensions-v1-data-extension-schema/build/es/types.impl.d.ts +6 -0
  68. package/@wix/ambassador-data-extensions-v1-data-extension-schema/meta/package.json +7 -0
  69. package/@wix/ambassador-data-extensions-v1-data-extension-schema/package.json +6 -3
  70. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/com/wixpress/appservice/api/components_catalog_type.proto +18 -2
  71. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_common.proto +11 -3
  72. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/application_automation/com/wixpress/appservice/api/upstream/com/wixpress/automations/service/application_automation_component.proto +33 -3
  73. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/automations_action_provider/com/wixpress/appservice/api/upstream/com/wixpress/esb/spi/action/v1/action_spi_provider.proto +2 -0
  74. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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
  75. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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
  76. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/back_office_extension.proto +5 -0
  77. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/{entitlement_policy_provider/com/wixpress/appservice/api/upstream/wix/entitlements → benefit_programs_policy_provider/com/wixpress/appservice/api/upstream/wix/benefit_programs}/spi/v1/policy_provider_spi.proto +3 -3
  78. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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
  79. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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 +22 -0
  80. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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
  81. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/contact_notification.proto +86 -0
  82. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/custom_table_reservations_provider/com/wixpress/appservice/api/upstream/wix/reservations/v1/custom_reservation_approval.proto +14 -0
  83. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/dev_center_component_test.proto +4 -0
  84. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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 +6 -7
  85. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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
  86. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/ecom_validations/com/wixpress/appservice/api/upstream/com/wix/ecommerce/validations_spi/v1/validations_spi_config.proto +5 -7
  87. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/editor_addon.proto +29 -7
  88. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/embedded_script.proto +2 -2
  89. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/external_database/com/wixpress/appservice/api/upstream/com/wixpress/cloud/external-database-spi/v1/external_database_spi.proto +19 -0
  90. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/forms_schema_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_schema_spi.proto +6 -4
  91. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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
  92. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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
  93. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/forms_submissions_provider/com/wixpress/appservice/api/upstream/wix/forms/v4/form_submission_spi.proto +8 -7
  94. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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 +24 -15
  95. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/notification_preferences_filter_provider/wix/notifications/preferences/v1/NotificationPreferencesFilterConfig.proto +11 -0
  96. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/notification_topic.proto +27 -0
  97. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/notifications_common.proto +242 -0
  98. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/page.proto +0 -27
  99. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/page_out_of_iframe.proto +2 -0
  100. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/page_replace/page_replace.proto +27 -1
  101. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/plugin-interface.proto +6 -0
  102. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/pricing_plans_form_configuration.proto +107 -0
  103. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/proposal-editor-provider/com/wixpress/appservice/api/upstream/wix/proposals/spi/v1/proposals-editor-provider.proto +22 -0
  104. package/@wix/ambassador-data-extensions-v1-data-extension-schema/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 +1 -1
  105. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/slot.proto +3 -0
  106. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/studio_widget.proto +6 -0
  107. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/unified_components/shared.proto +24 -0
  108. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/unified_components/unified_page.proto +48 -0
  109. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/unified_components/unified_widget.proto +26 -0
  110. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/user_notification.proto +91 -0
  111. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/web.proto +8 -2
  112. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/widget_out_of_iframe.proto +2 -0
  113. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/widget_plugin.proto +17 -2
  114. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/wix_reviews/com/wixpress/appservice/api/upstream/wix/reviews/product/catalog/spi/v1/reviews_product_catalog_provider.proto +6 -1
  115. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data.proto +59 -12
  116. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/annotations.proto +1 -0
  117. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/subscription.proto +1 -0
  118. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/api/validations.proto +4 -3
  119. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/query.proto +120 -4
  120. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/common/tags.proto +55 -0
  121. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/infra/dataextensions/v1/data_extension_schema.proto +6 -1
  122. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/wix/infra/dataextensions/v1/data_extension_schema_service.proto +16 -0
  123. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js +2 -2
  124. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js.map +1 -1
  125. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js +4 -0
  126. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js.map +1 -1
  127. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/meta.impl.d.ts +21 -0
  128. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/meta.impl.js +100 -0
  129. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/meta.impl.js.map +1 -0
  130. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/client/proto-generated.d.ts +694 -42
  131. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.d.ts +349 -22
  132. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.js +7034 -304
  133. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/server/proto-generated.d.ts +687 -42
  134. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.d.ts +0 -1
  135. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js.map +1 -1
  136. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js +2 -2
  137. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js.map +1 -1
  138. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js +4 -0
  139. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js.map +1 -1
  140. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/meta.impl.d.ts +21 -0
  141. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/meta.impl.js +74 -0
  142. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/meta.impl.js.map +1 -0
  143. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.d.ts +0 -1
  144. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js.map +1 -1
  145. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/meta/package.json +7 -0
  146. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/package.json +6 -3
  147. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/catalog_reference.proto +11 -3
  148. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/description_line.proto +2 -2
  149. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/item_data.proto +4 -2
  150. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/platform_catalog_spi.proto +5 -0
  151. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/product_name.proto +4 -4
  152. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/subscription_option_info.proto +1 -1
  153. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/platformQuery.proto +30 -0
  154. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/commons/api/platform_search.proto +23 -0
  155. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/address.proto +1 -0
  156. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/channel_type.proto +2 -0
  157. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/price.proto +1 -1
  158. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/annotations.proto +14 -1
  159. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/callback.proto +2 -2
  160. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/entity.proto +1 -1
  161. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/subscription.proto +2 -1
  162. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/validations.proto +4 -3
  163. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/catalog.proto +141 -7
  164. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/product.proto +2 -2
  165. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v2/collectionRead.proto +25 -1
  166. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/bulk.proto +5 -4
  167. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/query.proto +120 -4
  168. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/tags.proto +55 -0
  169. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/coupons-manager-ui.proto +15 -0
  170. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/fedinfra/exportservice/v1/export.proto +4 -0
  171. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/fedinfra/exportservice/v1/export_service.proto +26 -3
  172. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobService.proto +1 -0
  173. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/preOrderInfo.proto +6 -6
  174. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/payment-methods.proto +5 -2
  175. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/payments.proto +17 -0
  176. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order-description.proto +5 -2
  177. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/payment-method.proto +12 -4
  178. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/payment.proto +6 -2
  179. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v3/double-payment-events.proto +26 -0
  180. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v3/resources/double-payment-event.proto +18 -0
  181. package/@wix/ambassador-os-tags-v1-tag/build/cjs/builders.impl.js +4 -3
  182. package/@wix/ambassador-os-tags-v1-tag/build/cjs/builders.impl.js.map +1 -1
  183. package/@wix/ambassador-os-tags-v1-tag/build/cjs/http.impl.js +5 -0
  184. package/@wix/ambassador-os-tags-v1-tag/build/cjs/http.impl.js.map +1 -1
  185. package/@wix/ambassador-os-tags-v1-tag/build/cjs/meta.impl.d.ts +22 -0
  186. package/@wix/ambassador-os-tags-v1-tag/build/cjs/meta.impl.js +119 -0
  187. package/@wix/ambassador-os-tags-v1-tag/build/cjs/meta.impl.js.map +1 -0
  188. package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/client/proto-generated.d.ts +170 -58
  189. package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/proto-generated.d.ts +85 -29
  190. package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/proto-generated.js +3128 -531
  191. package/@wix/ambassador-os-tags-v1-tag/build/cjs/proto/server/proto-generated.d.ts +170 -58
  192. package/@wix/ambassador-os-tags-v1-tag/build/cjs/types.impl.d.ts +6 -0
  193. package/@wix/ambassador-os-tags-v1-tag/build/cjs/types.impl.js +1 -0
  194. package/@wix/ambassador-os-tags-v1-tag/build/cjs/types.impl.js.map +1 -1
  195. package/@wix/ambassador-os-tags-v1-tag/build/es/builders.impl.js +4 -3
  196. package/@wix/ambassador-os-tags-v1-tag/build/es/builders.impl.js.map +1 -1
  197. package/@wix/ambassador-os-tags-v1-tag/build/es/http.impl.js +5 -0
  198. package/@wix/ambassador-os-tags-v1-tag/build/es/http.impl.js.map +1 -1
  199. package/@wix/ambassador-os-tags-v1-tag/build/es/meta.impl.d.ts +22 -0
  200. package/@wix/ambassador-os-tags-v1-tag/build/es/meta.impl.js +92 -0
  201. package/@wix/ambassador-os-tags-v1-tag/build/es/meta.impl.js.map +1 -0
  202. package/@wix/ambassador-os-tags-v1-tag/build/es/types.impl.d.ts +6 -0
  203. package/@wix/ambassador-os-tags-v1-tag/build/es/types.impl.js +1 -0
  204. package/@wix/ambassador-os-tags-v1-tag/build/es/types.impl.js.map +1 -1
  205. package/@wix/ambassador-os-tags-v1-tag/meta/package.json +7 -0
  206. package/@wix/ambassador-os-tags-v1-tag/package.json +4 -3
  207. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/annotations.proto +0 -7
  208. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/callback.proto +2 -2
  209. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/entity.proto +1 -1
  210. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/subscription.proto +2 -1
  211. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/api/validations.proto +3 -0
  212. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/bulk.proto +5 -4
  213. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/data/errors.proto +0 -5
  214. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/query.proto +120 -4
  215. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/common/tags.proto +2 -2
  216. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tag.proto +4 -1
  217. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tag_exposure.proto +1 -1
  218. package/@wix/ambassador-os-tags-v1-tag/src/main/proto/wix/os/v1/tags_service.proto +7 -2
  219. package/@wix/bi-logger-cairo-os/dist/cjs/index.js +3 -0
  220. package/@wix/bi-logger-cairo-os/dist/cjs/index.js.map +1 -1
  221. package/@wix/bi-logger-cairo-os/dist/cjs/testkit/client-testkit.js +7 -0
  222. package/@wix/bi-logger-cairo-os/dist/cjs/testkit/client-testkit.js.map +1 -1
  223. package/@wix/bi-logger-cairo-os/dist/cjs/testkit/common.js +854 -3
  224. package/@wix/bi-logger-cairo-os/dist/cjs/testkit/common.js.map +1 -1
  225. package/@wix/bi-logger-cairo-os/dist/cjs/testkit/node-testkit.js +7 -0
  226. package/@wix/bi-logger-cairo-os/dist/cjs/testkit/node-testkit.js.map +1 -1
  227. package/@wix/bi-logger-cairo-os/dist/cjs/v2/index.js +183 -2
  228. package/@wix/bi-logger-cairo-os/dist/cjs/v2/index.js.map +1 -1
  229. package/@wix/bi-logger-cairo-os/dist/esm/index.js +3 -0
  230. package/@wix/bi-logger-cairo-os/dist/esm/index.js.map +1 -1
  231. package/@wix/bi-logger-cairo-os/dist/esm/testkit/client-testkit.js +7 -0
  232. package/@wix/bi-logger-cairo-os/dist/esm/testkit/client-testkit.js.map +1 -1
  233. package/@wix/bi-logger-cairo-os/dist/esm/testkit/common.js +854 -3
  234. package/@wix/bi-logger-cairo-os/dist/esm/testkit/common.js.map +1 -1
  235. package/@wix/bi-logger-cairo-os/dist/esm/testkit/node-testkit.js +7 -0
  236. package/@wix/bi-logger-cairo-os/dist/esm/testkit/node-testkit.js.map +1 -1
  237. package/@wix/bi-logger-cairo-os/dist/esm/v2/index.js +180 -0
  238. package/@wix/bi-logger-cairo-os/dist/esm/v2/index.js.map +1 -1
  239. package/@wix/bi-logger-cairo-os/dist/types/index.d.ts +3 -2
  240. package/@wix/bi-logger-cairo-os/dist/types/testkit/client-testkit.d.ts +171 -0
  241. package/@wix/bi-logger-cairo-os/dist/types/testkit/node-testkit.d.ts +171 -0
  242. package/@wix/bi-logger-cairo-os/dist/types/types.d.ts +171 -0
  243. package/@wix/bi-logger-cairo-os/dist/types/v2/index.d.ts +179 -1
  244. package/@wix/bi-logger-cairo-os/package.json +2 -2
  245. package/@wix/bi-logger-cairo-os/src/index.ts +6 -2
  246. package/@wix/bi-logger-cairo-os/src/testkit/client-testkit.ts +174 -0
  247. package/@wix/bi-logger-cairo-os/src/testkit/common.ts +854 -3
  248. package/@wix/bi-logger-cairo-os/src/testkit/node-testkit.ts +174 -0
  249. package/@wix/bi-logger-cairo-os/src/types.ts +187 -0
  250. package/@wix/bi-logger-cairo-os/src/v2/index.ts +182 -1
  251. package/@wix/wix-i18n-config/dist/tsconfig.tsbuildinfo +1 -1
  252. package/@wix/wix-i18n-config/package.json +4 -4
  253. package/package.json +3 -3
  254. package/@wix/ambassador-data-extensions-v1-data-extension-schema/src/main/proto/components_catalog_data/entitlement_provider/com/wixpress/appservice/api/upstream/wix/entitlements/spi/v1/entitlement_provider_spi.proto +0 -19
@@ -37,7 +37,8 @@ extend google.protobuf.FieldOptions {
37
37
  optional Exposure field_exposure = 50106;
38
38
  optional Maturity field_maturity = 50107;
39
39
  optional bool pii = 50110; // Mark specific field as PII so clients that store the data know it should be encrypted
40
- optional string referenced_entity = 50111; // FQDN of foreign keys. For example, an Order message that points to Product message can use it like this: `string product_id = 10 [(wix.api.referenced_entity) = "wix.stores.catalog.product"];`
40
+ optional string referenced_entity = 50111; // FQDN of foreign keys. For example, an Order message that points to Product message can use it like this: `string product_id = 10 [(wix.api.referenced_entity) = "wix.stores.catalog.v1.product"];`
41
+ optional ReferenceEntityField referenced_entity_field = 50112; // FQDN and path of a field that is referenced by `referenced_entity`. Should be located at same level or in a nested message with relation to `wix.api.referenced_entity`.
41
42
  optional Deprecated field_deprecated = 50143; // Mark a field as deprecated, optionally place replacing asset
42
43
  optional Translatable translatable = 50144; // Mark this field as translatable using MultiLingual services
43
44
  optional string sample_data = 50149; // Example of data that may be assigned as a value of this field
@@ -49,6 +50,10 @@ extend google.protobuf.EnumValueOptions {
49
50
  optional Exposure enum_exposure = 50131;
50
51
  }
51
52
 
53
+ message ReferenceEntityField {
54
+ required string path = 1; // field path from root of a message annotated with `wix.api.entity` annotation. For example 'item.name'.
55
+ }
56
+
52
57
  message CacheSettings {
53
58
  optional int32 max_age_seconds = 1; // default is 604800 seconds = 1 week
54
59
  }
@@ -167,6 +172,7 @@ message SearchMethodOptions {
167
172
  optional Paging paging = 2; // present paging mechanism info, default will be of type=`CURSOR`
168
173
  required Wql wql = 4; // mark fields that are available for filtering and sorting via WixQueryLanguage
169
174
  repeated string me_aliasable_field = 5; // collection of FQNs of fields that MAY be aliased with the const `"me"`
175
+ repeated Search search = 6; // mark fields that are available for search
170
176
  }
171
177
 
172
178
  message BulkCreateMethodOptions {
@@ -243,6 +249,7 @@ message Wql {
243
249
  ANY = 12 [deprecated = true]; // [Array] Matches arrays that contain at least one element specified in the query.
244
250
  HAS_SOME = 12; // [Array] Matches arrays that contain at least one element specified in the query.
245
251
  EMPTY = 13; // [Array] Matches arrays that contain no elements.
252
+ MATCH_ALL = 14; // [Array] match multiple fields within array with AND operator semantics.
246
253
  }
247
254
  enum Sort {
248
255
  NONE = 0; // no sorting enabled
@@ -272,6 +279,7 @@ message Wql {
272
279
  repeated string field = 5; // a collection of field paths that that accepts this operator
273
280
  optional Sort sort = 3; // sort type enabled for this glob
274
281
  repeated RequiredFields required_fields = 4; // fields that match this glob, can be used only if the query is also filtered by required_fields
282
+ optional Maturity maturity = 6;
275
283
  }
276
284
  // this field is deprecated due to a better and shorter naming
277
285
  repeated OperatorFieldSupport operator_field_support = 3 [(.wix.api.field_deprecated) = {
@@ -281,6 +289,11 @@ message Wql {
281
289
  repeated OperatorFieldSupport pattern = 4; // supported operators for subject query method
282
290
  }
283
291
 
292
+ message Search {
293
+ repeated string field = 1; // a collection of field paths that supports Free Text Search
294
+ optional Maturity maturity = 2;
295
+ }
296
+
284
297
  message Hookable {
285
298
  }
286
299
 
@@ -87,7 +87,7 @@ message Callback {
87
87
  }
88
88
 
89
89
  optional string topic = 1;
90
- optional Segment.Segment segment = 8; // currently defaults to "legacy", will be `required` when legacy cluster is removed
90
+ optional Segment.SegmentName segment = 8; // currently defaults to "legacy", will be `required` when legacy cluster is removed
91
91
  optional string payload = 2;
92
92
  optional string permission = 3;
93
93
  optional EventType event_type = 4;
@@ -131,7 +131,7 @@ message Segment {
131
131
  * However, new topics must provide a segment, or greyhound will throw an exception.
132
132
  * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
133
133
  */
134
- enum Segment {
134
+ enum SegmentName {
135
135
  UNSPECIFIED = 0; // currently means "auto-resolved for old topics", will be forbidden when legacy cluster is removed
136
136
 
137
137
  /**
@@ -50,7 +50,7 @@ message Entity {
50
50
  optional Exposure exposure = 2 [deprecated=true];
51
51
  repeated MessageAppendix appendix_files = 3; // declare external configuration info
52
52
  optional string old_fqdn_for_backwards_compatibility = 4; // Topic name for domain events will be based on this attribute if present (only for known legacy FQDNs)
53
- optional Segment.Segment segment = 5; // the cluster to which domain events will be produced
53
+ optional Segment.SegmentName segment = 5; // the cluster to which domain events will be produced
54
54
  repeated string implements = 6; // FQDNs of interfaces (i.e. SPIs) that this entity implements. Must begin with `wix.interfaces.`
55
55
  optional Extensible extensible = 7; // Indicates that this entity can be extended by apps using data-extension mechanism.
56
56
  optional bool trashbin = 8; // Indicates whether trash-bin is exposed on this entity.
@@ -25,7 +25,8 @@ extend google.protobuf.MethodOptions {
25
25
 
26
26
  message Subscription {
27
27
  optional string topic = 1;
28
- optional Segment.Segment segment = 4; // currently defaults to "legacy", will be `required` when legacy cluster is removed
28
+ optional Segment.SegmentName segment = 4; // currently defaults to "legacy", will be `required` when legacy cluster is removed
29
29
  optional bool batch = 2 [deprecated = true];
30
30
  optional string entity = 3;
31
+ optional bool dynamic = 5;
31
32
  }
@@ -91,6 +91,7 @@ extend google.protobuf.MethodOptions {
91
91
  // example use:
92
92
  // option (wix.api.writable) = "id"; // user-generated id is enabled
93
93
  repeated string writable = 50213;
94
+
94
95
  }
95
96
 
96
97
  extend google.protobuf.OneofOptions {
@@ -101,6 +102,8 @@ extend google.protobuf.OneofOptions {
101
102
 
102
103
  message AlignedWithEnum {
103
104
  required string field = 1;
105
+ // defaults to _options if not specified
106
+ optional string suffix = 2;
104
107
  }
105
108
 
106
109
  enum Format {
@@ -122,12 +125,10 @@ enum Format {
122
125
  DECIMAL_VALUE = 12;
123
126
  CURRENCY = 13; // 3 letters - all available currencies
124
127
  LANGUAGE_TAG = 14; // IETF BCP 47 language tag (e.g. en-US)
125
- COLOR_HEX = 15;
128
+ COLOR_HEX = 15; // hex color format as defined by the MDN https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color
126
129
  LOCAL_DATE = 16; // ISO-8601 extended local date format (YYYY-MM-DD)
127
130
  LOCAL_TIME = 17; // ISO-8601 extended local time format (hh:mm[:ss][.sss])
128
131
  LOCAL_DATE_TIME = 18; // ISO-8601 extended local date-time format (YYYY-MM-DDThh:mm[:ss][.sss])
129
132
  URL_SLUG = 19;
130
133
  SYSTEM_SLUG = 20;
131
134
  }
132
-
133
-
@@ -48,9 +48,14 @@ service CatalogReadApi {
48
48
  rpc QueryProductsPlatformized (QueryProductsPlatformizedRequest) returns (QueryProductsPlatformizedResponse) {
49
49
  option (google.api.http) = {
50
50
  post: "/v1/products/query-platformized"
51
+ additional_bindings {
52
+ // for api cache
53
+ get: "/v1/products/query-platformized"
54
+ }
51
55
  };
56
+ option (wix.api.cacheable) = {};
52
57
  option (wix.api.permission).name = "WIX_STORES.READ_PRODUCTS";
53
- option (wix.api.exposure) = INTERNAL;
58
+ option (wix.api.exposure) = PUBLIC;
54
59
  option (.wix.api.crud) = {
55
60
  method: QUERY
56
61
  query_options: {
@@ -92,6 +97,11 @@ service CatalogReadApi {
92
97
  operator: ALL_APPLICABLE_OPERATORS
93
98
  sort: BOTH
94
99
  }
100
+ operator_field_support: {
101
+ glob: "priceData.price"
102
+ operator: ALL_APPLICABLE_OPERATORS
103
+ sort: BOTH
104
+ }
95
105
  operator_field_support: {
96
106
  glob: "numericId"
97
107
  operator: ALL_APPLICABLE_OPERATORS
@@ -145,9 +155,26 @@ service CatalogReadApi {
145
155
  get: "/api/v1/products/{id}"
146
156
  }
147
157
  };
158
+ option (wix.api.cacheable) = {};
148
159
  option (wix.api.permission).name = "WIX_STORES.READ_PRODUCTS";
149
160
  }
150
161
 
162
+ // Retrieves a product with the provided ID.
163
+ rpc GetProductPlatformized (GetProductPlatformizedRequest) returns (GetProductPlatformizedResponse) {
164
+ option (wix.api.exposure) = PUBLIC;
165
+ option (google.api.http) = {
166
+ get: "/v1/products-platformized/{id}"
167
+ };
168
+ option (wix.api.permission).name = "WIX_STORES.READ_PRODUCTS";
169
+ option (.wix.api.crud) = {
170
+ method: GET_ITEM
171
+ get_options: {
172
+ id_field: "id"
173
+ }
174
+ };
175
+ option (wix.api.cacheable) = {};
176
+ }
177
+
151
178
  // Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
152
179
  // See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
153
180
  rpc QueryCollections (QueryCollectionsRequest) returns (QueryCollectionsResponse) {
@@ -239,6 +266,7 @@ service CatalogReadApi {
239
266
  get: "/v1/variants/{id}"
240
267
  };
241
268
  option (wix.api.maturity) = BETA;
269
+ option (wix.api.cacheable) = {};
242
270
  option (wix.api.permission).name = "WIX_STORES.READ_PRODUCTS";
243
271
  }
244
272
 
@@ -370,6 +398,19 @@ message GetProductResponse {
370
398
  Product product = 1;
371
399
  }
372
400
 
401
+ message GetProductPlatformizedRequest {
402
+ // Requested product ID.
403
+ string id = 1 [(wix.api.minLength) = 1];
404
+ // Whether merchant specific data, such as cost and profit data, should be included in the response. Requires permissions to manage products.
405
+ bool include_merchant_specific_data = 2;
406
+ }
407
+
408
+ message GetProductPlatformizedResponse {
409
+ // Requested product data.
410
+ Product product = 1;
411
+ }
412
+
413
+
373
414
  message QueryCollectionsRequest {
374
415
  // Query options.
375
416
  Query query = 1;
@@ -420,7 +461,7 @@ message GetCollectionResponse {
420
461
  message ProductOptionsAvailabilityRequest {
421
462
  // Requested product ID.
422
463
  string id = 1 [(wix.api.minLength) = 1];
423
- // Set of key-value pairs. Array containing the selected options (e.g, color: Blue, size: Large).
464
+ // Array containing the selected options. For example, `["color": "Blue", "size": "Large"]`.
424
465
  map<string, string> options = 2;
425
466
  }
426
467
 
@@ -550,6 +591,24 @@ service CatalogWriteApi {
550
591
  option (wix.api.permission).name = "WIX_STORES.MODIFY_PRODUCTS";
551
592
  }
552
593
 
594
+ //Creates a new product.
595
+ rpc CreateProductPlatformized (CreateProductPlatformizedRequest) returns (CreateProductPlatformizedResponse) {
596
+ option (wix.api.required) = "CreateProductPlatformizedRequest.product.name";
597
+ option (wix.api.required) = "CreateProductPlatformizedRequest.product.priceData";
598
+ option (wix.api.required) = "CreateProductPlatformizedRequest.product.priceData.price";
599
+ option (wix.api.required) = "CreateProductPlatformizedRequest.product.cost_and_profit_data.item_cost";
600
+ option (wix.api.exposure) = PUBLIC;
601
+ option (google.api.http) = {
602
+ post: "/v1/products-platformized"
603
+ };
604
+ option (.wix.sdk.signature) = {params: "product"};
605
+ option (wix.api.permission).name = "WIX_STORES.MODIFY_PRODUCTS";
606
+ option (.wix.api.callback) = {
607
+ event_type: CREATED
608
+ permission: "WIX_STORES.READ_PRODUCTS"
609
+ };
610
+ }
611
+
553
612
  //Updates specified fields in a product.
554
613
  rpc UpdateProduct (UpdateProductRequest) returns (UpdateProductResponse) {
555
614
  option (wix.api.required) = "UpdateProductRequest.product.id";
@@ -560,6 +619,21 @@ service CatalogWriteApi {
560
619
  option (wix.api.permission).name = "WIX_STORES.MODIFY_PRODUCTS";
561
620
  }
562
621
 
622
+ //Updates specified fields in a product.
623
+ rpc UpdateProductPlatformized (UpdateProductPlatformizedRequest) returns (UpdateProductPlatformizedResponse) {
624
+ option (wix.api.required) = "UpdateProductPlatformizedRequest.product.id";
625
+ option (wix.api.required) = "UpdateProductPlatformizedRequest.product";
626
+ option (wix.api.exposure) = PUBLIC;
627
+ option (google.api.http) = {
628
+ patch: "/v1/products-platformized/{product.id}"
629
+ };
630
+ option (wix.api.permission).name = "WIX_STORES.MODIFY_PRODUCTS";
631
+ option (.wix.api.callback) = {
632
+ event_type: UPDATED
633
+ permission: "WIX_STORES.READ_PRODUCTS"
634
+ };
635
+ }
636
+
563
637
  //Deletes a product.
564
638
  rpc DeleteProduct (DeleteProductRequest) returns (DeleteProductResponse) {
565
639
  option (wix.api.required) = "DeleteProductRequest.id";
@@ -569,6 +643,20 @@ service CatalogWriteApi {
569
643
  option (wix.api.permission).name = "WIX_STORES.MODIFY_PRODUCTS";
570
644
  }
571
645
 
646
+ //Deletes a product.
647
+ rpc DeleteProductPlatformized (DeleteProductPlatformizedRequest) returns (DeleteProductPlatformizedResponse) {
648
+ option (wix.api.required) = "DeleteProductPlatformizedRequest.id";
649
+ option (wix.api.exposure) = PUBLIC;
650
+ option (google.api.http) = {
651
+ delete: "/v1/products-platformized/{id}"
652
+ };
653
+ option (wix.api.permission).name = "WIX_STORES.MODIFY_PRODUCTS";
654
+ option (.wix.api.callback) = {
655
+ event_type: DELETED
656
+ permission: "WIX_STORES.READ_PRODUCTS"
657
+ };
658
+ }
659
+
572
660
  //Deletes a bulk of products.
573
661
  rpc BulkDeleteProducts (BulkDeleteProductsRequest) returns (BulkDeleteProductsResponse) {
574
662
  option (wix.api.required) = "BulkDeleteProductsRequest.ids";
@@ -830,6 +918,14 @@ service CatalogWriteApi {
830
918
  data: "wix.catalog.api.v1.AllowedProductsCountLimitExceededErrorData"
831
919
  };
832
920
  }
921
+
922
+ rpc ReCloneStore(ReCloneStoreRequest) returns (ReCloneStoreResponse) {
923
+ option (.google.api.http).get = "/v1/reclone";
924
+ option (.wix.api.required) = "ReCloneStoreRequest.metasite_id";
925
+ option (.wix.api.permission).name = "WIX_STORES.RECLONE_STORE";
926
+ option (.wix.api.maturity) = ALPHA;
927
+ option (wix.api.exposure) = PRIVATE;
928
+ }
833
929
  }
834
930
 
835
931
  message CreateProductRequest {
@@ -841,6 +937,15 @@ message CreateProductResponse {
841
937
  Product product = 1;
842
938
  }
843
939
 
940
+ message CreateProductPlatformizedRequest {
941
+ //Product information.
942
+ Product product = 1;
943
+ }
944
+
945
+ message CreateProductPlatformizedResponse {
946
+ Product product = 1;
947
+ }
948
+
844
949
  message UpdateProductRequest {
845
950
  Product product = 1;
846
951
  }
@@ -849,6 +954,14 @@ message UpdateProductResponse {
849
954
  Product product = 1;
850
955
  }
851
956
 
957
+ message UpdateProductPlatformizedRequest {
958
+ Product product = 1;
959
+ }
960
+
961
+ message UpdateProductPlatformizedResponse {
962
+ Product product = 1;
963
+ }
964
+
852
965
  message DeleteProductRequest {
853
966
  //ID of the product to delete.
854
967
  string id = 1;
@@ -857,6 +970,14 @@ message DeleteProductRequest {
857
970
  message DeleteProductResponse {
858
971
  }
859
972
 
973
+ message DeleteProductPlatformizedRequest {
974
+ //ID of the product to delete.
975
+ string id = 1;
976
+ }
977
+
978
+ message DeleteProductPlatformizedResponse {
979
+ }
980
+
860
981
  message BulkDeleteProductsRequest {
861
982
  //IDs of the products to be deleted.
862
983
  repeated string ids = 1 [(wix.api.maxSize) = 1000];
@@ -878,7 +999,7 @@ message UpdateVariantsResponse {
878
999
  }
879
1000
 
880
1001
  message AddProductsToCollectionRequest {
881
- //Collection ID. Cannot be used to add products to All Products
1002
+ //Collection ID.
882
1003
  string id = 1 [(wix.api.format) = GUID];
883
1004
  //IDs of the products to add to the collection, separated by commas.
884
1005
  repeated string product_ids = 2 [(wix.api.maxSize) = 1000];
@@ -888,7 +1009,7 @@ message AddProductsToCollectionResponse {
888
1009
  }
889
1010
 
890
1011
  message RemoveProductsFromCollectionRequest {
891
- //Collection ID. Cannot be used to remove products from All Products
1012
+ //Collection ID.
892
1013
  string id = 1 [(wix.api.format) = GUID];
893
1014
  //IDs of the products to remove from the collection.
894
1015
  repeated string product_ids = 2 [(wix.api.maxSize) = 1000];
@@ -1055,7 +1176,7 @@ message GetCollectionBySlugResponse {
1055
1176
  }
1056
1177
 
1057
1178
  message DeleteCollectionRequest {
1058
- // ID of the collection to delete. Cannot be used to delete All Products
1179
+ // ID of the collection to delete.
1059
1180
  string id = 1 [(wix.api.format) = GUID];
1060
1181
  }
1061
1182
 
@@ -1179,7 +1300,20 @@ message PercentageData {
1179
1300
  // If `true`, result will be rounded to the nearest whole number.
1180
1301
  // If `false`, result will be rounded to 2 places after the decimal point.
1181
1302
  bool roundToInt = 1;
1182
- // Percentage value, as a whole number (integer) between `-100`` and `1000``.
1183
- // For example, pass `100`` to increase value by 100% (multiply original value by 2).
1303
+ // Percentage value, as a whole number (integer) between `-100` and `1000`.
1304
+ //
1305
+ // For example:
1306
+ // + Pass `100` to increase value by 100% (multiply original value by 2).
1307
+ // + Pass `1000` to increase value by 1000% (multiply original value by 10).
1308
+ // + Pass `-50` to decrease value by 50% (original value is halved).
1184
1309
  int32 rate = 2 [(wix.api.min) = -100, (wix.api.max) = 1000];
1185
1310
  }
1311
+
1312
+ message ReCloneStoreRequest {
1313
+ // Description of value
1314
+ google.protobuf.StringValue metasite_id = 1[(wix.api.format) = GUID];
1315
+ google.protobuf.StringValue original_metasite_id = 2[(wix.api.format) = GUID];
1316
+ }
1317
+
1318
+ message ReCloneStoreResponse {
1319
+ }
@@ -90,7 +90,7 @@ message Product {
90
90
  // Discount deducted from the product's original price.
91
91
  Discount discount = 20;
92
92
  // A list of all collection IDs that this product is included in (writable via the Catalog > Collection APIs).
93
- repeated string collection_ids = 21 [(wix.api.readOnly) = true];
93
+ repeated string collection_ids = 21 [(wix.api.readOnly) = true, (.wix.api.referenced_entity) = "wix.stores.catalog.v1.collection"];
94
94
  // Product variants, will be provided if the the request was sent with the includeVariants flag.
95
95
  repeated Variant variants = 23 [(wix.api.readOnly) = true];
96
96
  // Date and time the product was last updated.
@@ -104,7 +104,7 @@ message Product {
104
104
  // Product brand. Including a brand name can help improve site and product [visibility on search engines](https://support.wix.com/en/article/adding-brand-names-to-boost-product-page-seo-in-wix-stores).
105
105
  google.protobuf.StringValue brand = 29 [(wix.api.minLength) = 1, (wix.api.maxLength) = 50];
106
106
  //tax group id
107
- google.protobuf.StringValue tax_group_id = 35 [(wix.api.readOnly) = true, (wix.api.field_exposure) = INTERNAL];
107
+ google.protobuf.StringValue tax_group_id = 35 [(wix.api.format) = GUID, (wix.api.field_exposure) = INTERNAL];
108
108
  //internal field used by import/export to know how to link products in csv file to product ids
109
109
  string export_product_id = 36 [(wix.api.readOnly) = true, (wix.api.field_exposure) = PRIVATE, (wix.api.maxLength) = 100];
110
110
  }
@@ -24,9 +24,13 @@ service CollectionReadApi {
24
24
  rpc QueryCollections (QueryCollectionsRequest) returns (QueryCollectionsResponse) {
25
25
  option (google.api.http) = {
26
26
  post: "/v2/collections/query"
27
+ additional_bindings {
28
+ // for api cache
29
+ get: "/v2/collections/query"
30
+ }
27
31
  };
28
32
  option (wix.api.exposure) = INTERNAL;
29
-
33
+ option (wix.api.cacheable) = {};
30
34
  option (.wix.api.crud) = {
31
35
  method: QUERY
32
36
  query_options: {
@@ -51,8 +55,18 @@ service CollectionReadApi {
51
55
  option (google.api.http) = {
52
56
  get: "/v2/collections/{id}"
53
57
  };
58
+ option (wix.api.cacheable) = {};
54
59
  option (wix.api.crud).method = GET_ITEM;
55
60
  }
61
+
62
+ // Retrieves a collection with the provided slug.
63
+ rpc GetCollectionBySlug (GetCollectionBySlugRequest) returns (GetCollectionBySlugResponse) {
64
+ option (google.api.http) = {
65
+ get: "/v2/collections/slug/{slug}"
66
+ };
67
+ option (wix.api.cacheable) = {};
68
+ option (wix.api.required) = "GetCollectionBySlugRequest.slug";
69
+ }
56
70
  }
57
71
 
58
72
  message QueryCollectionsRequest {
@@ -73,3 +87,13 @@ message GetCollectionRequest {
73
87
  message GetCollectionResponse {
74
88
  wix.catalog.api.v1.Collection collection = 1;
75
89
  }
90
+
91
+ message GetCollectionBySlugRequest {
92
+ // Slug of the collection to retrieve.
93
+ string slug = 1 [(wix.api.minLength) = 1, (wix.api.maxLength) = 100];
94
+ }
95
+
96
+ message GetCollectionBySlugResponse {
97
+ // The requested collection.
98
+ wix.catalog.api.v1.Collection collection = 1;
99
+ }
@@ -6,22 +6,23 @@ option java_multiple_files = true;
6
6
  option java_package = "com.wix.common";
7
7
 
8
8
  import "google/protobuf/wrappers.proto";
9
+ import "wix/api/annotations.proto";
9
10
  import "wix/api/errors.proto";
10
11
 
11
12
  message BulkActionMetadata {
12
13
  // Number of items that were successfully processed.
13
- uint32 total_successes = 1;
14
+ int32 total_successes = 1;
14
15
  // Number of items that couldn't be processed.
15
- uint32 total_failures = 2;
16
+ int32 total_failures = 2;
16
17
  // Number of failures without details because detailed failure threshold was exceeded.
17
- uint32 undetailed_failures = 3;
18
+ int32 undetailed_failures = 3;
18
19
  }
19
20
 
20
21
  message ItemMetadata {
21
22
  // Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
22
23
  google.protobuf.StringValue id = 1;
23
24
  // Index of the item within the request array. Allows for correlation between request and response items.
24
- uint32 original_index = 2;
25
+ int32 original_index = 2;
25
26
  // Whether the requested action was successful for this item. When `false`, the `error` field is populated.
26
27
  bool success = 3;
27
28
  // Details about the error in case of failure.
@@ -171,8 +171,8 @@ enum ScalarType {
171
171
  message Aggregation {
172
172
  message RangeAggregation {
173
173
  message RangeBucket {
174
- google.protobuf.Int32Value from = 1; // Inclusive lower bound of the range. Required if to is not given.
175
- google.protobuf.Int32Value to = 2; // Exclusive upper bound of the range. Required if from is not given.
174
+ google.protobuf.DoubleValue from = 1; // Inclusive lower bound of the range. Required if to is not given.
175
+ google.protobuf.DoubleValue to = 2; // Exclusive upper bound of the range. Required if from is not given.
176
176
  }
177
177
  repeated RangeBucket buckets = 1;
178
178
  }
@@ -186,15 +186,39 @@ message Aggregation {
186
186
  DESC = 0;
187
187
  ASC = 1;
188
188
  }
189
+
190
+ enum MissingValues {
191
+ EXCLUDE = 0;
192
+ INCLUDE = 1;
193
+ }
194
+
195
+ message IncludeMissingValuesOptions {
196
+ string add_to_bucket = 1; // can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
197
+ }
198
+
189
199
  SortType sort_type = 1;
190
200
  SortDirection sort_direction = 2;
191
201
  google.protobuf.Int32Value limit = 3; // How many aggregations would you like to return? Can be between 1 and 250. 10 is the default.
202
+
203
+ MissingValues missing_values = 4; // should missing values be included or excluded from the aggregation results. Default is EXCLUDE
204
+ oneof options {
205
+ option (.wix.api.aligned_with_enum).field = "missing_values";
206
+ IncludeMissingValuesOptions include_options = 5; // options for including missing values
207
+ }
192
208
  }
193
209
 
194
210
  message ScalarAggregation {
195
211
  ScalarType type = 1;
196
212
  }
197
213
 
214
+ message GroupByAggregation {
215
+ google.protobuf.StringValue name = 1;
216
+ string field_path = 3;
217
+ oneof kind {
218
+ ValueAggregation value = 4;
219
+ }
220
+ }
221
+
198
222
  google.protobuf.StringValue name = 1;
199
223
  AggregationType type = 2;
200
224
  string field_path = 3;
@@ -203,6 +227,7 @@ message Aggregation {
203
227
  RangeAggregation range = 5;
204
228
  ScalarAggregation scalar = 6;
205
229
  }
230
+ GroupByAggregation group_by = 7;
206
231
  }
207
232
 
208
233
  message AggregationData {
@@ -217,8 +242,8 @@ message AggregationData {
217
242
 
218
243
  message RangeResults {
219
244
  message RangeAggregationResult {
220
- google.protobuf.Int32Value from = 1;
221
- google.protobuf.Int32Value to = 2;
245
+ google.protobuf.DoubleValue from = 1;
246
+ google.protobuf.DoubleValue to = 2;
222
247
  int32 count = 3;
223
248
  }
224
249
  repeated RangeAggregationResult results = 1;
@@ -229,12 +254,34 @@ message AggregationData {
229
254
  double value = 2;
230
255
  }
231
256
 
257
+ message GroupByValueResults {
258
+ message NestedValueAggregationResult {
259
+ string value = 1;
260
+ NestedAggregationResults nested_results = 2;
261
+
262
+ }
263
+ repeated NestedValueAggregationResult results = 1;
264
+ }
265
+
266
+ message NestedAggregationResults {
267
+ string name = 1;
268
+ AggregationType type = 2;
269
+ string field_path = 6;
270
+ oneof result {
271
+ ValueResults values = 3;
272
+ RangeResults ranges = 4;
273
+ ScalarResult scalar = 5;
274
+ }
275
+ }
276
+
232
277
  string name = 1;
233
278
  AggregationType type = 2;
279
+ string field_path = 6;
234
280
  oneof result {
235
281
  ValueResults values = 3;
236
282
  RangeResults ranges = 4;
237
283
  ScalarResult scalar = 5;
284
+ GroupByValueResults grouped_by_value = 7;
238
285
  }
239
286
  }
240
287
 
@@ -414,4 +461,73 @@ message ProductSearchResponse {
414
461
  },
415
462
  products: [...]
416
463
  }
464
+
465
+ // example Group By Aggregation Request:
466
+ {
467
+ "filter" : {
468
+ "region" : "EU"
469
+ },
470
+ "aggregations" : [ {
471
+ "name" : "production countries",
472
+ "type" : "VALUE",
473
+ "fieldPath" : "production_countries",
474
+ "value" : {
475
+ "limit" : 5
476
+ },
477
+ "groupBy" : {
478
+ "name" : "production companies",
479
+ "fieldPath" : "production_companies",
480
+ "value" : { }
481
+ }
482
+ } ]
483
+ }
484
+
485
+ // example Group By Aggregation Response:
486
+ {
487
+ "aggregations" : {
488
+ "results" : [ {
489
+ "name" : "production companies",
490
+ "type" : "VALUE",
491
+ "fieldPath" : "production_companies",
492
+ "groupedByValue" : {
493
+ "results" : [ {
494
+ "value" : "Warner Bros.",
495
+ "nestedResults" : {
496
+ "name" : "production countries",
497
+ "type" : "VALUE",
498
+ "fieldPath" : "production_countries",
499
+ "values" : {
500
+ "results" : [ {
501
+ "value" : "GB",
502
+ "count" : 221
503
+ }, {
504
+ "value" : "PL",
505
+ "count" : 12
506
+ } ]
507
+ }
508
+ }
509
+ }, {
510
+ "value" : "Metro-Goldwyn-Mayer (MGM)",
511
+ "nestedResults" : {
512
+ "name" : "production countries",
513
+ "type" : "VALUE",
514
+ "fieldPath" : "production_countries",
515
+ "values" : {
516
+ "results" : [ {
517
+ "value" : "SWE",
518
+ "count" : 24
519
+ }, {
520
+ "value" : "FR",
521
+ "count" : 18
522
+ }, {
523
+ "value" : "LT",
524
+ "count" : 2
525
+ } ]
526
+ }
527
+ }
528
+ } ]
529
+ }
530
+ } ]
531
+ }
532
+ }
417
533
  */