@wix/auto_sdk_metro_products 1.0.1 → 1.0.3

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 (123) hide show
  1. package/build/cjs/index.d.ts +81 -1
  2. package/build/cjs/index.js +1514 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +574 -1
  5. package/build/cjs/index.typings.js +1425 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +447 -1
  8. package/build/cjs/meta.js +940 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +81 -0
  11. package/build/es/index.mjs +1481 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/{src/metroinspector-v1-product-products.universal.d.ts → index.typings.d.mts} +138 -212
  14. package/build/es/index.typings.mjs +1392 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/{src/metroinspector-v1-product-products.types.d.ts → meta.d.mts} +92 -259
  17. package/build/es/meta.mjs +907 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +81 -1
  20. package/build/internal/cjs/index.js +1514 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +574 -1
  23. package/build/internal/cjs/index.typings.js +1425 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +447 -1
  26. package/build/internal/cjs/meta.js +940 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +81 -0
  29. package/build/internal/es/index.mjs +1481 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/internal/{cjs/src/metroinspector-v1-product-products.universal.d.ts → es/index.typings.d.mts} +138 -212
  32. package/build/internal/es/index.typings.mjs +1392 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/{cjs/src/metroinspector-v1-product-products.types.d.ts → internal/es/meta.d.mts} +92 -259
  35. package/build/internal/es/meta.mjs +907 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +12 -10
  38. package/build/cjs/src/metroinspector-v1-product-products.context.d.ts +0 -14
  39. package/build/cjs/src/metroinspector-v1-product-products.context.js +0 -22
  40. package/build/cjs/src/metroinspector-v1-product-products.context.js.map +0 -1
  41. package/build/cjs/src/metroinspector-v1-product-products.http.d.ts +0 -16
  42. package/build/cjs/src/metroinspector-v1-product-products.http.js +0 -728
  43. package/build/cjs/src/metroinspector-v1-product-products.http.js.map +0 -1
  44. package/build/cjs/src/metroinspector-v1-product-products.meta.d.ts +0 -30
  45. package/build/cjs/src/metroinspector-v1-product-products.meta.js +0 -218
  46. package/build/cjs/src/metroinspector-v1-product-products.meta.js.map +0 -1
  47. package/build/cjs/src/metroinspector-v1-product-products.public.d.ts +0 -68
  48. package/build/cjs/src/metroinspector-v1-product-products.public.js +0 -72
  49. package/build/cjs/src/metroinspector-v1-product-products.public.js.map +0 -1
  50. package/build/cjs/src/metroinspector-v1-product-products.types.js +0 -61
  51. package/build/cjs/src/metroinspector-v1-product-products.types.js.map +0 -1
  52. package/build/cjs/src/metroinspector-v1-product-products.universal.d.ts +0 -648
  53. package/build/cjs/src/metroinspector-v1-product-products.universal.js +0 -739
  54. package/build/cjs/src/metroinspector-v1-product-products.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/src/metroinspector-v1-product-products.context.d.ts +0 -14
  65. package/build/es/src/metroinspector-v1-product-products.context.js +0 -14
  66. package/build/es/src/metroinspector-v1-product-products.context.js.map +0 -1
  67. package/build/es/src/metroinspector-v1-product-products.http.d.ts +0 -16
  68. package/build/es/src/metroinspector-v1-product-products.http.js +0 -715
  69. package/build/es/src/metroinspector-v1-product-products.http.js.map +0 -1
  70. package/build/es/src/metroinspector-v1-product-products.meta.d.ts +0 -30
  71. package/build/es/src/metroinspector-v1-product-products.meta.js +0 -182
  72. package/build/es/src/metroinspector-v1-product-products.meta.js.map +0 -1
  73. package/build/es/src/metroinspector-v1-product-products.public.d.ts +0 -68
  74. package/build/es/src/metroinspector-v1-product-products.public.js +0 -54
  75. package/build/es/src/metroinspector-v1-product-products.public.js.map +0 -1
  76. package/build/es/src/metroinspector-v1-product-products.types.js +0 -58
  77. package/build/es/src/metroinspector-v1-product-products.types.js.map +0 -1
  78. package/build/es/src/metroinspector-v1-product-products.universal.js +0 -703
  79. package/build/es/src/metroinspector-v1-product-products.universal.js.map +0 -1
  80. package/build/internal/cjs/src/metroinspector-v1-product-products.context.d.ts +0 -14
  81. package/build/internal/cjs/src/metroinspector-v1-product-products.context.js +0 -22
  82. package/build/internal/cjs/src/metroinspector-v1-product-products.context.js.map +0 -1
  83. package/build/internal/cjs/src/metroinspector-v1-product-products.http.d.ts +0 -16
  84. package/build/internal/cjs/src/metroinspector-v1-product-products.http.js +0 -728
  85. package/build/internal/cjs/src/metroinspector-v1-product-products.http.js.map +0 -1
  86. package/build/internal/cjs/src/metroinspector-v1-product-products.meta.d.ts +0 -30
  87. package/build/internal/cjs/src/metroinspector-v1-product-products.meta.js +0 -218
  88. package/build/internal/cjs/src/metroinspector-v1-product-products.meta.js.map +0 -1
  89. package/build/internal/cjs/src/metroinspector-v1-product-products.public.d.ts +0 -68
  90. package/build/internal/cjs/src/metroinspector-v1-product-products.public.js +0 -72
  91. package/build/internal/cjs/src/metroinspector-v1-product-products.public.js.map +0 -1
  92. package/build/internal/cjs/src/metroinspector-v1-product-products.types.d.ts +0 -614
  93. package/build/internal/cjs/src/metroinspector-v1-product-products.types.js +0 -61
  94. package/build/internal/cjs/src/metroinspector-v1-product-products.types.js.map +0 -1
  95. package/build/internal/cjs/src/metroinspector-v1-product-products.universal.js +0 -739
  96. package/build/internal/cjs/src/metroinspector-v1-product-products.universal.js.map +0 -1
  97. package/build/internal/es/index.d.ts +0 -1
  98. package/build/internal/es/index.js +0 -2
  99. package/build/internal/es/index.js.map +0 -1
  100. package/build/internal/es/index.typings.d.ts +0 -1
  101. package/build/internal/es/index.typings.js +0 -2
  102. package/build/internal/es/index.typings.js.map +0 -1
  103. package/build/internal/es/meta.d.ts +0 -1
  104. package/build/internal/es/meta.js +0 -2
  105. package/build/internal/es/meta.js.map +0 -1
  106. package/build/internal/es/src/metroinspector-v1-product-products.context.d.ts +0 -14
  107. package/build/internal/es/src/metroinspector-v1-product-products.context.js +0 -14
  108. package/build/internal/es/src/metroinspector-v1-product-products.context.js.map +0 -1
  109. package/build/internal/es/src/metroinspector-v1-product-products.http.d.ts +0 -16
  110. package/build/internal/es/src/metroinspector-v1-product-products.http.js +0 -715
  111. package/build/internal/es/src/metroinspector-v1-product-products.http.js.map +0 -1
  112. package/build/internal/es/src/metroinspector-v1-product-products.meta.d.ts +0 -30
  113. package/build/internal/es/src/metroinspector-v1-product-products.meta.js +0 -182
  114. package/build/internal/es/src/metroinspector-v1-product-products.meta.js.map +0 -1
  115. package/build/internal/es/src/metroinspector-v1-product-products.public.d.ts +0 -68
  116. package/build/internal/es/src/metroinspector-v1-product-products.public.js +0 -54
  117. package/build/internal/es/src/metroinspector-v1-product-products.public.js.map +0 -1
  118. package/build/internal/es/src/metroinspector-v1-product-products.types.d.ts +0 -614
  119. package/build/internal/es/src/metroinspector-v1-product-products.types.js +0 -58
  120. package/build/internal/es/src/metroinspector-v1-product-products.types.js.map +0 -1
  121. package/build/internal/es/src/metroinspector-v1-product-products.universal.d.ts +0 -648
  122. package/build/internal/es/src/metroinspector-v1-product-products.universal.js +0 -703
  123. package/build/internal/es/src/metroinspector-v1-product-products.universal.js.map +0 -1
@@ -1,4 +1,7 @@
1
- export interface Product {
1
+ import { CreateProductRequest as CreateProductRequest$1, CreateProductResponse as CreateProductResponse$1, DeleteProductRequest as DeleteProductRequest$1, DeleteProductResponse as DeleteProductResponse$1, UpdateProductRequest as UpdateProductRequest$1, UpdateProductResponse as UpdateProductResponse$1, GetProductRequest as GetProductRequest$1, GetProductResponse as GetProductResponse$1, CountProductsRequest as CountProductsRequest$1, CountProductsResponse as CountProductsResponse$1, GetProductsStartWithRequest as GetProductsStartWithRequest$1, GetProductsStartWithResponse as GetProductsStartWithResponse$1, QueryProductsRequest as QueryProductsRequest$1, QueryProductsResponse as QueryProductsResponse$1, BulkCreateProductsRequest as BulkCreateProductsRequest$1, BulkCreateProductsResponse as BulkCreateProductsResponse$1, BulkUpdateProductsRequest as BulkUpdateProductsRequest$1, BulkUpdateProductsResponse as BulkUpdateProductsResponse$1, BulkDeleteProductsRequest as BulkDeleteProductsRequest$1, BulkDeleteProductsResponse as BulkDeleteProductsResponse$1 } from './index.typings.mjs';
2
+ import '@wix/sdk-types';
3
+
4
+ interface Product {
2
5
  title?: string | null;
3
6
  id?: string;
4
7
  collectionId?: string;
@@ -27,7 +30,7 @@ export interface Product {
27
30
  */
28
31
  guid?: string;
29
32
  }
30
- export interface Image {
33
+ interface Image {
31
34
  /** WixMedia image ID. */
32
35
  id?: string;
33
36
  /** Image URL. */
@@ -50,40 +53,8 @@ export interface Image {
50
53
  */
51
54
  filename?: string | null;
52
55
  }
53
- export declare enum TextDetection {
54
- /** No detection was made */
55
- UNKNOWN_TEXT_DETECTION = "UNKNOWN_TEXT_DETECTION",
56
- /** The image contains text */
57
- CONTAINS_TEXT = "CONTAINS_TEXT",
58
- /** The image does not contain text */
59
- NO_TEXT = "NO_TEXT"
60
- }
61
- export declare enum AnimationDetection {
62
- /** No detection was made */
63
- UNKNOWN_ANIMATION_DETECTION = "UNKNOWN_ANIMATION_DETECTION",
64
- /** The image contains animation */
65
- CONTAINS_ANIMATION = "CONTAINS_ANIMATION",
66
- /** The image does not contain animation */
67
- NO_ANIMATION = "NO_ANIMATION"
68
- }
69
- export interface FocalPoint {
70
- /** X-coordinate of the focal point. */
71
- x?: number;
72
- /** Y-coordinate of the focal point. */
73
- y?: number;
74
- /** crop by height */
75
- height?: number | null;
76
- /** crop by width */
77
- width?: number | null;
78
- }
79
- export interface ImageContent {
80
- /** Text detection */
81
- text?: TextDetection;
82
- /** Animation detection */
83
- animation?: AnimationDetection;
84
- }
85
56
  /** Physical address */
86
- export interface Address extends AddressStreetOneOf {
57
+ interface Address extends AddressStreetOneOf {
87
58
  /** Street name and number. */
88
59
  streetAddress?: StreetAddress;
89
60
  /** Main address line, usually street and number as free text. */
@@ -103,54 +74,19 @@ export interface Address extends AddressStreetOneOf {
103
74
  addressLine2?: string | null;
104
75
  }
105
76
  /** @oneof */
106
- export interface AddressStreetOneOf {
77
+ interface AddressStreetOneOf {
107
78
  /** Street name and number. */
108
79
  streetAddress?: StreetAddress;
109
80
  /** Main address line, usually street and number as free text. */
110
81
  addressLine?: string | null;
111
82
  }
112
- export interface StreetAddress {
83
+ interface StreetAddress {
113
84
  /** Street number. */
114
85
  number?: string;
115
86
  /** Street name. */
116
87
  name?: string;
117
88
  }
118
- export interface AddressLocation {
119
- /** Address latitude. */
120
- latitude?: number | null;
121
- /** Address longitude. */
122
- longitude?: number | null;
123
- }
124
- export interface Subdivision {
125
- /** Short subdivision code. */
126
- code?: string;
127
- /** Subdivision full name. */
128
- name?: string;
129
- }
130
- export declare enum SubdivisionType {
131
- UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
132
- /** State */
133
- ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
134
- /** County */
135
- ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
136
- /** City/town */
137
- ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
138
- /** Neighborhood/quarter */
139
- ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
140
- /** Street/block */
141
- ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
142
- /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
143
- COUNTRY = "COUNTRY"
144
- }
145
- /** Subdivision Concordance values */
146
- export interface StandardDetails {
147
- /**
148
- * subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30
149
- * @maxLength 20
150
- */
151
- iso31662?: string | null;
152
- }
153
- export interface Document {
89
+ interface Document {
154
90
  /** WixMedia ID. */
155
91
  id?: string;
156
92
  /** Document URL. */
@@ -158,7 +94,7 @@ export interface Document {
158
94
  /** Document filename. */
159
95
  filename?: string | null;
160
96
  }
161
- export interface VideoV2 {
97
+ interface VideoV2 {
162
98
  /** WixMedia ID. */
163
99
  id?: string;
164
100
  /**
@@ -173,7 +109,7 @@ export interface VideoV2 {
173
109
  */
174
110
  filename?: string | null;
175
111
  }
176
- export interface VideoResolution {
112
+ interface VideoResolution {
177
113
  /** Video URL. */
178
114
  url?: string;
179
115
  /** Video height. */
@@ -183,7 +119,7 @@ export interface VideoResolution {
183
119
  /** Video format for example, mp4, hls. */
184
120
  format?: string;
185
121
  }
186
- export interface PageLink {
122
+ interface PageLink {
187
123
  /** The page id we want from the site */
188
124
  pageId?: string;
189
125
  /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
@@ -192,14 +128,14 @@ export interface PageLink {
192
128
  * rel of link
193
129
  * @maxSize 20
194
130
  */
195
- rel?: LinkRel[];
131
+ rel?: LinkRelWithLiterals[];
196
132
  }
197
133
  /**
198
134
  * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
199
135
  * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
200
136
  * Following are the accepted 'rel' types by Wix applications.
201
137
  */
202
- export declare enum LinkRel {
138
+ declare enum LinkRel {
203
139
  /** default (not implemented) */
204
140
  unknown_link_rel = "unknown_link_rel",
205
141
  /** Indicates that the current document's original author or publisher does not endorse the referenced document. */
@@ -211,7 +147,9 @@ export declare enum LinkRel {
211
147
  /** Indicates a link that resulted from advertisements or paid placements. */
212
148
  sponsored = "sponsored"
213
149
  }
214
- export interface Audio {
150
+ /** @enumType */
151
+ type LinkRelWithLiterals = LinkRel | 'unknown_link_rel' | 'nofollow' | 'noopener' | 'noreferrer' | 'sponsored';
152
+ interface Audio {
215
153
  /** WixMedia ID. */
216
154
  id?: string;
217
155
  /** Audio URL. */
@@ -222,12 +160,12 @@ export interface Audio {
222
160
  */
223
161
  filename?: string | null;
224
162
  }
225
- export interface Variant {
163
+ interface Variant {
226
164
  name?: string;
227
165
  value?: string;
228
166
  image?: Image;
229
167
  }
230
- export interface MyAddress {
168
+ interface MyAddress {
231
169
  /** @format COUNTRY */
232
170
  country?: string | null;
233
171
  subdivision?: string | null;
@@ -235,33 +173,33 @@ export interface MyAddress {
235
173
  postalCode?: string | null;
236
174
  streetAddress?: StreetAddress;
237
175
  }
238
- export interface CreateProductRequest {
176
+ interface CreateProductRequest {
239
177
  product?: Product;
240
178
  }
241
- export interface CreateProductResponse {
179
+ interface CreateProductResponse {
242
180
  product?: Product;
243
181
  }
244
- export interface DeleteProductRequest {
182
+ interface DeleteProductRequest {
245
183
  productId: string;
246
184
  }
247
- export interface DeleteProductResponse {
185
+ interface DeleteProductResponse {
248
186
  }
249
- export interface UpdateProductRequest {
187
+ interface UpdateProductRequest {
250
188
  productId: string;
251
189
  product?: Product;
252
190
  /** Explicit list of fields to update. */
253
191
  mask?: string[];
254
192
  }
255
- export interface UpdateProductResponse {
193
+ interface UpdateProductResponse {
256
194
  product?: Product;
257
195
  }
258
- export interface GetProductRequest {
196
+ interface GetProductRequest {
259
197
  productId: string;
260
198
  }
261
- export interface GetProductResponse {
199
+ interface GetProductResponse {
262
200
  product?: Product;
263
201
  }
264
- export interface CountProductsRequest {
202
+ interface CountProductsRequest {
265
203
  filter?: Record<string, any> | null;
266
204
  /** Whether variants should be included in the response. */
267
205
  includeVariants?: boolean;
@@ -270,17 +208,17 @@ export interface CountProductsRequest {
270
208
  /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
271
209
  includeMerchantSpecificData?: boolean;
272
210
  }
273
- export interface CountProductsResponse {
211
+ interface CountProductsResponse {
274
212
  count?: number;
275
213
  }
276
- export interface GetProductsStartWithRequest {
214
+ interface GetProductsStartWithRequest {
277
215
  title: string;
278
216
  addressLine2?: string | null;
279
217
  }
280
- export interface GetProductsStartWithResponse {
218
+ interface GetProductsStartWithResponse {
281
219
  products?: Product[];
282
220
  }
283
- export interface QueryProductsRequest {
221
+ interface QueryProductsRequest {
284
222
  query?: QueryV2;
285
223
  /** Whether variants should be included in the response. */
286
224
  includeVariants?: boolean;
@@ -289,21 +227,21 @@ export interface QueryProductsRequest {
289
227
  /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
290
228
  includeMerchantSpecificData?: boolean;
291
229
  }
292
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
293
- /** Paging options to limit and skip the number of items. */
230
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
231
+ /** Paging options to limit and offset the number of items. */
294
232
  paging?: Paging;
295
233
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
296
234
  cursorPaging?: CursorPaging;
297
235
  /**
298
236
  * Filter object.
299
237
  *
300
- * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
238
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
301
239
  */
302
240
  filter?: Record<string, any> | null;
303
241
  /**
304
242
  * Sort object.
305
243
  *
306
- * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
244
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
307
245
  */
308
246
  sort?: Sorting[];
309
247
  /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
@@ -312,32 +250,34 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
312
250
  fieldsets?: string[];
313
251
  }
314
252
  /** @oneof */
315
- export interface QueryV2PagingMethodOneOf {
316
- /** Paging options to limit and skip the number of items. */
253
+ interface QueryV2PagingMethodOneOf {
254
+ /** Paging options to limit and offset the number of items. */
317
255
  paging?: Paging;
318
256
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
319
257
  cursorPaging?: CursorPaging;
320
258
  }
321
- export interface Sorting {
259
+ interface Sorting {
322
260
  /**
323
261
  * Name of the field to sort by.
324
262
  * @maxLength 512
325
263
  */
326
264
  fieldName?: string;
327
265
  /** Sort order. */
328
- order?: SortOrder;
266
+ order?: SortOrderWithLiterals;
329
267
  }
330
- export declare enum SortOrder {
268
+ declare enum SortOrder {
331
269
  ASC = "ASC",
332
270
  DESC = "DESC"
333
271
  }
334
- export interface Paging {
272
+ /** @enumType */
273
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
274
+ interface Paging {
335
275
  /** Number of items to load. */
336
276
  limit?: number | null;
337
277
  /** Number of items to skip in the current sort order. */
338
278
  offset?: number | null;
339
279
  }
340
- export interface CursorPaging {
280
+ interface CursorPaging {
341
281
  /**
342
282
  * Maximum number of items to return in the results.
343
283
  * @max 100
@@ -352,11 +292,11 @@ export interface CursorPaging {
352
292
  */
353
293
  cursor?: string | null;
354
294
  }
355
- export interface QueryProductsResponse {
295
+ interface QueryProductsResponse {
356
296
  products?: Product[];
357
297
  metadata?: PagingMetadataV2;
358
298
  }
359
- export interface PagingMetadataV2 {
299
+ interface PagingMetadataV2 {
360
300
  /** Number of items returned in the response. */
361
301
  count?: number | null;
362
302
  /** Offset that was requested. */
@@ -368,7 +308,7 @@ export interface PagingMetadataV2 {
368
308
  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
369
309
  cursors?: Cursors;
370
310
  }
371
- export interface Cursors {
311
+ interface Cursors {
372
312
  /**
373
313
  * Cursor string pointing to the next page in the list of results.
374
314
  * @maxLength 16000
@@ -380,7 +320,7 @@ export interface Cursors {
380
320
  */
381
321
  prev?: string | null;
382
322
  }
383
- export interface BulkCreateProductsRequest {
323
+ interface BulkCreateProductsRequest {
384
324
  /**
385
325
  * @minSize 1
386
326
  * @maxSize 100
@@ -389,7 +329,7 @@ export interface BulkCreateProductsRequest {
389
329
  /** set to `true` if you wish to receive back the created products in the response */
390
330
  returnEntity?: boolean;
391
331
  }
392
- export interface BulkCreateProductsResponse {
332
+ interface BulkCreateProductsResponse {
393
333
  /**
394
334
  * @minSize 1
395
335
  * @maxSize 100
@@ -397,7 +337,7 @@ export interface BulkCreateProductsResponse {
397
337
  results?: BulkProductResult[];
398
338
  bulkActionMetadata?: BulkActionMetadata;
399
339
  }
400
- export interface ItemMetadata {
340
+ interface ItemMetadata {
401
341
  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
402
342
  id?: string | null;
403
343
  /** Index of the item within the request array. Allows for correlation between request and response items. */
@@ -407,7 +347,7 @@ export interface ItemMetadata {
407
347
  /** Details about the error in case of failure. */
408
348
  error?: ApplicationError;
409
349
  }
410
- export interface ApplicationError {
350
+ interface ApplicationError {
411
351
  /** Error code. */
412
352
  code?: string;
413
353
  /** Description of the error. */
@@ -415,13 +355,13 @@ export interface ApplicationError {
415
355
  /** Data related to the error. */
416
356
  data?: Record<string, any> | null;
417
357
  }
418
- export interface BulkProductResult {
358
+ interface BulkProductResult {
419
359
  /** Defined in wix.commons */
420
360
  itemMetadata?: ItemMetadata;
421
361
  /** Only exists if `returnEntity` was set to true in the request */
422
362
  item?: Product;
423
363
  }
424
- export interface BulkActionMetadata {
364
+ interface BulkActionMetadata {
425
365
  /** Number of items that were successfully processed. */
426
366
  totalSuccesses?: number;
427
367
  /** Number of items that couldn't be processed. */
@@ -429,7 +369,7 @@ export interface BulkActionMetadata {
429
369
  /** Number of failures without details because detailed failure threshold was exceeded. */
430
370
  undetailedFailures?: number;
431
371
  }
432
- export interface BulkUpdateProductsRequest {
372
+ interface BulkUpdateProductsRequest {
433
373
  /**
434
374
  * @minSize 1
435
375
  * @maxSize 100
@@ -438,11 +378,11 @@ export interface BulkUpdateProductsRequest {
438
378
  /** set to `true` if you wish to receive back the updated products in the response */
439
379
  returnEntity?: boolean;
440
380
  }
441
- export interface MaskedProduct {
381
+ interface MaskedProduct {
442
382
  /** Product to be updated, may be partial */
443
383
  product?: Product;
444
384
  }
445
- export interface BulkUpdateProductsResponse {
385
+ interface BulkUpdateProductsResponse {
446
386
  /**
447
387
  * @minSize 1
448
388
  * @maxSize 100
@@ -450,12 +390,12 @@ export interface BulkUpdateProductsResponse {
450
390
  results?: BulkUpdateProductsResponseBulkProductResult[];
451
391
  bulkActionMetadata?: BulkActionMetadata;
452
392
  }
453
- export interface BulkUpdateProductsResponseBulkProductResult {
393
+ interface BulkUpdateProductsResponseBulkProductResult {
454
394
  itemMetadata?: ItemMetadata;
455
395
  /** Only exists if `returnEntity` was set to true in the request */
456
396
  item?: Product;
457
397
  }
458
- export interface BulkDeleteProductsRequest {
398
+ interface BulkDeleteProductsRequest {
459
399
  /**
460
400
  * @minSize 1
461
401
  * @maxSize 100
@@ -463,7 +403,7 @@ export interface BulkDeleteProductsRequest {
463
403
  */
464
404
  productIds: string[];
465
405
  }
466
- export interface BulkDeleteProductsResponse {
406
+ interface BulkDeleteProductsResponse {
467
407
  /**
468
408
  * @minSize 1
469
409
  * @maxSize 100
@@ -471,144 +411,37 @@ export interface BulkDeleteProductsResponse {
471
411
  results?: BulkDeleteProductsResponseBulkProductResult[];
472
412
  bulkActionMetadata?: BulkActionMetadata;
473
413
  }
474
- export interface BulkDeleteProductsResponseBulkProductResult {
414
+ interface BulkDeleteProductsResponseBulkProductResult {
475
415
  itemMetadata?: ItemMetadata;
476
416
  }
477
- export interface ResetProductsDbRequest {
478
- }
479
- export interface ResetProductsDbResponse {
480
- }
481
- interface FocalPointNonNullableFields {
482
- x: number;
483
- y: number;
484
- }
485
- interface ImageContentNonNullableFields {
486
- text: TextDetection;
487
- animation: AnimationDetection;
488
- }
489
- interface ImageNonNullableFields {
490
- id: string;
491
- url: string;
492
- height: number;
493
- width: number;
494
- focalPoint?: FocalPointNonNullableFields;
495
- imageContent?: ImageContentNonNullableFields;
496
- }
497
- interface StreetAddressNonNullableFields {
498
- number: string;
499
- name: string;
500
- apt: string;
501
- }
502
- interface SubdivisionNonNullableFields {
503
- code: string;
504
- name: string;
505
- type: SubdivisionType;
506
- }
507
- interface AddressNonNullableFields {
508
- streetAddress?: StreetAddressNonNullableFields;
509
- subdivisions: SubdivisionNonNullableFields[];
510
- }
511
- interface DocumentNonNullableFields {
512
- id: string;
513
- url: string;
514
- thumbnail?: ImageNonNullableFields;
515
- }
516
- interface VideoResolutionNonNullableFields {
517
- url: string;
518
- height: number;
519
- width: number;
520
- poster?: ImageNonNullableFields;
521
- format: string;
522
- }
523
- interface VideoV2NonNullableFields {
524
- id: string;
525
- url: string;
526
- resolutions: VideoResolutionNonNullableFields[];
527
- posters: ImageNonNullableFields[];
528
- }
529
- interface PageLinkNonNullableFields {
530
- pageId: string;
531
- rel: LinkRel[];
532
- }
533
- interface AudioNonNullableFields {
534
- id: string;
535
- url: string;
536
- }
537
- interface VariantNonNullableFields {
538
- name: string;
539
- value: string;
540
- image?: ImageNonNullableFields;
541
- }
542
- interface MyAddressNonNullableFields {
543
- streetAddress?: StreetAddressNonNullableFields;
544
- }
545
- interface ProductNonNullableFields {
546
- id: string;
547
- collectionId: string;
548
- image?: ImageNonNullableFields;
549
- address?: AddressNonNullableFields;
550
- document?: DocumentNonNullableFields;
551
- video?: VideoV2NonNullableFields;
552
- pageLink?: PageLinkNonNullableFields;
553
- audio?: AudioNonNullableFields;
554
- variants: VariantNonNullableFields[];
555
- mainVariant?: VariantNonNullableFields;
556
- customAddress?: MyAddressNonNullableFields;
557
- guid: string;
558
- }
559
- export interface CreateProductResponseNonNullableFields {
560
- product?: ProductNonNullableFields;
561
- }
562
- export interface UpdateProductResponseNonNullableFields {
563
- product?: ProductNonNullableFields;
564
- }
565
- export interface GetProductResponseNonNullableFields {
566
- product?: ProductNonNullableFields;
567
- }
568
- export interface CountProductsResponseNonNullableFields {
569
- count: number;
570
- }
571
- export interface GetProductsStartWithResponseNonNullableFields {
572
- products: ProductNonNullableFields[];
573
- }
574
- export interface QueryProductsResponseNonNullableFields {
575
- products: ProductNonNullableFields[];
576
- }
577
- interface ApplicationErrorNonNullableFields {
578
- code: string;
579
- description: string;
580
- }
581
- interface ItemMetadataNonNullableFields {
582
- originalIndex: number;
583
- success: boolean;
584
- error?: ApplicationErrorNonNullableFields;
585
- }
586
- interface BulkProductResultNonNullableFields {
587
- itemMetadata?: ItemMetadataNonNullableFields;
588
- item?: ProductNonNullableFields;
589
- }
590
- interface BulkActionMetadataNonNullableFields {
591
- totalSuccesses: number;
592
- totalFailures: number;
593
- undetailedFailures: number;
594
- }
595
- export interface BulkCreateProductsResponseNonNullableFields {
596
- results: BulkProductResultNonNullableFields[];
597
- bulkActionMetadata?: BulkActionMetadataNonNullableFields;
598
- }
599
- interface BulkUpdateProductsResponseBulkProductResultNonNullableFields {
600
- itemMetadata?: ItemMetadataNonNullableFields;
601
- item?: ProductNonNullableFields;
602
- }
603
- export interface BulkUpdateProductsResponseNonNullableFields {
604
- results: BulkUpdateProductsResponseBulkProductResultNonNullableFields[];
605
- bulkActionMetadata?: BulkActionMetadataNonNullableFields;
606
- }
607
- interface BulkDeleteProductsResponseBulkProductResultNonNullableFields {
608
- itemMetadata?: ItemMetadataNonNullableFields;
609
- }
610
- export interface BulkDeleteProductsResponseNonNullableFields {
611
- results: BulkDeleteProductsResponseBulkProductResultNonNullableFields[];
612
- bulkActionMetadata?: BulkActionMetadataNonNullableFields;
613
- }
614
- export {};
417
+
418
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
419
+ getUrl: (context: any) => string;
420
+ httpMethod: K;
421
+ path: string;
422
+ pathParams: M;
423
+ __requestType: T;
424
+ __originalRequestType: S;
425
+ __responseType: Q;
426
+ __originalResponseType: R;
427
+ };
428
+ declare function createProduct(): __PublicMethodMetaInfo<'POST', {}, CreateProductRequest$1, CreateProductRequest, CreateProductResponse$1, CreateProductResponse>;
429
+ declare function deleteProduct(): __PublicMethodMetaInfo<'DELETE', {
430
+ productId: string;
431
+ }, DeleteProductRequest$1, DeleteProductRequest, DeleteProductResponse$1, DeleteProductResponse>;
432
+ declare function updateProduct(): __PublicMethodMetaInfo<'PUT', {
433
+ productId: string;
434
+ }, UpdateProductRequest$1, UpdateProductRequest, UpdateProductResponse$1, UpdateProductResponse>;
435
+ declare function getProduct(): __PublicMethodMetaInfo<'GET', {
436
+ productId: string;
437
+ }, GetProductRequest$1, GetProductRequest, GetProductResponse$1, GetProductResponse>;
438
+ declare function countProducts(): __PublicMethodMetaInfo<'POST', {}, CountProductsRequest$1, CountProductsRequest, CountProductsResponse$1, CountProductsResponse>;
439
+ declare function getProductsStartWith(): __PublicMethodMetaInfo<'GET', {
440
+ title: string;
441
+ }, GetProductsStartWithRequest$1, GetProductsStartWithRequest, GetProductsStartWithResponse$1, GetProductsStartWithResponse>;
442
+ declare function queryProducts(): __PublicMethodMetaInfo<'GET', {}, QueryProductsRequest$1, QueryProductsRequest, QueryProductsResponse$1, QueryProductsResponse>;
443
+ declare function bulkCreateProducts(): __PublicMethodMetaInfo<'POST', {}, BulkCreateProductsRequest$1, BulkCreateProductsRequest, BulkCreateProductsResponse$1, BulkCreateProductsResponse>;
444
+ declare function bulkUpdateProducts(): __PublicMethodMetaInfo<'PATCH', {}, BulkUpdateProductsRequest$1, BulkUpdateProductsRequest, BulkUpdateProductsResponse$1, BulkUpdateProductsResponse>;
445
+ declare function bulkDeleteProducts(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteProductsRequest$1, BulkDeleteProductsRequest, BulkDeleteProductsResponse$1, BulkDeleteProductsResponse>;
446
+
447
+ export { type __PublicMethodMetaInfo, bulkCreateProducts, bulkDeleteProducts, bulkUpdateProducts, countProducts, createProduct, deleteProduct, getProduct, getProductsStartWith, queryProducts, updateProduct };