@wix/auto_sdk_seo_seo-patterns 1.0.0 → 1.0.1

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 (45) hide show
  1. package/build/cjs/index.d.ts +18 -36
  2. package/build/cjs/index.js +3 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +89 -127
  5. package/build/cjs/index.typings.js +3 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +67 -59
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +0 -3
  10. package/build/cjs/schemas.js +40 -51
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.d.mts +18 -36
  13. package/build/es/index.mjs +3 -15
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +89 -127
  16. package/build/es/index.typings.mjs +3 -15
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +67 -59
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/schemas.d.mts +0 -3
  21. package/build/es/schemas.mjs +40 -51
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.d.ts +18 -36
  24. package/build/internal/cjs/index.js +3 -15
  25. package/build/internal/cjs/index.js.map +1 -1
  26. package/build/internal/cjs/index.typings.d.ts +98 -112
  27. package/build/internal/cjs/index.typings.js +3 -15
  28. package/build/internal/cjs/index.typings.js.map +1 -1
  29. package/build/internal/cjs/meta.d.ts +76 -44
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/cjs/schemas.d.ts +0 -3
  32. package/build/internal/cjs/schemas.js +40 -51
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.d.mts +18 -36
  35. package/build/internal/es/index.mjs +3 -15
  36. package/build/internal/es/index.mjs.map +1 -1
  37. package/build/internal/es/index.typings.d.mts +98 -112
  38. package/build/internal/es/index.typings.mjs +3 -15
  39. package/build/internal/es/index.typings.mjs.map +1 -1
  40. package/build/internal/es/meta.d.mts +76 -44
  41. package/build/internal/es/meta.mjs.map +1 -1
  42. package/build/internal/es/schemas.d.mts +0 -3
  43. package/build/internal/es/schemas.mjs +40 -51
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. package/package.json +2 -2
@@ -4,7 +4,7 @@ import { NonNullablePaths } from '@wix/sdk-types';
4
4
  * An SEO pattern is a template of SEO tags defined for one page type, such as every blog
5
5
  * post or every store product. A pattern's tags may contain variables, written as
6
6
  * `{{variable}}`, that are filled in with each item's own values when its page renders,
7
- * so a site owner sets the tags for a whole page type once instead of item by item.
7
+ * so a Wix user sets the tags for a whole page type once instead of item by item.
8
8
  *
9
9
  * Every page type always has a pattern in effect. When a site has no pattern of its own
10
10
  * for a page type, the built-in Wix default applies, and `source` reports which of the
@@ -26,14 +26,6 @@ interface SeoPattern {
26
26
  /**
27
27
  * Page type the pattern applies to. For example, `STATIC_PAGE`, `BLOG_POST`, or
28
28
  * `STORES_PRODUCT`.
29
- *
30
- * Calling with a page type Wix doesn't recognize fails with `UNSUPPORTED_PAGE_TYPE`,
31
- * and the error lists the page types that are supported. For a page type provided by a
32
- * Wix app, such as `BLOG_POST`, the app must be installed on the site.
33
- *
34
- * Page types aren't the same set as the item types of the Item SEO Tags API: a page
35
- * type can support a pattern without supporting tags set per item, and the other way
36
- * round.
37
29
  * @maxLength 100
38
30
  * @readonly
39
31
  */
@@ -42,9 +34,7 @@ interface SeoPattern {
42
34
  * ID of a single page built from a Wix Data collection, when the pattern applies to
43
35
  * that page alone rather than to the whole page type.
44
36
  *
45
- * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one
46
- * pattern for the type, and passing a page ID for one of those fails with
47
- * `PAGE_ID_NOT_SUPPORTED`.
37
+ * Supported only for the `WIX_DATA_PAGE_ITEM` page type.
48
38
  * @maxLength 200
49
39
  */
50
40
  pageId?: string | null;
@@ -53,16 +43,14 @@ interface SeoPattern {
53
43
  * default.
54
44
  *
55
45
  * Empty when the site has no pattern of its own, in which case `defaultPattern`
56
- * applies. Setting this field replaces the pattern in full, so send the complete set of
57
- * tag templates you want the page type to have.
46
+ * applies.
58
47
  */
59
48
  pattern?: SeoPatternBlob;
60
49
  /**
61
50
  * The pattern Wix provides for the page type, which applies whenever the site has no
62
51
  * pattern of its own.
63
52
  *
64
- * Always returned, so you can compare a customized pattern with the one it started
65
- * from, and see what a reset would restore.
53
+ * Always returned, so you can see what a reset would restore.
66
54
  * @readonly
67
55
  */
68
56
  defaultPattern?: SeoPatternBlob;
@@ -81,12 +69,13 @@ interface SeoPattern {
81
69
  */
82
70
  language?: string | null;
83
71
  /**
84
- * What made the most recent change to the pattern, for example a user or the site
72
+ * What made the most recent change to the pattern, for example a Wix user or the site
85
73
  * migration flow. Derived from the caller, not from the request.
86
74
  *
87
- * `ORIGIN_UNSPECIFIED` when the caller isn't one Wix identifies as a specific origin.
88
- * Origin isn't stored with the pattern either, so Get SEO Pattern and List SEO Patterns
89
- * always return `ORIGIN_UNSPECIFIED`.
75
+ * Reported only on the response to a write, and on the event the write emits. It isn't
76
+ * stored with the pattern, so Get SEO Pattern and List SEO Patterns always report
77
+ * `ORIGIN_UNSPECIFIED`, as does a write by a caller Wix doesn't identify as a specific
78
+ * origin.
90
79
  * @readonly
91
80
  */
92
81
  origin?: OriginWithLiterals;
@@ -102,10 +91,13 @@ interface SeoPatternBlob {
102
91
  /**
103
92
  * The pattern's SEO tag templates.
104
93
  *
105
- * A tag may reference only the variables the page type offers. Call List SEO Pattern
106
- * Variables for the page type to retrieve them.
94
+ * A tag may reference only the variables the page type offers. Call [List SEO Pattern
95
+ * Variables](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/list-seo-pattern-variables)
96
+ * for the page type to retrieve them.
107
97
  *
108
- * Max: 100 tags
98
+ * A tag whose `disabled` or `custom` value is itself a variable is returned with that
99
+ * value unset, because those fields are booleans. The behavior still applies when the
100
+ * page renders.
109
101
  * @maxSize 100
110
102
  */
111
103
  tags?: Tag[];
@@ -176,19 +168,10 @@ interface GetSeoPatternRequest {
176
168
  * ID of a single page built from a Wix Data collection, to retrieve the pattern of that
177
169
  * page alone.
178
170
  *
179
- * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one
180
- * pattern for the type, and passing a page ID for one of those fails with
181
- * `PAGE_ID_NOT_SUPPORTED`.
171
+ * Supported only for the `WIX_DATA_PAGE_ITEM` page type.
182
172
  * @maxLength 200
183
173
  */
184
174
  pageId?: string | null;
185
- /**
186
- * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.
187
- *
188
- * To address a single page built from a Wix Data collection, pass its `pageId`.
189
- * @maxLength 200
190
- */
191
- collectionName?: string | null;
192
175
  }
193
176
  interface GetSeoPatternResponse {
194
177
  /**
@@ -221,6 +204,9 @@ interface ListSeoPatternVariablesResponse {
221
204
  /**
222
205
  * Variables a pattern for this page type may use in its tags. For example,
223
206
  * `{{product.name}}` in a title template.
207
+ *
208
+ * A variable can appear more than once, with different `userVisible` values, when both
209
+ * the site and the page type offer it. Either entry can be used in a pattern.
224
210
  * @maxSize 500
225
211
  */
226
212
  variables?: SeoPatternVariable[];
@@ -244,17 +230,18 @@ interface SeoPatternVariable {
244
230
  */
245
231
  key?: string;
246
232
  /**
247
- * Whether Wix offers this variable to site owners editing the pattern in the dashboard.
233
+ * Whether the variable appears in the list shown to Wix users editing the pattern in the
234
+ * dashboard.
248
235
  *
249
- * `false` doesn't prevent a pattern from using the variable. It marks a variable Wix
250
- * keeps out of the dashboard's list, typically because it's only meaningful in specific
236
+ * `false` doesn't prevent a pattern from using the variable. It marks a variable that's
237
+ * kept out of the dashboard's list, typically because it's only meaningful in certain
251
238
  * cases.
252
239
  */
253
240
  userVisible?: boolean;
254
241
  }
255
242
  interface CreateSeoPatternRequest {
256
243
  /**
257
- * Page type whose pattern to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
244
+ * Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
258
245
  * `STORES_PRODUCT`.
259
246
  * @maxLength 100
260
247
  */
@@ -293,24 +280,14 @@ interface SetSeoPatternRequest {
293
280
  /**
294
281
  * Fields to update.
295
282
  *
296
- * Required, and must name only writable fields. An empty field mask, an unknown field,
297
- * or a read-only field fails with `INVALID_FIELD_MASK`.
283
+ * Supported properties: `pattern`
298
284
  */
299
285
  fieldMask: string[];
300
- /**
301
- * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.
302
- *
303
- * To address a single page built from a Wix Data collection, pass its `pageId`.
304
- * @maxLength 200
305
- */
306
- collectionName?: string | null;
307
286
  /**
308
287
  * ID of a single page built from a Wix Data collection, to change the pattern of that
309
288
  * page alone.
310
289
  *
311
- * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one
312
- * pattern for the type, and passing a page ID for one of those fails with
313
- * `PAGE_ID_NOT_SUPPORTED`.
290
+ * Supported only for the `WIX_DATA_PAGE_ITEM` page type.
314
291
  * @maxLength 200
315
292
  */
316
293
  pageId?: string | null;
@@ -326,20 +303,11 @@ interface ResetSeoPatternToDefaultRequest {
326
303
  * @maxLength 100
327
304
  */
328
305
  pageType: string;
329
- /**
330
- * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.
331
- *
332
- * To address a single page built from a Wix Data collection, pass its `pageId`.
333
- * @maxLength 200
334
- */
335
- collectionName?: string | null;
336
306
  /**
337
307
  * ID of a single page built from a Wix Data collection, to reset the pattern of that
338
308
  * page alone.
339
309
  *
340
- * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one
341
- * pattern for the type, and passing a page ID for one of those fails with
342
- * `PAGE_ID_NOT_SUPPORTED`.
310
+ * Supported only for the `WIX_DATA_PAGE_ITEM` page type.
343
311
  * @maxLength 200
344
312
  */
345
313
  pageId?: string | null;
@@ -509,12 +477,28 @@ type GetSeoPatternApplicationErrors = {
509
477
  code?: 'UNSUPPORTED_PAGE_TYPE';
510
478
  description?: string;
511
479
  data?: Record<string, any>;
480
+ } | {
481
+ code?: 'PAGE_TYPE_NOT_ON_SITE';
482
+ description?: string;
483
+ data?: Record<string, any>;
484
+ } | {
485
+ code?: 'PAGE_ID_NOT_SUPPORTED';
486
+ description?: string;
487
+ data?: Record<string, any>;
488
+ } | {
489
+ code?: 'COLLECTION_NAME_NOT_SUPPORTED';
490
+ description?: string;
491
+ data?: Record<string, any>;
512
492
  };
513
493
  /** @docsIgnore */
514
494
  type ListSeoPatternVariablesApplicationErrors = {
515
495
  code?: 'UNSUPPORTED_PAGE_TYPE';
516
496
  description?: string;
517
497
  data?: Record<string, any>;
498
+ } | {
499
+ code?: 'PAGE_TYPE_NOT_ON_SITE';
500
+ description?: string;
501
+ data?: Record<string, any>;
518
502
  };
519
503
  /** @docsIgnore */
520
504
  type CreateSeoPatternApplicationErrors = {
@@ -529,6 +513,14 @@ type CreateSeoPatternApplicationErrors = {
529
513
  code?: 'PATTERN_ALREADY_EXISTS';
530
514
  description?: string;
531
515
  data?: Record<string, any>;
516
+ } | {
517
+ code?: 'PAGE_TYPE_NOT_ON_SITE';
518
+ description?: string;
519
+ data?: Record<string, any>;
520
+ } | {
521
+ code?: 'PAGE_ID_NOT_SUPPORTED';
522
+ description?: string;
523
+ data?: Record<string, any>;
532
524
  };
533
525
  /** @docsIgnore */
534
526
  type SetSeoPatternApplicationErrors = {
@@ -547,6 +539,14 @@ type SetSeoPatternApplicationErrors = {
547
539
  code?: 'PATTERN_NOT_FOUND';
548
540
  description?: string;
549
541
  data?: Record<string, any>;
542
+ } | {
543
+ code?: 'PAGE_ID_NOT_SUPPORTED';
544
+ description?: string;
545
+ data?: Record<string, any>;
546
+ } | {
547
+ code?: 'COLLECTION_NAME_NOT_SUPPORTED';
548
+ description?: string;
549
+ data?: Record<string, any>;
550
550
  };
551
551
  /** @docsIgnore */
552
552
  type ResetSeoPatternToDefaultApplicationErrors = {
@@ -557,16 +557,21 @@ type ResetSeoPatternToDefaultApplicationErrors = {
557
557
  code?: 'PATTERN_NOT_FOUND';
558
558
  description?: string;
559
559
  data?: Record<string, any>;
560
+ } | {
561
+ code?: 'PAGE_ID_NOT_SUPPORTED';
562
+ description?: string;
563
+ data?: Record<string, any>;
564
+ } | {
565
+ code?: 'COLLECTION_NAME_NOT_SUPPORTED';
566
+ description?: string;
567
+ data?: Record<string, any>;
560
568
  };
561
569
  /**
562
570
  * Retrieves the SEO pattern in effect for a page type.
563
571
  *
564
- * The response contains both the site's own pattern, which is empty when the site has
565
- * none, and the Wix default, with `source` reporting which of the two is in effect. A
566
- * page type with no pattern of its own isn't an error.
567
- *
568
- * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't
569
- * installed on the site.
572
+ * The response contains the site's own pattern in `pattern`, and the pattern Wix
573
+ * provides in `defaultPattern`. `source` reports which of the two is in effect.
574
+ * `pattern` is empty when the site has no pattern of its own.
570
575
  * @param pageType - Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
571
576
  * `STORES_PRODUCT`.
572
577
  * @public
@@ -585,30 +590,17 @@ interface GetSeoPatternOptions {
585
590
  * ID of a single page built from a Wix Data collection, to retrieve the pattern of that
586
591
  * page alone.
587
592
  *
588
- * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one
589
- * pattern for the type, and passing a page ID for one of those fails with
590
- * `PAGE_ID_NOT_SUPPORTED`.
593
+ * Supported only for the `WIX_DATA_PAGE_ITEM` page type.
591
594
  * @maxLength 200
592
595
  */
593
596
  pageId?: string | null;
594
- /**
595
- * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.
596
- *
597
- * To address a single page built from a Wix Data collection, pass its `pageId`.
598
- * @maxLength 200
599
- */
600
- collectionName?: string | null;
601
597
  }
602
598
  /**
603
599
  * Retrieves the patterns stored for a site, one per page type.
604
600
  *
605
- * Only page types that have had a pattern stored are returned, so this isn't an
606
- * inventory of a site's page types: a page type still on its Wix default is absent.
607
- * A page type that was reset to its default remains in the list, with an empty
608
- * `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.
609
- *
610
- * The response isn't paged. A site has a bounded number of page types, and all of them
611
- * are returned in one call.
601
+ * Only returns page types that have had a pattern of the site's own stored, so a page
602
+ * type that has never had one is absent. A page type that was reset to its default remains in the
603
+ * list, with an empty `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.
612
604
  * @public
613
605
  * @documentationMaturity preview
614
606
  * @permissionId wix-seo.read
@@ -620,15 +612,11 @@ declare function listSeoPatterns(): Promise<NonNullablePaths<ListSeoPatternsResp
620
612
  /**
621
613
  * Retrieves the variables a pattern for a page type may reference.
622
614
  *
623
- * A pattern may reference only the variables its page type offers, so call this method
624
- * before writing a pattern. A pattern referencing any other variable is rejected with
625
- * `INVALID_PATTERN`.
615
+ * Call this method to retrieve the valid variables for a page type before writing a
616
+ * pattern.
626
617
  *
627
618
  * Variables for the page's own tags and variables for its structured data are returned
628
619
  * in separate fields, and a pattern may use either.
629
- *
630
- * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't
631
- * installed on the site.
632
620
  * @param pageType - Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
633
621
  * `STORES_PRODUCT`.
634
622
  * @public
@@ -645,16 +633,12 @@ declare function listSeoPatternVariables(pageType: string): Promise<NonNullableP
645
633
  /**
646
634
  * Creates a pattern for a page type that's still on its Wix default.
647
635
  *
648
- * The pattern must contain at least one tag. An empty pattern is stored and read back
649
- * as no pattern at all, so it's rejected rather than saved as a pattern that does
650
- * nothing. To leave a page type on its Wix default, create nothing for it.
651
- *
652
- * To change a pattern that already exists, call Set SEO Pattern. Creating a second
653
- * pattern for the same page type fails with `PATTERN_ALREADY_EXISTS`.
636
+ * The pattern must contain at least one tag. To leave a page type on its Wix default,
637
+ * create nothing for it.
654
638
  *
655
- * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't
656
- * installed on the site.
657
- * @param pageType - Page type whose pattern to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
639
+ * To change a pattern that already exists, call [Set SEO
640
+ * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/set-seo-pattern).
641
+ * @param pageType - Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
658
642
  * `STORES_PRODUCT`.
659
643
  * @param seoPattern - Pattern to create for the page type.
660
644
  *
@@ -681,9 +665,10 @@ declare function createSeoPattern(pageType: string, seoPattern: SeoPattern): Pro
681
665
  * pattern first and send back the complete set you want it to have. Sending an empty
682
666
  * pattern clears it, which returns the page type to its Wix default.
683
667
  *
684
- * This method changes a pattern that already exists rather than creating one, so a page
685
- * type still on its Wix default fails with `PATTERN_NOT_FOUND`. Call Create SEO Pattern
686
- * for it instead.
668
+ * This method changes a pattern that already exists rather than creating one. For a page
669
+ * type still on its Wix default, call [Create SEO
670
+ * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/create-seo-pattern)
671
+ * instead.
687
672
  *
688
673
  * A pattern has no revision, and the site's SEO settings in the dashboard write to the
689
674
  * same pattern. The last write wins, so retrieve the pattern immediately before writing
@@ -711,24 +696,14 @@ interface SetSeoPatternOptions {
711
696
  /**
712
697
  * Fields to update.
713
698
  *
714
- * Required, and must name only writable fields. An empty field mask, an unknown field,
715
- * or a read-only field fails with `INVALID_FIELD_MASK`.
699
+ * Supported properties: `pattern`
716
700
  */
717
701
  fieldMask: string[];
718
- /**
719
- * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.
720
- *
721
- * To address a single page built from a Wix Data collection, pass its `pageId`.
722
- * @maxLength 200
723
- */
724
- collectionName?: string | null;
725
702
  /**
726
703
  * ID of a single page built from a Wix Data collection, to change the pattern of that
727
704
  * page alone.
728
705
  *
729
- * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one
730
- * pattern for the type, and passing a page ID for one of those fails with
731
- * `PAGE_ID_NOT_SUPPORTED`.
706
+ * Supported only for the `WIX_DATA_PAGE_ITEM` page type.
732
707
  * @maxLength 200
733
708
  */
734
709
  pageId?: string | null;
@@ -737,11 +712,7 @@ interface SetSeoPatternOptions {
737
712
  * Removes the pattern a site has for a page type, so the Wix default applies again.
738
713
  *
739
714
  * The response reports the page type after the reset, with an empty `pattern` and
740
- * `source` of `PATTERN_SOURCE_DEFAULT`. The page type remains in the response of List
741
- * SEO Patterns, with the same empty pattern.
742
- *
743
- * Fails with `PATTERN_NOT_FOUND` if the page type is already on its Wix default, so
744
- * there's nothing to reset.
715
+ * `source` of `PATTERN_SOURCE_DEFAULT`.
745
716
  * @param pageType - Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
746
717
  * `STORES_PRODUCT`.
747
718
  * @public
@@ -755,20 +726,11 @@ declare function resetSeoPatternToDefault(pageType: string, options?: ResetSeoPa
755
726
  __applicationErrorsType?: ResetSeoPatternToDefaultApplicationErrors;
756
727
  }>;
757
728
  interface ResetSeoPatternToDefaultOptions {
758
- /**
759
- * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.
760
- *
761
- * To address a single page built from a Wix Data collection, pass its `pageId`.
762
- * @maxLength 200
763
- */
764
- collectionName?: string | null;
765
729
  /**
766
730
  * ID of a single page built from a Wix Data collection, to reset the pattern of that
767
731
  * page alone.
768
732
  *
769
- * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one
770
- * pattern for the type, and passing a page ID for one of those fails with
771
- * `PAGE_ID_NOT_SUPPORTED`.
733
+ * Supported only for the `WIX_DATA_PAGE_ITEM` page type.
772
734
  * @maxLength 200
773
735
  */
774
736
  pageId?: string | null;
@@ -187,8 +187,7 @@ async function getSeoPattern2(pageType, options) {
187
187
  const { httpClient, sideEffects } = arguments[2];
188
188
  const payload = renameKeysFromSDKRequestToRESTRequest({
189
189
  pageType,
190
- pageId: options?.pageId,
191
- collectionName: options?.collectionName
190
+ pageId: options?.pageId
192
191
  });
193
192
  const reqOpts = getSeoPattern(payload);
194
193
  sideEffects?.onSiteCall?.();
@@ -201,11 +200,7 @@ async function getSeoPattern2(pageType, options) {
201
200
  err,
202
201
  {
203
202
  spreadPathsToArguments: {},
204
- explicitPathsToArguments: {
205
- pageType: "$[0]",
206
- pageId: "$[1].pageId",
207
- collectionName: "$[1].collectionName"
208
- },
203
+ explicitPathsToArguments: { pageType: "$[0]", pageId: "$[1].pageId" },
209
204
  singleArgumentUnchanged: false
210
205
  },
211
206
  ["pageType", "options"]
@@ -292,7 +287,6 @@ async function setSeoPattern2(pageType, seoPattern, options) {
292
287
  pageType,
293
288
  seoPattern,
294
289
  fieldMask: options?.fieldMask,
295
- collectionName: options?.collectionName,
296
290
  pageId: options?.pageId
297
291
  });
298
292
  const reqOpts = setSeoPattern(payload);
@@ -310,7 +304,6 @@ async function setSeoPattern2(pageType, seoPattern, options) {
310
304
  pageType: "$[0]",
311
305
  seoPattern: "$[1]",
312
306
  fieldMask: "$[2].fieldMask",
313
- collectionName: "$[2].collectionName",
314
307
  pageId: "$[2].pageId"
315
308
  },
316
309
  singleArgumentUnchanged: false
@@ -325,7 +318,6 @@ async function resetSeoPatternToDefault2(pageType, options) {
325
318
  const { httpClient, sideEffects } = arguments[2];
326
319
  const payload = renameKeysFromSDKRequestToRESTRequest({
327
320
  pageType,
328
- collectionName: options?.collectionName,
329
321
  pageId: options?.pageId
330
322
  });
331
323
  const reqOpts = resetSeoPatternToDefault(payload);
@@ -339,11 +331,7 @@ async function resetSeoPatternToDefault2(pageType, options) {
339
331
  err,
340
332
  {
341
333
  spreadPathsToArguments: {},
342
- explicitPathsToArguments: {
343
- pageType: "$[0]",
344
- collectionName: "$[1].collectionName",
345
- pageId: "$[1].pageId"
346
- },
334
+ explicitPathsToArguments: { pageType: "$[0]", pageId: "$[1].pageId" },
347
335
  singleArgumentUnchanged: false
348
336
  },
349
337
  ["pageType", "options"]