@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 +1,447 @@
1
- export * from './src/metroinspector-v1-product-products.meta.js';
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.js';
2
+ import '@wix/sdk-types';
3
+
4
+ interface Product {
5
+ title?: string | null;
6
+ id?: string;
7
+ collectionId?: string;
8
+ createdDate?: Date | null;
9
+ modifiedDate?: Date | null;
10
+ image?: Image;
11
+ address?: Address;
12
+ document?: Document;
13
+ video?: VideoV2;
14
+ pageLink?: PageLink;
15
+ audio?: Audio;
16
+ /** @format COLOR_HEX */
17
+ color?: string | null;
18
+ /** @format LOCAL_DATE */
19
+ localDate?: string | null;
20
+ /** @format LOCAL_TIME */
21
+ localTime?: string | null;
22
+ /** @format LOCAL_DATE_TIME */
23
+ localDateTime?: string | null;
24
+ variants?: Variant[];
25
+ mainVariant?: Variant;
26
+ customAddress?: MyAddress;
27
+ /**
28
+ * @readonly
29
+ * @format GUID
30
+ */
31
+ guid?: string;
32
+ }
33
+ interface Image {
34
+ /** WixMedia image ID. */
35
+ id?: string;
36
+ /** Image URL. */
37
+ url?: string;
38
+ /**
39
+ * Original image height.
40
+ * @readonly
41
+ */
42
+ height?: number;
43
+ /**
44
+ * Original image width.
45
+ * @readonly
46
+ */
47
+ width?: number;
48
+ /** Image alt text. */
49
+ altText?: string | null;
50
+ /**
51
+ * Image filename.
52
+ * @readonly
53
+ */
54
+ filename?: string | null;
55
+ }
56
+ /** Physical address */
57
+ interface Address extends AddressStreetOneOf {
58
+ /** Street name and number. */
59
+ streetAddress?: StreetAddress;
60
+ /** Main address line, usually street and number as free text. */
61
+ addressLine?: string | null;
62
+ /**
63
+ * Country code.
64
+ * @format COUNTRY
65
+ */
66
+ country?: string | null;
67
+ /** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */
68
+ subdivision?: string | null;
69
+ /** City name. */
70
+ city?: string | null;
71
+ /** Zip/postal code. */
72
+ postalCode?: string | null;
73
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
74
+ addressLine2?: string | null;
75
+ }
76
+ /** @oneof */
77
+ interface AddressStreetOneOf {
78
+ /** Street name and number. */
79
+ streetAddress?: StreetAddress;
80
+ /** Main address line, usually street and number as free text. */
81
+ addressLine?: string | null;
82
+ }
83
+ interface StreetAddress {
84
+ /** Street number. */
85
+ number?: string;
86
+ /** Street name. */
87
+ name?: string;
88
+ }
89
+ interface Document {
90
+ /** WixMedia ID. */
91
+ id?: string;
92
+ /** Document URL. */
93
+ url?: string;
94
+ /** Document filename. */
95
+ filename?: string | null;
96
+ }
97
+ interface VideoV2 {
98
+ /** WixMedia ID. */
99
+ id?: string;
100
+ /**
101
+ * Available resolutions for the video, starting with the optimal resolution.
102
+ * @readonly
103
+ * @maxSize 100
104
+ */
105
+ resolutions?: VideoResolution[];
106
+ /**
107
+ * Video filename.
108
+ * @readonly
109
+ */
110
+ filename?: string | null;
111
+ }
112
+ interface VideoResolution {
113
+ /** Video URL. */
114
+ url?: string;
115
+ /** Video height. */
116
+ height?: number;
117
+ /** Video width. */
118
+ width?: number;
119
+ /** Video format for example, mp4, hls. */
120
+ format?: string;
121
+ }
122
+ interface PageLink {
123
+ /** The page id we want from the site */
124
+ pageId?: string;
125
+ /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
126
+ target?: string | null;
127
+ /**
128
+ * rel of link
129
+ * @maxSize 20
130
+ */
131
+ rel?: LinkRelWithLiterals[];
132
+ }
133
+ /**
134
+ * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
135
+ * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
136
+ * Following are the accepted 'rel' types by Wix applications.
137
+ */
138
+ declare enum LinkRel {
139
+ /** default (not implemented) */
140
+ unknown_link_rel = "unknown_link_rel",
141
+ /** Indicates that the current document's original author or publisher does not endorse the referenced document. */
142
+ nofollow = "nofollow",
143
+ /** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
144
+ noopener = "noopener",
145
+ /** No Referer header will be included. Additionally, has the same effect as noopener. */
146
+ noreferrer = "noreferrer",
147
+ /** Indicates a link that resulted from advertisements or paid placements. */
148
+ sponsored = "sponsored"
149
+ }
150
+ /** @enumType */
151
+ type LinkRelWithLiterals = LinkRel | 'unknown_link_rel' | 'nofollow' | 'noopener' | 'noreferrer' | 'sponsored';
152
+ interface Audio {
153
+ /** WixMedia ID. */
154
+ id?: string;
155
+ /** Audio URL. */
156
+ url?: string;
157
+ /**
158
+ * Audio filename.
159
+ * @readonly
160
+ */
161
+ filename?: string | null;
162
+ }
163
+ interface Variant {
164
+ name?: string;
165
+ value?: string;
166
+ image?: Image;
167
+ }
168
+ interface MyAddress {
169
+ /** @format COUNTRY */
170
+ country?: string | null;
171
+ subdivision?: string | null;
172
+ city?: string | null;
173
+ postalCode?: string | null;
174
+ streetAddress?: StreetAddress;
175
+ }
176
+ interface CreateProductRequest {
177
+ product?: Product;
178
+ }
179
+ interface CreateProductResponse {
180
+ product?: Product;
181
+ }
182
+ interface DeleteProductRequest {
183
+ productId: string;
184
+ }
185
+ interface DeleteProductResponse {
186
+ }
187
+ interface UpdateProductRequest {
188
+ productId: string;
189
+ product?: Product;
190
+ /** Explicit list of fields to update. */
191
+ mask?: string[];
192
+ }
193
+ interface UpdateProductResponse {
194
+ product?: Product;
195
+ }
196
+ interface GetProductRequest {
197
+ productId: string;
198
+ }
199
+ interface GetProductResponse {
200
+ product?: Product;
201
+ }
202
+ interface CountProductsRequest {
203
+ filter?: Record<string, any> | null;
204
+ /** Whether variants should be included in the response. */
205
+ includeVariants?: boolean;
206
+ /** Whether hidden products should be included in the response. Requires permissions to manage products. */
207
+ includeHiddenProducts?: boolean;
208
+ /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
209
+ includeMerchantSpecificData?: boolean;
210
+ }
211
+ interface CountProductsResponse {
212
+ count?: number;
213
+ }
214
+ interface GetProductsStartWithRequest {
215
+ title: string;
216
+ addressLine2?: string | null;
217
+ }
218
+ interface GetProductsStartWithResponse {
219
+ products?: Product[];
220
+ }
221
+ interface QueryProductsRequest {
222
+ query?: QueryV2;
223
+ /** Whether variants should be included in the response. */
224
+ includeVariants?: boolean;
225
+ /** Whether hidden products should be included in the response. Requires permissions to manage products. */
226
+ includeHiddenProducts?: boolean;
227
+ /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
228
+ includeMerchantSpecificData?: boolean;
229
+ }
230
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
231
+ /** Paging options to limit and offset the number of items. */
232
+ paging?: Paging;
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`. */
234
+ cursorPaging?: CursorPaging;
235
+ /**
236
+ * Filter object.
237
+ *
238
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
239
+ */
240
+ filter?: Record<string, any> | null;
241
+ /**
242
+ * Sort object.
243
+ *
244
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
245
+ */
246
+ sort?: Sorting[];
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. */
248
+ fields?: string[];
249
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
250
+ fieldsets?: string[];
251
+ }
252
+ /** @oneof */
253
+ interface QueryV2PagingMethodOneOf {
254
+ /** Paging options to limit and offset the number of items. */
255
+ paging?: Paging;
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`. */
257
+ cursorPaging?: CursorPaging;
258
+ }
259
+ interface Sorting {
260
+ /**
261
+ * Name of the field to sort by.
262
+ * @maxLength 512
263
+ */
264
+ fieldName?: string;
265
+ /** Sort order. */
266
+ order?: SortOrderWithLiterals;
267
+ }
268
+ declare enum SortOrder {
269
+ ASC = "ASC",
270
+ DESC = "DESC"
271
+ }
272
+ /** @enumType */
273
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
274
+ interface Paging {
275
+ /** Number of items to load. */
276
+ limit?: number | null;
277
+ /** Number of items to skip in the current sort order. */
278
+ offset?: number | null;
279
+ }
280
+ interface CursorPaging {
281
+ /**
282
+ * Maximum number of items to return in the results.
283
+ * @max 100
284
+ */
285
+ limit?: number | null;
286
+ /**
287
+ * Pointer to the next or previous page in the list of results.
288
+ *
289
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
290
+ * Not relevant for the first request.
291
+ * @maxLength 16000
292
+ */
293
+ cursor?: string | null;
294
+ }
295
+ interface QueryProductsResponse {
296
+ products?: Product[];
297
+ metadata?: PagingMetadataV2;
298
+ }
299
+ interface PagingMetadataV2 {
300
+ /** Number of items returned in the response. */
301
+ count?: number | null;
302
+ /** Offset that was requested. */
303
+ offset?: number | null;
304
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
305
+ total?: number | null;
306
+ /** Flag that indicates the server failed to calculate the `total` field. */
307
+ tooManyToCount?: boolean | null;
308
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
309
+ cursors?: Cursors;
310
+ }
311
+ interface Cursors {
312
+ /**
313
+ * Cursor string pointing to the next page in the list of results.
314
+ * @maxLength 16000
315
+ */
316
+ next?: string | null;
317
+ /**
318
+ * Cursor pointing to the previous page in the list of results.
319
+ * @maxLength 16000
320
+ */
321
+ prev?: string | null;
322
+ }
323
+ interface BulkCreateProductsRequest {
324
+ /**
325
+ * @minSize 1
326
+ * @maxSize 100
327
+ */
328
+ products: Product[];
329
+ /** set to `true` if you wish to receive back the created products in the response */
330
+ returnEntity?: boolean;
331
+ }
332
+ interface BulkCreateProductsResponse {
333
+ /**
334
+ * @minSize 1
335
+ * @maxSize 100
336
+ */
337
+ results?: BulkProductResult[];
338
+ bulkActionMetadata?: BulkActionMetadata;
339
+ }
340
+ interface ItemMetadata {
341
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
342
+ id?: string | null;
343
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
344
+ originalIndex?: number;
345
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
346
+ success?: boolean;
347
+ /** Details about the error in case of failure. */
348
+ error?: ApplicationError;
349
+ }
350
+ interface ApplicationError {
351
+ /** Error code. */
352
+ code?: string;
353
+ /** Description of the error. */
354
+ description?: string;
355
+ /** Data related to the error. */
356
+ data?: Record<string, any> | null;
357
+ }
358
+ interface BulkProductResult {
359
+ /** Defined in wix.commons */
360
+ itemMetadata?: ItemMetadata;
361
+ /** Only exists if `returnEntity` was set to true in the request */
362
+ item?: Product;
363
+ }
364
+ interface BulkActionMetadata {
365
+ /** Number of items that were successfully processed. */
366
+ totalSuccesses?: number;
367
+ /** Number of items that couldn't be processed. */
368
+ totalFailures?: number;
369
+ /** Number of failures without details because detailed failure threshold was exceeded. */
370
+ undetailedFailures?: number;
371
+ }
372
+ interface BulkUpdateProductsRequest {
373
+ /**
374
+ * @minSize 1
375
+ * @maxSize 100
376
+ */
377
+ products: MaskedProduct[];
378
+ /** set to `true` if you wish to receive back the updated products in the response */
379
+ returnEntity?: boolean;
380
+ }
381
+ interface MaskedProduct {
382
+ /** Product to be updated, may be partial */
383
+ product?: Product;
384
+ }
385
+ interface BulkUpdateProductsResponse {
386
+ /**
387
+ * @minSize 1
388
+ * @maxSize 100
389
+ */
390
+ results?: BulkUpdateProductsResponseBulkProductResult[];
391
+ bulkActionMetadata?: BulkActionMetadata;
392
+ }
393
+ interface BulkUpdateProductsResponseBulkProductResult {
394
+ itemMetadata?: ItemMetadata;
395
+ /** Only exists if `returnEntity` was set to true in the request */
396
+ item?: Product;
397
+ }
398
+ interface BulkDeleteProductsRequest {
399
+ /**
400
+ * @minSize 1
401
+ * @maxSize 100
402
+ * @format GUID
403
+ */
404
+ productIds: string[];
405
+ }
406
+ interface BulkDeleteProductsResponse {
407
+ /**
408
+ * @minSize 1
409
+ * @maxSize 100
410
+ */
411
+ results?: BulkDeleteProductsResponseBulkProductResult[];
412
+ bulkActionMetadata?: BulkActionMetadata;
413
+ }
414
+ interface BulkDeleteProductsResponseBulkProductResult {
415
+ itemMetadata?: ItemMetadata;
416
+ }
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 };