@wix/auto_sdk_seo_seo-patterns 1.0.8 → 1.0.10

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 (44) hide show
  1. package/build/cjs/index.d.ts +44 -16
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +87 -28
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +43 -12
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/es/index.d.mts +44 -16
  8. package/build/es/index.mjs.map +1 -1
  9. package/build/es/index.typings.d.mts +87 -28
  10. package/build/es/index.typings.mjs.map +1 -1
  11. package/build/es/meta.d.mts +43 -12
  12. package/build/es/meta.mjs.map +1 -1
  13. package/build/internal/cjs/index.d.ts +44 -16
  14. package/build/internal/cjs/index.typings.d.ts +87 -28
  15. package/build/internal/cjs/meta.d.ts +43 -12
  16. package/build/internal/es/index.d.mts +44 -16
  17. package/build/internal/es/index.typings.d.mts +87 -28
  18. package/build/internal/es/meta.d.mts +43 -12
  19. package/package.json +4 -11
  20. package/build/cjs/schemas.d.ts +0 -309
  21. package/build/cjs/schemas.js +0 -708
  22. package/build/cjs/schemas.js.map +0 -1
  23. package/build/es/schemas.d.mts +0 -309
  24. package/build/es/schemas.mjs +0 -660
  25. package/build/es/schemas.mjs.map +0 -1
  26. package/build/internal/cjs/index.js +0 -495
  27. package/build/internal/cjs/index.js.map +0 -1
  28. package/build/internal/cjs/index.typings.js +0 -438
  29. package/build/internal/cjs/index.typings.js.map +0 -1
  30. package/build/internal/cjs/meta.js +0 -387
  31. package/build/internal/cjs/meta.js.map +0 -1
  32. package/build/internal/cjs/schemas.d.ts +0 -309
  33. package/build/internal/cjs/schemas.js +0 -708
  34. package/build/internal/cjs/schemas.js.map +0 -1
  35. package/build/internal/es/index.mjs +0 -463
  36. package/build/internal/es/index.mjs.map +0 -1
  37. package/build/internal/es/index.typings.mjs +0 -406
  38. package/build/internal/es/index.typings.mjs.map +0 -1
  39. package/build/internal/es/meta.mjs +0 -352
  40. package/build/internal/es/meta.mjs.map +0 -1
  41. package/build/internal/es/schemas.d.mts +0 -309
  42. package/build/internal/es/schemas.mjs +0 -660
  43. package/build/internal/es/schemas.mjs.map +0 -1
  44. package/schemas/package.json +0 -3
@@ -25,8 +25,11 @@ interface SeoPattern {
25
25
  */
26
26
  id?: string | null;
27
27
  /**
28
- * Page type the pattern applies to. For example, `STATIC_PAGE`, `BLOG_POST`, or
29
- * `STORES_PRODUCT`.
28
+ * Page type the pattern applies to. A known page type name, such as
29
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
30
+ *
31
+ * See the list of [common page
32
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
30
33
  * @maxLength 100
31
34
  * @readonly
32
35
  */
@@ -201,8 +204,14 @@ declare enum Origin {
201
204
  type OriginWithLiterals = Origin | 'ORIGIN_UNSPECIFIED' | 'ORIGIN_USER' | 'ORIGIN_MIGRATION' | 'ORIGIN_AI';
202
205
  interface GetSeoPatternRequest {
203
206
  /**
204
- * Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
205
- * `STORES_PRODUCT`.
207
+ * Page type whose pattern to retrieve. Send a known page type name, such as
208
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
209
+ *
210
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
211
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
212
+ *
213
+ * See the list of [common page
214
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
206
215
  * @maxLength 100
207
216
  */
208
217
  pageType: string;
@@ -244,8 +253,14 @@ interface ListSeoPatternsResponse {
244
253
  }
245
254
  interface ListSeoPatternVariablesRequest {
246
255
  /**
247
- * Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
248
- * `STORES_PRODUCT`.
256
+ * Page type whose variables to retrieve. Send a known page type name, such as
257
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
258
+ *
259
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
260
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
261
+ *
262
+ * See the list of [common page
263
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
249
264
  * @maxLength 100
250
265
  */
251
266
  pageType: string;
@@ -291,8 +306,14 @@ interface SeoPatternVariable {
291
306
  }
292
307
  interface CreateSeoPatternRequest {
293
308
  /**
294
- * Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
295
- * `STORES_PRODUCT`.
309
+ * Page type to create a pattern for. Send a known page type name, such as
310
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
311
+ *
312
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
313
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
314
+ *
315
+ * See the list of [common page
316
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
296
317
  * @maxLength 100
297
318
  */
298
319
  pageType: string;
@@ -314,8 +335,13 @@ interface CreateSeoPatternResponse {
314
335
  }
315
336
  interface SetSeoPatternRequest {
316
337
  /**
317
- * Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or
318
- * `STORES_PRODUCT`.
338
+ * Page type whose pattern to change. Send a known page type name, such as
339
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
340
+ *
341
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
342
+ *
343
+ * See the list of [common page
344
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
319
345
  * @maxLength 100
320
346
  */
321
347
  pageType: string;
@@ -360,8 +386,13 @@ interface SetSeoPatternResponse {
360
386
  }
361
387
  interface ResetSeoPatternToDefaultRequest {
362
388
  /**
363
- * Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
364
- * `STORES_PRODUCT`.
389
+ * Page type whose pattern to reset. Send a known page type name, such as
390
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
391
+ *
392
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
393
+ *
394
+ * See the list of [common page
395
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
365
396
  * @maxLength 100
366
397
  */
367
398
  pageType: string;
@@ -10,10 +10,16 @@ interface GetSeoPatternSignature {
10
10
  * The response contains the site's own pattern in `pattern`, and the pattern Wix
11
11
  * provides in `defaultPattern`. `source` reports which of the two is in effect.
12
12
  * `pattern` is empty when the site has no pattern of its own.
13
- * @param - Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
14
- * `STORES_PRODUCT`.
13
+ * @param - Page type whose pattern to retrieve. Send a known page type name, such as
14
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
15
+ *
16
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
17
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
18
+ *
19
+ * See the list of [common page
20
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
15
21
  */
16
- (pageType: string, options?: GetSeoPatternOptions): Promise<NonNullablePaths<GetSeoPatternResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 6> & {
22
+ (pageType: string, options?: GetSeoPatternOptions): Promise<NonNullablePaths<GetSeoPatternResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 4> & {
17
23
  __applicationErrorsType?: GetSeoPatternApplicationErrors;
18
24
  }>;
19
25
  }
@@ -26,7 +32,7 @@ interface ListSeoPatternsSignature {
26
32
  * type that has never had one is absent. A page type that was reset to its default remains in the
27
33
  * list, with an empty `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.
28
34
  */
29
- (): Promise<NonNullablePaths<ListSeoPatternsResponse, `seoPatterns` | `seoPatterns.${number}.pageType` | `seoPatterns.${number}.source` | `seoPatterns.${number}.origin`, 4>>;
35
+ (): Promise<NonNullablePaths<ListSeoPatternsResponse, `seoPatterns` | `seoPatterns.${number}.pageType` | `seoPatterns.${number}.source` | `seoPatterns.${number}.origin`, 2>>;
30
36
  }
31
37
  declare function listSeoPatternVariables$1(httpClient: HttpClient): ListSeoPatternVariablesSignature;
32
38
  interface ListSeoPatternVariablesSignature {
@@ -38,10 +44,16 @@ interface ListSeoPatternVariablesSignature {
38
44
  *
39
45
  * Variables for the page's own tags and variables for its structured data are returned
40
46
  * in separate fields, and a pattern may use either.
41
- * @param - Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
42
- * `STORES_PRODUCT`.
47
+ * @param - Page type whose variables to retrieve. Send a known page type name, such as
48
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
49
+ *
50
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
51
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
52
+ *
53
+ * See the list of [common page
54
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
43
55
  */
44
- (pageType: string): Promise<NonNullablePaths<ListSeoPatternVariablesResponse, `variables` | `variables.${number}.key` | `variables.${number}.userVisible` | `structuredDataVariables` | `structuredDataVariables.${number}.key` | `structuredDataVariables.${number}.userVisible`, 4> & {
56
+ (pageType: string): Promise<NonNullablePaths<ListSeoPatternVariablesResponse, `variables` | `variables.${number}.key` | `variables.${number}.userVisible` | `structuredDataVariables` | `structuredDataVariables.${number}.key` | `structuredDataVariables.${number}.userVisible`, 2> & {
45
57
  __applicationErrorsType?: ListSeoPatternVariablesApplicationErrors;
46
58
  }>;
47
59
  }
@@ -55,8 +67,14 @@ interface CreateSeoPatternSignature {
55
67
  *
56
68
  * To change a pattern that already exists, call [Set SEO
57
69
  * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/set-seo-pattern).
58
- * @param - Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
59
- * `STORES_PRODUCT`.
70
+ * @param - Page type to create a pattern for. Send a known page type name, such as
71
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
72
+ *
73
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
74
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
75
+ *
76
+ * See the list of [common page
77
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
60
78
  * @param - Pattern to create for the page type.
61
79
  *
62
80
  * `pattern` is the only field to send. The page type comes from the request path, and
@@ -65,7 +83,7 @@ interface CreateSeoPatternSignature {
65
83
  * @returns The created pattern, with `source` reporting that the site's own pattern is now in
66
84
  * effect.
67
85
  */
68
- (pageType: string, seoPattern: SeoPattern): Promise<NonNullablePaths<SeoPattern, `pageType` | `pattern.tags` | `pattern.tags.${number}.type` | `pattern.tags.${number}.children` | `pattern.tags.${number}.custom` | `pattern.tags.${number}.disabled` | `source` | `origin`, 5> & {
86
+ (pageType: string, seoPattern: SeoPattern): Promise<NonNullablePaths<SeoPattern, `pageType` | `pattern.tags` | `pattern.tags.${number}.type` | `pattern.tags.${number}.children` | `pattern.tags.${number}.custom` | `pattern.tags.${number}.disabled` | `source` | `origin`, 3> & {
69
87
  __applicationErrorsType?: CreateSeoPatternApplicationErrors;
70
88
  }>;
71
89
  }
@@ -86,15 +104,20 @@ interface SetSeoPatternSignature {
86
104
  * A pattern has no revision, and the site's SEO settings in the dashboard write to the
87
105
  * same pattern. The last write wins, so retrieve the pattern immediately before writing
88
106
  * it.
89
- * @param - Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or
90
- * `STORES_PRODUCT`.
107
+ * @param - Page type whose pattern to change. Send a known page type name, such as
108
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
109
+ *
110
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
111
+ *
112
+ * See the list of [common page
113
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
91
114
  * @param - Pattern to set for the page type.
92
115
  *
93
116
  * `pattern` is the only writable field, and setting it replaces the page type's tag
94
117
  * templates in full. Sending an empty pattern clears it, which returns the page type to
95
118
  * its Wix default.
96
119
  */
97
- (pageType: string, seoPattern: SeoPattern, options?: NonNullablePaths<SetSeoPatternOptions, `fieldMask`, 2>): Promise<NonNullablePaths<SetSeoPatternResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 6> & {
120
+ (pageType: string, seoPattern: SeoPattern, options?: NonNullablePaths<SetSeoPatternOptions, `fieldMask`, 0>): Promise<NonNullablePaths<SetSeoPatternResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 4> & {
98
121
  __applicationErrorsType?: SetSeoPatternApplicationErrors;
99
122
  }>;
100
123
  }
@@ -105,10 +128,15 @@ interface ResetSeoPatternToDefaultSignature {
105
128
  *
106
129
  * The response reports the page type after the reset, with an empty `pattern` and
107
130
  * `source` of `PATTERN_SOURCE_DEFAULT`.
108
- * @param - Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
109
- * `STORES_PRODUCT`.
131
+ * @param - Page type whose pattern to reset. Send a known page type name, such as
132
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
133
+ *
134
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
135
+ *
136
+ * See the list of [common page
137
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
110
138
  */
111
- (pageType: string, options?: ResetSeoPatternToDefaultOptions): Promise<NonNullablePaths<ResetSeoPatternToDefaultResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 6> & {
139
+ (pageType: string, options?: ResetSeoPatternToDefaultOptions): Promise<NonNullablePaths<ResetSeoPatternToDefaultResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 4> & {
112
140
  __applicationErrorsType?: ResetSeoPatternToDefaultApplicationErrors;
113
141
  }>;
114
142
  }
@@ -24,8 +24,11 @@ interface SeoPattern {
24
24
  */
25
25
  _id?: string | null;
26
26
  /**
27
- * Page type the pattern applies to. For example, `STATIC_PAGE`, `BLOG_POST`, or
28
- * `STORES_PRODUCT`.
27
+ * Page type the pattern applies to. A known page type name, such as
28
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
29
+ *
30
+ * See the list of [common page
31
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
29
32
  * @maxLength 100
30
33
  * @readonly
31
34
  */
@@ -200,8 +203,14 @@ declare enum Origin {
200
203
  type OriginWithLiterals = Origin | 'ORIGIN_UNSPECIFIED' | 'ORIGIN_USER' | 'ORIGIN_MIGRATION' | 'ORIGIN_AI';
201
204
  interface GetSeoPatternRequest {
202
205
  /**
203
- * Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
204
- * `STORES_PRODUCT`.
206
+ * Page type whose pattern to retrieve. Send a known page type name, such as
207
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
208
+ *
209
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
210
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
211
+ *
212
+ * See the list of [common page
213
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
205
214
  * @maxLength 100
206
215
  */
207
216
  pageType: string;
@@ -243,8 +252,14 @@ interface ListSeoPatternsResponse {
243
252
  }
244
253
  interface ListSeoPatternVariablesRequest {
245
254
  /**
246
- * Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
247
- * `STORES_PRODUCT`.
255
+ * Page type whose variables to retrieve. Send a known page type name, such as
256
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
257
+ *
258
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
259
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
260
+ *
261
+ * See the list of [common page
262
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
248
263
  * @maxLength 100
249
264
  */
250
265
  pageType: string;
@@ -290,8 +305,14 @@ interface SeoPatternVariable {
290
305
  }
291
306
  interface CreateSeoPatternRequest {
292
307
  /**
293
- * Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
294
- * `STORES_PRODUCT`.
308
+ * Page type to create a pattern for. Send a known page type name, such as
309
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
310
+ *
311
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
312
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
313
+ *
314
+ * See the list of [common page
315
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
295
316
  * @maxLength 100
296
317
  */
297
318
  pageType: string;
@@ -313,8 +334,13 @@ interface CreateSeoPatternResponse {
313
334
  }
314
335
  interface SetSeoPatternRequest {
315
336
  /**
316
- * Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or
317
- * `STORES_PRODUCT`.
337
+ * Page type whose pattern to change. Send a known page type name, such as
338
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
339
+ *
340
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
341
+ *
342
+ * See the list of [common page
343
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
318
344
  * @maxLength 100
319
345
  */
320
346
  pageType: string;
@@ -359,8 +385,13 @@ interface SetSeoPatternResponse {
359
385
  }
360
386
  interface ResetSeoPatternToDefaultRequest {
361
387
  /**
362
- * Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
363
- * `STORES_PRODUCT`.
388
+ * Page type whose pattern to reset. Send a known page type name, such as
389
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
390
+ *
391
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
392
+ *
393
+ * See the list of [common page
394
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
364
395
  * @maxLength 100
365
396
  */
366
397
  pageType: string;
@@ -641,8 +672,14 @@ type ResetSeoPatternToDefaultApplicationErrors = {
641
672
  * The response contains the site's own pattern in `pattern`, and the pattern Wix
642
673
  * provides in `defaultPattern`. `source` reports which of the two is in effect.
643
674
  * `pattern` is empty when the site has no pattern of its own.
644
- * @param pageType - Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
645
- * `STORES_PRODUCT`.
675
+ * @param pageType - Page type whose pattern to retrieve. Send a known page type name, such as
676
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
677
+ *
678
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
679
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
680
+ *
681
+ * See the list of [common page
682
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
646
683
  * @public
647
684
  * @documentationMaturity preview
648
685
  * @requiredField pageType
@@ -650,7 +687,7 @@ type ResetSeoPatternToDefaultApplicationErrors = {
650
687
  * @applicableIdentity APP
651
688
  * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.GetSeoPattern
652
689
  */
653
- declare function getSeoPattern(pageType: string, options?: GetSeoPatternOptions): Promise<NonNullablePaths<GetSeoPatternResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 6> & {
690
+ declare function getSeoPattern(pageType: string, options?: GetSeoPatternOptions): Promise<NonNullablePaths<GetSeoPatternResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 4> & {
654
691
  __applicationErrorsType?: GetSeoPatternApplicationErrors;
655
692
  }>;
656
693
  interface GetSeoPatternOptions {
@@ -675,7 +712,7 @@ interface GetSeoPatternOptions {
675
712
  * @applicableIdentity APP
676
713
  * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ListSeoPatterns
677
714
  */
678
- declare function listSeoPatterns(): Promise<NonNullablePaths<ListSeoPatternsResponse, `seoPatterns` | `seoPatterns.${number}.pageType` | `seoPatterns.${number}.source` | `seoPatterns.${number}.origin`, 4>>;
715
+ declare function listSeoPatterns(): Promise<NonNullablePaths<ListSeoPatternsResponse, `seoPatterns` | `seoPatterns.${number}.pageType` | `seoPatterns.${number}.source` | `seoPatterns.${number}.origin`, 2>>;
679
716
  /**
680
717
  * Retrieves the variables a pattern for a page type may reference.
681
718
  *
@@ -684,8 +721,14 @@ declare function listSeoPatterns(): Promise<NonNullablePaths<ListSeoPatternsResp
684
721
  *
685
722
  * Variables for the page's own tags and variables for its structured data are returned
686
723
  * in separate fields, and a pattern may use either.
687
- * @param pageType - Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
688
- * `STORES_PRODUCT`.
724
+ * @param pageType - Page type whose variables to retrieve. Send a known page type name, such as
725
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
726
+ *
727
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
728
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
729
+ *
730
+ * See the list of [common page
731
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
689
732
  * @public
690
733
  * @documentationMaturity preview
691
734
  * @requiredField pageType
@@ -693,7 +736,7 @@ declare function listSeoPatterns(): Promise<NonNullablePaths<ListSeoPatternsResp
693
736
  * @applicableIdentity APP
694
737
  * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ListSeoPatternVariables
695
738
  */
696
- declare function listSeoPatternVariables(pageType: string): Promise<NonNullablePaths<ListSeoPatternVariablesResponse, `variables` | `variables.${number}.key` | `variables.${number}.userVisible` | `structuredDataVariables` | `structuredDataVariables.${number}.key` | `structuredDataVariables.${number}.userVisible`, 4> & {
739
+ declare function listSeoPatternVariables(pageType: string): Promise<NonNullablePaths<ListSeoPatternVariablesResponse, `variables` | `variables.${number}.key` | `variables.${number}.userVisible` | `structuredDataVariables` | `structuredDataVariables.${number}.key` | `structuredDataVariables.${number}.userVisible`, 2> & {
697
740
  __applicationErrorsType?: ListSeoPatternVariablesApplicationErrors;
698
741
  }>;
699
742
  /**
@@ -704,8 +747,14 @@ declare function listSeoPatternVariables(pageType: string): Promise<NonNullableP
704
747
  *
705
748
  * To change a pattern that already exists, call [Set SEO
706
749
  * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/set-seo-pattern).
707
- * @param pageType - Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
708
- * `STORES_PRODUCT`.
750
+ * @param pageType - Page type to create a pattern for. Send a known page type name, such as
751
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
752
+ *
753
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
754
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
755
+ *
756
+ * See the list of [common page
757
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
709
758
  * @param seoPattern - Pattern to create for the page type.
710
759
  *
711
760
  * `pattern` is the only field to send. The page type comes from the request path, and
@@ -721,7 +770,7 @@ declare function listSeoPatternVariables(pageType: string): Promise<NonNullableP
721
770
  * effect.
722
771
  * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.CreateSeoPattern
723
772
  */
724
- declare function createSeoPattern(pageType: string, seoPattern: SeoPattern): Promise<NonNullablePaths<SeoPattern, `pageType` | `pattern.tags` | `pattern.tags.${number}.type` | `pattern.tags.${number}.children` | `pattern.tags.${number}.custom` | `pattern.tags.${number}.disabled` | `source` | `origin`, 5> & {
773
+ declare function createSeoPattern(pageType: string, seoPattern: SeoPattern): Promise<NonNullablePaths<SeoPattern, `pageType` | `pattern.tags` | `pattern.tags.${number}.type` | `pattern.tags.${number}.children` | `pattern.tags.${number}.custom` | `pattern.tags.${number}.disabled` | `source` | `origin`, 3> & {
725
774
  __applicationErrorsType?: CreateSeoPatternApplicationErrors;
726
775
  }>;
727
776
  /**
@@ -739,8 +788,13 @@ declare function createSeoPattern(pageType: string, seoPattern: SeoPattern): Pro
739
788
  * A pattern has no revision, and the site's SEO settings in the dashboard write to the
740
789
  * same pattern. The last write wins, so retrieve the pattern immediately before writing
741
790
  * it.
742
- * @param pageType - Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or
743
- * `STORES_PRODUCT`.
791
+ * @param pageType - Page type whose pattern to change. Send a known page type name, such as
792
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
793
+ *
794
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
795
+ *
796
+ * See the list of [common page
797
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
744
798
  * @param seoPattern - Pattern to set for the page type.
745
799
  *
746
800
  * `pattern` is the only writable field, and setting it replaces the page type's tag
@@ -755,7 +809,7 @@ declare function createSeoPattern(pageType: string, seoPattern: SeoPattern): Pro
755
809
  * @applicableIdentity APP
756
810
  * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.SetSeoPattern
757
811
  */
758
- declare function setSeoPattern(pageType: string, seoPattern: SeoPattern, options?: NonNullablePaths<SetSeoPatternOptions, `fieldMask`, 2>): Promise<NonNullablePaths<SetSeoPatternResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 6> & {
812
+ declare function setSeoPattern(pageType: string, seoPattern: SeoPattern, options?: NonNullablePaths<SetSeoPatternOptions, `fieldMask`, 0>): Promise<NonNullablePaths<SetSeoPatternResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 4> & {
759
813
  __applicationErrorsType?: SetSeoPatternApplicationErrors;
760
814
  }>;
761
815
  interface SetSeoPatternOptions {
@@ -783,8 +837,13 @@ interface SetSeoPatternOptions {
783
837
  *
784
838
  * The response reports the page type after the reset, with an empty `pattern` and
785
839
  * `source` of `PATTERN_SOURCE_DEFAULT`.
786
- * @param pageType - Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
787
- * `STORES_PRODUCT`.
840
+ * @param pageType - Page type whose pattern to reset. Send a known page type name, such as
841
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
842
+ *
843
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
844
+ *
845
+ * See the list of [common page
846
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
788
847
  * @public
789
848
  * @documentationMaturity preview
790
849
  * @requiredField pageType
@@ -792,7 +851,7 @@ interface SetSeoPatternOptions {
792
851
  * @applicableIdentity APP
793
852
  * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ResetSeoPatternToDefault
794
853
  */
795
- declare function resetSeoPatternToDefault(pageType: string, options?: ResetSeoPatternToDefaultOptions): Promise<NonNullablePaths<ResetSeoPatternToDefaultResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 6> & {
854
+ declare function resetSeoPatternToDefault(pageType: string, options?: ResetSeoPatternToDefaultOptions): Promise<NonNullablePaths<ResetSeoPatternToDefaultResponse, `seoPattern.pageType` | `seoPattern.pattern.tags` | `seoPattern.pattern.tags.${number}.type` | `seoPattern.pattern.tags.${number}.children` | `seoPattern.pattern.tags.${number}.custom` | `seoPattern.pattern.tags.${number}.disabled` | `seoPattern.source` | `seoPattern.origin`, 4> & {
796
855
  __applicationErrorsType?: ResetSeoPatternToDefaultApplicationErrors;
797
856
  }>;
798
857
  interface ResetSeoPatternToDefaultOptions {
@@ -25,8 +25,11 @@ interface SeoPattern {
25
25
  */
26
26
  id?: string | null;
27
27
  /**
28
- * Page type the pattern applies to. For example, `STATIC_PAGE`, `BLOG_POST`, or
29
- * `STORES_PRODUCT`.
28
+ * Page type the pattern applies to. A known page type name, such as
29
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
30
+ *
31
+ * See the list of [common page
32
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
30
33
  * @maxLength 100
31
34
  * @readonly
32
35
  */
@@ -201,8 +204,14 @@ declare enum Origin {
201
204
  type OriginWithLiterals = Origin | 'ORIGIN_UNSPECIFIED' | 'ORIGIN_USER' | 'ORIGIN_MIGRATION' | 'ORIGIN_AI';
202
205
  interface GetSeoPatternRequest {
203
206
  /**
204
- * Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
205
- * `STORES_PRODUCT`.
207
+ * Page type whose pattern to retrieve. Send a known page type name, such as
208
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
209
+ *
210
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
211
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
212
+ *
213
+ * See the list of [common page
214
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
206
215
  * @maxLength 100
207
216
  */
208
217
  pageType: string;
@@ -244,8 +253,14 @@ interface ListSeoPatternsResponse {
244
253
  }
245
254
  interface ListSeoPatternVariablesRequest {
246
255
  /**
247
- * Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
248
- * `STORES_PRODUCT`.
256
+ * Page type whose variables to retrieve. Send a known page type name, such as
257
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
258
+ *
259
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
260
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
261
+ *
262
+ * See the list of [common page
263
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
249
264
  * @maxLength 100
250
265
  */
251
266
  pageType: string;
@@ -291,8 +306,14 @@ interface SeoPatternVariable {
291
306
  }
292
307
  interface CreateSeoPatternRequest {
293
308
  /**
294
- * Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
295
- * `STORES_PRODUCT`.
309
+ * Page type to create a pattern for. Send a known page type name, such as
310
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
311
+ *
312
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`. A known page type whose Wix
313
+ * business solution isn't installed on the site fails with `PAGE_TYPE_NOT_ON_SITE`.
314
+ *
315
+ * See the list of [common page
316
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
296
317
  * @maxLength 100
297
318
  */
298
319
  pageType: string;
@@ -314,8 +335,13 @@ interface CreateSeoPatternResponse {
314
335
  }
315
336
  interface SetSeoPatternRequest {
316
337
  /**
317
- * Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or
318
- * `STORES_PRODUCT`.
338
+ * Page type whose pattern to change. Send a known page type name, such as
339
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
340
+ *
341
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
342
+ *
343
+ * See the list of [common page
344
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
319
345
  * @maxLength 100
320
346
  */
321
347
  pageType: string;
@@ -360,8 +386,13 @@ interface SetSeoPatternResponse {
360
386
  }
361
387
  interface ResetSeoPatternToDefaultRequest {
362
388
  /**
363
- * Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
364
- * `STORES_PRODUCT`.
389
+ * Page type whose pattern to reset. Send a known page type name, such as
390
+ * `STATIC_PAGE`, `BLOG_POST`, or `STORES_PRODUCT`.
391
+ *
392
+ * An unknown name fails with `UNSUPPORTED_PAGE_TYPE`.
393
+ *
394
+ * See the list of [common page
395
+ * types](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/introduction#page-types).
365
396
  * @maxLength 100
366
397
  */
367
398
  pageType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_seo_seo-patterns",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -21,23 +21,16 @@
21
21
  "import": "./build/es/meta.mjs",
22
22
  "require": "./build/cjs/meta.js",
23
23
  "types": "./build/es/meta.d.mts"
24
- },
25
- "./schemas": {
26
- "import": "./build/es/schemas.mjs",
27
- "require": "./build/cjs/schemas.js",
28
- "types": "./build/es/schemas.d.mts"
29
24
  }
30
25
  },
31
26
  "files": [
32
27
  "build",
33
28
  "meta",
34
- "service-plugins",
35
- "schemas"
29
+ "service-plugins"
36
30
  ],
37
31
  "dependencies": {
38
32
  "@wix/sdk-runtime": "^1.0.24",
39
- "@wix/sdk-types": "^1.17.11",
40
- "zod": "^4.3.6"
33
+ "@wix/sdk-types": "^1.17.11"
41
34
  },
42
35
  "devDependencies": {
43
36
  "tsup": "^8.4.0",
@@ -57,5 +50,5 @@
57
50
  "fqdn": "wix.promote.seo.v1.seo_pattern"
58
51
  }
59
52
  },
60
- "falconPackageHash": "fe4fa714ae3359d6a5bd4c35a793f3b1579b92afde9b082ae2f9cc10"
53
+ "falconPackageHash": "3b1a7656bd75123c9575057a08704a1ce43c1b433792040a5b3458ac"
61
54
  }