@wix/auto_sdk_stores_collections 1.0.9 → 1.0.11

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 (130) hide show
  1. package/build/index.d.mts +34 -0
  2. package/build/index.d.ts +34 -0
  3. package/build/index.js +328 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +300 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +34 -0
  8. package/build/internal/index.d.ts +34 -0
  9. package/build/internal/index.js +328 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +300 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/{es/src/stores-catalog-v1-collection-collections.types.d.ts → internal/meta.d.mts} +45 -81
  14. package/build/internal/{cjs/src/stores-catalog-v1-collection-collections.types.d.ts → meta.d.ts} +45 -81
  15. package/build/internal/meta.js +241 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +212 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/internal/{cjs/src/stores-catalog-v1-collection-collections.universal.d.ts → stores-catalog-v1-collection-collections.universal-BdGGTv5j.d.mts} +31 -57
  20. package/build/internal/{es/src/stores-catalog-v1-collection-collections.universal.d.ts → stores-catalog-v1-collection-collections.universal-BdGGTv5j.d.ts} +31 -57
  21. package/build/{cjs/src/stores-catalog-v1-collection-collections.types.d.ts → meta.d.mts} +45 -81
  22. package/build/{internal/es/src/stores-catalog-v1-collection-collections.types.d.ts → meta.d.ts} +45 -81
  23. package/build/meta.js +241 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +212 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{cjs/src/stores-catalog-v1-collection-collections.universal.d.ts → stores-catalog-v1-collection-collections.universal-DXVGSHC4.d.mts} +31 -57
  28. package/build/{es/src/stores-catalog-v1-collection-collections.universal.d.ts → stores-catalog-v1-collection-collections.universal-DXVGSHC4.d.ts} +31 -57
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/stores-catalog-v1-collection-collections.context.d.ts +0 -7
  40. package/build/cjs/src/stores-catalog-v1-collection-collections.context.js +0 -12
  41. package/build/cjs/src/stores-catalog-v1-collection-collections.context.js.map +0 -1
  42. package/build/cjs/src/stores-catalog-v1-collection-collections.http.d.ts +0 -10
  43. package/build/cjs/src/stores-catalog-v1-collection-collections.http.js +0 -162
  44. package/build/cjs/src/stores-catalog-v1-collection-collections.http.js.map +0 -1
  45. package/build/cjs/src/stores-catalog-v1-collection-collections.meta.d.ts +0 -19
  46. package/build/cjs/src/stores-catalog-v1-collection-collections.meta.js +0 -85
  47. package/build/cjs/src/stores-catalog-v1-collection-collections.meta.js.map +0 -1
  48. package/build/cjs/src/stores-catalog-v1-collection-collections.public.d.ts +0 -30
  49. package/build/cjs/src/stores-catalog-v1-collection-collections.public.js +0 -27
  50. package/build/cjs/src/stores-catalog-v1-collection-collections.public.js.map +0 -1
  51. package/build/cjs/src/stores-catalog-v1-collection-collections.types.js +0 -23
  52. package/build/cjs/src/stores-catalog-v1-collection-collections.types.js.map +0 -1
  53. package/build/cjs/src/stores-catalog-v1-collection-collections.universal.js +0 -160
  54. package/build/cjs/src/stores-catalog-v1-collection-collections.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/stores-catalog-v1-collection-collections.context.d.ts +0 -7
  66. package/build/es/src/stores-catalog-v1-collection-collections.context.js +0 -7
  67. package/build/es/src/stores-catalog-v1-collection-collections.context.js.map +0 -1
  68. package/build/es/src/stores-catalog-v1-collection-collections.http.d.ts +0 -10
  69. package/build/es/src/stores-catalog-v1-collection-collections.http.js +0 -156
  70. package/build/es/src/stores-catalog-v1-collection-collections.http.js.map +0 -1
  71. package/build/es/src/stores-catalog-v1-collection-collections.meta.d.ts +0 -19
  72. package/build/es/src/stores-catalog-v1-collection-collections.meta.js +0 -56
  73. package/build/es/src/stores-catalog-v1-collection-collections.meta.js.map +0 -1
  74. package/build/es/src/stores-catalog-v1-collection-collections.public.d.ts +0 -30
  75. package/build/es/src/stores-catalog-v1-collection-collections.public.js +0 -19
  76. package/build/es/src/stores-catalog-v1-collection-collections.public.js.map +0 -1
  77. package/build/es/src/stores-catalog-v1-collection-collections.types.js +0 -20
  78. package/build/es/src/stores-catalog-v1-collection-collections.types.js.map +0 -1
  79. package/build/es/src/stores-catalog-v1-collection-collections.universal.js +0 -131
  80. package/build/es/src/stores-catalog-v1-collection-collections.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.context.d.ts +0 -7
  91. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.context.js +0 -12
  92. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.context.js.map +0 -1
  93. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.http.d.ts +0 -10
  94. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.http.js +0 -162
  95. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.http.js.map +0 -1
  96. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.meta.d.ts +0 -19
  97. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.meta.js +0 -85
  98. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.meta.js.map +0 -1
  99. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.public.d.ts +0 -30
  100. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.public.js +0 -27
  101. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.public.js.map +0 -1
  102. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.types.js +0 -23
  103. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.types.js.map +0 -1
  104. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.universal.js +0 -160
  105. package/build/internal/cjs/src/stores-catalog-v1-collection-collections.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/stores-catalog-v1-collection-collections.context.d.ts +0 -7
  116. package/build/internal/es/src/stores-catalog-v1-collection-collections.context.js +0 -7
  117. package/build/internal/es/src/stores-catalog-v1-collection-collections.context.js.map +0 -1
  118. package/build/internal/es/src/stores-catalog-v1-collection-collections.http.d.ts +0 -10
  119. package/build/internal/es/src/stores-catalog-v1-collection-collections.http.js +0 -156
  120. package/build/internal/es/src/stores-catalog-v1-collection-collections.http.js.map +0 -1
  121. package/build/internal/es/src/stores-catalog-v1-collection-collections.meta.d.ts +0 -19
  122. package/build/internal/es/src/stores-catalog-v1-collection-collections.meta.js +0 -56
  123. package/build/internal/es/src/stores-catalog-v1-collection-collections.meta.js.map +0 -1
  124. package/build/internal/es/src/stores-catalog-v1-collection-collections.public.d.ts +0 -30
  125. package/build/internal/es/src/stores-catalog-v1-collection-collections.public.js +0 -19
  126. package/build/internal/es/src/stores-catalog-v1-collection-collections.public.js.map +0 -1
  127. package/build/internal/es/src/stores-catalog-v1-collection-collections.types.js +0 -20
  128. package/build/internal/es/src/stores-catalog-v1-collection-collections.types.js.map +0 -1
  129. package/build/internal/es/src/stores-catalog-v1-collection-collections.universal.js +0 -131
  130. package/build/internal/es/src/stores-catalog-v1-collection-collections.universal.js.map +0 -1
@@ -1,5 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface Collection {
1
+ interface Collection {
3
2
  /**
4
3
  * Collection ID (generated automatically by the catalog).
5
4
  * @minLength 35
@@ -43,13 +42,13 @@ export interface Collection {
43
42
  */
44
43
  lastUpdated?: Date | null;
45
44
  }
46
- export interface Media {
45
+ interface Media {
47
46
  /** Primary media (image, video etc) associated with this product. */
48
47
  mainMedia?: MediaItem;
49
48
  /** Media (images, videos etc) associated with this product. */
50
49
  items?: MediaItem[];
51
50
  }
52
- export interface MediaItem extends MediaItemItemOneOf {
51
+ interface MediaItem extends MediaItemItemOneOf {
53
52
  /** Image data (URL, size). */
54
53
  image?: MediaItemUrlAndSize;
55
54
  /** Video data (URL, size). */
@@ -64,13 +63,13 @@ export interface MediaItem extends MediaItemItemOneOf {
64
63
  _id?: string;
65
64
  }
66
65
  /** @oneof */
67
- export interface MediaItemItemOneOf {
66
+ interface MediaItemItemOneOf {
68
67
  /** Image data (URL, size). */
69
68
  image?: MediaItemUrlAndSize;
70
69
  /** Video data (URL, size). */
71
70
  video?: MediaItemVideo;
72
71
  }
73
- export interface MediaItemUrlAndSize {
72
+ interface MediaItemUrlAndSize {
74
73
  /**
75
74
  * Media item URL.
76
75
  * @format WEB_URL
@@ -85,7 +84,7 @@ export interface MediaItemUrlAndSize {
85
84
  /** Alt text. This text will be shown in case the image is not available. */
86
85
  altText?: string | null;
87
86
  }
88
- export declare enum MediaItemType {
87
+ declare enum MediaItemType {
89
88
  unspecified_media_item_type = "unspecified_media_item_type",
90
89
  /** Image media type. */
91
90
  image = "image",
@@ -99,8 +98,8 @@ export declare enum MediaItemType {
99
98
  zip = "zip"
100
99
  }
101
100
  /** @enumType */
102
- export type MediaItemTypeWithLiterals = MediaItemType | 'unspecified_media_item_type' | 'image' | 'video' | 'audio' | 'document' | 'zip';
103
- export interface MediaItemVideo {
101
+ type MediaItemTypeWithLiterals = MediaItemType | 'unspecified_media_item_type' | 'image' | 'video' | 'audio' | 'document' | 'zip';
102
+ interface MediaItemVideo {
104
103
  /** Data (URL, size) about each resolution for which this video is available. */
105
104
  files?: MediaItemUrlAndSize[];
106
105
  /** ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`. */
@@ -111,13 +110,13 @@ export interface MediaItemVideo {
111
110
  * The search engines use this information for ranking purposes, or to display snippets in the search results.
112
111
  * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
113
112
  */
114
- export interface SeoSchema {
113
+ interface SeoSchema {
115
114
  /** SEO tag information. */
116
115
  tags?: Tag[];
117
116
  /** SEO general settings. */
118
117
  settings?: Settings;
119
118
  }
120
- export interface Keyword {
119
+ interface Keyword {
121
120
  /** Keyword value. */
122
121
  term?: string;
123
122
  /** Whether the keyword is the main focus keyword. */
@@ -128,7 +127,7 @@ export interface Keyword {
128
127
  */
129
128
  origin?: string | null;
130
129
  }
131
- export interface Tag {
130
+ interface Tag {
132
131
  /**
133
132
  * SEO tag type.
134
133
  *
@@ -150,7 +149,7 @@ export interface Tag {
150
149
  /** Whether the tag is disabled. */
151
150
  disabled?: boolean;
152
151
  }
153
- export interface Settings {
152
+ interface Settings {
154
153
  /**
155
154
  * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
156
155
  *
@@ -164,10 +163,10 @@ export interface Settings {
164
163
  */
165
164
  keywords?: Keyword[];
166
165
  }
167
- export interface QueryCollectionsRequest {
166
+ interface QueryCollectionsRequest {
168
167
  query?: PlatformQuery;
169
168
  }
170
- export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
169
+ interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
171
170
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
172
171
  paging?: PlatformPaging;
173
172
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
@@ -178,13 +177,13 @@ export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
178
177
  sort?: Sorting[];
179
178
  }
180
179
  /** @oneof */
181
- export interface PlatformQueryPagingMethodOneOf {
180
+ interface PlatformQueryPagingMethodOneOf {
182
181
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
183
182
  paging?: PlatformPaging;
184
183
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
185
184
  cursorPaging?: CursorPaging;
186
185
  }
187
- export interface Sorting {
186
+ interface Sorting {
188
187
  /**
189
188
  * Name of the field to sort by.
190
189
  * @maxLength 512
@@ -193,13 +192,13 @@ export interface Sorting {
193
192
  /** Sort order. */
194
193
  order?: SortOrderWithLiterals;
195
194
  }
196
- export declare enum SortOrder {
195
+ declare enum SortOrder {
197
196
  ASC = "ASC",
198
197
  DESC = "DESC"
199
198
  }
200
199
  /** @enumType */
201
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
202
- export interface PlatformPaging {
200
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
201
+ interface PlatformPaging {
203
202
  /**
204
203
  * Number of items to load.
205
204
  * @max 100
@@ -208,7 +207,7 @@ export interface PlatformPaging {
208
207
  /** Number of items to skip in the current sort order. */
209
208
  offset?: number | null;
210
209
  }
211
- export interface CursorPaging {
210
+ interface CursorPaging {
212
211
  /**
213
212
  * Maximum number of items to return in the results.
214
213
  * @max 100
@@ -223,12 +222,12 @@ export interface CursorPaging {
223
222
  */
224
223
  cursor?: string | null;
225
224
  }
226
- export interface QueryCollectionsResponse {
225
+ interface QueryCollectionsResponse {
227
226
  /** @maxSize 100 */
228
227
  collections?: Collection[];
229
228
  metadata?: PlatformPagingMetadata;
230
229
  }
231
- export interface PlatformPagingMetadata {
230
+ interface PlatformPagingMetadata {
232
231
  /** The number of items returned in this response. */
233
232
  count?: number | null;
234
233
  /** The offset which was requested. Returned if offset paging was used. */
@@ -238,7 +237,7 @@ export interface PlatformPagingMetadata {
238
237
  /** Cursors to navigate through result pages. Returned if cursor paging was used. */
239
238
  cursors?: Cursors;
240
239
  }
241
- export interface Cursors {
240
+ interface Cursors {
242
241
  /**
243
242
  * Cursor string pointing to the next page in the list of results.
244
243
  * @maxLength 16000
@@ -250,14 +249,14 @@ export interface Cursors {
250
249
  */
251
250
  prev?: string | null;
252
251
  }
253
- export interface GetCollectionRequest {
252
+ interface GetCollectionRequest {
254
253
  /** Requested collection ID. */
255
254
  _id: string;
256
255
  }
257
- export interface GetCollectionResponse {
256
+ interface GetCollectionResponse {
258
257
  collection?: Collection;
259
258
  }
260
- export interface GetCollectionBySlugRequest {
259
+ interface GetCollectionBySlugRequest {
261
260
  /**
262
261
  * Slug of the collection to retrieve.
263
262
  * @minLength 1
@@ -265,18 +264,10 @@ export interface GetCollectionBySlugRequest {
265
264
  */
266
265
  slug: string;
267
266
  }
268
- export interface GetCollectionBySlugResponse {
267
+ interface GetCollectionBySlugResponse {
269
268
  /** The requested collection. */
270
269
  collection?: Collection;
271
270
  }
272
- type CollectionNonNullablePaths = `media.mainMedia.image.url` | `media.mainMedia.image.width` | `media.mainMedia.image.height` | `media.mainMedia.video.files` | `media.mainMedia.video.stillFrameMediaId` | `media.mainMedia.mediaType` | `media.mainMedia.title` | `media.mainMedia._id` | `media.items` | `numberOfProducts`;
273
- /**
274
- * Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
275
- * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
276
- * @public
277
- * @fqn wix.catalog.api.v2.CollectionReadApi.QueryCollections
278
- */
279
- export declare function queryCollections(): CollectionsQueryBuilder;
280
271
  interface QueryOffsetResult {
281
272
  currentPage: number | undefined;
282
273
  totalPages: number | undefined;
@@ -286,13 +277,13 @@ interface QueryOffsetResult {
286
277
  length: number;
287
278
  pageSize: number;
288
279
  }
289
- export interface CollectionsQueryResult extends QueryOffsetResult {
280
+ interface CollectionsQueryResult extends QueryOffsetResult {
290
281
  items: Collection[];
291
282
  query: CollectionsQueryBuilder;
292
283
  next: () => Promise<CollectionsQueryResult>;
293
284
  prev: () => Promise<CollectionsQueryResult>;
294
285
  }
295
- export interface CollectionsQueryBuilder {
286
+ interface CollectionsQueryBuilder {
296
287
  /** @param propertyName - Property whose value is compared with `value`.
297
288
  * @param value - Value to compare against.
298
289
  */
@@ -337,22 +328,5 @@ export interface CollectionsQueryBuilder {
337
328
  skip: (skip: number) => CollectionsQueryBuilder;
338
329
  find: () => Promise<CollectionsQueryResult>;
339
330
  }
340
- /**
341
- * Retrieves a collection with the provided ID.
342
- * @param _id - Requested collection ID.
343
- * @public
344
- * @requiredField _id
345
- * @fqn wix.catalog.api.v2.CollectionReadApi.GetCollection
346
- */
347
- export declare function getCollection(_id: string): Promise<NonNullablePaths<Collection, CollectionNonNullablePaths>>;
348
- /**
349
- * Retrieves a collection with the provided slug.
350
- * @param slug - Slug of the collection to retrieve.
351
- * @public
352
- * @requiredField slug
353
- * @fqn wix.catalog.api.v2.CollectionReadApi.GetCollectionBySlug
354
- */
355
- export declare function getCollectionBySlug(slug: string): Promise<NonNullablePaths<GetCollectionBySlugResponse, {
356
- [P in CollectionNonNullablePaths]: `collection.${P}`;
357
- }[CollectionNonNullablePaths]>>;
358
- export {};
331
+
332
+ export { type CollectionsQueryBuilder as C, type GetCollectionBySlugResponse as G, type Keyword as K, MediaItemType as M, type PlatformQuery as P, type QueryCollectionsRequest as Q, SortOrder as S, type Tag as T, type Collection as a, type Media as b, type MediaItem as c, type MediaItemItemOneOf as d, type MediaItemUrlAndSize as e, type MediaItemVideo as f, type SeoSchema as g, type Settings as h, type PlatformQueryPagingMethodOneOf as i, type Sorting as j, type PlatformPaging as k, type CursorPaging as l, type QueryCollectionsResponse as m, type PlatformPagingMetadata as n, type Cursors as o, type GetCollectionRequest as p, type GetCollectionResponse as q, type GetCollectionBySlugRequest as r, type CollectionsQueryResult as s };
@@ -1,4 +1,6 @@
1
- export interface Collection {
1
+ import { Q as QueryCollectionsRequest$1, m as QueryCollectionsResponse$1, p as GetCollectionRequest$1, q as GetCollectionResponse$1, r as GetCollectionBySlugRequest$1, G as GetCollectionBySlugResponse$1 } from './stores-catalog-v1-collection-collections.universal-DXVGSHC4.mjs';
2
+
3
+ interface Collection {
2
4
  /**
3
5
  * Collection ID (generated automatically by the catalog).
4
6
  * @minLength 35
@@ -36,13 +38,13 @@ export interface Collection {
36
38
  /** Collection visibility. Only impacts dynamic pages, no impact on static pages. Default: `true`. */
37
39
  visible?: boolean | null;
38
40
  }
39
- export interface Media {
41
+ interface Media {
40
42
  /** Primary media (image, video etc) associated with this product. */
41
43
  mainMedia?: MediaItem;
42
44
  /** Media (images, videos etc) associated with this product. */
43
45
  items?: MediaItem[];
44
46
  }
45
- export interface MediaItem extends MediaItemItemOneOf {
47
+ interface MediaItem extends MediaItemItemOneOf {
46
48
  /** Image data (URL, size). */
47
49
  image?: MediaItemUrlAndSize;
48
50
  /** Video data (URL, size). */
@@ -57,13 +59,13 @@ export interface MediaItem extends MediaItemItemOneOf {
57
59
  id?: string;
58
60
  }
59
61
  /** @oneof */
60
- export interface MediaItemItemOneOf {
62
+ interface MediaItemItemOneOf {
61
63
  /** Image data (URL, size). */
62
64
  image?: MediaItemUrlAndSize;
63
65
  /** Video data (URL, size). */
64
66
  video?: MediaItemVideo;
65
67
  }
66
- export interface MediaItemUrlAndSize {
68
+ interface MediaItemUrlAndSize {
67
69
  /**
68
70
  * Media item URL.
69
71
  * @format WEB_URL
@@ -78,7 +80,7 @@ export interface MediaItemUrlAndSize {
78
80
  /** Alt text. This text will be shown in case the image is not available. */
79
81
  altText?: string | null;
80
82
  }
81
- export declare enum MediaItemType {
83
+ declare enum MediaItemType {
82
84
  unspecified_media_item_type = "unspecified_media_item_type",
83
85
  /** Image media type. */
84
86
  image = "image",
@@ -92,75 +94,17 @@ export declare enum MediaItemType {
92
94
  zip = "zip"
93
95
  }
94
96
  /** @enumType */
95
- export type MediaItemTypeWithLiterals = MediaItemType | 'unspecified_media_item_type' | 'image' | 'video' | 'audio' | 'document' | 'zip';
96
- export interface MediaItemVideo {
97
+ type MediaItemTypeWithLiterals = MediaItemType | 'unspecified_media_item_type' | 'image' | 'video' | 'audio' | 'document' | 'zip';
98
+ interface MediaItemVideo {
97
99
  /** Data (URL, size) about each resolution for which this video is available. */
98
100
  files?: MediaItemUrlAndSize[];
99
101
  /** ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`. */
100
102
  stillFrameMediaId?: string;
101
103
  }
102
- /**
103
- * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
104
- * The search engines use this information for ranking purposes, or to display snippets in the search results.
105
- * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
106
- */
107
- export interface SeoSchema {
108
- /** SEO tag information. */
109
- tags?: Tag[];
110
- /** SEO general settings. */
111
- settings?: Settings;
112
- }
113
- export interface Keyword {
114
- /** Keyword value. */
115
- term?: string;
116
- /** Whether the keyword is the main focus keyword. */
117
- isMain?: boolean;
118
- /**
119
- * The source that added the keyword terms to the SEO settings.
120
- * @maxLength 1000
121
- */
122
- origin?: string | null;
123
- }
124
- export interface Tag {
125
- /**
126
- * SEO tag type.
127
- *
128
- *
129
- * Supported values: `title`, `meta`, `script`, `link`.
130
- */
131
- type?: string;
132
- /**
133
- * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
134
- * For example: `{"name": "description", "content": "the description itself"}`.
135
- */
136
- props?: Record<string, any> | null;
137
- /** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
138
- meta?: Record<string, any> | null;
139
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
140
- children?: string;
141
- /** Whether the tag is a custom tag. */
142
- custom?: boolean;
143
- /** Whether the tag is disabled. */
144
- disabled?: boolean;
145
- }
146
- export interface Settings {
147
- /**
148
- * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
149
- *
150
- *
151
- * Default: `false` (Auto Redirect is enabled.)
152
- */
153
- preventAutoRedirect?: boolean;
154
- /**
155
- * User-selected keyword terms for a specific page.
156
- * @maxSize 5
157
- */
158
- keywords?: Keyword[];
159
- }
160
- export interface QueryCollectionsRequest {
104
+ interface QueryCollectionsRequest {
161
105
  query?: PlatformQuery;
162
106
  }
163
- export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
107
+ interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
164
108
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
165
109
  paging?: PlatformPaging;
166
110
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
@@ -171,13 +115,13 @@ export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
171
115
  sort?: Sorting[];
172
116
  }
173
117
  /** @oneof */
174
- export interface PlatformQueryPagingMethodOneOf {
118
+ interface PlatformQueryPagingMethodOneOf {
175
119
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
176
120
  paging?: PlatformPaging;
177
121
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
178
122
  cursorPaging?: CursorPaging;
179
123
  }
180
- export interface Sorting {
124
+ interface Sorting {
181
125
  /**
182
126
  * Name of the field to sort by.
183
127
  * @maxLength 512
@@ -186,13 +130,13 @@ export interface Sorting {
186
130
  /** Sort order. */
187
131
  order?: SortOrderWithLiterals;
188
132
  }
189
- export declare enum SortOrder {
133
+ declare enum SortOrder {
190
134
  ASC = "ASC",
191
135
  DESC = "DESC"
192
136
  }
193
137
  /** @enumType */
194
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
195
- export interface PlatformPaging {
138
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
139
+ interface PlatformPaging {
196
140
  /**
197
141
  * Number of items to load.
198
142
  * @max 100
@@ -201,7 +145,7 @@ export interface PlatformPaging {
201
145
  /** Number of items to skip in the current sort order. */
202
146
  offset?: number | null;
203
147
  }
204
- export interface CursorPaging {
148
+ interface CursorPaging {
205
149
  /**
206
150
  * Maximum number of items to return in the results.
207
151
  * @max 100
@@ -216,12 +160,12 @@ export interface CursorPaging {
216
160
  */
217
161
  cursor?: string | null;
218
162
  }
219
- export interface QueryCollectionsResponse {
163
+ interface QueryCollectionsResponse {
220
164
  /** @maxSize 100 */
221
165
  collections?: Collection[];
222
166
  metadata?: PlatformPagingMetadata;
223
167
  }
224
- export interface PlatformPagingMetadata {
168
+ interface PlatformPagingMetadata {
225
169
  /** The number of items returned in this response. */
226
170
  count?: number | null;
227
171
  /** The offset which was requested. Returned if offset paging was used. */
@@ -231,7 +175,7 @@ export interface PlatformPagingMetadata {
231
175
  /** Cursors to navigate through result pages. Returned if cursor paging was used. */
232
176
  cursors?: Cursors;
233
177
  }
234
- export interface Cursors {
178
+ interface Cursors {
235
179
  /**
236
180
  * Cursor string pointing to the next page in the list of results.
237
181
  * @maxLength 16000
@@ -243,14 +187,14 @@ export interface Cursors {
243
187
  */
244
188
  prev?: string | null;
245
189
  }
246
- export interface GetCollectionRequest {
190
+ interface GetCollectionRequest {
247
191
  /** Requested collection ID. */
248
192
  id: string;
249
193
  }
250
- export interface GetCollectionResponse {
194
+ interface GetCollectionResponse {
251
195
  collection?: Collection;
252
196
  }
253
- export interface GetCollectionBySlugRequest {
197
+ interface GetCollectionBySlugRequest {
254
198
  /**
255
199
  * Slug of the collection to retrieve.
256
200
  * @minLength 1
@@ -258,7 +202,27 @@ export interface GetCollectionBySlugRequest {
258
202
  */
259
203
  slug: string;
260
204
  }
261
- export interface GetCollectionBySlugResponse {
205
+ interface GetCollectionBySlugResponse {
262
206
  /** The requested collection. */
263
207
  collection?: Collection;
264
208
  }
209
+
210
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
211
+ getUrl: (context: any) => string;
212
+ httpMethod: K;
213
+ path: string;
214
+ pathParams: M;
215
+ __requestType: T;
216
+ __originalRequestType: S;
217
+ __responseType: Q;
218
+ __originalResponseType: R;
219
+ };
220
+ declare function queryCollections(): __PublicMethodMetaInfo<'GET', {}, QueryCollectionsRequest$1, QueryCollectionsRequest, QueryCollectionsResponse$1, QueryCollectionsResponse>;
221
+ declare function getCollection(): __PublicMethodMetaInfo<'GET', {
222
+ id: string;
223
+ }, GetCollectionRequest$1, GetCollectionRequest, GetCollectionResponse$1, GetCollectionResponse>;
224
+ declare function getCollectionBySlug(): __PublicMethodMetaInfo<'GET', {
225
+ slug: string;
226
+ }, GetCollectionBySlugRequest$1, GetCollectionBySlugRequest, GetCollectionBySlugResponse$1, GetCollectionBySlugResponse>;
227
+
228
+ export { type __PublicMethodMetaInfo, getCollection, getCollectionBySlug, queryCollections };