@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,626 +0,0 @@
|
|
|
1
|
-
export interface FocalPoint {
|
|
2
|
-
/** X-coordinate of the focal point. */
|
|
3
|
-
x?: number;
|
|
4
|
-
/** Y-coordinate of the focal point. */
|
|
5
|
-
y?: number;
|
|
6
|
-
/** crop by height */
|
|
7
|
-
height?: number | null;
|
|
8
|
-
/** crop by width */
|
|
9
|
-
width?: number | null;
|
|
10
|
-
}
|
|
11
|
-
/** Physical address */
|
|
12
|
-
export interface Address extends AddressStreetOneOf {
|
|
13
|
-
/** Street name and number. */
|
|
14
|
-
streetAddress?: StreetAddress;
|
|
15
|
-
/** Main address line, usually street and number as free text. */
|
|
16
|
-
addressLine1?: string | null;
|
|
17
|
-
/**
|
|
18
|
-
* Country code.
|
|
19
|
-
* @format COUNTRY
|
|
20
|
-
*/
|
|
21
|
-
country?: string | null;
|
|
22
|
-
/** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */
|
|
23
|
-
subdivision?: string | null;
|
|
24
|
-
/** City name. */
|
|
25
|
-
city?: string | null;
|
|
26
|
-
/** Zip/postal code. */
|
|
27
|
-
postalCode?: string | null;
|
|
28
|
-
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
29
|
-
addressLine2?: string | null;
|
|
30
|
-
}
|
|
31
|
-
/** @oneof */
|
|
32
|
-
export interface AddressStreetOneOf {
|
|
33
|
-
/** Street name and number. */
|
|
34
|
-
streetAddress?: StreetAddress;
|
|
35
|
-
/** Main address line, usually street and number as free text. */
|
|
36
|
-
addressLine?: string | null;
|
|
37
|
-
}
|
|
38
|
-
export interface StreetAddress {
|
|
39
|
-
/** Street number. */
|
|
40
|
-
number?: string;
|
|
41
|
-
/** Street name. */
|
|
42
|
-
name?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface AddressLocation {
|
|
45
|
-
/** Address latitude. */
|
|
46
|
-
latitude?: number | null;
|
|
47
|
-
/** Address longitude. */
|
|
48
|
-
longitude?: number | null;
|
|
49
|
-
}
|
|
50
|
-
export interface Subdivision {
|
|
51
|
-
/** Short subdivision code. */
|
|
52
|
-
code?: string;
|
|
53
|
-
/** Subdivision full name. */
|
|
54
|
-
name?: string;
|
|
55
|
-
}
|
|
56
|
-
export declare enum SubdivisionType {
|
|
57
|
-
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
58
|
-
/** State */
|
|
59
|
-
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
60
|
-
/** County */
|
|
61
|
-
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
62
|
-
/** City/town */
|
|
63
|
-
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
64
|
-
/** Neighborhood/quarter */
|
|
65
|
-
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
66
|
-
/** Street/block */
|
|
67
|
-
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
68
|
-
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
69
|
-
COUNTRY = "COUNTRY"
|
|
70
|
-
}
|
|
71
|
-
/** Subdivision Concordance values */
|
|
72
|
-
export interface StandardDetails {
|
|
73
|
-
/**
|
|
74
|
-
* 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
|
|
75
|
-
* @maxLength 20
|
|
76
|
-
*/
|
|
77
|
-
iso31662?: string | null;
|
|
78
|
-
}
|
|
79
|
-
export interface VideoResolution {
|
|
80
|
-
/** Video URL. */
|
|
81
|
-
url?: string;
|
|
82
|
-
/** Video height. */
|
|
83
|
-
height?: number;
|
|
84
|
-
/** Video width. */
|
|
85
|
-
width?: number;
|
|
86
|
-
/** Video format for example, mp4, hls. */
|
|
87
|
-
format?: string;
|
|
88
|
-
}
|
|
89
|
-
export interface PageLink {
|
|
90
|
-
/** The page id we want from the site */
|
|
91
|
-
pageId?: string;
|
|
92
|
-
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
|
93
|
-
target?: string | null;
|
|
94
|
-
/**
|
|
95
|
-
* rel of link
|
|
96
|
-
* @maxSize 20
|
|
97
|
-
*/
|
|
98
|
-
rel?: LinkRel[];
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
|
|
102
|
-
* Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
|
|
103
|
-
* Following are the accepted 'rel' types by Wix applications.
|
|
104
|
-
*/
|
|
105
|
-
export declare enum LinkRel {
|
|
106
|
-
/** default (not implemented) */
|
|
107
|
-
unknown_link_rel = "unknown_link_rel",
|
|
108
|
-
/** Indicates that the current document's original author or publisher does not endorse the referenced document. */
|
|
109
|
-
nofollow = "nofollow",
|
|
110
|
-
/** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
|
|
111
|
-
noopener = "noopener",
|
|
112
|
-
/** No Referer header will be included. Additionally, has the same effect as noopener. */
|
|
113
|
-
noreferrer = "noreferrer",
|
|
114
|
-
/** Indicates a link that resulted from advertisements or paid placements. */
|
|
115
|
-
sponsored = "sponsored"
|
|
116
|
-
}
|
|
117
|
-
export interface Variant {
|
|
118
|
-
name?: string;
|
|
119
|
-
value?: string;
|
|
120
|
-
image?: string;
|
|
121
|
-
}
|
|
122
|
-
export interface MyAddress {
|
|
123
|
-
/** @format COUNTRY */
|
|
124
|
-
country?: string | null;
|
|
125
|
-
subdivision?: string | null;
|
|
126
|
-
city?: string | null;
|
|
127
|
-
postalCode?: string | null;
|
|
128
|
-
streetAddress?: StreetAddress;
|
|
129
|
-
}
|
|
130
|
-
export interface CreateProductRequest {
|
|
131
|
-
product?: Product;
|
|
132
|
-
}
|
|
133
|
-
export interface CreateProductResponse {
|
|
134
|
-
product?: Product;
|
|
135
|
-
}
|
|
136
|
-
export interface DeleteProductRequest {
|
|
137
|
-
productId: string;
|
|
138
|
-
}
|
|
139
|
-
export interface DeleteProductResponse {
|
|
140
|
-
}
|
|
141
|
-
export interface UpdateProductRequest {
|
|
142
|
-
productId: string;
|
|
143
|
-
product?: Product;
|
|
144
|
-
/** Explicit list of fields to update. */
|
|
145
|
-
mask?: string[];
|
|
146
|
-
}
|
|
147
|
-
export interface UpdateProductResponse {
|
|
148
|
-
product?: Product;
|
|
149
|
-
}
|
|
150
|
-
export interface GetProductRequest {
|
|
151
|
-
productId: string;
|
|
152
|
-
}
|
|
153
|
-
export interface GetProductResponse {
|
|
154
|
-
product?: Product;
|
|
155
|
-
}
|
|
156
|
-
export interface CountProductsRequest {
|
|
157
|
-
filter?: Record<string, any> | null;
|
|
158
|
-
/** Whether variants should be included in the response. */
|
|
159
|
-
includeVariants?: boolean;
|
|
160
|
-
/** Whether hidden products should be included in the response. Requires permissions to manage products. */
|
|
161
|
-
includeHiddenProducts?: boolean;
|
|
162
|
-
/** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
|
|
163
|
-
includeMerchantSpecificData?: boolean;
|
|
164
|
-
}
|
|
165
|
-
export interface CountProductsResponse {
|
|
166
|
-
count?: number;
|
|
167
|
-
}
|
|
168
|
-
export interface GetProductsStartWithRequest {
|
|
169
|
-
title: string;
|
|
170
|
-
addressLine2?: string | null;
|
|
171
|
-
}
|
|
172
|
-
export interface GetProductsStartWithResponse {
|
|
173
|
-
products?: Product[];
|
|
174
|
-
}
|
|
175
|
-
export interface QueryProductsRequest {
|
|
176
|
-
query?: QueryV2;
|
|
177
|
-
/** Whether variants should be included in the response. */
|
|
178
|
-
includeVariants?: boolean;
|
|
179
|
-
/** Whether hidden products should be included in the response. Requires permissions to manage products. */
|
|
180
|
-
includeHiddenProducts?: boolean;
|
|
181
|
-
/** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
|
|
182
|
-
includeMerchantSpecificData?: boolean;
|
|
183
|
-
}
|
|
184
|
-
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
185
|
-
/** Paging options to limit and skip the number of items. */
|
|
186
|
-
paging?: Paging;
|
|
187
|
-
/** 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`. */
|
|
188
|
-
cursorPaging?: CursorPaging;
|
|
189
|
-
/**
|
|
190
|
-
* Filter object.
|
|
191
|
-
*
|
|
192
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
193
|
-
*/
|
|
194
|
-
filter?: Record<string, any> | null;
|
|
195
|
-
/**
|
|
196
|
-
* Sort object.
|
|
197
|
-
*
|
|
198
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
199
|
-
*/
|
|
200
|
-
sort?: Sorting[];
|
|
201
|
-
/** 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. */
|
|
202
|
-
fields?: string[];
|
|
203
|
-
/** 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. */
|
|
204
|
-
fieldsets?: string[];
|
|
205
|
-
}
|
|
206
|
-
/** @oneof */
|
|
207
|
-
export interface QueryV2PagingMethodOneOf {
|
|
208
|
-
/** Paging options to limit and skip the number of items. */
|
|
209
|
-
paging?: Paging;
|
|
210
|
-
/** 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`. */
|
|
211
|
-
cursorPaging?: CursorPaging;
|
|
212
|
-
}
|
|
213
|
-
export interface Sorting {
|
|
214
|
-
/**
|
|
215
|
-
* Name of the field to sort by.
|
|
216
|
-
* @maxLength 512
|
|
217
|
-
*/
|
|
218
|
-
fieldName?: string;
|
|
219
|
-
/** Sort order. */
|
|
220
|
-
order?: SortOrder;
|
|
221
|
-
}
|
|
222
|
-
export declare enum SortOrder {
|
|
223
|
-
ASC = "ASC",
|
|
224
|
-
DESC = "DESC"
|
|
225
|
-
}
|
|
226
|
-
export interface Paging {
|
|
227
|
-
/** Number of items to load. */
|
|
228
|
-
limit?: number | null;
|
|
229
|
-
/** Number of items to skip in the current sort order. */
|
|
230
|
-
offset?: number | null;
|
|
231
|
-
}
|
|
232
|
-
export interface CursorPaging {
|
|
233
|
-
/**
|
|
234
|
-
* Maximum number of items to return in the results.
|
|
235
|
-
* @max 100
|
|
236
|
-
*/
|
|
237
|
-
limit?: number | null;
|
|
238
|
-
/**
|
|
239
|
-
* Pointer to the next or previous page in the list of results.
|
|
240
|
-
*
|
|
241
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
242
|
-
* Not relevant for the first request.
|
|
243
|
-
* @maxLength 16000
|
|
244
|
-
*/
|
|
245
|
-
cursor?: string | null;
|
|
246
|
-
}
|
|
247
|
-
export interface QueryProductsResponse {
|
|
248
|
-
products?: Product[];
|
|
249
|
-
metadata?: PagingMetadataV2;
|
|
250
|
-
}
|
|
251
|
-
export interface PagingMetadataV2 {
|
|
252
|
-
/** Number of items returned in the response. */
|
|
253
|
-
count?: number | null;
|
|
254
|
-
/** Offset that was requested. */
|
|
255
|
-
offset?: number | null;
|
|
256
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
257
|
-
total?: number | null;
|
|
258
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
259
|
-
tooManyToCount?: boolean | null;
|
|
260
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
261
|
-
cursors?: Cursors;
|
|
262
|
-
}
|
|
263
|
-
export interface Cursors {
|
|
264
|
-
/**
|
|
265
|
-
* Cursor string pointing to the next page in the list of results.
|
|
266
|
-
* @maxLength 16000
|
|
267
|
-
*/
|
|
268
|
-
next?: string | null;
|
|
269
|
-
/**
|
|
270
|
-
* Cursor pointing to the previous page in the list of results.
|
|
271
|
-
* @maxLength 16000
|
|
272
|
-
*/
|
|
273
|
-
prev?: string | null;
|
|
274
|
-
}
|
|
275
|
-
export interface BulkCreateProductsRequest {
|
|
276
|
-
/**
|
|
277
|
-
* @minSize 1
|
|
278
|
-
* @maxSize 100
|
|
279
|
-
*/
|
|
280
|
-
products: Product[];
|
|
281
|
-
/** set to `true` if you wish to receive back the created products in the response */
|
|
282
|
-
returnEntity?: boolean;
|
|
283
|
-
}
|
|
284
|
-
export interface BulkCreateProductsResponse {
|
|
285
|
-
/**
|
|
286
|
-
* @minSize 1
|
|
287
|
-
* @maxSize 100
|
|
288
|
-
*/
|
|
289
|
-
results?: BulkProductResult[];
|
|
290
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
291
|
-
}
|
|
292
|
-
export interface ItemMetadata {
|
|
293
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
294
|
-
_id?: string | null;
|
|
295
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
296
|
-
originalIndex?: number;
|
|
297
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
298
|
-
success?: boolean;
|
|
299
|
-
/** Details about the error in case of failure. */
|
|
300
|
-
error?: ApplicationError;
|
|
301
|
-
}
|
|
302
|
-
export interface ApplicationError {
|
|
303
|
-
/** Error code. */
|
|
304
|
-
code?: string;
|
|
305
|
-
/** Description of the error. */
|
|
306
|
-
description?: string;
|
|
307
|
-
/** Data related to the error. */
|
|
308
|
-
data?: Record<string, any> | null;
|
|
309
|
-
}
|
|
310
|
-
export interface BulkProductResult {
|
|
311
|
-
/** Defined in wix.commons */
|
|
312
|
-
itemMetadata?: ItemMetadata;
|
|
313
|
-
/** Only exists if `returnEntity` was set to true in the request */
|
|
314
|
-
item?: Product;
|
|
315
|
-
}
|
|
316
|
-
export interface BulkActionMetadata {
|
|
317
|
-
/** Number of items that were successfully processed. */
|
|
318
|
-
totalSuccesses?: number;
|
|
319
|
-
/** Number of items that couldn't be processed. */
|
|
320
|
-
totalFailures?: number;
|
|
321
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
322
|
-
undetailedFailures?: number;
|
|
323
|
-
}
|
|
324
|
-
export interface BulkUpdateProductsRequest {
|
|
325
|
-
/**
|
|
326
|
-
* @minSize 1
|
|
327
|
-
* @maxSize 100
|
|
328
|
-
*/
|
|
329
|
-
products: MaskedProduct[];
|
|
330
|
-
/** set to `true` if you wish to receive back the updated products in the response */
|
|
331
|
-
returnEntity?: boolean;
|
|
332
|
-
}
|
|
333
|
-
export interface MaskedProduct {
|
|
334
|
-
/** Product to be updated, may be partial */
|
|
335
|
-
product?: Product;
|
|
336
|
-
}
|
|
337
|
-
export interface BulkUpdateProductsResponse {
|
|
338
|
-
/**
|
|
339
|
-
* @minSize 1
|
|
340
|
-
* @maxSize 100
|
|
341
|
-
*/
|
|
342
|
-
results?: BulkUpdateProductsResponseBulkProductResult[];
|
|
343
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
344
|
-
}
|
|
345
|
-
export interface BulkUpdateProductsResponseBulkProductResult {
|
|
346
|
-
itemMetadata?: ItemMetadata;
|
|
347
|
-
/** Only exists if `returnEntity` was set to true in the request */
|
|
348
|
-
item?: Product;
|
|
349
|
-
}
|
|
350
|
-
export interface BulkDeleteProductsRequest {
|
|
351
|
-
/**
|
|
352
|
-
* @minSize 1
|
|
353
|
-
* @maxSize 100
|
|
354
|
-
* @format GUID
|
|
355
|
-
*/
|
|
356
|
-
productIds: string[];
|
|
357
|
-
}
|
|
358
|
-
export interface BulkDeleteProductsResponse {
|
|
359
|
-
/**
|
|
360
|
-
* @minSize 1
|
|
361
|
-
* @maxSize 100
|
|
362
|
-
*/
|
|
363
|
-
results?: BulkDeleteProductsResponseBulkProductResult[];
|
|
364
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
365
|
-
}
|
|
366
|
-
export interface BulkDeleteProductsResponseBulkProductResult {
|
|
367
|
-
itemMetadata?: ItemMetadata;
|
|
368
|
-
}
|
|
369
|
-
export interface ResetProductsDbRequest {
|
|
370
|
-
}
|
|
371
|
-
export interface ResetProductsDbResponse {
|
|
372
|
-
}
|
|
373
|
-
interface StreetAddressNonNullableFields {
|
|
374
|
-
number: string;
|
|
375
|
-
name: string;
|
|
376
|
-
apt: string;
|
|
377
|
-
}
|
|
378
|
-
interface SubdivisionNonNullableFields {
|
|
379
|
-
name: string;
|
|
380
|
-
}
|
|
381
|
-
interface AddressNonNullableFields {
|
|
382
|
-
streetAddress?: StreetAddressNonNullableFields;
|
|
383
|
-
subdivisions: SubdivisionNonNullableFields[];
|
|
384
|
-
}
|
|
385
|
-
interface PageLinkNonNullableFields {
|
|
386
|
-
pageId: string;
|
|
387
|
-
rel: LinkRel[];
|
|
388
|
-
}
|
|
389
|
-
interface VariantNonNullableFields {
|
|
390
|
-
name: string;
|
|
391
|
-
value: string;
|
|
392
|
-
image: string;
|
|
393
|
-
}
|
|
394
|
-
interface MyAddressNonNullableFields {
|
|
395
|
-
streetAddress?: StreetAddressNonNullableFields;
|
|
396
|
-
}
|
|
397
|
-
export interface ProductNonNullableFields {
|
|
398
|
-
_id: string;
|
|
399
|
-
collectionId: string;
|
|
400
|
-
image: string;
|
|
401
|
-
address?: AddressNonNullableFields;
|
|
402
|
-
document: string;
|
|
403
|
-
video: string;
|
|
404
|
-
pageLink?: PageLinkNonNullableFields;
|
|
405
|
-
audio: string;
|
|
406
|
-
variants: VariantNonNullableFields[];
|
|
407
|
-
mainVariant?: VariantNonNullableFields;
|
|
408
|
-
customAddress?: MyAddressNonNullableFields;
|
|
409
|
-
guid: string;
|
|
410
|
-
}
|
|
411
|
-
export interface CreateProductResponseNonNullableFields {
|
|
412
|
-
product?: ProductNonNullableFields;
|
|
413
|
-
}
|
|
414
|
-
export interface UpdateProductResponseNonNullableFields {
|
|
415
|
-
product?: ProductNonNullableFields;
|
|
416
|
-
}
|
|
417
|
-
export interface GetProductResponseNonNullableFields {
|
|
418
|
-
product?: ProductNonNullableFields;
|
|
419
|
-
}
|
|
420
|
-
export interface CountProductsResponseNonNullableFields {
|
|
421
|
-
count: number;
|
|
422
|
-
}
|
|
423
|
-
export interface GetProductsStartWithResponseNonNullableFields {
|
|
424
|
-
products: ProductNonNullableFields[];
|
|
425
|
-
}
|
|
426
|
-
export interface QueryProductsResponseNonNullableFields {
|
|
427
|
-
products: ProductNonNullableFields[];
|
|
428
|
-
}
|
|
429
|
-
interface ApplicationErrorNonNullableFields {
|
|
430
|
-
code: string;
|
|
431
|
-
description: string;
|
|
432
|
-
}
|
|
433
|
-
interface ItemMetadataNonNullableFields {
|
|
434
|
-
originalIndex: number;
|
|
435
|
-
success: boolean;
|
|
436
|
-
error?: ApplicationErrorNonNullableFields;
|
|
437
|
-
}
|
|
438
|
-
interface BulkProductResultNonNullableFields {
|
|
439
|
-
itemMetadata?: ItemMetadataNonNullableFields;
|
|
440
|
-
item?: ProductNonNullableFields;
|
|
441
|
-
}
|
|
442
|
-
interface BulkActionMetadataNonNullableFields {
|
|
443
|
-
totalSuccesses: number;
|
|
444
|
-
totalFailures: number;
|
|
445
|
-
undetailedFailures: number;
|
|
446
|
-
}
|
|
447
|
-
export interface BulkCreateProductsResponseNonNullableFields {
|
|
448
|
-
results: BulkProductResultNonNullableFields[];
|
|
449
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
450
|
-
}
|
|
451
|
-
interface BulkUpdateProductsResponseBulkProductResultNonNullableFields {
|
|
452
|
-
itemMetadata?: ItemMetadataNonNullableFields;
|
|
453
|
-
item?: ProductNonNullableFields;
|
|
454
|
-
}
|
|
455
|
-
export interface BulkUpdateProductsResponseNonNullableFields {
|
|
456
|
-
results: BulkUpdateProductsResponseBulkProductResultNonNullableFields[];
|
|
457
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
458
|
-
}
|
|
459
|
-
interface BulkDeleteProductsResponseBulkProductResultNonNullableFields {
|
|
460
|
-
itemMetadata?: ItemMetadataNonNullableFields;
|
|
461
|
-
}
|
|
462
|
-
export interface BulkDeleteProductsResponseNonNullableFields {
|
|
463
|
-
results: BulkDeleteProductsResponseBulkProductResultNonNullableFields[];
|
|
464
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
465
|
-
}
|
|
466
|
-
export interface Product {
|
|
467
|
-
_id: string;
|
|
468
|
-
name: string | null;
|
|
469
|
-
collectionId: string;
|
|
470
|
-
_createdDate: Date | null;
|
|
471
|
-
modifiedDate: Date | null;
|
|
472
|
-
image: string;
|
|
473
|
-
address: Address;
|
|
474
|
-
document: string;
|
|
475
|
-
video: string;
|
|
476
|
-
pageLink: PageLink;
|
|
477
|
-
audio: string;
|
|
478
|
-
color: string | null;
|
|
479
|
-
localDate: string | null;
|
|
480
|
-
localTime: string | null;
|
|
481
|
-
localDateTime: string | null;
|
|
482
|
-
variants: Variant[];
|
|
483
|
-
mainVariant: Variant;
|
|
484
|
-
customAddress: MyAddress;
|
|
485
|
-
guid: string;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* Creating a product
|
|
489
|
-
* @public
|
|
490
|
-
* @requiredField options.product.title
|
|
491
|
-
* @fqn wix.coreservices.metroinspector.v1.products.ProductsService.CreateProduct
|
|
492
|
-
*/
|
|
493
|
-
export declare function createProduct(options?: CreateProductOptions): Promise<Product & ProductNonNullableFields>;
|
|
494
|
-
export interface CreateProductOptions {
|
|
495
|
-
product?: Product;
|
|
496
|
-
}
|
|
497
|
-
/** @public
|
|
498
|
-
* @requiredField productId
|
|
499
|
-
* @fqn wix.coreservices.metroinspector.v1.products.ProductsService.DeleteProduct
|
|
500
|
-
*/
|
|
501
|
-
export declare function deleteProduct(productId: string): Promise<void>;
|
|
502
|
-
/** @public
|
|
503
|
-
* @requiredField options.product._id
|
|
504
|
-
* @requiredField productId
|
|
505
|
-
* @fqn wix.coreservices.metroinspector.v1.products.ProductsService.UpdateProduct
|
|
506
|
-
*/
|
|
507
|
-
export declare function updateProduct(productId: string, options?: UpdateProductOptions): Promise<Product & ProductNonNullableFields>;
|
|
508
|
-
export interface UpdateProductOptions {
|
|
509
|
-
product?: Product;
|
|
510
|
-
/** Explicit list of fields to update. */
|
|
511
|
-
mask?: string[];
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* override description
|
|
515
|
-
* @public
|
|
516
|
-
* @requiredField productId
|
|
517
|
-
* @param arg1 - ## new override param 1
|
|
518
|
-
* @returns ## override return
|
|
519
|
-
* @fqn wix.coreservices.metroinspector.v1.products.ProductsService.GetProduct
|
|
520
|
-
*/
|
|
521
|
-
export declare function getProduct(productId: string): Promise<Product & ProductNonNullableFields>;
|
|
522
|
-
/** @public
|
|
523
|
-
* @fqn wix.coreservices.metroinspector.v1.products.ProductsService.CountProducts
|
|
524
|
-
*/
|
|
525
|
-
export declare function countProducts(options?: CountProductsOptions): Promise<CountProductsResponse & CountProductsResponseNonNullableFields>;
|
|
526
|
-
export interface CountProductsOptions {
|
|
527
|
-
filter?: Record<string, any> | null;
|
|
528
|
-
/** Whether variants should be included in the response. */
|
|
529
|
-
includeVariants?: boolean;
|
|
530
|
-
/** Whether hidden products should be included in the response. Requires permissions to manage products. */
|
|
531
|
-
includeHiddenProducts?: boolean;
|
|
532
|
-
/** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
|
|
533
|
-
includeMerchantSpecificData?: boolean;
|
|
534
|
-
}
|
|
535
|
-
/** @public
|
|
536
|
-
* @requiredField title
|
|
537
|
-
* @fqn wix.coreservices.metroinspector.v1.products.ProductsService.GetProductsStartWith
|
|
538
|
-
*/
|
|
539
|
-
export declare function getProductsStartWith(title: string, options?: GetProductsStartWithOptions): Promise<GetProductsStartWithResponse & GetProductsStartWithResponseNonNullableFields>;
|
|
540
|
-
export interface GetProductsStartWithOptions {
|
|
541
|
-
addressLine2?: string | null;
|
|
542
|
-
}
|
|
543
|
-
/** @public
|
|
544
|
-
* @fqn wix.coreservices.metroinspector.v1.products.ProductsService.QueryProducts
|
|
545
|
-
*/
|
|
546
|
-
export declare function queryProducts(options?: QueryProductsOptions): ProductsQueryBuilder;
|
|
547
|
-
export interface QueryProductsOptions {
|
|
548
|
-
/** Whether variants should be included in the response. */
|
|
549
|
-
includeVariants?: boolean | undefined;
|
|
550
|
-
/** Whether hidden products should be included in the response. Requires permissions to manage products. */
|
|
551
|
-
includeHiddenProducts?: boolean | undefined;
|
|
552
|
-
/** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
|
|
553
|
-
includeMerchantSpecificData?: boolean | undefined;
|
|
554
|
-
}
|
|
555
|
-
interface QueryCursorResult {
|
|
556
|
-
cursors: Cursors;
|
|
557
|
-
hasNext: () => boolean;
|
|
558
|
-
hasPrev: () => boolean;
|
|
559
|
-
length: number;
|
|
560
|
-
pageSize: number;
|
|
561
|
-
}
|
|
562
|
-
export interface ProductsQueryResult extends QueryCursorResult {
|
|
563
|
-
items: Product[];
|
|
564
|
-
query: ProductsQueryBuilder;
|
|
565
|
-
next: () => Promise<ProductsQueryResult>;
|
|
566
|
-
prev: () => Promise<ProductsQueryResult>;
|
|
567
|
-
}
|
|
568
|
-
export interface ProductsQueryBuilder {
|
|
569
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
570
|
-
* @param value - Value to compare against.
|
|
571
|
-
*/
|
|
572
|
-
eq: (propertyName: 'title' | 'collectionId' | 'guid', value: any) => ProductsQueryBuilder;
|
|
573
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
574
|
-
* @param value - Value to compare against.
|
|
575
|
-
*/
|
|
576
|
-
ne: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;
|
|
577
|
-
/** @param propertyName - Property whose value is compared with `string`.
|
|
578
|
-
* @param string - String to compare against. Case-insensitive.
|
|
579
|
-
*/
|
|
580
|
-
startsWith: (propertyName: 'title' | 'guid', value: string) => ProductsQueryBuilder;
|
|
581
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
582
|
-
* @param values - List of values to compare against.
|
|
583
|
-
*/
|
|
584
|
-
hasSome: (propertyName: 'title' | 'guid', value: any[]) => ProductsQueryBuilder;
|
|
585
|
-
in: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;
|
|
586
|
-
exists: (propertyName: 'title' | 'guid', value: boolean) => ProductsQueryBuilder;
|
|
587
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
588
|
-
ascending: (...propertyNames: Array<'title' | 'collectionId' | 'guid'>) => ProductsQueryBuilder;
|
|
589
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
590
|
-
descending: (...propertyNames: Array<'title' | 'collectionId' | 'guid'>) => ProductsQueryBuilder;
|
|
591
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
592
|
-
limit: (limit: number) => ProductsQueryBuilder;
|
|
593
|
-
/** @param cursor - A pointer to specific record */
|
|
594
|
-
skipTo: (cursor: string) => ProductsQueryBuilder;
|
|
595
|
-
find: () => Promise<ProductsQueryResult>;
|
|
596
|
-
}
|
|
597
|
-
/**
|
|
598
|
-
* create multiple products in a single request. Works synchronously
|
|
599
|
-
* @public
|
|
600
|
-
* @requiredField products
|
|
601
|
-
* @fqn wix.coreservices.metroinspector.v1.products.ProductsService.BulkCreateProducts
|
|
602
|
-
*/
|
|
603
|
-
export declare function bulkCreateProducts(products: Product[], options?: BulkCreateProductsOptions): Promise<BulkCreateProductsResponse & BulkCreateProductsResponseNonNullableFields>;
|
|
604
|
-
export interface BulkCreateProductsOptions {
|
|
605
|
-
/** set to `true` if you wish to receive back the created products in the response */
|
|
606
|
-
returnEntity?: boolean;
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* update multiple products in a single request. Works synchronously.
|
|
610
|
-
* @public
|
|
611
|
-
* @requiredField products
|
|
612
|
-
* @fqn wix.coreservices.metroinspector.v1.products.ProductsService.BulkUpdateProducts
|
|
613
|
-
*/
|
|
614
|
-
export declare function bulkUpdateProducts(products: MaskedProduct[], options?: BulkUpdateProductsOptions): Promise<BulkUpdateProductsResponse & BulkUpdateProductsResponseNonNullableFields>;
|
|
615
|
-
export interface BulkUpdateProductsOptions {
|
|
616
|
-
/** set to `true` if you wish to receive back the updated products in the response */
|
|
617
|
-
returnEntity?: boolean;
|
|
618
|
-
}
|
|
619
|
-
/**
|
|
620
|
-
* deletes multiple products in a single request. Works synchronously.
|
|
621
|
-
* @public
|
|
622
|
-
* @requiredField productIds
|
|
623
|
-
* @fqn wix.coreservices.metroinspector.v1.products.ProductsService.BulkDeleteProducts
|
|
624
|
-
*/
|
|
625
|
-
export declare function bulkDeleteProducts(productIds: string[]): Promise<BulkDeleteProductsResponse & BulkDeleteProductsResponseNonNullableFields>;
|
|
626
|
-
export {};
|