@wix/auto_sdk_metro_products 1.0.2 → 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.
- 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
|
@@ -1,587 +0,0 @@
|
|
|
1
|
-
export interface Product {
|
|
2
|
-
title?: string | null;
|
|
3
|
-
id?: string;
|
|
4
|
-
collectionId?: string;
|
|
5
|
-
createdDate?: Date | null;
|
|
6
|
-
modifiedDate?: Date | null;
|
|
7
|
-
image?: Image;
|
|
8
|
-
address?: Address;
|
|
9
|
-
document?: Document;
|
|
10
|
-
video?: VideoV2;
|
|
11
|
-
pageLink?: PageLink;
|
|
12
|
-
audio?: Audio;
|
|
13
|
-
/** @format COLOR_HEX */
|
|
14
|
-
color?: string | null;
|
|
15
|
-
/** @format LOCAL_DATE */
|
|
16
|
-
localDate?: string | null;
|
|
17
|
-
/** @format LOCAL_TIME */
|
|
18
|
-
localTime?: string | null;
|
|
19
|
-
/** @format LOCAL_DATE_TIME */
|
|
20
|
-
localDateTime?: string | null;
|
|
21
|
-
variants?: Variant[];
|
|
22
|
-
mainVariant?: Variant;
|
|
23
|
-
customAddress?: MyAddress;
|
|
24
|
-
/**
|
|
25
|
-
* @readonly
|
|
26
|
-
* @format GUID
|
|
27
|
-
*/
|
|
28
|
-
guid?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface Image {
|
|
31
|
-
/** WixMedia image ID. */
|
|
32
|
-
id?: string;
|
|
33
|
-
/** Image URL. */
|
|
34
|
-
url?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Original image height.
|
|
37
|
-
* @readonly
|
|
38
|
-
*/
|
|
39
|
-
height?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Original image width.
|
|
42
|
-
* @readonly
|
|
43
|
-
*/
|
|
44
|
-
width?: number;
|
|
45
|
-
/** Image alt text. */
|
|
46
|
-
altText?: string | null;
|
|
47
|
-
/**
|
|
48
|
-
* Image filename.
|
|
49
|
-
* @readonly
|
|
50
|
-
*/
|
|
51
|
-
filename?: string | null;
|
|
52
|
-
}
|
|
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
|
-
/** Physical address */
|
|
64
|
-
export interface Address extends AddressStreetOneOf {
|
|
65
|
-
/** Street name and number. */
|
|
66
|
-
streetAddress?: StreetAddress;
|
|
67
|
-
/** Main address line, usually street and number as free text. */
|
|
68
|
-
addressLine?: string | null;
|
|
69
|
-
/**
|
|
70
|
-
* Country code.
|
|
71
|
-
* @format COUNTRY
|
|
72
|
-
*/
|
|
73
|
-
country?: string | null;
|
|
74
|
-
/** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */
|
|
75
|
-
subdivision?: string | null;
|
|
76
|
-
/** City name. */
|
|
77
|
-
city?: string | null;
|
|
78
|
-
/** Zip/postal code. */
|
|
79
|
-
postalCode?: string | null;
|
|
80
|
-
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
81
|
-
addressLine2?: string | null;
|
|
82
|
-
}
|
|
83
|
-
/** @oneof */
|
|
84
|
-
export interface AddressStreetOneOf {
|
|
85
|
-
/** Street name and number. */
|
|
86
|
-
streetAddress?: StreetAddress;
|
|
87
|
-
/** Main address line, usually street and number as free text. */
|
|
88
|
-
addressLine?: string | null;
|
|
89
|
-
}
|
|
90
|
-
export interface StreetAddress {
|
|
91
|
-
/** Street number. */
|
|
92
|
-
number?: string;
|
|
93
|
-
/** Street name. */
|
|
94
|
-
name?: string;
|
|
95
|
-
}
|
|
96
|
-
export interface AddressLocation {
|
|
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 {
|
|
132
|
-
/** WixMedia ID. */
|
|
133
|
-
id?: string;
|
|
134
|
-
/** Document URL. */
|
|
135
|
-
url?: string;
|
|
136
|
-
/** Document filename. */
|
|
137
|
-
filename?: string | null;
|
|
138
|
-
}
|
|
139
|
-
export interface VideoV2 {
|
|
140
|
-
/** WixMedia ID. */
|
|
141
|
-
id?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Available resolutions for the video, starting with the optimal resolution.
|
|
144
|
-
* @readonly
|
|
145
|
-
* @maxSize 100
|
|
146
|
-
*/
|
|
147
|
-
resolutions?: VideoResolution[];
|
|
148
|
-
/**
|
|
149
|
-
* Video filename.
|
|
150
|
-
* @readonly
|
|
151
|
-
*/
|
|
152
|
-
filename?: string | null;
|
|
153
|
-
}
|
|
154
|
-
export interface VideoResolution {
|
|
155
|
-
/** Video URL. */
|
|
156
|
-
url?: string;
|
|
157
|
-
/** Video height. */
|
|
158
|
-
height?: number;
|
|
159
|
-
/** Video width. */
|
|
160
|
-
width?: number;
|
|
161
|
-
/** Video format for example, mp4, hls. */
|
|
162
|
-
format?: string;
|
|
163
|
-
}
|
|
164
|
-
export interface PageLink {
|
|
165
|
-
/** The page id we want from the site */
|
|
166
|
-
pageId?: string;
|
|
167
|
-
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
|
168
|
-
target?: string | null;
|
|
169
|
-
/**
|
|
170
|
-
* rel of link
|
|
171
|
-
* @maxSize 20
|
|
172
|
-
*/
|
|
173
|
-
rel?: LinkRel[];
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
|
|
177
|
-
* Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
|
|
178
|
-
* Following are the accepted 'rel' types by Wix applications.
|
|
179
|
-
*/
|
|
180
|
-
export declare enum LinkRel {
|
|
181
|
-
/** default (not implemented) */
|
|
182
|
-
unknown_link_rel = "unknown_link_rel",
|
|
183
|
-
/** Indicates that the current document's original author or publisher does not endorse the referenced document. */
|
|
184
|
-
nofollow = "nofollow",
|
|
185
|
-
/** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
|
|
186
|
-
noopener = "noopener",
|
|
187
|
-
/** No Referer header will be included. Additionally, has the same effect as noopener. */
|
|
188
|
-
noreferrer = "noreferrer",
|
|
189
|
-
/** Indicates a link that resulted from advertisements or paid placements. */
|
|
190
|
-
sponsored = "sponsored"
|
|
191
|
-
}
|
|
192
|
-
export interface Audio {
|
|
193
|
-
/** WixMedia ID. */
|
|
194
|
-
id?: string;
|
|
195
|
-
/** Audio URL. */
|
|
196
|
-
url?: string;
|
|
197
|
-
/**
|
|
198
|
-
* Audio filename.
|
|
199
|
-
* @readonly
|
|
200
|
-
*/
|
|
201
|
-
filename?: string | null;
|
|
202
|
-
}
|
|
203
|
-
export interface Variant {
|
|
204
|
-
name?: string;
|
|
205
|
-
value?: string;
|
|
206
|
-
image?: Image;
|
|
207
|
-
}
|
|
208
|
-
export interface MyAddress {
|
|
209
|
-
/** @format COUNTRY */
|
|
210
|
-
country?: string | null;
|
|
211
|
-
subdivision?: string | null;
|
|
212
|
-
city?: string | null;
|
|
213
|
-
postalCode?: string | null;
|
|
214
|
-
streetAddress?: StreetAddress;
|
|
215
|
-
}
|
|
216
|
-
export interface CreateProductRequest {
|
|
217
|
-
product?: Product;
|
|
218
|
-
}
|
|
219
|
-
export interface CreateProductResponse {
|
|
220
|
-
product?: Product;
|
|
221
|
-
}
|
|
222
|
-
export interface DeleteProductRequest {
|
|
223
|
-
productId: string;
|
|
224
|
-
}
|
|
225
|
-
export interface DeleteProductResponse {
|
|
226
|
-
}
|
|
227
|
-
export interface UpdateProductRequest {
|
|
228
|
-
productId: string;
|
|
229
|
-
product?: Product;
|
|
230
|
-
/** Explicit list of fields to update. */
|
|
231
|
-
mask?: string[];
|
|
232
|
-
}
|
|
233
|
-
export interface UpdateProductResponse {
|
|
234
|
-
product?: Product;
|
|
235
|
-
}
|
|
236
|
-
export interface GetProductRequest {
|
|
237
|
-
productId: string;
|
|
238
|
-
}
|
|
239
|
-
export interface GetProductResponse {
|
|
240
|
-
product?: Product;
|
|
241
|
-
}
|
|
242
|
-
export interface CountProductsRequest {
|
|
243
|
-
filter?: Record<string, any> | null;
|
|
244
|
-
/** Whether variants should be included in the response. */
|
|
245
|
-
includeVariants?: boolean;
|
|
246
|
-
/** Whether hidden products should be included in the response. Requires permissions to manage products. */
|
|
247
|
-
includeHiddenProducts?: boolean;
|
|
248
|
-
/** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
|
|
249
|
-
includeMerchantSpecificData?: boolean;
|
|
250
|
-
}
|
|
251
|
-
export interface CountProductsResponse {
|
|
252
|
-
count?: number;
|
|
253
|
-
}
|
|
254
|
-
export interface GetProductsStartWithRequest {
|
|
255
|
-
title: string;
|
|
256
|
-
addressLine2?: string | null;
|
|
257
|
-
}
|
|
258
|
-
export interface GetProductsStartWithResponse {
|
|
259
|
-
products?: Product[];
|
|
260
|
-
}
|
|
261
|
-
export interface QueryProductsRequest {
|
|
262
|
-
query?: QueryV2;
|
|
263
|
-
/** Whether variants should be included in the response. */
|
|
264
|
-
includeVariants?: boolean;
|
|
265
|
-
/** Whether hidden products should be included in the response. Requires permissions to manage products. */
|
|
266
|
-
includeHiddenProducts?: boolean;
|
|
267
|
-
/** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
|
|
268
|
-
includeMerchantSpecificData?: boolean;
|
|
269
|
-
}
|
|
270
|
-
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
271
|
-
/** Paging options to limit and skip the number of items. */
|
|
272
|
-
paging?: Paging;
|
|
273
|
-
/** 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
|
-
cursorPaging?: CursorPaging;
|
|
275
|
-
/**
|
|
276
|
-
* Filter object.
|
|
277
|
-
*
|
|
278
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
279
|
-
*/
|
|
280
|
-
filter?: Record<string, any> | null;
|
|
281
|
-
/**
|
|
282
|
-
* Sort object.
|
|
283
|
-
*
|
|
284
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
285
|
-
*/
|
|
286
|
-
sort?: Sorting[];
|
|
287
|
-
/** 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. */
|
|
288
|
-
fields?: string[];
|
|
289
|
-
/** 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. */
|
|
290
|
-
fieldsets?: string[];
|
|
291
|
-
}
|
|
292
|
-
/** @oneof */
|
|
293
|
-
export interface QueryV2PagingMethodOneOf {
|
|
294
|
-
/** Paging options to limit and skip the number of items. */
|
|
295
|
-
paging?: Paging;
|
|
296
|
-
/** 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
|
-
cursorPaging?: CursorPaging;
|
|
298
|
-
}
|
|
299
|
-
export interface Sorting {
|
|
300
|
-
/**
|
|
301
|
-
* Name of the field to sort by.
|
|
302
|
-
* @maxLength 512
|
|
303
|
-
*/
|
|
304
|
-
fieldName?: string;
|
|
305
|
-
/** Sort order. */
|
|
306
|
-
order?: SortOrder;
|
|
307
|
-
}
|
|
308
|
-
export declare enum SortOrder {
|
|
309
|
-
ASC = "ASC",
|
|
310
|
-
DESC = "DESC"
|
|
311
|
-
}
|
|
312
|
-
export interface Paging {
|
|
313
|
-
/** Number of items to load. */
|
|
314
|
-
limit?: number | null;
|
|
315
|
-
/** Number of items to skip in the current sort order. */
|
|
316
|
-
offset?: number | null;
|
|
317
|
-
}
|
|
318
|
-
export interface CursorPaging {
|
|
319
|
-
/**
|
|
320
|
-
* Maximum number of items to return in the results.
|
|
321
|
-
* @max 100
|
|
322
|
-
*/
|
|
323
|
-
limit?: number | null;
|
|
324
|
-
/**
|
|
325
|
-
* Pointer to the next or previous page in the list of results.
|
|
326
|
-
*
|
|
327
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
328
|
-
* Not relevant for the first request.
|
|
329
|
-
* @maxLength 16000
|
|
330
|
-
*/
|
|
331
|
-
cursor?: string | null;
|
|
332
|
-
}
|
|
333
|
-
export interface QueryProductsResponse {
|
|
334
|
-
products?: Product[];
|
|
335
|
-
metadata?: PagingMetadataV2;
|
|
336
|
-
}
|
|
337
|
-
export interface PagingMetadataV2 {
|
|
338
|
-
/** Number of items returned in the response. */
|
|
339
|
-
count?: number | null;
|
|
340
|
-
/** Offset that was requested. */
|
|
341
|
-
offset?: number | null;
|
|
342
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
343
|
-
total?: number | null;
|
|
344
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
345
|
-
tooManyToCount?: boolean | null;
|
|
346
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
347
|
-
cursors?: Cursors;
|
|
348
|
-
}
|
|
349
|
-
export interface Cursors {
|
|
350
|
-
/**
|
|
351
|
-
* Cursor string pointing to the next page in the list of results.
|
|
352
|
-
* @maxLength 16000
|
|
353
|
-
*/
|
|
354
|
-
next?: string | null;
|
|
355
|
-
/**
|
|
356
|
-
* Cursor pointing to the previous page in the list of results.
|
|
357
|
-
* @maxLength 16000
|
|
358
|
-
*/
|
|
359
|
-
prev?: string | null;
|
|
360
|
-
}
|
|
361
|
-
export interface BulkCreateProductsRequest {
|
|
362
|
-
/**
|
|
363
|
-
* @minSize 1
|
|
364
|
-
* @maxSize 100
|
|
365
|
-
*/
|
|
366
|
-
products: Product[];
|
|
367
|
-
/** set to `true` if you wish to receive back the created products in the response */
|
|
368
|
-
returnEntity?: boolean;
|
|
369
|
-
}
|
|
370
|
-
export interface BulkCreateProductsResponse {
|
|
371
|
-
/**
|
|
372
|
-
* @minSize 1
|
|
373
|
-
* @maxSize 100
|
|
374
|
-
*/
|
|
375
|
-
results?: BulkProductResult[];
|
|
376
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
377
|
-
}
|
|
378
|
-
export interface ItemMetadata {
|
|
379
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
380
|
-
id?: string | null;
|
|
381
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
382
|
-
originalIndex?: number;
|
|
383
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
384
|
-
success?: boolean;
|
|
385
|
-
/** Details about the error in case of failure. */
|
|
386
|
-
error?: ApplicationError;
|
|
387
|
-
}
|
|
388
|
-
export interface ApplicationError {
|
|
389
|
-
/** Error code. */
|
|
390
|
-
code?: string;
|
|
391
|
-
/** Description of the error. */
|
|
392
|
-
description?: string;
|
|
393
|
-
/** Data related to the error. */
|
|
394
|
-
data?: Record<string, any> | null;
|
|
395
|
-
}
|
|
396
|
-
export interface BulkProductResult {
|
|
397
|
-
/** Defined in wix.commons */
|
|
398
|
-
itemMetadata?: ItemMetadata;
|
|
399
|
-
/** Only exists if `returnEntity` was set to true in the request */
|
|
400
|
-
item?: Product;
|
|
401
|
-
}
|
|
402
|
-
export interface BulkActionMetadata {
|
|
403
|
-
/** Number of items that were successfully processed. */
|
|
404
|
-
totalSuccesses?: number;
|
|
405
|
-
/** Number of items that couldn't be processed. */
|
|
406
|
-
totalFailures?: number;
|
|
407
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
408
|
-
undetailedFailures?: number;
|
|
409
|
-
}
|
|
410
|
-
export interface BulkUpdateProductsRequest {
|
|
411
|
-
/**
|
|
412
|
-
* @minSize 1
|
|
413
|
-
* @maxSize 100
|
|
414
|
-
*/
|
|
415
|
-
products: MaskedProduct[];
|
|
416
|
-
/** set to `true` if you wish to receive back the updated products in the response */
|
|
417
|
-
returnEntity?: boolean;
|
|
418
|
-
}
|
|
419
|
-
export interface MaskedProduct {
|
|
420
|
-
/** Product to be updated, may be partial */
|
|
421
|
-
product?: Product;
|
|
422
|
-
}
|
|
423
|
-
export interface BulkUpdateProductsResponse {
|
|
424
|
-
/**
|
|
425
|
-
* @minSize 1
|
|
426
|
-
* @maxSize 100
|
|
427
|
-
*/
|
|
428
|
-
results?: BulkUpdateProductsResponseBulkProductResult[];
|
|
429
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
430
|
-
}
|
|
431
|
-
export interface BulkUpdateProductsResponseBulkProductResult {
|
|
432
|
-
itemMetadata?: ItemMetadata;
|
|
433
|
-
/** Only exists if `returnEntity` was set to true in the request */
|
|
434
|
-
item?: Product;
|
|
435
|
-
}
|
|
436
|
-
export interface BulkDeleteProductsRequest {
|
|
437
|
-
/**
|
|
438
|
-
* @minSize 1
|
|
439
|
-
* @maxSize 100
|
|
440
|
-
* @format GUID
|
|
441
|
-
*/
|
|
442
|
-
productIds: string[];
|
|
443
|
-
}
|
|
444
|
-
export interface BulkDeleteProductsResponse {
|
|
445
|
-
/**
|
|
446
|
-
* @minSize 1
|
|
447
|
-
* @maxSize 100
|
|
448
|
-
*/
|
|
449
|
-
results?: BulkDeleteProductsResponseBulkProductResult[];
|
|
450
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
451
|
-
}
|
|
452
|
-
export interface BulkDeleteProductsResponseBulkProductResult {
|
|
453
|
-
itemMetadata?: ItemMetadata;
|
|
454
|
-
}
|
|
455
|
-
export interface ResetProductsDbRequest {
|
|
456
|
-
}
|
|
457
|
-
export interface ResetProductsDbResponse {
|
|
458
|
-
}
|
|
459
|
-
interface FocalPointNonNullableFields {
|
|
460
|
-
x: number;
|
|
461
|
-
y: number;
|
|
462
|
-
}
|
|
463
|
-
interface ImageNonNullableFields {
|
|
464
|
-
id: string;
|
|
465
|
-
url: string;
|
|
466
|
-
height: number;
|
|
467
|
-
width: number;
|
|
468
|
-
focalPoint?: FocalPointNonNullableFields;
|
|
469
|
-
}
|
|
470
|
-
interface StreetAddressNonNullableFields {
|
|
471
|
-
number: string;
|
|
472
|
-
name: string;
|
|
473
|
-
apt: string;
|
|
474
|
-
}
|
|
475
|
-
interface SubdivisionNonNullableFields {
|
|
476
|
-
code: string;
|
|
477
|
-
name: string;
|
|
478
|
-
type: SubdivisionType;
|
|
479
|
-
}
|
|
480
|
-
interface AddressNonNullableFields {
|
|
481
|
-
streetAddress?: StreetAddressNonNullableFields;
|
|
482
|
-
subdivisions: SubdivisionNonNullableFields[];
|
|
483
|
-
}
|
|
484
|
-
interface DocumentNonNullableFields {
|
|
485
|
-
id: string;
|
|
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 {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortOrder = exports.LinkRel = exports.SubdivisionType = void 0;
|
|
4
|
-
var SubdivisionType;
|
|
5
|
-
(function (SubdivisionType) {
|
|
6
|
-
SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
7
|
-
/** State */
|
|
8
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
9
|
-
/** County */
|
|
10
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
11
|
-
/** City/town */
|
|
12
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
13
|
-
/** Neighborhood/quarter */
|
|
14
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
15
|
-
/** Street/block */
|
|
16
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
17
|
-
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
18
|
-
SubdivisionType["COUNTRY"] = "COUNTRY";
|
|
19
|
-
})(SubdivisionType || (exports.SubdivisionType = SubdivisionType = {}));
|
|
20
|
-
/**
|
|
21
|
-
* The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
|
|
22
|
-
* Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
|
|
23
|
-
* Following are the accepted 'rel' types by Wix applications.
|
|
24
|
-
*/
|
|
25
|
-
var LinkRel;
|
|
26
|
-
(function (LinkRel) {
|
|
27
|
-
/** default (not implemented) */
|
|
28
|
-
LinkRel["unknown_link_rel"] = "unknown_link_rel";
|
|
29
|
-
/** Indicates that the current document's original author or publisher does not endorse the referenced document. */
|
|
30
|
-
LinkRel["nofollow"] = "nofollow";
|
|
31
|
-
/** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
|
|
32
|
-
LinkRel["noopener"] = "noopener";
|
|
33
|
-
/** No Referer header will be included. Additionally, has the same effect as noopener. */
|
|
34
|
-
LinkRel["noreferrer"] = "noreferrer";
|
|
35
|
-
/** Indicates a link that resulted from advertisements or paid placements. */
|
|
36
|
-
LinkRel["sponsored"] = "sponsored";
|
|
37
|
-
})(LinkRel || (exports.LinkRel = LinkRel = {}));
|
|
38
|
-
var SortOrder;
|
|
39
|
-
(function (SortOrder) {
|
|
40
|
-
SortOrder["ASC"] = "ASC";
|
|
41
|
-
SortOrder["DESC"] = "DESC";
|
|
42
|
-
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
43
|
-
//# sourceMappingURL=metroinspector-v1-product-products.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metroinspector-v1-product-products.types.js","sourceRoot":"","sources":["../../../../src/metroinspector-v1-product-products.types.ts"],"names":[],"mappings":";;;AAmHA,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,YAAY;IACZ,8EAA2D,CAAA;IAC3D,aAAa;IACb,8EAA2D,CAAA;IAC3D,gBAAgB;IAChB,8EAA2D,CAAA;IAC3D,2BAA2B;IAC3B,8EAA2D,CAAA;IAC3D,mBAAmB;IACnB,8EAA2D,CAAA;IAC3D,8IAA8I;IAC9I,sCAAmB,CAAA;AACrB,CAAC,EAdW,eAAe,+BAAf,eAAe,QAc1B;AA2DD;;;;GAIG;AACH,IAAY,OAWX;AAXD,WAAY,OAAO;IACjB,gCAAgC;IAChC,gDAAqC,CAAA;IACrC,mHAAmH;IACnH,gCAAqB,CAAA;IACrB,gJAAgJ;IAChJ,gCAAqB,CAAA;IACrB,yFAAyF;IACzF,oCAAyB,CAAA;IACzB,6EAA6E;IAC7E,kCAAuB,CAAA;AACzB,CAAC,EAXW,OAAO,uBAAP,OAAO,QAWlB;AAwID,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
|