@wix/auto_sdk_events_forms 1.0.125 → 1.0.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +119 -44
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +119 -44
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +119 -44
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +119 -44
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +106 -50
- package/build/internal/cjs/meta.d.ts +106 -50
- package/build/internal/es/index.typings.d.mts +106 -50
- package/build/internal/es/meta.d.mts +106 -50
- package/package.json +4 -4
|
@@ -1133,6 +1133,12 @@ interface TicketingConfig {
|
|
|
1133
1133
|
* @max 30
|
|
1134
1134
|
*/
|
|
1135
1135
|
reservationDurationInMinutes?: number | null;
|
|
1136
|
+
/**
|
|
1137
|
+
* Additional fees charged per order, in display order. Updating with this field in the
|
|
1138
|
+
* field mask replaces the whole list; an empty list clears it.
|
|
1139
|
+
* @maxSize 3
|
|
1140
|
+
*/
|
|
1141
|
+
additionalFees?: AdditionalFeeConfig[];
|
|
1136
1142
|
}
|
|
1137
1143
|
interface TaxConfig {
|
|
1138
1144
|
/** Tax application settings. */
|
|
@@ -1198,10 +1204,18 @@ declare enum CheckoutType {
|
|
|
1198
1204
|
type CheckoutTypeWithLiterals = CheckoutType | 'EVENTS_APP' | 'ECOMM_PLATFORM';
|
|
1199
1205
|
/** Additional fee configured on an event. Position in `additional_fees` is the display order. */
|
|
1200
1206
|
interface AdditionalFeeConfig {
|
|
1207
|
+
/**
|
|
1208
|
+
* Fee name shown to buyers. Unique per event (case-insensitive).
|
|
1209
|
+
* @minLength 1
|
|
1210
|
+
* @maxLength 50
|
|
1211
|
+
*/
|
|
1212
|
+
name?: string;
|
|
1213
|
+
/** Fee calculation formula. */
|
|
1214
|
+
formula?: AdditionalFeeFormula;
|
|
1201
1215
|
}
|
|
1202
1216
|
/**
|
|
1203
1217
|
* Formula of an additional fee charged on top of ticket prices.
|
|
1204
|
-
* Amounts are as displayed: net of tax under
|
|
1218
|
+
* Amounts are as displayed: net of tax under ADDED_AT_CHECKOUT tax, gross under INCLUDED tax.
|
|
1205
1219
|
*/
|
|
1206
1220
|
interface AdditionalFeeFormula extends AdditionalFeeFormulaCalculationOneOf {
|
|
1207
1221
|
/**
|
|
@@ -1416,73 +1430,117 @@ interface SeoSettings {
|
|
|
1416
1430
|
hidden?: boolean | null;
|
|
1417
1431
|
}
|
|
1418
1432
|
/**
|
|
1419
|
-
* The SEO
|
|
1420
|
-
*
|
|
1421
|
-
*
|
|
1433
|
+
* The SEO data for a single page or dynamic item, in the shape stored today.
|
|
1434
|
+
*
|
|
1435
|
+
* FROZEN. Existing server code maps onto this message field by field, so its
|
|
1436
|
+
* field set must never change (see the file header). New writers use
|
|
1437
|
+
* `SeoSchemaV2`.
|
|
1438
|
+
*
|
|
1439
|
+
* These tags are rendered into the <head> of the HTML document and are not
|
|
1440
|
+
* visible on the page itself. They override every other source of tags
|
|
1441
|
+
* (site defaults, vertical presets, patterns) for this page.
|
|
1422
1442
|
*/
|
|
1423
1443
|
interface SeoSchema {
|
|
1424
|
-
/**
|
|
1444
|
+
/**
|
|
1445
|
+
* The tags rendered into <head>, in no particular order. Render order is
|
|
1446
|
+
* decided by the renderer, not by position in this list.
|
|
1447
|
+
*
|
|
1448
|
+
* No maxSize: this list is already populated by data written years ago, and
|
|
1449
|
+
* a bound added now could reject a page that is already stored.
|
|
1450
|
+
*/
|
|
1425
1451
|
tags?: Tag[];
|
|
1426
|
-
/** SEO
|
|
1452
|
+
/** Page-level SEO settings that are not themselves tags. */
|
|
1427
1453
|
settings?: Settings;
|
|
1428
1454
|
}
|
|
1455
|
+
/** A keyword term the user is targeting. */
|
|
1429
1456
|
interface Keyword {
|
|
1430
|
-
/**
|
|
1457
|
+
/**
|
|
1458
|
+
* The term itself, e.g. "trail running shoes".
|
|
1459
|
+
*
|
|
1460
|
+
* No maxLength, for the same reason as the legacy tag fields: keywords are
|
|
1461
|
+
* already stored, and a bound added now could reject a record written
|
|
1462
|
+
* before the bound existed. The flynt `missing-string-validations` warning
|
|
1463
|
+
* on this field is accepted deliberately.
|
|
1464
|
+
*/
|
|
1431
1465
|
term?: string;
|
|
1432
|
-
/** Whether
|
|
1466
|
+
/** Whether this is the page's primary focus keyword. At most one per page. */
|
|
1433
1467
|
isMain?: boolean;
|
|
1434
1468
|
/**
|
|
1435
|
-
*
|
|
1469
|
+
* Which surface added the term, e.g. a panel or a suggestion flow. Used for
|
|
1470
|
+
* attribution in BI. Opaque to the renderer.
|
|
1436
1471
|
* @maxLength 1000
|
|
1437
1472
|
*/
|
|
1438
1473
|
origin?: string | null;
|
|
1439
1474
|
}
|
|
1475
|
+
/**
|
|
1476
|
+
* One tag in the page's <head>.
|
|
1477
|
+
*
|
|
1478
|
+
* Not deprecated, and with no removal date, deliberately: stored data is
|
|
1479
|
+
* never migrated, so this shape stays valid input forever. `seo-renderer`
|
|
1480
|
+
* normalizes both shapes on READ.
|
|
1481
|
+
*/
|
|
1440
1482
|
interface Tag {
|
|
1441
1483
|
/**
|
|
1442
|
-
*
|
|
1443
|
-
*
|
|
1484
|
+
* Legacy. Was a free-form string: "title" | "meta" | "script" | "link".
|
|
1485
|
+
* The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes
|
|
1486
|
+
* the invalid combinations unrepresentable rather than merely discouraged.
|
|
1444
1487
|
*
|
|
1445
|
-
*
|
|
1446
|
-
*
|
|
1447
|
-
*
|
|
1448
|
-
*
|
|
1449
|
-
*
|
|
1450
|
-
* `
|
|
1451
|
-
* check the field description of the specific `tags`-typed field you're writing to
|
|
1452
|
-
* for the types it actually supports and the error it returns.
|
|
1488
|
+
* Which of these an API actually accepts depends on where the tag is being
|
|
1489
|
+
* set: this list is not a blanket guarantee across every API that reuses
|
|
1490
|
+
* this message. Site SEO Tags in particular accepts only `meta` (see
|
|
1491
|
+
* `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation
|
|
1492
|
+
* error even though they appear here — check the field description of the
|
|
1493
|
+
* specific `tags`-typed field you are writing to.
|
|
1453
1494
|
*
|
|
1454
1495
|
* Limitation: `title` and `script` (e.g. a `script` tag with `props.type`
|
|
1455
|
-
*
|
|
1456
|
-
* `custom` is unset or `false`. Setting `custom: true` on a `title` or
|
|
1457
|
-
* tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because
|
|
1458
|
-
* write through the site's Advanced/Custom Tags
|
|
1459
|
-
* omit `custom` (or set it to `false`).
|
|
1496
|
+
* "application/ld+json" carrying structured data) are supported only when
|
|
1497
|
+
* `custom` is unset or `false`. Setting `custom: true` on a `title` or
|
|
1498
|
+
* `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because
|
|
1499
|
+
* `custom: true` routes the write through the site's Advanced/Custom Tags
|
|
1500
|
+
* list. To write structured data, omit `custom` (or set it to `false`).
|
|
1501
|
+
*
|
|
1502
|
+
* No length limit: this field holds data written years ago by writers we
|
|
1503
|
+
* are not migrating. A constraint here could reject a record that is
|
|
1504
|
+
* already stored, which is exactly the promise this design makes.
|
|
1460
1505
|
*/
|
|
1461
1506
|
type?: string;
|
|
1462
1507
|
/**
|
|
1463
|
-
*
|
|
1464
|
-
*
|
|
1508
|
+
* Legacy. Was an untyped bag of HTML attributes.
|
|
1509
|
+
* Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.
|
|
1465
1510
|
*/
|
|
1466
1511
|
props?: Record<string, any> | null;
|
|
1467
|
-
/**
|
|
1512
|
+
/**
|
|
1513
|
+
* Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2`
|
|
1514
|
+
* its contents are split by purpose: per-page structured-data state moves to
|
|
1515
|
+
* StructuredDataTag, authorship to `written_by`, and render-time preset
|
|
1516
|
+
* logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the
|
|
1517
|
+
* stored document entirely — it belongs to the preset definition, not to the
|
|
1518
|
+
* page. See the design log for the full key-by-key mapping.
|
|
1519
|
+
*/
|
|
1468
1520
|
meta?: Record<string, any> | null;
|
|
1469
|
-
/**
|
|
1521
|
+
/**
|
|
1522
|
+
* Legacy. Was the tag's inner content, doubling as the JSON-LD payload
|
|
1523
|
+
* for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and
|
|
1524
|
+
* `StructuredDataTag.json_ld`.
|
|
1525
|
+
* No length limit, for the same reason as `type` above.
|
|
1526
|
+
*/
|
|
1470
1527
|
children?: string;
|
|
1471
1528
|
/**
|
|
1472
1529
|
* Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
|
|
1473
1530
|
* i.e. an entry from the site's Advanced/Custom Tags list.
|
|
1474
1531
|
*
|
|
1475
|
-
* Setting this to `true` on a write restricts which `type` values are
|
|
1476
|
-
* — the same restriction the Advanced/Custom Tags UI enforces.
|
|
1477
|
-
* `script` tags (including JSON-LD structured data) must be sent
|
|
1478
|
-
* omitted or `false`; sending them with `custom: true` is
|
|
1479
|
-
* `TAG_TYPE_NOT_ALLOWED`.
|
|
1532
|
+
* Setting this to `true` on a write restricts which `type` values are
|
|
1533
|
+
* accepted — the same restriction the Advanced/Custom Tags UI enforces.
|
|
1534
|
+
* `title` and `script` tags (including JSON-LD structured data) must be sent
|
|
1535
|
+
* with `custom` omitted or `false`; sending them with `custom: true` is
|
|
1536
|
+
* rejected with `TAG_TYPE_NOT_ALLOWED`.
|
|
1480
1537
|
*
|
|
1481
|
-
* Note this is a separate restriction from Site SEO Tags' own type
|
|
1482
|
-
* `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags
|
|
1483
|
-
* for site-wide structured data) unconditionally.
|
|
1484
|
-
* site-wide, every-page structured data
|
|
1485
|
-
* `script` tag through the Item
|
|
1538
|
+
* Note this is a separate restriction from Site SEO Tags' own type
|
|
1539
|
+
* restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags
|
|
1540
|
+
* rejects `script` (e.g. for site-wide structured data) unconditionally.
|
|
1541
|
+
* There is currently no way to set site-wide, every-page structured data
|
|
1542
|
+
* through any of these APIs — write a per-page `script` tag through the Item
|
|
1543
|
+
* SEO Tags API instead.
|
|
1486
1544
|
*
|
|
1487
1545
|
* This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
|
|
1488
1546
|
* (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
|
|
@@ -1495,22 +1553,39 @@ interface Tag {
|
|
|
1495
1553
|
* or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
|
|
1496
1554
|
* response entirely — there, `false` means this API could not tell, not that no custom tag exists.
|
|
1497
1555
|
* Pass `seoData` explicitly to resolve against a known set of tags.
|
|
1556
|
+
*
|
|
1557
|
+
* `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.
|
|
1498
1558
|
*/
|
|
1499
1559
|
custom?: boolean;
|
|
1500
|
-
/**
|
|
1560
|
+
/**
|
|
1561
|
+
* Whether the tag is excluded from the rendered <head>.
|
|
1562
|
+
*
|
|
1563
|
+
* A disabled tag is still stored, so the user can re-enable it and so a
|
|
1564
|
+
* pattern-provided tag stays suppressed on this page. Default false.
|
|
1565
|
+
*/
|
|
1501
1566
|
disabled?: boolean;
|
|
1502
1567
|
}
|
|
1568
|
+
/** Page-level SEO settings that are not tags. */
|
|
1503
1569
|
interface Settings {
|
|
1504
1570
|
/**
|
|
1505
|
-
* Whether the
|
|
1571
|
+
* Whether to suppress the automatic redirect from this page's previous URL to
|
|
1572
|
+
* its current one after a slug change.
|
|
1506
1573
|
*
|
|
1507
|
-
*
|
|
1508
|
-
*
|
|
1574
|
+
* Default false, meaning the redirect IS created. The field is named for the
|
|
1575
|
+
* exception rather than the rule, which reads backwards; kept as-is because
|
|
1576
|
+
* renaming a stored boolean is not worth the migration.
|
|
1509
1577
|
*/
|
|
1510
1578
|
preventAutoRedirect?: boolean;
|
|
1511
1579
|
/**
|
|
1512
|
-
*
|
|
1513
|
-
*
|
|
1580
|
+
* Keyword terms the user is targeting for this page. Used by the SEO
|
|
1581
|
+
* assistant and checklist; never rendered into <head>.
|
|
1582
|
+
*
|
|
1583
|
+
* 20 is a sanity bound, not the product limit. v1 declared 5 — the number
|
|
1584
|
+
* the panel happens to allow today — which is exactly the mistake we are
|
|
1585
|
+
* fixing for structured data. A product decision to allow 8 should not need
|
|
1586
|
+
* a proto release, so the panel owns that number and the proto only stops
|
|
1587
|
+
* something absurd.
|
|
1588
|
+
* @maxSize 20
|
|
1514
1589
|
*/
|
|
1515
1590
|
keywords?: Keyword[];
|
|
1516
1591
|
}
|