@wix/auto_sdk_dynamic-page-router_pages 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/build/cjs/index.d.ts +57 -0
  2. package/build/cjs/index.js +517 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +487 -0
  5. package/build/cjs/index.typings.js +472 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +345 -0
  8. package/build/cjs/meta.js +387 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/schemas.d.ts +219 -0
  11. package/build/cjs/schemas.js +493 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +57 -0
  14. package/build/es/index.mjs +489 -0
  15. package/build/es/index.mjs.map +1 -0
  16. package/build/es/index.typings.d.mts +487 -0
  17. package/build/es/index.typings.mjs +444 -0
  18. package/build/es/index.typings.mjs.map +1 -0
  19. package/build/es/meta.d.mts +345 -0
  20. package/build/es/meta.mjs +356 -0
  21. package/build/es/meta.mjs.map +1 -0
  22. package/build/es/package.json +3 -0
  23. package/build/es/schemas.d.mts +219 -0
  24. package/build/es/schemas.mjs +447 -0
  25. package/build/es/schemas.mjs.map +1 -0
  26. package/build/internal/cjs/index.d.ts +57 -0
  27. package/build/internal/cjs/index.js +517 -0
  28. package/build/internal/cjs/index.js.map +1 -0
  29. package/build/internal/cjs/index.typings.d.ts +487 -0
  30. package/build/internal/cjs/index.typings.js +472 -0
  31. package/build/internal/cjs/index.typings.js.map +1 -0
  32. package/build/internal/cjs/meta.d.ts +345 -0
  33. package/build/internal/cjs/meta.js +387 -0
  34. package/build/internal/cjs/meta.js.map +1 -0
  35. package/build/internal/cjs/schemas.d.ts +219 -0
  36. package/build/internal/cjs/schemas.js +493 -0
  37. package/build/internal/cjs/schemas.js.map +1 -0
  38. package/build/internal/es/index.d.mts +57 -0
  39. package/build/internal/es/index.mjs +489 -0
  40. package/build/internal/es/index.mjs.map +1 -0
  41. package/build/internal/es/index.typings.d.mts +487 -0
  42. package/build/internal/es/index.typings.mjs +444 -0
  43. package/build/internal/es/index.typings.mjs.map +1 -0
  44. package/build/internal/es/meta.d.mts +345 -0
  45. package/build/internal/es/meta.mjs +356 -0
  46. package/build/internal/es/meta.mjs.map +1 -0
  47. package/build/internal/es/schemas.d.mts +219 -0
  48. package/build/internal/es/schemas.mjs +447 -0
  49. package/build/internal/es/schemas.mjs.map +1 -0
  50. package/meta/package.json +3 -0
  51. package/package.json +61 -0
  52. package/schemas/package.json +3 -0
@@ -0,0 +1,345 @@
1
+ import { GetRouterSitemapCountRequest as GetRouterSitemapCountRequest$1, GetRouterSitemapCountResponse as GetRouterSitemapCountResponse$1, GetRouterSitemapRequest as GetRouterSitemapRequest$1, GetRouterSitemapResponse as GetRouterSitemapResponse$1, GetRouterPagesRequest as GetRouterPagesRequest$1, GetRouterPagesResponse as GetRouterPagesResponse$1, GetRouterPagesCachedRequest as GetRouterPagesCachedRequest$1, GetDraftPreviewTokenRequest as GetDraftPreviewTokenRequest$1, GetDraftPreviewTokenResponse as GetDraftPreviewTokenResponse$1 } from './index.typings.mjs';
2
+ import '@wix/sdk-types';
3
+
4
+ /** Stub entity, not used at the moment. */
5
+ interface Page {
6
+ /**
7
+ * Page ID.
8
+ * @format GUID
9
+ * @readonly
10
+ */
11
+ id?: string | null;
12
+ }
13
+ interface GetRouterSitemapCountRequest {
14
+ /**
15
+ * Router prefix that identifies the page type or origin. For TPA (Third-Party Application) pages, this contains the TPA page ID.
16
+ * @maxLength 2048
17
+ */
18
+ routerPrefix?: string;
19
+ /** Config containing request patterns, e.g. '/{title}' */
20
+ config?: Config;
21
+ /** Map of page roles containing page ID and title of each role */
22
+ pageRoles?: Record<string, PageRole>;
23
+ /**
24
+ * Optional page name to filter patterns by matching page role title
25
+ * @maxLength 200
26
+ */
27
+ pageName?: string;
28
+ /**
29
+ * Query param mapped to body, editor/site
30
+ * @maxLength 200
31
+ */
32
+ viewMode?: string;
33
+ /**
34
+ * Query param mapped to body, unique for Wix code app
35
+ * @format GUID
36
+ */
37
+ gridAppId?: string | null;
38
+ }
39
+ interface Config {
40
+ /** Map of URL patterns to their configurations. The key is the URL pattern (e.g., `/{title}`) and the value contains the pattern configuration. */
41
+ patterns?: Record<string, Pattern>;
42
+ /** Maps rule ID → PageRule (filter + variant page role). */
43
+ rules?: Record<string, PageRule>;
44
+ /** Maps original page role ID → ordered rule IDs. First matching rule wins. */
45
+ roleVariations?: Record<string, any[]>;
46
+ }
47
+ interface Pattern {
48
+ /**
49
+ * Page role identifier that links this pattern to a specific page template.
50
+ * @maxLength 200
51
+ */
52
+ pageRole?: string;
53
+ /**
54
+ * Title pattern with field interpolation (e.g., "{title}, {author} - {category}").
55
+ * Increased to 50000 to support complex title templates with many interpolated fields and long text content.
56
+ * @maxLength 50000
57
+ */
58
+ title?: string;
59
+ /** Configuration specifying which collection to query and any filters to apply. */
60
+ config?: PatternConfig;
61
+ /** SEO meta tags to be included in the page head. Keys are meta tag names, values are the content. */
62
+ seoMetaTags?: Record<string, string>;
63
+ }
64
+ interface PatternConfig {
65
+ /**
66
+ * Name of the Wix Data collection to query for dynamic content.
67
+ * @maxLength 200
68
+ */
69
+ collection?: string;
70
+ /** Filter criteria to apply when querying the collection. Uses MongoDB-style query syntax to limit which items generate routes. */
71
+ filter?: Record<string, any> | null;
72
+ /** Indicates if URLs in sitemap should be turned to lowercase. Defaults to true if not set. */
73
+ lowercase?: boolean | null;
74
+ /**
75
+ * The field id that gets added to DataCollection and DataItems.
76
+ * Indicates that page links is a slug based and items should be retrieved by slug fields present in the pattern.
77
+ * @maxLength 1000
78
+ */
79
+ pageLinkId?: string | null;
80
+ /**
81
+ * Sort specification for query results. Each struct contains field name and direction (asc/desc).
82
+ * @maxSize 32
83
+ */
84
+ sort?: Record<string, any>[] | null;
85
+ /** Page size for pagination. */
86
+ pageSize?: number | null;
87
+ /** SEO v2 flag. */
88
+ seoV2?: boolean | null;
89
+ /** Cursor-based pagination flag. */
90
+ cursor?: boolean | null;
91
+ /**
92
+ * Dataset includes array for passthrough config.
93
+ * @maxSize 100
94
+ * @maxLength 1000
95
+ */
96
+ includes?: string[];
97
+ }
98
+ /** A variant rule: if filter matches the fetched data item, use page_role instead of the original. */
99
+ interface PageRule {
100
+ /**
101
+ * Variant page role ID to return when this rule matches.
102
+ * @maxLength 200
103
+ */
104
+ pageRole?: string;
105
+ /** Wix Data filter evaluated against the fetched item. */
106
+ filter?: Record<string, any> | null;
107
+ /**
108
+ * Human-readable rule name (for debugging/logging).
109
+ * @maxLength 200
110
+ */
111
+ name?: string | null;
112
+ }
113
+ interface PageRole {
114
+ /**
115
+ * Page role ID that uniquely identifies the page template.
116
+ * @maxLength 200
117
+ */
118
+ id?: string;
119
+ /**
120
+ * Human-readable title for the page role.
121
+ * @maxLength 200
122
+ */
123
+ title?: string;
124
+ }
125
+ interface GetRouterSitemapCountResponse {
126
+ /** List of count results grouped by page name. */
127
+ result?: RouterCountItem[];
128
+ }
129
+ interface RouterCountItem {
130
+ /**
131
+ * Name of the dynamic page template.
132
+ * @maxLength 200
133
+ */
134
+ pageName?: string;
135
+ /** Number of inner routes for the given page. Capped at 1,000 for performance. */
136
+ count?: number;
137
+ }
138
+ interface GetRouterSitemapRequest {
139
+ /**
140
+ * Full URL to the inner route
141
+ * @maxLength 2048
142
+ */
143
+ fullUrl?: string;
144
+ /**
145
+ * Router prefix (TPA page ID for TPA pages)
146
+ * @maxLength 2048
147
+ */
148
+ routerPrefix?: string;
149
+ /**
150
+ * Optional page name to filter patterns by matching page role title
151
+ * @maxLength 2048
152
+ */
153
+ pageName?: string;
154
+ /** Config containing request patterns, e.g. '/{title}' */
155
+ config?: Config;
156
+ /** Map of page roles containing page ID and title of each role */
157
+ pageRoles?: Record<string, PageRole>;
158
+ /**
159
+ * Query param mapped to body, editor/site
160
+ * @maxLength 200
161
+ */
162
+ viewMode?: string;
163
+ /**
164
+ * Query param mapped to body, unique for Wix code app
165
+ * @format GUID
166
+ */
167
+ gridAppId?: string | null;
168
+ }
169
+ interface GetRouterSitemapResponse {
170
+ /** List of sitemap entries containing URLs and metadata for dynamic pages. */
171
+ result?: RouterRouteItem[];
172
+ }
173
+ interface RouterRouteItem {
174
+ /**
175
+ * URL to inner route relative to current domain
176
+ * @maxLength 500
177
+ */
178
+ url?: string;
179
+ /**
180
+ * Dynamic page name
181
+ * @maxLength 200
182
+ */
183
+ pageName?: string;
184
+ /**
185
+ * Title of the specific route, typically derived from collection data.
186
+ * @maxLength 200
187
+ */
188
+ title?: string;
189
+ /**
190
+ * Change frequency for sitemap SEO purposes (e.g., `daily`, `weekly`, `monthly`).
191
+ * @maxLength 100
192
+ */
193
+ changeFrequency?: string;
194
+ /**
195
+ * Last modified timestamp in ISO 8601 format.
196
+ * @maxLength 100
197
+ */
198
+ lastModified?: string | null;
199
+ /** Priority for sitemap SEO purposes (0.0 to 1.0). */
200
+ priority?: number;
201
+ }
202
+ interface GetRouterPagesRequest {
203
+ /**
204
+ * Complete URL to the inner route. Used for context-aware processing and as a base for relative URL resolution.
205
+ * Increased to 8192 to accommodate URLs with extensive query parameters (tracking, analytics, UTM params, etc.)
206
+ * @maxLength 8192
207
+ */
208
+ fullUrl?: string;
209
+ /**
210
+ * Router prefix (TPA page ID for TPA pages)
211
+ * @maxLength 2048
212
+ */
213
+ routerPrefix?: string;
214
+ /**
215
+ * Inner route suffix containing the dynamic part of the URL pattern. For example, `/{title}` or `/category/{category}/post/{slug}`.
216
+ * Increased to 8192 to match full_url capacity for complex dynamic routes
217
+ * @maxLength 8192
218
+ */
219
+ routerSuffix?: string;
220
+ /** Additional request information including form factor (desktop/mobile) for device-appropriate routing. */
221
+ requestInfo?: RequestInfo;
222
+ /** Config containing request patterns, e.g. '/{title}' */
223
+ config?: Config;
224
+ /** Map of page roles containing page ID and title of each role */
225
+ pageRoles?: Record<string, PageRole>;
226
+ /**
227
+ * Query param mapped to body, editor/site
228
+ * @maxLength 200
229
+ */
230
+ viewMode?: string;
231
+ /**
232
+ * Query param mapped to body, unique for Wix code app
233
+ * @format GUID
234
+ */
235
+ gridAppId?: string | null;
236
+ }
237
+ interface RequestInfo {
238
+ /**
239
+ * Device form factor, typically `desktop` or `mobile`. Used to serve device-appropriate page layouts.
240
+ * @maxLength 200
241
+ */
242
+ formFactor?: string;
243
+ }
244
+ interface GetRouterPagesResponse {
245
+ /** Page resolution result containing status, data, and metadata. */
246
+ result?: RouterPagesResult;
247
+ }
248
+ interface RouterPagesResult {
249
+ /** HTTP status code of the page (200, 302, 404) */
250
+ status?: number;
251
+ /**
252
+ * Name of the dynamic page template that should be used for rendering.
253
+ * @maxLength 200
254
+ */
255
+ page?: string;
256
+ /** Application router data available only to internal Wix apps. Contains system-level and administrative information. */
257
+ data?: Record<string, any> | null;
258
+ /** SEO and metadata information for the page head section. */
259
+ head?: RouterPageHead;
260
+ /**
261
+ * Error message when status indicates an error condition.
262
+ * @maxLength 500
263
+ */
264
+ message?: string;
265
+ /**
266
+ * Target URL for redirects when status is 302.
267
+ * @maxLength 2048
268
+ */
269
+ redirectUrl?: string;
270
+ }
271
+ interface RouterPageHead {
272
+ /**
273
+ * Page title for SEO and browser display.
274
+ * @maxLength 200
275
+ */
276
+ title?: string;
277
+ /** Meta tags for SEO optimization. Keys are meta tag names, values are the content. */
278
+ metaTags?: Record<string, string>;
279
+ /**
280
+ * Page description for SEO. Extracted from seoMetaTags if present.
281
+ * @maxLength 5000
282
+ */
283
+ description?: string;
284
+ /**
285
+ * Keywords for SEO. Extracted from seoMetaTags if present.
286
+ * @maxLength 5000
287
+ */
288
+ keywords?: string;
289
+ /**
290
+ * NoIndex directive for search engines. Extracted from seoMetaTags if present.
291
+ * @maxLength 500
292
+ */
293
+ noIndex?: string;
294
+ }
295
+ /** Viewer GET request: .r parameter containing {urlParams, body} envelope. */
296
+ interface GetRouterPagesCachedRequest {
297
+ /** URL parameters from the viewer's query string. */
298
+ urlParams?: GetRouterPagesCachedUrlParams;
299
+ /** Request body from the viewer's envelope. */
300
+ body?: GetRouterPagesRequest;
301
+ }
302
+ interface GetRouterPagesCachedUrlParams {
303
+ /**
304
+ * Unique for Wix code app
305
+ * @format GUID
306
+ */
307
+ gridAppId?: string | null;
308
+ /**
309
+ * Editor/site
310
+ * @maxLength 200
311
+ */
312
+ viewMode?: string;
313
+ }
314
+ interface GetDraftPreviewTokenRequest {
315
+ /**
316
+ * Wix Data collection ID to get a draft preview key for.
317
+ * @maxLength 256
318
+ */
319
+ collectionId?: string;
320
+ }
321
+ interface GetDraftPreviewTokenResponse {
322
+ /**
323
+ * Draft preview token.
324
+ * @maxLength 10000
325
+ */
326
+ token?: string;
327
+ }
328
+
329
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
330
+ getUrl: (context: any) => string;
331
+ httpMethod: K;
332
+ path: string;
333
+ pathParams: M;
334
+ __requestType: T;
335
+ __originalRequestType: S;
336
+ __responseType: Q;
337
+ __originalResponseType: R;
338
+ };
339
+ declare function getRouterSitemapCount(): __PublicMethodMetaInfo<'POST', {}, GetRouterSitemapCountRequest$1, GetRouterSitemapCountRequest, GetRouterSitemapCountResponse$1, GetRouterSitemapCountResponse>;
340
+ declare function getRouterSitemap(): __PublicMethodMetaInfo<'POST', {}, GetRouterSitemapRequest$1, GetRouterSitemapRequest, GetRouterSitemapResponse$1, GetRouterSitemapResponse>;
341
+ declare function getRouterPages(): __PublicMethodMetaInfo<'POST', {}, GetRouterPagesRequest$1, GetRouterPagesRequest, GetRouterPagesResponse$1, GetRouterPagesResponse>;
342
+ declare function getRouterPagesCached(): __PublicMethodMetaInfo<'GET', {}, GetRouterPagesCachedRequest$1, GetRouterPagesCachedRequest, GetRouterPagesResponse$1, GetRouterPagesResponse>;
343
+ declare function getDraftPreviewToken(): __PublicMethodMetaInfo<'POST', {}, GetDraftPreviewTokenRequest$1, GetDraftPreviewTokenRequest, GetDraftPreviewTokenResponse$1, GetDraftPreviewTokenResponse>;
344
+
345
+ export { type Config as ConfigOriginal, type GetDraftPreviewTokenRequest as GetDraftPreviewTokenRequestOriginal, type GetDraftPreviewTokenResponse as GetDraftPreviewTokenResponseOriginal, type GetRouterPagesCachedRequest as GetRouterPagesCachedRequestOriginal, type GetRouterPagesCachedUrlParams as GetRouterPagesCachedUrlParamsOriginal, type GetRouterPagesRequest as GetRouterPagesRequestOriginal, type GetRouterPagesResponse as GetRouterPagesResponseOriginal, type GetRouterSitemapCountRequest as GetRouterSitemapCountRequestOriginal, type GetRouterSitemapCountResponse as GetRouterSitemapCountResponseOriginal, type GetRouterSitemapRequest as GetRouterSitemapRequestOriginal, type GetRouterSitemapResponse as GetRouterSitemapResponseOriginal, type Page as PageOriginal, type PageRole as PageRoleOriginal, type PageRule as PageRuleOriginal, type PatternConfig as PatternConfigOriginal, type Pattern as PatternOriginal, type RequestInfo as RequestInfoOriginal, type RouterCountItem as RouterCountItemOriginal, type RouterPageHead as RouterPageHeadOriginal, type RouterPagesResult as RouterPagesResultOriginal, type RouterRouteItem as RouterRouteItemOriginal, type __PublicMethodMetaInfo, getDraftPreviewToken, getRouterPages, getRouterPagesCached, getRouterSitemap, getRouterSitemapCount };
@@ -0,0 +1,356 @@
1
+ // src/dynamic-page-router-v1-page-pages.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
5
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
6
+ function resolveWixDynamicPageRouterV1DynamicPageRouterUrl(opts) {
7
+ const domainToMappings = {
8
+ "editor._base_domain_": [
9
+ {
10
+ srcPath: "/_api/dynamic-pages-router",
11
+ destPath: ""
12
+ },
13
+ {
14
+ srcPath: "/_api/dynamic-page-router",
15
+ destPath: ""
16
+ }
17
+ ],
18
+ "blocks._base_domain_": [
19
+ {
20
+ srcPath: "/_api/dynamic-pages-router",
21
+ destPath: ""
22
+ },
23
+ {
24
+ srcPath: "/_api/dynamic-page-router",
25
+ destPath: ""
26
+ }
27
+ ],
28
+ "create.editorx": [
29
+ {
30
+ srcPath: "/_api/dynamic-pages-router",
31
+ destPath: ""
32
+ },
33
+ {
34
+ srcPath: "/_api/dynamic-page-router",
35
+ destPath: ""
36
+ }
37
+ ],
38
+ _: [
39
+ {
40
+ srcPath: "/_api/dynamic-pages-router",
41
+ destPath: ""
42
+ },
43
+ {
44
+ srcPath: "/_api/dynamic-page-router",
45
+ destPath: ""
46
+ }
47
+ ],
48
+ "dev._base_domain_": [
49
+ {
50
+ srcPath: "/_api/dynamic-pages-router",
51
+ destPath: ""
52
+ },
53
+ {
54
+ srcPath: "/_api/dynamic-page-router",
55
+ destPath: ""
56
+ }
57
+ ],
58
+ "api._api_base_domain_": [
59
+ {
60
+ srcPath: "/dynamic-pages-router",
61
+ destPath: ""
62
+ },
63
+ {
64
+ srcPath: "/dynamic-page-router",
65
+ destPath: ""
66
+ }
67
+ ],
68
+ "www._base_domain_": [
69
+ {
70
+ srcPath: "/_api/dynamic-pages-router",
71
+ destPath: ""
72
+ },
73
+ {
74
+ srcPath: "/_api/dynamic-page-router",
75
+ destPath: ""
76
+ }
77
+ ],
78
+ "bo._base_domain_": [
79
+ {
80
+ srcPath: "/_api/dynamic-pages-router",
81
+ destPath: ""
82
+ },
83
+ {
84
+ srcPath: "/_api/dynamic-page-router",
85
+ destPath: ""
86
+ }
87
+ ],
88
+ "wixbo.ai": [
89
+ {
90
+ srcPath: "/_api/dynamic-pages-router",
91
+ destPath: ""
92
+ },
93
+ {
94
+ srcPath: "/_api/dynamic-page-router",
95
+ destPath: ""
96
+ }
97
+ ],
98
+ "wix-bo.com": [
99
+ {
100
+ srcPath: "/_api/dynamic-pages-router",
101
+ destPath: ""
102
+ },
103
+ {
104
+ srcPath: "/_api/dynamic-page-router",
105
+ destPath: ""
106
+ }
107
+ ],
108
+ "manage._base_domain_": [
109
+ {
110
+ srcPath: "/_api/dynamic-page-router",
111
+ destPath: ""
112
+ }
113
+ ],
114
+ "www.wixapis.com": [
115
+ {
116
+ srcPath: "/dynamic-page-router/v1/pages",
117
+ destPath: "/v1/pages"
118
+ },
119
+ {
120
+ srcPath: "/dynamic-page-router/v1/sitemap",
121
+ destPath: "/v1/sitemap"
122
+ },
123
+ {
124
+ srcPath: "/dynamic-page-router/v1/draft-preview-token",
125
+ destPath: "/v1/draft-preview-token"
126
+ }
127
+ ],
128
+ "*.dev.wix-code.com": [
129
+ {
130
+ srcPath: "/dynamic-page-router/v1/pages",
131
+ destPath: "/v1/pages"
132
+ },
133
+ {
134
+ srcPath: "/dynamic-page-router/v1/sitemap",
135
+ destPath: "/v1/sitemap"
136
+ },
137
+ {
138
+ srcPath: "/dynamic-page-router/v1/draft-preview-token",
139
+ destPath: "/v1/draft-preview-token"
140
+ }
141
+ ]
142
+ };
143
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
144
+ }
145
+ var PACKAGE_NAME = "@wix/auto_sdk_dynamic-page-router_pages";
146
+ function getRouterSitemapCount(payload) {
147
+ function __getRouterSitemapCount({ host }) {
148
+ const metadata = {
149
+ entityFqdn: "wix.dynamic_page_router.v1.page",
150
+ method: "POST",
151
+ methodFqn: "wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterSitemapCount",
152
+ packageName: PACKAGE_NAME,
153
+ migrationOptions: {
154
+ optInTransformResponse: true
155
+ },
156
+ url: resolveWixDynamicPageRouterV1DynamicPageRouterUrl({
157
+ protoPath: "/v1/sitemapCount",
158
+ data: payload,
159
+ host
160
+ }),
161
+ data: payload
162
+ };
163
+ return metadata;
164
+ }
165
+ return __getRouterSitemapCount;
166
+ }
167
+ function getRouterSitemap(payload) {
168
+ function __getRouterSitemap({ host }) {
169
+ const metadata = {
170
+ entityFqdn: "wix.dynamic_page_router.v1.page",
171
+ method: "POST",
172
+ methodFqn: "wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterSitemap",
173
+ packageName: PACKAGE_NAME,
174
+ migrationOptions: {
175
+ optInTransformResponse: true
176
+ },
177
+ url: resolveWixDynamicPageRouterV1DynamicPageRouterUrl({
178
+ protoPath: "/v1/sitemap",
179
+ data: payload,
180
+ host
181
+ }),
182
+ data: payload,
183
+ transformResponse: (payload2) => transformPaths(payload2, [
184
+ {
185
+ transformFn: transformRESTFloatToSDKFloat,
186
+ paths: [{ path: "result.priority" }]
187
+ }
188
+ ])
189
+ };
190
+ return metadata;
191
+ }
192
+ return __getRouterSitemap;
193
+ }
194
+ function getRouterPages(payload) {
195
+ function __getRouterPages({ host }) {
196
+ const metadata = {
197
+ entityFqdn: "wix.dynamic_page_router.v1.page",
198
+ method: "POST",
199
+ methodFqn: "wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterPages",
200
+ packageName: PACKAGE_NAME,
201
+ migrationOptions: {
202
+ optInTransformResponse: true
203
+ },
204
+ url: resolveWixDynamicPageRouterV1DynamicPageRouterUrl({
205
+ protoPath: "/v1/pages",
206
+ data: payload,
207
+ host
208
+ }),
209
+ data: payload
210
+ };
211
+ return metadata;
212
+ }
213
+ return __getRouterPages;
214
+ }
215
+ function getRouterPagesCached(payload) {
216
+ function __getRouterPagesCached({ host }) {
217
+ const metadata = {
218
+ entityFqdn: "wix.dynamic_page_router.v1.page",
219
+ method: "GET",
220
+ methodFqn: "wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterPagesCached",
221
+ packageName: PACKAGE_NAME,
222
+ migrationOptions: {
223
+ optInTransformResponse: true
224
+ },
225
+ url: resolveWixDynamicPageRouterV1DynamicPageRouterUrl({
226
+ protoPath: "/v1/pages",
227
+ data: payload,
228
+ host
229
+ }),
230
+ params: toURLSearchParams(payload, true)
231
+ };
232
+ return metadata;
233
+ }
234
+ return __getRouterPagesCached;
235
+ }
236
+ function getDraftPreviewToken(payload) {
237
+ function __getDraftPreviewToken({ host }) {
238
+ const metadata = {
239
+ entityFqdn: "wix.dynamic_page_router.v1.page",
240
+ method: "POST",
241
+ methodFqn: "wix.dynamic_page_router.v1.DynamicPageRouter.GetDraftPreviewToken",
242
+ packageName: PACKAGE_NAME,
243
+ migrationOptions: {
244
+ optInTransformResponse: true
245
+ },
246
+ url: resolveWixDynamicPageRouterV1DynamicPageRouterUrl({
247
+ protoPath: "/v1/draft-preview-token",
248
+ data: payload,
249
+ host
250
+ }),
251
+ data: payload
252
+ };
253
+ return metadata;
254
+ }
255
+ return __getDraftPreviewToken;
256
+ }
257
+
258
+ // src/dynamic-page-router-v1-page-pages.meta.ts
259
+ function getRouterSitemapCount2() {
260
+ const payload = {};
261
+ const getRequestOptions = getRouterSitemapCount(payload);
262
+ const getUrl = (context) => {
263
+ const { url } = getRequestOptions(context);
264
+ return url;
265
+ };
266
+ return {
267
+ getUrl,
268
+ httpMethod: "POST",
269
+ path: "/v1/sitemapCount",
270
+ pathParams: {},
271
+ __requestType: null,
272
+ __originalRequestType: null,
273
+ __responseType: null,
274
+ __originalResponseType: null
275
+ };
276
+ }
277
+ function getRouterSitemap2() {
278
+ const payload = {};
279
+ const getRequestOptions = getRouterSitemap(payload);
280
+ const getUrl = (context) => {
281
+ const { url } = getRequestOptions(context);
282
+ return url;
283
+ };
284
+ return {
285
+ getUrl,
286
+ httpMethod: "POST",
287
+ path: "/v1/sitemap",
288
+ pathParams: {},
289
+ __requestType: null,
290
+ __originalRequestType: null,
291
+ __responseType: null,
292
+ __originalResponseType: null
293
+ };
294
+ }
295
+ function getRouterPages2() {
296
+ const payload = {};
297
+ const getRequestOptions = getRouterPages(payload);
298
+ const getUrl = (context) => {
299
+ const { url } = getRequestOptions(context);
300
+ return url;
301
+ };
302
+ return {
303
+ getUrl,
304
+ httpMethod: "POST",
305
+ path: "/v1/pages",
306
+ pathParams: {},
307
+ __requestType: null,
308
+ __originalRequestType: null,
309
+ __responseType: null,
310
+ __originalResponseType: null
311
+ };
312
+ }
313
+ function getRouterPagesCached2() {
314
+ const payload = {};
315
+ const getRequestOptions = getRouterPagesCached(payload);
316
+ const getUrl = (context) => {
317
+ const { url } = getRequestOptions(context);
318
+ return url;
319
+ };
320
+ return {
321
+ getUrl,
322
+ httpMethod: "GET",
323
+ path: "/v1/pages",
324
+ pathParams: {},
325
+ __requestType: null,
326
+ __originalRequestType: null,
327
+ __responseType: null,
328
+ __originalResponseType: null
329
+ };
330
+ }
331
+ function getDraftPreviewToken2() {
332
+ const payload = {};
333
+ const getRequestOptions = getDraftPreviewToken(payload);
334
+ const getUrl = (context) => {
335
+ const { url } = getRequestOptions(context);
336
+ return url;
337
+ };
338
+ return {
339
+ getUrl,
340
+ httpMethod: "POST",
341
+ path: "/v1/draft-preview-token",
342
+ pathParams: {},
343
+ __requestType: null,
344
+ __originalRequestType: null,
345
+ __responseType: null,
346
+ __originalResponseType: null
347
+ };
348
+ }
349
+ export {
350
+ getDraftPreviewToken2 as getDraftPreviewToken,
351
+ getRouterPages2 as getRouterPages,
352
+ getRouterPagesCached2 as getRouterPagesCached,
353
+ getRouterSitemap2 as getRouterSitemap,
354
+ getRouterSitemapCount2 as getRouterSitemapCount
355
+ };
356
+ //# sourceMappingURL=meta.mjs.map