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