@wix/auto_sdk_seo_seo-patterns 1.0.0 → 1.0.2
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.d.ts +18 -36
- package/build/cjs/index.js +3 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +98 -128
- package/build/cjs/index.typings.js +3 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +76 -60
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +0 -3
- package/build/cjs/schemas.js +54 -65
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +18 -36
- package/build/es/index.mjs +3 -15
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +98 -128
- package/build/es/index.typings.mjs +3 -15
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +76 -60
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +0 -3
- package/build/es/schemas.mjs +54 -65
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -36
- package/build/internal/cjs/index.js +3 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +107 -113
- package/build/internal/cjs/index.typings.js +3 -15
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +85 -45
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +0 -3
- package/build/internal/cjs/schemas.js +54 -65
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +18 -36
- package/build/internal/es/index.mjs +3 -15
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +107 -113
- package/build/internal/es/index.typings.mjs +3 -15
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +85 -45
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +0 -3
- package/build/internal/es/schemas.mjs +54 -65
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -7,12 +7,9 @@ interface GetSeoPatternSignature {
|
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves the SEO pattern in effect for a page type.
|
|
9
9
|
*
|
|
10
|
-
* The response contains
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't
|
|
15
|
-
* installed on the site.
|
|
10
|
+
* The response contains the site's own pattern in `pattern`, and the pattern Wix
|
|
11
|
+
* provides in `defaultPattern`. `source` reports which of the two is in effect.
|
|
12
|
+
* `pattern` is empty when the site has no pattern of its own.
|
|
16
13
|
* @param - Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
|
|
17
14
|
* `STORES_PRODUCT`.
|
|
18
15
|
*/
|
|
@@ -25,13 +22,9 @@ interface ListSeoPatternsSignature {
|
|
|
25
22
|
/**
|
|
26
23
|
* Retrieves the patterns stored for a site, one per page type.
|
|
27
24
|
*
|
|
28
|
-
* Only page types that have had a pattern
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.
|
|
32
|
-
*
|
|
33
|
-
* The response isn't paged. A site has a bounded number of page types, and all of them
|
|
34
|
-
* are returned in one call.
|
|
25
|
+
* Only returns page types that have had a pattern of the site's own stored, so a page
|
|
26
|
+
* type that has never had one is absent. A page type that was reset to its default remains in the
|
|
27
|
+
* list, with an empty `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.
|
|
35
28
|
*/
|
|
36
29
|
(): Promise<NonNullablePaths<ListSeoPatternsResponse, `seoPatterns` | `seoPatterns.${number}.pageType` | `seoPatterns.${number}.source` | `seoPatterns.${number}.origin`, 4>>;
|
|
37
30
|
}
|
|
@@ -40,15 +33,11 @@ interface ListSeoPatternVariablesSignature {
|
|
|
40
33
|
/**
|
|
41
34
|
* Retrieves the variables a pattern for a page type may reference.
|
|
42
35
|
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* `INVALID_PATTERN`.
|
|
36
|
+
* Call this method to retrieve the valid variables for a page type before writing a
|
|
37
|
+
* pattern.
|
|
46
38
|
*
|
|
47
39
|
* Variables for the page's own tags and variables for its structured data are returned
|
|
48
40
|
* in separate fields, and a pattern may use either.
|
|
49
|
-
*
|
|
50
|
-
* Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't
|
|
51
|
-
* installed on the site.
|
|
52
41
|
* @param - Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or
|
|
53
42
|
* `STORES_PRODUCT`.
|
|
54
43
|
*/
|
|
@@ -61,16 +50,12 @@ interface CreateSeoPatternSignature {
|
|
|
61
50
|
/**
|
|
62
51
|
* Creates a pattern for a page type that's still on its Wix default.
|
|
63
52
|
*
|
|
64
|
-
* The pattern must contain at least one tag.
|
|
65
|
-
*
|
|
66
|
-
* nothing. To leave a page type on its Wix default, create nothing for it.
|
|
53
|
+
* The pattern must contain at least one tag. To leave a page type on its Wix default,
|
|
54
|
+
* create nothing for it.
|
|
67
55
|
*
|
|
68
|
-
* To change a pattern that already exists, call Set SEO
|
|
69
|
-
* pattern
|
|
70
|
-
*
|
|
71
|
-
* Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't
|
|
72
|
-
* installed on the site.
|
|
73
|
-
* @param - Page type whose pattern to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or
|
|
56
|
+
* To change a pattern that already exists, call [Set SEO
|
|
57
|
+
* 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
|
|
74
59
|
* `STORES_PRODUCT`.
|
|
75
60
|
* @param - Pattern to create for the page type.
|
|
76
61
|
*
|
|
@@ -93,9 +78,10 @@ interface SetSeoPatternSignature {
|
|
|
93
78
|
* pattern first and send back the complete set you want it to have. Sending an empty
|
|
94
79
|
* pattern clears it, which returns the page type to its Wix default.
|
|
95
80
|
*
|
|
96
|
-
* This method changes a pattern that already exists rather than creating one
|
|
97
|
-
* type still on its Wix default
|
|
98
|
-
*
|
|
81
|
+
* This method changes a pattern that already exists rather than creating one. For a page
|
|
82
|
+
* type still on its Wix default, call [Create SEO
|
|
83
|
+
* Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/create-seo-pattern)
|
|
84
|
+
* instead.
|
|
99
85
|
*
|
|
100
86
|
* A pattern has no revision, and the site's SEO settings in the dashboard write to the
|
|
101
87
|
* same pattern. The last write wins, so retrieve the pattern immediately before writing
|
|
@@ -118,11 +104,7 @@ interface ResetSeoPatternToDefaultSignature {
|
|
|
118
104
|
* Removes the pattern a site has for a page type, so the Wix default applies again.
|
|
119
105
|
*
|
|
120
106
|
* The response reports the page type after the reset, with an empty `pattern` and
|
|
121
|
-
* `source` of `PATTERN_SOURCE_DEFAULT`.
|
|
122
|
-
* SEO Patterns, with the same empty pattern.
|
|
123
|
-
*
|
|
124
|
-
* Fails with `PATTERN_NOT_FOUND` if the page type is already on its Wix default, so
|
|
125
|
-
* there's nothing to reset.
|
|
107
|
+
* `source` of `PATTERN_SOURCE_DEFAULT`.
|
|
126
108
|
* @param - Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or
|
|
127
109
|
* `STORES_PRODUCT`.
|
|
128
110
|
*/
|
package/build/cjs/index.js
CHANGED
|
@@ -218,8 +218,7 @@ async function getSeoPattern2(pageType, options) {
|
|
|
218
218
|
const { httpClient, sideEffects } = arguments[2];
|
|
219
219
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
220
220
|
pageType,
|
|
221
|
-
pageId: options?.pageId
|
|
222
|
-
collectionName: options?.collectionName
|
|
221
|
+
pageId: options?.pageId
|
|
223
222
|
});
|
|
224
223
|
const reqOpts = getSeoPattern(payload);
|
|
225
224
|
sideEffects?.onSiteCall?.();
|
|
@@ -232,11 +231,7 @@ async function getSeoPattern2(pageType, options) {
|
|
|
232
231
|
err,
|
|
233
232
|
{
|
|
234
233
|
spreadPathsToArguments: {},
|
|
235
|
-
explicitPathsToArguments: {
|
|
236
|
-
pageType: "$[0]",
|
|
237
|
-
pageId: "$[1].pageId",
|
|
238
|
-
collectionName: "$[1].collectionName"
|
|
239
|
-
},
|
|
234
|
+
explicitPathsToArguments: { pageType: "$[0]", pageId: "$[1].pageId" },
|
|
240
235
|
singleArgumentUnchanged: false
|
|
241
236
|
},
|
|
242
237
|
["pageType", "options"]
|
|
@@ -323,7 +318,6 @@ async function setSeoPattern2(pageType, seoPattern, options) {
|
|
|
323
318
|
pageType,
|
|
324
319
|
seoPattern,
|
|
325
320
|
fieldMask: options?.fieldMask,
|
|
326
|
-
collectionName: options?.collectionName,
|
|
327
321
|
pageId: options?.pageId
|
|
328
322
|
});
|
|
329
323
|
const reqOpts = setSeoPattern(payload);
|
|
@@ -341,7 +335,6 @@ async function setSeoPattern2(pageType, seoPattern, options) {
|
|
|
341
335
|
pageType: "$[0]",
|
|
342
336
|
seoPattern: "$[1]",
|
|
343
337
|
fieldMask: "$[2].fieldMask",
|
|
344
|
-
collectionName: "$[2].collectionName",
|
|
345
338
|
pageId: "$[2].pageId"
|
|
346
339
|
},
|
|
347
340
|
singleArgumentUnchanged: false
|
|
@@ -356,7 +349,6 @@ async function resetSeoPatternToDefault2(pageType, options) {
|
|
|
356
349
|
const { httpClient, sideEffects } = arguments[2];
|
|
357
350
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
358
351
|
pageType,
|
|
359
|
-
collectionName: options?.collectionName,
|
|
360
352
|
pageId: options?.pageId
|
|
361
353
|
});
|
|
362
354
|
const reqOpts = resetSeoPatternToDefault(payload);
|
|
@@ -370,11 +362,7 @@ async function resetSeoPatternToDefault2(pageType, options) {
|
|
|
370
362
|
err,
|
|
371
363
|
{
|
|
372
364
|
spreadPathsToArguments: {},
|
|
373
|
-
explicitPathsToArguments: {
|
|
374
|
-
pageType: "$[0]",
|
|
375
|
-
collectionName: "$[1].collectionName",
|
|
376
|
-
pageId: "$[1].pageId"
|
|
377
|
-
},
|
|
365
|
+
explicitPathsToArguments: { pageType: "$[0]", pageId: "$[1].pageId" },
|
|
378
366
|
singleArgumentUnchanged: false
|
|
379
367
|
},
|
|
380
368
|
["pageType", "options"]
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/promote-seo-v1-seo-pattern-seo-patterns.universal.ts","../../src/promote-seo-v1-seo-pattern-seo-patterns.http.ts","../../src/promote-seo-v1-seo-pattern-seo-patterns.public.ts","../../src/promote-seo-v1-seo-pattern-seo-patterns.context.ts"],"sourcesContent":["export * from './src/promote-seo-v1-seo-pattern-seo-patterns.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPromoteSeoV1SeoPattern from './promote-seo-v1-seo-pattern-seo-patterns.http.js';\n\n/**\n * An SEO pattern is a template of SEO tags defined for one page type, such as every blog\n * post or every store product. A pattern's tags may contain variables, written as\n * `{{variable}}`, that are filled in with each item's own values when its page renders,\n * so a site owner sets the tags for a whole page type once instead of item by item.\n *\n * Every page type always has a pattern in effect. When a site has no pattern of its own\n * for a page type, the built-in Wix default applies, and `source` reports which of the\n * two is in effect.\n *\n * A change to a pattern reaches the live site without a site publish, and applies to\n * every page of that type that has no SEO tags set for the item itself.\n */\nexport interface SeoPattern {\n /**\n * SEO pattern ID, in the format `{pageType}`.\n *\n * For a pattern that applies to a single page built from a Wix Data collection, the\n * format is `{pageType}:{pageId}`.\n * @readonly\n * @maxLength 400\n */\n _id?: string | null;\n /**\n * Page type the pattern applies to. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n *\n * Calling with a page type Wix doesn't recognize fails with `UNSUPPORTED_PAGE_TYPE`,\n * and the error lists the page types that are supported. For a page type provided by a\n * Wix app, such as `BLOG_POST`, the app must be installed on the site.\n *\n * Page types aren't the same set as the item types of the Item SEO Tags API: a page\n * type can support a pattern without supporting tags set per item, and the other way\n * round.\n * @maxLength 100\n * @readonly\n */\n pageType?: string;\n /**\n * ID of a single page built from a Wix Data collection, when the pattern applies to\n * that page alone rather than to the whole page type.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one\n * pattern for the type, and passing a page ID for one of those fails with\n * `PAGE_ID_NOT_SUPPORTED`.\n * @maxLength 200\n */\n pageId?: string | null;\n /**\n * The site's own pattern for the page type, which takes precedence over the Wix\n * default.\n *\n * Empty when the site has no pattern of its own, in which case `defaultPattern`\n * applies. Setting this field replaces the pattern in full, so send the complete set of\n * tag templates you want the page type to have.\n */\n pattern?: SeoPatternBlob;\n /**\n * The pattern Wix provides for the page type, which applies whenever the site has no\n * pattern of its own.\n *\n * Always returned, so you can compare a customized pattern with the one it started\n * from, and see what a reset would restore.\n * @readonly\n */\n defaultPattern?: SeoPatternBlob;\n /**\n * Which pattern is in effect for the page type: the site's own, or the Wix default.\n * @readonly\n */\n source?: PatternSourceWithLiterals;\n /**\n * Language the pattern applies to, as an IETF BCP 47 language tag. For example,\n * `en-US` for U.S. English.\n *\n * A page type has a single pattern, so this reports the site's primary language.\n * @maxLength 100\n * @readonly\n */\n language?: string | null;\n /**\n * What made the most recent change to the pattern, for example a user or the site\n * migration flow. Derived from the caller, not from the request.\n *\n * `ORIGIN_UNSPECIFIED` when the caller isn't one Wix identifies as a specific origin.\n * Origin isn't stored with the pattern either, so Get SEO Pattern and List SEO Patterns\n * always return `ORIGIN_UNSPECIFIED`.\n * @readonly\n */\n origin?: OriginWithLiterals;\n}\n\n/**\n * A set of SEO tag templates.\n *\n * Each tag has the same structure as a rendered SEO tag, except that its values may\n * contain `{{variable}}` placeholders, which are replaced with an item's own values when\n * its page renders.\n */\nexport interface SeoPatternBlob {\n /**\n * The pattern's SEO tag templates.\n *\n * A tag may reference only the variables the page type offers. Call List SEO Pattern\n * Variables for the page type to retrieve them.\n *\n * Max: 100 tags\n * @maxSize 100\n */\n tags?: Tag[];\n}\n\nexport interface Tag {\n /**\n * SEO tag type.\n *\n *\n * Supported values: `title`, `meta`, `script`, `link`.\n */\n type?: string;\n /**\n * A `{\"key\": \"value\"}` pair object where each SEO tag property (`\"name\"`, `\"content\"`, `\"rel\"`, `\"href\"`) contains a value.\n * For example: `{\"name\": \"description\", \"content\": \"the description itself\"}`.\n */\n props?: Record<string, any> | null;\n /** SEO tag metadata. For example, `{\"height\": 300, \"width\": 240}`. */\n meta?: Record<string, any> | null;\n /** SEO tag inner content. For example, `<title> inner content </title>`. */\n children?: string;\n /** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */\n custom?: boolean;\n /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */\n disabled?: boolean;\n}\n\n/** Which pattern is in effect for a page type. */\nexport enum PatternSource {\n /** Unknown source. */\n PATTERN_SOURCE_UNSPECIFIED = 'PATTERN_SOURCE_UNSPECIFIED',\n /** The site has a pattern of its own for the page type, returned in `pattern`. */\n PATTERN_SOURCE_USER = 'PATTERN_SOURCE_USER',\n /**\n * The site has no pattern of its own for the page type, so the Wix default in\n * `defaultPattern` applies.\n */\n PATTERN_SOURCE_DEFAULT = 'PATTERN_SOURCE_DEFAULT',\n}\n\n/** @enumType */\nexport type PatternSourceWithLiterals =\n | PatternSource\n | 'PATTERN_SOURCE_UNSPECIFIED'\n | 'PATTERN_SOURCE_USER'\n | 'PATTERN_SOURCE_DEFAULT';\n\n/**\n * What made a change to a site's SEO tags or patterns. Derived from the caller, not from\n * the request.\n */\nexport enum Origin {\n /**\n * Unknown origin. Returned by read methods, because origin isn't stored alongside the\n * data it describes.\n */\n ORIGIN_UNSPECIFIED = 'ORIGIN_UNSPECIFIED',\n /** A user, working in the dashboard or editor, or calling the API on their own behalf. */\n ORIGIN_USER = 'ORIGIN_USER',\n /** The flow that imports an existing site into Wix. */\n ORIGIN_MIGRATION = 'ORIGIN_MIGRATION',\n /** An AI agent or an automated suggestion flow. */\n ORIGIN_AI = 'ORIGIN_AI',\n}\n\n/** @enumType */\nexport type OriginWithLiterals =\n | Origin\n | 'ORIGIN_UNSPECIFIED'\n | 'ORIGIN_USER'\n | 'ORIGIN_MIGRATION'\n | 'ORIGIN_AI';\n\nexport interface GetSeoPatternRequest {\n /**\n * Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n */\n pageType: string;\n /**\n * ID of a single page built from a Wix Data collection, to retrieve the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one\n * pattern for the type, and passing a page ID for one of those fails with\n * `PAGE_ID_NOT_SUPPORTED`.\n * @maxLength 200\n */\n pageId?: string | null;\n /**\n * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.\n *\n * To address a single page built from a Wix Data collection, pass its `pageId`.\n * @maxLength 200\n */\n collectionName?: string | null;\n}\n\nexport interface GetSeoPatternResponse {\n /**\n * The page type's pattern: the site's own pattern, the Wix default, and which of the\n * two is in effect.\n */\n seoPattern?: SeoPattern;\n}\n\nexport interface ListSeoPatternsRequest {}\n\nexport interface ListSeoPatternsResponse {\n /**\n * The patterns stored for the site, one per page type.\n *\n * A page type that has never had a pattern stored isn't included. A page type that was\n * reset to its Wix default is included, with an empty `pattern`.\n * @maxSize 200\n */\n seoPatterns?: SeoPattern[];\n}\n\nexport interface ListSeoPatternVariablesRequest {\n /**\n * Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n */\n pageType: string;\n}\n\nexport interface ListSeoPatternVariablesResponse {\n /**\n * Variables a pattern for this page type may use in its tags. For example,\n * `{{product.name}}` in a title template.\n * @maxSize 500\n */\n variables?: SeoPatternVariable[];\n /**\n * Variables a pattern for this page type may use in its structured data tags.\n *\n * A pattern may use these as well as the variables in `variables`.\n * @maxSize 500\n */\n structuredDataVariables?: SeoPatternVariable[];\n}\n\n/**\n * A variable a pattern may reference, which is replaced with an item's own value when its\n * page renders.\n */\nexport interface SeoPatternVariable {\n /**\n * Name of the variable, without the surrounding braces. For example, `product.name`,\n * which a pattern references as `{{product.name}}`.\n * @maxLength 200\n */\n key?: string;\n /**\n * Whether Wix offers this variable to site owners editing the pattern in the dashboard.\n *\n * `false` doesn't prevent a pattern from using the variable. It marks a variable Wix\n * keeps out of the dashboard's list, typically because it's only meaningful in specific\n * cases.\n */\n userVisible?: boolean;\n}\n\nexport interface CreateSeoPatternRequest {\n /**\n * Page type whose pattern to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n */\n pageType: string;\n /**\n * Pattern to create for the page type.\n *\n * `pattern` is the only field to send. The page type comes from the request path, and\n * every other field is read-only. To create a pattern for a single page built from a\n * Wix Data collection, set `pageId`.\n */\n seoPattern: SeoPattern;\n}\n\nexport interface CreateSeoPatternResponse {\n /**\n * The created pattern, with `source` reporting that the site's own pattern is now in\n * effect.\n */\n seoPattern?: SeoPattern;\n}\n\nexport interface SetSeoPatternRequest {\n /**\n * Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n */\n pageType: string;\n /**\n * Pattern to set for the page type.\n *\n * `pattern` is the only writable field, and setting it replaces the page type's tag\n * templates in full. Sending an empty pattern clears it, which returns the page type to\n * its Wix default.\n */\n seoPattern: SeoPattern;\n /**\n * Fields to update.\n *\n * Required, and must name only writable fields. An empty field mask, an unknown field,\n * or a read-only field fails with `INVALID_FIELD_MASK`.\n */\n fieldMask: string[];\n /**\n * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.\n *\n * To address a single page built from a Wix Data collection, pass its `pageId`.\n * @maxLength 200\n */\n collectionName?: string | null;\n /**\n * ID of a single page built from a Wix Data collection, to change the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one\n * pattern for the type, and passing a page ID for one of those fails with\n * `PAGE_ID_NOT_SUPPORTED`.\n * @maxLength 200\n */\n pageId?: string | null;\n}\n\nexport interface SetSeoPatternResponse {\n /** The updated pattern. */\n seoPattern?: SeoPattern;\n}\n\nexport interface ResetSeoPatternToDefaultRequest {\n /**\n * Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n */\n pageType: string;\n /**\n * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.\n *\n * To address a single page built from a Wix Data collection, pass its `pageId`.\n * @maxLength 200\n */\n collectionName?: string | null;\n /**\n * ID of a single page built from a Wix Data collection, to reset the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one\n * pattern for the type, and passing a page ID for one of those fails with\n * `PAGE_ID_NOT_SUPPORTED`.\n * @maxLength 200\n */\n pageId?: string | null;\n}\n\nexport interface ResetSeoPatternToDefaultResponse {\n /**\n * The page type after the reset: an empty `pattern`, and `source` of\n * `PATTERN_SOURCE_DEFAULT`.\n */\n seoPattern?: SeoPattern;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type GetSeoPatternApplicationErrors = {\n code?: 'UNSUPPORTED_PAGE_TYPE';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ListSeoPatternVariablesApplicationErrors = {\n code?: 'UNSUPPORTED_PAGE_TYPE';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CreateSeoPatternApplicationErrors =\n | {\n code?: 'UNSUPPORTED_PAGE_TYPE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_PATTERN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PATTERN_ALREADY_EXISTS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetSeoPatternApplicationErrors =\n | {\n code?: 'UNSUPPORTED_PAGE_TYPE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_PATTERN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_FIELD_MASK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PATTERN_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ResetSeoPatternToDefaultApplicationErrors =\n | {\n code?: 'UNSUPPORTED_PAGE_TYPE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PATTERN_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n };\n\n/**\n * Retrieves the SEO pattern in effect for a page type.\n *\n * The response contains both the site's own pattern, which is empty when the site has\n * none, and the Wix default, with `source` reporting which of the two is in effect. A\n * page type with no pattern of its own isn't an error.\n *\n * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't\n * installed on the site.\n * @param pageType - Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @public\n * @documentationMaturity preview\n * @requiredField pageType\n * @permissionId wix-seo.read\n * @applicableIdentity APP\n * @applicableIdentity MEMBER\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.GetSeoPattern\n */\nexport async function getSeoPattern(\n pageType: string,\n options?: GetSeoPatternOptions\n): Promise<\n NonNullablePaths<\n GetSeoPatternResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: GetSeoPatternApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pageType: pageType,\n pageId: options?.pageId,\n collectionName: options?.collectionName,\n });\n\n const reqOpts = ambassadorWixPromoteSeoV1SeoPattern.getSeoPattern(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n pageType: '$[0]',\n pageId: '$[1].pageId',\n collectionName: '$[1].collectionName',\n },\n singleArgumentUnchanged: false,\n },\n ['pageType', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetSeoPatternOptions {\n /**\n * ID of a single page built from a Wix Data collection, to retrieve the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one\n * pattern for the type, and passing a page ID for one of those fails with\n * `PAGE_ID_NOT_SUPPORTED`.\n * @maxLength 200\n */\n pageId?: string | null;\n /**\n * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.\n *\n * To address a single page built from a Wix Data collection, pass its `pageId`.\n * @maxLength 200\n */\n collectionName?: string | null;\n}\n\n/**\n * Retrieves the patterns stored for a site, one per page type.\n *\n * Only page types that have had a pattern stored are returned, so this isn't an\n * inventory of a site's page types: a page type still on its Wix default is absent.\n * A page type that was reset to its default remains in the list, with an empty\n * `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.\n *\n * The response isn't paged. A site has a bounded number of page types, and all of them\n * are returned in one call.\n * @public\n * @documentationMaturity preview\n * @permissionId wix-seo.read\n * @applicableIdentity APP\n * @applicableIdentity MEMBER\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ListSeoPatterns\n */\nexport async function listSeoPatterns(): Promise<\n NonNullablePaths<\n ListSeoPatternsResponse,\n | `seoPatterns`\n | `seoPatterns.${number}.pageType`\n | `seoPatterns.${number}.source`\n | `seoPatterns.${number}.origin`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixPromoteSeoV1SeoPattern.listSeoPatterns(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves the variables a pattern for a page type may reference.\n *\n * A pattern may reference only the variables its page type offers, so call this method\n * before writing a pattern. A pattern referencing any other variable is rejected with\n * `INVALID_PATTERN`.\n *\n * Variables for the page's own tags and variables for its structured data are returned\n * in separate fields, and a pattern may use either.\n *\n * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't\n * installed on the site.\n * @param pageType - Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @public\n * @documentationMaturity preview\n * @requiredField pageType\n * @permissionId wix-seo.read\n * @applicableIdentity APP\n * @applicableIdentity MEMBER\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ListSeoPatternVariables\n */\nexport async function listSeoPatternVariables(pageType: string): Promise<\n NonNullablePaths<\n ListSeoPatternVariablesResponse,\n | `variables`\n | `variables.${number}.key`\n | `variables.${number}.userVisible`\n | `structuredDataVariables`\n | `structuredDataVariables.${number}.key`\n | `structuredDataVariables.${number}.userVisible`,\n 4\n > & {\n __applicationErrorsType?: ListSeoPatternVariablesApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ pageType: pageType });\n\n const reqOpts =\n ambassadorWixPromoteSeoV1SeoPattern.listSeoPatternVariables(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageType: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pageType']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a pattern for a page type that's still on its Wix default.\n *\n * The pattern must contain at least one tag. An empty pattern is stored and read back\n * as no pattern at all, so it's rejected rather than saved as a pattern that does\n * nothing. To leave a page type on its Wix default, create nothing for it.\n *\n * To change a pattern that already exists, call Set SEO Pattern. Creating a second\n * pattern for the same page type fails with `PATTERN_ALREADY_EXISTS`.\n *\n * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't\n * installed on the site.\n * @param pageType - Page type whose pattern to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @param seoPattern - Pattern to create for the page type.\n *\n * `pattern` is the only field to send. The page type comes from the request path, and\n * every other field is read-only. To create a pattern for a single page built from a\n * Wix Data collection, set `pageId`.\n * @public\n * @documentationMaturity preview\n * @requiredField pageType\n * @requiredField seoPattern\n * @permissionId wix-seo.edit\n * @applicableIdentity APP\n * @returns The created pattern, with `source` reporting that the site's own pattern is now in\n * effect.\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.CreateSeoPattern\n */\nexport async function createSeoPattern(\n pageType: string,\n seoPattern: SeoPattern\n): Promise<\n NonNullablePaths<\n SeoPattern,\n | `pageType`\n | `pattern.tags`\n | `pattern.tags.${number}.type`\n | `pattern.tags.${number}.children`\n | `pattern.tags.${number}.custom`\n | `pattern.tags.${number}.disabled`\n | `source`\n | `origin`,\n 5\n > & {\n __applicationErrorsType?: CreateSeoPatternApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pageType: pageType,\n seoPattern: seoPattern,\n });\n\n const reqOpts = ambassadorWixPromoteSeoV1SeoPattern.createSeoPattern(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.seoPattern!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageType: '$[0]', seoPattern: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['pageType', 'seoPattern']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Changes the pattern a site has for a page type.\n *\n * Setting `pattern` replaces the page type's tag templates in full, so retrieve the\n * pattern first and send back the complete set you want it to have. Sending an empty\n * pattern clears it, which returns the page type to its Wix default.\n *\n * This method changes a pattern that already exists rather than creating one, so a page\n * type still on its Wix default fails with `PATTERN_NOT_FOUND`. Call Create SEO Pattern\n * for it instead.\n *\n * A pattern has no revision, and the site's SEO settings in the dashboard write to the\n * same pattern. The last write wins, so retrieve the pattern immediately before writing\n * it.\n * @param pageType - Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @param seoPattern - Pattern to set for the page type.\n *\n * `pattern` is the only writable field, and setting it replaces the page type's tag\n * templates in full. Sending an empty pattern clears it, which returns the page type to\n * its Wix default.\n * @public\n * @documentationMaturity preview\n * @requiredField options.fieldMask\n * @requiredField pageType\n * @requiredField seoPattern\n * @permissionId wix-seo.edit\n * @applicableIdentity APP\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.SetSeoPattern\n */\nexport async function setSeoPattern(\n pageType: string,\n seoPattern: SeoPattern,\n options?: NonNullablePaths<SetSeoPatternOptions, `fieldMask`, 2>\n): Promise<\n NonNullablePaths<\n SetSeoPatternResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: SetSeoPatternApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pageType: pageType,\n seoPattern: seoPattern,\n fieldMask: options?.fieldMask,\n collectionName: options?.collectionName,\n pageId: options?.pageId,\n });\n\n const reqOpts = ambassadorWixPromoteSeoV1SeoPattern.setSeoPattern(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n pageType: '$[0]',\n seoPattern: '$[1]',\n fieldMask: '$[2].fieldMask',\n collectionName: '$[2].collectionName',\n pageId: '$[2].pageId',\n },\n singleArgumentUnchanged: false,\n },\n ['pageType', 'seoPattern', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SetSeoPatternOptions {\n /**\n * Fields to update.\n *\n * Required, and must name only writable fields. An empty field mask, an unknown field,\n * or a read-only field fails with `INVALID_FIELD_MASK`.\n */\n fieldMask: string[];\n /**\n * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.\n *\n * To address a single page built from a Wix Data collection, pass its `pageId`.\n * @maxLength 200\n */\n collectionName?: string | null;\n /**\n * ID of a single page built from a Wix Data collection, to change the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one\n * pattern for the type, and passing a page ID for one of those fails with\n * `PAGE_ID_NOT_SUPPORTED`.\n * @maxLength 200\n */\n pageId?: string | null;\n}\n\n/**\n * Removes the pattern a site has for a page type, so the Wix default applies again.\n *\n * The response reports the page type after the reset, with an empty `pattern` and\n * `source` of `PATTERN_SOURCE_DEFAULT`. The page type remains in the response of List\n * SEO Patterns, with the same empty pattern.\n *\n * Fails with `PATTERN_NOT_FOUND` if the page type is already on its Wix default, so\n * there's nothing to reset.\n * @param pageType - Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @public\n * @documentationMaturity preview\n * @requiredField pageType\n * @permissionId wix-seo.edit\n * @applicableIdentity APP\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ResetSeoPatternToDefault\n */\nexport async function resetSeoPatternToDefault(\n pageType: string,\n options?: ResetSeoPatternToDefaultOptions\n): Promise<\n NonNullablePaths<\n ResetSeoPatternToDefaultResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: ResetSeoPatternToDefaultApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pageType: pageType,\n collectionName: options?.collectionName,\n pageId: options?.pageId,\n });\n\n const reqOpts =\n ambassadorWixPromoteSeoV1SeoPattern.resetSeoPatternToDefault(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n pageType: '$[0]',\n collectionName: '$[1].collectionName',\n pageId: '$[1].pageId',\n },\n singleArgumentUnchanged: false,\n },\n ['pageType', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ResetSeoPatternToDefaultOptions {\n /**\n * Not supported yet. Passing a value fails with `COLLECTION_NAME_NOT_SUPPORTED`.\n *\n * To address a single page built from a Wix Data collection, pass its `pageId`.\n * @maxLength 200\n */\n collectionName?: string | null;\n /**\n * ID of a single page built from a Wix Data collection, to reset the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type. Every other page type has one\n * pattern for the type, and passing a page ID for one of those fails with\n * `PAGE_ID_NOT_SUPPORTED`.\n * @maxLength 200\n */\n pageId?: string | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/seo-metatags-server',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/seo-metatags-server',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_seo_seo-patterns';\n\n/**\n * Retrieves the SEO pattern in effect for a page type.\n *\n * The response contains both the site's own pattern, which is empty when the site has\n * none, and the Wix default, with `source` reporting which of the two is in effect. A\n * page type with no pattern of its own isn't an error.\n *\n * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't\n * installed on the site.\n */\nexport function getSeoPattern(payload: object): RequestOptionsFactory<any> {\n function __getSeoPattern({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'GET' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.GetSeoPattern',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns/{pageType}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getSeoPattern;\n}\n\n/**\n * Retrieves the patterns stored for a site, one per page type.\n *\n * Only page types that have had a pattern stored are returned, so this isn't an\n * inventory of a site's page types: a page type still on its Wix default is absent.\n * A page type that was reset to its default remains in the list, with an empty\n * `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.\n *\n * The response isn't paged. A site has a bounded number of page types, and all of them\n * are returned in one call.\n */\nexport function listSeoPatterns(payload: object): RequestOptionsFactory<any> {\n function __listSeoPatterns({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'GET' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ListSeoPatterns',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listSeoPatterns;\n}\n\n/**\n * Retrieves the variables a pattern for a page type may reference.\n *\n * A pattern may reference only the variables its page type offers, so call this method\n * before writing a pattern. A pattern referencing any other variable is rejected with\n * `INVALID_PATTERN`.\n *\n * Variables for the page's own tags and variables for its structured data are returned\n * in separate fields, and a pattern may use either.\n *\n * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't\n * installed on the site.\n */\nexport function listSeoPatternVariables(\n payload: object\n): RequestOptionsFactory<any> {\n function __listSeoPatternVariables({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'GET' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ListSeoPatternVariables',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns/{pageType}/variables',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listSeoPatternVariables;\n}\n\n/**\n * Creates a pattern for a page type that's still on its Wix default.\n *\n * The pattern must contain at least one tag. An empty pattern is stored and read back\n * as no pattern at all, so it's rejected rather than saved as a pattern that does\n * nothing. To leave a page type on its Wix default, create nothing for it.\n *\n * To change a pattern that already exists, call Set SEO Pattern. Creating a second\n * pattern for the same page type fails with `PATTERN_ALREADY_EXISTS`.\n *\n * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't\n * installed on the site.\n */\nexport function createSeoPattern(payload: object): RequestOptionsFactory<any> {\n function __createSeoPattern({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'POST' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.CreateSeoPattern',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns/{pageType}',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createSeoPattern;\n}\n\n/**\n * Changes the pattern a site has for a page type.\n *\n * Setting `pattern` replaces the page type's tag templates in full, so retrieve the\n * pattern first and send back the complete set you want it to have. Sending an empty\n * pattern clears it, which returns the page type to its Wix default.\n *\n * This method changes a pattern that already exists rather than creating one, so a page\n * type still on its Wix default fails with `PATTERN_NOT_FOUND`. Call Create SEO Pattern\n * for it instead.\n *\n * A pattern has no revision, and the site's SEO settings in the dashboard write to the\n * same pattern. The last write wins, so retrieve the pattern immediately before writing\n * it.\n */\nexport function setSeoPattern(payload: object): RequestOptionsFactory<any> {\n function __setSeoPattern({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.SetSeoPattern',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns/{pageType}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __setSeoPattern;\n}\n\n/**\n * Removes the pattern a site has for a page type, so the Wix default applies again.\n *\n * The response reports the page type after the reset, with an empty `pattern` and\n * `source` of `PATTERN_SOURCE_DEFAULT`. The page type remains in the response of List\n * SEO Patterns, with the same empty pattern.\n *\n * Fails with `PATTERN_NOT_FOUND` if the page type is already on its Wix default, so\n * there's nothing to reset.\n */\nexport function resetSeoPatternToDefault(\n payload: object\n): RequestOptionsFactory<any> {\n function __resetSeoPatternToDefault({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'POST' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ResetSeoPatternToDefault',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns/{pageType}/reset-to-default',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __resetSeoPatternToDefault;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateSeoPatternApplicationErrors,\n GetSeoPatternApplicationErrors,\n GetSeoPatternOptions,\n GetSeoPatternResponse,\n ListSeoPatternVariablesApplicationErrors,\n ListSeoPatternVariablesResponse,\n ListSeoPatternsResponse,\n ResetSeoPatternToDefaultApplicationErrors,\n ResetSeoPatternToDefaultOptions,\n ResetSeoPatternToDefaultResponse,\n SeoPattern,\n SetSeoPatternApplicationErrors,\n SetSeoPatternOptions,\n SetSeoPatternResponse,\n createSeoPattern as universalCreateSeoPattern,\n getSeoPattern as universalGetSeoPattern,\n listSeoPatternVariables as universalListSeoPatternVariables,\n listSeoPatterns as universalListSeoPatterns,\n resetSeoPatternToDefault as universalResetSeoPatternToDefault,\n setSeoPattern as universalSetSeoPattern,\n} from './promote-seo-v1-seo-pattern-seo-patterns.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/seo' };\n\nexport function getSeoPattern(httpClient: HttpClient): GetSeoPatternSignature {\n return (pageType: string, options?: GetSeoPatternOptions) =>\n universalGetSeoPattern(\n pageType,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSeoPatternSignature {\n /**\n * Retrieves the SEO pattern in effect for a page type.\n *\n * The response contains both the site's own pattern, which is empty when the site has\n * none, and the Wix default, with `source` reporting which of the two is in effect. A\n * page type with no pattern of its own isn't an error.\n *\n * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't\n * installed on the site.\n * @param - Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n */\n (pageType: string, options?: GetSeoPatternOptions): Promise<\n NonNullablePaths<\n GetSeoPatternResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: GetSeoPatternApplicationErrors;\n }\n >;\n}\n\nexport function listSeoPatterns(\n httpClient: HttpClient\n): ListSeoPatternsSignature {\n return () =>\n universalListSeoPatterns(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListSeoPatternsSignature {\n /**\n * Retrieves the patterns stored for a site, one per page type.\n *\n * Only page types that have had a pattern stored are returned, so this isn't an\n * inventory of a site's page types: a page type still on its Wix default is absent.\n * A page type that was reset to its default remains in the list, with an empty\n * `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.\n *\n * The response isn't paged. A site has a bounded number of page types, and all of them\n * are returned in one call.\n */\n (): Promise<\n NonNullablePaths<\n ListSeoPatternsResponse,\n | `seoPatterns`\n | `seoPatterns.${number}.pageType`\n | `seoPatterns.${number}.source`\n | `seoPatterns.${number}.origin`,\n 4\n >\n >;\n}\n\nexport function listSeoPatternVariables(\n httpClient: HttpClient\n): ListSeoPatternVariablesSignature {\n return (pageType: string) =>\n universalListSeoPatternVariables(\n pageType,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListSeoPatternVariablesSignature {\n /**\n * Retrieves the variables a pattern for a page type may reference.\n *\n * A pattern may reference only the variables its page type offers, so call this method\n * before writing a pattern. A pattern referencing any other variable is rejected with\n * `INVALID_PATTERN`.\n *\n * Variables for the page's own tags and variables for its structured data are returned\n * in separate fields, and a pattern may use either.\n *\n * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't\n * installed on the site.\n * @param - Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n */\n (pageType: string): Promise<\n NonNullablePaths<\n ListSeoPatternVariablesResponse,\n | `variables`\n | `variables.${number}.key`\n | `variables.${number}.userVisible`\n | `structuredDataVariables`\n | `structuredDataVariables.${number}.key`\n | `structuredDataVariables.${number}.userVisible`,\n 4\n > & {\n __applicationErrorsType?: ListSeoPatternVariablesApplicationErrors;\n }\n >;\n}\n\nexport function createSeoPattern(\n httpClient: HttpClient\n): CreateSeoPatternSignature {\n return (pageType: string, seoPattern: SeoPattern) =>\n universalCreateSeoPattern(\n pageType,\n seoPattern,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateSeoPatternSignature {\n /**\n * Creates a pattern for a page type that's still on its Wix default.\n *\n * The pattern must contain at least one tag. An empty pattern is stored and read back\n * as no pattern at all, so it's rejected rather than saved as a pattern that does\n * nothing. To leave a page type on its Wix default, create nothing for it.\n *\n * To change a pattern that already exists, call Set SEO Pattern. Creating a second\n * pattern for the same page type fails with `PATTERN_ALREADY_EXISTS`.\n *\n * Fails with `PAGE_TYPE_NOT_ON_SITE` if the page type comes from a Wix app that isn't\n * installed on the site.\n * @param - Page type whose pattern to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @param - Pattern to create for the page type.\n *\n * `pattern` is the only field to send. The page type comes from the request path, and\n * every other field is read-only. To create a pattern for a single page built from a\n * Wix Data collection, set `pageId`.\n * @returns The created pattern, with `source` reporting that the site's own pattern is now in\n * effect.\n */\n (pageType: string, seoPattern: SeoPattern): Promise<\n NonNullablePaths<\n SeoPattern,\n | `pageType`\n | `pattern.tags`\n | `pattern.tags.${number}.type`\n | `pattern.tags.${number}.children`\n | `pattern.tags.${number}.custom`\n | `pattern.tags.${number}.disabled`\n | `source`\n | `origin`,\n 5\n > & {\n __applicationErrorsType?: CreateSeoPatternApplicationErrors;\n }\n >;\n}\n\nexport function setSeoPattern(httpClient: HttpClient): SetSeoPatternSignature {\n return (\n pageType: string,\n seoPattern: SeoPattern,\n options?: NonNullablePaths<SetSeoPatternOptions, `fieldMask`, 2>\n ) =>\n universalSetSeoPattern(\n pageType,\n seoPattern,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SetSeoPatternSignature {\n /**\n * Changes the pattern a site has for a page type.\n *\n * Setting `pattern` replaces the page type's tag templates in full, so retrieve the\n * pattern first and send back the complete set you want it to have. Sending an empty\n * pattern clears it, which returns the page type to its Wix default.\n *\n * This method changes a pattern that already exists rather than creating one, so a page\n * type still on its Wix default fails with `PATTERN_NOT_FOUND`. Call Create SEO Pattern\n * for it instead.\n *\n * A pattern has no revision, and the site's SEO settings in the dashboard write to the\n * same pattern. The last write wins, so retrieve the pattern immediately before writing\n * it.\n * @param - Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @param - Pattern to set for the page type.\n *\n * `pattern` is the only writable field, and setting it replaces the page type's tag\n * templates in full. Sending an empty pattern clears it, which returns the page type to\n * its Wix default.\n */\n (\n pageType: string,\n seoPattern: SeoPattern,\n options?: NonNullablePaths<SetSeoPatternOptions, `fieldMask`, 2>\n ): Promise<\n NonNullablePaths<\n SetSeoPatternResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: SetSeoPatternApplicationErrors;\n }\n >;\n}\n\nexport function resetSeoPatternToDefault(\n httpClient: HttpClient\n): ResetSeoPatternToDefaultSignature {\n return (pageType: string, options?: ResetSeoPatternToDefaultOptions) =>\n universalResetSeoPatternToDefault(\n pageType,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ResetSeoPatternToDefaultSignature {\n /**\n * Removes the pattern a site has for a page type, so the Wix default applies again.\n *\n * The response reports the page type after the reset, with an empty `pattern` and\n * `source` of `PATTERN_SOURCE_DEFAULT`. The page type remains in the response of List\n * SEO Patterns, with the same empty pattern.\n *\n * Fails with `PATTERN_NOT_FOUND` if the page type is already on its Wix default, so\n * there's nothing to reset.\n * @param - Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n */\n (pageType: string, options?: ResetSeoPatternToDefaultOptions): Promise<\n NonNullablePaths<\n ResetSeoPatternToDefaultResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: ResetSeoPatternToDefaultApplicationErrors;\n }\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n CreateSeoPatternRequest,\n CreateSeoPatternResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n GetSeoPatternOptions,\n GetSeoPatternRequest,\n GetSeoPatternResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListSeoPatternVariablesRequest,\n ListSeoPatternVariablesResponse,\n ListSeoPatternsRequest,\n ListSeoPatternsResponse,\n MessageEnvelope,\n Origin,\n PatternSource,\n ResetSeoPatternToDefaultOptions,\n ResetSeoPatternToDefaultRequest,\n ResetSeoPatternToDefaultResponse,\n RestoreInfo,\n SeoPattern,\n SeoPatternBlob,\n SeoPatternVariable,\n SetSeoPatternOptions,\n SetSeoPatternRequest,\n SetSeoPatternResponse,\n Tag,\n WebhookIdentityType,\n} from './promote-seo-v1-seo-pattern-seo-patterns.universal.js';\n","import {\n getSeoPattern as publicGetSeoPattern,\n listSeoPatterns as publicListSeoPatterns,\n listSeoPatternVariables as publicListSeoPatternVariables,\n createSeoPattern as publicCreateSeoPattern,\n setSeoPattern as publicSetSeoPattern,\n resetSeoPatternToDefault as publicResetSeoPatternToDefault,\n} from './promote-seo-v1-seo-pattern-seo-patterns.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getSeoPattern: MaybeContext<\n BuildRESTFunction<typeof publicGetSeoPattern> & typeof publicGetSeoPattern\n> = /*#__PURE__*/ createRESTModule(publicGetSeoPattern);\nexport const listSeoPatterns: MaybeContext<\n BuildRESTFunction<typeof publicListSeoPatterns> & typeof publicListSeoPatterns\n> = /*#__PURE__*/ createRESTModule(publicListSeoPatterns);\nexport const listSeoPatternVariables: MaybeContext<\n BuildRESTFunction<typeof publicListSeoPatternVariables> &\n typeof publicListSeoPatternVariables\n> = /*#__PURE__*/ createRESTModule(publicListSeoPatternVariables);\nexport const createSeoPattern: MaybeContext<\n BuildRESTFunction<typeof publicCreateSeoPattern> &\n typeof publicCreateSeoPattern\n> = /*#__PURE__*/ createRESTModule(publicCreateSeoPattern);\nexport const setSeoPattern: MaybeContext<\n BuildRESTFunction<typeof publicSetSeoPattern> & typeof publicSetSeoPattern\n> = /*#__PURE__*/ createRESTModule(publicSetSeoPattern);\nexport const resetSeoPatternToDefault: MaybeContext<\n BuildRESTFunction<typeof publicResetSeoPatternToDefault> &\n typeof publicResetSeoPatternToDefault\n> = /*#__PURE__*/ createRESTModule(publicResetSeoPatternToDefault);\n\nexport {\n PatternSource,\n Origin,\n WebhookIdentityType,\n} from './promote-seo-v1-seo-pattern-seo-patterns.universal.js';\nexport {\n SeoPattern,\n SeoPatternBlob,\n Tag,\n GetSeoPatternRequest,\n GetSeoPatternResponse,\n ListSeoPatternsRequest,\n ListSeoPatternsResponse,\n ListSeoPatternVariablesRequest,\n ListSeoPatternVariablesResponse,\n SeoPatternVariable,\n CreateSeoPatternRequest,\n CreateSeoPatternResponse,\n SetSeoPatternRequest,\n SetSeoPatternResponse,\n ResetSeoPatternToDefaultRequest,\n ResetSeoPatternToDefaultResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n GetSeoPatternOptions,\n SetSeoPatternOptions,\n ResetSeoPatternToDefaultOptions,\n} from './promote-seo-v1-seo-pattern-seo-patterns.universal.js';\nexport {\n PatternSourceWithLiterals,\n OriginWithLiterals,\n WebhookIdentityTypeWithLiterals,\n GetSeoPatternApplicationErrors,\n ListSeoPatternVariablesApplicationErrors,\n CreateSeoPatternApplicationErrors,\n SetSeoPatternApplicationErrors,\n ResetSeoPatternToDefaultApplicationErrors,\n} from './promote-seo-v1-seo-pattern-seo-patterns.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,qBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,wB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,CAAC,UAAkB,eACxBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA2CO,SAASC,eAAc,YAAgD;AAC5E,SAAO,CACL,UACA,YACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA+CO,SAASC,0BACd,YACmC;AACnC,SAAO,CAAC,UAAkB,YACxBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACnQA,IAAAC,uBAAiC;AAG1B,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,2BAGK,2DAAiBA,wBAA6B;AACzD,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,4BAGK,2DAAiBA,yBAA8B;","names":["createSeoPattern","getSeoPattern","listSeoPatternVariables","listSeoPatterns","resetSeoPatternToDefault","setSeoPattern","import_rest_modules","PatternSource","Origin","WebhookIdentityType","getSeoPattern","sdkTransformError","listSeoPatterns","listSeoPatternVariables","createSeoPattern","setSeoPattern","resetSeoPatternToDefault","getSeoPattern","listSeoPatterns","listSeoPatternVariables","createSeoPattern","setSeoPattern","resetSeoPatternToDefault","import_rest_modules","getSeoPattern","listSeoPatterns","listSeoPatternVariables","createSeoPattern","setSeoPattern","resetSeoPatternToDefault"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/promote-seo-v1-seo-pattern-seo-patterns.universal.ts","../../src/promote-seo-v1-seo-pattern-seo-patterns.http.ts","../../src/promote-seo-v1-seo-pattern-seo-patterns.public.ts","../../src/promote-seo-v1-seo-pattern-seo-patterns.context.ts"],"sourcesContent":["export * from './src/promote-seo-v1-seo-pattern-seo-patterns.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPromoteSeoV1SeoPattern from './promote-seo-v1-seo-pattern-seo-patterns.http.js';\n\n/**\n * An SEO pattern is a template of SEO tags defined for one page type, such as every blog\n * post or every store product. A pattern's tags may contain variables, written as\n * `{{variable}}`, that are filled in with each item's own values when its page renders,\n * so a Wix user sets the tags for a whole page type once instead of item by item.\n *\n * Every page type always has a pattern in effect. When a site has no pattern of its own\n * for a page type, the built-in Wix default applies, and `source` reports which of the\n * two is in effect.\n *\n * A change to a pattern reaches the live site without a site publish, and applies to\n * every page of that type that has no SEO tags set for the item itself.\n */\nexport interface SeoPattern {\n /**\n * SEO pattern ID, in the format `{pageType}`.\n *\n * For a pattern that applies to a single page built from a Wix Data collection, the\n * format is `{pageType}:{pageId}`.\n * @readonly\n * @maxLength 400\n */\n _id?: string | null;\n /**\n * Page type the pattern applies to. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n * @readonly\n */\n pageType?: string;\n /**\n * ID of a single page built from a Wix Data collection, when the pattern applies to\n * that page alone rather than to the whole page type.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type.\n * @maxLength 200\n */\n pageId?: string | null;\n /**\n * The site's own pattern for the page type, which takes precedence over the Wix\n * default.\n *\n * Empty when the site has no pattern of its own, in which case `defaultPattern`\n * applies.\n */\n pattern?: SeoPatternBlob;\n /**\n * The pattern Wix provides for the page type, which applies whenever the site has no\n * pattern of its own.\n *\n * Always returned, so you can see what a reset would restore.\n * @readonly\n */\n defaultPattern?: SeoPatternBlob;\n /**\n * Which pattern is in effect for the page type: the site's own, or the Wix default.\n * @readonly\n */\n source?: PatternSourceWithLiterals;\n /**\n * Language the pattern applies to, as an IETF BCP 47 language tag. For example,\n * `en-US` for U.S. English.\n *\n * A page type has a single pattern, so this reports the site's primary language.\n * @maxLength 100\n * @readonly\n */\n language?: string | null;\n /**\n * What made the most recent change to the pattern, for example a Wix user or the site\n * migration flow. Derived from the caller, not from the request.\n *\n * Reported only on the response to a write, and on the event the write emits. It isn't\n * stored with the pattern, so Get SEO Pattern and List SEO Patterns always report\n * `ORIGIN_UNSPECIFIED`, as does a write by a caller Wix doesn't identify as a specific\n * origin.\n * @readonly\n */\n origin?: OriginWithLiterals;\n}\n\n/**\n * A set of SEO tag templates.\n *\n * Each tag has the same structure as a rendered SEO tag, except that its values may\n * contain `{{variable}}` placeholders, which are replaced with an item's own values when\n * its page renders.\n */\nexport interface SeoPatternBlob {\n /**\n * The pattern's SEO tag templates.\n *\n * A tag may reference only the variables the page type offers. Call [List SEO Pattern\n * Variables](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/list-seo-pattern-variables)\n * for the page type to retrieve them.\n *\n * A tag whose `disabled` or `custom` value is itself a variable is returned with that\n * value unset, because those fields are booleans. The behavior still applies when the\n * page renders.\n * @maxSize 100\n */\n tags?: Tag[];\n}\n\nexport interface Tag {\n /**\n * SEO tag type.\n *\n *\n * Supported values: `title`, `meta`, `script`, `link`.\n */\n type?: string;\n /**\n * A `{\"key\": \"value\"}` pair object where each SEO tag property (`\"name\"`, `\"content\"`, `\"rel\"`, `\"href\"`) contains a value.\n * For example: `{\"name\": \"description\", \"content\": \"the description itself\"}`.\n */\n props?: Record<string, any> | null;\n /** SEO tag metadata. For example, `{\"height\": 300, \"width\": 240}`. */\n meta?: Record<string, any> | null;\n /** SEO tag inner content. For example, `<title> inner content </title>`. */\n children?: string;\n /**\n * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n *\n * Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\n * only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\n * or Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\n * those pages `false` therefore does not mean \"not a custom tag\" — it means this API could not tell.\n * Pass `seoData` explicitly to resolve against a known set of tags.\n */\n custom?: boolean;\n /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */\n disabled?: boolean;\n}\n\n/** Which pattern is in effect for a page type. */\nexport enum PatternSource {\n /** Unknown source. */\n PATTERN_SOURCE_UNSPECIFIED = 'PATTERN_SOURCE_UNSPECIFIED',\n /** The site has a pattern of its own for the page type, returned in `pattern`. */\n PATTERN_SOURCE_USER = 'PATTERN_SOURCE_USER',\n /**\n * The site has no pattern of its own for the page type, so the Wix default in\n * `defaultPattern` applies.\n */\n PATTERN_SOURCE_DEFAULT = 'PATTERN_SOURCE_DEFAULT',\n}\n\n/** @enumType */\nexport type PatternSourceWithLiterals =\n | PatternSource\n | 'PATTERN_SOURCE_UNSPECIFIED'\n | 'PATTERN_SOURCE_USER'\n | 'PATTERN_SOURCE_DEFAULT';\n\n/**\n * What made a change to a site's SEO tags or patterns. Derived from the caller, not from\n * the request.\n */\nexport enum Origin {\n /**\n * Unknown origin. Returned by read methods, because origin isn't stored alongside the\n * data it describes.\n */\n ORIGIN_UNSPECIFIED = 'ORIGIN_UNSPECIFIED',\n /** A user, working in the dashboard or editor, or calling the API on their own behalf. */\n ORIGIN_USER = 'ORIGIN_USER',\n /** The flow that imports an existing site into Wix. */\n ORIGIN_MIGRATION = 'ORIGIN_MIGRATION',\n /** An AI agent or an automated suggestion flow. */\n ORIGIN_AI = 'ORIGIN_AI',\n}\n\n/** @enumType */\nexport type OriginWithLiterals =\n | Origin\n | 'ORIGIN_UNSPECIFIED'\n | 'ORIGIN_USER'\n | 'ORIGIN_MIGRATION'\n | 'ORIGIN_AI';\n\nexport interface GetSeoPatternRequest {\n /**\n * Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n */\n pageType: string;\n /**\n * ID of a single page built from a Wix Data collection, to retrieve the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type.\n * @maxLength 200\n */\n pageId?: string | null;\n /**\n * Not supported yet.\n *\n * To address a single page built from a Wix Data collection, specify its `pageId`.\n * @internal\n * @maxLength 200\n */\n collectionName?: string | null;\n}\n\nexport interface GetSeoPatternResponse {\n /**\n * The page type's pattern: the site's own pattern, the Wix default, and which of the\n * two is in effect.\n */\n seoPattern?: SeoPattern;\n}\n\nexport interface ListSeoPatternsRequest {}\n\nexport interface ListSeoPatternsResponse {\n /**\n * The patterns stored for the site, one per page type.\n *\n * A page type that has never had a pattern stored isn't included. A page type that was\n * reset to its Wix default is included, with an empty `pattern`.\n * @maxSize 200\n */\n seoPatterns?: SeoPattern[];\n}\n\nexport interface ListSeoPatternVariablesRequest {\n /**\n * Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n */\n pageType: string;\n}\n\nexport interface ListSeoPatternVariablesResponse {\n /**\n * Variables a pattern for this page type may use in its tags. For example,\n * `{{product.name}}` in a title template.\n *\n * A variable can appear more than once, with different `userVisible` values, when both\n * the site and the page type offer it. Either entry can be used in a pattern.\n * @maxSize 500\n */\n variables?: SeoPatternVariable[];\n /**\n * Variables a pattern for this page type may use in its structured data tags.\n *\n * A pattern may use these as well as the variables in `variables`.\n * @maxSize 500\n */\n structuredDataVariables?: SeoPatternVariable[];\n}\n\n/**\n * A variable a pattern may reference, which is replaced with an item's own value when its\n * page renders.\n */\nexport interface SeoPatternVariable {\n /**\n * Name of the variable, without the surrounding braces. For example, `product.name`,\n * which a pattern references as `{{product.name}}`.\n * @maxLength 200\n */\n key?: string;\n /**\n * Whether the variable appears in the list shown to Wix users editing the pattern in the\n * dashboard.\n *\n * `false` doesn't prevent a pattern from using the variable. It marks a variable that's\n * kept out of the dashboard's list, typically because it's only meaningful in certain\n * cases.\n */\n userVisible?: boolean;\n}\n\nexport interface CreateSeoPatternRequest {\n /**\n * Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n */\n pageType: string;\n /**\n * Pattern to create for the page type.\n *\n * `pattern` is the only field to send. The page type comes from the request path, and\n * every other field is read-only. To create a pattern for a single page built from a\n * Wix Data collection, set `pageId`.\n */\n seoPattern: SeoPattern;\n}\n\nexport interface CreateSeoPatternResponse {\n /**\n * The created pattern, with `source` reporting that the site's own pattern is now in\n * effect.\n */\n seoPattern?: SeoPattern;\n}\n\nexport interface SetSeoPatternRequest {\n /**\n * Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n */\n pageType: string;\n /**\n * Pattern to set for the page type.\n *\n * `pattern` is the only writable field, and setting it replaces the page type's tag\n * templates in full. Sending an empty pattern clears it, which returns the page type to\n * its Wix default.\n */\n seoPattern: SeoPattern;\n /**\n * Fields to update.\n *\n * Supported properties: `pattern`\n */\n fieldMask: string[];\n /**\n * Not supported yet.\n *\n * To address a single page built from a Wix Data collection, specify its `pageId`.\n * @internal\n * @maxLength 200\n */\n collectionName?: string | null;\n /**\n * ID of a single page built from a Wix Data collection, to change the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type.\n * @maxLength 200\n */\n pageId?: string | null;\n}\n\nexport interface SetSeoPatternResponse {\n /** The updated pattern. */\n seoPattern?: SeoPattern;\n}\n\nexport interface ResetSeoPatternToDefaultRequest {\n /**\n * Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @maxLength 100\n */\n pageType: string;\n /**\n * Not supported yet.\n *\n * To address a single page built from a Wix Data collection, specify its `pageId`.\n * @internal\n * @maxLength 200\n */\n collectionName?: string | null;\n /**\n * ID of a single page built from a Wix Data collection, to reset the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type.\n * @maxLength 200\n */\n pageId?: string | null;\n}\n\nexport interface ResetSeoPatternToDefaultResponse {\n /**\n * The page type after the reset: an empty `pattern`, and `source` of\n * `PATTERN_SOURCE_DEFAULT`.\n */\n seoPattern?: SeoPattern;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type GetSeoPatternApplicationErrors =\n | {\n code?: 'UNSUPPORTED_PAGE_TYPE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PAGE_TYPE_NOT_ON_SITE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PAGE_ID_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'COLLECTION_NAME_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ListSeoPatternVariablesApplicationErrors =\n | {\n code?: 'UNSUPPORTED_PAGE_TYPE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PAGE_TYPE_NOT_ON_SITE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateSeoPatternApplicationErrors =\n | {\n code?: 'UNSUPPORTED_PAGE_TYPE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_PATTERN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PATTERN_ALREADY_EXISTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PAGE_TYPE_NOT_ON_SITE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PAGE_ID_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetSeoPatternApplicationErrors =\n | {\n code?: 'UNSUPPORTED_PAGE_TYPE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_PATTERN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_FIELD_MASK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PATTERN_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PAGE_ID_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'COLLECTION_NAME_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ResetSeoPatternToDefaultApplicationErrors =\n | {\n code?: 'UNSUPPORTED_PAGE_TYPE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PATTERN_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PAGE_ID_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'COLLECTION_NAME_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n };\n\n/**\n * Retrieves the SEO pattern in effect for a page type.\n *\n * The response contains the site's own pattern in `pattern`, and the pattern Wix\n * provides in `defaultPattern`. `source` reports which of the two is in effect.\n * `pattern` is empty when the site has no pattern of its own.\n * @param pageType - Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @public\n * @documentationMaturity preview\n * @requiredField pageType\n * @permissionId wix-seo.read\n * @applicableIdentity APP\n * @applicableIdentity MEMBER\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.GetSeoPattern\n */\nexport async function getSeoPattern(\n pageType: string,\n options?: GetSeoPatternOptions\n): Promise<\n NonNullablePaths<\n GetSeoPatternResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: GetSeoPatternApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pageType: pageType,\n pageId: options?.pageId,\n });\n\n const reqOpts = ambassadorWixPromoteSeoV1SeoPattern.getSeoPattern(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageType: '$[0]', pageId: '$[1].pageId' },\n singleArgumentUnchanged: false,\n },\n ['pageType', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetSeoPatternOptions {\n /**\n * ID of a single page built from a Wix Data collection, to retrieve the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type.\n * @maxLength 200\n */\n pageId?: string | null;\n}\n\n/**\n * Retrieves the patterns stored for a site, one per page type.\n *\n * Only returns page types that have had a pattern of the site's own stored, so a page\n * type that has never had one is absent. A page type that was reset to its default remains in the\n * list, with an empty `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.\n * @public\n * @documentationMaturity preview\n * @permissionId wix-seo.read\n * @applicableIdentity APP\n * @applicableIdentity MEMBER\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ListSeoPatterns\n */\nexport async function listSeoPatterns(): Promise<\n NonNullablePaths<\n ListSeoPatternsResponse,\n | `seoPatterns`\n | `seoPatterns.${number}.pageType`\n | `seoPatterns.${number}.source`\n | `seoPatterns.${number}.origin`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts = ambassadorWixPromoteSeoV1SeoPattern.listSeoPatterns(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves the variables a pattern for a page type may reference.\n *\n * Call this method to retrieve the valid variables for a page type before writing a\n * pattern.\n *\n * Variables for the page's own tags and variables for its structured data are returned\n * in separate fields, and a pattern may use either.\n * @param pageType - Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @public\n * @documentationMaturity preview\n * @requiredField pageType\n * @permissionId wix-seo.read\n * @applicableIdentity APP\n * @applicableIdentity MEMBER\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ListSeoPatternVariables\n */\nexport async function listSeoPatternVariables(pageType: string): Promise<\n NonNullablePaths<\n ListSeoPatternVariablesResponse,\n | `variables`\n | `variables.${number}.key`\n | `variables.${number}.userVisible`\n | `structuredDataVariables`\n | `structuredDataVariables.${number}.key`\n | `structuredDataVariables.${number}.userVisible`,\n 4\n > & {\n __applicationErrorsType?: ListSeoPatternVariablesApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ pageType: pageType });\n\n const reqOpts =\n ambassadorWixPromoteSeoV1SeoPattern.listSeoPatternVariables(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageType: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pageType']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a pattern for a page type that's still on its Wix default.\n *\n * The pattern must contain at least one tag. To leave a page type on its Wix default,\n * create nothing for it.\n *\n * To change a pattern that already exists, call [Set SEO\n * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/set-seo-pattern).\n * @param pageType - Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @param seoPattern - Pattern to create for the page type.\n *\n * `pattern` is the only field to send. The page type comes from the request path, and\n * every other field is read-only. To create a pattern for a single page built from a\n * Wix Data collection, set `pageId`.\n * @public\n * @documentationMaturity preview\n * @requiredField pageType\n * @requiredField seoPattern\n * @permissionId wix-seo.edit\n * @applicableIdentity APP\n * @returns The created pattern, with `source` reporting that the site's own pattern is now in\n * effect.\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.CreateSeoPattern\n */\nexport async function createSeoPattern(\n pageType: string,\n seoPattern: SeoPattern\n): Promise<\n NonNullablePaths<\n SeoPattern,\n | `pageType`\n | `pattern.tags`\n | `pattern.tags.${number}.type`\n | `pattern.tags.${number}.children`\n | `pattern.tags.${number}.custom`\n | `pattern.tags.${number}.disabled`\n | `source`\n | `origin`,\n 5\n > & {\n __applicationErrorsType?: CreateSeoPatternApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pageType: pageType,\n seoPattern: seoPattern,\n });\n\n const reqOpts = ambassadorWixPromoteSeoV1SeoPattern.createSeoPattern(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.seoPattern!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageType: '$[0]', seoPattern: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['pageType', 'seoPattern']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Changes the pattern a site has for a page type.\n *\n * Setting `pattern` replaces the page type's tag templates in full, so retrieve the\n * pattern first and send back the complete set you want it to have. Sending an empty\n * pattern clears it, which returns the page type to its Wix default.\n *\n * This method changes a pattern that already exists rather than creating one. For a page\n * type still on its Wix default, call [Create SEO\n * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/create-seo-pattern)\n * instead.\n *\n * A pattern has no revision, and the site's SEO settings in the dashboard write to the\n * same pattern. The last write wins, so retrieve the pattern immediately before writing\n * it.\n * @param pageType - Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @param seoPattern - Pattern to set for the page type.\n *\n * `pattern` is the only writable field, and setting it replaces the page type's tag\n * templates in full. Sending an empty pattern clears it, which returns the page type to\n * its Wix default.\n * @public\n * @documentationMaturity preview\n * @requiredField options.fieldMask\n * @requiredField pageType\n * @requiredField seoPattern\n * @permissionId wix-seo.edit\n * @applicableIdentity APP\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.SetSeoPattern\n */\nexport async function setSeoPattern(\n pageType: string,\n seoPattern: SeoPattern,\n options?: NonNullablePaths<SetSeoPatternOptions, `fieldMask`, 2>\n): Promise<\n NonNullablePaths<\n SetSeoPatternResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: SetSeoPatternApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pageType: pageType,\n seoPattern: seoPattern,\n fieldMask: options?.fieldMask,\n pageId: options?.pageId,\n });\n\n const reqOpts = ambassadorWixPromoteSeoV1SeoPattern.setSeoPattern(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n pageType: '$[0]',\n seoPattern: '$[1]',\n fieldMask: '$[2].fieldMask',\n pageId: '$[2].pageId',\n },\n singleArgumentUnchanged: false,\n },\n ['pageType', 'seoPattern', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SetSeoPatternOptions {\n /**\n * Fields to update.\n *\n * Supported properties: `pattern`\n */\n fieldMask: string[];\n /**\n * ID of a single page built from a Wix Data collection, to change the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type.\n * @maxLength 200\n */\n pageId?: string | null;\n}\n\n/**\n * Removes the pattern a site has for a page type, so the Wix default applies again.\n *\n * The response reports the page type after the reset, with an empty `pattern` and\n * `source` of `PATTERN_SOURCE_DEFAULT`.\n * @param pageType - Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @public\n * @documentationMaturity preview\n * @requiredField pageType\n * @permissionId wix-seo.edit\n * @applicableIdentity APP\n * @fqn wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ResetSeoPatternToDefault\n */\nexport async function resetSeoPatternToDefault(\n pageType: string,\n options?: ResetSeoPatternToDefaultOptions\n): Promise<\n NonNullablePaths<\n ResetSeoPatternToDefaultResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: ResetSeoPatternToDefaultApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pageType: pageType,\n pageId: options?.pageId,\n });\n\n const reqOpts =\n ambassadorWixPromoteSeoV1SeoPattern.resetSeoPatternToDefault(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageType: '$[0]', pageId: '$[1].pageId' },\n singleArgumentUnchanged: false,\n },\n ['pageType', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ResetSeoPatternToDefaultOptions {\n /**\n * ID of a single page built from a Wix Data collection, to reset the pattern of that\n * page alone.\n *\n * Supported only for the `WIX_DATA_PAGE_ITEM` page type.\n * @maxLength 200\n */\n pageId?: string | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/seo-metatags-server',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/seo-metatags-server',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_seo_seo-patterns';\n\n/**\n * Retrieves the SEO pattern in effect for a page type.\n *\n * The response contains the site's own pattern in `pattern`, and the pattern Wix\n * provides in `defaultPattern`. `source` reports which of the two is in effect.\n * `pattern` is empty when the site has no pattern of its own.\n */\nexport function getSeoPattern(payload: object): RequestOptionsFactory<any> {\n function __getSeoPattern({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'GET' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.GetSeoPattern',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns/{pageType}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getSeoPattern;\n}\n\n/**\n * Retrieves the patterns stored for a site, one per page type.\n *\n * Only returns page types that have had a pattern of the site's own stored, so a page\n * type that has never had one is absent. A page type that was reset to its default remains in the\n * list, with an empty `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.\n */\nexport function listSeoPatterns(payload: object): RequestOptionsFactory<any> {\n function __listSeoPatterns({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'GET' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ListSeoPatterns',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listSeoPatterns;\n}\n\n/**\n * Retrieves the variables a pattern for a page type may reference.\n *\n * Call this method to retrieve the valid variables for a page type before writing a\n * pattern.\n *\n * Variables for the page's own tags and variables for its structured data are returned\n * in separate fields, and a pattern may use either.\n */\nexport function listSeoPatternVariables(\n payload: object\n): RequestOptionsFactory<any> {\n function __listSeoPatternVariables({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'GET' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ListSeoPatternVariables',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns/{pageType}/variables',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listSeoPatternVariables;\n}\n\n/**\n * Creates a pattern for a page type that's still on its Wix default.\n *\n * The pattern must contain at least one tag. To leave a page type on its Wix default,\n * create nothing for it.\n *\n * To change a pattern that already exists, call [Set SEO\n * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/set-seo-pattern).\n */\nexport function createSeoPattern(payload: object): RequestOptionsFactory<any> {\n function __createSeoPattern({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'POST' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.CreateSeoPattern',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns/{pageType}',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createSeoPattern;\n}\n\n/**\n * Changes the pattern a site has for a page type.\n *\n * Setting `pattern` replaces the page type's tag templates in full, so retrieve the\n * pattern first and send back the complete set you want it to have. Sending an empty\n * pattern clears it, which returns the page type to its Wix default.\n *\n * This method changes a pattern that already exists rather than creating one. For a page\n * type still on its Wix default, call [Create SEO\n * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/create-seo-pattern)\n * instead.\n *\n * A pattern has no revision, and the site's SEO settings in the dashboard write to the\n * same pattern. The last write wins, so retrieve the pattern immediately before writing\n * it.\n */\nexport function setSeoPattern(payload: object): RequestOptionsFactory<any> {\n function __setSeoPattern({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.SetSeoPattern',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns/{pageType}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __setSeoPattern;\n}\n\n/**\n * Removes the pattern a site has for a page type, so the Wix default applies again.\n *\n * The response reports the page type after the reset, with an empty `pattern` and\n * `source` of `PATTERN_SOURCE_DEFAULT`.\n */\nexport function resetSeoPatternToDefault(\n payload: object\n): RequestOptionsFactory<any> {\n function __resetSeoPatternToDefault({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.seo_pattern',\n method: 'POST' as any,\n methodFqn:\n 'wix.promote.seo.metatags.v1.PageTypeSeoPatternsService.ResetSeoPatternToDefault',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoMetatagsV1PageTypeSeoPatternsServiceUrl({\n protoPath: '/v1/seo-patterns/{pageType}/reset-to-default',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __resetSeoPatternToDefault;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateSeoPatternApplicationErrors,\n GetSeoPatternApplicationErrors,\n GetSeoPatternOptions,\n GetSeoPatternResponse,\n ListSeoPatternVariablesApplicationErrors,\n ListSeoPatternVariablesResponse,\n ListSeoPatternsResponse,\n ResetSeoPatternToDefaultApplicationErrors,\n ResetSeoPatternToDefaultOptions,\n ResetSeoPatternToDefaultResponse,\n SeoPattern,\n SetSeoPatternApplicationErrors,\n SetSeoPatternOptions,\n SetSeoPatternResponse,\n createSeoPattern as universalCreateSeoPattern,\n getSeoPattern as universalGetSeoPattern,\n listSeoPatternVariables as universalListSeoPatternVariables,\n listSeoPatterns as universalListSeoPatterns,\n resetSeoPatternToDefault as universalResetSeoPatternToDefault,\n setSeoPattern as universalSetSeoPattern,\n} from './promote-seo-v1-seo-pattern-seo-patterns.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/seo' };\n\nexport function getSeoPattern(httpClient: HttpClient): GetSeoPatternSignature {\n return (pageType: string, options?: GetSeoPatternOptions) =>\n universalGetSeoPattern(\n pageType,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSeoPatternSignature {\n /**\n * Retrieves the SEO pattern in effect for a page type.\n *\n * The response contains the site's own pattern in `pattern`, and the pattern Wix\n * provides in `defaultPattern`. `source` reports which of the two is in effect.\n * `pattern` is empty when the site has no pattern of its own.\n * @param - Page type whose pattern to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n */\n (pageType: string, options?: GetSeoPatternOptions): Promise<\n NonNullablePaths<\n GetSeoPatternResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: GetSeoPatternApplicationErrors;\n }\n >;\n}\n\nexport function listSeoPatterns(\n httpClient: HttpClient\n): ListSeoPatternsSignature {\n return () =>\n universalListSeoPatterns(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListSeoPatternsSignature {\n /**\n * Retrieves the patterns stored for a site, one per page type.\n *\n * Only returns page types that have had a pattern of the site's own stored, so a page\n * type that has never had one is absent. A page type that was reset to its default remains in the\n * list, with an empty `pattern` and `source` of `PATTERN_SOURCE_DEFAULT`.\n */\n (): Promise<\n NonNullablePaths<\n ListSeoPatternsResponse,\n | `seoPatterns`\n | `seoPatterns.${number}.pageType`\n | `seoPatterns.${number}.source`\n | `seoPatterns.${number}.origin`,\n 4\n >\n >;\n}\n\nexport function listSeoPatternVariables(\n httpClient: HttpClient\n): ListSeoPatternVariablesSignature {\n return (pageType: string) =>\n universalListSeoPatternVariables(\n pageType,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListSeoPatternVariablesSignature {\n /**\n * Retrieves the variables a pattern for a page type may reference.\n *\n * Call this method to retrieve the valid variables for a page type before writing a\n * pattern.\n *\n * Variables for the page's own tags and variables for its structured data are returned\n * in separate fields, and a pattern may use either.\n * @param - Page type whose variables to retrieve. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n */\n (pageType: string): Promise<\n NonNullablePaths<\n ListSeoPatternVariablesResponse,\n | `variables`\n | `variables.${number}.key`\n | `variables.${number}.userVisible`\n | `structuredDataVariables`\n | `structuredDataVariables.${number}.key`\n | `structuredDataVariables.${number}.userVisible`,\n 4\n > & {\n __applicationErrorsType?: ListSeoPatternVariablesApplicationErrors;\n }\n >;\n}\n\nexport function createSeoPattern(\n httpClient: HttpClient\n): CreateSeoPatternSignature {\n return (pageType: string, seoPattern: SeoPattern) =>\n universalCreateSeoPattern(\n pageType,\n seoPattern,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateSeoPatternSignature {\n /**\n * Creates a pattern for a page type that's still on its Wix default.\n *\n * The pattern must contain at least one tag. To leave a page type on its Wix default,\n * create nothing for it.\n *\n * To change a pattern that already exists, call [Set SEO\n * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/set-seo-pattern).\n * @param - Page type to create a pattern for. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @param - Pattern to create for the page type.\n *\n * `pattern` is the only field to send. The page type comes from the request path, and\n * every other field is read-only. To create a pattern for a single page built from a\n * Wix Data collection, set `pageId`.\n * @returns The created pattern, with `source` reporting that the site's own pattern is now in\n * effect.\n */\n (pageType: string, seoPattern: SeoPattern): Promise<\n NonNullablePaths<\n SeoPattern,\n | `pageType`\n | `pattern.tags`\n | `pattern.tags.${number}.type`\n | `pattern.tags.${number}.children`\n | `pattern.tags.${number}.custom`\n | `pattern.tags.${number}.disabled`\n | `source`\n | `origin`,\n 5\n > & {\n __applicationErrorsType?: CreateSeoPatternApplicationErrors;\n }\n >;\n}\n\nexport function setSeoPattern(httpClient: HttpClient): SetSeoPatternSignature {\n return (\n pageType: string,\n seoPattern: SeoPattern,\n options?: NonNullablePaths<SetSeoPatternOptions, `fieldMask`, 2>\n ) =>\n universalSetSeoPattern(\n pageType,\n seoPattern,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SetSeoPatternSignature {\n /**\n * Changes the pattern a site has for a page type.\n *\n * Setting `pattern` replaces the page type's tag templates in full, so retrieve the\n * pattern first and send back the complete set you want it to have. Sending an empty\n * pattern clears it, which returns the page type to its Wix default.\n *\n * This method changes a pattern that already exists rather than creating one. For a page\n * type still on its Wix default, call [Create SEO\n * Pattern](https://dev.wix.com/docs/api-reference/business-management/seo/seo-pattern-v1/create-seo-pattern)\n * instead.\n *\n * A pattern has no revision, and the site's SEO settings in the dashboard write to the\n * same pattern. The last write wins, so retrieve the pattern immediately before writing\n * it.\n * @param - Page type whose pattern to change. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n * @param - Pattern to set for the page type.\n *\n * `pattern` is the only writable field, and setting it replaces the page type's tag\n * templates in full. Sending an empty pattern clears it, which returns the page type to\n * its Wix default.\n */\n (\n pageType: string,\n seoPattern: SeoPattern,\n options?: NonNullablePaths<SetSeoPatternOptions, `fieldMask`, 2>\n ): Promise<\n NonNullablePaths<\n SetSeoPatternResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: SetSeoPatternApplicationErrors;\n }\n >;\n}\n\nexport function resetSeoPatternToDefault(\n httpClient: HttpClient\n): ResetSeoPatternToDefaultSignature {\n return (pageType: string, options?: ResetSeoPatternToDefaultOptions) =>\n universalResetSeoPatternToDefault(\n pageType,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ResetSeoPatternToDefaultSignature {\n /**\n * Removes the pattern a site has for a page type, so the Wix default applies again.\n *\n * The response reports the page type after the reset, with an empty `pattern` and\n * `source` of `PATTERN_SOURCE_DEFAULT`.\n * @param - Page type whose pattern to reset. For example, `STATIC_PAGE`, `BLOG_POST`, or\n * `STORES_PRODUCT`.\n */\n (pageType: string, options?: ResetSeoPatternToDefaultOptions): Promise<\n NonNullablePaths<\n ResetSeoPatternToDefaultResponse,\n | `seoPattern.pageType`\n | `seoPattern.pattern.tags`\n | `seoPattern.pattern.tags.${number}.type`\n | `seoPattern.pattern.tags.${number}.children`\n | `seoPattern.pattern.tags.${number}.custom`\n | `seoPattern.pattern.tags.${number}.disabled`\n | `seoPattern.source`\n | `seoPattern.origin`,\n 6\n > & {\n __applicationErrorsType?: ResetSeoPatternToDefaultApplicationErrors;\n }\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n CreateSeoPatternRequest,\n CreateSeoPatternResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n GetSeoPatternOptions,\n GetSeoPatternRequest,\n GetSeoPatternResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListSeoPatternVariablesRequest,\n ListSeoPatternVariablesResponse,\n ListSeoPatternsRequest,\n ListSeoPatternsResponse,\n MessageEnvelope,\n Origin,\n PatternSource,\n ResetSeoPatternToDefaultOptions,\n ResetSeoPatternToDefaultRequest,\n ResetSeoPatternToDefaultResponse,\n RestoreInfo,\n SeoPattern,\n SeoPatternBlob,\n SeoPatternVariable,\n SetSeoPatternOptions,\n SetSeoPatternRequest,\n SetSeoPatternResponse,\n Tag,\n WebhookIdentityType,\n} from './promote-seo-v1-seo-pattern-seo-patterns.universal.js';\n","import {\n getSeoPattern as publicGetSeoPattern,\n listSeoPatterns as publicListSeoPatterns,\n listSeoPatternVariables as publicListSeoPatternVariables,\n createSeoPattern as publicCreateSeoPattern,\n setSeoPattern as publicSetSeoPattern,\n resetSeoPatternToDefault as publicResetSeoPatternToDefault,\n} from './promote-seo-v1-seo-pattern-seo-patterns.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getSeoPattern: MaybeContext<\n BuildRESTFunction<typeof publicGetSeoPattern> & typeof publicGetSeoPattern\n> = /*#__PURE__*/ createRESTModule(publicGetSeoPattern);\nexport const listSeoPatterns: MaybeContext<\n BuildRESTFunction<typeof publicListSeoPatterns> & typeof publicListSeoPatterns\n> = /*#__PURE__*/ createRESTModule(publicListSeoPatterns);\nexport const listSeoPatternVariables: MaybeContext<\n BuildRESTFunction<typeof publicListSeoPatternVariables> &\n typeof publicListSeoPatternVariables\n> = /*#__PURE__*/ createRESTModule(publicListSeoPatternVariables);\nexport const createSeoPattern: MaybeContext<\n BuildRESTFunction<typeof publicCreateSeoPattern> &\n typeof publicCreateSeoPattern\n> = /*#__PURE__*/ createRESTModule(publicCreateSeoPattern);\nexport const setSeoPattern: MaybeContext<\n BuildRESTFunction<typeof publicSetSeoPattern> & typeof publicSetSeoPattern\n> = /*#__PURE__*/ createRESTModule(publicSetSeoPattern);\nexport const resetSeoPatternToDefault: MaybeContext<\n BuildRESTFunction<typeof publicResetSeoPatternToDefault> &\n typeof publicResetSeoPatternToDefault\n> = /*#__PURE__*/ createRESTModule(publicResetSeoPatternToDefault);\n\nexport {\n PatternSource,\n Origin,\n WebhookIdentityType,\n} from './promote-seo-v1-seo-pattern-seo-patterns.universal.js';\nexport {\n SeoPattern,\n SeoPatternBlob,\n Tag,\n GetSeoPatternRequest,\n GetSeoPatternResponse,\n ListSeoPatternsRequest,\n ListSeoPatternsResponse,\n ListSeoPatternVariablesRequest,\n ListSeoPatternVariablesResponse,\n SeoPatternVariable,\n CreateSeoPatternRequest,\n CreateSeoPatternResponse,\n SetSeoPatternRequest,\n SetSeoPatternResponse,\n ResetSeoPatternToDefaultRequest,\n ResetSeoPatternToDefaultResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n GetSeoPatternOptions,\n SetSeoPatternOptions,\n ResetSeoPatternToDefaultOptions,\n} from './promote-seo-v1-seo-pattern-seo-patterns.universal.js';\nexport {\n PatternSourceWithLiterals,\n OriginWithLiterals,\n WebhookIdentityTypeWithLiterals,\n GetSeoPatternApplicationErrors,\n ListSeoPatternVariablesApplicationErrors,\n CreateSeoPatternApplicationErrors,\n SetSeoPatternApplicationErrors,\n ResetSeoPatternToDefaultApplicationErrors,\n} from './promote-seo-v1-seo-pattern-seo-patterns.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAAA;AAAA,EAAA,qBAAAC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AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAuCO,SAASC,eAAc,YAAgD;AAC5E,SAAO,CACL,UACA,YACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAgDO,SAASC,0BACd,YACmC;AACnC,SAAO,CAAC,UAAkB,YACxBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACrPA,IAAAC,uBAAiC;AAG1B,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,2BAGK,2DAAiBA,wBAA6B;AACzD,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,4BAGK,2DAAiBA,yBAA8B;","names":["createSeoPattern","getSeoPattern","listSeoPatternVariables","listSeoPatterns","resetSeoPatternToDefault","setSeoPattern","import_rest_modules","PatternSource","Origin","WebhookIdentityType","getSeoPattern","sdkTransformError","listSeoPatterns","listSeoPatternVariables","createSeoPattern","setSeoPattern","resetSeoPatternToDefault","getSeoPattern","listSeoPatterns","listSeoPatternVariables","createSeoPattern","setSeoPattern","resetSeoPatternToDefault","import_rest_modules","getSeoPattern","listSeoPatterns","listSeoPatternVariables","createSeoPattern","setSeoPattern","resetSeoPatternToDefault"]}
|