@wix/auto_sdk_restaurants_menus 1.0.78 → 1.0.80

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 (37) hide show
  1. package/build/cjs/index.js +8 -10
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +37 -8
  4. package/build/cjs/index.typings.js +1 -3
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +36 -3
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/cjs/schemas.js +46 -46
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/index.mjs +8 -10
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +37 -8
  13. package/build/es/index.typings.mjs +1 -3
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.d.mts +36 -3
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/es/schemas.mjs +46 -46
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/index.js +8 -10
  20. package/build/internal/cjs/index.js.map +1 -1
  21. package/build/internal/cjs/index.typings.d.ts +37 -8
  22. package/build/internal/cjs/index.typings.js +1 -3
  23. package/build/internal/cjs/index.typings.js.map +1 -1
  24. package/build/internal/cjs/meta.d.ts +36 -3
  25. package/build/internal/cjs/meta.js.map +1 -1
  26. package/build/internal/cjs/schemas.js +46 -46
  27. package/build/internal/cjs/schemas.js.map +1 -1
  28. package/build/internal/es/index.mjs +8 -10
  29. package/build/internal/es/index.mjs.map +1 -1
  30. package/build/internal/es/index.typings.d.mts +37 -8
  31. package/build/internal/es/index.typings.mjs +1 -3
  32. package/build/internal/es/index.typings.mjs.map +1 -1
  33. package/build/internal/es/meta.d.mts +36 -3
  34. package/build/internal/es/meta.mjs.map +1 -1
  35. package/build/internal/es/schemas.mjs +46 -46
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -115,6 +115,20 @@ interface Tag {
115
115
  *
116
116
  *
117
117
  * Supported values: `title`, `meta`, `script`, `link`.
118
+ *
119
+ * Which of these an API actually accepts depends on where the tag is being set: this
120
+ * list is not a blanket guarantee across every API that reuses this message. Site SEO
121
+ * Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects
122
+ * `title`/`script`/`link` with a validation error even though they appear here —
123
+ * check the field description of the specific `tags`-typed field you're writing to
124
+ * for the types it actually supports and the error it returns.
125
+ *
126
+ * Limitation: `title` and `script` (e.g. a `script` tag with `props.type`
127
+ * `"application/ld+json"` carrying structured data) are supported only when
128
+ * `custom` is unset or `false`. Setting `custom: true` on a `title` or `script`
129
+ * tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the
130
+ * write through the site's Advanced/Custom Tags list. To write structured data,
131
+ * omit `custom` (or set it to `false`).
118
132
  */
119
133
  type?: string;
120
134
  /**
@@ -127,12 +141,31 @@ interface Tag {
127
141
  /** SEO tag inner content. For example, `<title> inner content </title>`. */
128
142
  children?: string;
129
143
  /**
130
- * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).
144
+ * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
145
+ * i.e. an entry from the site's Advanced/Custom Tags list.
146
+ *
147
+ * Setting this to `true` on a write restricts which `type` values are accepted
148
+ * — the same restriction the Advanced/Custom Tags UI enforces. `title` and
149
+ * `script` tags (including JSON-LD structured data) must be sent with `custom`
150
+ * omitted or `false`; sending them with `custom: true` is rejected with
151
+ * `TAG_TYPE_NOT_ALLOWED`.
152
+ *
153
+ * Note this is a separate restriction from Site SEO Tags' own type restriction on
154
+ * `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g.
155
+ * for site-wide structured data) unconditionally. There is currently no way to set
156
+ * site-wide, every-page structured data through any of these APIs — write a per-page
157
+ * `script` tag through the Item SEO Tags API instead.
158
+ *
159
+ * This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
160
+ * (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
161
+ * default/pattern — standard tags always resolve with `custom: false`, even when their content comes
162
+ * from a page's manually saved SEO title/description override. Don't use this field to verify whether
163
+ * a live page reflects a manual per-page SEO edit.
131
164
  *
132
165
  * Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
133
166
  * only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
134
- * or Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For
135
- * those pages `false` therefore does not mean "not a custom tag" — it means this API could not tell.
167
+ * or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
168
+ * response entirely — there, `false` means this API could not tell, not that no custom tag exists.
136
169
  * Pass `seoData` explicitly to resolve against a known set of tags.
137
170
  */
138
171
  custom?: boolean;
@@ -1222,11 +1255,7 @@ type MenuQuery = {
1222
1255
  }[];
1223
1256
  };
1224
1257
  declare const utils: {
1225
- query: {
1226
- QueryBuilder: () => _wix_sdk_types.QueryBuilder<Menu, MenuQuerySpec, MenuQuery>;
1227
- Filter: _wix_sdk_types.FilterFactory<Menu, MenuQuerySpec>;
1228
- Sort: _wix_sdk_types.SortFactory<MenuQuerySpec>;
1229
- };
1258
+ query: _wix_sdk_types.QueryHelpers<Menu, MenuQuerySpec, MenuQuery>;
1230
1259
  };
1231
1260
  /**
1232
1261
  * > **Note:** The Menu API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
@@ -876,9 +876,7 @@ async function typedQueryMenus(query) {
876
876
  }
877
877
  }
878
878
  var utils = {
879
- query: {
880
- ...createQueryUtils()
881
- }
879
+ query: /* @__PURE__ */ createQueryUtils()
882
880
  };
883
881
  async function updateMenu2(_id, menu) {
884
882
  const { httpClient, sideEffects } = arguments[2];